/* NavBook — minimal month grid */

.nvb-app {
	--nvb-primary: rgb(var(--primary, 85 73 61));
	--nvb-accent: rgb(var(--accent, 143 156 124));
	--nvb-accent-deep: rgb(var(--accent-deep, 95 106 92));
	--nvb-cream: rgb(var(--cream, 241 235 224));
	--nvb-ink: rgb(var(--ink, 43 42 39));
	--nvb-muted: rgb(var(--muted, 107 102 92));
	--nvb-line: rgb(var(--divider, 214 208 195));
	--nvb-surface: rgb(var(--cream-light, 242 239 237));
	--nvb-sage-light: rgb(var(--sage-light, 216 222 201));
	--nvb-event: rgb(var(--cream, 241 235 224));
	--nvb-event-line: rgb(var(--accent, 143 156 124));
	--nvb-event-open: rgb(var(--sage-light, 216 222 201));
	--nvb-ring: rgb(var(--gold, 255 208 123));
	font-family: var(--font-primary, "Century Gothic", system-ui, sans-serif);
	color: var(--nvb-ink);
	background: #fff;
	border: 1px solid var(--nvb-line);
	border-radius: 8px;
	max-width: 100%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nvb-app__toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
}

.nvb-app__share {
	position: relative;
	flex: 0 0 auto;
}

.nvb-app__share-btn {
	padding: 7px 12px;
	border: 1px solid var(--nvb-line);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--nvb-ink);
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
}

.nvb-app__share-btn:hover,
.nvb-app__share.is-open .nvb-app__share-btn {
	background: var(--nvb-surface);
}

.nvb-app__share-panel {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 30;
	width: 15.5rem;
	padding: 8px;
	border: 1px solid var(--nvb-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.nvb-app__share-panel[hidden] {
	display: none !important;
}

.nvb-app__share-modes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-bottom: 8px;
}

.nvb-app__share-mode {
	padding: 6px 8px;
	border: 1px solid var(--nvb-line);
	border-radius: 5px;
	background: #fff;
	font: inherit;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--nvb-muted);
	cursor: pointer;
}

.nvb-app__share-mode.is-active {
	border-color: rgba(74, 112, 128, 0.45);
	background: rgba(74, 112, 128, 0.08);
	color: var(--nvb-ink);
}

.nvb-app__share-status {
	margin: 0 0 8px;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--nvb-accent-deep, #5f6a5c);
}

.nvb-app__share-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
}

.nvb-app__share-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 8px;
	border: 1px solid var(--nvb-line);
	border-radius: 5px;
	background: #fff;
	font: inherit;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--nvb-ink);
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
	box-sizing: border-box;
}

.nvb-app__share-action:hover {
	background: var(--nvb-surface);
}

.nvb-app__share-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 16px 18px;
	border-top: 1px solid var(--nvb-line);
	background: linear-gradient(180deg, #fff 0%, var(--nvb-surface) 100%);
}

.nvb-app__share-cta-label {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--nvb-ink);
	letter-spacing: 0.01em;
}

.nvb-app__share--cta {
	position: relative;
}

.nvb-app__share-cta-btn {
	padding: 9px 16px;
	border: 1px solid rgba(255, 180, 60, 0.65);
	border-radius: 6px;
	background: var(--nvb-ring, #ffd07b);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--nvb-ink);
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
}

.nvb-app__share-cta-btn:hover,
.nvb-app__share--cta.is-open .nvb-app__share-cta-btn {
	filter: brightness(0.97);
}

.nvb-app__share--cta .nvb-app__share-panel {
	top: auto;
	bottom: calc(100% + 6px);
	right: 0;
}

@media (max-width: 640px) {
	.nvb-app__share-cta {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 14px 12px;
	}

	.nvb-app__share-cta-btn {
		width: 100%;
	}

	.nvb-app__share--cta .nvb-app__share-panel {
		left: 0;
		right: 0;
		width: auto;
	}
}

.nvb-app__search-wrap {
	flex: 1 1 auto;
	position: relative;
	display: block;
	min-width: 0;
}

.nvb-app__search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	width: 18px;
	height: 18px;
	color: var(--nvb-muted);
	pointer-events: none;
}

.nvb-app__search {
	width: 100%;
	padding: 10px 12px 10px 40px;
	border: 1px solid var(--nvb-line);
	border-radius: 6px;
	font: inherit;
	font-size: 0.8125rem;
	background: #fff;
	color: var(--nvb-ink);
	box-sizing: border-box;
}

.nvb-app__search::placeholder {
	color: #b0b0b0;
}

.nvb-app__search:focus {
	outline: none;
	border-color: #c5c5c5;
	box-shadow: 0 0 0 3px rgba(107, 124, 94, 0.12);
}

.nvb-app__filters-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border: 1px solid var(--nvb-line);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 0.8125rem;
	color: var(--nvb-ink);
	cursor: pointer;
	white-space: nowrap;
}

.nvb-app__filters-btn:hover {
	background: var(--nvb-surface);
}

.nvb-app__filters {
	padding: 10px 16px 12px;
	border-top: 1px solid var(--nvb-line);
	background: var(--nvb-surface);
}

.nvb-app__filters label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 4px 14px 4px 0;
	font-size: 0.75rem;
	cursor: pointer;
}

.nvb-app__service-filter {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	cursor: default;
}

.nvb-app__service-filter-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--nvb-muted);
	white-space: nowrap;
}

.nvb-app__service-select {
	min-width: 200px;
	max-width: 100%;
}

.nvb-app__url-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.nvb-app__url-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--nvb-sage-light);
	border: 1px solid var(--nvb-line);
	font-size: 0.75rem;
	color: var(--nvb-ink);
}

.nvb-app__url-filter-label {
	color: var(--nvb-muted);
	font-weight: 500;
}

.nvb-app__url-filter-chip strong {
	font-weight: 600;
}

.nvb-app__url-filter-clear {
	border: none;
	background: transparent;
	color: var(--nvb-muted);
	font-size: 1rem;
	line-height: 1;
	padding: 0 2px;
	cursor: pointer;
	border-radius: 50%;
}

.nvb-app__url-filter-clear:hover {
	color: var(--nvb-ink);
}

.nvb-app__focus-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 10px;
}

.nvb-app__focus-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--nvb-line);
	background: #fff;
	font-size: 0.8125rem;
	color: var(--nvb-muted);
}

.nvb-app__focus-filter-chip.is-active {
	background: var(--nvb-primary);
	border-color: var(--nvb-primary);
	color: var(--nvb-cream);
}

.nvb-app__focus-filter-label {
	font-weight: 500;
	opacity: 0.85;
}

