:root {
	color-scheme: light;
	font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
	color: #342a24;
	background: #f8f4ef;
}

* { box-sizing: border-box; }
body { margin: 0; }
.app {
	max-width: 34rem;
	margin: auto;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
.app-header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.15rem 1.4rem;
	border-bottom: 1px solid #e6d9ce;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	max-width: 100%;
}
.brand-emblem, .brand-wordmark {
	background-image: url("/img/logo.png");
	background-repeat: no-repeat;
}
.brand-emblem {
	width: 4.1rem;
	height: 3.15rem;
	background-size: auto 3.15rem;
	background-position: left center;
}
.brand-wordmark {
	width: 8.5rem;
	height: 2.1rem;
	background-size: auto 2.1rem;
	background-position: right center;
}
main { flex: 1; padding: 1.7rem 1.4rem 2rem; }
.entry-main { display: grid; align-content: center; padding-block: 1.7rem; }
h1 { margin: 0 0 .55rem; font-size: 1.8rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.intro { margin: 0 0 1.4rem; color: #695346; line-height: 1.6; }
.member-name { font-size: 1.25rem; font-weight: 700; }
.card, .member-card {
	border: 1px solid #e6d9ce;
	border-radius: 1.2rem;
	background: #fffdfb;
	padding: 1.25rem;
}
form { display: grid; gap: .65rem; }
.booking-options { display: grid; gap: 1rem; }
.booking-options .action { min-height: 3.5rem; }
.booking-options .guest-entry { margin-top: 2.5rem; }
.booking-profile a { color: #654538; text-underline-offset: .15em; }
button.secondary, .action.secondary {
	border: 1px solid #b9a99d;
	background: #fffdfb;
	color: #654538;
}
.booking-back { margin-top: 1rem; }

label { font-weight: 600; }
select, input, button {
	width: 100%;
	min-width: 0;
	min-height: 3rem;
	font: inherit;
	border-radius: .6rem;
}
select, input {
	border: 1px solid #b9a99d;
	color: inherit;
	background: #fff;
	padding: .65rem;
	margin-bottom: .65rem;
}
button, .action {
	border: 0;
	background: #654538;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
:focus-visible { outline: 2px solid #654538; outline-offset: 3px; }
.action {
	display: grid;
	place-items: center;
	min-height: 3rem;
	border-radius: .6rem;
	text-decoration: none;
	text-align: center;
	padding: .4rem .7rem;
}
.registration-actions,
.booking-confirm-actions,
.profile-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	gap: .75rem;
	margin-top: 1.35rem;
}

.top-back {
	width: min(100%, 16rem);
	margin: 1.25rem auto 0;
}

.back-link { display: inline-block; margin-top: 1rem; color: #654538; }
.field-hint, .booking-profile { margin: 0 0 .65rem; line-height: 1.6; }
.notice { padding: .8rem 1rem; border-radius: .6rem; line-height: 1.6; }
.error { background: #f7e5e0; color: #752f27; }
.receipt dl { margin: 0; }
.receipt dt { font-weight: 600; }
.receipt dd { margin: .25rem 0 .8rem; overflow-wrap: anywhere; }
.receipt p { margin-bottom: 0; line-height: 1.6; }
.member-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #654538;
	color: #fff;
}
.member-card p { margin: 0; }
.member-card p:first-child { white-space: nowrap; }
.member-card strong { font: 2.7rem Georgia, serif; }
.install-area {
	display: grid;
	justify-items: center;
	padding: 0 1.4rem 1.25rem;
}
.member-logout {
	padding: 0 1.4rem 1rem;
}
@media (display-mode: standalone) {
	.install-area { display: none; }
}
.app-footer {
	padding: 1rem 1.4rem calc(1rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #e6d9ce;
	color: #695346;
	text-align: center;
}
.app-footer small { font-size: .75rem; }
.install-button {
	width: min(100%, 16rem);
	min-height: 3.2rem;
	border: 1px solid #b9a99d;
	background: #eee4db;
	color: #695346;
	cursor: default;
}

a.install-button { cursor: pointer; }

.app-header { justify-content: space-between; gap: .75rem; }
.brand { flex-shrink: 1; }
.brand-emblem, .brand-wordmark { display: block; }
.account-link {
	flex-shrink: 0;
	padding: .55rem .65rem;
	border: 1px solid #d6c5b9;
	border-radius: .6rem;
	color: #654538;
	font-size: .78rem;
	font-weight: 600;
	text-decoration: none;
}
.home-booking { display: grid; text-align: center; }
.main-action { min-height: 3.75rem; }
.home-sections { display: grid; gap: 1.3rem; margin-top: 1.5rem; }
.content-preview { position: relative; display: flex; align-items: center; min-height: 5.25rem; overflow: hidden; }
.content-preview img { position: absolute; right: 0; width: 75%; height: 100%; object-fit: cover; }
.content-preview p { position: relative; max-width: 76%; margin: 0; line-height: 1.6; }
.coupon-preview { background: #f8eee6; }
.coupon-preview img { opacity: .65; }
.time-slots { display: grid; gap: .55rem; }
.time-slots button {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: .65rem;
	min-height: 3.25rem;
	padding: .5rem .75rem;
	text-align: left;
	white-space: nowrap;
}
.time-slots .slot-therapist {
	overflow: hidden;
	border-inline-start: 1px solid currentColor;
	padding-inline-start: .65rem;
	text-overflow: ellipsis;
}
.time-slots .slot-status {
	border-inline-start: 1px solid currentColor;
	padding-inline-start: .65rem;
	font-size: .8rem;
}
.time-slots .slot-status > span {
	margin-inline-end: .15em;
	font-size: 1rem;
}
.time-slots .slot-status.open { color: #b9ecd0; }
.time-slots .slot-status.closed { color: #a32325; }
.time-slots button:disabled { background: #eee5dd; color: #695346; cursor: default; }
.time-slots small { font-size: .8rem; }
.selected-slot { color: #695346; line-height: 1.6; }
.staff-preview, .booking-history { margin-top: 1.2rem; }
.staff-example { display: flex; align-items: center; gap: .8rem; }
.staff-example img { width: 3.7rem; height: 3.7rem; object-fit: cover; object-position: right; border-radius: 50%; background: #f4e2d8; }
.staff-example p { margin: .25rem 0 0; color: #695346; font-size: .8rem; }
.booking-history ul { list-style: none; margin: 0; padding: 0; }
.booking-history li { padding: .65rem 0; line-height: 1.6; overflow-wrap: anywhere; }
.booking-history li + li { border-top: 1px solid #e6d9ce; }
.booking-history .intro { margin-bottom: 0; }
@media (max-width: 340px) {
	.app-header { padding-inline: 1rem; }
	.brand { gap: .35rem; }
	.brand-wordmark { width: 7.15rem; height: 1.75rem; background-size: auto 1.75rem; }
}

.site-swal {
	border-radius: .9rem;
	background: #fffdf9;
}

.site-swal .swal-title,
.site-swal .swal-text {
	color: #342a24;
}

.site-swal .swal-button--confirm:not(.swal-button--danger) {
	background: #614438;
}

.site-swal .swal-button--cancel {
	background: #f1e6de;
	color: #342a24;
}

.history-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: .55rem;
}

.history-actions .action,
.history-actions button {
	min-height: 2.65rem;
	padding: .4rem .7rem;
	font-size: .8rem;
}

.member-fieldset {
	min-width: 0;
	margin: 1rem 0 1.25rem;
	padding: .75rem .9rem .25rem;
	border: 1px solid #e6d9ce;
	border-radius: .65rem;
}

.member-fieldset legend {
	padding-inline: .35rem;
	font-size: .9rem;
	font-weight: 700;
	color: #614438;
}

.support-card {
	line-height: 1.65;
}

.support-form textarea {
	width: 100%;
	padding: .65rem;
	border: 1px solid #b9a99d;
	border-radius: .6rem;
	background: #fff;
	color: inherit;
	font: inherit;
	resize: vertical;
}

.support-card a,
.support-links a {
	color: #614438;
}

.support-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem 1rem;
	margin-bottom: .6rem;
	font-size: .75rem;
}

.member-shortcuts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .75rem;
	margin-block: 2rem 1.25rem;
}

.member-shortcuts a {
	display: grid;
	justify-items: center;
	gap: .4rem;
	min-width: 0;
	text-align: center;
	color: #654538;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
}

.member-shortcut-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: min(100%, 5.5rem);
	aspect-ratio: 1;
	border: 1px solid #dfcfc2;
	border-radius: 1rem;
	background: #f3e6dc;
}

.member-shortcuts a:hover .member-shortcut-icon {
	background: #ead8ca;
}

.member-shortcut-icon img {
	display: block;
	width: 66%;
	height: auto;
}

.profile-email {
	display: grid;
	gap: .65rem;
	overflow-wrap: anywhere;
}

.profile-email p { margin: 0; }

.profile-deletion {
	margin-top: 1rem;
}

.profile-deletion summary {
	color: #872e2e;
	cursor: pointer;
	font-weight: 600;
}

.account-deletion-submit {
	background: #872e2e;
}

.support-card a.account-deletion-login {
	color: #fff;
}

.next-booking h2 { margin-bottom: 1rem; }
.next-booking-date { margin: 0 0 .75rem; font-size: 1.25rem; font-weight: 700; }
.next-booking-details { margin: 0; line-height: 1.7; }

.publication-image { display: block; width: 100%; height: auto; border-radius: .6rem; margin: 1rem 0; }
