:root {
	--nmg-bg: #f3f5f7;
	--nmg-card: #ffffff;
	--nmg-text: #14202b;
	--nmg-muted: #687683;
	--nmg-dark: #111a22;
	--nmg-accent: #c51f28;
	--nmg-border: #dfe5e8;
	--nmg-success: #19733c;
	--nmg-warning: #9a5d00;
	--nmg-danger: #a61b1b;
	--nmg-shadow: 0 6px 24px rgba(20,32,43,.08);
}

html,
body {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--nmg-bg) !important;
}

body {
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Arial,
		sans-serif;
	color: var(--nmg-text);
}

body > .wp-site-blocks > header,
body > .wp-site-blocks > footer,
body .wp-block-post-title,
body .entry-title {
	display: none !important;
}

body .wp-site-blocks,
body main.wp-block-group,
body .entry-content,
body .wp-block-post-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
}

a {
	box-sizing: border-box;
}

.nmg-app {
	min-height: 100vh;
	background: var(--nmg-bg);
	padding-bottom: 100px;
}

.nmg-topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 20px;
	background: rgba(255,255,255,.97);
	border-bottom: 1px solid var(--nmg-border);
	backdrop-filter: blur(12px);
}

.admin-bar .nmg-topbar {
	top: 32px;
}

.nmg-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	text-decoration: none !important;
	color: var(--nmg-text) !important;
}

.nmg-brand-icon {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nmg-accent);
	color: #fff;
	border-radius: 12px;
	font-weight: 900;
	font-size: 16px;
}

.nmg-brand-name {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.05;
}

.nmg-brand-sub {
	margin-top: 3px;
	font-size: 13px;
	font-weight: 600;
	color: var(--nmg-muted);
}

.nmg-profile-button {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--nmg-dark);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 800;
	font-size: 17px;
}

.nmg-main {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.nmg-form-main {
	max-width: 820px;
}

.nmg-greeting,
.nmg-page-heading {
	padding: 34px 2px 22px;
}

.nmg-eyebrow {
	margin-bottom: 7px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 1.15px;
	color: var(--nmg-accent);
	text-transform: uppercase;
}

.nmg-greeting h1,
.nmg-page-heading h1 {
	margin: 0;
	font-size: clamp(28px, 6vw, 48px);
	line-height: 1.04;
	letter-spacing: -1.25px;
}

.nmg-greeting p,
.nmg-page-heading > p {
	margin: 10px 0 0;
	font-size: 16px;
	color: var(--nmg-muted);
	line-height: 1.45;
}

.nmg-page-title-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
}

.nmg-back-link {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--nmg-text) !important;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none !important;
}

.nmg-add-button,
.nmg-small-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 17px;
	border-radius: 13px;
	background: var(--nmg-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 900;
}

.nmg-small-add {
	min-height: 42px;
}

.nmg-stat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 28px;
}

.nmg-stat-card,
.nmg-profile-card {
	background: var(--nmg-card);
	border: 1px solid var(--nmg-border);
	border-radius: 18px;
	padding: 21px 18px;
	box-shadow: var(--nmg-shadow);
}

.nmg-stat-number {
	font-size: 34px;
	font-weight: 900;
}

.nmg-stat-label {
	margin-top: 3px;
	font-size: 13px;
	font-weight: 700;
	color: var(--nmg-muted);
}

.nmg-section {
	margin: 0 0 30px;
}

.nmg-section-heading,
.nmg-card-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 13px;
}

.nmg-section-heading h2,
.nmg-card-heading h2 {
	margin: 0;
	font-size: 23px;
	letter-spacing: -.5px;
}

.nmg-action-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 12px;
}

.nmg-action-card {
	width: 100%;
	min-height: 92px;
	display: grid;
	grid-template-columns: 48px 1fr 26px;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: var(--nmg-card);
	border: 2px solid transparent;
	border-radius: 18px;
	box-shadow: var(--nmg-shadow);
	text-align: left;
	color: var(--nmg-text) !important;
	text-decoration: none !important;
	touch-action: manipulation;
}

