/**
 * Nova Member front-end styles.
 * Scoped to .nm- prefixed classes only; never touches theme styles.
 * Accent colors are injected via CSS variables --nm-accent / --nm-accent-deep / --nm-accent-soft / --nm-max.
 */

.nm-wrap {
	max-width: var(--nm-max, 440px);
	margin: 40px auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.nm-wrap-wide {
	max-width: 720px;
}

.nm-wrap *,
.nm-wrap *::before,
.nm-wrap *::after {
	box-sizing: border-box;
}

/* ---------- Cards ---------- */

.nm-card {
	background: #fff;
	border: 1px solid #e8eaf2;
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(28, 35, 64, 0.08);
	padding: 36px 34px;
	font-size: 15px;
	line-height: 1.6;
	color: #1c2340;
}

.nm-card-center {
	text-align: center;
}

.nm-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1c2340;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.nm-title-center {
	margin-top: 12px;
}

.nm-sub {
	margin: 0 0 22px;
	color: #69708c;
	font-size: 14px;
}

/* ---------- Brand row ---------- */

.nm-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 26px;
}

.nm-brand-mark {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--nm-accent, #4f6ef7), var(--nm-accent-deep, #3c50d4));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.nm-brand-name {
	font-weight: 700;
	font-size: 15px;
	color: #1c2340;
}

/* ---------- Form ---------- */

.nm-field {
	margin-bottom: 16px;
}

.nm-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #3a4160;
	margin-bottom: 6px;
}

.nm-input-wrap {
	position: relative;
}

.nm-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #9aa1bd;
	display: flex;
	pointer-events: none;
}

.nm-input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1.5px solid #dde1ee;
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.4;
	color: #1c2340;
	background: #fafbfe;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	appearance: none;
	box-sizing: border-box;
}

.nm-input::placeholder {
	color: #a6adc9;
	opacity: 1;
}

.nm-input:focus {
	outline: none;
	border-color: var(--nm-accent, #4f6ef7);
	background: #fff;
	box-shadow: 0 0 0 4px var(--nm-accent-soft, rgba(79, 110, 247, 0.1));
}

.nm-input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Select input (country dropdown): custom chevron, native arrow removed via appearance:none above */

select.nm-select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b92b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
	padding-right: 38px !important;
	cursor: pointer;
	color: #1c2340;
}

select.nm-select option {
	color: #1c2340;
	background: #fff;
}

/* ---------- Country flag picker (progressive enhancement over the native select) ---------- */

.nm-select-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.nm-flagpicker-btn {
	width: 100%;
	height: 46px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px !important;
	border: 1.5px solid #dde1ee !important;
	border-radius: 12px;
	background: #fafbfe;
	font-size: 15px;
	color: #1c2340;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nm-flagpicker-btn:hover {
	border-color: #c9cfe4;
}

.nm-flagpicker-btn:focus-visible,
.nm-flagpicker-btn.is-open {
	outline: none;
	border-color: var(--nm-accent, #4f6ef7) !important;
	background: #fff;
	box-shadow: 0 0 0 4px var(--nm-accent-soft, rgba(79, 110, 247, 0.1));
}

.nm-flagpicker-label {
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nm-flagpicker-label.is-placeholder {
	color: #a6adc9;
}

.nm-flagpicker-caret {
	color: #9aa1bd;
	display: flex;
	flex: 0 0 auto;
	transition: transform 0.15s ease;
}

.nm-flagpicker-btn.is-open .nm-flagpicker-caret {
	transform: rotate(180deg);
}

.nm-flag {
	width: 24px;
	height: auto;
	flex: 0 0 auto;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(28, 35, 64, 0.12);
	display: block;
}

.nm-flagpicker-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 9999;
	background: #fff;
	border: 1px solid #e8eaf2;
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(28, 35, 64, 0.16);
	overflow: hidden;
}

.nm-flagpicker-search {
	width: 100%;
	height: 42px;
	border: 0;
	border-bottom: 1px solid #eef0f8;
	padding: 0 14px;
	font-size: 14px;
	color: #1c2340;
	outline: none;
	background: #fafbfe;
	box-sizing: border-box;
}

.nm-flagpicker-list {
	max-height: 248px;
	overflow-y: auto;
	padding: 6px;
}

.nm-flagpicker-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 9px;
	font-size: 14.5px;
	color: #1c2340;
	cursor: pointer;
	transition: background 0.12s ease;
}