.nvb-app__focus-filter-chip.is-active .nvb-app__focus-filter-label {
	color: inherit;
	opacity: 0.9;
}

.nvb-app__focus-filter-chip strong {
	font-weight: 600;
}

.nvb-app__focus-filter-clear {
	border: none;
	background: transparent;
	color: inherit;
	font-size: 1.125rem;
	line-height: 1;
	padding: 0 2px;
	cursor: pointer;
	border-radius: 50%;
	opacity: 0.85;
}

.nvb-app__focus-filter-clear:hover {
	opacity: 1;
}

.nvb-app__focus-filter-link {
	border: none;
	background: transparent;
	padding: 0;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--nvb-accent-deep);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.nvb-app__focus-filter-link:hover {
	opacity: 0.8;
}

.nvb-app__filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	margin-bottom: 10px;
}

.nvb-app__category-filter {
	margin: 0;
}

.nvb-app__category-filter .nvb-app__select {
	min-width: 180px;
}

.nvb-app__date-range {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.nvb-app__date-range-toggle {
	padding: 5px 10px;
	border: 1px solid var(--nvb-line);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 0.75rem;
	color: var(--nvb-ink);
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
	max-width: 11rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nvb-app__date-range-toggle:hover {
	background: var(--nvb-surface);
}

.nvb-app__date-range.is-active .nvb-app__date-range-toggle {
	border-color: rgba(74, 112, 128, 0.55);
	background: rgba(74, 112, 128, 0.08);
}

.nvb-app__date-range-panel {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 11.5rem;
	padding: 8px;
	border: 1px solid var(--nvb-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.nvb-app__date-range-panel[hidden] {
	display: none !important;
}

.nvb-app__date-range-field {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--nvb-muted);
}

.nvb-app__date-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--nvb-line);
	border-radius: 5px;
	background: #fff;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--nvb-ink);
	padding: 5px 6px;
	cursor: pointer;
}

.nvb-app__date-input:focus {
	outline: none;
	border-color: rgba(74, 112, 128, 0.55);
}

.nvb-app__date-range-clear {
	align-self: flex-end;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--nvb-muted);
	font-size: 0.9375rem;
	line-height: 1;
	cursor: pointer;
}

.nvb-app__date-range-clear:hover {
	background: var(--nvb-surface);
	color: var(--nvb-ink);
}

.nvb-app__selects {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nvb-app__selects .nvb-app__select {
	padding: 5px 24px 5px 7px;
	font-size: 0.75rem;
	background-position: right 7px center;
	background-size: 10px;
}

.nvb-app__select {
	padding: 7px 36px 7px 10px;
	border: 1px solid var(--nvb-line);
	border-radius: 6px;
	font: inherit;
	font-size: 0.8125rem;
	background-color: #fff;
	color: var(--nvb-ink);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b655c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
}

.nvb-app__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 16px 12px;
	border-top: 1px solid var(--nvb-line);
}

.nvb-app__today {
	padding: 7px 14px;
	border: 1px solid var(--nvb-line);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
	color: var(--nvb-ink);
}

.nvb-app__today:hover {
	background: var(--nvb-surface);
}

.nvb-app__nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nvb-app__arrow {
	width: 30px;
	height: 30px;
	border: 1px solid var(--nvb-line);
	border-radius: 6px;
	background: #fff;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	color: var(--nvb-ink);
}

.nvb-app__arrow:hover:not(:disabled) {
	background: var(--nvb-surface);
}

.nvb-app__arrow:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.nvb-app__month-label {
	font-size: 0.9375rem;
	font-weight: 600;
	min-width: 110px;
	text-align: center;
	color: var(--nvb-ink);
}

.nvb-app__grid-wrap {
	position: relative;
	padding: 0 0 8px;
}

.nvb-app__dow {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background: var(--nvb-primary);
	color: #fff;
	text-align: center;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.nvb-app__dow span {
	padding: 9px 4px;
}

.nvb-app__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	border-left: 1px solid var(--nvb-line);
}

.nvb-app__cell {
	min-height: 108px;
	border-right: 1px solid var(--nvb-line);
	border-bottom: 1px solid var(--nvb-line);
	padding: 4px 3px 6px;
	background: #fff;
	position: relative;
}

.nvb-app__cell--muted {
	background: var(--nvb-surface);
}

.nvb-app__cell--muted .nvb-app__daynum {
	color: #c8c8c8;
}

.nvb-app__cell--adjacent .nvb-app__daynum {
	color: #b8b4ac;
}

.nvb-app__event--adjacent {
	opacity: 0.68;
}

.nvb-app__event--adjacent:hover:not(:disabled) {
	opacity: 0.92;
}

.nvb-app__more--adjacent {
	opacity: 0.75;
}

.nvb-app__cell--active {
	outline: 2px solid var(--nvb-ring);
	outline-offset: -2px;
	z-index: 2;
}

