:root {
	--yg-bg: #fbf7f1;
	--yg-surface: #fffcf7;
	--yg-line: #eadfd2;
	--yg-ink: #4a3428;
	--yg-muted: #8a7566;
	--yg-accent: #8b4f33;
	--yg-accent-ink: #fbf3ea;
	--yg-soft: #f2e4d6;
	--yg-mark: #e3e6d6;
	--yg-mark-ink: #66704f;
	--yg-disabled: #efe6dc;
	--yg-font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

body,
body.yoga-body {
	background: var(--yg-bg);
	color: var(--yg-ink);
	font-family: var(--yg-font);
}

.studio-brand,
.studio-brand span {
	font-family: var(--yg-font);
	color: var(--yg-ink);
	font-weight: 700;
	text-decoration: none;
}

.yoga-toolbar {
	display: flex;
	justify-content: center;
	padding: 8px 16px;
	background: var(--yg-soft);
	color: var(--yg-ink);
	font-size: 13px;
	text-align: center;
}
.yoga-toolbar span { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; }
.yoga-toolbar small { color: var(--yg-muted); font-size: 13px; }

.yg-wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.yg-header { border-bottom: 1px solid var(--yg-line); background: var(--yg-surface); }
.yg-header-inner,
.topbar .header-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	min-height: 96px;
}
.yg-brand,
.topbar .studio-brand {
	grid-column: 2;
	justify-self: center;
}
.yg-header-actions,
.topbar .header-inner > :last-child {
	grid-column: 3;
	justify-self: end;
}
.yg-brand .header-logo,
.topbar .studio-brand .header-logo {
	display: block;
	width: 160px;
	height: 80px;
	object-fit: contain;
	border-radius: 0;
	box-shadow: none;
	filter: none;
}
.topbar {
	height: auto;
}
@media (max-width: 600px) {
	.yg-header-inner,
	.topbar .header-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding-top: 8px;
		padding-bottom: 12px;
	}
	.yg-brand,
	.yg-header-actions,
	.topbar .studio-brand,
	.topbar .header-inner > :last-child {
		grid-column: 1;
		justify-self: center;
	}
	.yg-brand .header-logo,
	.topbar .studio-brand .header-logo {
		width: 128px;
		height: 64px;
	}
}
.yg-brand { color: var(--yg-ink); font-weight: 700; font-size: 18px; text-decoration: none; }
.yg-header-actions { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.yg-link { color: var(--yg-muted); text-decoration: none; }
.yg-link:hover { color: var(--yg-accent); }
.yg-signin { color: var(--yg-accent); font-weight: 600; }

.yg-main { padding: 28px 0 40px; }

.yg-calendar { background: var(--yg-surface); border: 1px solid var(--yg-line); border-radius: 14px; padding: 18px 18px 6px; }
.yg-calendar-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--yg-line); }
.yg-calendar-head h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--yg-accent); letter-spacing: -0.01em; }
.yg-week { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.yg-week[aria-busy="true"] { opacity: .6; }
.yg-arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--yg-line); border-radius: 50%; color: var(--yg-ink); text-decoration: none; font-size: 16px; line-height: 1; }
.yg-arrow:hover { border-color: var(--yg-accent); color: var(--yg-accent); }
.yg-arrow.is-disabled { color: #c9b9aa; }

.yg-days { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--yg-line); }
.yg-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 0; border-radius: 6px; background: transparent; color: var(--yg-muted); font: inherit; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.yg-day strong { font-size: 16px; color: var(--yg-ink); letter-spacing: 0; }
.yg-day:hover { background: #f7ece1; }
.yg-day.is-selected { background: var(--yg-soft); color: var(--yg-accent); }
.yg-day.is-past { opacity: .6; }
.yg-day:focus-visible, .yg-reserve:focus-visible, .yg-arrow:focus-visible { outline: 2px solid var(--yg-accent); outline-offset: 2px; }

.yg-day-heading { display: flex; justify-content: space-between; padding: 14px 0 10px; font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--yg-line); }
.yg-day-heading span:last-child { color: var(--yg-muted); font-weight: 500; }

