/* Catalog input/card anatomy follows UiController::actionComponents and actionAppointmentDashboard. */
html.bv3-page .bv3-first-page{padding:16px 0 40px;min-width:0;width:100%}.bv3-first-page .bv3-page-heading{margin:0 0 24px}.bv3-first-page .bv3-page-heading h1{font-size:clamp(22px,3vw,32px);line-height:1.8;margin:0}.bv3-first-page .bv3-page-heading p{color:var(--bv3-muted);font-size:14px;line-height:2;margin-top:6px}

.bv3-first-form {
	display: block;
	margin: 0 0 24px
}

.bv3-first-form .bv3-search-box {
	width: 100%
}

.bv3-first-form .app-btn2 {
	margin: 0
}

.bv3-first-page #bv3-first-specialties {
	margin-bottom: 32px;
	max-height: 480px;
	overflow-y: auto;
	padding: 4px;
	scrollbar-gutter: stable
}

.bv3-first-feedback {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 24px 0 4px
}

.bv3-first-feedback p {
	margin: 0;
	color: var(--bv3-muted);
	line-height: 2
}

.bv3-first-progress-track > progress {
	width: 100%;
	height: 6px;
	accent-color: var(--bv3-blue-dark);
	margin: 0
}


.bv3-first-note {
	font-size: 12px;
	color: var(--bv3-muted);
	line-height: 2;
	margin-top: 20px
}

.bv3-first-time {
	display: grid;
	gap: 8px;
	text-align: center;
	justify-items: center;
	border-block: 1px solid var(--bv3-line);
	padding: 16px 0;
	margin: 8px 0 16px;
	color: var(--bv3-blue-dark)
}

.bv3-first-time strong {
	font-size: 22px;
	font-weight: 700
}

.bv3-first-time span {
	font-size: 13px;
	line-height: 1.9
}

.bv3-first-page .bv3-doctor-card {
	display: flex;
	flex-direction: column;
	min-width: 0
}

.bv3-first-page .bv3-doctor-card > .app-btn2 {
	margin-top: auto
}

.bv3-first-page .bv3-doctor-card h3, .bv3-clinic-doctor .bv3-doctor-identity h3 {
	font-size: 16px;
	margin: 0;
	line-height: 1.9;
	overflow-wrap: anywhere
}

.bv3-first-page .bv3-doctor-identity img, .bv3-clinic-doctor .bv3-doctor-identity img {
	object-fit: cover;
	flex: none;
	width: 76px;
	height: 76px;
	border-radius: 16px
}

.bv3-first-page .bv3-doctor-identity > div, .bv3-clinic-doctor .bv3-doctor-identity > div {
	min-width: 0
}

.bv3-first-page .bv3-doctor-center, .bv3-first-page .bv3-doctor-address {
	overflow-wrap: anywhere
}

.bv3-first-page .bv3-results-grid:empty {
	display: none
}

html.bv3-page[data-theme=dark] .bv3-first-time {
	color: var(--bv3-blue)
}

@media (max-width: 620px) {
	.bv3-first-page .bv3-page-heading {
		margin-bottom: 18px
	}

	.bv3-first-page .bv3-doctor-identity img, .bv3-clinic-doctor .bv3-doctor-identity img {
		width: 68px;
		height: 68px
	}

	.bv3-first-time strong {
		font-size: 24px
	}
}

/* Keep browser-native progress colors within the shared palette. */
.bv3-first-progress-track > progress {
	appearance: none;
	border: 0;
	border-radius: 4px;
	overflow: hidden;
	background: var(--bv3-line)
}

.bv3-first-progress-track > progress::-webkit-progress-bar {
	background: var(--bv3-line)
}

.bv3-first-progress-track > progress::-webkit-progress-value {
	background: var(--bv3-blue-dark)
}

.bv3-first-progress-track > progress::-moz-progress-bar {
	background: var(--bv3-blue-dark)
}

@media (max-width: 620px) {
	.bv3-first-page .bv3-first-form {
		display: block;
		padding: 0 !important
	}

	.bv3-first-page #bv3-first-specialties {
		max-height: 420px
	}
}

/* A chosen specialty leads with its appointments; searching again stays below those results. */
.bv3-first-page #bv3-first-picker {
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--bv3-line)
}

.bv3-first-page #bv3-first-picker-title {
	margin: 0 0 16px
}

.bv3-first-page > .bv3-first-results[hidden] ~ #bv3-first-picker {
	margin-top: 0;
	padding-top: 0;
	border: 0
}

