/* Regatta Registration – front end
 *
 * Built to sit inside the site theme: inherits its typeface, uses its black
 * pill buttons and navy accent. Change the accent with:
 *   .rr { --rr-accent: #004b91; }
 */

.rr {
	--rr-accent: #004b91;
	--rr-accent-strong: #003a70;
	--rr-accent-soft: #e7eff8;
	--rr-ink: #000;
	--rr-muted: #667080;
	--rr-line: #d5dbe2;
	--rr-line-strong: #aeb8c4;
	--rr-mist: #f3f6f9;
	--rr-ok: #0b7a4b;
	--rr-ok-soft: #e7f5ee;
	--rr-error: #be2a1f;
	--rr-error-soft: #fcefed;
	--rr-warn: #9a5200;
	--rr-warn-soft: #fff4e2;
	--rr-radius: 14px;
	--rr-radius-lg: 22px;
	box-sizing: border-box;
	color: inherit;
	font-size: 1rem;
	line-height: 1.5;
}

.rr *,
.rr *::before,
.rr *::after {
	box-sizing: inherit;
}

.rr [hidden] {
	display: none !important;
}

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

.rr-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rr-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	vertical-align: -0.2em;
}

.rr-form-wrap {
	max-width: 720px;
}

.rr-form-wrap.alignwide,
.rr-form-wrap.alignfull {
	max-width: none;
}

.rr-form fieldset,
.rr fieldset.rr-group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/* ------------------------------------------------------------------
 * Progress: a short race course – coach, sailors, start line
 * --------------------------------------------------------------- */

.rr-course {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.rr-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin: 0;
	padding: 0;
	color: var(--rr-muted);
}

/* The leg of the course between two marks. */
.rr-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 17px;
	left: 44px;
	right: 8px;
	border-top: 2px dashed var(--rr-line-strong);
}

.rr-step--done:not(:last-child)::after {
	border-top-style: solid;
	border-top-color: var(--rr-accent);
}

.rr-mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--rr-line-strong);
	border-radius: 50%;
	background: #fff;
	color: var(--rr-muted);
	font-weight: 600;
	font-size: .95rem;
	font-variant-numeric: tabular-nums;
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.rr-mark svg {
	width: 18px;
	height: 18px;
}

.rr-mark-check {
	display: none;
}

.rr-step--current .rr-mark {
	border-color: var(--rr-accent);
	background: var(--rr-accent);
	color: #fff;
	box-shadow: 0 0 0 5px var(--rr-accent-soft);
}

.rr-step--done .rr-mark {
	border-color: var(--rr-accent);
	background: var(--rr-accent);
	color: #fff;
}

.rr-step--done .rr-mark-num {
	display: none;
}

.rr-step--done .rr-mark-check {
	display: block;
}

.rr-step--finish.rr-step--done .rr-mark {
	border-color: var(--rr-ok);
	background: var(--rr-ok);
}

.rr-step-label {
	font-size: .9rem;
	font-weight: 500;
	line-height: 1.3;
}

.rr-step--current .rr-step-label,
.rr-step--done .rr-step-label {
	color: var(--rr-ink);
}

/* ------------------------------------------------------------------
 * Reassurance: time, deadline, who has entered
 * --------------------------------------------------------------- */

.rr-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.25rem;
	margin: 0 0 .75rem;
	color: var(--rr-muted);
	font-size: .92rem;
}

