:root {
	--m40-bg: #f4f6f8;
	--m40-surface: #ffffff;
	--m40-surface-soft: #f7f9fb;
	--m40-text: #252a30;
	--m40-muted: #68717c;
	--m40-border: #dfe4ea;
	--m40-primary: #1f6f7a;
	--m40-primary-hover: #175863;
	--m40-primary-soft: #edf5f6;
	--m40-success: #2f7a4d;
	--m40-success-bg: #edf8f1;
	--m40-danger: #b44747;
	--m40-danger-bg: #fff2f2;
	--m40-warning-bg: #f3f7fa;
	--m40-radius: 18px;
	--m40-control-radius: 12px;
	--m40-control-height: 50px;
	--m40-anchor-offset: 90px;
	--m40-search-radius: 10px;
	--m40-shadow: 0 16px 42px rgba(31, 53, 66, 0.08);
	--m40-section-heading-size: 28px;
}

.m40-auth-page,
.m40-account-center {
	--m40-primary: #1f6f7a;
	--m40-primary-hover: #175863;
	--m40-primary-soft: #edf5f6;
	color: var(--m40-text);
	font-family: inherit;
}

.m40-route-page,
.m40-locked-box,
.m40-smart-search {
	--m40-primary: #1f6f7a;
	--m40-primary-hover: #175863;
	--m40-primary-soft: #edf5f6;
}

.m40-auth-page {
	padding: 24px 14px;
}

.m40-auth-shell {
	width: min(100%, 560px);
	margin: 0 auto;
}

.m40-auth-brand {
	margin-bottom: 14px;
	color: var(--m40-primary);
	font-size: 18px;
	font-weight: 750;
	text-align: center;
}

.m40-auth-card,
.m40-account-section,
.m40-card {
	border: 1px solid var(--m40-border);
	border-radius: var(--m40-radius);
	background: var(--m40-surface);
	box-shadow: var(--m40-shadow);
}

.m40-auth-card {
	padding: clamp(22px, 4vw, 34px);
}

.m40-auth-card__header {
	margin-bottom: 16px;
	text-align: center;
}

.m40-auth-card__header h1,
.m40-account-hero h1,
.m40-account-section__header h2,
.m40-account-box > h2 {
	margin: 0;
	color: var(--m40-text);
	line-height: 1.2;
}

.m40-auth-card__header h1 {
	font-size: clamp(28px, 4.5vw, 36px);
}

.m40-auth-subtitle,
.m40-account-hero p,
.m40-account-section__header p,
.m40-support-intro,
.m40-support-file-note,
.m40-auth-field small {
	color: var(--m40-muted);
}

.m40-auth-subtitle {
	max-width: 420px;
	margin: 10px auto 0;
	line-height: 1.55;
}

.m40-auth-form {
	display: grid;
	gap: 14px;
}

.m40-auth-field {
	display: grid;
	gap: 8px;
	font-weight: 650;
}

.m40-auth-field > span:first-child {
	font-size: 14px;
}

.m40-auth-field input[type="text"],
.m40-auth-field input[type="email"],
.m40-auth-field input[type="password"],
.m40-support-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #cfd6de;
	border-radius: var(--m40-control-radius);
	background: #fff;
	color: var(--m40-text);
	font: inherit;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.m40-auth-field input[type="text"],
.m40-auth-field input[type="email"],
.m40-auth-field input[type="password"] {
	min-height: var(--m40-control-height);
	padding: 12px 14px;
}

.m40-auth-field input:focus,
.m40-support-form textarea:focus {
	outline: none;
	border-color: var(--m40-primary);
	box-shadow: 0 0 0 3px rgba(31, 111, 122, .15);
}

.m40-password-field {
	position: relative;
	display: block;
}

.m40-password-field input {
	padding-right: 58px !important;
}

.m40-password-toggle {
	position: absolute;
	top: 50%;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 40px !important;
	padding: 0 !important;
	transform: translateY(-50%);
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--m40-primary) !important;
	box-shadow: none !important;
	cursor: pointer;
}

.m40-password-toggle:hover {
	background: #edf4f6 !important;
}

.m40-password-toggle:focus-visible {
	background: #edf4f6 !important;
	outline: 2px solid var(--m40-primary);
	outline-offset: 2px;
}