.bv3-first-results {
	scroll-margin-top: 20px
}

/* Reuse the catalog title and outline action while allowing narrow screens to wrap. */
.bv3-first-results-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap
}

.bv3-first-results-heading h2 {
	margin: 0
}

.bv3-first-results-heading .app-btn2 {
	flex-shrink: 0
}

.bv3-first-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap
}

/* Reuse the catalog selection-bar disabled palette without fading readable labels. */
html.bv3-page body .bv3-first-actions .app-btn2:disabled {
	background: var(--bv3-line) !important;
	color: var(--bv3-ink) !important;
	border-color: var(--bv3-line) !important;
	opacity: 1;
	cursor: not-allowed !important;
	box-shadow: none !important;
	transform: none
}

/* Match the chat's catalog media controls while preserving this page's palette and native progress. */
.bv3-first-progress-track {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.bv3-first-progress-track:not(:has(> progress:not([hidden]))) {
	display: none;
}

.bv3-first-progress-track > progress {
	flex: 1;
	min-width: 0;
	height: 8px;
}

html.bv3-page :is(#bv3-first-retry,#bv3-first-refresh) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #c92c35;
	box-shadow: none;
	cursor: pointer;
}

html.bv3-page :is(#bv3-first-retry,#bv3-first-refresh):is(:hover,:active,:focus-visible) {
	background: transparent;
	color: #a91d26;
	box-shadow: none;
}

html.bv3-page :is(#bv3-first-retry,#bv3-first-refresh):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -5px;
	border-radius: 8px;
}

:is(#bv3-first-retry,#bv3-first-refresh) [class*="bio-icon"] {
	font-size: 24px;
	line-height: 1;
}

html.bv3-page[data-theme=dark] :is(#bv3-first-retry,#bv3-first-refresh) {
	color: #ff9b9f;
}

html.bv3-page[data-theme=dark] :is(#bv3-first-retry,#bv3-first-refresh):is(:hover,:active,:focus-visible) {
	color: #ffc3c6;
}

/* Keep status-to-bar spacing independent of the 44px media-control hit area. */
.bv3-first-feedback {
	padding-inline-end: 52px;
	gap: 8px;
	margin-bottom: 4px;
}


.bv3-first-progress-track {
	position: relative;
	min-height: 8px;
	padding-inline-end: 52px;
	box-sizing: border-box;
}

html.bv3-page .bv3-first-progress-track :is(#bv3-first-retry,#bv3-first-refresh) {
	position: absolute;
	inset-inline-end: 0;
	top: 50%;
	transform: translateY(-50%);
}

/* Replay stays green for both continuation and a completed search's restart. */
html.bv3-page :is(#bv3-first-refresh,#bv3-first-retry[data-action="resume"]) {
	color: #168143;
}

html.bv3-page :is(#bv3-first-refresh,#bv3-first-retry[data-action="resume"]):is(:hover,:active,:focus-visible) {
	color: #106132;
}

html.bv3-page[data-theme=dark] :is(#bv3-first-refresh,#bv3-first-retry[data-action="resume"]) {
	color: #80d4a6;
}

html.bv3-page[data-theme=dark] :is(#bv3-first-refresh,#bv3-first-retry[data-action="resume"]):is(:hover,:active,:focus-visible) {
	color: #a6e8c3;
}

/* Separate appointment cards from the calendar-search progress without changing status spacing. */
.bv3-first-results > #bv3-first-cards:not(:empty) {
	margin-top: 20px
}

/* Keep hospital and address together while retaining each standalone offer's full location. */
.bv3-first-location {
	display: grid;
	gap: 2px
}

/* Stretch the existing specialty button across its card, retaining one native keyboard/click handler. */
.bv3-first-page #bv3-first-specialties .bv3-specialty-card {
	position: relative;
	isolation: isolate;
	cursor: pointer
}

.bv3-first-page #bv3-first-specialties .bv3-first-action {
	position: static
}

.bv3-first-page #bv3-first-specialties .bv3-first-action::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit
}

html.bv3-page #bv3-first-specialties .bv3-specialty-card:is(:hover,:focus-within) {
	background: var(--bv3-bg);
	border-color: var(--bv3-blue)
}

.bv3-first-page #bv3-first-specialties .bv3-specialty-card:has(.bv3-first-action:focus-visible) {
	outline: 2px solid var(--bv3-blue);
	outline-offset: -2px
}