.rr-meta-item {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

.rr-meta-item--soon {
	color: var(--rr-warn);
	font-weight: 600;
}

.rr-proof {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	margin: 0 0 1.75rem;
	padding: .45rem .9rem .45rem .55rem;
	border-radius: 999px;
	background: var(--rr-accent-soft);
	color: var(--rr-accent-strong);
	font-size: .92rem;
	font-weight: 500;
}

.rr-proof-flags {
	display: inline-flex;
}

.rr-proof-flags .rr-flag {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-left: -6px;
	border: 2px solid var(--rr-accent-soft);
	border-radius: 50%;
	background: #fff;
	font-size: 15px;
	line-height: 1;
}

.rr-proof-flags .rr-flag:first-child {
	margin-left: 0;
}

.rr-meta + .rr-error-summary,
.rr-meta + .rr-form {
	margin-top: 1.25rem;
}

.rr-flag {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* ------------------------------------------------------------------
 * Sections and fields
 * --------------------------------------------------------------- */

.rr-section {
	margin: 0 0 1.75rem !important;
}

.rr-section-title {
	display: block;
	float: left;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
	color: var(--rr-ink);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
}

.rr-section-title + * {
	clear: both;
}

.rr-intro {
	margin: 0 0 1rem;
	color: var(--rr-muted);
}

.rr-field {
	margin: 0 0 1.15rem;
}

.rr-label,
.rr-form legend.rr-label {
	display: block;
	margin: 0 0 .4rem;
	padding: 0;
	color: var(--rr-ink);
	font-size: .97rem;
	font-weight: 500;
	line-height: 1.35;
}

.rr-optional {
	color: var(--rr-muted);
	font-weight: 400;
}

.rr-hint {
	margin: -.15rem 0 .5rem;
	color: var(--rr-muted);
	font-size: .88rem;
	line-height: 1.4;
}

.rr-error {
	margin: 0 0 .45rem;
	color: var(--rr-error);
	font-size: .9rem;
	font-weight: 500;
	line-height: 1.4;
}

.rr-form input[type="text"],
.rr-form input[type="email"],
.rr-form input[type="tel"],
.rr-form input[type="date"],
.rr-form select,
.rr-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 50px;
	margin: 0;
	padding: .7rem .9rem;
	border: 1.5px solid var(--rr-line);
	border-radius: 12px;
	background-color: #fff;
	box-shadow: none;
	color: var(--rr-ink);
	font: inherit;
	font-size: max(16px, 1rem);
	line-height: 1.3;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.rr-form select {
	padding-right: 2.6rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-position: right .85rem center;
	background-repeat: no-repeat;
	background-size: 18px;
}

.rr-form textarea {
	min-height: 112px;
	resize: vertical;
}

.rr-form input:hover,
.rr-form select:hover,
.rr-form textarea:hover {
	border-color: var(--rr-line-strong);
}

.rr-form input:focus,
.rr-form select:focus,
.rr-form textarea:focus {
	border-color: var(--rr-accent);
	box-shadow: 0 0 0 4px var(--rr-accent-soft);
	outline: 2px solid transparent;
}

.rr-form .rr-field--error input,
.rr-form .rr-field--error select,
.rr-form .rr-field--error textarea {
	border-color: var(--rr-error);
}

.rr-form .rr-field--error input:focus,
.rr-form .rr-field--error select:focus,
.rr-form .rr-field--error textarea:focus {
	box-shadow: 0 0 0 4px var(--rr-error-soft);
}

.rr-form .rr-field--valid input:not([type="radio"]):not([type="checkbox"]),
.rr-form .rr-field--valid select {
	border-color: color-mix(in srgb, var(--rr-ok) 55%, var(--rr-line));
}

/* Choice chips (role, gender, class, helm / crew, yes / no) */
.rr-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.rr-chip {
	position: relative;
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}

.rr-chip-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.rr-chip-text {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 46px;
	padding: .55rem 1.15rem;
	border: 1.5px solid var(--rr-line);
	border-radius: 999px;
	background: #fff;
	color: var(--rr-ink);
	font-weight: 500;
	line-height: 1.2;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.rr-chip:hover .rr-chip-text {
	border-color: var(--rr-line-strong);
}

.rr-chip-input:checked + .rr-chip-text {
	border-color: var(--rr-accent);
	background: var(--rr-accent);
	color: #fff;
}

.rr-chip-input:checked + .rr-chip-text::before {
	content: "";
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rr-chip-input:focus-visible + .rr-chip-text {
	box-shadow: 0 0 0 4px var(--rr-accent-soft);
	border-color: var(--rr-accent);
}

.rr-field--error .rr-chip-text {
	border-color: var(--rr-error);
}

/* Birth date: day / month / year */
.rr-dob {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.rr-dob-part label {
	display: block;
	margin-bottom: .2rem;
	color: var(--rr-muted);
	font-size: .82rem;
}

.rr-form .rr-dob input {
	width: 4.6rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.rr-form .rr-dob .rr-dob-y input {
	width: 6.4rem;
}

/* Consent */
.rr-checkbox {
	display: flex;
	align-items: flex-start;
	gap: .7rem;
	color: inherit;
	font-size: .93rem;
	line-height: 1.45;
	cursor: pointer;
}

.rr-checkbox input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: .1rem 0 0;
	accent-color: var(--rr-accent);
}

.rr-checkbox a {
	color: var(--rr-accent);
}

.rr-field--consent {
	margin: 1.5rem 0 0;
}

/* ------------------------------------------------------------------
 * Sailor form: team, already entered, cards
 * --------------------------------------------------------------- */

.rr-team {
	display: flex;
	align-items: center;
	gap: .9rem;
	margin: 0 0 1rem;
	padding: .95rem 1.15rem;
	border-radius: var(--rr-radius);
	background: var(--rr-mist);
	color: var(--rr-ink);
}

.rr-team-flag {
	font-size: 1.9rem;
	line-height: 1;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.rr-team-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rr-team-name {
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
}

.rr-team-coach {
	color: var(--rr-muted);
	font-size: .92rem;
}

.rr-registered {
	margin: 0 0 1.25rem;
	padding: .85rem 1.15rem;
	border: 1.5px solid var(--rr-line);
	border-radius: var(--rr-radius);
	color: var(--rr-ink);
}

.rr-registered summary {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-weight: 500;
	cursor: pointer;
	list-style-position: outside;
}

.rr-registered summary::-webkit-details-marker {
	display: none;
}

.rr-registered summary::after {
	content: "";
	width: 10px;
	height: 10px;
	margin-left: auto;
	border-right: 2px solid var(--rr-muted);
	border-bottom: 2px solid var(--rr-muted);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s ease;
}

.rr-registered:not([open]) summary::after {
	transform: rotate(-45deg);
}

.rr-registered summary {
	list-style: none;
}

.rr-registered-count {
	display: inline-grid;
	place-items: center;
	min-width: 1.6rem;
	height: 1.6rem;
	padding: 0 .4rem;
	border-radius: 999px;
	background: var(--rr-accent-soft);
	color: var(--rr-accent-strong);
	font-size: .82rem;
	font-weight: 600;
}

.rr-registered-list {
	margin: .75rem 0 0;
	padding: 0;
	list-style: none;
}

.rr-registered-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .4rem .75rem;
	margin: 0;
	padding: .55rem 0;
	border-top: 1px solid #e7ebef;
}

.rr-registered-name {
	font-weight: 500;
}

.rr-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .3rem;
}

.rr-tag {
	display: inline-block;
	padding: .1rem .55rem;
	border-radius: 999px;
	background: var(--rr-mist);
	color: var(--rr-muted);
	font-size: .8rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.rr-rows {
	display: grid;
	gap: 1rem;
}

.rr-form fieldset.rr-card {
	position: relative;
	padding: 1.15rem 1.25rem .35rem;
	border-radius: var(--rr-radius-lg);
	background: var(--rr-mist);
	color: var(--rr-ink);
}

.rr-card-legend {
	display: flex;
	float: left;
	align-items: center;
	gap: .65rem;
	width: 100%;
	margin: 0 0 1.1rem;
	padding: 0 6.5rem 0 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
}

.rr-card-legend + * {
	clear: both;
}

.rr-card-badge {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	color: var(--rr-accent);
	font-size: .9rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.rr-card--named .rr-card-badge {
	background: var(--rr-accent);
	color: #fff;
}

.rr-card-title {
	color: var(--rr-muted);
	font-weight: 500;
}

.rr-card--named .rr-card-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.rr-card-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rr-remove {
	position: absolute;
	top: .95rem;
	right: .9rem;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	min-height: 36px;
	padding: .3rem .75rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--rr-muted);
	font: inherit;
	font-size: .88rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.rr-remove:hover,
.rr-remove:focus-visible {
	background: var(--rr-error-soft);
	color: var(--rr-error);
}

.rr-remove:focus-visible {
	outline: 2px solid var(--rr-error);
	outline-offset: 2px;
}

.rr-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 1rem;
	clear: both;
}

@media (min-width: 560px) {
	.rr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.rr-grid > .rr-field:not(.rr-w-half) {
		grid-column: 1 / -1;
	}
}

.rr-add {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	width: 100%;
	min-height: 64px;
	margin: 1rem 0 .4rem;
	padding: 1rem;
	border: 1.5px dashed var(--rr-line-strong);
	border-radius: var(--rr-radius-lg);
	background: transparent;
	color: var(--rr-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.rr-add .rr-icon {
	width: 1.35em;
	height: 1.35em;
}

.rr-add:hover {
	border-color: var(--rr-accent);
	background: var(--rr-accent-soft);
}

.rr-add:focus-visible {
	outline: 3px solid var(--rr-accent);
	outline-offset: 2px;
}

.rr-count {
	margin: 0 0 .5rem;
	color: var(--rr-muted);
	font-size: .9rem;
	text-align: center;
}

.rr-toast {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin: .5rem 0 1rem;
	padding: .65rem .8rem .65rem 1.1rem;
	border-radius: 999px;
	background: var(--rr-ink);
	color: #fff;
	font-size: .93rem;
}

.rr-toast button {
	min-height: 0;
	padding: .3rem .9rem;
	border: 1.5px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.rr-draft-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin: 0 0 1rem;
	padding: .6rem .6rem .6rem 1rem;
	border-radius: 999px;
	background: var(--rr-accent-soft);
	color: var(--rr-accent-strong);
	font-size: .92rem;
}

.rr-draft-notice button {
	padding: .3rem .8rem;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--rr-accent-strong);
	font: inherit;
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
}

/* ------------------------------------------------------------------
 * Buttons
 * --------------------------------------------------------------- */

.rr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 52px;
	padding: .8rem 1.9rem;
	border: 1.5px solid var(--rr-ink);
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.rr-btn--primary {
	background: var(--rr-ink);
	color: #fff !important;
}

.rr-btn--primary:hover {
	border-color: var(--rr-accent);
	background: var(--rr-accent);
}

.rr-btn--secondary {
	background: transparent;
	color: var(--rr-ink) !important;
}

.rr-btn--secondary:hover {
	background: var(--rr-mist);
}

.rr-btn:focus-visible {
	outline: 3px solid var(--rr-accent);
	outline-offset: 3px;
}

.rr-btn--busy {
	cursor: progress;
	opacity: .75;
}

.rr-btn--busy::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: rr-spin .7s linear infinite;
}

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

.rr-actions {
	margin: 1.75rem 0 0;
}

@media (max-width: 559px) {
	.rr-actions .rr-btn,
	.rr-success-actions .rr-btn {
		width: 100%;
	}
}

/* ------------------------------------------------------------------
 * Messages (no side borders)
 * --------------------------------------------------------------- */

.rr-error-summary {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: var(--rr-radius);
	background: var(--rr-error-soft);
	color: var(--rr-ink);
}

.rr-error-summary:focus {
	outline: none;
}

.rr-error-summary-title {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 .4rem;
	color: var(--rr-error);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

.rr-error-summary-list {
	margin: 0 0 0 1.75rem;
	padding: 0;
	font-size: .93rem;
}

.rr-error-summary-list li {
	margin: .2rem 0;
}

.rr-error-summary-list a {
	color: var(--rr-error);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rr-notice,
.rr-panel {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem 1.4rem;
	border-radius: var(--rr-radius-lg);
	background: var(--rr-mist);
	color: var(--rr-ink);
}

.rr-notice p {
	margin: .45rem 0 0;
}

.rr-panel-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: var(--rr-accent);
}

.rr-panel-icon .rr-icon {
	width: 22px;
	height: 22px;
}

.rr-notice--warning {
	background: var(--rr-warn-soft);
}

.rr-notice--warning .rr-panel-icon {
	color: var(--rr-warn);
}

.rr-panel-title {
	margin: .4rem 0 .35rem;
	color: var(--rr-ink);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
}

.rr-panel-body p {
	margin: 0 0 .5rem;
	color: inherit;
}

.rr-panel-actions {
	margin-top: 1rem !important;
}

.rr-preview-note {
	margin-top: .75rem;
	color: var(--rr-muted);
	font-size: .85rem;
}

/* Success: the one animated moment */
.rr-success {
	padding: 2.5rem 1.5rem;
	border-radius: var(--rr-radius-lg);
	background: var(--rr-mist);
	color: var(--rr-ink);
	text-align: center;
}

.rr-success:focus {
	outline: none;
}

.rr-done {
	width: 68px;
	height: 68px;
	margin: 0 auto 1rem;
}

.rr-done svg {
	display: block;
	width: 100%;
	height: 100%;
}

.rr-done-ring,
.rr-done-tick {
	stroke: var(--rr-ok);
}

.rr-done-ring {
	stroke-dasharray: 145;
	stroke-dashoffset: 145;
	animation: rr-draw .6s ease-out forwards;
}

.rr-done-tick {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: rr-draw .35s .45s ease-out forwards;
}

@keyframes rr-draw {
	to { stroke-dashoffset: 0; }
}

.rr-success-title {
	margin: 0 0 .5rem;
	color: var(--rr-ink);
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.75rem);
	font-weight: 600;
	line-height: 1.25;
}

.rr-success-text {
	max-width: 52ch;
	margin: 0 auto;
	color: var(--rr-muted);
}

.rr-success-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem;
	margin: 1.5rem 0 0 !important;
}

.rr-saved-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.rr-saved-list li {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin: 0;
	padding: .4rem .5rem .4rem .9rem;
	border-radius: 999px;
	background: #fff;
	font-weight: 500;
}

.rr-saved-list .rr-tag {
	background: var(--rr-mist);
}

@media (prefers-reduced-motion: reduce) {
	.rr-done-ring,
	.rr-done-tick {
		animation: none;
		stroke-dashoffset: 0;
	}
	.rr-btn--busy::after {
		animation-duration: 2s;
	}
	.rr-mark {
		transition: none;
	}
}

/* Status pills */
.rr-status {
	display: inline-block;
	padding: .12rem .6rem;
	border-radius: 999px;
	background: #eef1f4;
	color: #3d4652;
	font-size: .8rem;
	font-weight: 600;
	white-space: nowrap;
}

.rr-status--confirmed { background: var(--rr-ok-soft); color: var(--rr-ok); }
.rr-status--waitlist { background: var(--rr-warn-soft); color: var(--rr-warn); }
.rr-status--cancelled { background: var(--rr-error-soft); color: var(--rr-error); }

/* ------------------------------------------------------------------
 * Entry list
 * --------------------------------------------------------------- */

.rr-list-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: .75rem;
	margin: 0 0 1rem;
}

.rr-control {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	min-width: 8.5rem;
}

.rr-control--search {
	flex: 1 1 15rem;
}

.rr-control label {
	color: var(--rr-muted);
	font-size: .85rem;
	font-weight: 500;
}

.rr-control input,
.rr-control select {
	width: 100%;
	min-height: 46px;
	padding: .5rem .8rem;
	border: 1.5px solid var(--rr-line);
	border-radius: 12px;
	background-color: #fff;
	color: var(--rr-ink);
	font: inherit;
	font-size: max(16px, 1rem);
}

.rr-control select {
	padding-right: 2.3rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-position: right .7rem center;
	background-repeat: no-repeat;
	background-size: 16px;
}

.rr-control input:focus,
.rr-control select:focus {
	border-color: var(--rr-accent);
	box-shadow: 0 0 0 4px var(--rr-accent-soft);
	outline: 2px solid transparent;
}

.rr-list-count {
	margin: 0 0 .6rem;
	color: var(--rr-ink);
	font-weight: 500;
}

.rr-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--rr-line);
	border-radius: var(--rr-radius);
	-webkit-overflow-scrolling: touch;
}

.rr-table {
	width: 100%;
	margin: 0 !important;
	border: 0;
	border-collapse: collapse;
	font-size: .95rem;
}

.rr-table th,
.rr-table td {
	padding: .75rem .9rem;
	border: 0;
	border-bottom: 1px solid #e8ecf0;
	text-align: left;
	vertical-align: middle;
}

.rr-table tbody tr:last-child td {
	border-bottom: 0;
}

.rr-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--rr-mist);
	color: var(--rr-muted);
	font-size: .85rem;
	font-weight: 600;
	white-space: nowrap;
}

