

@media (max-width: 480px) {
	.rr-email-container {
		width: 100% !important;
		max-width: 100% !important;
	}
	.rr-email-header {
		padding: 24px 16px 18px !important;
	}
	.rr-email-body {
		padding: 24px 16px !important;
	}
	.rr-email-footer {
		padding: 20px 16px !important;
	}
	.rr-email-button a {
		padding: 12px 20px !important;
		font-size: 14px !important;
	}
}

.rr-email-link {
	color: var(--rr-gold);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.rr-email-link:hover {
	text-decoration: underline;
}

.rr-email-button a:hover {
	background: var(--rr-gold-soft) !important;
	border-color: var(--rr-gold-soft) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(184, 144, 42, 0.3);
}

.rr-calendar-filters {
	background: var(--rr-card);
	padding: 18px;
	border-radius: 8px;
	margin-bottom: 24px;
	border: 1px solid var(--rr-border);
}

.rr-calendar-filters-title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rr-text-muted);
	margin-bottom: 16px;
	font-weight: 700;
}

.rr-calendar-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.rr-calendar-stat-card {
	background: var(--rr-white);
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius);
	padding: 20px;
	text-align: center;
	transition: all 0.2s ease;
}

.rr-calendar-stat-card:hover {
	border-color: var(--rr-gold);
	box-shadow: 0 4px 14px rgba(30, 45, 74, 0.08);
}

.rr-calendar-stat-card .stat-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rr-text-muted);
	margin-bottom: 10px;
	font-weight: 700;
}

.rr-calendar-stat-card .stat-value {
	font-family: var(--rr-font-display);
	font-size: 28px;
	color: var(--rr-navy);
	font-weight: 700;
}

.rr-calendar-stat-card.overdue .stat-value {
	color: var(--rr-danger);
}

.rr-calendar-stat-card.upcoming .stat-value {
	color: var(--rr-success);
}

.rr-occasion-overdue {
	background-color: rgba(179, 64, 47, 0.05);
}

.rr-occasion-overdue td {
	border-color: rgba(179, 64, 47, 0.2);
}

.rr-overdue-badge {
	display: inline-block;
	padding: 3px 8px;
	background: rgba(179, 64, 47, 0.15);
	color: var(--rr-danger);
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	margin-top: 4px;
}

.rr-days-until {
	color: var(--rr-text-muted);
	font-size: 12px;
	display: block;
	margin-top: 4px;
}

.rr-action-buttons {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
}

.rr-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	border: 1.5px solid var(--rr-border);
	background: transparent;
	color: var(--rr-navy);
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}

.rr-action-btn:hover {
	border-color: var(--rr-navy);
	background: rgba(30, 45, 74, 0.05);
	color: var(--rr-navy);
}

.rr-action-btn.view {
	border-color: var(--rr-gold);
	color: var(--rr-gold);
}

.rr-action-btn.view:hover {
	background: rgba(184, 144, 42, 0.1);
	border-color: var(--rr-gold);
	color: var(--rr-gold);
}

.rr-status {
	cursor: help;
	transition: all 0.15s ease;
}

.rr-status:hover {
	opacity: 0.8;
	transform: translateY(-1px);
}

.rr-empty-state {
	padding: 60px 20px;
	text-align: center;
	color: var(--rr-text-muted);
}

