/* =============================================================================
   Radio Moody — Frontend Public Styles
   ============================================================================= */

/* Base block
   --------------------------------------------------------------------------- */
.rm-block {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1a1a1a;
	line-height: 1.5;
}

.rm-block *,
.rm-block *::before,
.rm-block *::after {
	box-sizing: border-box;
}

/* Auth state — shown/hidden by JS
   --------------------------------------------------------------------------- */
.rm-auth-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

/* Spinner
   --------------------------------------------------------------------------- */
.rm-spinner {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid color-mix(in srgb, var(--rm-primary, #e84393) 20%, transparent);
	border-top-color: var(--rm-primary, #e84393);
	border-radius: 50%;
	animation: rm-spin .7s linear infinite;
}

@keyframes rm-spin {
	to { transform: rotate(360deg); }
}

/* Messages
   --------------------------------------------------------------------------- */
.rm-message {
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 12px;
}

.rm-message-error {
	background: #f9f0f0;
	border: 1px solid #f5c2c2;
	color: #8b0000;
}

.rm-message-success {
	background: #e8f9ee;
	border: 1px solid #b2eac8;
	color: #1a5e34;
}

/* Empty state
   --------------------------------------------------------------------------- */
.rm-empty-state {
	text-align: center;
	padding: 48px 20px;
	color: #999;
}

.rm-empty-state .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	display: block;
	margin-inline: auto;
}

/* =============================================================================
   Login Block
   ============================================================================= */
.rm-login-card {
	max-width: 420px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 36px 32px;
	box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.rm-login-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 24px;
}

.rm-logo-icon {
	font-size: 32px !important;
	width: 32px !important;
	height: 32px !important;
	color: var(--rm-primary, #e84393);
}

.rm-logo-text {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
}

.rm-login-logo-img {
	display: block;
	max-height: 56px;
	max-width: 100%;
	width: auto;
	margin: 0 auto;
}

.rm-login-heading {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 20px;
	text-align: center;
	color: #1a1a1a;
}

/* Form
   --------------------------------------------------------------------------- */
.rm-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rm-form-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rm-form-field label {
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

.rm-form-field input {
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.4;
	outline: none;
	transition: border-color .15s;
}

.rm-form-field input:focus {
	border-color: var(--rm-primary, #e84393);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rm-primary, #e84393) 15%, transparent);
}

/* Buttons
   --------------------------------------------------------------------------- */
.rm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .15s, border-color .15s, color .15s;
	text-decoration: none;
}

.rm-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.rm-btn-primary {
	background: var(--rm-primary, #e84393);
	color: #fff;
	border-color: var(--rm-primary, #e84393);
	width: 100%;
	margin-top: 4px;
}

.rm-btn-primary:hover:not(:disabled) {
	background: var(--rm-secondary, #c4307a);
	border-color: var(--rm-secondary, #c4307a);
}

.rm-btn-outline {
	background: transparent;
	color: var(--rm-primary, #e84393);
	border-color: var(--rm-primary, #e84393);
}

.rm-btn-outline:hover:not(:disabled) {
	background: color-mix(in srgb, var(--rm-primary, #e84393) 8%, white);
}

.rm-btn-google {
	background: #fff;
	color: #444;
	border: 1.5px solid #d1d5db;
	width: 100%;
	font-weight: 500;
}

.rm-btn-google:hover {
	background: #f9f9f9;
}

.rm-google-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Button spinner */
.rm-btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rm-spin .7s linear infinite;
}

/* Divider */
.rm-login-divider {
	text-align: center;
	position: relative;
	margin: 16px 0;
	color: #aaa;
	font-size: 13px;
}

.rm-login-divider::before,
.rm-login-divider::after {
	content: '';
	position: absolute;
	top: 50%;
	width: calc(50% - 22px);
	height: 1px;
	background: #e5e7eb;
}

.rm-login-divider::before { left: 0; }
.rm-login-divider::after  { right: 0; }

.rm-login-footer {
	text-align: center;
	font-size: 12px;
	color: #999;
	margin-top: 20px;
	margin-bottom: 0;
}

/* Signed-in bar */
.rm-signed-in-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	flex-wrap: wrap;
}

.rm-user-photo {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.rm-user-photo-placeholder {
	font-size: 28px !important;
	width: 28px !important;
	height: 28px !important;
	color: #aaa;
}

.rm-user-name {
	font-weight: 600;
	flex: 1;
}

/* =============================================================================
   Profile Block
   ============================================================================= */
.rm-profile-wrap {
	max-width: 600px;
}

.rm-profile-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 28px;
}

.rm-profile-avatar-wrap {
	position: relative;
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity .15s;
}

.rm-avatar-busy {
	opacity: .5;
	pointer-events: none;
}

.rm-avatar-edit-btn {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 50%;
	background: var( --rm-primary, #e84393 );
	color: #fff;
	border: 2px solid #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rm-avatar-edit-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.rm-profile-name-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rm-name-edit-btn {
	background: none;
	border: none;
	padding: 2px 4px;
	font-size: 16px;
	line-height: 1;
	color: #888;
	cursor: pointer;
}

.rm-name-edit-btn:hover {
	color: var( --rm-primary, #e84393 );
}

.rm-profile-photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

.rm-profile-photo-placeholder {
	font-size: 64px !important;
	width: 64px !important;
	height: 64px !important;
	color: #ccc;
}

.rm-profile-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rm-profile-name {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

.rm-profile-email {
	color: #666;
	margin: 0;
	font-size: 14px;
}

.rm-profile-since {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #999;
	margin: 0;
}

.rm-profile-since .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* Stats */
.rm-profile-stats {
	display: flex;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.rm-stat-card {
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 14px 20px;
	text-align: center;
	flex: 1;
	min-width: 100px;
}

.rm-stat-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: var(--rm-primary, #e84393);
	line-height: 1;
}

.rm-stat-label {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.rm-profile-footer {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

/* =============================================================================
   Saved Content Block
   ============================================================================= */
.rm-saved-wrap {
	/* inherit page width */
}

/* Tabs */
.rm-tabs {
	display: flex;
	/* Wrap rather than overflow. Five tabs fit in English and do not in
	   Spanish — "Oraciones" was pushed past the container edge, where it was
	   neither visible nor clickable. Wrapping keeps every tab reachable at any
	   width; horizontal scrolling would hide the last one behind a gesture
	   nobody knows to make. */
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 2px solid #eee;
	margin-bottom: 24px;
}

.rm-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	font-size: 15px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: color .15s, border-color .15s;
}

.rm-tab .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.rm-tab-active,
.rm-tab:hover {
	color: var(--rm-primary, #e84393);
	border-bottom-color: var(--rm-primary, #e84393);
}

.rm-tab-count {
	background: #f0f0f0;
	border-radius: 12px;
	padding: 1px 8px;
	font-size: 12px;
	color: #555;
}

/* Song grid */
.rm-song-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) );
	gap: 16px;
}

.rm-song-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow .15s, transform .15s;
	position: relative;
}

.rm-song-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,.09);
	transform: translateY(-2px);
}

.rm-song-art {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rm-song-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rm-song-art .dashicons {
	font-size: 48px !important;
	width: 48px !important;
	height: 48px !important;
	color: #ccc;
}

.rm-song-info {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rm-song-title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.rm-song-artist {
	font-size: 13px;
	color: #555;
}

.rm-song-album {
	font-size: 12px;
	color: #aaa;
}

.rm-play-btn {
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--rm-primary, #e84393);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Always visible — the button only renders when a sample exists,
	   and hover-gating made it undiscoverable on touch devices. */
	opacity: 1;
}

.rm-play-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Loading inside saved wrap */
#rm-saved-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 24px 0;
	color: #888;
}

/* Account link header widget
   --------------------------------------------------------------------------- */
.rm-account-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
	transition: background .15s, color .15s;
	white-space: nowrap;
}

.rm-account-link:not( .rm-account-pill ):hover,
.rm-account-link:not( .rm-account-pill ):focus {
	background: color-mix( in srgb, var( --rm-primary, #e84393 ) 10%, transparent );
	color: var( --rm-primary, #e84393 );
	text-decoration: none;
}

.rm-account-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.rm-account-icon svg {
	width: 20px;
	height: 20px;
}

.rm-account-photo {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.rm-account-link-signed-in:not( .rm-account-pill ) {
	color: var( --rm-primary, #e84393 );
}

/* Account pill (rounded "donate-style" button) + dropdown
   ---------------------------------------------------------------------------
   The widget renders as nav > ul > li > a so theme menu selectors (e.g.
   `nav.button_hover_2 > ul.button_hover_2 > li > a`, passed via the
   shortcode's nav_class attribute) match it and control size, padding, and
   hover exactly like sibling menu items. Our own rules below are minimal
   fallbacks — background, radius, and text color only — and inherit
   font-size so classes like has-small-font-size size the pill. */
.rm-account-nav { display: inline-block; }
.rm-account-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
}
.rm-account-wrap {
	position: relative;
	display: inline-block;
	list-style: none;
	margin: 0;
}

.rm-account-link.rm-account-pill {
	border-radius: 10px;
	padding: 7px 14px;
	background: var( --rm-account-bg, #14425c );
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: inherit;
}

/* NOTE: no :hover background here on purpose — the site theme supplies the
   hover color for buttons; our defaults must not fight it. */
.rm-account-link.rm-account-pill:hover,
.rm-account-link.rm-account-pill:focus {
	color: #fff;
	text-decoration: none;
}

.rm-account-pill svg {
	stroke: currentColor;
}

.rm-account-pill .rm-account-icon {
	width: 16px;
	height: 16px;
}

.rm-account-pill .rm-account-icon svg {
	width: 16px;
	height: 16px;
}

/* Post / Episode list (used for podcast episodes + blog posts)
   --------------------------------------------------------------------------- */
.rm-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rm-post-card {
	display: flex;
	align-items: stretch;
	gap: 14px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .15s, transform .15s;
}

.rm-post-card:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
	transform: translateY( -1px );
	text-decoration: none;
}

.rm-post-art {
	flex-shrink: 0;
	width: 96px;
	height: 96px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f3f3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rm-post-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rm-post-art .dashicons {
	font-size: 36px !important;
	width: 36px !important;
	height: 36px !important;
	color: #ccc;
}

.rm-post-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
}

.rm-post-title {
	font-weight: 700;
	font-size: 15px;
	color: #1a1a1a;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.rm-post-excerpt {
	font-size: 13px;
	color: #666;
	line-height: 1.4;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.rm-post-meta {
	display: flex;
	gap: 10px;
	font-size: 12px;
	color: #999;
	margin-top: 4px;
	align-items: center;
}

.rm-post-cta {
	margin-left: auto;
	font-weight: 600;
	color: var( --rm-primary, #e84393 );
}

/* Responsive
   --------------------------------------------------------------------------- */
@media ( max-width: 600px ) {
	.rm-login-card {
		padding: 24px 16px;
	}

	.rm-profile-header {
		flex-direction: column;
		text-align: center;
	}

	.rm-song-grid {
		grid-template-columns: repeat( auto-fill, minmax( 140px, 1fr ) );
	}

	.rm-post-art {
		width: 72px;
		height: 72px;
	}
}

/* =========================================================================
   v4 additions — profile hub (edit name, activity tabs, providers, danger)
   ========================================================================= */

.rm-profile-section { margin: 22px 0; padding-top: 18px; border-top: 1px solid #eee; }
.rm-profile-section-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; }

.rm-form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rm-form-inline .rm-form-field { flex: 1 1 180px; margin: 0; }

.rm-my-item { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.rm-my-item:last-child { border-bottom: none; }
.rm-my-item-text { margin: 0 0 6px; font-size: 14px; }
.rm-my-item-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #888; }

.rm-mini-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.rm-mini-pending  { background: #fff6e0; color: #8a6100; border: 1px solid #f0dfae; }
.rm-mini-approved { background: #e6f6ea; color: #1a7f37; border: 1px solid #bfe5c8; }
.rm-mini-hidden   { background: #f4f4f4; color: #666;    border: 1px solid #ddd; }
.rm-mini-answered { background: #e6f6ea; color: #1a7f37; border: 1px solid #bfe5c8; text-transform: none; }

.rm-empty-note { color: #888; font-size: 14px; }

.rm-danger-zone { border-top: 1px solid #f3caca; }
.rm-danger-zone .rm-profile-section-title { color: #b32d2e; }
.rm-danger-warning { font-size: 13.5px; color: #7a2323; background: #fdf1f1; border: 1px solid #f3caca; border-radius: 8px; padding: 10px 14px; }
.rm-btn-danger {
	background: #b32d2e; color: #fff; border: 1px solid #b32d2e;
}
.rm-btn-danger:hover { background: #8f2425; }
.rm-btn-danger-outline {
	background: #fff; color: #b32d2e; border: 1px solid #b32d2e;
}
.rm-btn-danger-outline:hover { background: #fdf1f1; }
.rm-message-success { background: #e6f6ea; color: #1a7f37; border: 1px solid #bfe5c8; border-radius: 8px; padding: 8px 12px; }

/* =========================================================================
   v4.1 additions — social sign-in buttons + forgot password
   ========================================================================= */

.rm-social-login { margin: 0 0 16px; }

/* Pill provider buttons, per Google branding (white / #1F1F1F) and
   Apple HIG (black / white). */
.rm-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 12px 16px;
	margin-bottom: 12px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease;
}
.rm-social-btn:hover { filter: brightness(0.96); }
.rm-social-btn.rm-social-busy { opacity: 0.6; pointer-events: none; }
.rm-social-google {
	background: #fff;
	color: #1f1f1f;
	border: 1px solid #dadce0;
}
.rm-social-apple {
	background: #000;
	color: #fff;
	border: 1px solid #000;
}
.rm-social-icon { display: inline-flex; line-height: 0; }

.rm-or-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 8px;
	color: #888;
	font-size: 13px;
}
.rm-or-divider::before,
.rm-or-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e0e0e0;
}

/* Forgot password */
.rm-linklike {
	background: none;
	border: none;
	padding: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--rm-primary, #e84393);
	cursor: pointer;
}
.rm-linklike:hover { text-decoration: underline; }
.rm-login-links { margin: 12px 0 0; text-align: center; }
.rm-forgot-note { font-size: 13px; color: #666; margin: 8px 0 12px; }
.rm-forgot-success { padding: 10px 0; }
.rm-forgot-success-title { margin: 0 0 6px; }

/* =========================================================================
   v4.3 additions — profile overhaul, centered modal, pager
   ========================================================================= */

/* Delete-account text link under the sign-out row */
.rm-profile-delete-row {
	margin-top: 14px;
}

.rm-linklike-danger {
	color: #b32d2e;
	font-size: 14px;
}

.rm-linklike-danger:hover {
	color: #8f2425;
}

/* Centered modal (generic — prayer-wall's modal CSS isn't loaded on
   profile-only pages, so the pattern lives here too) */
.rm-modal-center {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 0, 0, 0, .5 );
}

.rm-modal-center[hidden] {
	display: none;
}

.rm-modal-card {
	background: #fff;
	border-radius: 12px;
	max-width: 440px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, .2 );
}

.rm-modal-title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
}

.rm-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 6px;
}

/* Pager (saved-content panels + personal activity feed) */
.rm-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
	grid-column: 1 / -1; /* full row inside the song grid */
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	color: #666;
}

.rm-pager-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	line-height: 1;
	color: #444;
	cursor: pointer;
}

.rm-pager-btn:hover:not( :disabled ) {
	border-color: var( --rm-primary, #e84393 );
	color: var( --rm-primary, #e84393 );
}

.rm-pager-btn:disabled {
	opacity: .35;
	cursor: default;
}

/* Type indicator (🙏 / 💬) in the merged activity feed */
.rm-my-item-type {
	margin-right: 4px;
}

/* =========================================================================
   v4.3.1 — mobile tab stacking + relocated profile actions
   ========================================================================= */

@media (max-width: 640px) {
	.rm-tabs {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}
	.rm-tabs .rm-tab {
		width: 100%;
		justify-content: flex-start;
		text-align: left;
	}
}

/* Sign-out / delete rows keep breathing room after being moved below the
   favorites tabs (see relocateProfileActions in public.js). */
.rm-saved-wrap .rm-profile-footer {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}
.rm-saved-wrap .rm-profile-delete-row {
	margin-top: 10px;
}

/* =========================================================================
   v4.3.2 — inline name editing (the heading becomes the fields in place)
   ========================================================================= */

.rm-name-inline-form { display: none; }

.rm-profile-name-row.rm-editing .rm-profile-name,
.rm-profile-name-row.rm-editing .rm-name-edit-btn { display: none; }

.rm-profile-name-row.rm-editing .rm-name-inline-form {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* High-specificity + explicit sizing so theme form styles can't hijack it. */
.rm-profile-name-row .rm-name-inline-form input[type="text"] {
	width: 150px;
	max-width: 42vw;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	background: #fff;
	float: none;
	display: inline-block;
}

.rm-profile-name-row .rm-name-inline-form input[type="text"]:focus {
	border-color: var( --rm-primary, #e84393 );
	outline: none;
}

.rm-profile-name-row .rm-name-save-btn {
	margin: 0;
	padding: 8px 18px;
	border: none;
	border-radius: 8px;
	background: var( --rm-primary, #e84393 );
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	width: auto;
	display: inline-block;
}

.rm-profile-name-row .rm-name-cancel-btn {
	margin: 0;
	padding: 0 6px;
	border: none;
	background: none;
	font-size: 22px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	width: auto;
}
.rm-profile-name-row .rm-name-cancel-btn:hover { color: #444; }

/* =========================================================================
   v4.3.3 — cleaner "My Prayers" feed items (icon column + engagement counts)
   ========================================================================= */

.rm-my-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 10px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
}

.rm-my-item .rm-my-item-type {
	flex: none;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #f6f2ea;
	font-size: 15px;
}

.rm-my-item-body { flex: 1; min-width: 0; }

.rm-my-item .rm-my-item-text {
	margin: 0 0 8px;
	font-size: 14.5px;
	line-height: 1.5;
	overflow-wrap: break-word;
}

.rm-my-item .rm-my-item-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: #8a8377;
}

.rm-my-count {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	color: #6d6457;
}

.rm-my-item-meta time {
	margin-left: auto;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 11.5px;
}

.rm-my-item-link {
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

/* "By signing in you agree to our terms" under the sign-in forms. */
.rm-login-terms { margin: 10px 0 0; font-size: 12.5px; color: #6d6457; text-align: center; }
.rm-login-terms a { color: inherit; text-decoration: underline; }

/* Create-account pane. */
.rm-signup-cta { margin-top: 6px; }
.rm-form-hint { margin: 4px 0 0; font-size: 12px; color: #8a8377; }
.rm-form-check { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 14px; font-size: 13.5px; cursor: pointer; }
.rm-form-check input { margin-top: 3px; }