.nm-flagpicker-item:hover,
.nm-flagpicker-item.is-active {
	background: #f4f6fc;
	color: var(--nm-accent, #4f6ef7);
}

.nm-flagpicker-item.is-selected {
	background: var(--nm-accent-soft, rgba(79, 110, 247, 0.1));
	font-weight: 600;
}

.nm-flagpicker-clear {
	color: #8b92b2;
	font-style: italic;
	border-bottom: 1px solid #eef0f8;
	border-radius: 0;
	margin-bottom: 4px;
}

/* Required-field asterisk */

.nm-req {
	color: #d63638;
	font-weight: 700;
}

/* Caps Lock / password-match hints */

.nm-caps-warn {
	color: #b7791f;
	font-weight: 600;
}

.nm-caps-warn::before {
	content: "⇪ ";
}

.nm-match-ok {
	color: #2e9e44;
	font-weight: 600;
}

.nm-match-err {
	color: #d63638;
	font-weight: 600;
}

/* Password visibility toggle: eye / eye-off swap */

.nm-pw-toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #9aa1bd;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.nm-pw-toggle .nm-eye {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nm-pw-toggle .nm-eye-hide {
	display: none;
}

.nm-pw-toggle.is-on {
	color: var(--nm-accent, #4f6ef7);
}

.nm-pw-toggle.is-on .nm-eye-show {
	display: none;
}

.nm-pw-toggle.is-on .nm-eye-hide {
	display: flex;
}

.nm-pw-toggle:hover {
	background: #f0f2fa;
	color: #3a4160;
}

.nm-pw-toggle:focus-visible {
	outline: 2px solid var(--nm-accent, #4f6ef7);
	outline-offset: 1px;
}

/*
 * Theme-proof padding for icon / toggle inputs.
 * The double class selector beats common theme rules like input[type=text] { padding: … };
 * !important is scoped to .nm-input-wrap so it never leaks outside plugin forms.
 */

.nm-input-wrap .nm-input-has-icon {
	padding-left: 42px !important;
}

.nm-input-wrap .nm-input.nm-pw {
	padding-right: 46px !important;
}

/* Checkbox row */

.nm-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #3a4160;
	margin: 2px 0 18px;
	cursor: pointer;
}

.nm-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--nm-accent, #4f6ef7);
	cursor: pointer;
}

/* ---------- Buttons ---------- */