.yg-rows:focus { outline: none; }
.yg-row { display: grid; grid-template-columns: 110px 1.2fr 1fr 64px 150px; align-items: center; gap: 12px; padding: 14px 10px; border-bottom: 1px solid var(--yg-line); }
.yg-row[hidden], .day-title[hidden], .yg-empty[hidden] { display: none; }
.yg-time strong { font-size: 13px; }
.yg-time small { margin-left: 6px; font-size: 11px; color: var(--yg-muted); }
.yg-service { display: flex; flex-direction: column; gap: 4px; }
.yg-service .class-name { font-weight: 700; font-size: 14px; }
.yg-service small { font-size: 12px; color: var(--yg-muted); }
.yg-person { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--yg-muted); }
.yg-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yg-mark); color: var(--yg-mark-ink); font-size: 11px; font-weight: 700; }
.yg-price { text-align: right; font-weight: 700; font-size: 13px; }
.yg-reserve { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; justify-self: end; min-width: 130px; min-height: 38px; padding: 8px 18px; white-space: nowrap; border: 0; border-radius: 999px; background: var(--yg-accent); color: var(--yg-accent-ink); font: inherit; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.yg-reserve:hover { transform: translateY(-1px); }
.yg-reserve.is-disabled { background: var(--yg-disabled); color: var(--yg-muted); cursor: default; transform: none; }
.yg-row.unavailable .class-name { color: var(--yg-muted); }
.yg-empty { margin: 0; padding: 28px 10px; text-align: center; color: var(--yg-muted); font-size: 14px; }

.yg-next { display: flex; justify-content: center; margin-top: 20px; }
.yg-next-link { color: var(--yg-accent); font-weight: 600; text-decoration: none; padding: 10px 16px; border: 1px solid var(--yg-line); border-radius: 999px; background: var(--yg-surface); }

.booking-dialog { border: 1px solid var(--yg-line); border-radius: 14px; background: var(--yg-surface); color: var(--yg-ink); font-family: var(--yg-font); padding: 0; max-width: 460px; width: calc(100% - 24px); }
.booking-dialog::backdrop { background: rgba(74, 52, 40, .35); }
.booking-dialog .dialog-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 22px; color: var(--yg-muted); cursor: pointer; }
.booking-dialog .booking-shell { padding: 24px; }
.booking-dialog .booking-title { font-size: 20px; font-weight: 700; color: var(--yg-accent); margin: 2px 0 12px; }
.booking-dialog .dialog-eyebrow { margin: 0; font-size: 12px; color: var(--yg-muted); text-transform: uppercase; letter-spacing: .06em; }
.booking-dialog .booking-meta { font-size: 13px; display: grid; gap: 4px; margin-bottom: 14px; }
.ref-dropin-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; }
.ref-dropin-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--yg-line); border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.ref-dropin-row small { display: block; color: var(--yg-muted); font-size: 11px; }
.booking-form { font-size: 12px; color: var(--yg-muted); }
.booking-form .field-label { display: block; margin: 8px 0 4px; font-weight: 600; color: var(--yg-ink); font-size: 13px; }
.booking-form .booking-input { width: 100%; padding: 9px 11px; border: 1px solid var(--yg-line); border-radius: 8px; background: var(--yg-bg); color: var(--yg-ink); font: inherit; font-size: 14px; }
.booking-form .booking-input.input-error { border-color: #b4553c; }
.field-error { display: none; color: #b4553c; font-size: 12px; margin-top: 4px; }
.booking-submit { width: 100%; margin-top: 16px; min-height: 42px; border: 0; border-radius: 999px; background: var(--yg-accent); color: var(--yg-accent-ink); font: inherit; font-weight: 600; cursor: pointer; }
.booking-submit:disabled { opacity: .55; cursor: default; }
.form-message { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.form-message.success { background: var(--yg-mark); color: var(--yg-mark-ink); }
.form-message.error { background: #f6e1d8; color: #8f3d27; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; width: min(1080px, calc(100% - 32px)); margin: 0 auto 28px; font-size: 12px; color: var(--yg-muted); }
.footer a { color: var(--yg-muted); }

@media (max-width: 767px) {
	.yg-calendar { padding: 14px 12px 4px; }
	.yg-calendar-head h1 { font-size: 18px; }
	.yg-days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.yg-day { flex: 0 0 56px; scroll-snap-align: start; }
	.yg-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 4px; }
	.yg-time { grid-column: 1 / -1; }
	.yg-service { grid-column: 1; }
	.yg-price { grid-column: 2; grid-row: 2; }
	.yg-person { grid-column: 1; }
	.yg-reserve { grid-column: 2; }
}
