* { box-sizing: border-box; }
body.ml-body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: #eef4fb;
	color: #0f172a;
	min-height: 100vh;
}
.ml-page { max-width: 480px; margin: 0 auto; min-height: 100vh; background: transparent; padding-bottom: 24px; }
body.ml-login-page .ml-page { background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 42%, #eef4fb 100%); }
.ml-header {
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #eef2f7;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 10;
}
.ml-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.ml-brand .logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ml-hero { padding: 18px 16px 8px; background: transparent; text-align: left; }
.ml-hero h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #0f172a; }
.ml-hero p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.55; }
.ml-hero-art {
	margin: 14px auto 0;
	max-width: 320px;
	padding: 0 4px;
}
.ml-hero-art img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}
.ml-features { padding: 8px 16px 4px; }
.ml-feat { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.ml-feat .ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ml-feat .ico.blue { background: #e8f2ff; color: #2563eb; }
.ml-feat .ico.orange { background: #fff7ed; color: #ea580c; }
.ml-feat .ico.purple { background: #f3edff; color: #7c3aed; }
.ml-feat .txt .t { font-weight: 600; font-size: 13px; }
.ml-feat .txt .d { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.ml-card { margin: 12px 16px 16px; padding: 20px 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08); border: 1px solid #e8eef5; }
.ml-login-card { margin-top: 10px; }
.ml-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.ml-card-head-text { flex: 1; min-width: 0; }
.ml-card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: #0f172a; }
.ml-card .sub { color: #94a3b8; font-size: 12px; margin-bottom: 0; }
.ml-cs-btn {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}
.ml-cs-btn svg {
	width: 22px;
	height: 22px;
	fill: #fff;
}
.ml-cs-mask {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 9998;
}
.ml-cs-panel {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: 480px;
	margin: 0 auto;
	background: #fff;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.16);
	transform: translateY(110%);
	transition: transform 0.28s ease;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	max-height: min(78vh, 620px);
}
.ml-cs-mask.open,
.ml-cs-panel.open { visibility: visible; }
.ml-cs-mask.open { opacity: 1; }
.ml-cs-panel.open { transform: translateY(0); }
body.ml-cs-open { overflow: hidden; }
.ml-cs-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 16px 12px;
	border-bottom: 1px solid #f1f5f9;
}
.ml-cs-head-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ml-cs-head-icon svg {
	width: 22px;
	height: 22px;
	fill: #fff;
}
.ml-cs-head-text { flex: 1; min-width: 0; }
.ml-cs-head-text .t { font-size: 16px; font-weight: 700; color: #0f172a; }
.ml-cs-head-text .d { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.ml-cs-close {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}
.ml-cs-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #f8fafc;
	min-height: 220px;
}
.ml-cs-body.empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	font-size: 13px;
	text-align: center;
}
.ml-cs-msg { margin-bottom: 12px; max-width: 85%; }
.ml-cs-msg.self { margin-left: auto; text-align: right; }
.ml-cs-msg.other { margin-right: auto; text-align: left; }
.ml-cs-msg .bubble {
	display: inline-block;
	padding: 10px 12px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	word-break: break-word;
	text-align: left;
}
.ml-cs-msg.self .bubble {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.ml-cs-msg.other .bubble {
	background: #fff;
	color: #0f172a;
	border: 1px solid #e2e8f0;
	border-bottom-left-radius: 4px;
}
.ml-cs-msg .time {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 4px;
}
.ml-cs-foot {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #f1f5f9;
	background: #fff;
}
.ml-cs-foot input {
	flex: 1;
	height: 44px;
	border: 1px solid #e2e8f0;
	border-radius: 22px;
	background: #f8fafc;
	padding: 0 14px;
	font-size: 14px;
	outline: none;
}
.ml-cs-foot input:focus {
	border-color: #2563eb;
	background: #fff;
}
.ml-cs-send {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}
.ml-cs-send svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}
.ml-field { margin-bottom: 12px; }
.ml-field label { display: block; font-size: 12px; color: #475569; margin-bottom: 6px; font-weight: 600; }
.ml-field label .req { color: #ef4444; }
.ml-input-wrap { display: flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; overflow: hidden; }
.ml-input-wrap:focus-within { border-color: #2563eb; background: #fff; }
.ml-input-wrap .ico-l { width: 40px; text-align: center; color: #94a3b8; flex-shrink: 0; }
.ml-input-wrap input, .ml-input-wrap select { flex: 1; border: 0; background: transparent; padding: 12px 10px 12px 12px; font-size: 14px; outline: none; min-width: 0; width: 100%; appearance: none; }
.ml-input-wrap select { background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.ml-captcha-row { display: flex; gap: 8px; align-items: center; }
.ml-captcha-row input { flex: 1; }
.ml-captcha-box { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ml-captcha-row img { height: 42px; min-width: 88px; border-radius: 8px; border: 1px solid #e2e8f0; cursor: pointer; background: #f8fafc; }
.ml-captcha-refresh {
	border: 0;
	background: #f1f5f9;
	color: #64748b;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	flex-shrink: 0;
}
.ml-pwd-toggle {
	border: 0;
	background: transparent;
	color: #94a3b8;
	font-size: 16px;
	padding: 0 12px;
	cursor: pointer;
	flex-shrink: 0;
}
.ml-options-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 12px 0 16px;
}
.ml-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #64748b; margin: 0; }
.ml-forgot { font-size: 12px; color: #2563eb; text-decoration: none; white-space: nowrap; }
.ml-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0 12px;
	color: #94a3b8;
	font-size: 12px;
}
.ml-or::before,
.ml-or::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}
.ml-btn-primary {
	width: 100%; border: 0; border-radius: 999px; padding: 13px;
	background: linear-gradient(135deg, #f97316, #ea580c); color: #fff;
	font-size: 15px; font-weight: 700; cursor: pointer;
}
.ml-btn-outline {
	width: 100%; border: 1px solid #bfdbfe; border-radius: 999px; padding: 12px;
	background: #fff; color: #2563eb; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 10px;
}
.ml-foot { text-align: center; font-size: 12px; color: #94a3b8; padding: 4px 16px 20px; line-height: 1.6; }
.ml-foot a { color: #2563eb; text-decoration: none; font-weight: 600; }
.ml-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #64748b; margin-top: 16px; }
.ml-secure-ico { color: #2563eb; font-size: 13px; }
.ml-section-title { font-size: 15px; font-weight: 700; margin: 18px 0 10px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.ml-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ml-upload-box {
	border: 1px dashed #cbd5e1; border-radius: 10px; min-height: 100px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	font-size: 11px; color: #94a3b8; cursor: pointer; position: relative; overflow: hidden; background: #f8fafc;
}
.ml-upload-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ml-upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ml-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.ml-tab { flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-size: 13px; border: 1px solid #e2e8f0; cursor: pointer; }
.ml-tab.active { background: #eff6ff; border-color: #2563eb; color: #2563eb; font-weight: 600; }
.ml-back { border: 0; background: none; font-size: 20px; color: #64748b; cursor: pointer; padding: 0 8px 0 0; }