.nm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 26px;
	border: 0;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.nm-btn:focus-visible {
	outline: 2px solid var(--nm-accent-deep, #3c50d4);
	outline-offset: 2px;
}

.nm-btn-primary {
	background: linear-gradient(135deg, var(--nm-accent, #4f6ef7), var(--nm-accent-deep, #3c50d4));
	color: #fff;
	box-shadow: 0 8px 20px var(--nm-accent-soft, rgba(79, 110, 247, 0.25));
}

.nm-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px var(--nm-accent-soft, rgba(79, 110, 247, 0.35));
	color: #fff;
}

.nm-btn-primary:active {
	transform: translateY(0);
}

.nm-btn-primary:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.nm-btn-ghost {
	background: #fff;
	color: #3a4160;
	border: 1.5px solid #dde1ee;
	text-decoration: none;
}

.nm-btn-ghost:hover {
	border-color: var(--nm-accent, #4f6ef7);
	color: var(--nm-accent, #4f6ef7);
}

.nm-btn-ghost-dark {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	text-decoration: none;
	font-size: 14px;
	height: 40px;
	padding: 0 18px;
}

.nm-btn-ghost-dark:hover {
	background: rgba(255, 255, 255, 0.26);
	color: #fff;
}

.nm-btn-danger {
	background: #fff;
	color: #c0392b;
	border: 1.5px solid #ddb1ab;
	height: 46px;
	padding: 0 22px;
	font-size: 14.5px;
}

.nm-btn-danger:hover {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff;
}

.nm-btn-block {
	width: 100%;
}

/* Centered submit row: the last action button of every plugin form.
   Hardened against theme overrides (float / text-align / flex hijacks). */

.nm-submit {
	display: flex !important;
	justify-content: center !important;
	float: none !important;
	clear: both;
	width: 100%;
	margin-top: 6px;
	text-align: center;
}

.nm-submit .nm-btn {
	min-width: 200px;
	float: none !important;
	display: inline-flex !important;
	margin: 0 !important;
}

/* ---------- Alert notices ---------- */

.nm-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 14px;
	margin-bottom: 16px;
	text-align: left;
}

.nm-alert-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-top: 6px;
	flex: 0 0 auto;
}

.nm-alert-err {
	background: #fdf1f1;
	color: #8a2424;
	border: 1px solid #f3d4d4;
}

.nm-alert-err .nm-alert-dot {
	background: #d63638;
}

.nm-alert-ok {
	background: #f0f9f1;
	color: #1d5c25;
	border: 1px solid #d4ecd7;
}

.nm-alert-ok .nm-alert-dot {
	background: #2e9e44;
}

/* ---------- Footer links ---------- */

.nm-links {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	font-size: 14px;
}

.nm-links a {
	color: var(--nm-accent, #4f6ef7);
	text-decoration: none;
	font-weight: 600;
}

.nm-links a:hover {
	text-decoration: underline;
}

.nm-mt16 {
	margin-top: 16px;
}

.nm-mt24 {
	margin-top: 24px;
}

/* ---------- Membership type chips ---------- */

.nm-chip-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 2px 0 4px;
}

.nm-chip {
	position: relative;
	cursor: pointer;
}

.nm-chip-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.nm-chip-face {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1.5px solid #dde1ee;
	background: #fafbfe;
	color: #3a4160;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.16s ease;
}

.nm-chip:hover .nm-chip-face {
	border-color: var(--nm-accent, #4f6ef7);
	color: var(--nm-accent, #4f6ef7);
}

.nm-chip-input:checked + .nm-chip-face {
	background: linear-gradient(135deg, var(--nm-accent, #4f6ef7), var(--nm-accent-deep, #3c50d4));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 6px 16px var(--nm-accent-soft, rgba(79, 110, 247, 0.3));
}

.nm-chip-input:focus-visible + .nm-chip-face {
	outline: 2px solid var(--nm-accent-deep, #3c50d4);
	outline-offset: 2px;
}

.nm-chip-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: inherit;
}

.nm-title-center ~ .nm-chip-tags,
.nm-card-center .nm-chip-tags {
	justify-content: center;
}

.nm-chip-tag {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--nm-accent-soft, rgba(79, 110, 247, 0.1));
	color: var(--nm-accent-deep, #3c50d4);
	font-size: 12.5px;
	font-weight: 700;
}

/* ---------- Password strength ---------- */

.nm-meter {
	height: 5px;
	border-radius: 999px;
	background: #edeef5;
	margin-top: 8px;
	overflow: hidden;
	transition: height 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
}

/* Hidden until the user actually types: an empty slot reads as a stray line */

.nm-meter.is-empty {
	height: 0;
	opacity: 0;
	margin-top: 0;
}

.nm-meter i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: #d63638;
	transition: width 0.25s ease, background 0.25s ease;
}

.nm-meter.s1 i { width: 25%; background: #d63638; }
.nm-meter.s2 i { width: 50%; background: #e08700; }
.nm-meter.s3 i { width: 75%; background: #8fae00; }
.nm-meter.s4 i { width: 100%; background: #2e9e44; }

.nm-hint {
	font-size: 12.5px;
	color: #8b92b2;
	margin: 6px 0 0;
	min-height: 1em;
}

/* ---------- Account page ---------- */

.nm-profile {
	padding: 0;
	overflow: hidden;
}

.nm-profile-head {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	padding: 28px 34px;
	background:
		radial-gradient(120% 160% at 100% 0%, var(--nm-accent-soft, rgba(79, 110, 247, 0.16)) 0%, transparent 55%),
		linear-gradient(135deg, var(--nm-accent, #4f6ef7) 0%, var(--nm-accent-deep, #3c50d4) 100%);
	color: #fff;
	margin-bottom: 0;
}

.nm-profile-meta {
	flex: 1 1 220px;
	min-width: 0;
}

.nm-avatar {
	width: 74px;
	height: 74px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
	border: 3px solid rgba(255, 255, 255, 0.55);
	background: #fff;
}

.nm-avatar img {
	display: block;
	width: 100%;
	height: auto;
}

.nm-avatar-lg {
	width: 84px;
	height: 84px;
	margin: 0 auto 4px;
	border: 3px solid #eef0f8;
}

.nm-profile-name {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}

.nm-profile-sub {
	margin: 8px 0 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
	word-break: break-word;
}

.nm-profile .nm-profile-head .nm-chip-tag {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.nm-profile-actions {
	flex: 0 0 auto;
}

.nm-profile form.nm-form {
	padding: 20px 30px 26px;
}

.nm-profile .nm-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 16px 0 14px;
	color: #8b92b2;
	font-size: 13px;
	white-space: nowrap;
}

.nm-profile .nm-divider::before,
.nm-profile .nm-divider::after {
	content: "";
	height: 1px;
	background: #e8eaf2;
	flex: 1;
}

/* ---------- Password reset success ---------- */

.nm-success {
	text-align: center;
}

.nm-success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
	background: linear-gradient(135deg, var(--nm-accent, #4f6ef7), var(--nm-accent-deep, #3c50d4));
	color: #fff;
	box-shadow: 0 8px 20px var(--nm-accent-soft, rgba(79, 110, 247, 0.25));
}

.nm-success .nm-sub {
	margin-bottom: 20px;
}

.nm-countdown-text {
	margin-top: 12px;
	color: #8b92b2;
}

/* ---------- Account deletion (danger zone) ---------- */

.nm-danger {
	margin-top: 22px;
}

.nm-danger-text {
	font-size: 13.5px;
	line-height: 1.55;
	color: #8a2424;
	background: #fdf3f3;
	border: 1px solid #f0d3d3;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 14px;
}

.nm-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

@media (max-width: 520px) {
	.nm-grid2 {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ---------- Logged-in card ---------- */

.nm-card-center .nm-avatar-lg {
	margin-bottom: 10px;
}

.nm-card-center .nm-links {
	justify-content: center;
}

/* ---------- Restricted content notice ---------- */

.nm-guard {
	background: #fff;
	border: 1px solid #e8eaf2;
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(28, 35, 64, 0.08);
	padding: 40px 32px;
	text-align: center;
	max-width: 480px;
	margin: 32px auto;
	font-size: 15px;
}

.nm-guard-icon {
	width: 58px;
	height: 58px;
	border-radius: 16px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nm-accent-soft, rgba(79, 110, 247, 0.12));
	color: var(--nm-accent, #4f6ef7);
}

.nm-guard-title {
	font-size: 19px;
	font-weight: 700;
	color: #1c2340;
	margin: 0 0 8px;
}

.nm-guard-text {
	color: #69708c;
	font-size: 14px;
	margin: 0 0 22px;
}

.nm-guard-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.nm-guard-excerpt {
	color: #8b92b2;
	font-style: italic;
}

/* Honeypot (hidden from humans, visible to bots) */

.nm-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* ---------- Theme page titles on plugin pages ---------- */

body.nm-plugin-page .entry-title,
body.nm-plugin-page .page-title,
body.nm-plugin-page h1.page-title {
	text-align: center;
}

/* ---------- 认证页面标题居中 ---------- */

.nm-auth-card .nm-brand {
	justify-content: center;
}

.nm-auth-card .nm-title,
.nm-auth-card .nm-sub {
	text-align: center;
}

.nm-auth-card .nm-chip-group {
	justify-content: center;
}

.nm-auth-card .nm-links {
	justify-content: center;
	gap: 24px;
}

/* ---------- 个人中心头部：横向紧凑布局 + theme-proof ----------
   Avatar left, identity column center, Log out right (Stripe-style).
   All inner spacing is force-reset so theme rules can't stretch the header,
   and the horizontal layout keeps any leftover theme gap visually harmless. */

.nm-profile-head {
	position: relative;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center !important;
	gap: 16px !important;
	padding: 24px 30px !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	line-height: 1.5 !important;
	text-align: left;
}

.nm-profile-head > *,
.nm-profile-head h1,
.nm-profile-head div,
.nm-profile-head img,
.nm-profile-head a {
	margin: 0 !important;
	padding: 0 !important;
}

.nm-profile-head .nm-avatar {
	width: 76px;
	height: 76px;
	border: 3px solid rgba(255, 255, 255, 0.55);
	flex: 0 0 auto;
}

.nm-profile-head .nm-profile-meta {
	flex: 1 1 240px;
	text-align: left;
	min-width: 200px;
}

.nm-profile-head .nm-profile-name {
	font-size: 21px;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.25 !important;
}

.nm-profile-head .nm-chip-tags {
	justify-content: flex-start;
	margin-top: 7px !important;
}

.nm-profile-head .nm-chip-tag {
	background: rgba(255, 255, 255, 0.22) !important;
	height: 26px;
}

.nm-profile-head .nm-profile-meta-row {
	margin-top: 8px !important;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.92);
}

.nm-profile-head .nm-meta-key {
	opacity: 0.78;
}

.nm-profile-actions {
	display: flex;
	margin-left: auto !important;
	flex: 0 0 auto;
}

.nm-profile-actions .nm-btn-ghost-dark {
	background: #fff !important;
	color: var(--nm-accent, #4f6ef7) !important;
	border: 0 !important;
	height: 38px;
	padding: 0 18px !important;
	font-size: 13.5px;
	font-weight: 600;
	box-shadow: none;
}

.nm-profile-actions .nm-btn-ghost-dark:hover {
	opacity: 0.88;
	color: var(--nm-accent, #4f6ef7) !important;
}

/* 紧凑的账号信息区：留白收敛，表单字段成组（theme-proof 间距） */

.nm-profile .nm-form .nm-field {
	margin-bottom: 12px !important;
}

.nm-profile .nm-form .nm-field .nm-label {
	margin-bottom: 5px !important;
}

.nm-profile .nm-form .nm-grid2 {
	gap: 0 16px !important;
}

.nm-profile .nm-form .nm-input {
	margin: 0 !important;
}

.nm-profile-meta-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	column-gap: 8px;
	row-gap: 2px;
	margin-top: 6px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

.nm-meta-item {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	white-space: nowrap;
}

.nm-meta-key {
	opacity: 0.72;
}

.nm-meta-sep {
	opacity: 0.5;
}

.nm-profile .nm-alert {
	margin: 14px 30px 0 !important;
}

/* ---------- 响应式 ---------- */

@media (max-width: 480px) {
	.nm-wrap {
		margin: 20px auto;
	}

	.nm-card {
		padding: 26px 20px;
		border-radius: 15px;
	}

	.nm-profile form.nm-form {
		padding: 16px 20px 22px;
	}

	.nm-profile .nm-alert {
		margin: 12px 20px 0;
	}

	.nm-profile-head {
		padding: 20px 20px !important;
		gap: 14px !important;
	}

	.nm-profile-head .nm-avatar {
		width: 60px;
		height: 60px;
	}

	.nm-profile-head .nm-profile-name {
		font-size: 18px;
	}

	.nm-profile-actions .nm-btn-ghost-dark {
		height: 34px;
		padding: 0 14px !important;
		font-size: 12.5px;
	}

	.nm-title {
		font-size: 21px;
	}
}

/* ---------- Header account chip [nm_account] ---------- */

.nm-acct {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	line-height: 1.4;
	vertical-align: middle;
}

.nm-btn-sm {
	height: 38px;
	padding: 0 20px;
	font-size: 14px;
	border-radius: 10px;
}

.nm-acct-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px 5px 6px;
	border-radius: 999px;
	color: #1c2340;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.nm-acct-trigger:hover,
.nm-acct-trigger:focus-visible {
	background: rgba(28, 35, 64, 0.07);
	color: #1c2340;
	text-decoration: none;
}

.nm-acct-trigger:focus-visible {
	outline: 2px solid var(--nm-accent, #4f6ef7);
	outline-offset: 2px;
}

.nm-acct-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	overflow: hidden;
	background: #eef0f8;
	display: inline-flex;
	flex: 0 0 auto;
}

.nm-acct-avatar img {
	display: block;
	width: 100%;
	height: auto;
}

.nm-acct-name {
	font-weight: 600;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nm-acct-caret {
	color: #8b92b2;
	display: inline-flex;
	transition: transform 0.15s ease;
}

.nm-acct:hover .nm-acct-caret,
.nm-acct:focus-within .nm-acct-caret {
	transform: rotate(180deg);
}

.nm-acct-menu {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	padding-top: 10px;
	z-index: 99999;
}

.nm-acct:hover .nm-acct-menu,
.nm-acct:focus-within .nm-acct-menu {
	display: block;
}

.nm-acct-panel {
	display: flex;
	flex-direction: column;
	min-width: 210px;
	padding: 6px;
	background: #fff;
	border: 1px solid #e8eaf2;
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(28, 35, 64, 0.14);
}

.nm-acct-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px 9px;
	border-bottom: 1px solid #eef0f8;
	margin-bottom: 6px;
}

.nm-acct-head-name {
	font-weight: 700;
	font-size: 14px;
	color: #1c2340;
	max-width: 196px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nm-acct-head-role {
	font-size: 12px;
	font-weight: 600;
	color: var(--nm-accent-deep, #3c50d4);
}

.nm-acct-item {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	border-radius: 9px;
	color: #3a4160;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.13s ease, color 0.13s ease;
}

.nm-acct-item:hover,
.nm-acct-item:focus-visible {
	background: #f4f6fc;
	color: var(--nm-accent, #4f6ef7);
	text-decoration: none;
}

.nm-acct-item-out,
.nm-acct-item-out:hover,
.nm-acct-item-out:focus-visible {
	color: #8a2424;
}

.nm-acct-item-out:hover,
.nm-acct-item-out:focus-visible {
	background: #fdf1f1;
}

@media (max-width: 480px) {
	.nm-acct-name {
		max-width: 96px;
	}
}