.nmg-action-card:active {
	transform: scale(.985);
}

.nmg-action-primary {
	background: var(--nmg-dark);
	color: #fff !important;
}

.nmg-disabled-card {
	opacity: .55;
}

.nmg-action-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 13px;
	background: #eef1f3;
	color: var(--nmg-dark);
	font-size: 23px;
	font-weight: 800;
}

.nmg-action-primary .nmg-action-icon {
	background: rgba(255,255,255,.13);
	color: #fff;
}

.nmg-action-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nmg-action-copy strong {
	font-size: 16px;
	font-weight: 900;
}

.nmg-action-copy small {
	margin-top: 4px;
	font-size: 13px;
	color: var(--nmg-muted);
	line-height: 1.3;
}

.nmg-action-primary .nmg-action-copy small {
	color: rgba(255,255,255,.72);
}

.nmg-arrow {
	justify-self: end;
	font-size: 31px;
	font-weight: 300;
	color: #8b979f;
}

.nmg-action-primary .nmg-arrow {
	color: #fff;
}

.nmg-empty-state {
	background: var(--nmg-card);
	border: 1px solid var(--nmg-border);
	border-radius: 20px;
	padding: 38px 22px;
	text-align: center;
	box-shadow: var(--nmg-shadow);
}

.nmg-empty-icon {
	width: 62px;
	height: 62px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e9f6ee;
	color: var(--nmg-success);
	font-size: 28px;
	font-weight: 900;
}

.nmg-empty-state h3 {
	margin: 0;
	font-size: 21px;
}

.nmg-empty-state p {
	max-width: 530px;
	margin: 9px auto 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--nmg-muted);
}

.nmg-search-box {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	margin-bottom: 18px;
}

.nmg-search-box input {
	min-height: 56px;
	width: 100%;
	border: 2px solid var(--nmg-border);
	border-radius: 15px;
	background: #fff;
	padding: 0 16px;
	font: inherit;
	font-size: 16px;
}

.nmg-search-box button {
	min-width: 100px;
	border: 0;
	border-radius: 15px;
	background: var(--nmg-dark);
	color: #fff;
	font-weight: 900;
	padding: 0 16px;
}

.nmg-customer-list {
	display: grid;
	gap: 10px;
}

.nmg-customer-row,
.nmg-property-row {
	display: grid;
	grid-template-columns: 52px 1fr 28px;
	align-items: center;
	gap: 13px;
	min-height: 78px;
	padding: 12px 15px;
	background: #fff;
	border: 1px solid var(--nmg-border);
	border-radius: 17px;
	box-shadow: var(--nmg-shadow);
	color: var(--nmg-text) !important;
	text-decoration: none !important;
	touch-action: manipulation;
}

.nmg-customer-avatar {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--nmg-dark);
	color: #fff;
	font-weight: 900;
	font-size: 20px;
}

.nmg-customer-row-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nmg-customer-row-copy strong {
	font-size: 17px;
}

