/**
 * EWL Pet Club — the member area.
 *
 * Loaded only on the signed-in screens; the landing and login pages keep
 * ewl-club.css to themselves. Everything is scoped to `.ewl-club` so the
 * theme's own styles are never touched.
 */

.ewl-club {
	--ewl-gold: #d9a441;
	--ewl-coral: #ef5b5b;
	--ewl-line: #dfe4e9;
	--ewl-bg: #f6f8f9;

	box-sizing: border-box;

	/* Astra's page container is a flex row on some layouts, which would leave
	   a block child sized to its content and hugging the left. */
	width: 100%;
	padding: 0 0 90px;
	background: var(--ewl-bg);
	color: var(--ewl-slate);
	font-family: "Poppins", -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.55;
}

.ewl-club *,
.ewl-club *::before,
.ewl-club *::after {
	box-sizing: border-box;
}

/* We set `display` on several things we also toggle with the `hidden`
   attribute, and an author rule beats the browser's own [hidden] default. */
.ewl-club [hidden] {
	display: none !important;
}

.ewl-club__body {
	max-width: 1180px;
	margin: 0 auto;
	padding: 22px 18px 40px;
}

.ewl-club h1,
.ewl-club h2,
.ewl-club h3 {
	color: var(--ewl-navy);
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	margin: 0;
}

.ewl-club a {
	color: var(--ewl-teal-deep);
}

.ewl-club p {
	margin: 0 0 10px;
}

.ewl-muted {
	color: var(--ewl-muted);
}

.ewl-h2 {
	margin: 26px 0 6px;
	font-size: 20px;
}

/* ------------------------------------------------------------------- nav */

.ewl-nav {
	background: #fff;
	border-bottom: 1px solid var(--ewl-line);
}

.ewl-nav__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px 18px;
}

.ewl-nav__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ewl-teal);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.ewl-nav__brand span {
	color: var(--ewl-navy);
	font-family: "Chewy", "Poppins", cursive;
	font-size: 19px;
	letter-spacing: 0.2px;
}

.ewl-nav__list {
	display: flex;
	flex: 1 1 auto;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ewl-nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--ewl-slate);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
}

.ewl-nav__list a:hover {
	background: var(--ewl-aqua);
}

.ewl-nav__list a[aria-current="page"] {
	background: var(--ewl-teal);
	color: #fff;
}

.ewl-nav__count {
	min-width: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ewl-coral);
	color: #fff;
	font-size: 11px;
	line-height: 19px;
	text-align: center;
}

.ewl-nav__out {
	margin: 0;
}

/* -------------------------------------------------------- bottom tab bar */

.ewl-tabbar {
	display: none;
}

/* ----------------------------------------------------------------- cards */

.ewl-card--panel {
	/* .ewl-card is the landing page's narrow, centred join card; in here it is
	   a full-width panel with ordinary left-aligned text. */
	max-width: none;
	text-align: left;
	margin: 0 0 18px;
	padding: 18px 18px 20px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.ewl-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
}

.ewl-panel__head h2 {
	font-size: 17px;
}

/* Holds buttons and the log-out form side by side; the form is a block, so
   without this it drops to a line of its own. */
.ewl-panel__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
}

.ewl-count {
	display: inline-block;
	min-width: 20px;
	margin-left: 6px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ewl-aqua);
	color: var(--ewl-teal-deep);
	font-size: 12px;
	line-height: 20px;
	text-align: center;
}

.ewl-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
}

.ewl-grid > * {
	margin: 0;
}

/* --------------------------------------------------------------- heading */

.ewl-hello {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
}

.ewl-hello__title {
	font-family: "Chewy", "Poppins", cursive;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.3px;
}

.ewl-hello__sub {
	margin: 2px 0 0;
	color: var(--ewl-muted);
	font-size: 14.5px;
}

/* --------------------------------------------------------- welcome banner */

.ewl-welcome {
	position: relative;
	margin: 0 0 18px;
	padding: 18px 46px 16px 18px;
	border-radius: 16px;
	background: linear-gradient(120deg, var(--ewl-aqua), #fff 70%);
	border: 1px solid var(--ewl-aqua-line, #cae6e8);
}

.ewl-welcome h2 {
	margin: 0 0 10px;
	font-size: 17px;
}

.ewl-welcome__x {
	position: absolute;
	top: 10px;
	right: 10px;
}

.ewl-welcome__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.ewl-welcome__steps li {
	display: flex;
	align-items: center;
	gap: 7px;
}

.ewl-welcome__steps b {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ewl-teal);
	color: #fff;
	font-size: 12px;
}

/* ------------------------------------------------------------- pet cards */

.ewl-petgrid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ewl-petgrid--page {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ewl-petcard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ewl-line);
	border-radius: 14px;
	background: #fff;
}

