/**
 * Journal Membership — Frontend styles
 */

.jm-registration-wrap,
.jm-login-wrap,
.jm-profile-wrap,
.jm-dashboard-wrap {
	position: relative;
	margin: 0 auto;
	animation: jmFadeIn 0.4s ease;
}

@keyframes jmFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

/* Form card */
.jm-registration-wrap,
.jm-login-wrap {
	max-width: var(--jm-width, 960px);
	width: 100%;
	font-family: var(--jm-font, inherit);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.jm-login-wrap,
.jm-confirm-wrap {
	max-width: var(--jm-width, 720px);
}

.jm-registration-wrap .jm-form-card,
.jm-login-wrap .jm-form-card {
	background: var(--jm-form-bg, #fff) !important;
	border: var(--jm-form-border-w, 1px) solid var(--jm-form-border-color, #e8ecf1) !important;
	border-radius: calc(var(--jm-radius, 10px) + 4px);
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
	overflow: hidden;
	max-width: 100%;
}

.jm-form-card-header {
	padding: 28px 32px 20px;
	background: color-mix(in srgb, var(--jm-form-bg, #fff) 88%, var(--jm-primary, #2563eb) 12%);
	border-bottom: var(--jm-form-border-w, 1px) solid var(--jm-form-border-color, #e8ecf1);
}

.jm-form-title {
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.jm-form-subtitle {
	margin: 0;
	color: #64748b;
	font-size: 0.95rem;
}

.jm-form {
	padding: 28px 32px 32px;
}

/* Auto-adjusting column widths — two 50% fields share one row */
.jm-registration-wrap .jm-fields-grid,
.jm-login-wrap .jm-fields-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	width: 100%;
	margin: 0 -10px;
}

.jm-registration-wrap .jm-field,
.jm-login-wrap .jm-field {
	padding: 0 10px 18px;
	box-sizing: border-box;
	margin: 0;
	float: none;
	position: relative;
	animation: jmFieldIn 0.3s ease both;
}

.jm-registration-wrap .jm-field.jm-w-25,
.jm-login-wrap .jm-field.jm-w-25 {
	flex: 0 0 25%;
	width: 25%;
	max-width: 25%;
}

.jm-registration-wrap .jm-field.jm-w-33,
.jm-login-wrap .jm-field.jm-w-33 {
	flex: 0 0 33.3333%;
	width: 33.3333%;
	max-width: 33.3333%;
}

.jm-registration-wrap .jm-field.jm-w-50,
.jm-login-wrap .jm-field.jm-w-50 {
	flex: 0 0 50%;
	width: 50%;
	max-width: 50%;
}

.jm-registration-wrap .jm-field.jm-w-66,
.jm-login-wrap .jm-field.jm-w-66 {
	flex: 0 0 66.6667%;
	width: 66.6667%;
	max-width: 66.6667%;
}

.jm-registration-wrap .jm-field.jm-w-75,
.jm-login-wrap .jm-field.jm-w-75 {
	flex: 0 0 75%;
	width: 75%;
	max-width: 75%;
}

.jm-registration-wrap .jm-field.jm-w-100,
.jm-registration-wrap .jm-field.jm-field-full,
.jm-login-wrap .jm-field.jm-w-100,
.jm-login-wrap .jm-field.jm-field-full {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
}

.jm-html-content {
	width: 100%;
	line-height: 1.55;
	color: inherit;
	white-space: normal;
}

.jm-html-content p:last-child {
	margin-bottom: 0;
}

.jm-html-content img {
	max-width: 100%;
	height: auto;
}

@keyframes jmFieldIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.jm-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 7px;
	letter-spacing: 0.01em;
}

.jm-required {
	color: #dc2626;
	font-weight: 700;
}

.jm-control {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	font-size: 0.95rem;
	line-height: 1.4;
	color: #0f172a;
	background: var(--jm-input-bg, #fff);
	border: var(--jm-input-border-w, 1.5px) solid var(--jm-input-border-color, #dbe2ea);
	border-radius: var(--jm-radius, 10px);
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.jm-control:hover {
	border-color: color-mix(in srgb, var(--jm-input-border-color, #dbe2ea) 60%, #64748b 40%);
}

.jm-control:focus {
	outline: none;
	border-color: var(--jm-primary, #2563eb);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--jm-primary, #2563eb) 18%, transparent);
}

textarea.jm-control {
	min-height: 110px;
	resize: vertical;
}

.jm-style-filled .jm-control {
	background: var(--jm-input-bg, #f1f5f9);
	border-color: transparent;
}

.jm-style-underline .jm-control {
	border: none;
	border-bottom: var(--jm-input-border-w, 2px) solid var(--jm-input-border-color, #dbe2ea);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	padding-left: 0;
	padding-right: 0;
}

.jm-registration-wrap .jm-field.jm-field-hidden {
	display: none !important;
}

.jm-field-error {
	color: #dc2626;
	font-size: 0.78rem;
	min-height: 1.1em;
	margin-top: 4px;
}

.jm-field.has-error .jm-control {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.jm-field.has-success .jm-control {
	border-color: #16a34a;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.jm-pass-ok {
	color: #16a34a;
	font-size: 0.78rem;
	margin-top: 4px;
	font-weight: 600;
}

.jm-login-wrap .jm-form-card {
	isolation: isolate;
}

.jm-login-wrap .jm-label {
	position: static;
	transform: none;
	float: none;
	background: transparent;
	pointer-events: auto;
}

.jm-login-wrap .jm-control {
	max-width: 100%;
	height: auto;
	min-height: 46px;
	box-sizing: border-box;
	background: var(--jm-input-bg, #fff);
	border: var(--jm-input-border-w, 1.5px) solid var(--jm-input-border-color, #dbe2ea);
}

.jm-login-remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 0;
	background: none;
	border: none;
	border-radius: 0;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	color: #334155;
}

.jm-login-remember input {
	margin: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--jm-primary, #2563eb);
}

.jm-login-actions {
	justify-content: flex-end;
}

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

.jm-login-links {
	margin: 18px 0 0;
	padding-top: 4px;
	text-align: center;
	color: #64748b;
	font-size: 0.9rem;
}

.jm-login-links a {
	color: var(--jm-primary, #2563eb);
	text-decoration: none;
	font-weight: 600;
}

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

.jm-profile-wrap .jm-form-card,
.jm-dashboard-wrap .jm-dash-content,
.jm-dashboard-wrap .jm-dash-aside,
.jm-dashboard-wrap .jm-dash-main,
.jm-dashboard-wrap .jm-dash-nav {
	border: 1px solid #e8ecf1;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
	overflow: hidden;
	background: #fff;
}

.jm-dashboard-wrap {
	--jm-dash-ink: #0f2744;
	--jm-dash-muted: #5b6b7c;
	--jm-dash-line: #e6edf5;
	--jm-dash-soft: #f3f7fb;
	--jm-dash-accent: #1a6b5a;
	--jm-dash-accent-2: #1e4d7b;
	max-width: var(--jm-width, 1100px);
	margin: 0 auto;
	font-family: var(--jm-font, "Segoe UI", system-ui, sans-serif);
	color: var(--jm-dash-ink);
}

.jm-dash-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.jm-dash-aside {
	padding: 0;
}

.jm-dash-profile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 18px 18px;
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(26, 107, 90, 0.18), transparent 55%),
		linear-gradient(160deg, #0f2744 0%, #1e4d7b 100%);
	color: #fff;
}

.jm-dash-profile-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jm-dash-name {
	font-size: 1rem;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jm-dash-status {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.jm-dash-status.is-active {
	background: rgba(34, 197, 94, 0.2);
	color: #166534;
}

.jm-dash-profile .jm-dash-status.is-active {
	background: rgba(134, 239, 172, 0.25);
	color: #ecfdf5;
}

.jm-dash-status.is-expired {
	background: #fee2e2;
	color: #991b1b;
}

.jm-dash-status.is-warn {
	background: #fef3c7;
	color: #92400e;
}

.jm-dash-nav {
	display: flex;
	flex-direction: column;
	padding: 10px;
	gap: 4px;
	border: 0;
	box-shadow: none;
	border-radius: 0;
}

.jm-dash-nav-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	border-radius: 10px;
	color: #334155;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.jm-dash-nav-link:hover {
	background: var(--jm-dash-soft);
	color: var(--jm-dash-accent-2);
}

.jm-dash-nav-link.is-active {
	background: linear-gradient(90deg, rgba(26, 107, 90, 0.12), rgba(30, 77, 123, 0.08));
	color: var(--jm-dash-accent);
	box-shadow: inset 3px 0 0 var(--jm-dash-accent);
}

.jm-dash-nav-logout {
	margin-top: 8px;
	border-top: 1px solid var(--jm-dash-line);
	border-radius: 0 0 10px 10px;
	padding-top: 16px;
	color: #64748b;
}

.jm-nav-ico {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.jm-dash-main {
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	overflow: visible;
}

.jm-dash-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 30px;
	border-radius: 16px;
	color: #fff;
	background:
		radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 50%),
		linear-gradient(135deg, #0f2744 0%, #1a6b5a 55%, #1e4d7b 100%);
	box-shadow: 0 18px 40px rgba(15, 39, 68, 0.22);
	margin-bottom: 18px;
	animation: jm-dash-fade 0.45s ease both;
}

.jm-dash-eyebrow {
	margin: 0 0 8px;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

.jm-dash-hero h1 {
	margin: 0 0 8px;
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	font-weight: 700;
	line-height: 1.2;
}

.jm-dash-lead {
	margin: 0;
	color: inherit;
	opacity: 0.88;
	max-width: 42ch;
	font-size: 0.98rem;
}

.jm-dash-panel .jm-dash-lead {
	color: var(--jm-dash-muted);
	opacity: 1;
	margin-bottom: 16px;
}

.jm-dash-ring {
	--jm-ring: 0%;
	width: 108px;
	height: 108px;
	border-radius: 50%;
	flex: 0 0 auto;
	background: conic-gradient(#9fe7d1 var(--jm-ring), rgba(255, 255, 255, 0.18) 0);
	display: grid;
	place-items: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
	animation: jm-dash-pop 0.55s ease both;
}

.jm-dash-ring-inner {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: rgba(15, 39, 68, 0.55);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
}

.jm-dash-ring-num {
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1;
}

.jm-dash-ring-label {
	font-size: 0.68rem;
	opacity: 0.85;
	margin-top: 4px;
}

.jm-dash-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.jm-dash-stat {
	background: #fff;
	border: 1px solid var(--jm-dash-line);
	border-radius: 14px;
	padding: 1.15rem 1.2rem;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
	animation: jm-dash-fade 0.5s ease both;
}

.jm-dash-stat:nth-child(2) { animation-delay: 0.05s; }
.jm-dash-stat:nth-child(3) { animation-delay: 0.1s; }

.jm-dash-stat-status {
	border-top: 3px solid var(--jm-dash-accent);
}

.jm-dash-stat-label {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--jm-dash-muted);
	margin-bottom: 6px;
}

.jm-dash-stat-value {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--jm-dash-ink);
}

.jm-dash-stat-date {
	font-size: 1.05rem;
}

.jm-dash-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border-radius: 14px;
	margin-bottom: 16px;
}

.jm-dash-banner-warn {
	background: linear-gradient(90deg, #fff7ed, #fffbeb);
	border: 1px solid #fcd34d;
	color: #92400e;
}

.jm-dash-banner p {
	margin: 4px 0 0;
	font-size: 0.9rem;
}

.jm-dash-quick {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.jm-dash-quick-card {
	display: block;
	padding: 18px 18px 16px;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--jm-dash-line);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.jm-dash-quick-card:hover {
	transform: translateY(-2px);
	border-color: #c5d5e6;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
	color: inherit;
}

.jm-dash-quick-title {
	display: block;
	font-weight: 700;
	margin-bottom: 4px;
	color: var(--jm-dash-accent-2);
}

.jm-dash-quick-desc {
	font-size: 0.86rem;
	color: var(--jm-dash-muted);
}

.jm-dash-panel {
	background: #fff;
	border: 1px solid var(--jm-dash-line);
	border-radius: 16px;
	padding: 24px 26px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
	animation: jm-dash-fade 0.4s ease both;
}

.jm-dash-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.jm-dash-panel-head h2 {
	margin: 0;
	font-size: 1.35rem;
}

.jm-dash-progress {
	height: 10px;
	background: #eef3f8;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 8px;
}

.jm-dash-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #1a6b5a, #2f8f7a);
	border-radius: inherit;
	transition: width 0.4s ease;
}

.jm-dash-progress-meta {
	margin: 0 0 18px;
	color: var(--jm-dash-muted);
	font-size: 0.9rem;
}

.jm-dash-dl {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.jm-dash-dl li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	background: var(--jm-dash-soft);
	border-radius: 10px;
}

.jm-dash-dl span {
	color: var(--jm-dash-muted);
}

.jm-dash-table-wrap {
	overflow-x: auto;
}

.jm-dash-table {
	width: 100%;
	border-collapse: collapse;
}

.jm-dash-table th,
.jm-dash-table td {
	padding: 12px 10px;
	border-bottom: 1px solid var(--jm-dash-line);
	text-align: left;
	font-size: 0.94rem;
}

.jm-dash-table th {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--jm-dash-muted);
}

.jm-dash-pill {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: #e8f3ef;
	color: #145a4a;
	font-size: 0.78rem;
	font-weight: 700;
}

.jm-dash-empty {
	padding: 28px 18px;
	text-align: center;
	background: var(--jm-dash-soft);
	border-radius: 12px;
	color: var(--jm-dash-muted);
}

.jm-dash-checklist {
	margin: 0 0 22px;
	padding-left: 1.1rem;
	color: var(--jm-dash-muted);
}

.jm-dash-checklist li {
	margin-bottom: 6px;
}

.jm-dash-renew {
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, rgba(26, 107, 90, 0.35), rgba(30, 77, 123, 0.25)) border-box;
	border: 1px solid transparent;
}

.jm-dash-panel-sub {
	margin: 6px 0 0;
	color: var(--jm-dash-muted);
	font-size: 0.92rem;
	font-weight: 400;
}

.jm-profile-embed-grid {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.jm-profile-side {
	text-align: center;
}

.jm-profile-side .jm-profile-photo {
	width: 120px;
	height: 120px;
	margin: 0 auto 12px;
	display: block;
}

.jm-avatar-placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #1e4d7b, #1a6b5a);
	color: #fff;
	font-size: 2rem;
	font-weight: 700;
	border-radius: 50%;
}

.jm-profile-side-label {
	margin: 12px 0 4px;
	font-size: 0.78rem;
	color: var(--jm-dash-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.jm-profile-side-status {
	margin: 14px 0 4px;
}

.jm-profile-side-meta {
	margin: 0;
	font-size: 0.86rem;
	color: var(--jm-dash-muted);
}

.jm-profile-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	margin-bottom: 20px;
}

.jm-profile-field .jm-control {
	width: 100%;
}

@media (max-width: 767.98px) {
	.jm-profile-embed-grid,
	.jm-profile-fields {
		grid-template-columns: 1fr;
	}
}

@keyframes jm-dash-fade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@keyframes jm-dash-pop {
	from { opacity: 0; transform: scale(0.92); }
	to { opacity: 1; transform: none; }
}

.jm-profile-wrap .form-control[readonly] {
	background: #f8fafc;
	color: #475569;
}

.jm-help {
	font-size: 0.78rem;
	color: #64748b;
	margin-top: 4px;
}

.jm-choice-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jm-choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	margin: 0;
}

.jm-choice input {
	margin: 0;
	accent-color: var(--jm-primary, #2563eb);
}

.jm-upload-box {
	background: #f8fafc;
	border: 1.5px dashed #cbd5e1;
	border-radius: var(--jm-radius, 10px);
	padding: 12px;
}

.jm-upload-preview {
	margin-top: 10px;
}

.jm-upload-preview img {
	max-width: 120px;
	max-height: 120px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid #e2e8f0;
}

.jm-upload-filename {
	display: inline-block;
	font-size: 0.875rem;
	color: #0f172a;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 8px;
	padding: 6px 10px;
}

.jm-heading {
	margin: 8px 0 4px;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--jm-primary, #2563eb);
}

.jm-divider {
	margin: 8px 0;
	border: 0;
	border-top: 1px solid #e2e8f0;
}

.jm-form-actions {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #eef2f7;
	display: flex;
	justify-content: flex-end;
}

.jm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	font-weight: 600;
	border-radius: var(--jm-radius, 10px);
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
	text-decoration: none;
}

.jm-btn-primary {
	background: var(--jm-btn-bg, #2563eb);
	color: var(--jm-btn-color, #fff);
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.jm-btn-primary:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	color: var(--jm-btn-color, #fff);
}

.jm-btn-lg {
	min-height: 50px;
	padding: 12px 28px;
	font-size: 1rem;
}

.jm-btn-warning {
	background: #f59e0b;
	color: #fff;
	padding: 10px 16px;
}

.jm-alert {
	padding: 14px 16px;
	border-radius: 10px;
	margin-bottom: 16px;
}

.jm-alert-warning {
	background: #fffbeb;
	border: 1px solid #fcd34d;
	color: #92400e;
}

.jm-alert-info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
	padding: 14px 16px;
	border-radius: 10px;
}

.jm-loading-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.88);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 20;
	border-radius: 14px;
}

.jm-loading-overlay p {
	margin-top: 12px;
	color: #64748b;
}

/* Profile / dashboard leftovers */
.jm-profile-photo,
.jm-dash-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.55);
	flex: 0 0 auto;
}

.jm-dash-avatar-fallback {
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
}

.jm-profile-photo {
	width: 120px;
	height: 120px;
	border: 3px solid #e9ecef;
}

.jm-profile-sig {
	max-width: 180px;
	max-height: 70px;
}

@media (max-width: 767.98px) {
	.jm-form-card-header,
	.jm-form {
		padding-left: 18px;
		padding-right: 18px;
	}

	/* Force every field full width on mobile */
	.jm-registration-wrap .jm-field,
	.jm-registration-wrap .jm-field.jm-w-25,
	.jm-registration-wrap .jm-field.jm-w-33,
	.jm-registration-wrap .jm-field.jm-w-50,
	.jm-registration-wrap .jm-field.jm-w-66,
	.jm-registration-wrap .jm-field.jm-w-75,
	.jm-registration-wrap .jm-field.jm-w-100,
	.jm-registration-wrap .jm-field.jm-field-full,
	.jm-login-wrap .jm-field,
	.jm-login-wrap .jm-field.jm-w-25,
	.jm-login-wrap .jm-field.jm-w-33,
	.jm-login-wrap .jm-field.jm-w-50,
	.jm-login-wrap .jm-field.jm-w-66,
	.jm-login-wrap .jm-field.jm-w-75,
	.jm-login-wrap .jm-field.jm-w-100,
	.jm-login-wrap .jm-field.jm-field-full {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	.jm-form-actions {
		justify-content: stretch;
	}

	.jm-btn-lg {
		width: 100%;
	}

	.jm-dash-layout {
		grid-template-columns: 1fr;
	}

	.jm-dash-hero {
		flex-direction: column;
		align-items: flex-start;
		padding: 22px;
	}

	.jm-dash-stats,
	.jm-dash-quick {
		grid-template-columns: 1fr;
	}

	.jm-dash-banner {
		flex-direction: column;
		align-items: stretch;
	}

	.jm-profile-embed-grid,
	.jm-profile-fields {
		grid-template-columns: 1fr;
	}

	.jm-dashboard-wrap .col-md-3,
	.jm-dashboard-wrap .col-md-9,
	.jm-profile-wrap .col-md-3,
	.jm-profile-wrap .col-md-9 {
		width: 100%;
		max-width: 100%;
	}
}