.nmg-customer-row-copy small {
	margin-top: 4px;
	color: var(--nmg-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.nmg-alert {
	margin: 0 0 20px;
	padding: 16px 18px;
	border-radius: 14px;
	line-height: 1.45;
}

.nmg-alert strong {
	display: block;
	margin-bottom: 3px;
}

.nmg-alert p {
	margin: 7px 0;
}

.nmg-alert a {
	font-weight: 900;
}

.nmg-alert-warning {
	background: #fff7df;
	color: #744900;
	border: 1px solid #ecd18a;
}

.nmg-alert-error {
	background: #fdeaea;
	color: #8d1717;
	border: 1px solid #efbcbc;
}

.nmg-data-form {
	display: grid;
	gap: 18px;
}

.nmg-form-section {
	background: #fff;
	border: 1px solid var(--nmg-border);
	border-radius: 20px;
	padding: 22px;
	box-shadow: var(--nmg-shadow);
}

.nmg-form-section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.nmg-form-section-title > span {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--nmg-dark);
	color: #fff;
	font-weight: 900;
}

.nmg-form-section-title div {
	display: flex;
	flex-direction: column;
}

.nmg-form-section-title strong {
	font-size: 18px;
}

.nmg-form-section-title small {
	margin-top: 2px;
	color: var(--nmg-muted);
}

.nmg-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

.nmg-full {
	grid-column: 1 / -1;
}

.nmg-form-grid label {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.nmg-data-form label > span {
	font-size: 13px;
	font-weight: 800;
}

.nmg-form-grid label small {
	font-weight: 500;
	color: var(--nmg-muted);
}

.nmg-data-form input[type="text"],
.nmg-data-form input[type="email"],
.nmg-data-form input[type="tel"],
.nmg-data-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 2px solid var(--nmg-border);
	border-radius: 14px;
	background: #fff;
	padding: 14px;
	font-family: inherit;
	font-size: 17px;
	color: var(--nmg-text);
}

.nmg-data-form input {
	min-height: 54px;
}

.nmg-data-form input:focus,
.nmg-data-form textarea:focus,
.nmg-search-box input:focus {
	outline: none;
	border-color: var(--nmg-dark);
	box-shadow: 0 0 0 4px rgba(17,26,34,.08);
}

.nmg-choice-row,
.nmg-preference-grid {
	display: grid;
	grid-template-columns: repeat(2,1fr);
	gap: 10px;
	margin-bottom: 20px;
}

.nmg-preference-grid {
	grid-template-columns: repeat(3,1fr);
	margin-bottom: 0;
}

.nmg-choice,
.nmg-preference {
	position: relative;
	cursor: pointer;
}

.nmg-choice input,
.nmg-preference input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nmg-choice > span,
.nmg-preference > span {
	min-height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--nmg-border);
	border-radius: 14px;
	background: #fff;
	font-weight: 800;
	text-align: center;
}

.nmg-preference > span {
	flex-direction: column;
	gap: 3px;
}

.nmg-preference small {
	font-weight: 500;
	color: var(--nmg-muted);
}

.nmg-choice input:checked + span,
.nmg-preference input:checked + span {
	border-color: var(--nmg-dark);
	background: var(--nmg-dark);
	color: #fff;
}

.nmg-preference input:checked + span small {
	color: rgba(255,255,255,.72);
}

.nmg-form-save-area {
	padding: 4px 0 24px;
}

.nmg-autosave-message {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-bottom: 11px;
	color: var(--nmg-success);
	font-size: 13px;
	font-weight: 800;
}

.nmg-save-button,
.nmg-primary-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 62px;
	border: 0;
	border-radius: 16px;
	background: var(--nmg-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 17px;
	font-weight: 900;
	letter-spacing: .35px;
	cursor: pointer;
	touch-action: manipulation;
}

.nmg-customer-hero {
	display: flex;
	align-items: center;
	gap: 17px;
}

.nmg-large-avatar {
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 19px;
	background: var(--nmg-dark);
	color: #fff;
	font-size: 27px;
	font-weight: 900;
}

.nmg-customer-hero-copy h1 {
	margin: 0;
	font-size: clamp(28px,5vw,42px);
}

.nmg-contact-actions {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 10px;
	margin-bottom: 20px;
}

.nmg-contact-button {
	min-height: 74px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: var(--nmg-dark);
	border-radius: 16px;
	color: #fff !important;
	text-decoration: none !important;
	touch-action: manipulation;
}

.nmg-contact-button span {
	font-size: 20px;
}

.nmg-contact-button strong {
	font-size: 12px;
}

.nmg-profile-grid {
	display: grid;
	grid-template-columns: repeat(2,1fr);
	gap: 14px;
}

.nmg-full-card {
	grid-column: 1 / -1;
}

.nmg-detail-list {
	display: grid;
	gap: 17px;
}

.nmg-detail-list > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.nmg-detail-list small {
	color: var(--nmg-muted);
	font-size: 12px;
	font-weight: 700;
}

.nmg-detail-list strong {
	font-size: 15px;
	overflow-wrap: anywhere;
}

.nmg-property-list {
	display: grid;
	gap: 8px;
}