.ewl-petcard.is-muted {
	opacity: 0.72;
}

.ewl-petcard__photo {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--ewl-aqua);
}

.ewl-petcard__photo img,
.ewl-pet__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ewl-pet__img--none {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--ewl-teal);
	opacity: 0.55;
}

.ewl-petcard__body {
	padding: 10px 12px 12px;
}

.ewl-petcard__name {
	font-size: 16px;
}

.ewl-petcard__name a {
	color: var(--ewl-navy);
	text-decoration: none;
}

.ewl-petcard__sub {
	margin: 2px 0 0;
	color: var(--ewl-muted);
	font-size: 13px;
}

.ewl-petcard__actions {
	display: flex;
	gap: 6px;
	margin: 10px 0 0;
}

.ewl-petcard--add {
	display: grid;
	place-content: center;
	gap: 6px;
	justify-items: center;
	min-height: 150px;
	border-style: dashed;
	color: var(--ewl-teal-deep);
	font-weight: 600;
	text-decoration: none;
}

/* ------------------------------------------------------ completeness ring */

.ewl-ring {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.ewl-ring svg {
	position: absolute;
	inset: 2px;
	transform: rotate(-90deg);
}

.ewl-ring circle {
	fill: none;
	stroke-width: 3.4;
}

.ewl-ring__track {
	stroke: #e6ecee;
}

.ewl-ring__value {
	stroke: var(--ewl-teal);
	stroke-linecap: round;
}

.ewl-ring b {
	position: relative;
	color: var(--ewl-navy);
	font-size: 11px;
	font-weight: 700;
}

/* ---------------------------------------------------------------- chips */

.ewl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.ewl-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border: 1px solid var(--ewl-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ewl-slate);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
}

.ewl-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ewl-chip:has(input:checked),
.ewl-chip.is-on {
	border-color: var(--ewl-teal);
	background: var(--ewl-teal);
	color: #fff;
}

.ewl-chip--soft {
	background: var(--ewl-aqua);
	border-color: transparent;
	color: var(--ewl-teal-deep);
}

.ewl-chip--bad {
	background: #fdecec;
	border-color: transparent;
	color: #b3261e;
}

.ewl-chip--muted {
	background: #eef0f2;
	border-color: transparent;
	color: var(--ewl-muted);
}

.ewl-chips__sep {
	width: 1px;
	margin: 2px 4px;
	background: var(--ewl-line);
}

/* --------------------------------------------------------------- buttons */

.ewl-club .ewl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ewl-club .ewl-btn--sm {
	min-height: 36px;
	padding: 7px 14px;
	font-size: 13.5px;
}

.ewl-club .ewl-btn--primary {
	background: var(--ewl-orange);
	color: #fff;
}

.ewl-club .ewl-btn--primary:hover {
	background: var(--ewl-orange-deep);
}

.ewl-club .ewl-btn--outline {
	border-color: var(--ewl-line);
	background: #fff;
	color: var(--ewl-teal-deep);
}

.ewl-club .ewl-btn--outline:hover {
	border-color: var(--ewl-teal);
}

.ewl-club .ewl-btn--ghost {
	background: transparent;
	color: var(--ewl-slate);
}

.ewl-club .ewl-btn--ghost:hover {
	background: rgba(15, 23, 42, 0.05);
}

.ewl-club .ewl-btn--link {
	min-height: 0;
	padding: 6px 4px;
	background: none;
	color: var(--ewl-muted);
	font-weight: 600;
	text-decoration: underline;
}

.ewl-club .ewl-btn--block {
	width: 100%;
}

.ewl-club .ewl-btn[disabled],
.ewl-club .ewl-btn.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.ewl-club .ewl-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ewl-slate);
	cursor: pointer;
}

.ewl-club .ewl-iconbtn:hover {
	background: rgba(15, 23, 42, 0.06);
}

.ewl-danger,
.ewl-club .ewl-danger {
	color: #b3261e;
}