.rr-empty-state-icon {
	font-size: 48px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.rr-empty-state-text {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 16px;
}

@media (max-width: 900px) {
	.rr-filter-form {
		grid-template-columns: 1fr 1fr;
	}

	.rr-filter-actions {
		grid-column: 1 / -1;
	}

	.rr-calendar-stats {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}

	.rr-calendar-stat-card .stat-value {
		font-size: 24px;
	}
}

@media (max-width: 600px) {
	.rr-filter-form {
		grid-template-columns: 1fr;
	}

	.rr-calendar-stats {
		grid-template-columns: 1fr;
	}

	.rr-table {
		font-size: 12px;
	}

	.rr-table td {
		padding: 10px 12px;
	}

	.rr-action-buttons {
		flex-direction: column;
		gap: 4px;
	}

	.rr-action-btn {
		width: 100%;
	}

	.rr-action-btn-text {
		display: none;
	}

	.rr-occasion-overdue {
		border-left: 4px solid var(--rr-danger);
	}
}

@media print {
	.rr-filter-form,
	.rr-filter-actions {
		display: none;
	}

	.rr-action-buttons {
		display: none;
	}

	.rr-table {
		page-break-inside: avoid;
	}
}

.rr-btn:focus-visible,
.rr-action-btn:focus-visible {
	outline: 2px solid var(--rr-gold);
	outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
	.rr-calendar-filters {
		background: rgba(30, 45, 74, 0.3);
		border-color: rgba(255, 255, 255, 0.1);
	}

	.rr-calendar-stat-card {
		background: rgba(255, 255, 255, 0.05);
		border-color: rgba(255, 255, 255, 0.1);
	}

	.rr-empty-state {
		color: rgba(255, 255, 255, 0.7);
	}
}

.rr-next-action{
	display: flex;
	align-items: center;
	gap: 14px;
	background: rgba(184,144,42,0.10);
	border: 1px solid rgba(184,144,42,0.3);
	border-radius: var(--rr-radius);
	padding: 16px 18px;
	margin-bottom: 20px;
	text-decoration: none;
	color: var(--rr-navy);
	transition: box-shadow .15s ease, transform .15s ease;
}
.rr-next-action:hover{ box-shadow: var(--rr-shadow); transform: translateY(-1px); }
.rr-next-action .rr-icon{ color: var(--rr-gold); flex-shrink: 0; }
.rr-next-action span{ flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rr-next-action strong{ font-family: var(--rr-font-display); font-size: 16px; }
.rr-next-action small{ color: var(--rr-text-muted); font-size: 13px; }

.rr-setup-strip{
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(63,122,79,0.08);
	border: 1px solid rgba(63,122,79,0.25);
	border-radius: var(--rr-radius);
	padding: 12px 16px;
	margin-bottom: 20px;
	text-decoration: none;
	color: var(--rr-navy);
	font-size: 13.5px;
}
.rr-setup-strip .rr-icon{ color: var(--rr-success); }
.rr-setup-strip span{ flex: 1; font-weight: 600; }
.rr-setup-strip b{ color: var(--rr-success); font-weight: 700; white-space: nowrap; }

.rr-hero-card{
	background: var(--rr-card);
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius);
	padding: 18px 20px;
	margin-bottom: 20px;
	box-shadow: var(--rr-shadow);
}
.rr-hero-kicker{
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rr-text-muted);
	margin-bottom: 12px;
}
.rr-hero-body{ display: flex; flex-direction: column; gap: 10px; }
.rr-hero-card a.rr-btn{ align-self: flex-start; width: auto; }
.rr-hero-recipient{ display: flex; align-items: center; gap: 12px; }
.rr-initial-avatar{
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--rr-navy);
	color: var(--rr-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--rr-font-display);
	font-size: 15px;
	font-weight: 700;
	flex-shrink: 0;
}
.rr-hero-recipient small{ display: block; color: var(--rr-text-muted); font-size: 11px; margin-bottom: 2px; }
.rr-hero-recipient h2{ margin: 0; font-family: var(--rr-font-display); font-size: 17px; color: var(--rr-navy); font-weight: 600; }
.rr-hero-occasion{ color: var(--rr-gold); font-size: 13px; font-weight: 600; font-family: var(--rr-font-body); }
.rr-hero-excerpt{ margin: 0; color: var(--rr-text-muted); font-size: 13px; font-style: italic; line-height: 1.55; }
.rr-hero-card .rr-empty{ background: transparent; }

.rr-hero-card a.rr-btn.rr-btn-gold{
	background: var(--rr-white);
	color: var(--rr-navy);
	border: 1.5px solid var(--rr-gold);
}
.rr-hero-card a.rr-btn.rr-btn-gold:hover{
	background: var(--rr-gold);
	color: var(--rr-white);
}

.rr-progress{ background: rgba(30,45,74,0.1); border-radius: 999px; height: 6px; margin-top: 12px; overflow: hidden; }
.rr-progress-bar{ background: var(--rr-gold); height: 100%; border-radius: 999px; transition: width .3s ease; }
.rr-progress-caption{ font-size: 11.5px; color: var(--rr-text-muted); margin-top: 6px; }

.rr-panel-body:has(> .rr-dash-columns){ padding: 0; }
.rr-dash-columns{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.rr-dash-col{
	padding: 20px 24px;
	border-right: 1px solid var(--rr-border);
	display: flex;
	flex-direction: column;
}
.rr-dash-col:last-child{ border-right: 0; }
.rr-dash-col h3{
	margin: 0 0 10px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rr-text-muted);
	font-weight: 700;
}
.rr-dash-col p{ font-size: 13px; color: var(--rr-text-muted); margin: 0 0 10px; }
.rr-dash-col .text-action{ font-size: 13px; font-weight: 700; color: var(--rr-gold); text-decoration: none; margin-top: 20px; }
.rr-dash-col .text-action:hover{ text-decoration: underline; }
.rr-muted{ font-size: 13px; color: var(--rr-text-muted); margin: 0; }