.nmg-property-row {
	grid-template-columns: 1fr 28px;
	min-height: 62px;
	box-shadow: none;
}

.nmg-property-row div {
	display: flex;
	flex-direction: column;
}

.nmg-property-row small {
	margin-top: 4px;
	color: var(--nmg-muted);
	line-height: 1.35;
}

.nmg-small-empty {
	padding: 18px;
	border-radius: 13px;
	background: var(--nmg-bg);
	color: var(--nmg-muted);
}

.nmg-notes {
	margin: 0;
	line-height: 1.6;
}

.nmg-bottom-nav {
	position: fixed;
	left: 50%;
	bottom: 14px;
	z-index: 80;
	transform: translateX(-50%);
	width: min(620px, calc(100% - 24px));
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	background: rgba(17,26,34,.97);
	border-radius: 22px;
	padding: 7px;
	box-shadow: 0 12px 35px rgba(0,0,0,.24);
}

.nmg-nav-item {
	min-height: 61px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	border-radius: 16px;
	background: transparent;
	color: #bfc7cc !important;
	text-decoration: none !important;
	touch-action: manipulation;
}

.nmg-nav-item span {
	font-size: 19px;
	line-height: 1;
}

.nmg-nav-item strong {
	font-size: 11px;
	font-weight: 800;
}

.nmg-nav-active {
	background: #fff;
	color: var(--nmg-dark) !important;
}

.nmg-nav-disabled {
	opacity: .42;
}

.nmg-login-shell {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background: var(--nmg-dark);
}

.nmg-login-card {
	width: min(440px,100%);
	background: #fff;
	border-radius: 28px;
	padding: 42px 28px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.nmg-logo-mark {
	width: 76px;
	height: 76px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 19px;
	background: var(--nmg-accent);
	color: #fff;
	font-size: 24px;
	font-weight: 900;
}

.nmg-login-card h1 {
	margin: 0;
	font-size: 29px;
	line-height: 1.08;
}

.nmg-login-card p {
	margin: 9px 0 25px;
	color: var(--nmg-muted);
}

.nmg-app-message {
	padding: 40px;
	font-family: Arial,sans-serif;
}

@media (max-width: 782px) {
	.admin-bar .nmg-topbar {
		top: 46px;
	}
}

@media (max-width: 700px) {

	.nmg-main {
		width: min(100% - 24px,1180px);
	}

	.nmg-topbar {
		padding: 11px 13px;
	}

	.nmg-brand-icon,
	.nmg-profile-button {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}

	.nmg-greeting,
	.nmg-page-heading {
		padding-top: 25px;
	}

	.nmg-stat-grid {
		gap: 8px;
	}

	.nmg-stat-card {
		padding: 17px 12px;
		border-radius: 15px;
	}

	.nmg-stat-number {
		font-size: 28px;
	}

	.nmg-stat-label {
		font-size: 11px;
	}

	.nmg-action-grid,
	.nmg-form-grid,
	.nmg-profile-grid {
		grid-template-columns: 1fr;
	}

	.nmg-full-card {
		grid-column: auto;
	}

	.nmg-action-grid {
		gap: 10px;
	}

	.nmg-action-card {
		min-height: 82px;
	}

	.nmg-page-title-row {
		align-items: center;
	}

	.nmg-form-section {
		padding: 18px 15px;
	}
}

@media (max-width: 480px) {

	.nmg-brand-name {
		font-size: 14px;
	}

	.nmg-greeting h1,
	.nmg-page-heading h1 {
		font-size: 31px;
	}

	.nmg-stat-number {
		font-size: 25px;
	}

	.nmg-page-title-row {
		flex-direction: column;
		align-items: stretch;
	}

	.nmg-add-button {
		width: 100%;
	}

	.nmg-search-box {
		grid-template-columns: 1fr;
	}

	.nmg-search-box button {
		min-height: 52px;
	}

	.nmg-preference-grid {
		grid-template-columns: repeat(3,1fr);
		gap: 6px;
	}

	.nmg-preference > span {
		min-height: 66px;
		font-size: 12px;
	}
}