.ewl-club .ewl-link,
.ewl-club button.ewl-link {
	min-height: 0;
	background: none;
	border: 0;
	padding: 0;
	color: var(--ewl-teal-deep);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* ------------------------------------------------------------- menu popup */

.ewl-menu {
	position: relative;
	display: inline-block;
}

.ewl-menu__list {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	display: flex;
	flex-direction: column;
	min-width: 200px;
	padding: 6px;
	border: 1px solid var(--ewl-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.ewl-menu__list button {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 10px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.ewl-menu__list button:hover {
	background: var(--ewl-aqua);
}

/* -------------------------------------------------------------- reminders */

.ewl-remlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ewl-rem {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-top: 1px solid var(--ewl-line);
}

.ewl-remlist > .ewl-rem:first-child {
	border-top: 0;
}

.ewl-rem__date {
	display: grid;
	place-items: center;
	flex: 0 0 46px;
	width: 46px;
	padding: 5px 0;
	border-radius: 10px;
	background: var(--ewl-aqua);
	color: var(--ewl-teal-deep);
	line-height: 1.05;
}

.ewl-rem__date b {
	font-size: 17px;
}

.ewl-rem__date i {
	font-size: 11px;
	font-style: normal;
	text-transform: uppercase;
}

.ewl-rem.is-overdue .ewl-rem__date {
	background: #fdecec;
	color: #b3261e;
}

.ewl-rem__icon {
	flex: 0 0 auto;
	color: var(--ewl-teal);
}

.ewl-rem__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ewl-rem__title {
	display: block;
	color: var(--ewl-navy);
	font-size: 14.5px;
}

.ewl-rem__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 3px;
	color: var(--ewl-muted);
	font-size: 12.5px;
}

.ewl-rem__meta .ewl-chip {
	padding: 2px 9px;
	font-size: 11.5px;
}

.ewl-rem.is-overdue .ewl-rem__when {
	color: #b3261e;
	font-weight: 600;
}

.ewl-rem__source {
	font-style: italic;
}

.ewl-rem__actions {
	display: flex;
	gap: 2px;
}

.ewl-rem.is-going {
	opacity: 0.4;
}

/* ---------------------------------------------------------------- records */

.ewl-reclist__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ewl-rec {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--ewl-line);
}

.ewl-reclist__items > .ewl-rec:first-child {
	border-top: 0;
}

.ewl-rec__icon {
	flex: 0 0 34px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--ewl-aqua);
	color: var(--ewl-teal-deep);
}

.ewl-rec__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ewl-rec__body b {
	color: var(--ewl-navy);
}

.ewl-rec__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 2px;
	color: var(--ewl-muted);
	font-size: 12.5px;
}

.ewl-rec__extra {
	display: block;
	margin-top: 4px;
	color: var(--ewl-muted);
	font-size: 12.5px;
}

.ewl-rec__actions {
	display: flex;
	flex: 0 0 auto;
	gap: 2px;
}

/* ------------------------------------------------------------------- feed */

.ewl-feed {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ewl-feed li {
	display: flex;
	gap: 11px;
	padding: 9px 0;
	border-top: 1px solid var(--ewl-line);
}

.ewl-feed li:first-child {
	border-top: 0;
}

.ewl-feed__icon {
	flex: 0 0 auto;
	color: var(--ewl-teal);
}

.ewl-feed__body b {
	display: block;
	color: var(--ewl-navy);
	font-size: 14px;
}

.ewl-feed__body span {
	color: var(--ewl-muted);
	font-size: 12.5px;
}

/* --------------------------------------------------------- pet profile */

.ewl-pet__hero {
	display: grid;
	gap: 22px;
	grid-template-columns: 260px minmax(0, 1fr);
	margin: 0 0 18px;
	padding: 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.ewl-pet__photo {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	background: var(--ewl-aqua);
}

.ewl-pet__photobtn {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--ewl-teal-deep);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.ewl-pet__name {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: "Chewy", "Poppins", cursive;
	font-size: 30px;
	font-weight: 400;
	letter-spacing: 0.3px;
}

.ewl-pet__sub {
	margin: 2px 0 12px;
	color: var(--ewl-muted);
}

.ewl-pet__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
}

.ewl-progress {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 0;
	font-size: 13px;
}

.ewl-progress__bar {
	position: relative;
	flex: 1 1 auto;
	max-width: 260px;
	height: 8px;
	border-radius: 4px;
	background: #e6ecee;
	overflow: hidden;
}

.ewl-progress__bar i {
	position: absolute;
	inset: 0 auto 0 0;
	display: block;
	border-radius: 4px;
	background: var(--ewl-teal);
}

.ewl-missing {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

/* ------------------------------------------------------------------ tabs */

.ewl-tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 16px;
	padding-bottom: 2px;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid var(--ewl-line);
}

.ewl-tabs::-webkit-scrollbar {
	display: none;
}

.ewl-tabs button {
	flex: 0 0 auto;
	padding: 10px 14px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--ewl-muted);
	font: inherit;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.ewl-tabs button[aria-selected="true"] {
	border-bottom-color: var(--ewl-teal);
	color: var(--ewl-navy);
}

/* ------------------------------------------------------------------ lists */

.ewl-dl {
	display: grid;
	gap: 2px 16px;
	grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
	margin: 0;
}

.ewl-dl dt {
	color: var(--ewl-muted);
	font-size: 13.5px;
	font-weight: 400;
	text-align: left;
}

.ewl-dl dd {
	margin: 0 0 8px;
	color: var(--ewl-navy);
	text-align: left;
}

/* ------------------------------------------------------------------ forms */

.ewl-club .ewl-formrow {
	display: block;
	margin: 0 0 14px;
}

.ewl-formrow > label,
.ewl-formrow__label,
.ewl-club .ewl-formrow legend {
	display: block;
	margin: 0 0 5px;
	color: var(--ewl-navy);
	font-size: 13.5px;
	font-weight: 600;
}

.ewl-club .ewl-formrow input[type="text"],
.ewl-club .ewl-formrow input[type="email"],
.ewl-club .ewl-formrow input[type="tel"],
.ewl-club .ewl-formrow input[type="date"],
.ewl-club .ewl-formrow input[type="number"],
.ewl-club .ewl-formrow input[type="password"],
.ewl-club .ewl-formrow select,
.ewl-club .ewl-formrow textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--ewl-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ewl-navy);
	font-family: inherit;
	font-size: 15px;
}

