/**
 * Booking calendar — the app's styles (yc-booking 1.17.0). Colours, sizes and radii are the
 * canvas's ("Yofi Center - Booking calendar"). Phone first; the desktop frame from 1024px.
 */

.yc-cal-body {
	margin: 0;
	background: #FAFAFA;
}

.yc-cal {
	--ink: #2E193A;
	--brand: #A63C6C;
	--brand-dark: #8E3159;
	--tint: #F9E9F1;
	--fill: #F2D6E4;
	--accent: #C54D83;
	--badge: #FF6699;
	--muted: #54595F;
	--edge: #8C8290;
	--line: #EDEDED;
	--closed: #F5F5F6;
	--ok: #2C7A3D;
	--ok-bg: #EAF7EC;
	--shadow: 0 1px 2px rgba(46, 25, 58, 0.06), 0 2px 8px rgba(46, 25, 58, 0.06);
	--bar: 0 -2px 12px rgba(46, 25, 58, 0.14);
	color: var(--ink);
	font-family: Assistant, "Segoe UI", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-tap-highlight-color: transparent;
}

.yc-cal *,
.yc-cal *::before,
.yc-cal *::after {
	box-sizing: border-box;
}

.yc-cal a {
	color: inherit;
	text-decoration: none;
}

.yc-cal button,
.yc-cal input,
.yc-cal select,
.yc-cal textarea {
	font: inherit;
	color: inherit;
}

/* :where() keeps this reset weaker than every .yc-cal .yc-cal-… button style. */
.yc-cal :where(.yc-cal-screen button) {
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}