.m40-password-toggle__icon {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.m40-password-toggle__slash {
	opacity: 0;
	transition: opacity .15s ease;
}

.m40-password-toggle.is-visible .m40-password-toggle__slash {
	opacity: 1;
}

.m40-screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Neutralise the yellow browser autofill background. */
.m40-auth-field input:-webkit-autofill,
.m40-auth-field input:-webkit-autofill:hover,
.m40-auth-field input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--m40-text);
	-webkit-box-shadow: 0 0 0 1000px var(--m40-surface) inset !important;
	box-shadow: 0 0 0 1000px var(--m40-surface) inset !important;
	transition: background-color 9999s ease-out 0s;
}


.m40-auth-submit,
.m40-auth-button,
.m40-support-submit,
.m40-payment-button,
.m40-button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--m40-control-height);
	padding: 12px 20px;
	border: 0;
	border-radius: var(--m40-control-radius);
	background: var(--m40-primary);
	color: #fff !important;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .15s ease, background .2s ease;
}

.m40-button-secondary {
	border: 1px solid var(--m40-primary);
	background: var(--m40-surface);
	color: var(--m40-primary) !important;
}

.m40-button-secondary:hover,
.m40-button-secondary:focus-visible {
	background: #f1f7f8;
}

.m40-button-secondary:focus-visible,
.m40-auth-submit:focus-visible,
.m40-auth-button:focus-visible,
.m40-support-submit:focus-visible,
.m40-payment-button:focus-visible {
	outline: 2px solid var(--m40-primary);
	outline-offset: 2px;
}

.m40-auth-submit:hover,
.m40-auth-button:hover,
.m40-support-submit:hover,
.m40-payment-button:hover {
	background: var(--m40-primary-hover);
	transform: translateY(-1px);
}

.m40-auth-submit:active,
.m40-auth-button:active,
.m40-support-submit:active,
.m40-payment-button:active {
	background: var(--m40-primary-hover);
	transform: translateY(0);
}

.m40-auth-submit:disabled,
.m40-support-submit:disabled,
.m40-payment-button:disabled {
	border-color: #cfd6de;
	background: #cfd6de;
	color: #68717c !important;
	cursor: not-allowed;
	transform: none;
}

.m40-auth-page a:not(.m40-auth-button),
.m40-account-center a:not(.m40-payment-button) {
	color: var(--m40-primary);
}

.m40-auth-page a:not(.m40-auth-button):hover,
.m40-account-center a:not(.m40-payment-button):hover {
	color: var(--m40-primary-hover);
}

.m40-route-page a:not(.m40-auth-button) {
	color: var(--m40-primary);
}

.m40-route-page a:not(.m40-auth-button):hover {
	color: var(--m40-primary-hover);
}

.m40-auth-form__row,
.m40-auth-check,
.m40-auth-links {
	display: flex;
	align-items: center;
}

.m40-auth-form__row,
.m40-auth-links {
	justify-content: space-between;
	gap: 16px;
}

.m40-auth-check {
	gap: 9px;
	font-weight: 400;
}

.m40-auth-check input {
	margin: 0;
}

.m40-auth-check--terms {
	align-items: flex-start;
	line-height: 1.45;
}

.m40-auth-switch,
.m40-auth-links {
	margin: 3px 0 0;
	text-align: center;
}

.m40-auth-switch a,
.m40-auth-links a,
.m40-auth-form__row a {
	color: var(--m40-primary);
	font-weight: 700;
}

.m40-legal-text {
	margin: 2px 0 0;
	color: var(--m40-muted);
	font-size: 13px;
	line-height: 1.5;
}

.m40-legal-confirmation,
.m40-payment-legal__form {
	display: grid;
	gap: 12px;
}

.m40-legal-check {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	color: var(--m40-text);
	font-size: 14px;
	line-height: 1.45;
}

.m40-legal-check input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--m40-primary);
}

.m40-payment-legal {
	display: grid;
	gap: 12px;
	min-width: 0;
}

.m40-payment-legal--unavailable {
	padding: 12px;
	color: var(--m40-danger);
	background: #fff5f5;
	border: 1px solid #f2c7c7;
	border-radius: var(--m40-control-radius);
}

.m40-payment-legal .m40-payment-button {
	width: 100%;
	white-space: normal;
	text-align: center;
}

.m40-payment-legal .m40-payment-button.m40-payment-submit--inactive {
	border-color: #cfd6de;
	background: #cfd6de;
	color: #68717c !important;
}

.m40-payment-validation-error {
	min-height: 20px;
	margin: -6px 0 0 32px;
	color: var(--m40-danger);
	font-size: 13px;
	line-height: 1.45;
}