.ewl-club .ewl-formrow textarea {
	min-height: 84px;
	resize: vertical;
}

.ewl-club .ewl-formrow input:focus,
.ewl-club .ewl-formrow select:focus,
.ewl-club .ewl-formrow textarea:focus {
	border-color: var(--ewl-teal);
	outline: 2px solid rgba(41, 151, 170, 0.18);
	outline-offset: 1px;
}

.ewl-formrow small {
	display: block;
	margin-top: 4px;
	color: var(--ewl-muted);
	font-size: 12.5px;
}

.ewl-formrow__err {
	display: block;
	margin-top: 4px;
	color: #b3261e;
	font-size: 12.5px;
	font-style: normal;
}

.ewl-formrow.is-bad input,
.ewl-formrow.is-bad select,
.ewl-formrow.is-bad textarea {
	border-color: #e0a2a2;
}

.ewl-formgrid {
	display: grid;
	gap: 0 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ewl-formactions {
	display: flex;
	gap: 8px;
	margin: 16px 0 0;
}

.ewl-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
}

.ewl-club .ewl-check input {
	width: 20px;
	height: 20px;
	margin: 0;
}

.ewl-club fieldset {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

/* ---------------------------------------------------------------- wizard */

.ewl-wizard {
	max-width: 640px;
	margin: 0 auto 18px;
}

.ewl-steps {
	display: flex;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.ewl-steps li {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--ewl-bg);
	color: var(--ewl-muted);
	font-size: 13px;
	font-weight: 600;
}

.ewl-steps li.is-on {
	background: var(--ewl-aqua);
	color: var(--ewl-teal-deep);
}

.ewl-steps b {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	font-size: 12px;
}

.ewl-steps li.is-on b {
	background: var(--ewl-teal);
	color: #fff;
}

.ewl-picker {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ewl-picker__opt {
	display: grid;
	place-items: center;
	gap: 6px;
	padding: 16px 10px;
	border: 2px solid var(--ewl-line);
	border-radius: 14px;
	color: var(--ewl-slate);
	font-weight: 600;
	cursor: pointer;
}

.ewl-picker__opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ewl-picker__opt:has(input:checked),
.ewl-picker__opt.is-on {
	border-color: var(--ewl-teal);
	background: var(--ewl-aqua);
	color: var(--ewl-teal-deep);
}

.ewl-dob {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ewl-club .ewl-dob input[type="date"] {
	width: auto;
	min-width: 170px;
}

.ewl-dob__or {
	color: var(--ewl-muted);
	font-size: 13px;
}

.ewl-dob__age {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ewl-club .ewl-dob__age input {
	width: 76px;
}

.ewl-dob__age i {
	color: var(--ewl-muted);
	font-size: 13px;
	font-style: normal;
}

.ewl-drop {
	display: grid;
	place-items: center;
	min-height: 220px;
	padding: 18px;
	border: 2px dashed var(--ewl-line);
	border-radius: 14px;
	text-align: center;
}

.ewl-drop.is-over {
	border-color: var(--ewl-teal);
	background: var(--ewl-aqua);
}

.ewl-drop__preview img {
	max-height: 260px;
	border-radius: 12px;
}

.ewl-drop__prompt {
	color: var(--ewl-muted);
}

.ewl-wizard__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 20px 0 0;
}

.ewl-wizard__done {
	text-align: center;
}

.ewl-wizard__cheer {
	display: inline-grid;
	place-items: center;
	width: 74px;
	height: 74px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--ewl-aqua);
	color: var(--ewl-gold);
}

.ewl-wizard__done .ewl-wizard__nav {
	justify-content: center;
}

/* ---------------------------------------------------------------- chart */

.ewl-chart {
	margin: 6px 0 0;
}

.ewl-chart svg {
	width: 100%;
	height: auto;
}

.ewl-chart__line {
	fill: none;
	stroke: var(--ewl-teal);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ewl-chart__dot {
	fill: #fff;
	stroke: var(--ewl-teal);
	stroke-width: 2.5;
}

.ewl-chart figcaption {
	margin-top: 4px;
	color: var(--ewl-muted);
	font-size: 12.5px;
}

.ewl-bignum {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 6px;
}

.ewl-bignum b {
	color: var(--ewl-navy);
	font-size: 26px;
}

.ewl-delta {
	color: var(--ewl-muted);
	font-size: 13px;
}

.ewl-delta.is-up {
	color: #b06a00;
}

.ewl-delta.is-down {
	color: #3f6b21;
}

/* ---------------------------------------------------------- empty states */

.ewl-empty {
	padding: 22px 10px;
	color: var(--ewl-muted);
	text-align: center;
}

.ewl-empty__icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--ewl-aqua);
	color: var(--ewl-teal);
}

/* -------------------------------------------------------- sheet / modal */

.ewl-sheet[hidden] {
	display: none;
}

.ewl-sheet {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
}

.ewl-sheet__scrim {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
}

.ewl-sheet__panel {
	position: relative;
	width: min(560px, calc(100vw - 32px));
	max-height: min(86vh, 760px);
	overflow: auto;
	padding: 18px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}

.ewl-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
}