.rr-table tbody tr {
	background: #fff;
	color: var(--rr-ink);
	transition: background-color .12s ease;
}

.rr-table tbody tr:hover {
	background: var(--rr-mist);
}

.rr-col-name {
	font-weight: 500;
}

.rr-col-name,
.rr-col-country {
	white-space: nowrap;
}

.rr-col-index {
	width: 3rem;
	color: var(--rr-muted);
	font-variant-numeric: tabular-nums;
}

.rr-col-sail_no,
.rr-col-birth_year,
.rr-col-age,
.rr-col-nat {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.rr-sort {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.rr-sort:hover {
	color: var(--rr-ink);
}

.rr-sort-icon::after {
	content: "↕";
	font-size: .85em;
	opacity: .35;
}

th[aria-sort="ascending"] .rr-sort,
th[aria-sort="descending"] .rr-sort {
	color: var(--rr-accent);
}

th[aria-sort="ascending"] .rr-sort-icon::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] .rr-sort-icon::after { content: "↓"; opacity: 1; }

.rr-list-empty {
	margin: 1rem 0;
	padding: 1.5rem;
	border-radius: var(--rr-radius);
	background: var(--rr-mist);
	color: var(--rr-muted);
	text-align: center;
}

/* Small screens: each row becomes a card; progress labels tighten. */
@media (max-width: 640px) {
	.rr-table-wrap {
		overflow: visible;
		border: 0;
	}
	.rr-table thead {
		position: absolute;
		left: -10000px;
	}
	.rr-table,
	.rr-table tbody,
	.rr-table tr,
	.rr-table td {
		display: block;
		width: 100%;
	}
	.rr-table tbody tr {
		margin: 0 0 .75rem;
		padding: .6rem 1rem;
		border-radius: var(--rr-radius);
		background: var(--rr-mist);
	}
	.rr-table tbody tr:hover {
		background: var(--rr-mist);
	}
	.rr-table td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		padding: .35rem 0;
		border-bottom: 1px solid #e3e8ed;
		text-align: right;
	}
	.rr-table td:last-child {
		border-bottom: 0;
	}
	.rr-table td::before {
		content: attr(data-label);
		color: var(--rr-muted);
		font-weight: 500;
		text-align: left;
	}
	.rr-table td.rr-col-index {
		width: auto;
	}
	.rr-step-label {
		font-size: .8rem;
	}
	.rr-step:not(:last-child)::after {
		left: 42px;
		right: 6px;
	}
	.rr-form fieldset.rr-card {
		padding: 1rem 1rem .25rem;
	}
	.rr-remove-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
	.rr-card-legend {
		padding-right: 3rem;
	}
}