.m40-field-status {
	min-height: 0;
}

.m40-field-status:empty {
	display: none;
}

.m40-field-status.is-success { color: var(--m40-success); }
.m40-field-status.is-error { color: var(--m40-danger); }

.m40-auth-notice,
.m40-support-notice {
	padding: 13px 15px;
	margin-bottom: 18px;
	border: 1px solid #cbe7d4;
	border-radius: 12px;
	background: var(--m40-success-bg);
	color: var(--m40-success);
	line-height: 1.5;
}

.m40-auth-notice--error,
.m40-support-notice--error {
	border-color: #efcaca;
	background: var(--m40-danger-bg);
	color: var(--m40-danger);
}

.m40-auth-empty {
	margin-top: 0;
	color: var(--m40-muted);
	line-height: 1.6;
}

.m40-account-center {
	width: min(100%, 1040px);
	margin: 32px auto;
}

.m40-account-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(24px, 4vw, 38px);
	margin-bottom: 22px;
	border-radius: 24px;
	background: linear-gradient(135deg, #eef3f6 0%, #f7f9fb 65%, #fff 100%);
	border: 1px solid #d8e1e7;
}

.m40-account-hero__eyebrow,
.m40-account-section__kicker {
	display: block;
	margin-bottom: 8px;
	color: var(--m40-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.m40-account-hero h1 {
	min-width: 0;
	max-width: 100%;
	font-size: var(--m40-section-heading-size) !important;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.m40-account-hero > div {
	min-width: 0;
}

.m40-account-hero p {
	max-width: 650px;
	margin: 12px 0 0;
	line-height: 1.6;
}

.m40-account-logout {
	flex: 0 0 auto;
	padding: 10px 14px;
	border: 1px solid #cfd8df;
	border-radius: 10px;
	background: rgba(255,255,255,.72);
	color: var(--m40-primary);
	font-weight: 700;
	text-decoration: none;
}

.m40-account-logout:hover,
.m40-account-logout:focus-visible {
	border-color: var(--m40-primary);
	background: var(--m40-primary-soft);
}

.m40-account-nav {
	display: flex;
	gap: 8px;
	padding: 8px;
	margin-bottom: 18px;
	overflow-x: auto;
	border: 1px solid var(--m40-border);
	border-radius: 14px;
	background: var(--m40-surface);
	box-shadow: 0 8px 24px rgba(31, 53, 66, .05);
	scrollbar-width: thin;
}

.m40-account-nav a {
	flex: 0 0 auto;
	padding: 9px 12px;
	border-radius: 9px;
	color: var(--m40-primary);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.m40-account-nav a:hover,
.m40-account-nav a:focus-visible {
	background: var(--m40-surface-soft);
}

.m40-account-nav a:focus-visible {
	outline: 2px solid var(--m40-primary);
	outline-offset: 1px;
}

.m40-account-box {
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
}

.m40-account-box > h2 {
	display: none;
}

.m40-card,
.m40-account-section {
	padding: clamp(20px, 3vw, 30px);
	margin-top: 18px;
	box-shadow: 0 12px 32px rgba(31, 53, 66, .06);
}

.m40-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 13px 0;
	border-bottom: 1px solid #e5e9ee;
}

.m40-row:last-child {
	border-bottom: 0;
}

.m40-title {
	color: var(--m40-muted);
	font-weight: 650;
}

.m40-value {
	font-weight: 700;
	text-align: right;
}

.m40-success,
.m40-danger {
	font-weight: 800;
}

.m40-success { color: var(--m40-success); }
.m40-danger { color: var(--m40-danger); }

.m40-account-section__header,
.m40-support-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.m40-account-section__header h2,
.m40-support-card__header h3 {
	margin: 0;
}

.m40-account-section__header h2,
.m40-support-card__header h2 {
	font-size: var(--m40-section-heading-size);
}

.m40-support-dialog-state {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--m40-primary-soft);
	color: var(--m40-primary);
	font-size: 13px;
	font-weight: 750;
}

.m40-support-dialog-state.is-resolved {
	background: var(--m40-surface-soft);
	color: var(--m40-muted);
}

.m40-support-status-form {
	margin: 0;
}

.m40-message-meta {
	display: flex;
	align-items: center;
	gap: 7px;
}

.m40-message-receipt {
	color: var(--m40-muted);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: -3px;
}

.m40-message-receipt--read {
	color: var(--m40-primary);
}

.m40-support-card__header h2 {
	margin: 0;
}

.m40-account-section__header p {
	max-width: 360px;
	margin: 0;
	text-align: right;
}

.m40-profile-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.m40-overview-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.m40-overview-card {
	display: grid;
	gap: 7px;
	padding: 16px;
	border: 1px solid var(--m40-border);
	border-radius: var(--m40-control-radius);
	background: var(--m40-surface-soft);
}

.m40-overview-card span,
.m40-muted {
	color: var(--m40-muted);
}

.m40-quick-links,
.m40-payment-success__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.m40-quick-links a {
	padding: 9px 12px;
	border: 1px solid var(--m40-border);
	border-radius: 9px;
	background: var(--m40-surface);
	font-weight: 700;
	text-decoration: none;
}

.m40-access-state {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 800;
}

.m40-account-subsection {
	padding-top: 22px;
	margin-top: 22px;
	border-top: 1px solid var(--m40-border);
}

.m40-account-subsection h3 {
	margin: 0 0 14px;
}

.m40-account-disclosure summary {
	padding: 4px 34px 4px 0;
	color: var(--m40-primary);
	font-size: 17px;
	font-weight: 750;
	cursor: pointer;
}

.m40-account-disclosure summary:focus-visible {
	border-radius: 6px;
	outline: 2px solid var(--m40-primary);
	outline-offset: 4px;
}

.m40-account-disclosure__body {
	padding-top: 18px;
}

.m40-pending-email {
	padding: 14px;
	margin-bottom: 16px;
	border: 1px solid var(--m40-border);
	border-radius: var(--m40-control-radius);
	background: var(--m40-surface-soft);
}

.m40-pending-email p { margin-top: 0; }

.m40-security-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

.m40-security-facts div {
	padding: 15px;
	border: 1px solid var(--m40-border);
	border-radius: var(--m40-control-radius);
	background: var(--m40-surface-soft);
}

.m40-security-facts dt { color: var(--m40-muted); font-size: 13px; }
.m40-security-facts dd { margin: 6px 0 0; font-weight: 750; }
.m40-logout-all-form { margin-top: 22px; }

.m40-payment-table-wrap {
	overflow-x: auto;
}

.m40-payment-table {
	width: 100%;
	border-collapse: collapse;
}

.m40-payment-table th,
.m40-payment-table td {
	padding: 12px;
	border-bottom: 1px solid var(--m40-border);
	text-align: left;
}

.m40-payment-table th { color: var(--m40-muted); font-size: 13px; }
.m40-payment-status { color: var(--m40-success); font-weight: 750; }

.m40-empty-state {
	display: grid;
	gap: 5px;
	padding: 20px;
	border: 1px dashed var(--m40-border);
	border-radius: var(--m40-control-radius);
	background: var(--m40-surface-soft);
	text-align: center;
}

.m40-empty-state span { color: var(--m40-muted); }

.m40-support-intro {
	margin: 0 0 20px;
	line-height: 1.55;
}

.m40-user-chat {
	display: grid;
	gap: 12px;
	max-height: 540px;
	padding: 16px;
	margin-bottom: 20px;
	overflow-y: auto;
	border: 1px solid var(--m40-border);
	border-radius: 16px;
	background: var(--m40-surface-soft);
}

.m40-user-chat__message {
	max-width: 82%;
	padding: 13px 15px;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0,0,0,.035);
}

.m40-user-chat__message--user {
	justify-self: end;
	background: #e8f0f4;
	border-bottom-right-radius: 5px;
}

.m40-user-chat__message--admin {
	justify-self: start;
	background: #eef6f0;
	border-bottom-left-radius: 5px;
}

.m40-user-chat__author {
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 800;
	color: var(--m40-muted);
}

.m40-user-chat__text {
	line-height: 1.55;
}

.m40-user-chat time {
	display: block;
	margin-top: 7px;
	font-size: 11px;
	color: var(--m40-muted);
}

.m40-support-form {
	display: grid;
	gap: 14px;
	padding-top: 16px;
	border-top: 1px solid var(--m40-border);
}

.m40-support-form label {
	display: grid;
	gap: 7px;
	font-weight: 650;
}

.m40-support-form textarea {
	min-height: 120px;
	padding: 13px 14px;
	resize: vertical;
}

.m40-support-form textarea::placeholder {
	color: #8b949e;
	font-weight: 400;
	opacity: 1;
}

.m40-support-submit {
	justify-self: start;
}

.m40-support-file-picker {
	display: grid;
	gap: 8px;
}

.m40-support-form .m40-support-file {
	position: relative;
	display: block;
	cursor: pointer;
}

.m40-support-file__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.m40-support-file__trigger {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 12px 14px;
	box-sizing: border-box;
	border: 1px dashed var(--m40-border);
	border-radius: var(--m40-control-radius);
	background: var(--m40-surface-soft);
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.m40-support-file:hover .m40-support-file__trigger,
.m40-support-file:focus-within .m40-support-file__trigger {
	border-color: var(--m40-primary);
	background: var(--m40-surface);
}

.m40-support-file:focus-within .m40-support-file__trigger {
	box-shadow: 0 0 0 3px rgba(31, 111, 122, .15);
}

.m40-support-file__icon {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: var(--m40-primary);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.m40-support-file__title,
.m40-support-file__hint {
	display: block;
}

.m40-support-file__title {
	color: var(--m40-primary);
	font-weight: 750;
}

.m40-support-file__hint {
	margin-top: 3px;
	color: var(--m40-muted);
	font-size: 13px;
	font-weight: 400;
}

.m40-support-file__selection {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 12px;
	border: 1px solid var(--m40-border);
	border-radius: var(--m40-control-radius);
	background: var(--m40-surface-soft);
}

.m40-support-file__selection[hidden] {
	display: none;
}

.m40-support-file__name {
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 14px;
	font-weight: 650;
}

.m40-support-file__clear {
	flex: 0 0 auto;
	min-height: 36px !important;
	padding: 4px 6px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--m40-primary) !important;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.m40-support-file__clear:hover,
.m40-support-file__clear:focus-visible {
	text-decoration: underline;
}

.m40-support-file-note {
	margin: -4px 0 2px;
	font-size: 13px;
}

.m40-chat-attachment {
	display: block;
	margin-top: 10px;
}

.m40-chat-attachment img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 12px;
}

/* Smart search */
.m40-smart-search {
	position: relative;
	color: var(--m40-text);
}

.m40-smart-search--compact {
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: var(--m40-surface);
	box-shadow: none;
}

.m40-smart-search--compact h2 {
	margin: 0 0 14px;
	font-size: 21px;
}

.m40-smart-search__form {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.m40-smart-search__form input[type="search"] {
	width: 100%;
	min-height: 42px;
	box-sizing: border-box;
	padding: 9px 12px;
	border: 1px solid #cfd6de;
	border-radius: 10px;
	background: #fff;
	color: var(--m40-text);
	font: inherit;
}

.m40-smart-search__form input[type="search"]:focus {
	outline: none;
	border-color: var(--m40-primary);
	box-shadow: 0 0 0 3px rgba(31, 111, 122, .15);
}

.m40-search-suggestions {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 999990;
	width: 100%;
	max-height: 620px;
	box-sizing: border-box;
	padding: 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 0;
	border-radius: 12px;
	background: rgba(247, 249, 250, .98);
	box-shadow: 0 12px 36px rgba(0, 0, 0, .12);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease;
}

.m40-search-suggestions.opens-up {
	top: auto;
	bottom: calc(100% + 6px);
	transform: translateY(6px);
}

.m40-search-suggestions.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.m40-search-suggestions[hidden] { display: none; }

.m40-search-suggestions__group {
	display: grid;
	gap: 6px;
	padding: 5px;
	margin-bottom: 6px;
	border-radius: 10px;
}

.m40-search-suggestions__group-title {
	padding: 2px 5px;
	color: var(--m40-primary);
	font-size: 13px;
	font-weight: 750;
	line-height: 1.35;
}

.m40-search-suggestions__card {
	display: grid;
	gap: 4px;
	padding: 9px 10px;
	border: 1px solid #dfe5e9;
	border-radius: 9px;
	background: #fff;
	color: var(--m40-text) !important;
	text-decoration: none;
	transition: border-color .16s ease, background-color .16s ease;
}

.m40-search-suggestions strong { color: var(--m40-text); font-size: 14px; font-weight: 650; }

.m40-search-suggestions__card:hover,
.m40-search-suggestions__card.is-active {
	border-color: color-mix(in srgb, var(--m40-primary) 28%, #dfe5e9);
	background: var(--m40-primary-soft);
}

.m40-search-suggestions__card:focus-visible,
.m40-search-suggestions__all:focus-visible {
	outline: 2px solid var(--m40-primary);
	outline-offset: -2px;
}

.m40-search-suggestions span {
	color: var(--m40-muted);
	font-size: 12px;
}

.m40-search-suggestions small {
	display: -webkit-box;
	overflow: hidden;
	color: var(--m40-muted);
	font-size: 12px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.m40-search-suggestions__locked {
	color: var(--m40-danger) !important;
	font-size: 11px !important;
	font-weight: 700;
}

.m40-search-suggestions__all {
	display: block;
	padding: 10px 12px 4px;
	margin: 8px 5px 2px;
	border-top: 1px solid var(--m40-border);
	color: var(--m40-primary) !important;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.m40-search-suggestions [data-search-status] {
	display: block;
	padding: 10px 12px;
	color: var(--m40-muted);
	font-size: 13px;
}

.m40-search-suggestions [data-search-status].is-error {
	color: var(--m40-danger);
}

.m40-search-suggestions [data-search-status] > span {
	display: block;
}

.m40-search-retry {
	padding: 6px 10px;
	margin-top: 8px;
	border: 1px solid var(--m40-primary);
	border-radius: var(--m40-search-radius);
	background: #fff;
	color: var(--m40-primary);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.m40-search-retry:hover,
.m40-search-retry:focus-visible {
	background: var(--m40-primary-soft);
	outline: 2px solid var(--m40-primary);
	outline-offset: 2px;
}

.m40-search-helper {
	grid-column: 1 / -1;
	margin: -1px 0 0;
	color: var(--m40-muted);
	font-size: 12px;
}

.m40-global-search {
	position: relative;
	z-index: 1;
	width: min(220px, calc(100% - 24px));
	margin: 0 0 18px auto;
	padding: 0;
	background: transparent;
	touch-action: manipulation;
}

.m40-global-search.is-portal,
.m40-smart-search--compact.is-portal {
	position: fixed;
	z-index: 999980;
	max-width: none;
	margin: 0;
}

.m40-global-search.is-active,
.m40-smart-search--compact.is-active {
	border-radius: var(--m40-search-radius);
}

.m40-search-portal-placeholder {
	display: block;
	box-sizing: border-box;
}

.m40-smart-search--compact .m40-smart-search__form {
	grid-template-columns: minmax(0, 1fr) 0;
	gap: 0;
	border-radius: var(--m40-search-radius);
	touch-action: manipulation;
}

.m40-smart-search--compact.is-active .m40-smart-search__form {
	grid-template-columns: minmax(0, 1fr) minmax(68px, auto);
	gap: 2px;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.m40-smart-search--compact.is-active .m40-smart-search__form:focus-within {
	box-shadow: 0 0 0 3px rgba(31, 111, 122, .18);
}

.m40-smart-search--compact.is-active .m40-smart-search__form input[type="search"] {
	min-height: 44px;
	border: 1px solid #cfd6de;
	border-radius: var(--m40-search-radius);
	background: #fff;
}

.m40-smart-search--compact .m40-smart-search__form input[type="search"] {
	min-height: 44px;
	border-radius: var(--m40-search-radius);
	touch-action: manipulation;
}

.m40-smart-search--compact.is-active .m40-smart-search__form input[type="search"]:focus {
	box-shadow: none;
}

.m40-smart-search--compact .m40-auth-submit {
	width: 0;
	min-width: 0;
	max-width: 0;
	min-height: 42px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-width: 0;
	border-radius: var(--m40-search-radius);
	opacity: 0;
	transform: translateX(8px);
	letter-spacing: normal;
	pointer-events: none;
	transition: opacity .2s ease, transform .25s ease;
}

.m40-smart-search--compact.is-active .m40-auth-submit {
	-webkit-appearance: none;
	appearance: none;
	width: auto;
	min-width: 68px;
	max-width: none;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid #6f9fa6;
	border-radius: var(--m40-search-radius);
	box-shadow: none;
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

.m40-search-highlight {
	padding: 0 .14em;
	border-radius: 3px;
	background: #d9edf0;
	background: color-mix(in srgb, var(--m40-primary) 18%, #fff);
	color: #17343a;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.m40-search-hit {
	padding: 0 .12em;
	border-radius: 3px;
	background: #bfe7ec;
	color: inherit;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	transition: background-color 1s ease, opacity 1s ease;
}

.m40-search-hit.is-fading { background: transparent; opacity: .65; }

body.m40-locked-modal-open .m40-search-overlay { pointer-events: none; }

@media (max-width: 640px) {
	.m40-global-search { width: min(220px, calc(100% - 24px)); margin-right: 12px; }
	.m40-smart-search--compact.is-active .m40-auth-submit { min-width: 64px; padding-inline: 11px; }
}

.m40-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 999970;
	background: rgba(10, 20, 30, .24);
	opacity: 0;
	pointer-events: auto;
	touch-action: manipulation;
	transition: opacity .22s ease;
}

.m40-search-overlay.is-visible { opacity: 1; }
.m40-search-overlay.is-closing { opacity: 0; }

@supports (backdrop-filter: blur(2px)) {
	.m40-search-overlay {
		background: rgba(10, 20, 30, .15);
		backdrop-filter: blur(1.75px);
	}
}

@supports (-webkit-backdrop-filter: blur(2px)) {
	.m40-search-overlay {
		background: rgba(10, 20, 30, .15);
		-webkit-backdrop-filter: blur(1.75px);
	}
}

.m40-smart-search__form.is-active { z-index: 1; }

.m40-search-anchor,
.site-content [id]:target,
.elementor [id]:target { scroll-margin-top: var(--m40-anchor-offset, 90px); }

@media (prefers-reduced-motion: reduce) {
	.m40-global-search,
	.m40-global-search.is-portal,
	.m40-smart-search--compact.is-portal,
	.m40-smart-search--compact .m40-auth-submit,
	.m40-search-suggestions,
	.m40-search-overlay { transition: none; }
	.m40-search-hit { transition: none; }
}

.m40-search-results {
	display: grid;
	gap: 24px;
	margin-top: 22px;
}

.m40-search-result-group {
	display: grid;
	gap: 10px;
}

.m40-search-result-group__title {
	margin: 0;
	color: var(--m40-primary);
	font-size: clamp(20px, 3vw, 24px);
	line-height: 1.3;
}

.m40-search-result-group__items {
	display: grid;
	gap: 10px;
}

.m40-search-result-card { margin: 0; }

.m40-search-result-card__clickable {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--m40-border);
	border-radius: var(--m40-control-radius);
	background: var(--m40-surface);
	color: var(--m40-text) !important;
	text-decoration: none !important;
	transition: border-color .16s ease, background-color .16s ease;
}

.m40-search-result-card__clickable:hover,
.m40-search-result-card__clickable:focus-visible {
	border-color: color-mix(in srgb, var(--m40-primary) 38%, var(--m40-border));
	background: var(--m40-primary-soft);
}

.m40-search-result-card__clickable:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--m40-primary) 30%, transparent);
	outline-offset: 2px;
}

.m40-search-result-card h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.35; }
.m40-search-result-card p {
	display: -webkit-box;
	margin: 5px 0 0;
	overflow: hidden;
	color: var(--m40-muted);
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}
.m40-search-locked { color: var(--m40-danger); font-weight: 700; }

/* Personal route */
.m40-route-card p { margin: 8px 0 14px; }
.m40-route-percent { color: var(--m40-primary); font-size: 24px; }
.m40-route-page { width: min(100%, 980px); margin: 26px auto; color: var(--m40-text); }
.m40-route-header,
.m40-route-progress,
.m40-route-choices,
.m40-route-change {
	padding: clamp(20px, 4vw, 32px);
	margin-bottom: 18px;
	border: 1px solid var(--m40-border);
	border-radius: var(--m40-radius);
	background: var(--m40-surface);
	box-shadow: 0 12px 32px rgba(31, 53, 66, .06);
}
.m40-route-header span { color: var(--m40-primary); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.m40-route-header h1 { margin: 7px 0 10px; }
.m40-route-header p { max-width: 760px; margin: 0; color: var(--m40-muted); line-height: 1.55; }
.m40-route-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m40-route-choice { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--m40-border); border-radius: var(--m40-control-radius); background: var(--m40-surface-soft); }
.m40-route-choice h3 { margin-top: 0; }
.m40-route-choice p { flex-grow: 1; color: var(--m40-muted); }
.m40-route-choice form { display: grid; gap: 12px; }
.m40-route-confirm { display: flex; align-items: flex-start; gap: 8px; color: var(--m40-muted); font-size: 13px; line-height: 1.4; }
.m40-route-progress__heading { display: flex; justify-content: space-between; gap: 20px; }
.m40-route-progress__heading h2 { margin: 0 0 8px; }
.m40-route-progress__heading p { margin: 0; color: var(--m40-muted); }
.m40-route-progress__heading > strong { color: var(--m40-primary); font-size: 28px; }
.m40-route-progressbar { display: block; width: 100%; height: 10px; margin: 20px 0; overflow: hidden; border: 0; border-radius: 999px; background: #e4e9ed; appearance: none; }
.m40-route-progressbar::-webkit-progress-bar { border-radius: 999px; background: #e4e9ed; }
.m40-route-progressbar::-webkit-progress-value { border-radius: 999px; background: var(--m40-primary); }
.m40-route-progressbar::-moz-progress-bar { border-radius: 999px; background: var(--m40-primary); }
.m40-route-stages { display: grid; gap: 12px; }
.m40-route-stage { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--m40-border); border-radius: var(--m40-control-radius); }
.m40-route-stage.is-current { border-color: var(--m40-primary); box-shadow: 0 0 0 2px var(--m40-primary-soft); }
.m40-route-stage.is-complete { background: var(--m40-primary-soft); }
.m40-route-stage__number { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--m40-primary-soft); color: var(--m40-primary); font-weight: 800; }
.m40-route-stage.is-complete .m40-route-stage__number { background: var(--m40-primary); color: #fff; }
.m40-route-stage__title { display: flex; justify-content: space-between; gap: 12px; }
.m40-route-stage__title h3 { margin: 0; }
.m40-route-stage__title span { color: var(--m40-primary); font-size: 12px; font-weight: 750; }
.m40-route-stage__body > p { color: var(--m40-muted); }
.m40-route-hint { padding: 10px 12px; border-radius: 8px; background: var(--m40-primary-soft); }
.m40-route-materials { display: grid; gap: 7px; margin: 14px 0; }
.m40-route-materials h4 { margin: 0 0 3px; }
.m40-route-materials a { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--m40-border); border-radius: 8px; text-decoration: none; }
.m40-route-materials small { color: var(--m40-danger); }
.m40-route-change summary { color: var(--m40-primary); font-weight: 750; cursor: pointer; }
.m40-route-change .m40-route-choices { padding: 20px 0 0; margin: 0; border: 0; box-shadow: none; }

@media (max-width: 760px) {
	.m40-auth-page {
		padding: 14px 10px;
	}

	.m40-auth-card {
		padding: 20px 16px;
		border-radius: 16px;
	}

	.m40-auth-form__row,
	.m40-account-hero,
	.m40-account-section__header,
	.m40-support-card__header,
	.m40-row {
		align-items: stretch;
		flex-direction: column;
	}

	.m40-auth-form__row {
		gap: 10px;
	}

	.m40-account-center {
		margin: 18px auto;
	}

	.m40-account-hero {
		padding: 22px 18px;
		border-radius: 18px;
	}

	.m40-account-hero h1 {
		font-size: var(--m40-section-heading-size) !important;
	}

	.m40-account-logout {
		text-align: center;
	}

	.m40-account-section__header p {
		max-width: none;
		text-align: left;
	}

	.m40-profile-grid {
		grid-template-columns: 1fr;
	}

	.m40-overview-grid,
	.m40-security-facts {
		grid-template-columns: 1fr;
	}

	.m40-value {
		text-align: left;
	}

	.m40-auth-submit,
	.m40-auth-button,
	.m40-support-submit,
	.m40-button-secondary,
	.m40-payment-button {
		width: 100%;
	}

	.m40-payment-success__actions {
		flex-direction: column;
	}

	.m40-payment-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.m40-payment-table tr,
	.m40-payment-table td {
		display: block;
	}

	.m40-payment-table tr {
		padding: 10px 0;
		border-bottom: 1px solid var(--m40-border);
	}

	.m40-payment-table td {
		display: flex;
		justify-content: space-between;
		gap: 14px;
		padding: 7px 0;
		border: 0;
		text-align: right;
		overflow-wrap: anywhere;
	}

	.m40-payment-table td::before {
		content: attr(data-label);
		color: var(--m40-muted);
		font-weight: 650;
		text-align: left;
	}

	.m40-support-file__selection {
		align-items: flex-start;
		flex-direction: column;
	}

	.m40-user-chat__message {
		max-width: 92%;
	}

	.m40-route-choice-grid {
		grid-template-columns: 1fr;
	}

	.m40-route-page {
		margin: 14px auto;
	}

	.m40-route-progress__heading,
	.m40-route-stage__title {
		flex-direction: column;
	}

	.m40-route-stage {
		grid-template-columns: 1fr;
	}
}