.nvb-app--bookings .nvb-app__cell--occupied {
	background: linear-gradient(180deg, #fff 0%, rgba(90, 122, 92, 0.07) 100%);
}

.nvb-app--bookings .nvb-app__cell--full {
	background: linear-gradient(180deg, #fff 0%, rgba(90, 122, 92, 0.12) 100%);
}

.nvb-app--bookings .nvb-app__cell--occupied-adjacent {
	background: linear-gradient(180deg, var(--nvb-surface) 0%, rgba(90, 122, 92, 0.05) 100%);
}

.nvb-app__cell-count {
	position: absolute;
	top: 5px;
	left: 6px;
	font-size: 0.625rem;
	font-weight: 600;
	color: var(--nvb-accent-deep, #4a6b4c);
	line-height: 1;
	z-index: 1;
}

.nvb-app__cell-fill {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: rgba(0, 0, 0, 0.06);
	pointer-events: none;
}

.nvb-app__cell-fill--adjacent {
	opacity: 0.55;
}

.nvb-app__cell-fill-bar {
	height: 100%;
	background: var(--nvb-accent, #5a7a5c);
	border-radius: 0 2px 0 0;
	min-width: 2px;
}

.nvb-app--bookings .nvb-app__cell--full .nvb-app__cell-fill-bar {
	background: var(--nvb-accent-deep, #3d5a40);
}

.nvb-app__month-stats {
	margin: 0;
	padding: 0 4px;
	font-size: 0.75rem;
	color: var(--nvb-muted);
	flex: 1 1 auto;
	text-align: right;
}

.nvb-app__controls--admin .nvb-app__month-stats {
	min-width: 0;
}

.nvb-app__daynum {
	display: block;
	text-align: right;
	font-size: 0.6875rem;
	color: var(--nvb-muted);
	padding: 2px 5px 4px;
	line-height: 1;
}

.nvb-app__daynum-btn {
	display: block;
	width: auto;
	margin-left: auto;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 0.6875rem;
	color: var(--nvb-muted);
	padding: 2px 5px 4px;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
}

.nvb-app__daynum-btn:hover {
	color: var(--nvb-ink);
	background: rgba(0, 0, 0, 0.04);
}

.nvb-app__cell--selected {
	background: linear-gradient(180deg, rgba(74, 112, 128, 0.22) 0%, rgba(74, 112, 128, 0.06) 55%, #fff 100%);
	box-shadow: inset 0 0 0 2px rgba(74, 112, 128, 0.65);
	z-index: 2;
}

.nvb-app__cell--in-range:not(.nvb-app__cell--selected):not(.nvb-app__cell--today) {
	background: linear-gradient(180deg, rgba(74, 112, 128, 0.1) 0%, rgba(74, 112, 128, 0.03) 55%, #fff 100%);
	box-shadow: inset 0 0 0 1px rgba(74, 112, 128, 0.28);
}

.nvb-app__cell--selected.nvb-app__cell--muted {
	background: linear-gradient(180deg, rgba(74, 112, 128, 0.16) 0%, var(--nvb-surface) 55%);
	box-shadow: inset 0 0 0 2px rgba(74, 112, 128, 0.4);
}

.nvb-app__cell--selected.nvb-app__cell--today {
	background: linear-gradient(180deg, rgba(74, 112, 128, 0.2) 0%, rgba(255, 208, 123, 0.18) 45%, #fff 100%);
	box-shadow: inset 0 0 0 2px rgba(74, 112, 128, 0.7);
}

.nvb-app__cell--selected .nvb-app__daynum,
.nvb-app__cell--selected .nvb-app__daynum-btn {
	color: var(--nvb-ink, #2b2a27);
	font-weight: 700;
}

.nvb-app__cell--selected-flash {
	animation: nvb-selected-flash 0.85s ease-out 1;
}

@keyframes nvb-selected-flash {
	0% {
		box-shadow: inset 0 0 0 3px rgba(74, 112, 128, 1), 0 0 0 0 rgba(74, 112, 128, 0.45);
		background: rgba(74, 112, 128, 0.4);
	}
	40% {
		box-shadow: inset 0 0 0 3px rgba(74, 112, 128, 0.85), 0 0 0 8px rgba(74, 112, 128, 0.18);
		background: rgba(74, 112, 128, 0.28);
	}
	100% {
		box-shadow: inset 0 0 0 2px rgba(74, 112, 128, 0.65), 0 0 0 0 rgba(74, 112, 128, 0);
		background: linear-gradient(180deg, rgba(74, 112, 128, 0.22) 0%, rgba(74, 112, 128, 0.06) 55%, #fff 100%);
	}
}

.nvb-app__cell--today {
	background: linear-gradient(180deg, rgba(255, 208, 123, 0.4) 0%, rgba(255, 208, 123, 0.12) 50%, #fff 100%);
	box-shadow: inset 0 0 0 2px rgba(255, 170, 40, 0.75);
	z-index: 1;
}

.nvb-app__cell--today.nvb-app__cell--muted {
	background: linear-gradient(180deg, rgba(255, 208, 123, 0.28) 0%, var(--nvb-surface) 55%);
	box-shadow: inset 0 0 0 2px rgba(255, 180, 60, 0.45);
}

.nvb-app__today-mark {
	position: absolute;
	top: 4px;
	left: 4px;
	z-index: 1;
	display: flex;
	align-items: center;
	pointer-events: none;
}

.nvb-app__today-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 7px;
	border-radius: 999px;
	background: var(--nvb-ring, #ffd07b);
	color: var(--nvb-ink, #2b2a27);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nvb-app__today-dot {
	display: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nvb-ring, #ffd07b);
	box-shadow: 0 0 0 3px rgba(255, 208, 123, 0.35);
}

.nvb-app__cell--today .nvb-app__daynum,
.nvb-app__cell--today .nvb-app__daynum-btn {
	color: var(--nvb-ink, #2b2a27);
	font-weight: 700;
}

.nvb-app__cell--today-flash {
	animation: nvb-today-flash 0.95s ease-out 1;
}

@keyframes nvb-today-flash {
	0% {
		box-shadow: inset 0 0 0 3px rgba(255, 160, 20, 1), 0 0 0 0 rgba(255, 208, 123, 0.7);
		background: rgba(255, 208, 123, 0.7);
	}
	35% {
		box-shadow: inset 0 0 0 3px rgba(255, 170, 40, 0.95), 0 0 0 10px rgba(255, 208, 123, 0.28);
		background: rgba(255, 208, 123, 0.5);
	}
	100% {
		box-shadow: inset 0 0 0 2px rgba(255, 170, 40, 0.75), 0 0 0 0 rgba(255, 208, 123, 0);
		background: linear-gradient(180deg, rgba(255, 208, 123, 0.4) 0%, rgba(255, 208, 123, 0.12) 50%, #fff 100%);
	}
}

@media (max-width: 640px) {
	.nvb-app__today-mark {
		top: auto;
		left: 50%;
		bottom: 5px;
		transform: translateX(-50%);
	}

	.nvb-app__today-chip {
		display: none;
	}

	.nvb-app__today-dot {
		display: block;
	}
}

.nvb-app__events {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.nvb-app__event {
	display: block;
	width: 100%;
	text-align: left;
	padding: 5px 7px 5px 10px;
	border: none;
	border-radius: 4px;
	background: var(--nvb-event);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	cursor: pointer;
	font: inherit;
	position: relative;
	transition: box-shadow 0.15s ease, transform 0.12s ease;
}

.nvb-app__event::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 3px;
	border-radius: 2px;
	background: var(--nvb-event-line);
}

.nvb-app__event--open {
	background: var(--nvb-event-open);
}

.nvb-app__event--open::before {
	background: var(--nvb-accent-deep);
}

.nvb-app__event--open .nvb-app__event-status {
	color: var(--nvb-accent-deep);
}

.nvb-app__event--colored::before {
	background: var(--nvb-event-custom);
}

.nvb-app__event--colored.nvb-app__event--open {
	background: color-mix(in srgb, var(--nvb-event-custom) 20%, #fff);
}

.nvb-app__event--colored.nvb-app__event--open .nvb-app__event-status {
	color: var(--nvb-event-custom);
}

.nvb-app__event--colored.nvb-app__event--admin.nvb-app__event--open .nvb-app__event-edit {
	color: var(--nvb-event-custom);
}

.nvb-app__event:hover:not(:disabled) {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.nvb-app__event:disabled,
.nvb-app__event--closed {
	cursor: pointer;
	opacity: 0.92;
}

.nvb-app__event--past-filled {
	opacity: 1;
	cursor: default;
	background: color-mix(in srgb, var(--nvb-accent, #5a7a5c) 14%, #fff);
}

.nvb-app__event--past-filled::before {
	background: var(--nvb-accent-deep, #4a6b4c);
}

.nvb-app__event--colored.nvb-app__event--past-filled {
	background: color-mix(in srgb, var(--nvb-event-custom) 18%, #fff);
}

.nvb-app__event--colored.nvb-app__event--past-filled::before {
	background: var(--nvb-event-custom);
}

.nvb-app__event--schedule {
	cursor: pointer;
	opacity: 1;
	background: var(--nvb-event-open);
}

.nvb-app__event--schedule::before {
	background: var(--nvb-accent-deep, #4a6b4c);
}

.nvb-app__event--colored.nvb-app__event--schedule {
	background: color-mix(in srgb, var(--nvb-event-custom) 22%, #fff);
}

.nvb-app__event--colored.nvb-app__event--schedule::before {
	background: var(--nvb-event-custom);
}

.nvb-app__cell--schedule-day {
	background: linear-gradient(180deg, #fff 0%, rgba(245, 236, 210, 0.35) 100%);
}

.nvb-app__cell--adjacent.nvb-app__cell--schedule-day {
	background: linear-gradient(180deg, var(--nvb-surface) 0%, rgba(245, 236, 210, 0.28) 100%);
}

.nvb-app__cell--past-filled {
	background: linear-gradient(180deg, #fff 0%, rgba(90, 122, 92, 0.06) 100%);
}

.nvb-app__cell--adjacent.nvb-app__cell--past-filled {
	background: linear-gradient(180deg, var(--nvb-surface) 0%, rgba(90, 122, 92, 0.05) 100%);
}

.nvb-app__event-time {
	font-size: 0.625rem;
	color: var(--nvb-muted);
	line-height: 1.2;
	display: block;
}

.nvb-app__event-title {
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 1px 0;
	color: var(--nvb-ink);
	display: block;
}

.nvb-app__event-teacher {
	font-size: 0.625rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--nvb-muted);
	display: block;
}

.nvb-app__event-status {
	font-size: 0.625rem;
	color: var(--nvb-muted);
	line-height: 1.2;
	display: block;
}

.nvb-app__more {
	display: block;
	width: 100%;
	margin-top: 2px;
	padding: 5px 8px;
	border: none;
	border-radius: 4px;
	background: #eef0f2;
	font: inherit;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--nvb-ink);
	cursor: pointer;
	text-align: left;
}

.nvb-app__more:hover {
	background: #e4e7eb;
}

/* Compact mobile calendar — dots in cells, full details in day pop */
.nvb-app__mobile-dots {
	display: none;
}

.nvb-app__mobile-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--nvb-accent-deep, #4a6b4c);
	flex-shrink: 0;
}

.nvb-app__mobile-dot[style*='--nvb-dot'] {
	background: var(--nvb-dot);
}

.nvb-app__mobile-dot--schedule,
.nvb-app__mobile-dot--closed {
	opacity: 0.55;
}

.nvb-app__mobile-dot--adjacent {
	opacity: 0.45;
}

.nvb-app__mobile-dots__more {
	font-size: 0.5625rem;
	font-weight: 600;
	color: var(--nvb-muted);
	line-height: 1;
}

.nvb-app__mobile-agenda {
	display: none;
}

.nvb-app__mobile-agenda[hidden] {
	display: none !important;
}

.nvb-app__mobile-agenda-date {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--nvb-ink);
	margin: 0 0 4px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--nvb-line);
}

.nvb-mobile-agenda__item {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	padding: 10px 0;
	margin: 0;
	cursor: pointer;
	border-bottom: 1px solid var(--nvb-line);
	-webkit-tap-highlight-color: transparent;
}

.nvb-mobile-agenda__item:last-child {
	border-bottom: none;
}

.nvb-mobile-agenda__accent {
	display: block;
	width: 3px;
	flex-shrink: 0;
	border-radius: 2px;
	background: var(--nvb-accent-deep, #4a6b4c);
}

.nvb-mobile-agenda__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.nvb-mobile-agenda__item--closed {
	opacity: 0.65;
}

.nvb-mobile-agenda__time {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--nvb-ink);
	line-height: 1.3;
}

.nvb-mobile-agenda__title {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--nvb-ink);
	line-height: 1.35;
}

.nvb-mobile-agenda__meta {
	display: block;
	font-size: 0.6875rem;
	color: var(--nvb-muted);
	line-height: 1.3;
}

.nvb-mobile-agenda__empty {
	font-size: 0.8125rem;
	color: var(--nvb-muted);
	text-align: center;
	padding: 20px 12px;
	margin: 0;
}

/* Day popover */
.nvb-day-pop {
	position: absolute;
	z-index: 20;
	width: min(320px, calc(100vw - 24px));
	background: #fff;
	border: 1px solid var(--nvb-line);
	border-radius: 0;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	padding: 0;
	animation: nvb-pop-in 0.18s ease;
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.nvb-day-pop[hidden] {
	display: none !important;
}

.nvb-day-pop__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid var(--nvb-line);
}

.nvb-day-pop__title {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--nvb-ink);
}

.nvb-day-pop__close {
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	color: var(--nvb-muted);
	border-radius: 0;
}

.nvb-day-pop__close:hover {
	background: var(--nvb-surface);
	color: var(--nvb-ink);
}

.nvb-day-pop__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	max-height: min(320px, 50vh);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.nvb-modal__slot-field {
	margin-bottom: 14px;
}

.nvb-modal__slot-field select {
	width: 100%;
	padding: 10px 12px;
	font-size: 0.875rem;
	border: 1px solid var(--nvb-line);
	border-radius: 6px;
}

.nvb-day-pop__list .nvb-app__event {
	padding: 8px 10px 8px 12px;
	border-radius: 0;
}

.nvb-day-pop__list .nvb-app__event::before {
	border-radius: 0;
}

.nvb-booking-pop__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nvb-booking-pop__cancel {
	align-self: flex-start;
	margin-left: 12px;
	padding: 0;
	border: none;
	background: none;
	font-size: 0.8125rem;
	cursor: pointer;
}

.nvb-day-pop--bookings .nvb-booking-item .nvb-app__event-sub {
	font-size: 0.75rem;
	opacity: 0.85;
}

.nvb-day-pop--bookings .nvb-app__event-status {
	font-size: 0.6875rem;
	text-transform: uppercase;
	opacity: 0.75;
}

/* Shield NavBook from avata-prose / Tailwind prose parent styles */
.nvb-app,
.nvb-modal {
	max-width: none;
}

.avata-prose .nvb-app :is(h1, h2, h3, h4, h5, h6, p),
.prose .nvb-app :is(h1, h2, h3, h4, h5, h6, p),
.avata-prose .nvb-modal :is(h1, h2, h3, h4, h5, h6, p),
.prose .nvb-modal :is(h1, h2, h3, h4, h5, h6, p) {
	margin-top: 0;
	margin-bottom: 0;
}

.avata-prose .nvb-modal h2.nvb-modal__title,
.prose .nvb-modal h2.nvb-modal__title {
	font-family: var(--font-secondary, "Libre Baskerville", Georgia, serif);
	font-weight: 400;
	color: var(--nvb-ink);
	line-height: 1.2;
}

.avata-prose .nvb-modal p,
.prose .nvb-modal p {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.avata-prose .nvb-modal a.nvb-modal__details-link,
.prose .nvb-modal a.nvb-modal__details-link {
	color: var(--nvb-accent-deep);
	text-decoration: none;
}

/* Booking modal — minimal */
.nvb-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.nvb-modal[hidden] {
	display: none !important;
}

.nvb-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(30, 28, 24, 0.4);
	backdrop-filter: blur(4px);
	animation: nvb-fade-in 0.2s ease;
}

.nvb-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: min(90vh, 520px);
	background: #f8f3ea;
	border-radius: 10px;
	box-shadow: 0 16px 48px rgba(43, 42, 39, 0.14);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: nvb-slide-up 0.2s ease;
}

.nvb-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	width: 28px;
	height: 28px;
	border: none;
	background: #fff;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	color: var(--nvb-ink);
	border-radius: 50%;
	box-shadow: 0 1px 6px rgba(43, 42, 39, 0.1);
}

.nvb-modal__close:hover {
	background: #fff;
}

.nvb-modal__body {
	overflow: hidden;
	flex: 1;
	min-height: 0;
}

.nvb-modal__layout {
	display: grid;
	grid-template-columns: 42fr 58fr;
	min-height: 0;
	height: 100%;
	max-height: min(90vh, 520px);
}

.nvb-modal__card {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 12px;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}

.nvb-modal__card-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, var(--nvb-primary), var(--nvb-accent-deep));
	background-size: cover;
	background-position: center;
}

.nvb-modal__card-overlay {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 14px 12px 12px;
	text-align: left;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.avata-prose .nvb-modal__card-overlay .nvb-modal__title,
.prose .nvb-modal__card-overlay .nvb-modal__title,
.nvb-modal__card-overlay .nvb-modal__title {
	font-size: 1rem;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.avata-prose .nvb-modal__card-overlay .nvb-modal__subtitle,
.prose .nvb-modal__card-overlay .nvb-modal__subtitle,
.nvb-modal__card-overlay .nvb-modal__subtitle {
	font-size: 0.625rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.avata-prose .nvb-modal__card-overlay .nvb-modal__excerpt,
.prose .nvb-modal__card-overlay .nvb-modal__excerpt,
.nvb-modal__card-overlay .nvb-modal__excerpt {
	font-size: 0.75rem;
	line-height: 1.4;
	-webkit-line-clamp: 2;
}

.nvb-modal__details-link {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-top: 2px;
	font-size: 0.6875rem;
	font-weight: 500;
	color: var(--nvb-accent-deep);
	text-decoration: none;
}

.nvb-modal__details-link:hover {
	opacity: 0.75;
}

.nvb-modal__main {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
	background: #f8f3ea;
	overflow-y: auto;
}

.nvb-modal__summary {
	margin: 20px 20px 0;
	padding: 12px 14px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e9e4da;
	box-shadow: none;
	flex-shrink: 0;
}

.nvb-modal__summary-title {
	font-family: var(--font-secondary, "Libre Baskerville", Georgia, serif);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.25;
	color: var(--nvb-ink);
	margin: 0;
}

.nvb-modal__summary-divider {
	height: 1px;
	background: #e9e4da;
	margin: 10px 0 8px;
}

.nvb-modal__summary-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem;
	color: var(--nvb-ink);
	line-height: 1.35;
	margin-bottom: 4px;
}

.nvb-modal__summary-row:last-of-type {
	margin-bottom: 0;
}

.nvb-modal__ico {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	color: var(--nvb-muted);
}

.nvb-modal__availability {
	font-size: 0.6875rem;
	margin: 8px 0 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.nvb-modal__availability--open {
	color: #3d6b4f;
}

.nvb-modal__availability--closed {
	color: var(--nvb-muted);
}

.nvb-modal__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #4caf6e;
	flex-shrink: 0;
}

.nvb-modal__form-panel {
	padding: 14px 20px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	gap: 12px;
}

.nvb-modal__title {
	font-family: var(--font-secondary, "Libre Baskerville", Georgia, serif);
	font-weight: 400;
	color: var(--nvb-ink);
}

.nvb-modal__subtitle {
	font-weight: 600;
	color: var(--nvb-accent-deep);
	margin: 0;
}

.nvb-modal__excerpt {
	color: var(--nvb-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nvb-modal__fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 auto;
}

.nvb-modal__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.nvb-modal__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nvb-modal__label {
	font-size: 0.75rem;
	font-weight: 500;
	color: #6b665c;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.3;
}

.nvb-modal__field--full {
	grid-column: 1 / -1;
}

.nvb-modal__fields input,
.nvb-modal__fields textarea {
	width: 100%;
	padding: 0 12px;
	border: 1px solid #e9e4da;
	border-radius: 8px;
	font: inherit;
	font-size: 0.8125rem;
	background: #fafaf8;
	color: var(--nvb-ink);
}

.nvb-modal__fields input {
	height: 40px;
}

.nvb-modal__fields textarea {
	padding: 8px 12px;
	resize: none;
	min-height: 56px;
	max-height: 56px;
	line-height: 1.4;
}

.nvb-modal__fields input:focus,
.nvb-modal__fields textarea:focus {
	outline: none;
	border-color: #7a684f;
	box-shadow: 0 0 0 3px rgba(122, 104, 79, 0.1);
	background: #fff;
}

.nvb-modal__submit {
	width: 100%;
	height: 42px;
	padding: 0 16px;
	background: var(--nvb-primary);
	color: #f8f3ea;
	border: none;
	border-radius: 8px;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease;
	flex-shrink: 0;
}

.nvb-modal__submit:hover:not(:disabled) {
	filter: brightness(1.06);
}

.nvb-modal__submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.nvb-modal__success {
	text-align: center;
	padding: 48px 24px 40px;
	background: var(--nvb-cream);
}

.nvb-modal__success-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--nvb-sage-light);
	color: var(--nvb-accent-deep);
	font-size: 1.5rem;
	line-height: 52px;
	font-weight: 700;
}

.nvb-modal__success h3 {
	font-family: var(--font-secondary, "Libre Baskerville", Georgia, serif);
	font-size: 1.35rem;
	margin: 0 0 8px;
	font-weight: 400;
	color: var(--nvb-ink);
}

.nvb-modal__success-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--nvb-primary);
	margin: 0 0 8px;
}

.nvb-modal__success p {
	font-size: 0.8125rem;
	color: var(--nvb-muted);
	margin: 0;
	line-height: 1.5;
}

@keyframes nvb-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes nvb-slide-up {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes nvb-pop-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nvb-notice {
	font-size: 0.875rem;
	padding: 12px;
	border: 1px solid var(--nvb-line);
	border-radius: 6px;
	background: #fff;
}

@media (max-width: 768px) {
	.nvb-app__toolbar {
		padding: 10px 12px 8px;
	}

	.nvb-app__search {
		font-size: 16px;
	}

	.nvb-app__controls {
		display: grid;
		grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 0.85fr) auto auto;
		gap: 6px;
		align-items: center;
		padding: 8px 12px 10px;
	}

	.nvb-app__today {
		grid-column: 1;
		grid-row: 1;
		padding: 8px 10px;
		font-size: 0.75rem;
		white-space: nowrap;
		line-height: 1;
		height: 36px;
		box-sizing: border-box;
	}

	.nvb-app__nav {
		display: contents;
	}

	.nvb-app__month-label {
		display: none;
	}

	.nvb-app__selects {
		display: contents;
	}

	.nvb-app [data-nvb-prev] {
		grid-column: 2;
		grid-row: 1;
	}

	.nvb-app [data-nvb-month-select] {
		grid-column: 3;
		grid-row: 1;
		min-width: 0;
		width: 100%;
		height: 36px;
		padding: 0 28px 0 8px;
	}

	.nvb-app [data-nvb-year-select] {
		grid-column: 4;
		grid-row: 1;
		min-width: 0;
		width: 100%;
		height: 36px;
		padding: 0 28px 0 8px;
	}

	.nvb-app__date-range {
		grid-column: 5;
		grid-row: 1;
	}

	.nvb-app__date-range-toggle {
		height: 36px;
		padding: 0 10px;
		max-width: 5.5rem;
	}

	.nvb-app__date-range-panel {
		right: 0;
		left: auto;
		min-width: 12rem;
	}

	.nvb-app__date-input {
		font-size: 16px;
		min-height: 36px;
	}

	.nvb-app [data-nvb-next] {
		grid-column: 6;
		grid-row: 1;
	}

	.nvb-app__arrow {
		width: 36px;
		height: 36px;
		flex-shrink: 0;
	}

	.nvb-app__filters {
		padding: 8px 12px 10px;
	}

	.nvb-app__service-filter {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 8px;
		width: 100%;
		align-items: center;
	}

	.nvb-app__service-filter-label {
		font-size: 0.6875rem;
	}

	.nvb-app__service-select {
		min-width: 0;
		width: 100%;
		height: 36px;
		padding: 0 36px 0 10px;
	}

	.nvb-modal__dialog {
		max-height: 92vh;
	}

	.nvb-modal__body {
		overflow-y: auto;
	}

	.nvb-modal__layout {
		grid-template-columns: 1fr;
		max-height: none;
		height: auto;
	}

	.nvb-modal__card {
		min-height: 200px;
		height: auto;
	}

	.nvb-modal__main {
		height: auto;
		overflow: visible;
	}

	.nvb-modal__summary {
		margin: 16px 16px 0;
		padding: 12px;
	}

	.nvb-modal__summary-title {
		font-size: 1rem;
	}

	.nvb-modal__form-panel {
		padding: 12px 16px 16px;
	}

	.nvb-modal__row {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.nvb-modal__label {
		font-size: 0.6875rem;
	}

	.nvb-modal__fields input {
		height: 38px;
		font-size: 16px;
	}

	.nvb-modal__fields textarea {
		font-size: 16px;
	}

	.nvb-modal__field {
		min-width: 0;
	}

	.nvb-day-pop {
		position: fixed;
		left: 16px;
		right: 16px;
		width: auto;
		bottom: 16px;
		max-height: 60vh;
		top: auto;
	}

	.nvb-day-pop__list .nvb-app__event {
		padding: 10px 12px 10px 14px;
	}

	.nvb-day-pop__list .nvb-app__event-title {
		font-size: 0.8125rem;
		line-height: 1.35;
	}
}

@media (max-width: 640px) {
	.nvb-app--compact .nvb-app__toolbar {
		padding: 6px 10px 4px;
	}

	.nvb-app--compact .nvb-app__search {
		padding: 7px 10px 7px 34px;
		font-size: 16px;
		border-radius: 8px;
	}

	.nvb-app--compact .nvb-app__search-icon {
		left: 10px;
		width: 16px;
		height: 16px;
	}

	.nvb-app--compact .nvb-app__controls {
		grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 0.72fr) auto;
		gap: 4px;
		padding: 4px 10px 6px;
	}

	.nvb-app--compact .nvb-app__today {
		padding: 0 8px;
		font-size: 0.6875rem;
		height: 32px;
		line-height: 30px;
		border-radius: 8px;
	}

	.nvb-app--compact .nvb-app__arrow {
		width: 32px;
		height: 32px;
		border-radius: 8px;
	}

	.nvb-app--compact .nvb-app [data-nvb-month-select],
	.nvb-app--compact .nvb-app [data-nvb-year-select] {
		height: 32px;
		font-size: 0.75rem;
		padding: 0 24px 0 8px;
		border-radius: 8px;
	}

	.nvb-app--compact .nvb-app__date-range {
		display: none;
	}

	.nvb-app--compact .nvb-app [data-nvb-next] {
		grid-column: 5;
	}

	.nvb-app--compact .nvb-app__filters {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 6px;
		padding: 6px 10px 8px;
		border-top: 1px solid var(--nvb-line);
	}

	.nvb-app--compact .nvb-app__url-filters,
	.nvb-app--compact .nvb-app__focus-filter {
		grid-column: 1 / -1;
		margin-bottom: 0;
	}

	.nvb-app--compact .nvb-app__filter-row {
		display: contents;
		margin: 0;
	}

	.nvb-app--compact .nvb-app__service-filter {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 3px;
		min-width: 0;
		margin: 0;
	}

	.nvb-app--compact .nvb-app__service-filter-label {
		font-size: 0.5625rem;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		color: var(--nvb-muted);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.nvb-app--compact .nvb-app__service-filter .nvb-app__select {
		width: 100%;
		min-width: 0;
		height: 32px;
		padding: 0 24px 0 8px;
		font-size: 0.6875rem;
		border-radius: 8px;
		background-position: right 8px center;
	}

	.nvb-app--compact .nvb-app__filters > .nvb-app__service-filter:not(.nvb-app__category-filter),
	.nvb-app--compact .nvb-app__filters > label.nvb-app__service-filter:last-of-type {
		grid-column: 1 / -1;
	}

	.nvb-app--compact .nvb-app__filter-row > .nvb-app__service-filter:only-child {
		grid-column: 1 / -1;
	}

	.nvb-app--compact .nvb-app__grid-wrap {
		padding: 0;
	}

	.nvb-app--compact .nvb-app__dow span {
		padding: 4px 0;
		font-size: 0;
		line-height: 1;
	}

	.nvb-app--compact .nvb-app__dow span::before {
		font-size: 0.5625rem;
		font-weight: 600;
	}

	.nvb-app--compact .nvb-app__dow span:nth-child(1)::before { content: 'M'; }
	.nvb-app--compact .nvb-app__dow span:nth-child(2)::before { content: 'T'; }
	.nvb-app--compact .nvb-app__dow span:nth-child(3)::before { content: 'W'; }
	.nvb-app--compact .nvb-app__dow span:nth-child(4)::before { content: 'T'; }
	.nvb-app--compact .nvb-app__dow span:nth-child(5)::before { content: 'F'; }
	.nvb-app--compact .nvb-app__dow span:nth-child(6)::before { content: 'S'; }
	.nvb-app--compact .nvb-app__dow span:nth-child(7)::before { content: 'S'; }

	.nvb-app--compact .nvb-app__cell {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		min-height: 42px;
		padding: 2px 1px 3px;
	}

	.nvb-app--compact .nvb-app__cell--has-events {
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.nvb-app--compact .nvb-app__cell--has-events:active {
		background: rgba(74, 112, 128, 0.06);
	}

	.nvb-app--compact .nvb-app__daynum,
	.nvb-app--compact .nvb-app__daynum-btn {
		margin: 0;
		padding: 0;
		width: 20px;
		height: 20px;
		line-height: 20px;
		text-align: center;
		font-size: 0.625rem;
		border-radius: 50%;
	}

	.nvb-app--compact .nvb-app__today-mark {
		display: none;
	}

	.nvb-app--compact .nvb-app__cell--today:not(.nvb-app__cell--selected) .nvb-app__daynum-btn {
		box-shadow: inset 0 0 0 1.5px rgba(74, 112, 128, 0.35);
		font-weight: 600;
	}

	.nvb-app--compact .nvb-app__mobile-dots {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 2px;
		padding: 1px 1px 0;
		min-height: 8px;
		margin-top: 1px;
	}

	.nvb-app--compact .nvb-app__mobile-dot {
		width: 4px;
		height: 4px;
	}

	.nvb-app--compact .nvb-app__mobile-dots__more {
		font-size: 0.5rem;
	}

	.nvb-app--compact .nvb-app__events .nvb-app__event,
	.nvb-app--compact .nvb-app__events .nvb-app__more {
		display: none !important;
	}

	.nvb-app--compact .nvb-app__grid-wrap {
		overflow-x: hidden;
	}

	.nvb-app--compact .nvb-day-pop {
		display: none !important;
	}

	.nvb-app--compact .nvb-app__mobile-agenda {
		display: block;
		margin: 0;
		padding: 8px 10px 14px;
		background: #fff;
		border-top: 1px solid var(--nvb-line);
	}

	.nvb-app--compact .nvb-app__cell--selected {
		background: transparent;
		box-shadow: none;
	}

	.nvb-app--compact .nvb-app__cell--selected .nvb-app__daynum-btn {
		background: var(--nvb-primary, #5c4a3a);
		color: #fff;
		font-weight: 600;
		box-shadow: none;
	}

	.nvb-app--compact .nvb-app__cell--selected.nvb-app__cell--today .nvb-app__daynum-btn {
		box-shadow: none;
	}

	.nvb-app--compact .nvb-app__cell--selected-flash {
		animation: none;
	}

	.nvb-app--compact .nvb-mobile-agenda__item:active {
		background: rgba(74, 112, 128, 0.04);
	}

	.nvb-app--compact .nvb-app__layout {
		display: block;
	}

	.nvb-app--compact .nvb-app__upcoming {
		display: none;
	}

	.nvb-app--compact .nvb-app__share-cta {
		padding: 10px 12px;
		gap: 10px;
	}

	.nvb-app--compact .nvb-app__share-cta-label {
		font-size: 0.8125rem;
	}

	.nvb-app--compact .nvb-app__share-cta-btn {
		padding: 7px 12px;
		font-size: 0.75rem;
	}
}

@media (max-width: 380px) {
	.nvb-app--compact .nvb-app__controls {
		grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 0.72fr) auto;
	}

	.nvb-app--compact .nvb-app__today {
		grid-column: 1;
		grid-row: 1;
		width: auto;
		text-align: left;
	}
	.nvb-app__controls {
		grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.8fr) auto;
	}

	.nvb-app__today {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		text-align: center;
	}

	.nvb-app [data-nvb-prev] {
		grid-column: 1;
	}

	.nvb-app [data-nvb-month-select] {
		grid-column: 2;
	}

	.nvb-app [data-nvb-year-select] {
		grid-column: 3;
	}

	.nvb-app [data-nvb-next] {
		grid-column: 4;
	}
}

/* Inline form date picker (base — themed overrides in Avata input.css) */
.nvb-date-picker {
	width: 100%;
}

.nvb-date-picker__wrap {
	position: relative;
	width: 100%;
}

.nvb-date-picker__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 0;
	border: none;
	border-bottom: 1px solid var(--nvb-line, #d6d0c3);
	background: transparent;
	font: inherit;
	font-size: 1rem;
	cursor: pointer;
	text-align: left;
}

.nvb-date-picker__trigger:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.nvb-date-picker__chevron {
	width: 12px;
	height: 8px;
	flex-shrink: 0;
	background: var(--nvb-muted, #6b655c);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.nvb-date-pop {
	position: absolute;
	left: 0;
	top: calc(100% + 8px);
	width: 15.5rem;
	max-width: 100%;
	z-index: 50;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	border-radius: 0;
}

.nvb-date-pop[hidden] {
	display: none;
}

.nvb-date-cal {
	width: 100%;
	border: 1px solid var(--nvb-line, #d6d0c3);
	border-radius: 0;
	background: var(--nvb-cream, #f1ebe0);
}

.nvb-date-cal__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 8px 8px;
	border-bottom: none;
	background: var(--nvb-cream, #f1ebe0);
}

.nvb-date-cal__month {
	flex: 1;
	text-align: center;
	font-family: var(--font-secondary, Georgia, serif);
	font-weight: 400;
	font-size: 1rem;
}

.nvb-date-cal__arrow {
	width: 32px;
	height: 32px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 0;
	background: var(--nvb-cream, #f1ebe0);
	cursor: pointer;
	font-size: 1.125rem;
	line-height: 1;
}

.nvb-date-cal__arrow:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.nvb-date-cal__dow {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	background: var(--nvb-primary, #55493d);
	color: #fff;
}

.nvb-date-cal__dow span {
	padding: 8px 4px;
}

.nvb-date-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	padding: 4px;
	gap: 1px;
	background: var(--nvb-cream, #f1ebe0);
}

.nvb-date-cal__day {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	width: 100%;
	min-height: 0;
	font-size: 0.8125rem;
	border: none;
	border-radius: 0;
	background: transparent;
	padding: 0;
	position: relative;
}

.nvb-date-cal__day--muted {
	color: rgb(var(--nvb-muted, 107 102 92) / 0.45);
	pointer-events: none;
}

.nvb-date-cal__day--disabled {
	color: rgb(var(--nvb-muted, 107 102 92) / 0.55);
	cursor: not-allowed;
	pointer-events: none;
}

.nvb-date-cal__day--preferred {
	color: var(--nvb-ink, #2b2a39);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.nvb-date-cal__day--preferred:hover {
	background: var(--nvb-sage-light, #d8dec9);
}

.nvb-form__enquiry-hint {
	font-size: 0.875rem;
	color: var(--nvb-muted, #6b655c);
	margin: 0;
	line-height: 1.45;
}

.nvb-date-cal__day--available {
	color: var(--nvb-ink, #2b2a39);
	cursor: pointer;
}

.nvb-date-cal__day--available:hover {
	background: var(--nvb-sage-light, #d8dec9);
}

.nvb-date-cal__day--selected {
	background: var(--nvb-primary, #55493d) !important;
	color: var(--nvb-cream, #f1ebe0) !important;
	font-weight: 600;
}

.nvb-date-cal__day--today:not(.nvb-date-cal__day--selected)::after {
	content: '';
	position: absolute;
	bottom: 0.25rem;
	left: 50%;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--nvb-ring, #ffd07b);
}

.nvb-date-cal__day--today.nvb-date-cal__day--preferred:not(.nvb-date-cal__day--selected),
.nvb-date-cal__day--today.nvb-date-cal__day--available:not(.nvb-date-cal__day--selected) {
	font-weight: 700;
	box-shadow: inset 0 0 0 1px rgba(255, 208, 123, 0.55);
}

.nvb-date-cal__day--available,
.nvb-date-cal__day--preferred,
.nvb-date-cal__day--disabled,
.nvb-date-cal__day--muted,
.nvb-date-cal__day--empty {
	position: relative;
}

.nvb-date-cal__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 16px;
	font-size: 0.875rem;
	color: var(--nvb-muted, #6b655c);
}

/* ── Upcoming events sidebar (event post type) ─────────────────────────── */

.nvb-app--with-upcoming {
	border: none;
	box-shadow: none;
	background: transparent;
}

.nvb-app--with-upcoming .nvb-app__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
	gap: 24px;
	align-items: stretch;
}

.nvb-app--with-upcoming .nvb-app__main {
	background: #fff;
	border: 1px solid var(--nvb-line);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	min-width: 0;
	height: 100%;
}

.nvb-app__upcoming {
	min-width: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.nvb-upcoming {
	background: #fff;
	border: 1px solid var(--nvb-line);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
}

.nvb-upcoming__head {
	padding: 18px 18px 12px;
	border-bottom: 1px solid var(--nvb-line);
}

.nvb-upcoming__title {
	margin: 0;
	font-family: var(--font-secondary, Georgia, serif);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--nvb-ink);
}

.nvb-upcoming__month-divider {
	margin: 0 -18px 6px;
	padding: 10px 18px 6px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nvb-muted, #6b7280);
	background: #fafafa;
	border-top: 1px solid var(--nvb-line);
}

.nvb-upcoming__month-divider:first-child {
	margin-top: -16px;
	border-top: 0;
}

.nvb-upcoming__month-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.nvb-upcoming__month-label {
	flex: 1;
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--nvb-ink);
}

.nvb-upcoming__arrow {
	width: 32px;
	height: 32px;
	border: 1px solid var(--nvb-line);
	border-radius: 6px;
	background: #fff;
	color: var(--nvb-ink);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.nvb-upcoming__arrow:hover:not(:disabled) {
	background: var(--nvb-surface);
}

.nvb-upcoming__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.nvb-upcoming__tabs {
	display: flex;
	gap: 8px;
	padding: 12px 18px 0;
}

.nvb-upcoming__tab {
	padding: 8px 14px;
	border: 1px solid var(--nvb-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--nvb-muted);
	cursor: pointer;
}

.nvb-upcoming__tab.is-active {
	background: var(--nvb-primary);
	border-color: var(--nvb-primary);
	color: var(--nvb-cream);
}

.nvb-upcoming__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px 18px;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.nvb-upcoming__loading,
.nvb-upcoming__empty {
	margin: 0;
	padding: 24px 8px;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--nvb-muted);
}

.nvb-upcoming-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	width: 100%;
	padding: 14px 14px 12px 16px;
	border: 1px solid var(--nvb-line);
	border-left: 4px solid var(--nvb-accent-deep);
	border-radius: 6px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.nvb-upcoming-card--colored {
	border-left-color: var(--nvb-event-custom);
	background: color-mix(in srgb, var(--nvb-event-custom) 10%, #fff);
}

.nvb-upcoming-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.nvb-upcoming-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--nvb-sage-light);
	color: var(--nvb-accent-deep);
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.nvb-upcoming-card__date {
	padding-right: 72px;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--nvb-muted);
}

.nvb-upcoming-card__title {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--nvb-ink);
}

.nvb-upcoming-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin-top: 2px;
}

.nvb-upcoming-card__status {
	font-size: 0.75rem;
	font-weight: 600;
}

.nvb-upcoming-card__status--open {
	color: #2f7a45;
}

.nvb-upcoming-card__status--closed {
	color: #b44;
}

.nvb-upcoming-card__slots {
	margin-left: auto;
	font-size: 0.6875rem;
	color: var(--nvb-muted);
}

@media (max-width: 1140px) {
	.nvb-app--with-upcoming .nvb-app__layout {
		grid-template-columns: 1fr;
	}

	.nvb-app__upcoming,
	.nvb-upcoming {
		height: auto;
		min-height: 0;
	}

	.nvb-upcoming__list {
		flex: none;
		max-height: min(70vh, 720px);
	}
}