.rr-mini-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rr-mini-list li a{ display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.rr-mini-dot{ width: 26px; height: 26px; border-radius: 50%; background: var(--rr-navy); color: #ffffff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rr-mini-dot .rr-icon{ stroke-width: 2.4; }
.rr-mini-list-copy{ display: flex; flex-direction: column; min-width: 0; }
.rr-mini-list-copy strong{ font-size: 13.5px; color: var(--rr-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-mini-list-copy small{ font-size: 12px; color: var(--rr-text-muted); }

.rr-timeline{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rr-timeline li{ display: flex; align-items: flex-start; gap: 10px; }
.rr-timeline li[hidden]{ display: none !important; }
.rr-timeline-icon{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--rr-navy);
	color: #ffffff;
}
.rr-timeline-icon .rr-icon{ margin: 0; stroke-width: 2.4; }
.rr-timeline li span{ display: flex; flex-direction: column; padding-top: 2px; }
.rr-timeline li strong{ font-size: 13px; color: var(--rr-navy); font-weight: 600; }
.rr-timeline li small{ font-size: 11.5px; color: var(--rr-text-muted); }

@media (max-width: 640px) {
	.rr-hero-card{ padding: 16px; }
}

@media (max-width: 860px) {
	.rr-dash-columns{ grid-template-columns: 1fr; }
	.rr-dash-col{ border-right: 0; border-bottom: 1px solid var(--rr-border); }
	.rr-dash-col:last-child{ border-bottom: 0; }
}

.rr-letter-grid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
}

.rr-letter-card{
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: linear-gradient(180deg, #f6eee7 0 44%, var(--rr-white) 44%);
	border: 1px solid #dfd0c4;
	border-radius: var(--rr-radius);
	box-shadow: var(--rr-shadow);
	transition: transform .18s ease-out, box-shadow .18s ease-out;
}
.rr-letter-card:hover{ transform: translateY(-3px); box-shadow: 0 10px 26px rgba(30,45,74,0.14); }

.rr-letter-alert-dot{
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 9;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--rr-danger);
	box-shadow: 0 0 0 4px rgba(179,64,47,0.18);
}

.rr-envelope-preview{
	--rr-envelope: #ead7c8;
	--rr-envelope-dark: #d8b9a4;
	position: relative;
	min-height: 220px;
	margin: 20px 20px 0;
	isolation: isolate;
	filter: drop-shadow(0 14px 18px rgba(73,49,39,0.16));
}
.rr-envelope-preview.featured{ min-height: 320px; transform: rotate(1deg); }

.rr-envelope-slip{
	position: absolute;
	z-index: 1;
	left: 8%;
	right: 8%;
	top: 1%;
	min-height: 68%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 22px 20px;
	border: 1px solid #e5d7c7;
	background-color: #fffdf8;
	box-shadow: 0 8px 20px rgba(78,55,45,0.1);
	text-align: center;
	transform: rotate(-1.2deg);
	transition: transform .25s ease-out, top .25s ease-out;
}
.rr-letter-card:hover .rr-envelope-slip{ top: -2%; transform: rotate(-.4deg); }
.rr-envelope-slip:before{
	content: "";
	width: 34px;
	height: 1px;
	margin-bottom: 13px;
	background: var(--rr-gold-soft);
	box-shadow: 0 4px 0 var(--rr-gold-soft);
}
.rr-envelope-slip > span{ color: var(--rr-gold); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rr-envelope-slip > strong{ margin: 8px 0 5px; font-family: var(--rr-font-display); font-size: 20px; color: var(--rr-navy); }
.rr-envelope-slip > em{ max-width: 240px; color: var(--rr-text-muted); font-size: 11px; font-style: italic; line-height: 1.4; }

.rr-envelope-pocket{
	position: absolute;
	z-index: 2;
	left: 2%;
	right: 2%;
	bottom: 0;
	height: 62%;
	overflow: hidden;
	border: 1px solid #d8bdab;
	border-radius: 3px 3px 8px 8px;
	background: linear-gradient(135deg, #f1dfd2, var(--rr-envelope));
}
.rr-envelope-pocket:before,
.rr-envelope-pocket:after{ content: ""; position: absolute; inset: 0; pointer-events: none; }
.rr-envelope-pocket:before{
	z-index: 1;
	background: linear-gradient(31deg, #e0c3b0 0 49.5%, transparent 50%), linear-gradient(-31deg, #e9d1c1 0 49.5%, transparent 50%);
	background-size: 51% 100%;
	background-position: left bottom, right bottom;
	background-repeat: no-repeat;
}
.rr-envelope-pocket:after{
	z-index: 2;
	left: 19%; right: 19%; top: 20%; bottom: auto; height: 115%;
	border: 1px solid rgba(157,112,89,0.14);
	background: linear-gradient(145deg, #ecd7c8, #dfc1ae);
	transform: rotate(45deg);
}

.rr-envelope-address{
	position: absolute;
	z-index: 4;
	left: 8%;
	bottom: 16%;
	display: flex;
	flex-direction: column;
	color: #5a4338;
	font-family: var(--rr-font-display);
	font-size: 18px;
	line-height: 1.15;
}
.rr-envelope-address small{ margin-bottom: 3px; color: #8d7467; font-family: var(--rr-font-body); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rr-envelope-address i{ margin-top: 4px; color: #8c7061; font-family: var(--rr-font-body); font-size: 9px; font-style: normal; }

.rr-envelope-stamp{
	position: absolute;
	z-index: 4;
	right: 7%;
	top: 10%;
	width: 40px;
	height: 48px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(143,79,71,0.4);
	color: var(--rr-navy);
	background: #f8e7df;
	font-family: var(--rr-font-display);
	font-size: 11px;
	letter-spacing: .03em;
	box-shadow: inset 0 0 0 4px rgba(255,255,255,0.45);
	transform: rotate(3deg);
}
.rr-envelope-stamp span{ font-size: 10px; }

.rr-envelope-seal{
	position: absolute;
	z-index: 6;
	left: 50%;
	top: 34%;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1px;
	border: 1px solid #8a6111;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 28%, #d9ac4c, var(--rr-gold) 72%);
	color: #fffaf0;
	box-shadow: 0 3px 8px rgba(97,70,17,0.28), inset 0 0 0 4px rgba(255,255,255,0.14);
	font-family: var(--rr-font-display);
	font-size: 12px;
	transform: translate(-50%, -50%);
}
.rr-envelope-seal i{ font-style: normal; font-size: 10px; }

.rr-letter-card-copy{
	position: relative;
	z-index: 8;
	padding: 22px 24px 24px;
	border-top: 1px solid rgba(217,198,184,0.7);
	background: var(--rr-white);
}
.rr-letter-card-top{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.rr-category-chip{ color: var(--rr-gold); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.rr-tier-chip{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--rr-navy);
	color: var(--rr-white);
	font-size: 10.5px;
	font-weight: 700;
	text-transform: capitalize;
}
.rr-tier-chip i{ width: 6px; height: 6px; border-radius: 50%; background: var(--rr-gold-soft); display: inline-block; }

.rr-letter-card-copy h2{ margin: 4px 0 4px; font-family: var(--rr-font-display); font-size: 23px; color: var(--rr-navy); line-height: 1.2; }
.rr-letter-card-sub{ margin: 0; color: var(--rr-text-muted); font-size: 12px; }

.rr-letter-card-meta{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--rr-border);
}
.rr-letter-card-meta .rr-status{ position: relative; padding-left: 20px; }
.rr-letter-card-meta .rr-status:before{
	content: "";
	position: absolute;
	left: 9px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	transform: translateY(-50%);
}
.rr-letter-card-date{ color: var(--rr-text-muted); font-size: 11px; }

.rr-letter-card-quote{
	min-height: 60px;
	margin: 16px 0;
	color: var(--rr-text);
	font-size: 13px;
	font-style: italic;
	line-height: 1.6;
}

.rr-letter-actions{ display: flex; align-items: center; gap: 14px; }
.rr-letter-actions .text-action{ border: 0; background: none; padding: 0; color: var(--rr-gold); font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 480px) {
	.rr-letter-grid{ grid-template-columns: 1fr; }
}

.rr-writing-layout{
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
	gap: 24px;
	align-items: start;
}
.rr-writing-preview{ position: sticky; top: 20px; }
.rr-writing-preview-label{
	margin: 0 0 10px;
	color: var(--rr-text-muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
@media (max-width: 900px) {
	.rr-writing-layout{ grid-template-columns: 1fr; }
	.rr-writing-preview{ position: static; }
}

.rr-btn-navy{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 18px;
	border: 1px solid var(--rr-navy);
	border-radius: 8px;
	background: var(--rr-navy);
	color: var(--rr-white);
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.rr-btn-navy:hover{ background: var(--rr-navy-soft); transform: translateY(-1px); color: var(--rr-white); }

.rr-letter-meta-bar{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1px;
	margin-bottom: 20px;
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius);
	background: var(--rr-border);
	overflow: hidden;
	box-shadow: var(--rr-shadow);
}
.rr-letter-meta-bar > div{ display: flex; flex-direction: column; gap: 5px; padding: 14px 18px; background: var(--rr-white); }
.rr-letter-meta-bar small{ color: var(--rr-text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.rr-letter-meta-bar strong{ font-family: var(--rr-font-body); font-size: 13.5px; color: var(--rr-navy); }

.rr-letter-stepper{
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 4px;
	max-width: 980px;
	margin: 0 auto 28px;
	padding: 0 4px;
}
.rr-step{
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	color: var(--rr-text-muted);
}
.rr-step:before{
	content: "";
	position: absolute;
	z-index: 0;
	left: -50%;
	top: 13px;
	width: 100%;
	height: 2px;
	background: var(--rr-border);
}
.rr-step:first-child:before{ display: none; }
.rr-step-dot{
	position: relative;
	z-index: 1;
	width: 27px;
	height: 27px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--rr-border);
	border-radius: 50%;
	background: var(--rr-white);
	font-size: 11px;
	font-weight: 700;
}
.rr-step small{ font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; max-width: 78px; line-height: 1.3; }
.rr-step.done{ color: var(--rr-gold); }
.rr-step.done .rr-step-dot{ border-color: var(--rr-gold); background: var(--rr-gold); color: var(--rr-white); }
.rr-step.done:before{ background: var(--rr-gold); }
.rr-step.current{ color: var(--rr-navy); }
.rr-step.current .rr-step-dot{ border: 2px solid var(--rr-gold); background: var(--rr-card); color: var(--rr-navy); box-shadow: 0 0 0 4px rgba(184,144,42,0.14); }
.rr-step.current:before{ background: var(--rr-gold); }

@media (max-width: 780px) {
	.rr-letter-stepper{ overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; }
	.rr-step{ min-width: 84px; }
}

.rr-letter-reading-wrap{
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 26px;
	align-items: start;
}

.rr-letter-paper-frame{ position: relative; padding-bottom: 24px; max-width: 520px; margin: 0 auto; width: 100%; }

.rr-letter-envelope-peek{
	position: absolute;
	z-index: 0;
	left: 6%;
	right: 6%;
	bottom: 0;
	height: 34px;
	border: 1px solid #d8bdab;
	border-radius: 0 0 8px 8px;
	background: linear-gradient(135deg, #f1dfd2, #ead7c8);
}
.rr-letter-envelope-peek:before{
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(31deg, #e0c3b0 0 49.5%, transparent 50%), linear-gradient(-31deg, #e9d1c1 0 49.5%, transparent 50%);
	background-size: 51% 100%;
	background-position: left bottom, right bottom;
	background-repeat: no-repeat;
}

.rr-letter-paper{
	position: relative;
	z-index: 1;
	min-height: 0;
	padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 40px) 26px;
	border: 1px solid var(--rr-border);
	border-radius: 3px;
	background-color: #fffdf8;
	background-image: radial-gradient(rgba(30,45,74,0.035) .6px, transparent .6px);
	background-size: 5px 5px;
	box-shadow: 0 14px 34px rgba(30,45,74,0.14);
}
.rr-letter-paper:before{
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(184,144,42,0.16);
	pointer-events: none;
}

.rr-letter-paper-mark{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-bottom: 20px;
	text-align: center;
}
.rr-letter-seal-ring{
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	width: 68px;
	height: 68px;
	margin-bottom: 8px;
	border: 1px solid var(--rr-gold);
	border-radius: 50%;
	color: var(--rr-gold);
}
.rr-letter-seal-ring:before{
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px solid var(--rr-gold);
	border-radius: 50%;
}
.rr-letter-seal-initials{ font-family: var(--rr-font-display); font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.rr-letter-seal-initials i{ font-style: normal; font-size: 12px; margin: 0 1px; }
.rr-letter-seal-est{ font-family: var(--rr-font-body); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; color: var(--rr-gold); opacity: .85; }

.rr-letter-paper-mark strong{ font-family: var(--rr-font-display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--rr-gold); font-weight: 700; }
.rr-letter-paper-mark em{ margin-top: 2px; color: var(--rr-text-muted); font-size: 9.5px; font-style: italic; letter-spacing: .02em; }

.rr-letter-flourish{
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	color: var(--rr-gold);
}
.rr-letter-flourish i{ width: 30px; height: 1px; background: var(--rr-gold); opacity: .55; }
.rr-letter-flourish b{ font-size: 9px; font-weight: 400; transform: rotate(90deg); line-height: 1; }

.rr-letter-paper time{ display: block; margin-bottom: 16px; color: var(--rr-text-muted); font-size: 11px; text-align: right; }

.rr-letter-salutation{ margin: 0 0 2px; font-family: 'Mrs Saint Delafield', cursive; font-size: 30px; font-weight: 400; color: #3a2f1f; text-transform: none; letter-spacing: normal; }

.rr-letter-body{ max-width: 60ch; margin: 0 auto; padding: 15px 0; color: #3a2f1f; font-family: 'Mrs Saint Delafield', cursive; font-size: 26px; font-weight: 400; line-height: 1.5; }
.rr-letter-body p{ margin: 0 0 12px; }
.rr-letter-body p:first-of-type{ margin-top: 0; }

.rr-letter-signature{ display: flex; flex-direction: column; gap: 1px; margin-top: 6px; padding-bottom: 15px; }
.rr-letter-signature span{ font-family: var(--rr-font-body); font-size: 12px; color: var(--rr-text); }
.rr-letter-signature strong{
	position: relative;
	display: inline-block;
	margin-top: 2px;
	padding-bottom: 6px;
	font-family: 'Yellowtail', cursive;
	font-size: 30px;
	font-weight: 400;
	color: var(--rr-navy);
	line-height: 1.2;
}
.rr-letter-signature strong:after{
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 78%;
	max-width: 160px;
	height: 1px;
	background: linear-gradient(90deg, var(--rr-gold) 0%, rgba(184,144,42,0.15) 100%);
}

.rr-letter-paper-footer{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 18px;
	padding-top: 8px;
	border-top: 1px solid rgba(184,144,42,0.18);
	color: var(--rr-text-muted);
	font-size: 7.5px;
	letter-spacing: .07em;
	text-transform: uppercase;
}
.rr-letter-paper-footer i{ font-style: normal; }

.rr-letter-sidebar{
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius);
	background: var(--rr-white);
	box-shadow: var(--rr-shadow);
}
.rr-letter-sidebar-eyebrow{ margin: 0; color: var(--rr-gold); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rr-letter-sidebar h2{ margin: 6px 0 4px; font-family: var(--rr-font-display); font-size: 21px; color: var(--rr-navy); line-height: 1.25; }
.rr-letter-sidebar-copy{ margin: 0 0 6px; color: var(--rr-text-muted); font-size: 13px; line-height: 1.6; }
.rr-letter-sidebar form{ margin: 0; }
.rr-letter-sidebar .rr-btn-gold{ width: 100%; padding: 12px 18px; }
.rr-letter-sidebar .rr-btn-outline{ width: 100%; padding: 12px 18px; text-align: center; }

.rr-letter-sidebar-note{
	display: flex;
	gap: 10px;
	margin-top: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--rr-border);
	color: var(--rr-gold);
}
.rr-letter-sidebar-note strong{ display: block; margin-bottom: 3px; color: var(--rr-navy); font-size: 12px; }
.rr-letter-sidebar-note p{ margin: 0; color: var(--rr-text-muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 900px) {
	.rr-letter-reading-wrap{ grid-template-columns: 1fr; }
	.rr-letter-sidebar{ position: static; }
}

.rr-modal-backdrop{
	display: none;
	position: fixed;
	z-index: 200;
	inset: 0;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(30,45,74,0.55);
	backdrop-filter: blur(3px);
}
.rr-modal-backdrop.is-open{ display: flex; }
.rr-modal{
	width: min(560px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius);
	background: var(--rr-white);
	box-shadow: 0 30px 70px rgba(30,45,74,0.35);
	animation: rrModalIn .18s ease-out;
}
@keyframes rrModalIn{ from{ opacity: 0; transform: translateY(8px) scale(.98); } to{ opacity: 1; transform: none; } }
.rr-modal > header{
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 22px 24px 18px;
	border-bottom: 1px solid var(--rr-border);
}
.rr-modal > header h2{ margin: 4px 0 8px; font-family: var(--rr-font-display); font-size: 22px; color: var(--rr-navy); }
.rr-modal > header p{ margin: 0; color: var(--rr-text-muted); font-size: 12.5px; line-height: 1.5; }
.rr-modal-close{
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: var(--rr-card);
	color: var(--rr-text-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.rr-modal-close:hover{ background: var(--rr-border); color: var(--rr-navy); }
.rr-modal form{ display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 24px; }
.rr-modal footer{ display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 480px) {
	.rr-modal footer{ flex-direction: column-reverse; }
	.rr-modal footer .rr-btn{ width: 100%; }
}

.rr-draft-editor{ margin-top: 4px; }
.rr-draft-editor .wp-editor-container{
	border: 1.5px solid var(--rr-border);
	border-radius: 8px;
	overflow: hidden;
}
.rr-draft-editor .wp-editor-tabs{ background: var(--rr-card); }
.rr-draft-editor .wp-editor-tabs button.wp-switch-editor{
	color: var(--rr-text-muted);
	font-family: var(--rr-font-body);
	font-size: 11.5px;
}
.rr-draft-editor .wp-editor-tabs button.wp-switch-editor.switch-tmce,
.rr-draft-editor .wp-editor-tabs button.wp-switch-editor.switch-html{
	background: transparent;
	border: 0;
}
.rr-draft-editor .html-active .switch-html,
.rr-draft-editor .tmce-active .switch-tmce{
	background: var(--rr-white);
	color: var(--rr-navy);
	font-weight: 700;
}
.rr-draft-editor .mce-toolbar-grp,
.rr-draft-editor .quicktags-toolbar{
	background: var(--rr-card) !important;
	border-bottom: 1px solid var(--rr-border) !important;
}
.rr-draft-editor .mce-btn button{ color: var(--rr-navy) !important; }
.rr-draft-editor .mce-btn.mce-active button,
.rr-draft-editor .mce-btn:hover button{
	background: rgba(184,144,42,0.14) !important;
	border-radius: 4px;
}
.rr-draft-editor .quicktags-toolbar input.button{
	background: var(--rr-white);
	border: 1px solid var(--rr-border);
	color: var(--rr-navy);
	font-family: var(--rr-font-body);
	font-size: 12px;
	border-radius: 5px;
}
.rr-draft-editor .mce-edit-area,
.rr-draft-editor iframe{ background: var(--rr-white) !important; }
.rr-draft-editor textarea.wp-editor-area{
	border: 0;
	font-family: var(--rr-font-body);
	font-size: 14px;
	line-height: 1.7;
	color: var(--rr-text);
}

.rr-timeline-toggle{
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--rr-gold);
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	align-self: flex-start;
}
.rr-timeline-toggle:hover{ color: var(--rr-navy); }

.rr-modal-wide{ width: min(680px, 100%); }
.rr-modal-preview-body{ padding: 20px 24px 28px; background: var(--rr-card); }
.rr-modal-preview-body .rr-letter-paper{ box-shadow: 0 10px 30px rgba(30,45,74,0.14); }

.rr-occasion-filter-btn{
	display: block;
	width: 100%;
	text-align: left;
	font: inherit;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.rr-occasion-filter-btn:hover{
	border-color: var(--rr-gold);
	box-shadow: 0 4px 14px rgba(30,45,74,0.14);
	transform: translateY(-2px);
}
.rr-occasion-filter-btn.is-active{
	border-color: var(--rr-gold);
	background: rgba(184,144,42,0.08);
	box-shadow: 0 4px 14px rgba(30,45,74,0.14);
}

.rr-panel-head h2{ display: flex; align-items: center; gap: 8px; }
.rr-panel-head h2 .rr-icon{ color: var(--rr-gold); flex-shrink: 0; }

.rr-sms-current{
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	padding: 10px 14px;
	border: 1px solid var(--rr-border);
	border-radius: 8px;
	background: var(--rr-card);
	color: var(--rr-navy);
	font-size: 13px;
	font-weight: 600;
}
.rr-sms-current-dot{
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rr-success);
	flex-shrink: 0;
	box-shadow: 0 0 0 3px rgba(63,122,79,0.15);
}

.rr-sms-form{ max-width: 460px; }
.rr-sms-form .rr-field-row{ display: flex; gap: 12px; margin-bottom: 0; }
.rr-sms-form .rr-btn .rr-icon{ margin-right: 2px; }

@media (max-width: 520px) {
	.rr-sms-form .rr-field-row{ flex-direction: column; }
	.rr-sms-form .rr-field{ flex: 1 1 auto !important; }
}

.rr-recipient-grid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.rr-recipient-card{ display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.rr-recipient-card-top{ display: flex; align-items: center; gap: 12px; }
.rr-recipient-card-top h3{ margin: 0; font-family: var(--rr-font-display); font-size: 16px; color: var(--rr-navy); }
.rr-recipient-card-top small{ color: var(--rr-text-muted); font-size: 12px; }
.rr-recipient-address{ margin: 0; font-size: 13px; color: var(--rr-text-muted); line-height: 1.5; }
.rr-recipient-occasions{ padding-top: 12px; border-top: 1px solid var(--rr-border); }
.rr-recipient-occasions > strong{ display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--rr-text-muted); margin-bottom: 8px; }
.rr-recipient-occasions ul{ list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rr-recipient-occasions li{ display: flex; justify-content: space-between; font-size: 13px; color: var(--rr-navy); }
.rr-recipient-occasions li span{ color: var(--rr-gold); font-weight: 600; }
.rr-recipient-occasions .text-action{ border: 0; background: none; padding: 0; color: var(--rr-gold); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.rr-recipient-actions{ padding-top: 8px; }
.rr-recipient-actions .text-action{ border: 0; background: none; padding: 0; color: var(--rr-gold); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.rr-recipient-locked{ display: inline-flex; align-items: center; gap: 6px; color: var(--rr-text-muted); font-size: 12.5px; }

.rr-occasion-countdown{
	margin-left: auto;
	flex-shrink: 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--rr-card);
	color: var(--rr-text-muted);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.rr-occasion-countdown.is-soon{
	background: rgba(184,144,42,0.14);
	color: var(--rr-gold);
}

.rr-voice-recorder{ padding: 16px; border: 1.5px dashed var(--rr-border); border-radius: 10px; background: var(--rr-card); }
.rr-voice-recorder-row{ display: flex; align-items: center; gap: 12px; }
.rr-voice-timer{ font-family: var(--rr-font-display); font-size: 15px; color: var(--rr-gold); font-weight: 700; }
.rr-voice-recorder .text-action{ border: 0; background: none; padding: 0; color: var(--rr-gold); font-size: 12.5px; font-weight: 700; cursor: pointer; }

.rr-delivery-list{ display: flex; flex-direction: column; gap: 14px; }
.rr-delivery-item{ padding: 18px 20px; border: 1px solid var(--rr-border); border-radius: var(--rr-radius); background: var(--rr-white); }
.rr-delivery-item-top{ display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rr-delivery-item-top h3{ margin: 0 0 2px; font-family: var(--rr-font-display); font-size: 15px; color: var(--rr-navy); }
.rr-delivery-item-top p{ margin: 0; font-size: 12.5px; color: var(--rr-text-muted); }

.rr-delivery-steps{ display: flex; align-items: center; margin-bottom: 14px; }
.rr-delivery-step{ font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--rr-text-muted); white-space: nowrap; }
.rr-delivery-step.is-done{ color: var(--rr-gold); }
.rr-delivery-step-line{ flex: 1; height: 2px; margin: 0 8px; background: var(--rr-border); }
.rr-delivery-step-line.is-done{ background: var(--rr-gold); }

.rr-delivery-item-footer{ display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--rr-border); font-size: 12.5px; color: var(--rr-text-muted); }
.rr-delivery-item-footer strong{ color: var(--rr-navy); }
.rr-delivery-item-footer .text-action{ margin-left: auto; color: var(--rr-gold); font-weight: 700; text-decoration: none; }

.rr-combobox{ position: relative; }
.rr-combobox-list{
	position: absolute;
	z-index: 40;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 220px;
	overflow-y: auto;
	background: var(--rr-white);
	border: 1.5px solid var(--rr-border);
	border-radius: 8px;
	box-shadow: 0 10px 26px rgba(30,45,74,0.16);
}
.rr-combobox-item{
	padding: 9px 14px;
	font-size: 13.5px;
	color: var(--rr-navy);
	cursor: pointer;
	border-bottom: 1px solid var(--rr-border);
}
.rr-combobox-item:last-child{ border-bottom: 0; }
.rr-combobox-item:hover{ background: rgba(184,144,42,0.1); color: var(--rr-gold); }