.yc-cal a:focus-visible,
.yc-cal button:focus-visible,
.yc-cal input:focus-visible,
.yc-cal select:focus-visible,
.yc-cal textarea:focus-visible,
.yc-cal label:focus-within {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.yc-cal svg {
	display: block;
	flex-shrink: 0;
}

.yc-cal [hidden] {
	display: none !important;
}

.yc-cal-loading,
.yc-cal-empty {
	margin: 32px 16px;
	text-align: center;
	color: var(--muted);
}

.yc-cal-muted {
	color: var(--muted);
}

/* ---------------- Screens ---------------- */

.yc-cal-screen {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.yc-cal-head {
	position: sticky;
	top: 0;
	z-index: 6;
	min-height: 56px;
	padding: 0 6px;
	display: flex;
	align-items: center;
	gap: 4px;
	background: #FFFFFF;
	border-bottom: 1px solid var(--line);
}

.yc-cal-head .yc-cal-chip {
	margin-inline-start: auto;
	margin-inline-end: 10px;
}

.yc-cal-head--big {
	padding: 16px 16px 12px;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.yc-cal-h1 {
	margin: 0;
	font-size: 22px;
	line-height: 1.35;
	font-weight: 600;
}

.yc-cal-head--big .yc-cal-h1 {
	font-size: 30px;
}

.yc-cal-h2 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 600;
}

.yc-cal-title {
	margin: 0;
	font-size: 28px;
	line-height: 1.3;
	font-weight: 600;
}

.yc-cal-body {
	flex: 1 1 auto;
	padding: 16px 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.yc-cal-body.is-narrow {
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
}

.yc-cal-foot {
	position: sticky;
	bottom: 0;
	z-index: 6;
	margin-top: auto;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	display: flex;
	gap: 12px;
	background: #FFFFFF;
	box-shadow: var(--bar);
}

.yc-cal-foot > * {
	flex: 1;
}

/* A form's own bar runs the full width under its padding. */
.yc-cal-body > .yc-cal-foot {
	margin: auto -16px -24px;
}

.yc-cal-foot .yc-cal-btn--wide {
	flex: 2;
}

.yc-cal-brand {
	height: 52px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid var(--line);
	background: #FFFFFF;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

/* ---------------- Buttons, chips, fields ---------------- */

.yc-cal .yc-cal-btn {
	min-height: 48px;
	padding: 0 16px;
	border-radius: 10px;
	background: var(--brand);
	color: #FFFFFF;
	border: 1px solid var(--brand);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

.yc-cal .yc-cal-btn:hover {
	background: var(--brand-dark);
	border-color: var(--brand-dark);
}

.yc-cal .yc-cal-btn--ghost {
	background: #FFFFFF;
	border-color: var(--edge);
	color: var(--brand);
}

.yc-cal .yc-cal-btn--ghost:hover {
	background: var(--tint);
	border-color: var(--edge);
}

.yc-cal .yc-cal-btn:disabled {
	opacity: 0.55;
	cursor: default;
}

.yc-cal .yc-cal-btn[data-sure] {
	background: #FFFFFF;
	color: #9B1C1C;
	border-color: #9B1C1C;
}

.yc-cal .yc-cal-link {
	align-self: flex-start;
	min-height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	color: var(--brand);
	font-weight: 600;
	text-decoration: underline;
}

.yc-cal .yc-cal-link.is-quiet {
	color: var(--muted);
}

.yc-cal .yc-cal-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	padding: 0;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--brand);
}

.yc-cal .yc-cal-icon:hover {
	background: var(--tint);
}

.yc-cal .yc-cal-icon.is-small {
	width: 36px;
	height: 36px;
	color: var(--muted);
}

.yc-cal .yc-cal-outline {
	background: #FFFFFF;
	border: 1px solid var(--edge);
}

.yc-cal-chip {
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.yc-cal-chip.is-wait {
	background: var(--tint);
	color: var(--brand);
}

.yc-cal-chip.is-wait.is-dashed {
	background: #FFFFFF;
	border: 1px dashed var(--brand);
}

.yc-cal-chip.is-ok {
	background: var(--ok-bg);
	color: var(--ok);
}

.yc-cal-chip.is-off {
	background: var(--line);
	color: var(--muted);
}

.yc-cal-badge {
	position: absolute;
	top: -4px;
	left: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--badge);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.yc-cal-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-inline-end: 4px;
	border-radius: 999px;
	vertical-align: middle;
	flex-shrink: 0;
}

.yc-cal-dot.is-big {
	width: 14px;
	height: 14px;
	margin: 0;
}

.yc-cal-round {
	position: relative;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--tint);
	color: var(--brand);
	display: flex;
	align-items: center;
	justify-content: center;
}

.yc-cal-round.is-on {
	background: var(--brand);
	color: #FFFFFF;
}

.yc-cal-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-weight: 600;
	min-width: 0;
}

.yc-cal-field input,
.yc-cal-field select,
.yc-cal-field textarea,
.yc-cal-copy input {
	width: 100%;
	min-height: 48px;
	padding: 0 10px;
	border-radius: 6px;
	border: 1px solid var(--edge);
	background: #FFFFFF;
	font-weight: 400;
}

.yc-cal-field textarea {
	padding: 10px 12px;
	line-height: 1.5;
	resize: vertical;
}

.yc-cal-two,
.yc-cal-three {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.yc-cal-three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.yc-cal-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.yc-cal-set {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.yc-cal-set legend {
	padding: 0;
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 600;
}

.yc-cal-check {
	min-height: 44px;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.yc-cal-check input {
	width: 20px;
	height: 20px;
	accent-color: var(--brand);
}

.yc-cal-search {
	height: 48px;
	padding: 0 12px;
	border-radius: 6px;
	border: 1px solid var(--edge);
	background: #FFFFFF;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
}

.yc-cal-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: none;
	color: var(--ink);
}

.yc-cal-search:focus-within {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.yc-cal-search input:focus-visible {
	outline: 0;
}

/* Pills: filter buttons and radio labels look the same. */
.yc-cal-pills {
	display: flex;
	gap: 8px;
	overflow-x: auto;
}

.yc-cal-pills.is-wrap {
	flex-wrap: wrap;
	overflow: visible;
}

.yc-cal-pills.is-even > * {
	flex: 1;
	justify-content: center;
}

.yc-cal .yc-cal-pills > button,
.yc-cal-pill {
	position: relative;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	background: #FFFFFF;
	border: 1px solid var(--edge) !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.yc-cal .yc-cal-pills > button[aria-pressed="true"],
.yc-cal-pill:has(input:checked) {
	background: var(--tint);
	border: 2px solid var(--brand) !important;
	color: var(--brand);
}

.yc-cal-pill input,
.yc-cal-option input,
.yc-cal-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.yc-cal-pill.is-add {
	border-style: dashed !important;
	color: var(--brand);
}

.yc-cal-option {
	position: relative;
	min-height: 60px;
	padding: 8px 14px;
	border-radius: 10px;
	background: #FFFFFF;
	border: 1px solid var(--edge);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
}

.yc-cal-option > span:first-of-type {
	display: flex;
	flex-direction: column;
}

.yc-cal-option:has(input:checked) {
	background: var(--tint);
	border: 2px solid var(--brand);
}

.yc-cal-option.is-center {
	min-height: 48px;
	justify-content: center;
}

.yc-cal-price {
	font-size: 18px;
	font-weight: 600;
}

/* Switch: a checkbox drawn as a track. */
.yc-cal-switch {
	position: relative;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 500;
	cursor: pointer;
}

.yc-cal-switch__ui {
	position: relative;
	width: 44px;
	height: 26px;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--line);
	border: 1px solid var(--edge);
}

.yc-cal-switch__ui::after {
	content: "";
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: #FFFFFF;
	box-shadow: 0 1px 2px rgba(46, 25, 58, 0.2);
	transition: right 0.15s;
}

.yc-cal-switch input:checked + .yc-cal-switch__ui {
	background: var(--brand);
	border-color: var(--brand);
}

.yc-cal-switch input:checked + .yc-cal-switch__ui::after {
	right: 20px;
}

.yc-cal-switch input:focus-visible + .yc-cal-switch__ui {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.yc-cal-switch.is-small {
	justify-content: flex-start;
	width: 96px;
	flex-shrink: 0;
	gap: 8px;
	font-weight: 600;
}

/* ---------------- Boxes, cards, lists ---------------- */

.yc-cal-box {
	padding: 16px;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: var(--shadow);
}

.yc-cal-sec {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.yc-cal-card {
	padding: 16px;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.yc-cal-card__main {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.yc-cal-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 18px;
}

.yc-cal-card__top strong {
	font-weight: 600;
	flex: 1;
}

.yc-cal-pair {
	display: flex;
	gap: 8px;
	margin-top: 6px;
}

.yc-cal-pair > * {
	flex: 1;
}

.yc-cal-pair > :first-child {
	flex: 2;
}

.yc-cal-list {
	list-style: none;
	margin: 0;
	padding: 4px 16px;
	border-radius: 18px;
}

.yc-cal-list > li {
	min-height: 64px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid var(--line);
}

.yc-cal-list > li:last-child {
	border-bottom: 0;
}

.yc-cal-list__text,
.yc-cal-person__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}

.yc-cal-list__text strong,
.yc-cal-person__text strong {
	font-weight: 600;
}

.yc-cal .yc-cal-tool {
	width: 100%;
	min-height: 72px;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: start;
}

.yc-cal-tool.is-soon {
	opacity: 0.75;
}

.yc-cal-inline {
	flex-direction: column;
	align-items: stretch !important;
	gap: 10px;
	padding: 12px 0 16px;
}

.yc-cal-inline p {
	margin: 0;
}

.yc-cal-copy {
	display: flex;
	gap: 8px;
}

.yc-cal-avatar {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--tint);
	color: var(--brand);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 600;
}

.yc-cal-person {
	display: flex;
	align-items: center;
	gap: 12px;
}

.yc-cal-person .yc-cal-person__text strong {
	font-size: 22px;
}

.yc-cal-person__text a {
	color: var(--muted);
	align-self: flex-start;
}

.yc-cal-dl {
	margin: -4px 0;
}

.yc-cal-dl > div {
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--line);
}

.yc-cal-dl > div:last-child {
	border-bottom: 0;
}

.yc-cal-dl dt {
	color: var(--muted);
}

.yc-cal-dl dd {
	margin: 0;
	font-weight: 600;
	text-align: left;
}

.yc-cal-quote {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--tint);
	line-height: 1.6;
}

.yc-cal-log {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.yc-cal-log li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.yc-cal-log li span:last-child {
	flex-shrink: 0;
}

.yc-cal-more {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
}

.yc-cal-banner {
	padding: 14px 16px;
	border-radius: 18px;
	background: var(--tint);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.yc-cal-banner strong {
	font-size: 18px;
	font-weight: 600;
}

.yc-cal-ok {
	margin: 4px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--ok-bg);
	color: var(--ok);
	font-weight: 500;
}

.yc-cal-people {
	list-style: none;
	margin: 0;
	padding: 0;
}

.yc-cal-people li {
	border-bottom: 1px solid var(--line);
}

.yc-cal .yc-cal-people button {
	width: 100%;
	min-height: 72px;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: start;
}

.yc-cal-tools {
	padding: 12px 16px;
	background: #FFFFFF;
	border-bottom: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.yc-cal-newclient {
	display: none;
	flex-direction: column;
	gap: 12px;
}

[data-newclient="1"] .yc-cal-newclient {
	display: flex;
}

/* Hours: a row per weekday. */
.yc-cal-week {
	padding: 8px 16px;
	border-radius: 18px;
}

.yc-cal-week.is-same {
	opacity: 0.5;
	pointer-events: none;
}

.yc-cal-dayrow {
	min-height: 64px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid var(--line);
}

.yc-cal-dayrow:last-child {
	border-bottom: 0;
}

.yc-cal-times {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	color: var(--muted);
}

.yc-cal-times input {
	width: 88px;
	min-height: 44px;
	padding: 0 8px;
	border-radius: 6px;
	border: 1px solid var(--edge);
	background: #FFFFFF;
}

.yc-cal-closedtext {
	display: none;
	flex: 1;
	text-align: left;
	color: var(--muted);
}

.yc-cal-dayrow.is-off .yc-cal-times {
	display: none;
}

.yc-cal-dayrow.is-off .yc-cal-closedtext {
	display: block;
}

/* Availability: fields by kind. */
[data-kind="off"] .yc-cal-if-time,
[data-kind="block"] .yc-cal-if-off,
[data-kind="open"] .yc-cal-if-off {
	display: none !important;
}

/* Setup ring. */
.yc-cal-hero {
	height: 168px;
	border-radius: 18px;
	background: var(--tint);
	display: flex;
	align-items: center;
	justify-content: center;
}

.yc-cal-steps {
	list-style: none;
	margin: 0;
	padding: 4px 16px;
	border-radius: 18px;
}

.yc-cal-steps li {
	border-bottom: 1px solid var(--line);
}

.yc-cal-steps li:last-child {
	border-bottom: 0;
}

.yc-cal-steps a {
	min-height: 60px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.yc-cal-steps [aria-current] a {
	font-weight: 600;
}

.yc-cal-stepnum {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 999px;
	border: 2px solid var(--edge);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	color: var(--muted);
}

.yc-cal-stepnum.is-done {
	background: var(--tint);
	border-color: var(--brand);
	color: var(--brand);
}

.yc-cal-stepnum.is-now {
	background: var(--brand);
	border-color: var(--brand);
	color: #FFFFFF;
}

.yc-cal-emptyhero {
	padding: 32px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.yc-cal-toast {
	position: fixed;
	z-index: 50;
	left: 50%;
	bottom: calc(84px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	max-width: calc(100% - 32px);
	margin: 0;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--ink);
	color: #FFFFFF;
	box-shadow: 0 4px 16px rgba(46, 25, 58, 0.24);
	font-weight: 500;
	text-align: center;
}

/* ---------------- The calendar ---------------- */

.yc-cal-screen--cal {
	height: 100vh;
	height: 100dvh;
	min-height: 0;
	overflow: hidden;
	background: #FFFFFF;
}

.yc-cal-shortcuts {
	flex-shrink: 0;
	padding: 12px 8px 4px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	grid-auto-flow: column;
}

.yc-cal .yc-cal-shortcuts > a,
.yc-cal .yc-cal-shortcuts > button {
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 500;
}

.yc-cal-bar {
	flex-shrink: 0;
	min-height: 56px;
	padding: 0 12px;
	display: flex;
	align-items: center;
	gap: 2px;
}

.yc-cal .yc-cal-bar .yc-cal-icon {
	width: 40px;
}

.yc-cal-bar__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.yc-cal-grow {
	flex: 1;
}

.yc-cal-seg {
	height: 44px;
	flex-shrink: 0;
	display: flex;
	border: 1px solid var(--edge);
	border-radius: 10px;
	overflow: hidden;
}

.yc-cal .yc-cal-seg button {
	width: 42px;
	padding: 0;
	font-weight: 600;
	background: #FFFFFF;
}

.yc-cal .yc-cal-seg button[aria-pressed="true"] {
	background: var(--brand);
	color: #FFFFFF;
}

.yc-cal-note {
	flex-shrink: 0;
	min-height: 44px;
	padding: 4px 16px;
	background: var(--tint);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 500;
}

.yc-cal .yc-cal-note button {
	min-height: 36px;
	padding: 0 4px;
	color: var(--brand);
	font-weight: 600;
	text-decoration: underline;
}

.yc-cal-staffbar {
	flex-shrink: 0;
	padding: 4px 12px 8px;
	display: flex;
	gap: 6px;
	overflow-x: auto;
}

.yc-cal .yc-cal-staffbar button {
	min-height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--edge);
	background: #FFFFFF;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.yc-cal .yc-cal-staffbar button[aria-pressed="true"] {
	background: var(--tint);
	border: 2px solid var(--brand);
	color: var(--brand);
}

/* The week strip over the grid. */
.yc-cal-strip {
	flex-shrink: 0;
	display: flex;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.yc-cal .yc-cal-strip > button {
	flex: 1;
	min-width: 0;
	min-height: 76px;
	padding: 6px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	font-size: 13px;
	font-weight: 500;
}

.yc-cal .yc-cal-strip > button.is-closed {
	color: var(--muted);
}

.yc-cal .yc-cal-strip .yc-cal-strip__today {
	flex: 0 0 46px;
	justify-content: center;
	gap: 4px;
	border-inline-end: 1px solid var(--line);
	color: var(--brand);
	font-weight: 600;
}

.yc-cal-num {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 600;
}

.yc-cal-num.is-fill {
	background: var(--brand);
	color: #FFFFFF;
}

.yc-cal-num.is-ring {
	border: 2px solid var(--brand);
	color: var(--brand);
}

.yc-cal-pdot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
}

.yc-cal-pdot.is-on {
	background: var(--badge);
}

.yc-cal-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	position: relative;
}

.yc-cal-colheads {
	position: sticky;
	top: 0;
	z-index: 4;
	display: flex;
	background: #FFFFFF;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
	font-weight: 600;
}

.yc-cal-colheads span {
	flex: 1;
	min-width: 0;
	padding: 6px 2px;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.yc-cal-colheads span:first-child {
	flex: 0 0 46px;
}

.yc-cal-grid {
	position: relative;
	display: flex;
}

.yc-cal-hours {
	position: relative;
	width: 46px;
	flex-shrink: 0;
	border-inline-end: 1px solid var(--line);
}

.yc-cal-hours span {
	position: absolute;
	inset-inline: 0;
	text-align: center;
	font-size: 13px;
	line-height: 16px;
	color: var(--muted);
}

.yc-cal-cols {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
}

.yc-cal-line {
	position: absolute;
	inset-inline: 0;
	height: 1px;
	background: var(--line);
	z-index: 1;
	pointer-events: none;
}

.yc-cal-line.is-half {
	background: var(--closed);
}

.yc-cal-col {
	position: relative;
	flex: 1;
	min-width: 0;
	background: var(--closed);
	border-inline-end: 1px solid var(--line);
}

.yc-cal-col.is-target {
	background: var(--tint);
}

.yc-cal-open {
	position: absolute;
	inset-inline: 0;
	background: #FFFFFF;
}

.yc-cal-openlabel {
	position: absolute;
	inset-inline: 0;
	z-index: 1;
	padding-top: 4px;
	text-align: center;
	font-size: 13px;
	line-height: 17px;
	color: var(--muted);
	pointer-events: none;
}

.yc-cal .yc-cal-hit {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	z-index: 1;
}

.yc-cal-sel {
	position: absolute;
	inset-inline: 1px;
	z-index: 2;
	border-radius: 6px;
	background: #FFFFFF;
	border: 2px solid var(--brand);
	color: var(--brand);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.yc-cal .yc-cal-ev {
	position: absolute;
	z-index: 2;
	padding: 3px 5px;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--fill);
	color: var(--ink);
	font-size: 13px;
	line-height: 1.25;
	text-align: start;
}

.yc-cal .yc-cal-ev.is-pending {
	background: #FFFFFF;
	border: 1.5px dashed var(--brand);
	color: var(--brand);
}

.yc-cal .yc-cal-ev.is-block {
	background: var(--line);
	color: var(--muted);
}

.yc-cal-ev__who {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
}

.yc-cal-ev__sub {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.yc-cal-ev__chip {
	align-self: flex-start;
	margin-top: 2px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--tint);
	color: var(--brand);
	font-size: 13px;
	font-weight: 600;
}

.yc-cal-screen--cal.is-edit .yc-cal-ev:not(.is-block) {
	touch-action: none;
	cursor: grab;
	border: 1.5px solid var(--brand);
}

.yc-cal .yc-cal-ev.is-dragging {
	z-index: 5;
	opacity: 0.85;
	box-shadow: 0 4px 16px rgba(46, 25, 58, 0.24);
	cursor: grabbing;
}

.yc-cal-grip {
	position: absolute;
	top: 2px;
	left: 50%;
	width: 16px;
	height: 3px;
	margin-left: -8px;
	border-radius: 999px;
	background: var(--brand);
}

.yc-cal-grip.is-end {
	top: auto;
	bottom: 2px;
}

.yc-cal-now {
	position: absolute;
	inset-inline: 0;
	z-index: 3;
	height: 2px;
	background: var(--accent);
	pointer-events: none;
}

.yc-cal-now::before {
	content: "";
	position: absolute;
	inset-inline-start: -5px;
	top: -4px;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--accent);
}

.yc-cal-selbar {
	position: absolute;
	inset-inline: 12px;
	bottom: calc(76px + env(safe-area-inset-bottom));
	z-index: 7;
	padding: 10px 12px;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: 0 4px 16px rgba(46, 25, 58, 0.12);
	display: flex;
	align-items: center;
	gap: 8px;
}

.yc-cal-selbar > span {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.yc-cal-selbar .yc-cal-btn {
	min-height: 44px;
	padding: 0 12px;
}

.yc-cal-ring {
	position: absolute;
	left: 14px;
	bottom: calc(78px + env(safe-area-inset-bottom));
	z-index: 7;
	border-radius: 999px;
	background: #FFFFFF;
	box-shadow: 0 4px 16px rgba(46, 25, 58, 0.12);
}

/* Month. */
.yc-cal-month {
	flex-shrink: 0;
	padding: 6px 12px 8px;
	border-top: 1px solid var(--line);
}

.yc-cal-letters,
.yc-cal-cells {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	row-gap: 2px;
}

.yc-cal-letters span {
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}

.yc-cal .yc-cal-cells button {
	height: 56px;
	padding: 2px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.yc-cal .yc-cal-cells button.is-closed {
	color: var(--muted);
}

.yc-cal-cells .yc-cal-num {
	width: 30px;
	height: 30px;
}

.yc-cal-count {
	min-width: 20px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--fill);
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.yc-cal-todaylist {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 12px 16px 96px;
	border-top: 1px solid var(--line);
}

.yc-cal-row {
	min-height: 52px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid var(--line);
}

.yc-cal-row__at {
	width: 44px;
	flex-shrink: 0;
	font-weight: 600;
}

.yc-cal-row__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.yc-cal-row__text span {
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Bottom navigation. */
.yc-cal-tabs {
	position: sticky;
	bottom: 0;
	z-index: 8;
	flex-shrink: 0;
	height: calc(64px + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: #FFFFFF;
	box-shadow: var(--bar);
}

.yc-cal-tabs a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
}

.yc-cal-tabs a[aria-current] {
	color: var(--brand);
	font-weight: 600;
}

.yc-cal-tabs__ico {
	position: relative;
}

.yc-cal-tabs .yc-cal-badge {
	top: -6px;
	left: -12px;
}

/* After the button rules, at their specificity, so a desktop-only button stays hidden on a phone. */
.yc-cal .yc-cal-desk,
.yc-cal-desktop {
	display: none;
}

/* ---------------- Desktop ---------------- */

@media (min-width: 1024px) {
	.yc-cal .yc-cal-mob {
		display: none;
	}

	.yc-cal .yc-cal-desk {
		display: inline-flex;
	}

	.yc-cal .yc-cal-grow.yc-cal-desk {
		display: block;
	}

	.yc-cal-desktop {
		display: flex;
		min-height: 100vh;
		align-items: stretch;
	}

	.yc-cal-side {
		flex: 0 0 232px;
		padding: 24px 16px;
		background: #FFFFFF;
		border-inline-end: 1px solid var(--line);
		display: flex;
		flex-direction: column;
		gap: 8px;
		position: sticky;
		top: 0;
		height: 100vh;
	}

	.yc-cal-side__brand {
		text-align: center;
		font-size: 22px;
		font-weight: 700;
		letter-spacing: 0.5px;
	}

	.yc-cal-side__biz {
		margin: 0 0 12px;
		text-align: center;
		color: var(--muted);
		font-size: 14px;
	}

	.yc-cal-side nav {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.yc-cal-side nav a {
		min-height: 44px;
		padding: 0 12px;
		border-radius: 10px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-weight: 500;
	}

	.yc-cal-side nav a:hover,
	.yc-cal-side nav a[aria-current] {
		background: var(--tint);
		color: var(--brand);
	}

	.yc-cal-side nav a[aria-current] {
		font-weight: 600;
	}

	.yc-cal-side nav .yc-cal-badge {
		position: static;
	}

	.yc-cal-side__ring {
		margin-top: auto;
		padding: 16px;
		border-radius: 10px;
		background: var(--tint);
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.yc-cal-side__ring > span {
		display: flex;
		flex-direction: column;
		font-size: 14px;
		color: var(--muted);
	}

	.yc-cal-side__ring strong {
		font-size: 16px;
		color: var(--ink);
	}

	.yc-cal-side__acc {
		min-height: 44px;
		padding: 0 12px;
		display: flex;
		align-items: center;
		gap: 8px;
		color: var(--muted);
	}

	.yc-cal-side__ring + .yc-cal-side__acc {
		margin-top: 0;
	}

	.yc-cal-side nav + .yc-cal-side__acc {
		margin-top: auto;
	}

	.yc-cal-main {
		flex: 1;
		min-width: 0;
		padding: 24px;
	}

	.yc-cal-main.is-narrow > .yc-cal-screen {
		max-width: 720px;
		margin: 0 auto;
		min-height: 0;
		border-radius: 18px;
		background: #FAFAFA;
	}

	.yc-cal-main .yc-cal-head {
		border-radius: 18px 18px 0 0;
	}

	.yc-cal-main .yc-cal-foot {
		border-radius: 0 0 18px 18px;
	}

	.yc-cal-main .yc-cal-screen--cal {
		height: calc(100vh - 48px);
		border-radius: 10px;
		box-shadow: var(--shadow);
	}

	.yc-cal-main .yc-cal-bar {
		padding: 12px 16px;
		gap: 8px;
		flex-wrap: wrap;
	}

	.yc-cal-main .yc-cal-bar__title {
		flex: 0 0 auto;
		margin: 0 8px;
		font-size: 24px;
	}

	.yc-cal .yc-cal-main .yc-cal-seg button {
		width: 64px;
	}

	.yc-cal-main .yc-cal-strip .yc-cal-strip__today {
		display: none;
	}

	.yc-cal-main .yc-cal-strip::before {
		content: "";
		flex: 0 0 46px;
	}

	.yc-cal-main .yc-cal-selbar {
		bottom: 16px;
		max-width: 520px;
		inset-inline-start: auto;
	}

	.yc-cal-main .yc-cal-ev {
		font-size: 14px;
	}

	.yc-cal-pending {
		flex: 0 0 300px;
		padding: 24px;
		background: #FFFFFF;
		border-inline-start: 1px solid var(--line);
		display: flex;
		flex-direction: column;
		gap: 16px;
		height: 100vh;
		position: sticky;
		top: 0;
		overflow-y: auto;
	}

	.yc-cal-pending .yc-cal-h2 {
		font-size: 22px;
	}

	.yc-cal-pending .yc-cal-card {
		border: 1.5px dashed var(--brand);
		box-shadow: none;
	}

	.yc-cal-toast {
		bottom: 24px;
	}
}