.ewl-sheet__head h2 {
	font-size: 18px;
}

/* --------------------------------------------------------------- toasts */

.ewl-toasts {
	position: fixed;
	z-index: 100000;
	top: 18px;
	right: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.ewl-toast {
	display: flex;
	align-items: center;
	gap: 9px;
	max-width: 330px;
	padding: 11px 15px;
	border-radius: 12px;
	background: var(--ewl-navy);
	color: #fff;
	font-size: 14px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.ewl-toast--bad {
	background: #b3261e;
}

/* The signed-out notice stays put — the member needs to act on it, and the
   form behind it is still holding what they typed. */
.ewl-toast--sticky a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
}

.ewl-toast--treat {
	background: var(--ewl-gold);
	color: #3b2a05;
}

/* ------------------------------------------------------------- auth pages */

.ewl-authwrap {
	max-width: 460px;
	margin: 0 auto;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
	.ewl-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ewl-pet__hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.ewl-pet__photo {
		max-width: 280px;
	}

	.ewl-petgrid--page {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* The navigation carries Log out on anything wide enough to show it, so the
   account screen's own copy only appears where that one is hidden. */
.ewl-account__out {
	display: none;
}

@media (max-width: 640px) {
	/* Thumb targets. The text keeps its size and place; only the box around it
	   grows, so nothing in the layout shifts. */
	.ewl-club .ewl-link,
	.ewl-petcard__name a,
	.ewl-nav__brand {
		display: inline-block;
		padding: 6px 2px;
		margin: -6px 0;
	}

	.ewl-tabs button,
	a.ewl-chip {
		min-height: 36px;
	}

	a.ewl-chip {
		display: inline-flex;
		align-items: center;
	}

	.ewl-club__body {
		padding: 16px 14px 26px;
	}

	/* The site's own logo hangs below the header on phones; the club name would
	   sit underneath it, and the tab bar names the club anyway. */
	.ewl-nav__brand span {
		display: none;
	}

	.ewl-hello {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.ewl-hello__title {
		font-size: 25px;
	}

	.ewl-formgrid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ewl-dl {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.ewl-dl dt {
		margin-top: 8px;
	}

	.ewl-petgrid,
	.ewl-petgrid--page {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ewl-sheet {
		place-items: end stretch;
	}

	.ewl-sheet__panel {
		width: 100%;
		max-height: 88vh;
		border-radius: 18px 18px 0 0;
	}

	.ewl-toasts {
		top: auto;
		right: 12px;
		bottom: 84px;
		left: 12px;
	}

	.ewl-toast {
		max-width: none;
	}
}
