/* AUTO-GENERATED */

.wm-portal,
.wm-consult-app,
.wm-consult-themed,
.wm-consult-join-page {
	--wm-surface-alt: color-mix(in srgb, var(--wm-muted, #5b6b75) 5%, var(--wm-panel, #fff));
	--wm-font-stack: var(--wm-font, "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif);
	--wm-scrollbar-size: 6px;
	--wm-scrollbar-thumb: color-mix(in srgb, var(--wm-accent) 50%, transparent);
	--wm-scrollbar-thumb-hover: color-mix(in srgb, var(--wm-accent) 72%, transparent);
	--wm-scrollbar-track: transparent;
	font-family: var(--wm-font-stack);
	/* Fixed rem baseline — do not inherit theme body font-size (TT5 variations use large/medium). */
	font-size: 1rem;
	line-height: 1.5;
}

/*
 * Slim accent scrollbars; transparent track so the thumb reads as an overlay
 * (avoids the wide OS gutter). Firefox + WebKit.
 */
@supports (scrollbar-color: auto) {
	:is(.wm-portal, .wm-consult-app, .wm-consult-themed, .wm-consult-join-page),
	:is(.wm-portal, .wm-consult-app, .wm-consult-themed, .wm-consult-join-page) * {
		scrollbar-width: thin;
		scrollbar-color: var(--wm-scrollbar-thumb) var(--wm-scrollbar-track);
	}
}

:is(.wm-portal, .wm-consult-app, .wm-consult-themed, .wm-consult-join-page) *::-webkit-scrollbar {
	width: var(--wm-scrollbar-size);
	height: var(--wm-scrollbar-size);
}

:is(.wm-portal, .wm-consult-app, .wm-consult-themed, .wm-consult-join-page) *::-webkit-scrollbar-track {
	background: var(--wm-scrollbar-track);
}

:is(.wm-portal, .wm-consult-app, .wm-consult-themed, .wm-consult-join-page) *::-webkit-scrollbar-thumb {
	background-color: var(--wm-scrollbar-thumb);
	border-radius: 999px;
	border: 1px solid transparent;
	background-clip: padding-box;
}

:is(.wm-portal, .wm-consult-app, .wm-consult-themed, .wm-consult-join-page) *::-webkit-scrollbar-thumb:hover {
	background-color: var(--wm-scrollbar-thumb-hover);
}

:is(.wm-portal, .wm-consult-app, .wm-consult-themed, .wm-consult-join-page) *::-webkit-scrollbar-corner {
	background: transparent;
}

/* Overlay overflow where supported — scrollbar paints over content, no width shift. */
@supports (overflow: overlay) {
	:is(.wm-portal, .wm-consult-app, .wm-consult-themed, .wm-consult-join-page) :is(
		.wm-table-scroll-region,
		.wm-filter-checkbox-scroll,
		.wm-filter-combobox-list,
		.wm-anchored-menu-inner,
		.wm-note-list-wrap,
		.wm-patient-table-wrap,
		.wm-call-patient .wm-chart-accordion,
		.wm-chat-log,
		.wm-vitals-alerts-inbox-list,
		.wm-patient-messages-inbox-list
	) {
		overflow: overlay;
	}
}

/*
 * Theme CSS often sets font-family directly on headings (serif/display faces).
 * Inherit from .wm-consult-app is not enough — restate the stack on typographic elements.
 */
.wm-portal :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea, label, legend, .wm-portal-tab),
.wm-consult-app :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea, label, legend, .wm-portal-tab),
.wm-consult-themed :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea, label, legend),
.wm-consult-join-page :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea, label, legend) {
	font-family: var(--wm-font-stack);
}

.wm-consult-app,
.wm-portal {
	/*
	 * Paginated tables: default page size = min visible body rows (see table-pagination.js
	 * MIN_VISIBLE_TABLE_ROWS). Scroll region height fits header + that many body rows at
	 * --wm-table-row-height so a full page does not scroll inside the tbody.
	 */
	--wm-table-row-height: 2.375rem;
	--wm-table-head-row-height: 2.25rem;
	--wm-table-min-visible-rows: 15;
	--wm-table-scroll-min-height: calc(
		var(--wm-table-head-row-height) + var(--wm-table-min-visible-rows) * var(--wm-table-row-height)
	);
	/* List table panel ≈ scroll viewport + pagination footer */
	--wm-patient-table-panel-min-height: calc(var(--wm-table-scroll-min-height) + 3.25rem);
}

.wm-portal,
.wm-consult-app,
.wm-consult-themed,
.wm-consult-join-page {
	/* Text-only / quiet buttons (segment toggles, toolbar links) — not filled primaries. */
	--wm-btn-text-muted: var(--wm-muted, #5b6b75);
	--wm-btn-text-accent: var(--wm-accent);
}

.wm-consult-app {
	color: var(--wm-ink, inherit);
	background: var(--wm-bg, transparent);
	box-sizing: border-box;
	--wm-space-1: 0.35rem;
	--wm-space-2: 0.55rem;
	--wm-space-3: 0.85rem;
	--wm-space-4: 1.15rem;
	--wm-space-5: 1.5rem;
	--wm-space-6: 2rem;
	--wm-control-min: 2.75rem;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.wm-consult-align.alignwide,
.wp-block-wm-consult.alignwide {
	width: min(100%, var(--wp--style--global--wide-size, 72rem));
	max-width: min(100%, var(--wp--style--global--wide-size, 72rem));
	margin-inline: auto;
	padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 2rem;
	box-sizing: border-box;
}

.wm-consult-align.alignfull,
.wp-block-wm-consult.alignfull {
	--wm-full-side-margin: clamp(1rem, 4vw, 2.5rem);
	width: auto;
	max-width: none;
	margin-left: calc(50% - 50vw + var(--wm-full-side-margin));
	margin-right: calc(50% - 50vw + var(--wm-full-side-margin));
	padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 2rem;
	box-sizing: border-box;
}

body.wm-consult-full-width :is(.entry-content, .wp-block-post-content) :is(
	.wp-block-wm-consult,
	.wm-consult-align,
	.alignfull.wm-consult-align
) {
	width: 100%;
	max-width: none;
	margin-inline: clamp(1rem, 4vw, 2.5rem);
	padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 2rem;
	box-sizing: border-box;
}

@media (orientation: portrait) and (max-width: 1023px) {
	body.wm-consult-full-width :is(.entry-content, .wp-block-post-content) :is(
		.wp-block-wm-consult,
		.wm-consult-align,
		.alignfull.wm-consult-align
	) {
		margin-inline: clamp(0.5rem, 2.5vw, 1rem);
		padding-inline: clamp(0.5rem, 2.5vw, 1rem);
	}
}

body.wm-consult-full-width:has(.wm-consult-app.is-in-call) :is(.entry-content, .wp-block-post-content) :is(
	.wp-block-wm-consult,
	.wm-consult-align
) {
	margin-inline: clamp(0.35rem, 1.5vw, 0.85rem);
	padding-inline: clamp(0.35rem, 1.5vw, 0.85rem);
}

body.wm-consult-full-width :is(.entry-content, .wp-block-post-content) :is(.wm-consult-app, .wm-portal) {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/* Block themes: break consult blocks out of the constrained content column. */
body.wm-consult-full-width :is(.entry-content, .wp-block-post-content).is-layout-constrained
	> :is(.wp-block-wm-consult.alignfull, .wp-block-wm-consult.alignwide, .wm-consult-align.alignfull) {
	max-width: none !important;
	width: auto;
	margin-left: calc(50% - 50vw + var(--wm-full-side-margin, 1rem)) !important;
	margin-right: calc(50% - 50vw + var(--wm-full-side-margin, 1rem)) !important;
}

/* The consultation screens print their own heading, so the theme title duplicates it. */
body.wm-consult-hide-page-title .entry-title,
body.wm-consult-hide-page-title .page-title,
body.wm-consult-hide-page-title .wp-block-post-title,
body.wm-consult-hide-page-title main .wp-block-post-title {
	display: none !important;
}

/* Consultation canvas only — does not restyle the WordPress theme header or footer. */
body.wm-consult-themed:not(.wm-consult-in-call) {
	background: var(--wm-bg, #F9F9F9);
}

/* SPA portal: hide theme chrome so the portal fills the viewport (Telehealth → Appearance). */
body.wm-consult-portal-page.wm-consult-hide-site-chrome:not(.wm-consult-in-call) :is(
	.wp-site-blocks > header,
	.wp-site-blocks > footer,
	header.wp-block-template-part,
	footer.wp-block-template-part,
	.site-header,
	.site-footer,
	#masthead,
	#colophon,
	#site-header
) {
	display: none !important;
}

body.wm-consult-portal-page.wm-consult-hide-site-chrome:not(.wm-consult-in-call) :is(
	.wp-site-blocks,
	#page,
	.site,
	main,
	.site-main,
	#primary
) {
	min-height: 100dvh;
}

body.wm-consult-portal-page.wm-consult-hide-site-chrome:not(.wm-consult-in-call) :is(
	.wm-portal,
	.wm-consult-app
) {
	min-height: 100dvh;
}

body.wm-consult-portal-page.wm-consult-hide-site-chrome:not(.wm-consult-in-call) .wp-site-blocks {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.wm-consult-portal-page.wm-consult-hide-site-chrome:not(.wm-consult-in-call) main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.wm-consult-portal-page.wm-consult-hide-site-chrome:not(.wm-consult-in-call) main :is(
	.wp-block-group,
	.entry-content,
	.wp-block-post-content
) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.wm-consult-portal-page.wm-consult-hide-site-chrome:not(.wm-consult-in-call) :is(
	.entry-content,
	.wp-block-post-content
) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.wm-consult-portal-page.wm-consult-hide-site-chrome:not(.wm-consult-in-call) :is(
	.wp-block-wm-consult,
	.wm-consult-align
).alignfull,
body.wm-consult-portal-page.wm-consult-hide-site-chrome:not(.wm-consult-in-call) :is(
	.wp-block-wm-consult,
	.wm-consult-align
).alignwide {
	padding-top: clamp(0.65rem, 2vw, 1rem);
	padding-bottom: 0;
}

body.wm-consult-themed.wm-consult-hide-page-title:not(.wm-consult-in-call):not(.wm-consult-hide-site-chrome) .wp-site-blocks > main {
	margin-top: 0;
}

body.wm-consult-themed.wm-consult-hide-page-title:not(.wm-consult-in-call):not(.wm-consult-hide-site-chrome) main :is(
	.wp-block-group.alignfull,
	.entry-content
) {
	padding-top: clamp(0.65rem, 2vw, 1.15rem) !important;
}

body.wm-consult-themed:not(.wm-consult-in-call) .wm-portal-header {
	padding-bottom: var(--wm-space-4, 1.15rem);
	margin-bottom: var(--wm-space-4, 1.15rem);
	border-bottom: 1px solid var(--wm-line, color-mix(in srgb, currentColor 16%, transparent));
}

.wm-consult-block-editor {
	min-height: 4rem;
	border: 1px dashed var(--wm-line, #c3c4c7);
	border-radius: 8px;
	padding: 0.75rem;
}

/*
 * Every width in this stylesheet is written border-box. .wm-portal is a
 * sibling wrapper, not a child of .wm-consult-app, so it needs the same reset
 * or shared components (the account menu, tabs) inherit the theme's
 * content-box and overflow their container by their own padding.
 */
:is(.wm-portal, .wm-consult-app),
:is(.wm-portal, .wm-consult-app) *,
:is(.wm-portal, .wm-consult-app) *::before,
:is(.wm-portal, .wm-consult-app) *::after {
	box-sizing: border-box;
}

.wm-consult-join-main {
	width: min(1100px, 100%);
	margin-inline: auto;
	padding: var(--wm-space-5, 1.5rem) max(1rem, env(safe-area-inset-left, 0px))
		max(3rem, calc(2rem + env(safe-area-inset-bottom, 0px))) max(1rem, env(safe-area-inset-right, 0px));
}

.wm-consult-layout {
	display: grid;
	grid-template-columns: minmax(220px, 280px) 1fr minmax(200px, 260px);
	gap: var(--wm-space-4, 1.15rem);
	padding: 0;
	min-height: 70vh;
}

.wm-clinician-shell {
	display: grid;
	gap: var(--wm-space-4, 1.15rem);
	width: 100%;
	min-width: 0;
}

.wm-clinician-lobby {
	display: grid;
	gap: var(--wm-space-5, 1.5rem);
}

.wm-clinician-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.wm-clinician-toolbar .wm-status {
	margin: 0;
	flex: 1 1 auto;
}

.wm-clinician-section {
	display: grid;
	gap: 0.65rem;
	min-width: 0;
}

.wm-clinician-section.wm-card > .wm-clinician-appts {
	min-width: 0;
}

.wm-patient-exports-host {
	margin-top: var(--wm-space-4, 1.15rem);
}

.wm-patient-exports {
	display: grid;
	gap: var(--wm-space-4, 1.15rem);
}

.wm-patient-timeline-toolbar,
.wm-list-filter-toolbar {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 0.5rem;
}

.wm-card-table-panel {
	padding-top: 0.85rem;
}

.wm-card-table-panel > .wm-list-filter-toolbar,
.wm-card-table-panel > .wm-patient-timeline-toolbar,
.wm-card-table-panel > .wm-portal-list-toolbar-host {
	padding: 0 1rem;
}

.wm-card-table-panel > .wm-portal-list-toolbar-host {
	position: relative;
	z-index: 6;
	padding-bottom: 0.65rem;
}

.wm-portal-list-toolbar-host .wm-list-filter-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 0.75rem;
	row-gap: 0.5rem;
	margin-bottom: 0;
}

.wm-portal-list-toolbar-host .wm-patient-timeline-filters {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 0.5rem 0.65rem;
	min-width: 0;
	overflow: visible;
}

.wm-portal-list-toolbar-host .wm-patient-timeline-toolbar-actions {
	display: inline-flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 0.5rem;
	justify-self: end;
}

.wm-portal-list-toolbar-host .wm-anchored-menu-wrap {
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
}

.wm-portal-list-toolbar-host .wm-patient-timeline-filters .wm-popover {
	z-index: 50;
}

.wm-chart-panel > .wm-list-filter-toolbar {
	margin: 0 0 0.65rem;
}

.wm-list-toolbar-search {
	flex: 1 1 12rem;
	min-width: 9rem;
	max-width: 18rem;
}

.wm-patient-timeline-panel > .wm-ui-note,
.wm-card-table-panel > .wm-ui-note,
.wm-patient-export-chart > .wm-ui-note {
	margin: 0.75rem 1rem 1rem;
}

.wm-card-table-panel > .wm-ui-note[hidden] {
	display: none !important;
}

.wm-card-table-panel > .wm-card-head {
	padding: 0 1rem;
}

.wm-patient-timeline-toolbar .wm-patient-timeline-filters {
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	gap: 0.65rem;
}

.wm-patient-timeline-toolbar .wm-patient-timeline-filters > select,
.wm-patient-timeline-toolbar .wm-patient-timeline-filters > .wm-select {
	width: auto !important;
	min-width: 9rem;
	max-width: min(100%, 14rem);
	flex: 0 1 auto;
}

.wm-patient-timeline-toolbar .wm-timeline-custom-dates {
	display: inline-flex;
	flex-flow: row wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	flex: 0 1 auto;
}

.wm-patient-timeline-toolbar .wm-timeline-custom-dates[hidden] {
	display: none !important;
}

.wm-patient-timeline-toolbar .wm-patient-timeline-filters > .wm-timeline-month-input {
	width: auto !important;
	min-width: 9.5rem;
	max-width: 11.5rem;
	flex: 0 1 auto;
	margin: 0;
}

.wm-patient-timeline-toolbar .wm-timeline-month-input[hidden] {
	display: none !important;
}

.wm-patient-timeline-toolbar .wm-patient-timeline-toolbar-actions {
	display: inline-flex;
	flex-flow: row wrap;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
}

.wm-patient-timeline-toolbar .wm-patient-timeline-toolbar-actions .wm-btn {
	white-space: nowrap;
}

.wm-patient-timeline-toolbar .wm-timeline-custom-dates .wm-invite-input {
	width: auto !important;
	flex: 0 1 auto;
	min-width: 9rem;
	max-width: 11rem;
}

.wm-timeline-date-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.wm-timeline-measured {
	white-space: nowrap;
}

.wm-timeline-measured-prominent {
	display: inline-flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0.45rem 0.65rem;
	text-align: right;
}

.wm-timeline-measured-label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wm-muted, #5b6b75);
}

.wm-timeline-measured-value {
	font-size: 1.2rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	color: var(--wm-accent);
}

.wm-patient-timeline-toolbar-actions {
	margin-left: auto;
	flex: 0 0 auto;
	align-self: center;
	display: inline-flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem 1.1rem;
}

.wm-table-panel {
	display: grid;
	gap: 0;
	min-width: 0;
}

.wm-table-scroll-region {
	height: clamp(var(--wm-table-scroll-min-height, 38rem), 52vh, 48rem);
	min-height: var(--wm-table-scroll-min-height, 38rem);
	max-height: clamp(var(--wm-table-scroll-min-height, 38rem), 70vh, 48rem);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.wm-table-scroll-region .wm-patient-table {
	table-layout: auto;
	width: 100%;
}

.wm-table-scroll-region .wm-patient-table thead th,
.wm-table-scroll-region .wm-patient-table tbody td {
	height: var(--wm-table-row-height, 2.375rem);
	min-height: var(--wm-table-row-height, 2.375rem);
	max-height: var(--wm-table-row-height, 2.375rem);
	box-sizing: border-box;
	vertical-align: middle;
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
}

/* Last-resort shrink: only these columns ellipsize when the table is width-constrained. */
.wm-table-scroll-region .wm-patient-table th.wm-table-col-shrink,
.wm-table-scroll-region .wm-patient-table td.wm-table-col-shrink {
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	max-width: 1px;
	width: 100%;
}

.wm-patient-list .wm-table-scroll-region .wm-patient-table th,
.wm-patient-list .wm-table-scroll-region .wm-patient-table td {
	padding: 0 0.75rem;
	line-height: 1.25;
}

.wm-patient-list .wm-table-scroll-region .wm-patient-table th.wm-patient-col-alerts,
.wm-patient-list .wm-table-scroll-region .wm-patient-table td.wm-patient-col-alerts {
	padding: 0;
}

.wm-table-scroll-empty,
.wm-table-scroll-region > .wm-empty {
	min-height: var(--wm-table-scroll-min-height, 38rem);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.wm-table-scroll-region .wm-patient-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: color-mix(in srgb, var(--wm-panel, #fff) 90%, #000);
	border-bottom: 0;
	/*
	 * border-collapse + sticky thead: cell border-bottom scrolls away; paint the
	 * header rule on the sticky cells instead.
	 */
	box-shadow: 0 1px 0 0 var(--wm-table-line, color-mix(in srgb, #000 12%, transparent));
}

.wm-patient-timeline-toolbar .wm-anchored-menu-wrap {
	flex: 0 0 auto;
}

/* Filter popovers sit above the date row; do not clip inside the chart panel. */
.wm-chart-panels {
	display: grid;
	gap: 0;
	min-width: 0;
}

.wm-chart-panels > .wm-chart-panel[hidden] {
	display: none !important;
}

.wm-chart-panel,
.wm-patient-timeline-tab-host,
.wm-patient-timeline-panel,
.wm-patient-timeline-toolbar {
	overflow: visible;
}

/* Skeleton loaders (async panels) */
.wm-skeleton {
	display: block;
	width: var(--wm-skel-w, 100%);
	height: var(--wm-skel-h, 0.75rem);
	border-radius: 0.35rem;
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--wm-muted, #5b6b75) 10%, var(--wm-panel, #fff)) 0%,
		color-mix(in srgb, var(--wm-muted, #5b6b75) 16%, var(--wm-panel, #fff)) 45%,
		color-mix(in srgb, var(--wm-muted, #5b6b75) 10%, var(--wm-panel, #fff)) 90%
	);
	background-size: 200% 100%;
	animation: wm-skeleton-shimmer 1.15s ease-in-out infinite;
}

.wm-skeleton.is-pill {
	border-radius: 999px;
}

.wm-skeleton.is-disc {
	border-radius: 50%;
}

@keyframes wm-skeleton-shimmer {
	0% {
		background-position: 100% 0;
	}

	100% {
		background-position: -100% 0;
	}
}

.wm-skeleton-host {
	display: grid;
	gap: 0.85rem;
	min-width: 0;
}

.wm-patient-list > .wm-skeleton-patient-list {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	gap: 0;
	min-height: var(--wm-patient-table-panel-min-height);
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	overflow: hidden;
	background: var(--wm-panel);
}

.wm-patient-list > .wm-skeleton-patient-list .wm-skeleton-table-body {
	min-height: var(--wm-table-scroll-min-height);
}

.wm-patient-detail-body > .wm-skeleton-host {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-height: var(--wm-patient-table-panel-min-height);
}

.wm-patient-detail-body > .wm-skeleton-patient-chart > .wm-skeleton-overview-triple,
.wm-patient-detail-body > .wm-skeleton-patient-chart > .wm-skeleton-card-single {
	flex: 1 1 auto;
	min-height: var(--wm-table-scroll-min-height);
}

.wm-patient-detail-body > .wm-skeleton-program {
	flex: 1 1 auto;
	min-height: 0;
}

.wm-patient-detail-body > .wm-skeleton-program > .wm-skeleton-program-shell,
.wm-patient-detail-body > .wm-skeleton-program > .wm-skeleton-card {
	flex: 1 1 auto;
	min-height: var(--wm-table-scroll-min-height);
	display: flex;
	flex-direction: column;
}

.wm-skeleton-table {
	display: grid;
	gap: 0;
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 85%, transparent);
	border-radius: var(--wm-radius, 8px);
	overflow: hidden;
	background: var(--wm-panel, #fff);
}

.wm-skeleton-table-head,
.wm-skeleton-table-row {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1.2fr 4.5rem;
	gap: 0.75rem;
	align-items: center;
	padding: 0.55rem 0.75rem;
}

.wm-skeleton-table-head.is-timeline,
.wm-skeleton-table-row.is-timeline {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wm-skeleton-table-head {
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
	background: color-mix(in srgb, var(--wm-panel, #fff) 94%, #000);
}

.wm-skeleton-table-body .wm-skeleton-table-row:nth-child(even) {
	background: color-mix(in srgb, var(--wm-panel, #fff) 97%, #000);
}

.wm-skeleton-table-body.is-loose {
	display: grid;
	gap: 0.55rem;
	margin-top: 0.35rem;
}

.wm-skeleton-table-body.is-loose .wm-skeleton-table-row {
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 75%, transparent);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
}

.wm-skeleton-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0.35rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wm-panel, #fff) 92%, currentColor);
}

.wm-skeleton-overview-triple {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 60rem) {
	.wm-skeleton-overview-triple {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.wm-skeleton-card {
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.04);
	overflow: hidden;
}

.wm-skeleton-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.65rem 1rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
	background: color-mix(in srgb, var(--wm-panel, #fff) 96%, #000);
}

.wm-skeleton-card-actions {
	display: flex;
	gap: 0.35rem;
	flex-shrink: 0;
}

.wm-skeleton-card-body {
	display: grid;
	gap: 0.45rem;
	padding: 0.85rem 1rem 1rem;
}

.wm-skeleton-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.wm-skeleton-table-region {
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 85%, transparent);
	border-radius: var(--wm-radius, 8px);
	overflow: hidden;
	background: var(--wm-panel, #fff);
	min-height: min(52vh, 28rem);
}

.wm-skeleton-timeline.wm-patient-timeline-panel {
	display: grid;
	gap: 0.65rem;
}

.wm-skeleton-stack {
	display: grid;
	gap: 0.65rem;
}

.wm-skeleton-stack.is-tight {
	gap: 0.4rem;
}

.wm-skeleton-program-shell {
	min-width: 0;
}

.wm-skeleton-program-shell .wm-rpm-main-cards {
	margin-top: 0;
}

.wm-skeleton-program-section-head .wm-card-head-main {
	display: grid;
	gap: 0.35rem;
	min-width: 0;
}

.wm-skeleton-program-section-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 0.35rem 0.5rem;
	flex-shrink: 0;
}

.wm-skeleton-program-card {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
	box-sizing: border-box;
	overflow: visible;
}

.wm-skeleton-program-card.wm-rpm-main-card {
	border: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 18%, transparent);
	border-radius: 12px;
	padding: 0.85rem 1rem;
	background: var(--wm-panel, #fff);
	box-shadow: 0 2px 8px color-mix(in srgb, #000 6%, transparent);
}

.wm-skeleton-program-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
}

.wm-skeleton-program-rings {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: center;
	margin: 0.65rem 0 0.75rem;
}

.wm-skeleton-program-ring {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	width: 5.5rem;
}

.wm-skeleton-program-readings {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem;
	margin-top: 0.65rem;
}

.wm-skeleton-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
	gap: 0.45rem;
}

.wm-skeleton-appts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
	gap: 0.75rem;
	width: 100%;
	min-width: 0;
}

.wm-skeleton-appt-card {
	display: grid;
	gap: 0.55rem;
	min-width: 0;
	padding: 0.85rem 1rem;
	border: 1px solid color-mix(in srgb, var(--wm-border, #d8e0e6) 85%, transparent);
	border-radius: var(--wm-radius, 0.5rem);
	background: var(--wm-panel, #fff);
}

.wm-skeleton-inbox-list {
	display: grid;
	gap: 0.22rem;
	min-width: 0;
	width: 100%;
}

.wm-skeleton-inbox-list.is-compact {
	gap: 0.35rem;
}

.wm-skeleton-inbox-item.is-alert {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		'name status'
		'message message'
		'time ack';
	column-gap: 0.35rem;
	row-gap: 0;
	padding: 0.32rem 0.4rem;
	border: 1px solid color-mix(in srgb, var(--wm-line, #d8dce3) 88%, transparent);
	border-radius: 8px;
	background: var(--wm-panel, #fff);
}

.wm-skeleton-inbox-item.is-alert .wm-skeleton-inbox-name {
	grid-area: name;
}

.wm-skeleton-inbox-item.is-alert .wm-skeleton-inbox-status {
	grid-area: status;
	justify-self: end;
}

.wm-skeleton-inbox-item.is-alert .wm-skeleton-inbox-message {
	grid-area: message;
	grid-column: 1 / -1;
	padding: 0.22rem 0;
}

.wm-skeleton-inbox-item.is-alert .wm-skeleton-inbox-time {
	grid-area: time;
}

.wm-skeleton-inbox-item.is-alert .wm-skeleton-inbox-ack {
	grid-area: ack;
	justify-self: end;
}

.wm-skeleton-inbox-item.is-message {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	padding: 0.38rem 0.4rem;
	border: 1px solid color-mix(in srgb, var(--wm-line, #d8dce3) 88%, transparent);
	border-radius: 8px;
	background: var(--wm-panel, #fff);
}

.wm-skeleton-inbox-item-head {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	min-width: 0;
}

.wm-skeleton-inbox-item.is-alert .wm-skeleton-inbox-item-head {
	justify-content: space-between;
}

.wm-skeleton-inbox-item-head-end {
	display: inline-flex;
	align-items: center;
	gap: 0.12rem;
	flex-shrink: 0;
}

.wm-skeleton-inbox-item-main {
	flex: 1 1 auto;
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.wm-skeleton-inbox-item-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem;
	margin-top: 0.08rem;
}

.wm-skeleton-inbox-item-foot .wm-skeleton.is-disc {
	margin-left: auto;
	flex-shrink: 0;
}

.wm-skeleton-monthly-review-scroll {
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 85%, transparent);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
}

.wm-skeleton-monthly-review-body {
	display: grid;
}

.wm-skeleton-monthly-review-row {
	display: grid;
	grid-template-columns: 5.75rem 3.25rem 3.75rem 2.35rem repeat(14, minmax(0.85rem, 1fr)) repeat(5, 1.35rem);
	gap: 0.35rem;
	align-items: center;
	padding: 0.45rem 0.55rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 65%, transparent);
	min-width: 0;
}

.wm-skeleton-monthly-review-row.is-head {
	background: color-mix(in srgb, var(--wm-panel, #fff) 94%, #000);
}

.wm-skeleton-monthly-review-body .wm-skeleton-monthly-review-row:nth-child(even) {
	background: color-mix(in srgb, var(--wm-panel, #fff) 97%, #000);
}

.wm-skeleton-monthly-review-day {
	display: block;
	min-width: 0;
}

.wm-skeleton-monthly-review-dialog-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.95fr);
	gap: 0.75rem;
	min-width: 0;
}

@media (max-width: 900px) {
	.wm-skeleton-monthly-review-dialog-grid {
		grid-template-columns: 1fr;
	}
}

.wm-skeleton-rpm-month-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

@media (max-width: 56rem) {
	.wm-skeleton-rpm-month-cards {
		grid-template-columns: 1fr;
	}
}

.wm-skeleton-rpm-month .wm-skeleton-rpm-month-cards {
	margin-bottom: 0.65rem;
}

.wm-skeleton-rpm-month .wm-rpm-main-card-notes {
	margin-top: 0;
}

.wm-skeleton-table-row.is-readings {
	grid-template-columns: 1.1fr 1fr 0.9fr 2.5rem;
}

.wm-skeleton-table-head.is-readings {
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
	background: color-mix(in srgb, var(--wm-panel, #fff) 94%, #000);
}

.wm-skeleton-rpm-readings-table {
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 85%, transparent);
	border-radius: var(--wm-radius, 8px);
	overflow: hidden;
	background: var(--wm-panel, #fff);
}

.wm-skeleton-rpm-billing-cpt {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.wm-skeleton-rpm-billing-tables {
	display: grid;
	gap: 0.85rem;
	margin-top: 0.85rem;
}

.wm-skeleton-rpm-trend {
	display: grid;
	gap: 0.75rem;
}

.wm-vitals-alerts-inbox-list.is-busy,
.wm-patient-messages-inbox-list.is-busy {
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.wm-skeleton {
		animation: none;
		background: color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, var(--wm-panel, #fff));
	}
}

.wm-patient-timeline-tab-host.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

/* List refetch: dim table body only — toolbar/filters stay interactive. */
.wm-table-panel.is-loading {
	position: relative;
}

.wm-table-panel.is-loading .wm-table-scroll-region {
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.wm-table-panel.is-loading::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: color-mix(in srgb, var(--wm-panel, #fff) 35%, transparent);
}

.wm-table-panel.is-loading::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 42%;
	z-index: 3;
	width: 1.35rem;
	height: 1.35rem;
	margin: -0.675rem 0 0 -0.675rem;
	border: 2px solid color-mix(in srgb, var(--wm-accent) 28%, transparent);
	border-top-color: var(--wm-accent);
	border-radius: 50%;
	animation: wm-table-spin 0.7s linear infinite;
	pointer-events: none;
}

@keyframes wm-table-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wm-table-panel.is-loading::before {
		animation: none;
		border-top-color: color-mix(in srgb, var(--wm-accent) 28%, transparent);
	}
}

.wm-patient-timeline-filters .wm-popover {
	z-index: 50;
	max-width: min(22rem, calc(100vw - 2rem));
	min-width: 15.5rem;
	overflow: visible;
	padding: 0.65rem 0.7rem 0.75rem;
}

.wm-patient-timeline-filters .wm-popover-head {
	margin-bottom: 0.35rem;
	font-size: 0.92rem;
}

.wm-patient-timeline-filters .wm-anchored-menu-inner {
	max-height: min(72vh, 26rem);
	padding-right: 0.15rem;
	scrollbar-width: thin;
}

.wm-popover.wm-anchored-menu {
	overflow: visible;
	max-height: none;
}

.wm-anchored-menu-inner {
	max-height: min(80vh, 34rem);
	overflow-x: visible;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.wm-anchored-menu-trigger {
	gap: 0.35rem;
}

.wm-anchored-menu-chevron {
	flex-shrink: 0;
	opacity: 0.72;
	transition: transform 140ms ease;
}

.wm-anchored-menu-trigger[aria-expanded='true'] .wm-anchored-menu-chevron {
	transform: rotate(180deg);
}

.wm-popover-point-to-trigger::before {
	display: none;
}

.wm-popover-wrap.wm-anchored-menu-wrap {
	overflow: visible;
}

.wm-popover-caret {
	position: absolute;
	z-index: 32;
	width: 12px;
	height: 12px;
	background: var(--wm-panel, #fff);
	border-left: 1px solid var(--wm-line, #dcdcde);
	border-top: 1px solid var(--wm-line, #dcdcde);
	transform: translateX(-50%) rotate(45deg);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
}

.wm-popover-wrap.is-menu-open > .wm-popover-caret {
	opacity: 1;
	visibility: visible;
}

.wm-popover-point-to-trigger {
	top: calc(100% + 0.62rem);
	z-index: 31;
}

.wm-popover-point-to-trigger.is-flip-above {
	top: auto;
	bottom: calc(100% + 0.62rem);
}

.wm-rpm-latest-head-actions .wm-anchored-menu-wrap,
.wm-rpm-main-card-readings .wm-rpm-latest-head {
	overflow: visible;
}

.wm-popover .wm-timeline-filter-form {
	overflow: visible;
	padding-top: 0.35rem;
	padding-inline: 0;
	padding-bottom: 0.15rem;
}

.wm-timeline-filter-form {
	display: grid;
	gap: 0.65rem;
	min-width: 18rem;
}

.wm-popover .wm-timeline-filter-form {
	gap: 0.45rem;
	min-width: 0;
}

.wm-popover .wm-filter-hint {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.35;
}

.wm-popover .wm-timeline-filter-form > .wm-btn {
	justify-self: start;
	min-height: 2rem;
	padding: 0.25rem 0.55rem;
	font-size: 0.82rem;
}

.wm-filter-field-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.wm-filter-field-clear {
	flex-shrink: 0;
	padding: 0.15rem 0.45rem;
	font-size: 0.82rem;
	min-height: 0;
}

.wm-filter-checkbox-field.wm-filter-combobox-field {
	padding-top: 0.75rem;
	margin-top: 0.15rem;
}

.wm-popover .wm-filter-checkbox-field.wm-filter-combobox-field {
	padding: 0.45rem 0.4rem 0.35rem 0.55rem;
	margin-top: 0;
}

.wm-popover .wm-filter-combobox,
.wm-popover .wm-filter-checkbox-group {
	margin-top: 0;
}

.wm-popover .wm-filter-combobox-field {
	padding: 0.45rem 0.4rem 0.35rem 0.55rem;
}

/* Compact patient list status popover — no inner scroll clip on notch labels. */
.wm-popover .wm-patient-status-filter-form {
	max-height: none;
	overflow: visible;
	padding-top: 0.25rem;
}

.wm-popover .wm-filter-checkbox-scroll {
	gap: 0.1rem;
	padding-right: 0.05rem;
}

.wm-popover .wm-filter-checkbox {
	font-size: 0.84rem;
	gap: 0.4rem;
	padding: 0.12rem 0;
}

/* Dropdown panels inside filter popovers expand inline (no nested floating card). */
.wm-popover .wm-filter-combobox.is-open:not(.wm-filter-combobox--inline-expand) .wm-filter-combobox-panel {
	position: static;
	top: auto;
	left: auto;
	right: auto;
	z-index: auto;
	margin-top: 0.3rem;
	padding: 0.35rem 0 0;
	border: 0;
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 75%, transparent);
	border-radius: 0;
	box-shadow: none;
}

.wm-popover .wm-filter-combobox.is-open:not(.wm-filter-combobox--inline-expand) {
	z-index: auto;
}

/* Inline expand: one grouped card (header + search + list); hide trigger while open. */
.wm-popover .wm-filter-combobox--inline-expand.is-open .wm-filter-combobox-field {
	display: none;
}

.wm-popover .wm-filter-combobox--inline-expand.is-open {
	z-index: auto;
	margin-bottom: 0.55rem;
}

.wm-popover .wm-filter-combobox--inline-expand.is-open .wm-filter-combobox-panel {
	position: static;
	top: auto;
	left: auto;
	right: auto;
	z-index: auto;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0;
	padding: 0.5rem 0.55rem 0.5rem;
	border: 1px solid color-mix(in srgb, var(--wm-accent) 55%, var(--wm-line, #dcdcde));
	border-radius: var(--wm-radius, 8px);
	box-shadow: none;
}

.wm-filter-combobox-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 1.35rem;
}

.wm-filter-combobox-panel-actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 0.15rem;
	margin: -0.2rem -0.15rem -0.2rem 0;
}

.wm-filter-combobox-panel-title {
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wm-ink, inherit);
	min-width: 0;
	flex: 1 1 auto;
}

.wm-filter-combobox-chevron .wm-icon {
	transition: transform 140ms ease;
}

.wm-filter-combobox-chevron .wm-icon.is-open {
	transform: rotate(180deg);
}

.wm-popover .wm-filter-combobox--inline-expand.is-open .wm-filter-combobox-list {
	padding-bottom: 0.15rem;
}

.wm-popover .wm-filter-combobox-list {
	max-height: min(var(--wm-filter-combobox-list-max, 9.5rem), 7rem);
}

.wm-filter-checkbox-field-inner {
	position: relative;
	padding-right: 1.35rem;
}

.wm-filter-checkbox-field-inner > .wm-filter-combobox-clear {
	position: absolute;
	top: -0.15rem;
	right: -0.2rem;
}

.wm-filter-checkbox-scroll {
	overflow-y: auto;
	overscroll-behavior: contain;
	display: grid;
	gap: 0.2rem;
	padding-right: 0.15rem;
}

.wm-timeline-filter-form > label {
	display: grid;
	gap: 0.3rem;
	font-size: 0.88rem;
}

.wm-filter-combobox {
	position: relative;
	display: block;
	z-index: 1;
}

.wm-filter-combobox.is-open {
	z-index: 80;
}

.wm-filter-combobox-field {
	position: relative;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	padding: 0.55rem 0.45rem 0.45rem 0.65rem;
	transition: border-color 0.15s ease;
}

.wm-filter-combobox-field.is-open,
.wm-filter-combobox-field:focus-within {
	border-color: color-mix(in srgb, var(--wm-accent) 55%, var(--wm-line, #dcdcde));
}

.wm-filter-combobox-outline-label {
	position: absolute;
	top: 0;
	left: 0.55rem;
	transform: translateY(-50%);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1;
	padding: 0 0.28rem;
	background: var(--wm-panel, #fff);
	color: var(--wm-muted, #5b6b75);
	pointer-events: none;
	white-space: nowrap;
	max-width: calc(100% - 1rem);
	overflow: hidden;
	text-overflow: ellipsis;
}

.wm-filter-combobox-field.has-value .wm-filter-combobox-outline-label {
	color: var(--wm-muted, #5b6b75);
}

.wm-popover .wm-filter-combobox-field.has-value {
	border-color: var(--wm-line, #dcdcde);
}

.wm-filter-combobox-control {
	display: flex;
	align-items: center;
	gap: 0.1rem;
	min-height: 1.45rem;
}

.wm-filter-combobox--inline-expand .wm-filter-combobox-control {
	padding-right: 0.05rem;
}

.wm-filter-combobox-chevron {
	flex: 0 0 auto;
}

.wm-filter-combobox-trigger {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.wm-filter-combobox-summary {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.88rem;
	line-height: 1.35;
	color: var(--wm-ink, inherit);
}

.wm-filter-combobox-clear {
	flex: 0 0 auto;
	width: 1.65rem;
	height: 1.65rem;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--wm-muted, #5b6b75);
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.wm-filter-combobox-clear.wm-btn-icon .wm-icon {
	width: 1rem;
	height: 1rem;
}

.wm-filter-combobox-clear:hover,
.wm-filter-combobox-clear:focus-visible {
	color: var(--wm-ink, inherit);
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, transparent);
}

.wm-filter-combobox-clear[hidden] {
	display: none;
}

.wm-filter-combobox-panel {
	position: absolute;
	top: calc(100% + 0.2rem);
	left: 0;
	right: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.45rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	min-height: 0;
	box-shadow: 0 12px 28px rgba(15, 23, 32, 0.16);
}

.wm-filter-combobox-panel[hidden] {
	display: none;
}

.wm-filter-combobox-search {
	width: 100%;
	box-sizing: border-box;
}

.wm-filter-combobox-list {
	list-style: none;
	margin: 0;
	padding: 0 0 0.35rem;
	overflow-y: auto;
	display: grid;
	gap: 0.1rem;
	max-height: var(--wm-filter-combobox-list-max, 9.5rem);
	min-height: 0;
	overscroll-behavior: contain;
	box-sizing: border-box;
}

.wm-filter-combobox-option-label {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-size: 0.88rem;
	line-height: 1.35;
	cursor: pointer;
	padding: 0.28rem 0.25rem;
	border-radius: 6px;
}

.wm-filter-combobox-option-label:hover {
	background: color-mix(in srgb, var(--wm-accent) 8%, transparent);
}

.wm-filter-combobox-option-label input {
	margin: 0.12rem 0 0;
	flex-shrink: 0;
}

.wm-filter-combobox-option-text {
	min-width: 0;
}

.wm-filter-combobox-empty {
	padding: 0.35rem 0.25rem;
	font-size: 0.85rem;
	list-style: none;
}

.wm-filter-checkbox-group {
	display: grid;
	gap: 0.35rem;
}

.wm-filter-checkbox-legend {
	font-size: 0.88rem;
}

.wm-filter-checkbox,
.wm-timeline-filter-form label.wm-filter-checkbox {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.88rem;
	cursor: pointer;
}

.wm-filter-checkbox input {
	margin: 0;
}

.wm-filter-hint {
	margin: 0;
	font-size: 0.82rem;
}

.wm-menu-list {
	display: grid;
	gap: 0.2rem;
}

.wm-menu-item {
	display: grid;
	gap: 0.1rem;
	width: 100%;
	text-align: left;
	padding: 0.55rem 0.65rem;
	border: 0;
	border-radius: var(--wm-radius, 8px);
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.wm-menu-item:hover,
.wm-menu-item:focus-visible {
	background: color-mix(in srgb, var(--wm-accent) 10%, transparent);
}

.wm-menu-item-label {
	font-weight: 600;
	font-size: 0.9rem;
}

.wm-menu-item-hint {
	font-size: 0.82rem;
	line-height: 1.35;
}

.wm-chart-export-menu .wm-chart-export-range {
	display: grid;
	gap: 0.25rem;
	margin-bottom: 0.65rem;
}

.wm-chart-export-custom-dates {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem 0.65rem;
	margin-bottom: 0.65rem;
}

.wm-chart-export-custom-dates[hidden] {
	display: none;
}

.wm-timeline-export-menu {
	display: grid;
	gap: 0.35rem;
	min-width: min(18rem, 92vw);
}

.wm-timeline-export-filter-toggle {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.35rem 0.65rem 0.55rem;
	font-size: 0.86rem;
	line-height: 1.35;
	cursor: pointer;
	border-bottom: 1px solid var(--wm-line, #dcdcde);
	margin-bottom: 0.15rem;
}

.wm-timeline-export-filter-toggle input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.wm-timeline-export-more {
	margin-top: 0.15rem;
	border-top: 1px solid var(--wm-line, #dcdcde);
	padding-top: 0.15rem;
}

.wm-timeline-export-more > summary {
	padding: 0.45rem 0.65rem;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.wm-timeline-export-more > summary::-webkit-details-marker {
	display: none;
}

.wm-timeline-export-more > summary::before {
	content: '▸';
	display: inline-block;
	margin-right: 0.35rem;
	transition: transform 0.15s ease;
}

.wm-timeline-export-more[open] > summary::before {
	transform: rotate(90deg);
}

.wm-card {
	display: grid;
	gap: var(--wm-space-3, 0.85rem);
	padding: var(--wm-space-4, 1.15rem) var(--wm-space-4, 1.15rem) var(--wm-space-5, 1.5rem);
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: calc(var(--wm-radius, 8px) + 4px);
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.04);
	min-width: 0;
}

.wm-card-head {
	display: grid;
	gap: var(--wm-space-1, 0.35rem);
}

.wm-card-head-row {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem 1rem;
}

.wm-patient-record-head-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	justify-content: flex-end;
}

.wm-rpm-report-head-actions {
	align-items: flex-end;
}

.wm-rpm-report-month-label {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	margin: 0;
	font-size: 0.75rem;
}

.wm-rpm-report-month-label .wm-filter-label {
	font-weight: 600;
	color: var(--wm-muted, #5b6b75);
}

.wm-rpm-report-month {
	min-width: 9.5rem;
	min-height: 2.125rem;
	padding: 0.35rem 0.5rem;
}

/* Month fields: whole control opens the picker (not only the calendar icon). */
.wm-month-input-hit {
	display: inline-flex;
	align-items: center;
	position: relative;
	margin: 0;
	cursor: pointer;
}

.wm-month-input-hit .wm-month-input,
.wm-month-input-hit input[type='month'] {
	cursor: pointer;
	position: relative;
}

.wm-month-input-hit input[type='month']::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

.wm-monthly-review-month-hit {
	flex: 0 0 auto;
}

.wm-monthly-review-head-controls .wm-monthly-review-month-hit .wm-timeline-month-input,
.wm-monthly-review-head-tail .wm-monthly-review-month-hit .wm-timeline-month-input {
	width: 100%;
}

.wm-card-head-filters {
	padding: 0.65rem 1rem 0.75rem;
}

.wm-card-head-filters .wm-admin-filters {
	padding: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.wm-card-head-filters.wm-card-head-row {
	align-items: end;
}

.wm-card-head-filters.wm-card-head-row > .wm-card-hint {
	margin: 0;
	min-width: 0;
}

.wm-card-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.wm-card-hint {
	margin: 0;
	font-size: 0.88rem;
	color: var(--wm-muted, #5b6b75);
}

.wm-ui-note {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.5rem 0.75rem;
	align-items: start;
	margin: 0;
	padding: 0.7rem 0.9rem;
	border-radius: var(--wm-radius, 8px);
	border: 1px solid var(--wm-line, #dcdcde);
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.04);
}

.wm-card-head > .wm-ui-note {
	margin-top: 0.45rem;
}

.wm-card-head-filters .wm-ui-note {
	flex: 1 1 100%;
	min-width: min(100%, 28rem);
}

.wm-ui-note-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-top: 0.05rem;
	border-radius: 999px;
	color: var(--wm-accent);
	background: color-mix(in srgb, var(--wm-accent) 14%, var(--wm-panel, #fff));
}

.wm-ui-note-icon .wm-icon {
	display: block;
}

.wm-ui-note-title {
	margin: 0 0 0.3rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--wm-text, #1a2328);
}

.wm-ui-note-list {
	margin: 0;
	padding: 0 0 0 1.15rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--wm-muted, #5b6b75);
}

.wm-ui-note-list li {
	margin: 0.12rem 0;
}

.wm-ui-note-list li::marker {
	color: color-mix(in srgb, var(--wm-accent) 55%, var(--wm-muted, #5b6b75));
}

.wm-ui-note-text {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--wm-muted, #5b6b75);
}

.wm-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: flex-end;
}

.wm-empty {
	display: grid;
	justify-items: center;
	gap: 0.35rem;
	padding: 1.75rem 1rem;
	text-align: center;
	border: 1px dashed var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: color-mix(in srgb, var(--wm-panel, #fff) 96%, currentColor);
}

.wm-empty-title {
	margin: 0;
	font-weight: 600;
}

.wm-empty-text {
	margin: 0;
	font-size: 0.9rem;
	color: var(--wm-muted, #5b6b75);
	max-width: 32rem;
}

.wm-empty .wm-btn {
	margin-top: 0.5rem;
}

/* Dashed shells for “no data” / empty-list notices — compact height unless a panel shell */
.wm-empty-boundary {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	align-self: stretch;
	align-items: stretch;
	justify-content: flex-start;
	text-align: center;
	margin: var(--wm-empty-boundary-margin, 0);
	border: 1px dashed color-mix(in srgb, var(--wm-line, #dcdcde) 88%, transparent);
	border-radius: var(--wm-radius, 10px);
	background: color-mix(in srgb, var(--wm-panel-muted, #f3f4f6) 55%, var(--wm-panel, #fff));
}

/* Full-area placeholders: parent already provides outer padding */
.wm-patient-messages-inbox-body.wm-empty-boundary,
.wm-vitals-alerts-inbox-body.wm-empty-boundary,
.wm-clinician-rooms.wm-empty-boundary,
.wm-table-scroll-region.wm-empty-boundary,
.wm-patient-list.wm-empty-boundary {
	--wm-empty-boundary-margin: 0;
	flex: 1 1 auto;
	justify-content: center;
}

.wm-empty-boundary > .wm-empty,
.wm-empty-boundary > .wm-patient-messages-inbox-empty,
.wm-empty-boundary > .wm-vitals-alerts-inbox-empty,
.wm-empty-boundary .wm-patient-messages-inbox-list:only-child,
.wm-empty-boundary > .wm-muted.wm-patient-messages-inbox-loading,
.wm-empty-boundary > .wm-muted.wm-patient-messages-inbox-no-match,
.wm-empty-boundary > .wm-muted.wm-vitals-alerts-inbox-loading {
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.wm-empty-boundary > .wm-empty,
.wm-empty-boundary > .wm-patient-messages-inbox-empty,
.wm-empty-boundary > .wm-vitals-alerts-inbox-empty {
	display: grid;
	justify-items: center;
	align-content: center;
	text-align: center;
	border: none;
	background: transparent;
	border-radius: 0;
	padding: 1rem 0.5rem;
}

.wm-empty-boundary .wm-patient-messages-inbox-list {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 0;
	width: 100%;
}

.wm-empty-boundary .wm-patient-messages-inbox-list > .wm-empty,
.wm-empty-boundary .wm-patient-messages-inbox-list > .wm-patient-messages-inbox-empty {
	flex: 0 1 auto;
	width: 100%;
	border: none;
	background: transparent;
}

.wm-empty-boundary > .wm-muted.wm-patient-messages-inbox-loading,
.wm-empty-boundary > .wm-muted.wm-patient-messages-inbox-no-match {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 0.5rem;
}

.wm-table-scroll-region.wm-empty-boundary,
.wm-table-scroll-region > .wm-empty.wm-table-scroll-empty {
	min-height: var(--wm-table-scroll-min-height, 38rem);
}

.wm-table-scroll-region.wm-empty-boundary {
	padding: 0;
	border: none;
	background: transparent;
}

.wm-table-scroll-region > .wm-empty.wm-table-scroll-empty {
	width: auto;
	max-width: calc(100% - 1.5rem);
	margin: 0.65rem 0.75rem 0.75rem;
	align-self: stretch;
	border: 1px dashed color-mix(in srgb, var(--wm-line, #dcdcde) 88%, transparent);
	border-radius: var(--wm-radius, 10px);
	background: color-mix(in srgb, var(--wm-panel, #fff) 96%, currentColor);
}

.wm-snapshot-visit-card.is-empty {
	display: grid;
	justify-items: center;
	text-align: center;
}

.wm-snapshot-visit-card.is-empty > .wm-snapshot-empty {
	width: 100%;
	text-align: center;
}

/* Agenda lists: auto-fill card grid (active consultations). */
.wm-consult-app .wm-clinician-rooms {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
	gap: 0.75rem;
	width: 100%;
	min-width: 0;
	align-items: stretch;
}

.wm-consult-app .wm-clinician-appts-calendar {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
	min-width: 0;
}

.wm-consult-app .wm-clinician-rooms > .wm-empty {
	grid-column: 1 / -1;
}

.wm-appts-section-head,
.wm-active-consults-head {
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
}

.wm-active-consults-head > .wm-card-hint {
	margin: 0;
	min-width: 0;
}

.wm-active-consults-head > .wm-consult-control {
	justify-self: end;
	max-width: 100%;
}

.wm-active-consults-card.is-video-unavailable .wm-active-consults-head,
.wm-active-consults-card.is-video-unavailable .wm-clinician-rooms {
	display: none !important;
}

.wm-active-consults-unavailable {
	padding: 1rem 1.25rem 1.1rem;
}

.wm-active-consults-unavailable .wm-card-hint {
	margin: 0 0 0.35rem;
}

.wm-active-consults-unavailable .wm-muted {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
	max-width: 42rem;
}

.wm-agenda-home-split {
	display: grid;
	grid-template-columns: 40fr 26fr 34fr;
	gap: 1rem;
	align-items: stretch;
	--wm-agenda-home-panel-h: min(26rem, 72vh);
}

@media (max-width: 1200px) {
	.wm-agenda-home-split {
		grid-template-columns: 1fr;
	}
}

.wm-agenda-home-split > .wm-active-consults-card,
.wm-agenda-home-split > .wm-vitals-alerts-inbox-card,
.wm-agenda-home-split > .wm-patient-messages-inbox-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	margin: 0;
	min-height: 0;
}

.wm-agenda-home-split > .wm-active-consults-card,
.wm-agenda-home-split > .wm-vitals-alerts-inbox-card,
.wm-agenda-home-split > .wm-patient-messages-inbox-card {
	align-self: stretch;
	box-sizing: border-box;
	min-height: var(--wm-agenda-home-panel-h);
	height: var(--wm-agenda-home-panel-h);
	max-height: var(--wm-agenda-home-panel-h);
	padding: 0.6rem 0.7rem 0.45rem;
	gap: 0.3rem;
	overflow: hidden;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-active-consults-head,
.wm-agenda-home-split > .wm-vitals-alerts-inbox-card > .wm-vitals-alerts-inbox-head,
.wm-agenda-home-split > .wm-patient-messages-inbox-card > .wm-patient-messages-inbox-head {
	flex: 0 0 auto;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms,
.wm-agenda-home-split > .wm-vitals-alerts-inbox-card > .wm-vitals-alerts-inbox-body,
.wm-agenda-home-split > .wm-patient-messages-inbox-card > .wm-patient-messages-inbox-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	margin: 0;
	padding: 0.4rem 0.45rem;
	border-radius: var(--wm-radius, 10px);
	box-sizing: border-box;
	gap: 0.35rem;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms:not(.wm-empty-boundary),
.wm-agenda-home-split > .wm-vitals-alerts-inbox-card > .wm-vitals-alerts-inbox-body:not(.wm-empty-boundary),
.wm-agenda-home-split > .wm-patient-messages-inbox-card > .wm-patient-messages-inbox-body:not(.wm-empty-boundary) {
	border: none;
	background: transparent;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms.wm-empty-boundary,
.wm-agenda-home-split > .wm-vitals-alerts-inbox-card > .wm-vitals-alerts-inbox-body.wm-empty-boundary,
.wm-agenda-home-split > .wm-patient-messages-inbox-card > .wm-patient-messages-inbox-body.wm-empty-boundary {
	min-height: 0;
	margin: 0 0.45rem 0.45rem;
	padding: 0.65rem 0.7rem;
	flex: 1 1 auto;
	justify-content: center;
	border: 1px dashed color-mix(in srgb, var(--wm-line, #dcdcde) 88%, transparent);
	background: color-mix(in srgb, var(--wm-panel-muted, #f3f4f6) 55%, var(--wm-panel, #fff));
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	align-content: start;
	justify-items: stretch;
	grid-auto-rows: max-content;
	width: 100%;
	gap: 0.5rem;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms:not(.wm-empty-boundary) {
	flex: 1 1 auto;
	min-height: 0;
	padding: 0.45rem 0.5rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms.wm-empty-boundary {
	display: flex;
	flex-direction: column;
	flex: 0 1 auto;
	align-self: stretch;
	margin: 0.35rem 0 0;
	padding: 1rem 0.85rem;
	min-height: 9rem;
	max-height: none;
	grid-template-columns: unset;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms.wm-empty-boundary > .wm-empty {
	flex: 0 1 auto;
	min-height: 0;
	grid-column: auto;
	padding: 0.35rem 0.5rem;
}

.wm-agenda-panels-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	min-width: 0;
	align-items: start;
}

.wm-agenda-panels-shell {
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

@media (min-width: 1400px) {
	.wm-agenda-panels-row {
		--wm-agenda-schedule-min: 12.5rem;
		grid-template-columns: minmax(var(--wm-agenda-schedule-min), 35fr) minmax(0, 65fr);
		align-items: stretch;
		--wm-agenda-panels-body-min-h: clamp(38rem, 56vh, 48rem);
	}

	.wm-agenda-panels-row > .wm-agenda-cal-panel:not(.is-collapsed),
	.wm-agenda-panels-row > .wm-monthly-review-panel:not(.is-collapsed) {
		display: flex;
		flex-direction: column;
		min-height: 100%;
	}

	.wm-agenda-panels-row > .wm-agenda-cal-panel:not(.is-collapsed) > .wm-clinician-appts-calendar,
	.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-agenda-calendar-host,
	.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-agenda-cal-scroll,
	.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-agenda-cal-scroll-timeline {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-agenda-cal-scroll,
	.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-agenda-cal-scroll-timeline {
		min-height: var(--wm-agenda-panels-body-min-h);
		max-height: none;
	}

	.wm-agenda-panels-row > .wm-monthly-review-panel .wm-monthly-review-body,
	.wm-agenda-panels-row > .wm-monthly-review-panel .wm-monthly-review-table-section,
	.wm-agenda-panels-row > .wm-monthly-review-panel .wm-monthly-review-table-host,
	.wm-agenda-panels-row > .wm-monthly-review-panel .wm-monthly-review-table-scroll {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.wm-agenda-panels-row > .wm-monthly-review-panel .wm-monthly-review-table-scroll {
		min-height: var(--wm-agenda-panels-body-min-h);
		max-height: none;
	}
}

.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-clinician-appts-calendar,
.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-agenda-calendar-host,
.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-agenda-cal-scroll,
.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-agenda-cal-scroll-timeline,
.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-agenda-cal-grid,
.wm-agenda-panels-row > .wm-agenda-cal-panel .wm-agenda-cal-grid.is-week {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wm-agenda-panels-row > .wm-monthly-review-panel {
	overflow-x: clip;
	max-width: 100%;
	min-width: 0;
}

.wm-agenda-panels-row > .wm-agenda-cal-panel,
.wm-agenda-panels-row > .wm-monthly-review-panel {
	min-width: 0;
	width: 100%;
	margin-top: 0;
}

.wm-active-consults-card .wm-clinician-rooms:not(.wm-empty-boundary) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	justify-content: start;
}

@media (max-width: 520px) {
	.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms:not(.wm-empty-boundary),
	.wm-active-consults-card .wm-clinician-rooms:not(.wm-empty-boundary) {
		grid-template-columns: minmax(0, 1fr);
	}
}

.wm-consult-app .wm-clinician-rooms.wm-empty-boundary {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	grid-template-columns: unset;
}

.wm-active-consults-card .wm-clinician-rooms.wm-empty-boundary {
	width: 100%;
	max-width: 100%;
	align-self: stretch;
	border: 1px dashed color-mix(in srgb, var(--wm-line, #dcdcde) 88%, transparent);
	background: color-mix(in srgb, var(--wm-panel-muted, #f3f4f6) 55%, var(--wm-panel, #fff));
}

.wm-patient-messages-inbox-head {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.45rem;
	padding: 0;
	margin: 0;
}

.wm-patient-messages-inbox-head.wm-card-head {
	gap: 0.45rem;
}

.wm-card-title-row {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	min-width: 0;
}

.wm-card-title-row .wm-card-title {
	margin: 0;
}

.wm-info-help-btn {
	flex-shrink: 0;
	color: var(--wm-muted, #5b6b75);
}

.wm-info-help-btn:hover,
.wm-info-help-btn:focus-visible {
	color: var(--wm-accent, #7a1f2b);
}

.wm-info-help-btn .wm-icon {
	width: 17px;
	height: 17px;
}

.wm-popover.wm-info-help-popover {
	width: min(18.5rem, calc(100vw - 1.5rem));
	padding: 0.65rem 0.75rem 0.75rem;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.wm-info-help-panel .wm-info-help-title,
.wm-info-tip .wm-info-help-title {
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--wm-ink, #1a2332);
	line-height: 1.35;
}

.wm-info-help-panel .wm-info-help-text,
.wm-info-tip .wm-info-help-text {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--wm-muted, #5b6b75);
}

.wm-info-help-panel .wm-info-help-text + .wm-info-help-text,
.wm-info-tip .wm-info-help-text + .wm-info-help-text {
	margin-top: 0.45rem;
}

.wm-patient-messages-archive-range {
	width: auto;
	min-width: 5.5rem;
	max-width: 6.5rem;
	padding: 0.2rem 0.35rem;
	font-size: 0.75rem;
	line-height: 1.2;
}

.wm-patient-messages-inbox-head-actions .wm-patient-messages-archive-range {
	margin-right: 0.15rem;
}

.wm-patient-messages-inbox-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.2rem 0.5rem;
	min-width: 0;
}

.wm-patient-messages-inbox-title {
	flex: 1 1 12rem;
	min-width: 0;
}

.wm-patient-messages-inbox-title .wm-card-title {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.25;
}

.wm-patient-messages-inbox-title .wm-card-hint {
	margin: 0.12rem 0 0;
	font-size: 0.74rem;
	line-height: 1.3;
	max-width: 36rem;
}

.wm-agenda-home-split .wm-patient-messages-inbox-title .wm-card-hint {
	margin-top: 0.08rem;
}

.wm-patient-messages-inbox-head-actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
	margin-left: auto;
}

.wm-patient-messages-inbox-archive-toggle {
	max-width: 9.5rem;
	font-size: 0.72rem;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
}

.wm-patient-messages-inbox-card.is-archived-inbox .wm-patient-messages-inbox-item.is-unread {
	border-color: color-mix(in srgb, var(--wm-line, #d8dce3) 90%, transparent);
	background: var(--wm-panel, #fff);
}

.wm-patient-messages-inbox-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	margin: 0 0.75rem 0.65rem;
	padding: 0.4rem 0.45rem;
	border: none;
	border-radius: var(--wm-radius, 10px);
	background: transparent;
	gap: 0.35rem;
}

.wm-patient-messages-inbox-body.wm-empty-boundary,
.wm-vitals-alerts-inbox-body.wm-empty-boundary {
	min-height: 8.5rem;
	padding: 0.65rem 0.7rem;
}

.wm-agenda-home-split > .wm-patient-messages-inbox-card > .wm-patient-messages-inbox-body {
	flex: 1 1 auto;
	margin: 0;
	min-height: 0;
	overflow: hidden;
}

.wm-agenda-home-split > .wm-patient-messages-inbox-card > .wm-patient-messages-inbox-body.wm-empty-boundary {
	flex: 1 1 auto;
}

.wm-agenda-home-split .wm-patient-messages-inbox-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.wm-agenda-home-split .wm-patient-messages-inbox-thread {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.wm-agenda-home-split .wm-patient-messages-inbox-thread .wm-portal-chat.is-embedded {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	padding: 0;
	gap: 0;
}

.wm-patient-messages-inbox-thread .wm-portal-chat.is-embedded.is-light-surface .wm-portal-chat-head.wm-chat-head {
	padding: 0.28rem 0.4rem 0.28rem 0.45rem;
}

.wm-patient-messages-inbox-thread .wm-portal-chat.is-embedded.is-light-surface .wm-portal-chat-head h3 {
	font-size: 0.82rem;
	font-weight: 600;
}

.wm-patient-messages-inbox-thread .wm-portal-chat.is-embedded .wm-portal-chat-head-start {
	gap: 0.2rem;
}

.wm-patient-messages-inbox-thread .wm-portal-chat.is-embedded .wm-portal-chat-head-btn,
.wm-patient-messages-inbox-thread .wm-portal-chat.is-embedded .wm-portal-chat-head-text {
	padding: 0.1rem 0.35rem;
	font-size: 0.78rem;
}

.wm-patient-messages-inbox-thread .wm-portal-chat.is-embedded.is-light-surface .wm-chat-log {
	margin: 0.25rem 0.35rem 0;
	min-height: 3.5rem;
	max-height: none;
	flex: 1 1 auto;
}

.wm-patient-messages-inbox-thread .wm-portal-chat.is-embedded.is-light-surface .wm-portal-chat-form.wm-chat-form {
	padding: 0.3rem 0.35rem 0.35rem;
	gap: 0.25rem;
}

.wm-patient-messages-inbox-thread .wm-portal-chat.is-embedded.is-light-surface .wm-portal-chat-attach {
	width: 2rem;
	min-width: 2rem;
	height: 2rem;
}

.wm-patient-messages-inbox-head .wm-patient-messages-inbox-search-wrap {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
}

.wm-patient-messages-inbox-search {
	width: 100%;
	max-width: none;
	margin: 0;
	min-height: 2rem;
	font-size: 0.82rem;
	box-sizing: border-box;
}

.wm-patient-messages-inbox-status {
	margin: 0;
	font-size: 0.88rem;
}

.wm-patient-messages-inbox-list,
.wm-patient-messages-inbox-thread {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
}

.wm-patient-messages-inbox-list {
	overflow-y: auto;
	max-height: min(15rem, 38vh);
	-webkit-overflow-scrolling: touch;
}

.wm-patient-messages-inbox-thread .wm-portal-chat.is-embedded {
	margin: 0;
	max-height: min(20rem, 44vh);
}

.wm-patient-messages-inbox-empty {
	padding: 0.85rem 0.5rem;
	margin: 0;
}

.wm-patient-messages-inbox-empty .wm-empty-text {
	max-width: 28rem;
	margin-inline: auto;
}

.wm-patient-messages-inbox-loading,
.wm-patient-messages-inbox-no-match {
	margin: 0.5rem 0 0;
	padding: 0.25rem 0.15rem;
	font-size: 0.88rem;
	text-align: center;
}

.wm-patient-messages-inbox-items {
	list-style: none;
	margin: 0;
	padding: 0 0 0.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.wm-patient-messages-inbox-item-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.25rem;
	align-items: stretch;
	min-width: 0;
}

.wm-patient-messages-inbox-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.4rem 0.5rem;
	width: 100%;
	text-align: left;
	padding: 0.45rem 0.55rem;
	border: 1px solid color-mix(in srgb, var(--wm-line, #d8dce3) 90%, transparent);
	border-radius: 10px;
	background: var(--wm-panel, #fff);
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
	transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

/* Agenda home: RPM vitals alerts column */
.wm-vitals-alerts-inbox-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wm-vitals-alerts-inbox-head {
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem 0.5rem;
	padding: 0;
	margin: 0;
}

.wm-vitals-alerts-inbox-title {
	flex: 1 1 8rem;
	min-width: 0;
}

.wm-vitals-alerts-inbox-title .wm-card-title {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.25;
}

.wm-vitals-alerts-inbox-title .wm-card-hint {
	margin: 0.12rem 0 0;
	font-size: 0.74rem;
	line-height: 1.3;
}

.wm-agenda-home-split .wm-vitals-alerts-inbox-title .wm-card-hint {
	margin-top: 0.08rem;
}

.wm-vitals-alerts-inbox-head-actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
	margin-left: auto;
}

.wm-vitals-alerts-inbox-count {
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.15rem 0.5rem;
	background: var(--wm-danger, #9b2226);
	color: #fff;
	border: none;
}

.wm-vitals-alerts-inbox-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	margin: 0 0.75rem 0.65rem;
	padding: 0.4rem 0.45rem;
	border: none;
	border-radius: var(--wm-radius, 10px);
	background: transparent;
	gap: 0.35rem;
}

.wm-agenda-home-split > .wm-vitals-alerts-inbox-card > .wm-vitals-alerts-inbox-body {
	flex: 1 1 auto;
	margin: 0;
	min-height: 0;
	overflow: hidden;
}

.wm-agenda-home-split > .wm-vitals-alerts-inbox-card > .wm-vitals-alerts-inbox-body.wm-empty-boundary {
	flex: 1 1 auto;
}

.wm-vitals-alerts-inbox-list {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	overflow-anchor: none;
	scrollbar-gutter: stable;
}

.wm-agenda-home-split > .wm-vitals-alerts-inbox-card > .wm-vitals-alerts-inbox-body:not(.wm-empty-boundary) {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.wm-agenda-home-split .wm-vitals-alerts-inbox-list {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	overflow-anchor: none;
	scrollbar-gutter: stable;
	scroll-padding-bottom: 0.75rem;
	padding-bottom: 0.35rem;
	touch-action: pan-y;
}

.wm-vitals-alerts-inbox-empty {
	padding: 0.85rem 0.5rem;
	margin: 0;
}

.wm-vitals-alerts-inbox-empty .wm-empty-text {
	max-width: 18rem;
	margin-inline: auto;
	font-size: 0.82rem;
}

.wm-vitals-alerts-inbox-loading,
.wm-vitals-alerts-inbox-status {
	margin: 0.5rem 0 0;
	padding: 0.25rem 0.15rem;
	font-size: 0.88rem;
	text-align: center;
}

.wm-vitals-alerts-inbox-items {
	list-style: none;
	margin: 0;
	padding: 0 0 0.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.22rem;
}

.wm-vitals-alerts-inbox-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		'name status'
		'message message'
		'time ack';
	column-gap: 0.35rem;
	row-gap: 0;
	align-items: center;
	width: 100%;
	text-align: left;
	padding: 0.32rem 0.4rem;
	border: 1px solid color-mix(in srgb, var(--wm-line, #d8dce3) 90%, transparent);
	border-radius: 8px;
	background: var(--wm-panel, #fff);
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
	transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.wm-vitals-alerts-inbox-item.is-high {
	border-color: color-mix(in srgb, var(--wm-danger, #9b2226) 35%, var(--wm-line, #d8dce3));
}

.wm-vitals-alerts-inbox-item:hover {
	border-color: color-mix(in srgb, var(--wm-accent, #7a1f2b) 40%, var(--wm-line, #d8dce3));
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

/* Agenda column: keep card chrome static on hover so scroll-end pointer flicker does not animate borders. */
.wm-agenda-home-split .wm-vitals-alerts-inbox-items {
	padding-bottom: 0.85rem;
}

.wm-agenda-home-split .wm-vitals-alerts-inbox-item {
	transition: none;
}

.wm-agenda-home-split .wm-vitals-alerts-inbox-item:hover {
	border-color: color-mix(in srgb, var(--wm-line, #d8dce3) 90%, transparent);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
	background: var(--wm-panel, #fff);
}

.wm-agenda-home-split .wm-vitals-alerts-inbox-item.is-high:hover {
	border-color: color-mix(in srgb, var(--wm-danger, #9b2226) 35%, var(--wm-line, #d8dce3));
}

.wm-agenda-home-split .wm-vitals-alerts-inbox-list.is-user-scrolling .wm-vitals-alerts-inbox-ack:hover {
	color: var(--wm-accent, #7a1f2b);
}

.wm-vitals-alerts-inbox-item-name {
	grid-area: name;
	font-size: 0.78rem;
	font-weight: 600;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wm-vitals-alerts-inbox-item-head-end {
	grid-area: status;
	display: inline-flex;
	align-items: center;
	justify-self: end;
	align-self: center;
	flex-shrink: 0;
}

.wm-vitals-alerts-inbox-item-time {
	grid-area: time;
	min-width: 0;
	font-size: 0.65rem;
	line-height: 1.25;
	color: var(--wm-muted, #5b6b75);
	white-space: nowrap;
	justify-self: start;
	align-self: center;
}

.wm-vitals-alerts-inbox-item .wm-vitals-alerts-inbox-ack {
	grid-area: ack;
	justify-self: end;
	align-self: center;
}

.wm-vitals-alerts-inbox-severity {
	flex: 0 0 auto;
	font-size: 0.56rem;
	font-weight: 700;
	padding: 0.02rem 0.28rem;
	text-transform: lowercase;
	line-height: 1.2;
	letter-spacing: 0.01em;
	border: none;
	color: var(--wm-on-accent, #fff);
	background: var(--wm-danger, #9b2226);
}

.wm-vitals-alerts-inbox-severity.wm-pill-warn,
.wm-vitals-alerts-inbox-severity.wm-pill-danger {
	border: none;
	color: var(--wm-on-accent, #fff);
	background: var(--wm-danger, #9b2226);
}

.wm-vitals-alerts-inbox-message {
	grid-area: message;
	grid-column: 1 / -1;
	padding: 0.22rem 0;
	font-size: 0.72rem;
	line-height: 1.3;
	color: var(--wm-muted, #5b6b75);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wm-vitals-alerts-inbox-ack {
	appearance: none;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--wm-accent, #7a1f2b);
	cursor: pointer;
	line-height: 1;
	font: inherit;
	min-width: 0;
	min-height: 0;
	touch-action: manipulation;
}

.wm-vitals-alerts-inbox-ack .wm-icon {
	width: 16px;
	height: 16px;
}

.wm-vitals-alerts-inbox-ack .wm-icon path {
	stroke: currentColor;
	stroke-width: 0.65px;
	stroke-linejoin: round;
	paint-order: stroke fill;
}

.wm-vitals-alerts-inbox-ack:hover,
.wm-vitals-alerts-inbox-ack:focus-visible {
	color: color-mix(in srgb, var(--wm-accent, #7a1f2b) 82%, #000);
}

.wm-vitals-alerts-inbox-ack:focus-visible {
	outline: 2px solid var(--wm-accent, #7a1f2b);
	outline-offset: 1px;
}

.wm-patient-messages-inbox-item:hover {
	border-color: color-mix(in srgb, var(--wm-accent, #7a1f2b) 35%, var(--wm-line, #d8dce3));
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.wm-patient-messages-inbox-item.is-unread {
	border-color: color-mix(in srgb, var(--wm-accent, #7a1f2b) 42%, var(--wm-line, #d8dce3));
	background: color-mix(in srgb, var(--wm-accent, #7a1f2b) 4%, var(--wm-panel, #fff));
}

.wm-patient-messages-inbox-avatar {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--wm-accent, #7a1f2b);
	background: color-mix(in srgb, var(--wm-accent, #7a1f2b) 12%, var(--wm-panel, #fff));
	border: 1px solid color-mix(in srgb, var(--wm-accent, #7a1f2b) 22%, transparent);
}

.wm-patient-messages-inbox-item-main {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.wm-patient-messages-inbox-item-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	min-width: 0;
}

.wm-patient-messages-inbox-item-name {
	font-weight: 600;
	font-size: 0.86rem;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wm-patient-messages-inbox-item-preview {
	font-size: 0.8rem;
	color: var(--wm-muted, #5c6570);
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wm-patient-messages-inbox-item.is-unread .wm-patient-messages-inbox-item-preview {
	color: var(--wm-ink, #1a2a33);
	font-weight: 500;
}

.wm-patient-messages-inbox-item-time {
	flex: 0 0 auto;
	font-size: 0.72rem;
	color: var(--wm-muted, #5c6570);
	white-space: nowrap;
}

.wm-patient-messages-inbox-unread-mark {
	flex: 0 0 auto;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--wm-accent, #7a1f2b);
}

.wm-patient-messages-inbox-mark-read.wm-btn {
	flex-shrink: 0;
	align-self: center;
	margin: 0;
	padding: 0.2rem 0.35rem;
	min-height: 0;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wm-accent, #7a1f2b);
	white-space: nowrap;
}

.wm-patient-messages-inbox-mark-read.wm-btn .wm-icon {
	width: 14px;
	height: 14px;
}

.wm-patient-messages-inbox-mark-read.wm-btn:hover,
.wm-patient-messages-inbox-mark-read.wm-btn:focus-visible {
	color: color-mix(in srgb, var(--wm-accent, #7a1f2b) 82%, #000);
	background: color-mix(in srgb, var(--wm-accent, #7a1f2b) 8%, transparent);
}

/* Async patient messaging — same chrome as in-call chat, tuned for portal surfaces */
.wm-portal-chat-popover.wm-popover {
	width: auto;
	min-width: 0;
	max-width: none;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.wm-portal-chat-popover.wm-popover .wm-anchored-menu-inner {
	max-height: none;
	overflow: visible;
	padding: 0;
}

.wm-popover-wrap:has(.wm-portal-chat-popover) > .wm-popover-caret {
	display: none;
}

.wm-portal-chat-popover .wm-portal-chat.is-popover.is-light-surface {
	display: flex;
	flex-direction: column;
	width: min(22rem, calc(100vw - 1.5rem));
	min-height: min(32rem, 72vh);
	max-height: min(38rem, 80vh);
}

.wm-portal-chat-popover .wm-portal-chat.is-popover.is-light-surface .wm-chat-log {
	flex: 1 1 auto;
	min-height: min(24rem, 58vh);
	max-height: none;
}

.wm-portal-chat-popover .wm-portal-chat.is-light-surface .wm-portal-chat-head.wm-chat-head {
	padding: 0.32rem 0.4rem 0.32rem 0.5rem;
}

.wm-portal-chat-popover .wm-portal-chat.is-light-surface .wm-portal-chat-head-btn,
.wm-portal-chat-popover .wm-portal-chat.is-light-surface .wm-portal-chat-head-text {
	padding: 0.1rem 0.3rem;
}

.wm-portal-chat-popover .wm-portal-chat.is-light-surface .wm-portal-chat-attach,
.wm-portal-chat-popover .wm-portal-chat.is-light-surface .wm-chat-send {
	width: 1.85rem;
	min-width: 1.85rem;
	height: 1.85rem;
	min-height: 1.85rem;
}

.wm-portal-chat-popover .wm-portal-chat.is-light-surface .wm-portal-chat-input,
.wm-portal-chat-popover .wm-portal-chat.is-light-surface .wm-call-chat-input {
	min-height: 1.85rem !important;
	font-size: 0.82rem !important;
}

.wm-patient-profile-actions .wm-popover-wrap,
.wm-patient-profile-actions .wm-anchored-menu-wrap {
	overflow: visible;
}

.wm-portal-chat.wm-chat {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	z-index: auto;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0;
	width: 100%;
	min-width: 0;
	max-height: none;
	padding: 0.75rem 0.8rem 0.8rem;
	background: rgba(12, 16, 22, 0.96);
	color: #f4f6f8;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(10px);
}

.wm-portal-chat.is-light-surface {
	padding: 0;
	gap: 0;
	background: var(--wm-panel, #fff);
	color: var(--wm-ink, #1a2a33);
	border: 1px solid var(--wm-line, #dcdcde);
	backdrop-filter: none;
	overflow: hidden;
}

.wm-portal-chat.is-popover.is-light-surface {
	width: min(19.5rem, calc(100vw - 1.5rem));
	max-height: min(22rem, 62vh);
	border-radius: calc(var(--wm-radius, 8px) + 2px);
	box-shadow: 0 10px 28px rgba(15, 23, 32, 0.12);
}

.wm-portal-chat.is-dialog.is-light-surface {
	width: 100%;
	min-height: min(22rem, 58vh);
	max-height: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.wm-portal-chat.is-embedded.is-light-surface {
	border: none;
	border-radius: calc(var(--wm-radius, 8px) - 2px);
	box-shadow: none;
}

.wm-portal-chat.is-light-surface .wm-portal-chat-head.wm-chat-head {
	flex: 0 0 auto;
	padding: 0.4rem 0.45rem 0.4rem 0.6rem;
	background: color-mix(in srgb, var(--wm-panel-muted, #f3f4f6) 70%, var(--wm-panel, #fff));
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 85%, transparent);
}

.wm-portal-chat.is-light-surface .wm-portal-chat-head h3 {
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--wm-ink, #1a2a33);
}

.wm-portal-chat.is-light-surface .wm-portal-chat-head-btn,
.wm-portal-chat.is-light-surface .wm-portal-chat-head-text {
	color: var(--wm-muted, #646970);
}

.wm-portal-chat.is-light-surface .wm-portal-chat-head-btn:hover,
.wm-portal-chat.is-light-surface .wm-portal-chat-head-text:hover {
	color: var(--wm-ink, #1a2a33);
	background: color-mix(in srgb, var(--wm-ink, #1a2a33) 7%, transparent);
}

.wm-portal-chat.is-light-surface .wm-chat-log {
	flex: 1 1 auto;
	min-height: 5.75rem;
	max-height: min(11.5rem, 32vh);
	margin: 0.4rem 0.5rem 0;
	padding: 0.4rem 0.45rem;
	background: color-mix(in srgb, var(--wm-panel-muted, #f3f4f6) 45%, var(--wm-panel, #fff));
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 80%, transparent);
	border-radius: calc(var(--wm-radius, 8px) - 2px);
	color: var(--wm-ink, #1a2a33);
}

.wm-portal-chat.is-light-surface .wm-portal-chat-empty {
	font-size: 0.78rem;
	color: var(--wm-muted, #646970);
}

.wm-portal-chat.is-light-surface .wm-portal-chat-error {
	color: var(--wm-color-danger, #b91c1c);
	padding: 0 0.55rem;
}

.wm-portal-chat.is-light-surface .wm-portal-chat-pending {
	color: var(--wm-muted, #646970);
	padding: 0 0.55rem;
	font-size: 0.74rem;
}

.wm-portal-chat.is-light-surface .wm-portal-chat-msg.is-staff .wm-portal-chat-bubble {
	border-color: color-mix(in srgb, var(--wm-line, #dcdcde) 90%, transparent);
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.06);
}

.wm-portal-chat.is-light-surface .wm-portal-chat-msg.is-patient .wm-portal-chat-bubble {
	border-color: color-mix(in srgb, var(--wm-accent, #7a1f2b) 35%, transparent);
	background: color-mix(in srgb, var(--wm-accent, #7a1f2b) 12%, var(--wm-panel, #fff));
}

.wm-portal-chat.is-light-surface .wm-portal-chat-speaker,
.wm-portal-chat.is-light-surface .wm-portal-chat-time {
	color: var(--wm-muted, #646970);
}

.wm-portal-chat.is-light-surface .wm-portal-chat-msg.is-patient .wm-portal-chat-speaker {
	color: color-mix(in srgb, var(--wm-accent, #7a1f2b) 75%, var(--wm-ink, #1a2a33));
}

.wm-portal-chat.is-light-surface .wm-portal-chat-text {
	font-size: 0.84rem;
}

.wm-portal-chat.is-light-surface .wm-portal-chat-file-btn {
	color: var(--wm-accent, #7a1f2b);
	border-color: color-mix(in srgb, var(--wm-line, #dcdcde) 90%, transparent);
}

.wm-portal-chat.is-light-surface .wm-portal-chat-form.wm-chat-form {
	padding: 0.4rem 0.5rem 0.5rem;
	gap: 0.3rem;
}

.wm-portal-chat.is-light-surface .wm-portal-chat-attach {
	width: 2.15rem;
	min-width: 2.15rem;
	height: 2.15rem;
	min-height: 2.15rem;
	color: var(--wm-muted, #646970);
	border-color: color-mix(in srgb, var(--wm-line, #dcdcde) 90%, transparent);
	background: var(--wm-panel, #fff);
}

.wm-portal-chat.is-light-surface .wm-portal-chat-attach:hover {
	color: var(--wm-ink, #1a2a33);
	background: color-mix(in srgb, var(--wm-panel-muted, #f3f4f6) 80%, var(--wm-panel, #fff));
}

.wm-portal-chat.is-light-surface .wm-portal-chat-input,
.wm-portal-chat.is-light-surface .wm-call-chat-input {
	min-height: 2.15rem !important;
	padding: 0.35rem 0.7rem !important;
	font-size: 0.84rem !important;
}

.wm-portal-chat.is-light-surface .wm-chat-send {
	width: 2.15rem;
	min-width: 2.15rem;
	height: 2.15rem;
	min-height: 2.15rem;
}

.wm-portal-chat .wm-portal-chat-attach.wm-btn-icon,
.wm-portal-chat .wm-chat-send.wm-btn-icon {
	gap: 0;
	padding: 0 !important;
	line-height: 0;
	align-self: center;
}

.wm-portal-chat .wm-chat-send.wm-btn-icon .wm-icon {
	width: 17px;
	height: 17px;
	margin: 0;
	transform: translateX(1px);
}

.wm-portal-chat.is-embedded {
	margin: 0 0.65rem 0.85rem;
	max-height: min(22rem, 52vh);
}

.wm-portal-chat.is-dialog.is-light-surface .wm-chat-log {
	min-height: 11rem;
	max-height: min(20rem, 50vh);
}

.wm-form-dialog.wm-patient-messages-dialog {
	max-height: min(98vh, 68rem);
	min-height: min(90vh, 48rem);
}

.wm-form-dialog.wm-patient-messages-dialog .wm-form-dialog-head {
	padding: 0.55rem 0.75rem 0.5rem;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-form-dialog-title {
	font-size: 0.95rem;
	line-height: 1.3;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-form-dialog-close {
	min-width: 1.65rem;
	min-height: 1.65rem;
	padding: 0.1rem;
	font-size: 0.95rem;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-form-dialog-head-actions .wm-portal-chat-head-text.wm-has-icon {
	min-height: 1.65rem;
	padding: 0.12rem 0.42rem;
	font-size: 0.78rem;
	gap: 0.28rem;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-form-dialog-head-actions .wm-portal-chat-head-text.wm-has-icon .wm-icon {
	width: 15px;
	height: 15px;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-form-dialog-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: min(82vh, 44rem);
	background: var(--wm-panel, #fff);
	color: var(--wm-ink, #1a2a33);
	padding: 0.45rem 0.55rem 0.55rem;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-portal-chat.is-dialog.is-light-surface {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: min(78vh, 42rem);
}

.wm-form-dialog.wm-patient-messages-dialog .wm-portal-chat.is-dialog.is-light-surface .wm-chat-log {
	flex: 1 1 auto;
	min-height: min(62vh, 34rem);
	max-height: none;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-portal-chat.is-light-surface .wm-portal-chat-form.wm-chat-form {
	padding: 0.28rem 0.32rem 0.32rem;
	gap: 0.22rem;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-portal-chat.is-light-surface .wm-portal-chat-attach {
	width: 1.85rem;
	min-width: 1.85rem;
	height: 1.85rem;
	min-height: 1.85rem;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-portal-chat.is-light-surface .wm-chat-send {
	width: 1.85rem;
	min-width: 1.85rem;
	height: 1.85rem;
	min-height: 1.85rem;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-portal-chat .wm-chat-send.wm-btn-icon .wm-icon {
	width: 15px;
	height: 15px;
}

.wm-form-dialog.wm-patient-messages-dialog .wm-portal-chat.is-light-surface .wm-portal-chat-input,
.wm-form-dialog.wm-patient-messages-dialog .wm-portal-chat.is-light-surface .wm-call-chat-input {
	min-height: 1.85rem !important;
	padding: 0.26rem 0.5rem !important;
	font-size: 0.82rem !important;
}

.wm-portal-chat-head.wm-chat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-width: 0;
}

.wm-portal-chat-head-start {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	flex: 1;
}

.wm-portal-chat-head h3 {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 0.95rem;
	font-weight: 650;
	letter-spacing: 0.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wm-portal-chat-head-actions {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	flex-shrink: 0;
}

.wm-portal-chat-head-btn,
.wm-portal-chat-head-text {
	color: rgba(255, 255, 255, 0.78);
	min-height: 0;
	padding: 0.2rem 0.45rem;
	box-shadow: none;
}

.wm-portal-chat-head-btn:hover,
.wm-portal-chat-head-text:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.wm-portal-chat .wm-chat-log {
	flex: 1 1 auto;
	min-height: 8.5rem;
	max-height: min(18rem, 42vh);
	overflow-y: auto;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.wm-portal-chat-empty {
	margin: auto 0;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.62);
}

.wm-portal-chat-msg {
	display: flex;
	width: 100%;
}

.wm-portal-chat-msg.is-patient {
	justify-content: flex-end;
}

.wm-portal-chat-msg.is-staff {
	justify-content: flex-start;
}

.wm-portal-chat-bubble {
	display: grid;
	gap: 0.22rem;
	max-width: min(100%, 18rem);
	padding: 0.5rem 0.72rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.wm-portal-chat-msg.is-patient .wm-portal-chat-bubble {
	border-color: rgba(30, 136, 229, 0.55);
	background: linear-gradient(180deg, rgba(30, 136, 229, 0.95), rgba(25, 118, 210, 0.92));
}

.wm-portal-chat-msg.is-staff .wm-portal-chat-bubble {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.12);
}

.wm-portal-chat-speaker {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.wm-portal-chat-msg.is-patient .wm-portal-chat-speaker {
	color: rgba(255, 255, 255, 0.88);
}

.wm-portal-chat-time {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.55);
}

.wm-portal-chat-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

.wm-portal-chat-file {
	display: grid;
	gap: 0.35rem;
	margin-top: 0.15rem;
}

.wm-portal-chat-image {
	max-width: 100%;
	max-height: 9.5rem;
	border-radius: 8px;
	object-fit: contain;
	background: rgba(0, 0, 0, 0.2);
}

.wm-portal-chat-file-label {
	font-size: 0.85rem;
	font-weight: 600;
}

.wm-portal-chat-file-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.wm-portal-chat-file-btn {
	font-size: 0.78rem;
	padding: 0.15rem 0.45rem;
	color: rgba(255, 255, 255, 0.9);
	border-color: rgba(255, 255, 255, 0.22);
}

.wm-portal-chat-error {
	margin: 0;
	padding: 0 0.15rem;
	font-size: 0.82rem;
	color: #ffb4b4;
}

.wm-portal-chat-pending {
	margin: 0;
	padding: 0 0.15rem;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.72);
}

.wm-portal-chat-form.wm-chat-form {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex: 0 0 auto;
	min-width: 0;
}

.wm-portal-chat-attach {
	flex: 0 0 auto;
	width: 2.35rem;
	min-width: 2.35rem;
	height: 2.35rem;
	min-height: 2.35rem;
	padding: 0;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.88);
	border-color: rgba(255, 255, 255, 0.18);
}

.wm-portal-chat-attach:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.wm-portal-chat .wm-portal-chat-input,
.wm-portal-chat .wm-call-chat-input {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 2.5rem !important;
	padding: 0.5rem 0.85rem !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 999px !important;
	background: #e8eaed !important;
	background-color: #e8eaed !important;
	color: #111 !important;
	caret-color: #111 !important;
	box-shadow: none !important;
	-webkit-text-fill-color: #111 !important;
}

.wm-portal-chat .wm-portal-chat-input::placeholder,
.wm-portal-chat .wm-call-chat-input::placeholder {
	color: rgba(17, 17, 17, 0.5) !important;
	-webkit-text-fill-color: rgba(17, 17, 17, 0.5) !important;
	opacity: 1 !important;
}

.wm-portal-chat .wm-portal-chat-input:focus,
.wm-portal-chat .wm-portal-chat-input:focus-visible,
.wm-portal-chat .wm-call-chat-input:focus,
.wm-portal-chat .wm-call-chat-input:focus-visible {
	border-color: rgba(30, 136, 229, 0.75) !important;
	box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.22) !important;
	outline: none !important;
	background: #f2f4f6 !important;
	background-color: #f2f4f6 !important;
}

.wm-portal-chat .wm-chat-send {
	flex: 0 0 auto;
	width: 2.5rem;
	min-width: 2.5rem;
	height: 2.5rem;
	min-height: 2.5rem;
	padding: 0;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wm-portal-chat .wm-chat-send .wm-icon {
	margin: 0;
}

.wm-program-license-unavailable {
	padding: 1rem 0 0.5rem;
	max-width: 42rem;
}

.wm-program-license-unavailable .wm-card-hint {
	margin: 0 0 0.35rem;
}

.wm-program-license-unavailable .wm-muted {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
}

.wm-agenda-cal-panel.is-collapsed > .wm-clinician-appts-calendar {
	display: none !important;
}

.wm-appts-section-head .wm-agenda-cal-head-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
	width: 100%;
	grid-column: 1 / -1;
	box-sizing: border-box;
}

.wm-agenda-cal-head-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 0.35rem 0.5rem;
	width: 100%;
	min-width: 0;
}

.wm-agenda-cal-head-row > :not(.wm-agenda-cal-collapse-btn) {
	grid-column: 1;
	min-width: 0;
}

.wm-agenda-cal-head-row > .wm-agenda-cal-collapse-btn {
	grid-column: 2;
	grid-row: 1 / -1;
	align-self: start;
	justify-self: end;
}

.wm-agenda-cal-head-row > .wm-agenda-cal-head-tail {
	grid-column: 2;
	grid-row: 1 / -1;
	display: inline-flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	align-self: start;
	justify-self: end;
	flex-shrink: 0;
}

.wm-agenda-cal-head-tail .wm-agenda-cal-collapse-btn {
	grid-column: auto;
	grid-row: auto;
	align-self: center;
	justify-self: auto;
	flex-shrink: 0;
}

.wm-agenda-cal-panel.is-collapsed .wm-agenda-cal-head-expanded-only,
.wm-monthly-review-panel.is-collapsed .wm-agenda-cal-head-expanded-only {
	display: none;
}

.wm-agenda-cal-head-expanded-only {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	min-width: 0;
}

.wm-agenda-cal-collapse-btn {
	flex: 0 0 auto;
	min-width: 2.25rem;
	min-height: 2.25rem;
	margin: 0;
}

.wm-consult-app .wm-agenda-cal-collapse-btn.wm-btn-icon svg,
.wm-consult-app .wm-agenda-cal-collapse-btn.wm-btn-icon .wm-icon {
	display: block;
	width: 20px;
	height: 20px;
}

.wm-consult-app .wm-agenda-cal-collapse-btn.wm-btn-icon svg path {
	fill: currentColor;
}

.wm-agenda-cal-collapse-chevron {
	transition: transform 140ms ease;
}

.wm-agenda-cal-collapse-chevron.is-open {
	transform: rotate(180deg);
}

.wm-agenda-cal-panel .wm-agenda-cal-accent-control,
.wm-agenda-cal-panel .wm-agenda-cal-nav-arrow,
.wm-monthly-review-panel .wm-agenda-cal-accent-control {
	color: var(--wm-accent);
}

.wm-agenda-cal-panel .wm-agenda-cal-collapse-btn:hover,
.wm-agenda-cal-panel .wm-agenda-cal-collapse-btn:focus-visible,
.wm-agenda-cal-panel .wm-agenda-cal-collapse-btn:active,
.wm-agenda-cal-panel .wm-agenda-cal-nav-arrow:hover,
.wm-agenda-cal-panel .wm-agenda-cal-nav-arrow:focus-visible,
.wm-agenda-cal-panel .wm-agenda-cal-nav-arrow:active,
.wm-monthly-review-panel .wm-agenda-cal-collapse-btn:hover,
.wm-monthly-review-panel .wm-agenda-cal-collapse-btn:focus-visible,
.wm-monthly-review-panel .wm-agenda-cal-collapse-btn:active {
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	color: var(--wm-accent);
}

.wm-consult-app .wm-agenda-cal-panel .wm-agenda-cal-collapse-btn.wm-btn-quiet:hover,
.wm-consult-app .wm-agenda-cal-panel .wm-agenda-cal-collapse-btn.wm-btn-quiet:focus-visible,
.wm-consult-app .wm-agenda-cal-panel .wm-agenda-cal-nav-arrow.wm-btn-quiet:hover,
.wm-consult-app .wm-agenda-cal-panel .wm-agenda-cal-nav-arrow.wm-btn-quiet:focus-visible,
.wm-consult-app .wm-monthly-review-panel .wm-agenda-cal-collapse-btn.wm-btn-quiet:hover,
.wm-consult-app .wm-monthly-review-panel .wm-agenda-cal-collapse-btn.wm-btn-quiet:focus-visible {
	background: transparent;
	background-color: transparent;
	color: var(--wm-accent);
}

.wm-agenda-cal-head-expanded-only .wm-card-hint,
.wm-agenda-cal-head-expanded-only .wm-agenda-cal-head-hint {
	margin: 0;
	flex: 1 1 12rem;
}

.wm-agenda-cal-collapsed-summary {
	display: none;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.35rem 0.5rem;
	margin: 0;
	padding: 0.45rem 0.55rem;
	font-size: 0.8125rem;
	line-height: 1.3;
	color: var(--wm-text, inherit);
	background: color-mix(in srgb, var(--wm-panel, #fff) 92%, #000);
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
	border-radius: var(--wm-radius, 8px);
}

.wm-agenda-cal-panel.is-collapsed .wm-agenda-cal-head-row,
.wm-monthly-review-panel.is-collapsed .wm-agenda-cal-head-row {
	align-items: start;
	gap: 0.5rem;
}

.wm-agenda-cal-panel.is-collapsed .wm-agenda-cal-collapsed-summary,
.wm-monthly-review-panel.is-collapsed .wm-agenda-cal-collapsed-summary {
	display: grid;
	grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
	flex: 1 1 auto;
	min-width: 0;
	align-items: center;
	column-gap: 0.85rem;
	row-gap: 0.35rem;
}

.wm-agenda-cal-collapsed-lead {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.12rem;
	flex: 0 0 auto;
	min-width: 0;
	max-width: 11rem;
	align-self: center;
}

.wm-agenda-cal-collapsed-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0;
}

.wm-agenda-cal-collapsed-summary .wm-agenda-cal-collapsed-period {
	font-size: 0.78rem;
	line-height: 1.3;
	margin: 0;
}

.wm-agenda-cal-collapsed-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	flex: 1 1 auto;
	min-width: 0;
}

.wm-agenda-cal-status-stat {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 4.25rem;
	padding: 0.25rem 0.45rem;
	border-radius: calc(var(--wm-radius, 8px) - 2px);
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 75%, transparent);
	background: var(--wm-panel, #fff);
}

.wm-agenda-cal-status-stat-n {
	font-size: 1.05rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}

.wm-agenda-cal-status-stat-label {
	font-size: 0.72rem;
	color: var(--wm-muted, #5b6b75);
	text-align: center;
	line-height: 1.2;
}

.wm-agenda-cal-status-stat.is-in-progress .wm-agenda-cal-status-stat-n {
	color: color-mix(in srgb, var(--wm-accent) 85%, #000);
}

.wm-agenda-cal-status-stat.is-scheduled .wm-agenda-cal-status-stat-n {
	color: color-mix(in srgb, var(--wm-accent) 70%, #000);
}

.wm-appts-list-toolbar-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.65rem 1rem;
}

.wm-appts-list-toolbar-row > .wm-list-filter-toolbar {
	flex: 1 1 16rem;
	min-width: 0;
}

.wm-appts-portal-date-controls {
	display: inline-flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	width: max-content;
	max-width: 100%;
	min-width: 0;
}

.wm-portal-list-toolbar-host .wm-appts-portal-date-controls {
	--wm-appts-date-control-h: var(--wm-control-min, 2.75rem);
	align-items: center;
}

.wm-portal-list-toolbar-host .wm-appts-portal-date-controls input[type="month"].wm-timeline-month-input,
.wm-portal-list-toolbar-host .wm-appts-portal-date-controls select.wm-appts-advanced-preset {
	width: 13rem !important;
	max-width: 13rem !important;
	min-width: 13rem !important;
	height: var(--wm-appts-date-control-h) !important;
	min-height: var(--wm-appts-date-control-h) !important;
	max-height: var(--wm-appts-date-control-h);
	padding: 0 0.65rem;
	font-size: 0.875rem;
	line-height: 1.3;
	flex: 0 0 auto;
	box-sizing: border-box;
}

.wm-portal-list-toolbar-host .wm-appts-advanced-custom-dates .wm-invite-input {
	width: 9.5rem !important;
	max-width: 9.5rem !important;
	min-width: 9.5rem !important;
	height: var(--wm-appts-date-control-h) !important;
	min-height: var(--wm-appts-date-control-h) !important;
	max-height: var(--wm-appts-date-control-h);
	padding: 0 0.65rem;
	font-size: 0.875rem;
	line-height: 1.3;
	box-sizing: border-box;
}

.wm-appts-date-mode-toggle {
	flex: 0 0 auto;
}

.wm-portal-list-toolbar-host .wm-appts-date-mode-toggle.wm-agenda-cal-view-toggle {
	height: var(--wm-appts-date-control-h);
	padding: 0.125rem;
	box-sizing: border-box;
	align-items: stretch;
}

.wm-portal-list-toolbar-host .wm-appts-date-mode-toggle .wm-btn {
	min-height: 0 !important;
	height: auto;
	align-self: stretch;
	padding: 0 0.65rem;
	font-size: 0.875rem;
	line-height: 1.3;
	border-radius: calc(var(--wm-radius, 8px) - 2px);
}

.wm-appts-advanced-range-inline {
	display: inline-flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.wm-appts-advanced-range-inline[hidden] {
	display: none;
}

.wm-appts-advanced-preset {
	flex: 0 0 auto;
}

.wm-appts-advanced-custom-dates {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.wm-appts-advanced-custom-dates[hidden] {
	display: none;
}

.wm-agenda-cal-head-main .wm-appts-time-scope-toggle {
	margin-top: 0.15rem;
}

.wm-agenda-cal-view-toggle {
	display: inline-flex;
	gap: 0.25rem;
	padding: 0.15rem;
	border-radius: var(--wm-radius, 8px);
	background: color-mix(in srgb, var(--wm-panel, #fff) 92%, #000);
	border: 1px solid var(--wm-line, currentColor);
}

.wm-agenda-cal-view-toggle .wm-btn.wm-btn-quiet:not(.is-active) {
	color: var(--wm-btn-text-muted, var(--wm-muted, #5b6b75));
}

.wm-agenda-cal-view-toggle .wm-btn.wm-btn-quiet:not(.is-active):hover,
.wm-agenda-cal-view-toggle .wm-btn.wm-btn-quiet:not(.is-active):focus-visible {
	color: var(--wm-btn-text-accent, var(--wm-accent));
	background: color-mix(in srgb, var(--wm-btn-text-accent, var(--wm-accent)) 10%, transparent);
}

.wm-agenda-cal-view-toggle .wm-btn.is-active {
	background: var(--wm-accent);
	color: var(--wm-on-accent, #fff);
	border-color: transparent;
}

.wm-agenda-cal-nav {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}

.wm-agenda-cal-period {
	font-weight: 600;
	font-size: 0.95rem;
	min-width: 8rem;
	text-align: center;
}

.wm-agenda-calendar-host {
	min-width: 0;
}

.wm-agenda-cal-scroll {
	overflow: auto;
	max-height: min(70vh, 42rem);
	border: 1px solid var(--wm-line, currentColor);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
}

.wm-agenda-cal-scroll-timeline {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: min(70vh, 42rem);
	max-height: min(70vh, 42rem);
}

.wm-agenda-cal-scroll-timeline .wm-agenda-cal-grid.is-fit {
	flex: 1;
	min-height: 0;
	height: 100%;
}

.wm-agenda-cal-grid {
	--wm-agenda-time-col: 4.5rem;
	--wm-agenda-row-unit: 2.5rem;
	display: grid;
	grid-template-columns: var(--wm-agenda-time-col) 1fr;
	min-width: min(100%, 52rem);
	align-items: stretch;
}

.wm-agenda-cal-grid.is-week {
	min-width: min(100%, 64rem);
}

.wm-agenda-cal-grid.is-day .wm-agenda-cal-card-stack .wm-agenda-cal-card {
	flex: 1 1 100%;
	max-width: 100%;
}

.wm-agenda-cal-corner,
.wm-agenda-cal-day-head {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.45rem 0.35rem;
	text-align: center;
	border-bottom: 1px solid var(--wm-line, currentColor);
	background: color-mix(in srgb, var(--wm-panel, #fff) 94%, #000);
	position: sticky;
	top: 0;
	z-index: 3;
}

.wm-agenda-cal-day-head.is-today {
	color: var(--wm-accent);
}

.wm-agenda-cal-row-label {
	font-size: 0.7rem;
	color: var(--wm-muted, #646970);
	padding: 0.35rem 0.45rem 0 0;
	text-align: right;
	line-height: 1.2;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, currentColor) 35%, transparent);
	border-right: 1px solid var(--wm-line, currentColor);
	background: color-mix(in srgb, var(--wm-panel, #fff) 96%, #000);
	position: sticky;
	left: 0;
	z-index: 2;
	height: calc(var(--row-units, 1) * var(--wm-agenda-row-unit));
	min-height: calc(var(--row-units, 1) * var(--wm-agenda-row-unit));
	max-height: calc(var(--row-units, 1) * var(--wm-agenda-row-unit));
	overflow: hidden;
	box-sizing: border-box;
}

.wm-agenda-cal-grid.is-fit .wm-agenda-cal-row-label {
	position: static;
	height: auto;
	min-height: 0;
	max-height: none;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	padding-top: 0.2rem;
}

.wm-agenda-cal-row-label.is-now {
	position: relative;
	color: #c62828;
	font-weight: 700;
}

.wm-agenda-cal-row-label.is-now::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: #c62828;
	z-index: 2;
	pointer-events: none;
}

.wm-agenda-cal-slot-cell {
	height: calc(var(--row-units, 1) * var(--wm-agenda-row-unit));
	min-height: calc(var(--row-units, 1) * var(--wm-agenda-row-unit));
	max-height: calc(var(--row-units, 1) * var(--wm-agenda-row-unit));
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, currentColor) 35%, transparent);
	border-right: 1px solid color-mix(in srgb, var(--wm-line, currentColor) 50%, transparent);
	box-sizing: border-box;
	padding: 0.2rem;
	min-width: 0;
	overflow: hidden;
}

.wm-agenda-cal-grid.is-fit .wm-agenda-cal-slot-cell {
	height: auto;
	min-height: 0;
	max-height: none;
}

.wm-agenda-cal-slot-cell.is-today {
	background: transparent;
}

.wm-agenda-cal-slot-cell.is-now-row {
	position: relative;
}

.wm-agenda-cal-slot-cell.is-now-row::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: #c62828;
	z-index: 4;
	pointer-events: none;
}

.wm-agenda-cal-card-stack {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-content: stretch;
	align-items: stretch;
	gap: 0.35rem;
	height: 100%;
	min-height: calc(var(--row-units, 1) * var(--wm-agenda-row-unit) - 0.4rem);
}

.wm-agenda-cal-grid.is-fit .wm-agenda-cal-card-stack {
	min-height: 0;
	height: 100%;
	overflow: hidden;
}

.wm-agenda-cal-grid.is-fit .wm-agenda-cal-slot-cell.is-row-span {
	overflow: hidden;
}

.wm-agenda-cal-grid.is-fit .wm-agenda-cal-slot-cell.is-row-span .wm-agenda-cal-card-stack {
	align-items: stretch;
}

.wm-agenda-cal-grid.is-fit .wm-agenda-cal-slot-cell.is-row-span .wm-agenda-cal-card {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	max-height: 100%;
}

.wm-agenda-cal-cell-empty {
	display: block;
	min-height: calc(var(--row-units, 1) * var(--wm-agenda-row-unit) - 0.45rem);
}

.wm-agenda-cal-grid.is-fit .wm-agenda-cal-cell-empty {
	min-height: 0;
}

.wm-agenda-cal-card-stack .wm-agenda-cal-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.12rem;
	flex: 1 1 calc(50% - 0.2rem);
	min-width: 0;
	max-width: 100%;
	min-height: 2.15rem;
	padding: 0.35rem 0.45rem;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--wm-accent) 45%, transparent);
	border-radius: 6px;
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--wm-ink, #1a2a33) 8%, transparent);
	font: inherit;
	font-size: 0.72rem;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
}

.wm-agenda-cal-card-stack .wm-agenda-cal-card:hover {
	background: color-mix(in srgb, var(--wm-accent) 8%, var(--wm-panel, #fff));
}

.wm-agenda-cal-card-stack .wm-agenda-cal-card:only-child {
	flex: 1 1 100%;
}

.wm-agenda-cal-card-stack .wm-agenda-cal-card.is-cancelled,
.wm-agenda-cal-card-stack .wm-agenda-cal-card.is-no-show {
	opacity: 0.65;
	border-style: dashed;
}

.wm-agenda-cal-card-stack .wm-agenda-cal-card.is-in-progress {
	border-color: color-mix(in srgb, var(--wm-success, #2e7d32) 55%, transparent);
	background: color-mix(in srgb, var(--wm-success, #2e7d32) 10%, var(--wm-panel, #fff));
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--wm-success, #2e7d32) 25%, transparent);
}

.wm-agenda-cal-card-stack .wm-agenda-cal-card.is-completed {
	border-color: color-mix(in srgb, var(--wm-muted, #646970) 45%, transparent);
}

.wm-agenda-cal-card-headrow {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 0.35rem;
	width: 100%;
	min-width: 0;
}

.wm-agenda-cal-card-headrow .wm-agenda-cal-card-title {
	flex: 0 1 auto;
	max-width: 55%;
	min-width: 0;
}

.wm-agenda-cal-card-headrow .wm-agenda-cal-card-meta {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.wm-agenda-cal-grid.is-fit .wm-agenda-cal-card.is-compact {
	min-height: 0;
	padding: 0.22rem 0.4rem;
	gap: 0.06rem;
	justify-content: center;
}

.wm-agenda-cal-card-title {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
	line-height: 1.25;
}

.wm-agenda-cal-card-meta,
.wm-agenda-cal-card-dur {
	font-size: 0.68rem;
	font-weight: 500;
	color: var(--wm-muted, #646970);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
	line-height: 1.2;
}

.wm-agenda-cal-empty {
	margin: 0.5rem 0 0;
	text-align: center;
}

.wm-agenda-cal-scroll-month {
	max-height: none;
}

.wm-agenda-cal-month {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	min-width: min(100%, 52rem);
	border-top: 1px solid var(--wm-line, currentColor);
	border-left: 1px solid var(--wm-line, currentColor);
}

.wm-agenda-cal-month-dow {
	font-size: 0.7rem;
	font-weight: 600;
	text-align: center;
	padding: 0.4rem 0.25rem;
	border-right: 1px solid var(--wm-line, currentColor);
	border-bottom: 1px solid var(--wm-line, currentColor);
	background: color-mix(in srgb, var(--wm-panel, #fff) 94%, #000);
	color: var(--wm-muted, #646970);
}

.wm-agenda-cal-month-day {
	min-height: 5.25rem;
	padding: 0.3rem 0.35rem 0.35rem;
	border-right: 1px solid color-mix(in srgb, var(--wm-line, currentColor) 50%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, currentColor) 50%, transparent);
	background: var(--wm-panel, #fff);
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.wm-agenda-cal-month-day.is-other-month {
	background: color-mix(in srgb, var(--wm-muted, #646970) 5%, var(--wm-panel, #fff));
}

.wm-agenda-cal-month-day.is-today {
	background: color-mix(in srgb, var(--wm-accent) 5%, var(--wm-panel, #fff));
}

.wm-agenda-cal-month-day-num {
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
}

.wm-agenda-cal-month-day.is-other-month .wm-agenda-cal-month-day-num {
	color: var(--wm-muted, #646970);
	font-weight: 500;
}

.wm-agenda-cal-month-day.is-today .wm-agenda-cal-month-day-num {
	color: var(--wm-accent);
}

.wm-agenda-cal-month-events {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	flex: 1 1 auto;
}

.wm-agenda-cal-month-chip {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	width: 100%;
	padding: 0.15rem 0.3rem;
	border: none;
	border-radius: 4px;
	font: inherit;
	text-align: left;
	cursor: pointer;
	background: color-mix(in srgb, var(--wm-accent) 12%, var(--wm-panel, #fff));
	color: inherit;
	min-width: 0;
}

.wm-agenda-cal-month-chip:hover {
	background: color-mix(in srgb, var(--wm-accent) 20%, var(--wm-panel, #fff));
}

.wm-agenda-cal-month-chip.is-cancelled,
.wm-agenda-cal-month-chip.is-no-show {
	opacity: 0.65;
	text-decoration: line-through;
}

.wm-agenda-cal-month-chip.is-in-progress {
	background: color-mix(in srgb, var(--wm-accent) 22%, var(--wm-panel, #fff));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wm-accent) 35%, transparent);
}

.wm-agenda-cal-month-chip-time {
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 1.2;
}

.wm-agenda-cal-month-chip-title {
	font-size: 0.68rem;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}

.wm-agenda-cal-month-more {
	font-size: 0.65rem;
	padding: 0 0.2rem;
}

.wm-agenda-cal-detail-host .wm-appt-card {
	margin: 0;
}

.wm-form-dialog-body .wm-appt-card--dialog {
	margin: 0;
	border: none;
	box-shadow: none;
	padding: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	gap: 0.65rem;
}

.wm-form-dialog-body .wm-appt-card--dialog.is-active {
	border: none;
	box-shadow: none;
}

.wm-form-dialog-body .wm-appt-card--dialog .wm-appt-card-head--dialog {
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
}

.wm-form-dialog-body .wm-appt-card--dialog .wm-appt-card-head-primary {
	width: 100%;
	max-width: 100%;
}

.wm-form-dialog-body .wm-appt-card--dialog .wm-appt-card-head-primary .wm-appt-card-title {
	font-size: 1rem;
}

.wm-form-dialog-body .wm-appt-card--dialog .wm-appt-card-head .wm-appt-access--compact {
	width: 100%;
	max-width: 100%;
	margin-inline-start: 0;
	align-self: stretch;
}

.wm-form-dialog-body .wm-appt-card--dialog .wm-appt-access-compact-inner {
	max-width: 100%;
}

.wm-form-dialog-body .wm-appt-card--dialog .wm-card-side-actions,
.wm-form-dialog-body .wm-appt-card--dialog .wm-appt-card-actions {
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.wm-form-dialog-body .wm-appt-card--dialog .wm-appt-card-reason {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
}

.wm-form-dialog-body .wm-appt-card--dialog .wm-appt-card-meta,
.wm-form-dialog-body .wm-appt-card--dialog .wm-appt-card-contact {
	overflow-wrap: anywhere;
	min-width: 0;
}

.wm-consult-app .wm-appts-table-host .wm-appts-table-actions {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.35rem;
}

.wm-consult-app .wm-appts-table-host .wm-appts-table-actions {
	display: flex;
	justify-content: center;
}

.wm-consult-app .wm-appts-table-host .wm-appts-table-actions .wm-btn-icon {
	padding: 0.35rem;
	min-width: 2.125rem;
	min-height: 2.125rem;
}

.wm-consult-app .wm-appts-table-host .wm-appts-table-actions .wm-btn-icon.wm-has-icon {
	justify-content: center;
	gap: 0;
}

.wm-consult-app .wm-appts-table-host .wm-appts-table-actions .wm-btn-icon .wm-icon {
	display: block;
}

.wm-appts-table .wm-appts-col-when {
	min-width: 13.5rem;
	width: 16%;
	white-space: nowrap;
}

.wm-appts-table .wm-chart-col-wrap {
	min-width: 7rem;
	max-width: 14rem;
}

.wm-appts-table th:nth-child(3),
.wm-appts-table td:nth-child(3) {
	white-space: nowrap;
}

.wm-appts-table th:nth-child(6),
.wm-appts-table td:nth-child(6) {
	width: 1%;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.wm-clinician-section.wm-card > .wm-clinician-rooms {
	min-width: 0;
}

.wm-appt-card,
.wm-room-card {
	padding: 1rem 1.1rem;
	border: 1px solid var(--wm-line, currentColor);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--wm-ink, #1a2a33) 6%, transparent);
	box-sizing: border-box;
	min-width: 0;
}

.wm-appt-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.wm-room-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.wm-appt-card.is-active {
	border-color: color-mix(in srgb, var(--wm-accent) 55%, var(--wm-line, currentColor));
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--wm-accent) 18%, transparent);
}

.wm-appt-card-main {
	flex: 0 1 auto;
	width: 100%;
	min-width: 0;
}

.wm-appt-card > .wm-card-side-actions {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	max-width: none;
	margin-inline-start: 0;
	align-self: stretch;
}

.wm-appt-card-main,
.wm-room-card-main {
	display: grid;
	gap: 0.45rem;
	min-width: 0;
}

.wm-room-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.2rem 0.45rem;
	min-width: 0;
}

.wm-room-card-title {
	font-size: 0.98rem;
	line-height: 1.25;
	min-width: 0;
	overflow-wrap: anywhere;
}

.wm-room-card-meta {
	font-size: 0.7rem;
	line-height: 1.2;
	flex: 0 1 auto;
	max-width: 100%;
	text-align: end;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wm-appt-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.45rem;
	min-width: 0;
}

.wm-appt-card-head-primary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.4rem 0.5rem;
	flex: 1 1 auto;
	min-width: 0;
}

.wm-appt-card-head .wm-appt-card-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 650;
	line-height: 1.25;
	color: var(--wm-ink, inherit);
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.wm-appt-card-head-primary .wm-appt-status {
	flex: 0 0 auto;
}

.wm-appt-status {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.2;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 14%, transparent);
	color: var(--wm-ink, inherit);
}

.wm-appt-status.is-in-progress {
	background: color-mix(in srgb, var(--wm-accent) 16%, transparent);
	color: var(--wm-accent);
}

.wm-appt-status.is-scheduled {
	background: color-mix(in srgb, var(--wm-accent) 10%, transparent);
}

.wm-appt-status.is-completed {
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, transparent);
	color: var(--wm-muted, #5b6b75);
}

.wm-appt-status.is-cancelled,
.wm-appt-status.is-no-show {
	background: color-mix(in srgb, #b32d2e 10%, transparent);
	color: color-mix(in srgb, #b32d2e 85%, var(--wm-ink, #1a2a33));
}

.wm-appt-card.is-terminal {
	opacity: 0.92;
}

.wm-appt-access--compact.is-inactive .wm-appt-access-code-text,
.wm-appt-access-code-text.is-inactive {
	text-decoration: line-through;
	color: var(--wm-muted, #5b6b75);
}

.wm-appt-access--compact.is-inactive .wm-appt-access-compact-inner {
	border-style: dashed;
}

.wm-appts-section-head .wm-appts-filter-toggle {
	flex: 0 0 auto;
	white-space: nowrap;
}

.wm-appt-card-when .wm-appt-when-rel {
	font-weight: 550;
	color: var(--wm-muted, #5b6b75);
}

.wm-appt-card-meta {
	display: grid;
	gap: 0.2rem;
	font-size: 0.92rem;
	line-height: 1.45;
	min-width: 0;
}

.wm-appt-card-contact {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.wm-appt-card-when {
	font-weight: 550;
	color: var(--wm-ink, inherit);
}

.wm-appt-access {
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	margin: 0;
	margin-inline-start: auto;
}

.wm-appt-card-head .wm-appt-access--compact {
	align-self: center;
}

.wm-appt-access-compact-inner {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	width: auto;
	max-width: 100%;
	min-height: 1.65rem;
	padding: 0.2rem 0.28rem 0.2rem 0.52rem;
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 92%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 6%, var(--wm-panel, #fff));
}

.wm-appt-access-code-text {
	display: block;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.72rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: var(--wm-ink, inherit);
	white-space: nowrap;
	cursor: pointer;
	user-select: all;
}

.wm-appt-access--compact .wm-appt-access-copy {
	flex: 0 0 auto;
	min-width: 1.45rem;
	min-height: 1.45rem;
	width: 1.45rem;
	height: 1.45rem;
	margin: 0;
	padding: 0.12rem;
	border-radius: 999px;
}

.wm-appt-access--compact .wm-appt-access-copy.wm-has-icon {
	gap: 0;
	justify-content: center;
}

.wm-appt-access--compact .wm-appt-access-copy.wm-has-icon > svg,
.wm-appt-access--compact .wm-appt-access-copy.wm-has-icon > .wm-icon {
	width: 0.85rem;
	height: 0.85rem;
}

.wm-consult-app .wm-appt-access--compact .wm-appt-access-copy.wm-btn {
	min-height: 1.45rem;
	padding: 0.12rem;
}

.wm-appt-card-reason {
	width: 100%;
	margin: 0;
	padding: 0.65rem 0.85rem;
	border-radius: var(--wm-radius, 8px);
	border: 1px solid color-mix(in srgb, var(--wm-line, currentColor) 85%, transparent);
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 8%, var(--wm-panel, #fff));
	font-size: 0.92rem;
	line-height: 1.45;
}

.wm-card-side-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem;
	min-width: 16rem;
	align-content: start;
	margin: 0;
}

/*
 * Consultation actions share one visual system: pill height and padding match
 * the chart tab strip, the primary action spans the row, and the copy helpers
 * sit side by side underneath.
 */
.wm-card-side-actions .wm-btn {
	justify-content: center;
	width: 100%;
	white-space: nowrap;
	border-radius: 999px;
	min-height: 2.5rem;
	padding: 0.55rem 1.1rem;
	gap: 0.4rem;
}

.wm-card-side-actions .wm-btn.wm-has-icon {
	padding-inline: 0.75rem 0.95rem;
}

.wm-room-card > .wm-card-side-actions > .wm-btn:only-child,
.wm-room-card > .wm-card-side-actions > .wm-consult-control:only-child {
	grid-column: 1 / -1;
}

/* Agenda: two columns, equal-height cells (overrides room-card full-width primary). */
.wm-appt-card-actions {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	min-width: 0;
	max-width: none;
	gap: 0.4rem;
	align-items: stretch;
}

.wm-appt-card-actions > * {
	min-width: 0;
}

.wm-appt-card-actions > .wm-consult-control {
	display: flex;
	width: 100%;
}

.wm-appt-card-actions > :last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.wm-appt-card-actions .wm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	width: 100%;
	min-height: 2.5rem;
	height: 100%;
	padding: 0.45rem 0.65rem;
	font-size: 0.8125rem;
	line-height: 1.2;
	white-space: normal;
	text-align: center;
	box-sizing: border-box;
}

.wm-appt-card-actions .wm-btn.wm-has-icon {
	padding-inline: 0.55rem 0.65rem;
	gap: 0.35rem;
}

.wm-appt-card-actions .wm-btn.wm-has-icon > span {
	text-wrap: balance;
}

.wm-appt-card-actions .wm-appt-action-start {
	font-weight: 600;
}

.wm-room-card > .wm-card-side-actions,
.wm-room-card-actions {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	min-width: 0;
	max-width: none;
	justify-items: stretch;
}

.wm-room-card-actions > :last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.wm-room-card-actions .wm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.125rem;
	padding: 0.3rem 0.5rem;
	font-size: 0.75rem;
	white-space: nowrap;
	text-align: center;
}

.wm-card-side-actions > .wm-consult-control .wm-btn {
	width: 100%;
}

.wm-card-side-actions .wm-btn:only-child {
	grid-column: 1 / -1;
}


.wm-room-card.is-joined {
	border-color: var(--wm-accent, currentColor);
}

.wm-room-card.wm-room-card-appt {
	width: min(100%, 14rem);
	padding: 0.65rem 0.8rem;
	gap: 0.55rem;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms > .wm-room-card.wm-room-card-appt {
	width: min(100%, 14rem);
	max-width: 14rem;
	padding: 0.55rem 0.65rem;
	gap: 0.5rem;
}

.wm-room-card.wm-room-card-appt .wm-room-card-main {
	gap: 0.3rem;
}

.wm-room-card.wm-room-card-appt strong {
	font-size: 0.98rem;
	line-height: 1.25;
}

.wm-room-card.wm-room-card-appt .wm-room-card-appt-hint {
	font-size: 0.82rem;
	line-height: 1.35;
}

.wm-room-card.wm-room-card-appt > .wm-room-card-actions {
	width: 100%;
}

.wm-room-card.wm-room-card-appt > .wm-room-card-actions .wm-btn {
	min-height: 2.125rem;
	padding: 0.3rem 0.5rem;
	font-size: 0.75rem;
	width: 100%;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms > .wm-room-card {
	flex: 0 0 auto;
	align-self: start;
	width: 100%;
	max-width: none;
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	padding: 0.55rem 0.65rem;
	min-width: 0;
	box-sizing: border-box;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms > .wm-room-card > .wm-room-card-actions,
.wm-room-card > .wm-room-card-actions {
	min-width: 0;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms > .wm-room-card > .wm-room-card-main {
	flex: 0 1 auto;
	width: 100%;
	min-width: 0;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms > .wm-room-card > .wm-room-card-actions {
	flex: 0 0 auto;
	align-self: stretch;
	width: 100%;
	min-width: 0;
	margin-top: 0.1rem;
	gap: 0.35rem;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms > .wm-room-card > .wm-room-card-actions .wm-btn {
	min-height: 2rem;
	padding: 0.28rem 0.45rem;
	font-size: 0.72rem;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms > .wm-room-card > .wm-room-card-actions .wm-btn.wm-has-icon {
	padding-inline: 0.4rem 0.5rem;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms > .wm-room-card .wm-room-roster-label {
	margin-top: 0.2rem;
}

.wm-agenda-home-split > .wm-active-consults-card > .wm-clinician-rooms > .wm-room-card .wm-room-roster {
	font-size: 0.85rem;
}

.wm-room-roster-label {
	margin-top: 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	opacity: 0.72;
}

.wm-room-roster {
	margin: 0.15rem 0 0;
	padding-left: 1.1rem;
	font-size: 0.92rem;
}

.wm-room-roster li + li {
	margin-top: 0.12rem;
}

.wm-clinician-call {
	display: grid;
	gap: 0.85rem;
}

.wm-clinician-call[hidden],
.wm-clinician-lobby[hidden] {
	display: none !important;
}

.wm-call-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(20rem, 30vw, 28rem);
	gap: 0.85rem;
	align-items: stretch;
	min-height: 28rem;
}

.wm-stage {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	min-height: 0;
	position: relative;
}

.wm-call-patient {
	container-type: inline-size;
	container-name: call-chart;
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	min-height: 22rem;
	max-height: min(70vh, 46rem);
	overflow: hidden;
	margin: 0;
	padding: 0;
	background: var(--wm-panel, #fff);
}

/* In-call: lock the call shell to the viewport so the chart card cannot grow with tab content. */
.wm-consult-app.is-in-call {
	--wm-call-chrome-offset: 9.5rem;
}

.wm-consult-app.is-in-call .wm-clinician-call {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	height: calc(100dvh - var(--wm-call-chrome-offset, 9.5rem));
	max-height: calc(100dvh - var(--wm-call-chrome-offset, 9.5rem));
	min-height: 0;
	overflow: hidden;
}

.wm-consult-app.is-in-call .wm-clinician-call .wm-call-body {
	flex: 1 1 0;
	min-height: 0;
	overflow: hidden;
	grid-template-rows: minmax(0, 1fr);
	align-items: stretch;
	background: transparent;
}

.wm-consult-app.is-in-call .wm-call-body > * {
	min-height: 0;
	max-height: 100%;
}

.wm-consult-app.is-in-call .wm-call-body > .wm-call-patient {
	overflow: hidden;
}

.wm-consult-app.is-in-call .wm-clinician-call .wm-call-body > .wm-stage {
	height: 100%;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-self: stretch;
	border-radius: var(--wm-call-stage-radius, 10px);
}

.wm-consult-app.is-in-call .wm-clinician-call .wm-stage-grid {
	flex: 1 1 0;
	height: 100%;
	min-height: 0;
	gap: 0;
}

.wm-consult-app.is-in-call.wm-mode-simple .wm-clinician-call .wm-tile-patient {
	height: 100%;
	min-height: 0;
	border-radius: 0;
}

.wm-consult-app.is-in-call .wm-stage-grid > .wm-tile-patient > .wm-video {
	min-height: 0;
}

.wm-consult-app.is-in-call .wm-call-patient {
	height: 100%;
	max-height: 100%;
	min-height: 0;
	overflow: hidden;
	align-self: stretch;
}

/* In-call layout modes (wm-call-layout-side vs stack — set from client-platform.js). */

.wm-consult-app.is-in-call.wm-call-layout-stack .wm-call-body {
	grid-template-columns: 1fr;
	grid-template-rows: minmax(0, 5fr) minmax(0, 7fr);
	height: 100%;
	gap: 0.65rem;
	padding-bottom: env(safe-area-inset-bottom, 0);
	background: transparent;
}

.wm-consult-app.is-in-call.wm-call-layout-stack .wm-clinician-call .wm-stage {
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	border-radius: var(--wm-call-stage-radius, 10px);
	overflow: hidden;
	isolation: isolate;
}

.wm-consult-app.is-in-call.wm-call-layout-stack .wm-clinician-call .wm-stage-grid {
	flex: 1 1 0;
	min-height: 0;
	height: 100%;
	aspect-ratio: auto;
	gap: 0;
}

.wm-consult-app.is-in-call.wm-call-layout-stack.wm-mode-simple .wm-tile-patient {
	min-height: 0;
	height: 100%;
}

.wm-consult-app.is-in-call.wm-call-layout-side .wm-call-body {
	grid-template-columns: minmax(0, 1fr) clamp(14rem, 30vw, 26rem);
	grid-template-rows: minmax(0, 1fr);
	height: 100%;
	gap: 0.65rem;
}

.wm-consult-app.wm-platform-phone.is-in-call.wm-call-layout-side .wm-call-body {
	grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 38vw);
	gap: 0.45rem;
}

.wm-consult-app.wm-platform-tablet.is-in-call.wm-call-layout-side .wm-call-body {
	grid-template-columns: minmax(0, 1.05fr) clamp(15rem, 30vw, 22rem);
}

.wm-consult-app.is-in-call.wm-call-layout-side:not(.wm-platform-wide-call) .wm-stage {
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.wm-consult-app.is-in-call.wm-call-layout-side:not(.wm-platform-wide-call) .wm-stage-grid {
	flex: 1 1 0;
	min-height: 0;
	height: 100%;
	aspect-ratio: auto;
}

.wm-consult-app.is-in-call.wm-call-layout-stack .wm-clinician-call,
.wm-consult-app.is-in-call.wm-call-layout-stack.wm-platform-wide-call .wm-clinician-call {
	height: calc(100dvh - var(--wm-call-chrome-offset, 9.5rem));
	max-height: calc(100dvh - var(--wm-call-chrome-offset, 9.5rem));
	overflow: hidden;
}

.wm-call-patient-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex: 0 0 auto;
	position: relative;
	z-index: 6;
	padding: 0.75rem 0.8rem 0.65rem;
	background: var(--wm-panel, #fff);
	border-bottom: 1px solid color-mix(in srgb, var(--wm-border, #c9d0d8) 88%, transparent);
	box-shadow: 0 4px 14px color-mix(in srgb, #000 7%, transparent);
}

.wm-call-patient-head .wm-card-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wm-call-patient-timer {
	font-variant-numeric: tabular-nums;
	font-size: 0.85rem;
	line-height: 1;
	padding: 0.3rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wm-surface, #fff) 84%, var(--wm-muted-bg, #eef1f4));
	border: 1px solid color-mix(in srgb, var(--wm-border, #c9d0d8) 85%, transparent);
	color: var(--wm-text, #17202a);
	white-space: nowrap;
}

.wm-call-patient .wm-call-patient-create {
	flex: 0 0 auto;
	min-height: 0;
	overflow: visible;
	width: 100%;
	max-width: none;
	margin-top: 0;
	padding-right: 0;
}

.wm-call-patient.is-chart-empty {
	min-height: 0;
	max-height: none;
	align-self: start;
	padding: 0.65rem 0.75rem 0.7rem;
	gap: 0.4rem;
}

.wm-consult-app.is-in-call .wm-call-patient.is-chart-empty {
	height: auto;
	align-self: start;
}

.wm-call-patient .wm-call-patient-create-compact {
	margin-top: 0;
	gap: 0.3rem;
	max-width: none;
}

.wm-call-patient.is-chart-empty .wm-call-patient-create-compact.wm-ehr-form {
	margin-top: 0;
}

.wm-call-patient.is-chart-empty .wm-edit-field {
	gap: 0.12rem;
}

.wm-call-patient.is-chart-empty .wm-edit-label {
	font-size: 0.78rem;
	line-height: 1.2;
}

.wm-call-patient.is-chart-empty .wm-invite-input,
.wm-call-patient.is-chart-empty select.wm-invite-input {
	min-height: 2.15rem;
	padding: 0.32rem 0.5rem;
	font-size: 0.9rem;
}

.wm-call-patient-create-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.3rem 0.45rem;
}

.wm-call-patient-dob-sex-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.3rem 0.45rem;
}

.wm-call-patient-create-hint {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.3;
}

.wm-call-patient-empty-copy {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.35;
}

.wm-call-patient-empty-actions {
	margin-top: 0.45rem;
}

@media (max-width: 520px) {
	.wm-call-patient-create-grid,
	.wm-call-patient-dob-sex-fields {
		grid-template-columns: 1fr;
	}
}

.wm-call-patient .wm-call-patient-create .wm-patient-edit-actions {
	margin-top: 0.2rem;
}

.wm-call-patient .wm-chart-accordion {
	flex: 1 1 0;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
	padding: 0.5rem 0.8rem 0.85rem;
	isolation: isolate;
}

.wm-call-patient .wm-chart-expand {
	flex: 0 0 auto;
	min-height: 0;
	border: 1px solid color-mix(in srgb, var(--wm-border, #c9d0d8) 85%, transparent);
	border-radius: 0.55rem;
	background: color-mix(in srgb, var(--wm-surface, #fff) 92%, var(--wm-muted-bg, #eef1f4));
	overflow: hidden;
}

.wm-call-patient .wm-chart-expand.is-open {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	background: var(--wm-surface, #fff);
	border-color: color-mix(in srgb, var(--wm-accent) 28%, var(--wm-border, #c9d0d8));
}

.wm-call-patient .wm-chart-expand-bar {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
	min-width: 0;
	height: 2.5rem;
	min-height: 2.5rem;
	max-height: 2.5rem;
	padding: 0 0.25rem 0 0.15rem;
	box-sizing: border-box;
	flex: 0 0 auto;
	background: transparent;
	border-bottom: 1px solid transparent;
}

.wm-call-patient .wm-chart-expand:not(.is-open) .wm-chart-expand-bar {
	border-bottom: none;
}

.wm-call-patient .wm-chart-expand.is-open .wm-chart-expand-bar {
	background: var(--wm-surface, #fff);
	border-bottom-color: color-mix(in srgb, var(--wm-border, #c9d0d8) 75%, transparent);
}

.wm-call-patient .wm-chart-expand-toggle.wm-chart-expand-head,
.wm-call-patient .wm-chart-expand-chevron-btn,
.wm-call-patient .wm-chart-expand-tools .wm-btn {
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	-webkit-appearance: none;
	outline: none !important;
	box-shadow: none !important;
}

.wm-call-patient .wm-chart-expand-toggle.wm-chart-expand-head:focus,
.wm-call-patient .wm-chart-expand-toggle.wm-chart-expand-head:focus-visible,
.wm-call-patient .wm-chart-expand-toggle.wm-chart-expand-head:active,
.wm-call-patient .wm-chart-expand-chevron-btn:focus,
.wm-call-patient .wm-chart-expand-chevron-btn:focus-visible,
.wm-call-patient .wm-chart-expand-chevron-btn:active,
.wm-call-patient .wm-chart-expand-tools .wm-btn:focus,
.wm-call-patient .wm-chart-expand-tools .wm-btn:focus-visible,
.wm-call-patient .wm-chart-expand-tools .wm-btn:active {
	outline: none !important;
	box-shadow: none !important;
	border-color: transparent !important;
}

.wm-call-patient .wm-chart-expand-toggle.wm-chart-expand-head {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 0.35rem 0 0.45rem;
	border: 0 !important;
	background: transparent !important;
	color: inherit;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	border-radius: 0;
}

.wm-call-patient .wm-chart-expand-toggle:hover {
	background: transparent !important;
}

.wm-call-patient .wm-chart-expand-label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wm-call-patient .wm-chart-expand.is-open .wm-chart-expand-label {
	white-space: normal;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.wm-call-patient .wm-chart-expand-end {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.2rem;
	flex: 0 0 auto;
	height: 100%;
	margin-left: auto;
	min-width: 0;
}

.wm-call-patient .wm-chart-expand-tools {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.15rem;
	flex: 0 0 auto;
	height: 100%;
	min-width: 0;
	flex-wrap: nowrap;
}

.wm-call-patient .wm-chart-expand-tools[hidden] {
	display: none !important;
}

.wm-call-patient .wm-chart-expand-tools > .wm-popover-wrap,
.wm-call-patient .wm-chart-expand-tools > .wm-chart-select-actions {
	display: inline-flex;
	align-items: center;
	height: 100%;
}

.wm-call-patient .wm-chart-expand-tools .wm-btn {
	min-height: 1.5rem !important;
	height: 1.5rem !important;
	box-sizing: border-box;
	padding: 0 0.4rem !important;
	line-height: 1;
	margin: 0;
	font-size: 0.72rem;
	border: 0 !important;
	background-clip: padding-box;
}

.wm-call-patient .wm-chart-expand-tools .wm-btn-icon {
	width: 1.5rem !important;
	min-width: 1.5rem !important;
	padding: 0 !important;
	justify-content: center;
	background: transparent !important;
}

.wm-call-patient .wm-chart-expand-tools .wm-btn-icon .wm-icon {
	width: 14px;
	height: 14px;
}

.wm-call-patient .wm-chart-expand-tools .wm-btn-primary {
	padding: 0 0.45rem !important;
}

.wm-call-patient .wm-chart-expand-chevron-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.6rem;
	height: 1.6rem;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0.3rem;
	background: transparent !important;
	color: inherit;
	cursor: pointer;
}

.wm-call-patient .wm-chart-expand-chevron-btn:hover {
	background: color-mix(in srgb, var(--wm-accent) 6%, transparent) !important;
}

.wm-call-patient .wm-chart-expand-chevron {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	opacity: 0.7;
	transition: transform 0.18s ease;
}

.wm-call-patient .wm-chart-expand.is-open .wm-chart-expand-chevron {
	transform: rotate(180deg);
}

.wm-call-patient .wm-chart-expand-body {
	flex: 0 0 auto;
	min-height: 0;
	overflow: visible;
	padding: 0.45rem 0.65rem 0.65rem;
	border-top: 0;
	position: relative;
	background: var(--wm-surface, #fff);
}

/* Nested tables in-call: scroll inside the section when the list is long. */
.wm-call-patient .wm-chart-expand-body .wm-table-scroll-region,
.wm-call-patient .wm-chart-expand-body .wm-patient-table-wrap {
	max-height: min(36vh, 16rem);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.wm-call-patient .wm-chart-expand-body[hidden] {
	display: none !important;
}

.wm-call-patient .wm-chart-expand-body > .wm-section-head {
	align-items: center;
	margin: 0 0 0.55rem;
	gap: 0.5rem;
}

.wm-call-patient .wm-chart-expand-body > .wm-section-head.is-actions-only {
	display: none;
}

.wm-call-patient .wm-section-head-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
	flex: 0 0 auto;
	flex-wrap: wrap;
}

.wm-call-patient .wm-section-head-actions > .wm-popover-wrap,
.wm-call-patient .wm-section-head-actions > .wm-chart-select-actions {
	display: inline-flex;
	align-items: center;
	align-self: center;
}

.wm-call-patient .wm-section-head-actions .wm-btn {
	min-height: 2.25rem;
	height: 2.25rem;
	box-sizing: border-box;
	padding: 0 0.75rem;
	line-height: 1;
	margin: 0;
}

.wm-call-patient .wm-section-head-actions .wm-btn-icon {
	width: 2.25rem;
	min-width: 2.25rem;
	padding: 0;
	justify-content: center;
}

.wm-call-patient .wm-chart-select-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	height: 100%;
}

.wm-call-patient .wm-chart-select-actions .wm-btn {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent;
}

.wm-call-patient .wm-chart-select-actions .wm-btn:disabled {
	opacity: 0.32;
	cursor: not-allowed;
	color: inherit;
	background: transparent !important;
}

.wm-call-patient .wm-chart-select-actions .wm-btn-icon-edit:not(:disabled) {
	color: var(--wm-accent);
	background: transparent;
}

.wm-call-patient .wm-chart-select-actions .wm-btn-icon-edit:not(:disabled):hover {
	background: color-mix(in srgb, var(--wm-accent) 10%, transparent);
}

.wm-call-patient .wm-chart-select-actions .wm-btn-icon-danger:not(:disabled) {
	color: var(--wm-danger, #9b2226);
	background: transparent;
}

.wm-call-patient .wm-chart-select-actions .wm-btn-icon-danger:not(:disabled):hover {
	background: color-mix(in srgb, var(--wm-danger, #9b2226) 10%, transparent);
}

.wm-call-patient .wm-chart-select-actions .wm-btn-icon-warn:not(:disabled) {
	color: var(--wm-warning, #b45309);
	background: transparent;
}

.wm-call-patient .wm-chart-select-actions .wm-btn-icon-warn:not(:disabled):hover {
	background: color-mix(in srgb, var(--wm-warning, #b45309) 10%, transparent);
}

.wm-call-patient .wm-chart-table.is-selectable tbody tr.is-selectable {
	cursor: pointer;
}

.wm-call-patient .wm-chart-table.is-selectable tbody tr.is-selectable:hover td {
	background: color-mix(in srgb, var(--wm-accent) 7%, transparent);
}

.wm-call-patient .wm-chart-table.is-selectable tbody tr.is-selected td {
	background: color-mix(in srgb, var(--wm-accent) 14%, transparent);
}

.wm-call-patient .wm-chart-table.is-selectable tbody tr.is-selected:hover td {
	background: color-mix(in srgb, var(--wm-accent) 18%, transparent);
}

.wm-call-patient .wm-chart-expand-body .wm-section-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
}

.wm-call-patient .wm-chart-overview.is-call-compact {
	grid-template-columns: minmax(0, 1fr);
}

.wm-call-patient .wm-patient-meta {
	grid-template-columns: minmax(0, 1fr);
	gap: 0.15rem 0;
	margin-top: 0.35rem;
}

.wm-call-patient .wm-patient-meta dt {
	font-size: 0.78rem;
	font-weight: 600;
	margin-top: 0.5rem;
}

.wm-call-patient .wm-patient-meta dt:first-child {
	margin-top: 0;
}

.wm-call-patient .wm-patient-meta dd {
	margin: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.wm-call-patient .wm-clinician-section .wm-section-title {
	font-size: 0.92rem;
}

.wm-call-patient .wm-ehr-form.wm-patient-edit-form {
	max-width: none;
	margin-top: 0;
}

.wm-call-patient .wm-patient-edit-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

@container call-chart (max-width: 22rem) {
	.wm-call-patient .wm-chart-expand-tools .wm-btn.wm-has-icon:not(.wm-btn-icon) > span {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.wm-call-patient .wm-chart-expand-tools .wm-btn.wm-has-icon:not(.wm-btn-icon) {
		position: relative;
		min-width: 2rem !important;
		padding: 0 !important;
		justify-content: center;
	}
}

.wm-call-patient .wm-chart-notes {
	position: static;
	padding: 0;
	border: 0;
	background: transparent;
}

/* The in-call chart is already a dense panel — no well or card tint in there. */
.wm-call-patient .wm-note-list {
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
}

.wm-call-patient .wm-note,
.wm-call-patient .wm-note:nth-child(even) {
	background: var(--wm-panel, #fff);
	box-shadow: none;
}

.wm-call-patient .wm-note::before {
	display: none;
}

.wm-call-patient .wm-note.is-selectable {
	cursor: pointer;
}

.wm-call-patient .wm-note.is-selectable:hover {
	background: color-mix(in srgb, var(--wm-accent) 7%, var(--wm-panel, #fff));
}

.wm-call-patient .wm-note.is-selected {
	background: color-mix(in srgb, var(--wm-accent) 14%, var(--wm-panel, #fff));
	border-color: color-mix(in srgb, var(--wm-accent) 35%, var(--wm-line, #dcdcde));
}

.wm-call-patient .wm-patient-table-wrap {
	overflow-x: auto;
	max-width: 100%;
}

.wm-clinician-call .wm-chat {
	position: absolute;
	top: auto;
	right: 0.85rem;
	bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
	z-index: 7;
	width: min(20rem, calc(100% - 5.5rem));
	max-height: min(18rem, 40dvh);
	display: none;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0;
	padding: 0.75rem 0.8rem 0.8rem;
	background: rgba(12, 16, 22, 0.96);
	color: #f4f6f8;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(10px);
}

.wm-clinician-call .wm-stage-grid .wm-media-controls-overlay {
	bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

/* Chat as a right-side FAB, separate from the centered control island. */
.wm-clinician-call .wm-chat-fab {
	position: absolute;
	right: 0.85rem;
	bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
	z-index: 6;
	width: 3.25rem;
	height: 3.25rem;
	min-width: 3.25rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(28, 32, 38, 0.94);
	background-color: rgba(28, 32, 38, 0.94);
	color: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
	line-height: 0;
}

.wm-clinician-call .wm-chat-fab:hover {
	background: rgba(48, 54, 62, 0.96);
	background-color: rgba(48, 54, 62, 0.96);
	color: #fff;
}

.wm-clinician-call .wm-chat-fab.is-on {
	background: #1e88e5;
	background-color: #1e88e5;
	border-color: transparent;
	color: #fff;
}

.wm-clinician-call .wm-chat-fab svg {
	display: block;
	flex-shrink: 0;
	fill: currentColor;
	color: inherit;
}

.wm-chat-fab-toast {
	--wm-chat-toast-bg: rgba(12, 16, 22, 0.92);
	--wm-chat-toast-border: rgba(255, 255, 255, 0.16);
	position: absolute;
	right: 0.85rem;
	bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
	z-index: 7;
	box-sizing: border-box;
	max-width: min(16rem, calc(100% - 1.7rem));
	padding: 0.5rem 0.85rem;
	border-radius: 10px;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
	background: var(--wm-chat-toast-bg);
	border: 1px solid var(--wm-chat-toast-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(8px);
	pointer-events: none;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	overflow: hidden;
}

.wm-chat-fab-toast.is-message {
	font-weight: 400;
	text-align: left;
	border-radius: 12px;
	padding: 0.6rem 0.8rem 0.7rem;
	max-width: min(18rem, calc(100% - 1.7rem));
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.wm-chat-fab-toast.is-message::after {
	content: '';
	position: absolute;
	right: 1.05rem;
	bottom: -6px;
	width: 12px;
	height: 12px;
	background: var(--wm-chat-toast-bg);
	border-right: 1px solid var(--wm-chat-toast-border);
	border-bottom: 1px solid var(--wm-chat-toast-border);
	transform: rotate(45deg);
}

.wm-chat-fab-toast.is-success {
	--wm-chat-toast-border: rgba(120, 220, 160, 0.4);
}

.wm-chat-fab-toast.is-error {
	--wm-chat-toast-bg: rgba(72, 18, 18, 0.92);
	--wm-chat-toast-border: rgba(255, 120, 120, 0.45);
}

.wm-chat-fab-toast[hidden] {
	display: none !important;
}

.wm-portal-toast {
	position: fixed;
	top: calc(1rem + env(safe-area-inset-top, 0px));
	right: calc(1rem + env(safe-area-inset-right, 0px));
	left: auto;
	bottom: auto;
	z-index: 10050;
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	max-width: min(24rem, calc(100vw - 2rem));
	padding: 0.7rem 0.95rem;
	border-radius: var(--wm-radius, 10px);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wm-ink, #1a2a33);
	background: var(--wm-panel, #fff);
	border: 1px solid var(--wm-line, #dcdcde);
	box-shadow: 0 8px 24px color-mix(in srgb, #000 12%, transparent);
	pointer-events: none;
	text-align: left;
}

.wm-portal-toast-icon {
	display: flex;
	flex-shrink: 0;
	margin-top: 0.05rem;
	color: var(--wm-muted, #5b6b75);
}

.wm-portal-toast-icon .wm-icon {
	display: block;
}

.wm-portal-toast-text {
	flex: 1;
	min-width: 0;
}

.wm-portal-toast.is-info .wm-portal-toast-icon {
	color: var(--wm-accent);
}

.wm-portal-toast.is-success {
	border-color: color-mix(in srgb, var(--wm-success, #0f6b3a) 35%, var(--wm-line, #dcdcde));
	background: color-mix(in srgb, var(--wm-success, #0f6b3a) 8%, var(--wm-panel, #fff));
}

.wm-portal-toast.is-success .wm-portal-toast-icon {
	color: var(--wm-success, #0f6b3a);
}

.wm-portal-toast.is-error {
	border-color: color-mix(in srgb, var(--wm-danger, #9b2226) 35%, var(--wm-line, #dcdcde));
	background: color-mix(in srgb, var(--wm-danger, #9b2226) 7%, var(--wm-panel, #fff));
}

.wm-portal-toast.is-error .wm-portal-toast-icon {
	color: var(--wm-danger, #9b2226);
}

.wm-portal-toast[hidden] {
	display: none !important;
}

.wm-consult-app.is-in-call > .wm-clinician-shell > .wm-status-bar {
	display: none !important;
}

.wm-clinician-call .wm-call-more {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wm-camera-picker {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wm-camera-control {
	display: inline-flex;
	align-items: stretch;
	border-radius: 999px;
	overflow: visible;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(28, 32, 38, 0.92);
	box-shadow: none;
}

.wm-camera-control.is-off {
	border-color: transparent;
}

.wm-media-controls-overlay .wm-camera-control .wm-ctrl-btn,
.wm-consult-app .wm-media-controls-overlay .wm-camera-control .wm-ctrl-btn {
	min-width: 2.75rem;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0;
	border: 0;
	box-shadow: none;
}

.wm-media-controls-overlay .wm-camera-control .wm-camera-control-main,
.wm-consult-app .wm-media-controls-overlay .wm-camera-control .wm-camera-control-main {
	border-top-left-radius: 999px;
	border-bottom-left-radius: 999px;
	border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.wm-media-controls-overlay .wm-camera-control .wm-camera-control-menu,
.wm-consult-app .wm-media-controls-overlay .wm-camera-control .wm-camera-control-menu {
	border-top-right-radius: 999px;
	border-bottom-right-radius: 999px;
	min-width: 2.15rem;
	width: 2.15rem;
}

.wm-media-controls-overlay .wm-camera-control .wm-camera-control-menu svg,
.wm-consult-app .wm-media-controls-overlay .wm-camera-control .wm-camera-control-menu svg {
	width: 20px;
	height: 20px;
}

.wm-media-controls-overlay .wm-camera-control.is-off .wm-camera-control-main,
.wm-consult-app .wm-media-controls-overlay .wm-camera-control.is-off .wm-camera-control-main {
	background: #c62828;
	background-color: #c62828;
	color: #fff;
}

.wm-camera-control .wm-camera-picker-menu {
	left: auto;
	right: 0;
	transform: none;
}

.wm-camera-picker-menu {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 0.55rem);
	transform: translateX(-50%);
	z-index: 12;
	display: grid;
	gap: 0.2rem;
	min-width: 12rem;
	max-width: min(18rem, 92vw);
	max-height: min(14rem, 50vh);
	overflow-y: auto;
	padding: 0.4rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(12, 16, 22, 0.96);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
	color: #f4f6f8;
}

.wm-camera-picker-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	padding: 0.1rem 0.35rem 0.15rem 0.2rem;
}

.wm-camera-picker-title {
	margin: 0;
	padding: 0.15rem 0.35rem 0.2rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(244, 246, 248, 0.62);
	flex: 1;
	min-width: 0;
}

.wm-camera-picker-rescan {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.85rem;
	height: 1.85rem;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	background-color: transparent;
	color: rgba(244, 246, 248, 0.78);
	box-shadow: none;
}

.wm-camera-picker-rescan:hover,
.wm-camera-picker-rescan:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: #f4f6f8;
}

.wm-camera-picker-rescan.is-busy svg {
	animation: wm-camera-picker-spin 0.75s linear infinite;
}

@keyframes wm-camera-picker-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.wm-camera-picker-empty {
	margin: 0;
	padding: 0.35rem 0.55rem 0.5rem;
	font-size: 0.88rem;
	line-height: 1.35;
	color: rgba(244, 246, 248, 0.82);
}

.wm-btn.wm-camera-picker-item {
	justify-content: flex-start;
	width: 100%;
	min-height: 2.35rem;
	padding: 0.45rem 0.7rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	background-color: transparent;
	color: #f4f6f8;
	box-shadow: none;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wm-camera-picker-item:hover,
.wm-camera-picker-item:focus-visible {
	background: rgba(255, 255, 255, 0.08);
}

.wm-camera-picker-item.is-active {
	background: rgba(120, 170, 255, 0.18);
}

.wm-camera-picker-item.is-off {
	color: rgba(255, 180, 180, 0.95);
}

.wm-media-controls-overlay .wm-ctrl-btn.is-exam-active,
.wm-consult-app .wm-media-controls-overlay .wm-ctrl-btn.is-exam-active {
	border-color: transparent;
	background: #2e7d32;
	background-color: #2e7d32;
	color: #fff;
}

.wm-media-controls-overlay .wm-ctrl-btn.is-exam-active:hover,
.wm-consult-app .wm-media-controls-overlay .wm-ctrl-btn.is-exam-active:hover {
	background-color: #388e3c;
	color: #fff;
}

.wm-clinician-call .wm-call-more-menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 0.55rem);
	z-index: 8;
	display: grid;
	gap: 0.2rem;
	min-width: 11.5rem;
	padding: 0.4rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(12, 16, 22, 0.96);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
	color: #f4f6f8;
}

.wm-clinician-call .wm-call-more-menu[hidden] {
	display: none !important;
}

.wm-clinician-call .wm-call-more-item {
	justify-content: flex-start;
	width: 100%;
	min-height: 2.4rem;
	padding: 0.45rem 0.7rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	background-color: transparent;
	color: #f4f6f8;
	box-shadow: none;
}

.wm-clinician-call .wm-call-more-item:hover,
.wm-clinician-call .wm-call-more-item:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.wm-clinician-call .wm-call-more-code,
.wm-clinician-call .wm-call-more-empty {
	margin: 0.15rem 0.35rem 0.2rem;
	padding-top: 0.35rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.82rem;
	letter-spacing: 0.03em;
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}

/* Keep the self PiP in the top-right corner of the stage. */
.wm-consult-app.is-in-call.wm-mode-simple .wm-tile-self {
	top: 0.85rem;
	right: 0.85rem;
	bottom: auto;
}

.wm-consult-app.is-in-call .wm-clinician-call .wm-tile-self {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	isolation: isolate;
}

.wm-consult-app.is-in-call .wm-clinician-call .wm-tile-self > .wm-video,
.wm-consult-app.is-in-call .wm-clinician-call .wm-tile-self > .wm-video-avatar {
	border-radius: inherit;
}

.wm-clinician-call.is-chat-open .wm-chat {
	display: flex;
}

.wm-clinician-call .wm-chat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.wm-clinician-call .wm-chat-head h3 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 650;
	letter-spacing: 0.01em;
}

.wm-clinician-call .wm-chat-close {
	color: rgba(255, 255, 255, 0.78);
	border-color: transparent;
	background: transparent;
	background-color: transparent;
	min-height: 0;
	padding: 0.2rem 0.45rem;
	box-shadow: none;
}

.wm-clinician-call .wm-chat-close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	background-color: rgba(255, 255, 255, 0.08);
}

.wm-clinician-call .wm-chat-log {
	flex: 1 1 auto;
	min-height: 6rem;
	overflow-y: auto;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
}

.wm-clinician-call .wm-chat-form {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex: 0 0 auto;
	min-width: 0;
}

.wm-clinician-call .wm-chat-input,
.wm-clinician-call .wm-call-chat-input,
.wm-consult-app .wm-clinician-call .wm-chat-input,
.wm-consult-app .wm-clinician-call .wm-call-chat-input {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 2.5rem !important;
	padding: 0.5rem 0.75rem !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 999px !important;
	background: #d5d8dc !important;
	background-color: #d5d8dc !important;
	color: #111 !important;
	caret-color: #111 !important;
	box-shadow: none !important;
	-webkit-text-fill-color: #111 !important;
}

.wm-clinician-call .wm-chat-input::placeholder,
.wm-clinician-call .wm-call-chat-input::placeholder,
.wm-consult-app .wm-clinician-call .wm-chat-input::placeholder,
.wm-consult-app .wm-clinician-call .wm-call-chat-input::placeholder {
	color: rgba(17, 17, 17, 0.5) !important;
	-webkit-text-fill-color: rgba(17, 17, 17, 0.5) !important;
	opacity: 1 !important;
}

.wm-clinician-call .wm-chat-input:focus,
.wm-clinician-call .wm-chat-input:focus-visible,
.wm-clinician-call .wm-call-chat-input:focus,
.wm-clinician-call .wm-call-chat-input:focus-visible,
.wm-consult-app .wm-clinician-call .wm-chat-input:focus,
.wm-consult-app .wm-clinician-call .wm-chat-input:focus-visible,
.wm-consult-app .wm-clinician-call .wm-call-chat-input:focus,
.wm-consult-app .wm-clinician-call .wm-call-chat-input:focus-visible {
	border-color: rgba(30, 136, 229, 0.75) !important;
	box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.22) !important;
	outline: none !important;
	color: #111 !important;
	-webkit-text-fill-color: #111 !important;
	background: #e4e7ea !important;
	background-color: #e4e7ea !important;
}

.wm-clinician-call .wm-chat-send,
.wm-consult-app .wm-clinician-call .wm-chat-send {
	flex: 0 0 auto;
	width: 2.5rem;
	min-width: 2.5rem;
	height: 2.5rem;
	min-height: 2.5rem;
	padding: 0;
	border-radius: 999px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wm-clinician-call .wm-chat-send .wm-icon {
	margin: 0;
}

.wm-stage-grid {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	gap: 0.75rem;
	min-height: 22rem;
	position: relative;
	container-type: inline-size;
	container-name: wm-stage;
}

/* Clinician call stage: single rounded clip (do not paint wm-call-body — stack gap would show as a black bar). */
.wm-consult-app.is-in-call .wm-clinician-call .wm-stage {
	flex: 1 1 0;
	min-height: 0;
	background: #0b0f14;
	border-radius: var(--wm-call-stage-radius, 10px);
	overflow: hidden;
	isolation: isolate;
	contain: paint;
}

.wm-consult-app.is-in-call .wm-clinician-call .wm-stage-grid {
	gap: 0;
	min-height: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	flex: 1 1 0;
	border-radius: inherit;
	overflow: hidden;
	background: #000;
}

.wm-consult-app.is-in-call.wm-call-layout-side .wm-clinician-call .wm-call-body {
	gap: 0.65rem;
}

.wm-clinician-call .wm-mode-simple .wm-tile-patient {
	min-height: 0;
	height: 100%;
	width: 100%;
	border-radius: 0;
	box-shadow: none;
}

.wm-clinician-call .wm-mode-simple .wm-tile-patient > .wm-video {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.wm-clinician-call .wm-mode-simple .wm-tile-patient {
	overflow: hidden;
}

.wm-clinician-call .wm-tile {
	border-radius: 0;
	min-height: 0;
}

.wm-clinician-call .wm-mode-simple .wm-tile-self {
	border-radius: calc(var(--wm-radius, 10px) - 2px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wm-join-videos {
	position: absolute;
	inset: 0;
	display: block;
	margin: 0;
	min-height: 0;
	container-type: inline-size;
	container-name: wm-join-stage;
}

.wm-media-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	justify-content: center;
}

.wm-media-controls-overlay {
	position: absolute;
	left: 50%;
	bottom: 0.85rem;
	transform: translateX(-50%);
	z-index: 5;
	padding: 0.4rem 0.55rem;
	border-radius: 999px;
	background: #000;
	background-color: #000;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
	gap: 0.35rem;
}

.wm-join-call .wm-call-dock {
	position: absolute;
	left: 50%;
	bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	max-width: calc(100% - 1.5rem);
	pointer-events: none;
}

.wm-join-call .wm-call-dock > * {
	pointer-events: auto;
}

.wm-join-call .wm-call-dock .wm-media-controls-overlay {
	position: static;
	left: auto;
	bottom: auto;
	transform: none;
}

.wm-dx-island {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.28rem;
	border-radius: 999px;
	background: #000;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
}

.wm-dx-island .wm-ctrl-btn {
	min-width: 2.75rem;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	box-shadow: none;
}

.wm-dx-island .wm-ctrl-btn svg {
	display: block;
	fill: currentColor;
	color: inherit;
}

.wm-dx-island .wm-ctrl-btn:hover {
	background: rgba(255, 255, 255, 0.12);
}

.wm-dx-island .wm-ctrl-btn.is-on,
.wm-dx-island .wm-ctrl-btn.is-exam-active {
	background: #2e7d32;
	color: #fff;
}

.wm-dx-island .wm-ctrl-btn.is-on:hover,
.wm-dx-island .wm-ctrl-btn.is-exam-active:hover {
	background: #388e3c;
	color: #fff;
}

.wm-join-call .wm-media-controls-overlay {
	bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

.wm-media-controls-overlay .wm-ctrl-btn {
	min-width: 2.75rem;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(28, 32, 38, 0.92);
	background-color: rgba(28, 32, 38, 0.92);
	color: #fff;
	line-height: 0;
}

.wm-media-controls-overlay .wm-ctrl-btn svg {
	display: block;
	flex-shrink: 0;
	fill: currentColor;
	color: inherit;
}

.wm-media-controls-overlay .wm-ctrl-screenshot svg.wm-icon-screenshot {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
}

.wm-media-controls-overlay .wm-ctrl-screenshot svg.wm-icon-screenshot .wm-icon-fill {
	fill: currentColor;
	stroke: none;
}

.wm-media-controls-overlay .wm-ctrl-btn:hover {
	background: rgba(48, 54, 62, 0.95);
	background-color: rgba(48, 54, 62, 0.95);
	color: #fff;
}

.wm-media-controls-overlay .wm-ctrl-btn.is-off {
	background: #c62828;
	background-color: #c62828;
	border-color: transparent;
	color: #fff;
}

.wm-media-controls-overlay .wm-btn-danger {
	background: #c62828;
	background-color: #c62828;
	border-color: transparent;
	color: #fff;
}

.wm-mode-simple .wm-tile-exam {
	display: none;
}

.wm-mode-simple .wm-tile-patient {
	min-height: 22rem;
}

.wm-mode-simple .wm-tile-self {
	position: absolute;
	right: 0.75rem;
	top: 0.75rem;
	bottom: auto;
	width: min(180px, 32%);
	min-height: 110px;
	z-index: 2;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.wm-mode-full .wm-stage-grid {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr auto;
}

.wm-mode-full .wm-tile-exam {
	grid-row: 1 / span 2;
	display: block;
}

.wm-mode-full .wm-tile-self {
	position: static;
	width: auto;
	min-height: 140px;
	box-shadow: none;
}

/* Clinician exam mode — same PiP layout as the patient (exam fullscreen, face in corner). */
.wm-consult-app.is-in-call .wm-clinician-call.has-exam .wm-stage-grid {
	display: block;
	position: relative;
	flex: 1 1 0;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.wm-clinician-call.has-exam .wm-stage-grid {
	display: block;
	position: relative;
	min-height: 22rem;
}

.wm-clinician-call.has-exam .wm-tile-exam {
	display: block;
}

.wm-clinician-call.has-exam .wm-tile.is-feed-main {
	position: absolute;
	inset: 0;
	z-index: 1;
	min-height: 0;
	border-radius: 0;
}

.wm-clinician-call.has-exam .wm-tile.is-feed-main > .wm-label {
	display: none;
}

.wm-clinician-call.has-exam .wm-tile.is-feed-main .wm-tile-head {
	display: none;
}

.wm-clinician-call.has-exam .wm-tile.is-feed-main .wm-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	object-position: center center;
}

.wm-consult-app.is-in-call .wm-clinician-call.has-exam .wm-tile.is-feed-pip,
.wm-clinician-call.has-exam .wm-tile.is-feed-pip {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	left: auto;
	bottom: auto;
	width: min(11.5rem, 32vw);
	height: auto;
	min-height: 0;
	aspect-ratio: 3 / 4;
	z-index: 4;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	isolation: isolate;
}

.wm-clinician-call.has-exam .wm-tile.is-feed-pip .wm-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	border-radius: inherit;
}

.wm-consult-app.is-in-call .wm-clinician-call.has-exam .wm-tile-patient.is-feed-pip,
.wm-clinician-call.has-exam .wm-tile-patient.is-feed-pip {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	left: auto;
	bottom: auto;
	width: min(11.5rem, 32vw);
	height: auto;
	min-height: 0;
	aspect-ratio: 3 / 4;
	z-index: 4;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	isolation: isolate;
}

.wm-clinician-call.has-exam .wm-tile-patient.is-feed-pip .wm-video,
.wm-consult-app.is-in-call .wm-clinician-call.has-exam .wm-tile-patient.is-feed-pip .wm-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	border-radius: inherit;
}

.wm-consult-app.is-in-call .wm-clinician-call.has-exam .wm-tile-self {
	position: absolute;
	left: 0.85rem;
	bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
	top: auto;
	right: auto;
	width: min(9.5rem, 28vw);
	height: auto;
	min-height: 0;
	aspect-ratio: 3 / 4;
	z-index: 4;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.wm-clinician-call.has-exam .wm-tile-self {
	position: absolute;
	left: 0.85rem;
	bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
	top: auto;
	right: auto;
	width: min(9.5rem, 28vw);
	height: auto;
	min-height: 0;
	aspect-ratio: 3 / 4;
	z-index: 4;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.wm-clinician-call.has-exam .wm-media-controls-overlay {
	z-index: 5;
}

.wm-tile {
	position: relative;
	background: #111;
	border-radius: var(--wm-radius, 8px);
	overflow: hidden;
	min-height: 160px;
}

.wm-video-presence {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	z-index: 2;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	background: rgba(12, 16, 22, 0.82);
	color: #fff;
	font-size: 0.9rem;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.wm-join-call .wm-clinician-waiting {
	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%);
	max-width: min(18rem, calc(100% - 2rem));
	white-space: normal;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.65rem 1rem;
	background: rgba(12, 16, 22, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.wm-tile-patient.is-patient-absent .wm-video-avatar,
.wm-tile-patient.is-patient-absent .wm-tile-head {
	display: none !important;
}

.wm-tile-patient.is-patient-absent > .wm-video {
	opacity: 0;
	pointer-events: none;
}

/* Solo stage when the patient feed is gone — not a corner PiP. */
.wm-clinician-call .wm-tile-patient.is-patient-absent {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	min-height: 0;
	z-index: 1;
	border-radius: 0;
	box-shadow: none;
	aspect-ratio: auto !important;
}

.wm-clinician-call .wm-tile-patient.is-patient-absent.is-feed-pip {
	top: 0 !important;
	right: 0 !important;
	left: 0 !important;
	bottom: 0 !important;
}

.wm-tile-patient.is-patient-absent .wm-patient-waiting {
	top: 50%;
	bottom: auto;
	left: 50%;
	right: auto;
	width: min(22rem, calc(100% - 2rem));
	max-width: min(22rem, calc(100% - 2rem));
	transform: translate(-50%, -50%);
	white-space: normal;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-align: center;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	padding: 0.85rem 1.1rem;
	border-radius: 12px;
	background: rgba(12, 16, 22, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.wm-tile-patient.is-patient-left .wm-patient-waiting {
	border-color: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.88);
}

.wm-join-call:not(.is-connected) .wm-tile-remote.is-remote-absent .wm-tile-head,
.wm-join-call:not(.is-connected) .wm-tile-remote.is-remote-absent .wm-label,
.wm-join-call:not(.is-connected) .wm-tile-remote.is-remote-absent .wm-video,
.wm-join-call:not(.is-connected) .wm-tile-remote.is-remote-absent .wm-video-avatar {
	display: none !important;
}

.wm-join-call .wm-tile-remote.is-remote-absent .wm-clinician-waiting {
	top: 50%;
	bottom: auto;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: min(22rem, calc(100% - 2rem));
	white-space: normal;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	padding: 0.85rem 1.1rem;
	background: rgba(12, 16, 22, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.wm-join-call .wm-tile-remote.is-remote-left .wm-clinician-waiting {
	border-color: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.88);
}

.wm-chat,
.wm-booking,
.wm-join-lobby,
.wm-invite {
	background: var(--wm-panel, transparent);
	border: 1px solid var(--wm-line, currentColor);
	border-radius: var(--wm-radius, 8px);
	padding: var(--wm-space-4, 1.15rem) var(--wm-space-5, 1.5rem);
}

.wm-join-lobby {
	max-width: 34rem;
	margin: var(--wm-space-6, 2rem) auto;
	padding: var(--wm-space-5, 1.5rem) var(--wm-space-5, 1.5rem) var(--wm-space-5, 1.5rem);
	display: grid;
	gap: var(--wm-space-5, 1.5rem);
}

.wm-join-hero {
	display: grid;
	gap: var(--wm-space-3, 0.85rem);
}

.wm-join-preview[hidden] {
	display: none !important;
}

.wm-join-ended .wm-join-preview {
	display: none !important;
}

.wm-join-preview .wm-tile-preview {
	position: relative;
	min-height: 0;
	aspect-ratio: 4 / 3;
	border-radius: calc(var(--wm-radius, 8px) + 2px);
	background: #111;
}

.wm-join-preview .wm-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.wm-join-preview .wm-tile-preview.is-cam-off .wm-video {
	opacity: 0.15;
}

.wm-join-preview .wm-self-off {
	background: rgba(11, 15, 20, 0.45);
}

.wm-media-controls-bar {
	position: relative;
	left: auto;
	bottom: auto;
	transform: none;
	margin: 0.35rem auto 0;
	width: fit-content;
}

.wm-join-preview-gate {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: grid;
	place-content: center;
	align-content: center;
	justify-items: center;
	gap: 0.65rem;
	padding: 1rem;
	background: rgba(11, 15, 20, 0.62);
	color: #fff;
	text-align: center;
}

.wm-join-preview-gate[hidden] {
	display: none !important;
}

.wm-join-preview-msg {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
	max-width: 18rem;
}

.wm-join-brand {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
}

.wm-join-title {
	margin: 0;
	font-size: clamp(1.6rem, 4vw, 2rem);
	line-height: 1.15;
	font-weight: 700;
}

.wm-join-state {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	width: fit-content;
	margin: 0.15rem 0 0;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	border: 1px solid var(--wm-line, currentColor);
	background: color-mix(in srgb, var(--wm-panel, #fff) 88%, currentColor);
}

.wm-join-state::before {
	content: '';
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.55;
	flex: 0 0 auto;
}

.wm-join-state.is-waiting::before {
	background: #c98516;
	opacity: 1;
	animation: wm-pulse 1.4s ease-in-out infinite;
}

.wm-join-state.is-ready {
	border-color: var(--wm-success, #0f6b3a);
	color: var(--wm-success, #0f6b3a);
}

.wm-join-state.is-ready::before {
	background: var(--wm-success, #0f6b3a);
	opacity: 1;
}

.wm-join-state.is-error {
	border-color: var(--wm-danger, #9b2226);
	color: var(--wm-danger, #9b2226);
}

.wm-join-state.is-error::before {
	background: var(--wm-danger, #9b2226);
	opacity: 1;
}

.wm-join-state.is-loading::before {
	animation: wm-pulse 1.4s ease-in-out infinite;
}

.wm-join-state.is-ended {
	border-color: var(--wm-success, #0f6b3a);
	color: var(--wm-success, #0f6b3a);
}

.wm-join-state.is-ended::before {
	background: var(--wm-success, #0f6b3a);
	opacity: 1;
}

.wm-ended-panel {
	margin-top: 0.75rem;
	display: grid;
	gap: 0.85rem;
}

.wm-ended-panel[hidden] {
	display: none !important;
}

.wm-ended-message {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.5;
	color: var(--wm-muted, inherit);
	opacity: 0.95;
	max-width: 36rem;
}

.wm-ended-contact {
	padding: 0.9rem 1rem;
	border: 1px solid var(--wm-line, currentColor);
	border-radius: var(--wm-radius, 8px);
	background: color-mix(in srgb, var(--wm-panel, #fff) 94%, currentColor);
	display: grid;
	gap: 0.35rem;
}

.wm-ended-contact-intro {
	margin: 0;
	font-weight: 600;
}

.wm-ended-clinic {
	margin: 0;
	font-size: 0.95rem;
}

.wm-ended-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.15rem;
	margin-top: 0.2rem;
}

.wm-ended-link {
	font-weight: 600;
	color: var(--wm-accent, inherit);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.wm-ended-hours {
	margin: 0.2rem 0 0;
	font-size: 0.9rem;
}

.wm-ended-chat {
	display: grid;
	gap: 0.45rem;
	text-align: left;
}

.wm-ended-chat-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
}

.wm-ended-chat-log {
	max-height: 22rem;
	overflow: auto;
	display: grid;
	gap: 0.35rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--wm-line, currentColor);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, transparent);
}

.wm-chat-line.is-system {
	font-size: 0.8125rem;
	font-style: italic;
	color: rgba(255, 255, 255, 0.72);
	text-align: center;
	padding: 0.35rem 0.5rem;
	line-height: 1.35;
}

.wm-consult-app:not(.is-in-call) .wm-chat-line.is-system,
.wm-portal .wm-chat-line.is-system {
	color: var(--wm-muted, #646970);
}

.wm-ended-chat-log .wm-chat-line {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
}

.wm-visit-log-readonly {
	display: grid;
	gap: var(--wm-space-4, 1.15rem);
}

.wm-visit-log-meta {
	margin: 0;
	display: grid;
	gap: 0.45rem;
}

.wm-visit-log-meta-row {
	display: grid;
	grid-template-columns: minmax(5rem, 7rem) 1fr;
	gap: 0.65rem;
	align-items: baseline;
}

.wm-visit-log-meta dt {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wm-muted, #646970);
}

.wm-visit-log-meta dd {
	margin: 0;
	font-size: 0.95rem;
}

.wm-visit-chart-note-body {
	margin: 0.35rem 0 0;
	white-space: pre-wrap;
}

.wm-visit-chat-log .wm-section-title {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
}

.wm-btn-view-log {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.15rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
}

.wm-chart-table .wm-btn-view-log {
	min-height: 2rem;
	padding: 0.28rem 0.75rem;
}

.wm-saved-chat-log {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 0.85rem 0.9rem;
	max-height: 26rem;
	overflow: auto;
}

.wm-saved-chat-log.is-truncated {
	max-height: 9.5rem;
}

.wm-saved-chat-log.is-expanded {
	max-height: 26rem;
}

.wm-saved-chat-more {
	justify-self: start;
	margin-top: 0.15rem;
	min-height: 2rem;
	padding: 0.25rem 0.65rem;
	font-size: 0.8125rem;
}

.wm-visit-chat-log {
	display: grid;
	gap: 0.35rem;
}

.wm-saved-chat-msg {
	display: flex;
	width: 100%;
}

.wm-saved-chat-msg.is-system {
	justify-content: center;
}

.wm-saved-chat-system-pill {
	display: inline-block;
	max-width: 92%;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-style: italic;
	line-height: 1.35;
	text-align: center;
	color: var(--wm-muted, #646970);
	background: color-mix(in srgb, var(--wm-muted, #646970) 12%, transparent);
}

.wm-saved-chat-msg.is-staff {
	justify-content: flex-start;
}

.wm-saved-chat-msg.is-patient {
	justify-content: flex-end;
}

.wm-saved-chat-bubble {
	display: grid;
	gap: 0.2rem;
	max-width: min(100%, 34rem);
	padding: 0.55rem 0.75rem;
	border-radius: calc(var(--wm-radius, 8px) + 2px);
	border: 1px solid var(--wm-line, color-mix(in srgb, currentColor 16%, transparent));
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 0 color-mix(in srgb, currentColor 6%, transparent);
}

.wm-saved-chat-msg.is-staff .wm-saved-chat-bubble {
	border-color: color-mix(in srgb, var(--wm-accent) 28%, var(--wm-line, #ddd));
	background: color-mix(in srgb, var(--wm-accent) 9%, var(--wm-panel, #fff));
}

.wm-saved-chat-msg.is-patient .wm-saved-chat-bubble {
	border-color: color-mix(in srgb, var(--wm-muted, #646970) 22%, var(--wm-line, #ddd));
	background: color-mix(in srgb, var(--wm-muted, #646970) 7%, var(--wm-panel, #fff));
}

.wm-saved-chat-speaker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--wm-muted, #646970);
}

.wm-saved-chat-msg.is-staff .wm-saved-chat-speaker {
	color: color-mix(in srgb, var(--wm-accent) 82%, #000);
}

.wm-saved-chat-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

.wm-visit-summary {
	margin: 0 0 1rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--wm-line, currentColor);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, transparent);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

.wm-visit-summary-text {
	margin: 0;
	flex: 1 1 14rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--wm-ink, inherit);
}

.wm-visit-summary-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	flex: 0 0 auto;
}

.wm-visit-summary[hidden] {
	display: none !important;
}

.wm-form-dialog-overlay {
	position: fixed;
	inset: 0;
	z-index: 200020;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: color-mix(in srgb, #111 52%, transparent);
}

.wm-form-dialog {
	width: min(32rem, 100%);
	max-height: min(92vh, 44rem);
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	border: 1px solid var(--wm-line, #dcdcde);
	background: var(--wm-panel, #fff);
	color: inherit;
	box-shadow: 0 20px 56px rgba(15, 23, 32, 0.28);
	overflow: hidden;
}

.wm-form-dialog--sm {
	width: min(26rem, 100%);
	max-height: min(88vh, 32rem);
}

.wm-form-dialog--lg {
	width: min(44rem, 100%);
	max-height: min(94vh, 52rem);
}

.wm-form-dialog--xl {
	width: min(64rem, 100%);
	max-height: min(94vh, 56rem);
}

.wm-form-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.1rem 0.65rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 65%, transparent);
}

.wm-form-dialog-head-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	flex-shrink: 0;
}

.wm-form-dialog-title-block {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	min-width: 0;
	flex: 1 1 auto;
}

.wm-form-dialog-title-block .wm-form-dialog-title {
	flex: 0 1 auto;
	padding-right: 0;
}

.wm-form-dialog-title-block .wm-info-help-btn {
	flex-shrink: 0;
}

.wm-form-dialog-title-block .wm-info-tip-wrap {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: 0.15rem;
	color: var(--wm-muted, #5b6b75);
	line-height: 0;
	cursor: help;
}

.wm-form-dialog-title-block .wm-info-tip-wrap:hover {
	color: var(--wm-ink, #1a2332);
}

.wm-form-dialog-title-block .wm-info-tip-wrap .wm-icon {
	width: 15px;
	height: 15px;
	display: block;
}

.wm-info-tip {
	position: fixed;
	z-index: 200040;
	width: min(18rem, calc(100vw - 1.5rem));
	margin: 0;
	padding: 0.7rem 0.8rem 0.75rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: 10px;
	background: var(--wm-panel, #fff);
	color: var(--wm-ink, #1a2332);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
	text-align: left;
	pointer-events: auto;
}

.wm-info-tip[hidden] {
	display: none !important;
}

.wm-form-dialog-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	padding-right: 0.25rem;
	overflow-wrap: anywhere;
	min-width: 0;
}

.wm-form-dialog-close {
	flex: 0 0 auto;
	min-width: 2rem;
	min-height: 2rem;
	padding: 0.2rem;
	font-size: 1.1rem;
	line-height: 1;
}

.wm-form-dialog-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0.85rem 1.1rem 1rem;
	overscroll-behavior: contain;
}

.wm-form-dialog-body .wm-admin-form {
	padding: 0;
	max-width: none;
}

.wm-form-dialog-body .wm-patient-edit-scroll {
	min-height: 0;
}

.wm-form-dialog-body .wm-patient-edit-form.is-dialog-compact {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	max-width: none;
}

.wm-form-dialog-body .wm-edit-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.35rem 0.65rem;
	align-items: end;
}

.wm-form-dialog-body .wm-edit-form-row.is-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wm-form-dialog-body .wm-edit-form-row.is-full {
	grid-template-columns: minmax(0, 1fr);
}

.wm-form-dialog-body .wm-patient-edit-form.is-dialog-compact .wm-edit-hint {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.3;
}

.wm-form-dialog-body .wm-patient-edit-form.is-dialog-compact .wm-edit-group-title {
	margin: 0.15rem 0 0;
	padding-top: 0.35rem;
	font-size: 0.88rem;
}

.wm-form-dialog-body .wm-patient-edit-form.is-dialog-compact .wm-edit-field {
	gap: 0.12rem;
}

.wm-form-dialog-body .wm-patient-edit-form.is-dialog-compact .wm-edit-label {
	font-size: 0.78rem;
	line-height: 1.2;
}

.wm-form-dialog-body .wm-patient-edit-form.is-dialog-compact .wm-invite-input {
	padding-top: 0.32rem;
	padding-bottom: 0.32rem;
	font-size: 0.88rem;
}

.wm-form-dialog-body .wm-patient-edit-form.is-dialog-compact .wm-edit-check {
	align-items: center;
	min-height: 2.1rem;
}

@media (max-width: 36rem) {
	.wm-form-dialog-body .wm-edit-form-row.is-3 {
		grid-template-columns: 1fr;
	}
}

.wm-form-dialog-body textarea.wm-invite-input {
	max-height: min(38vh, 15rem);
	resize: vertical;
}

.wm-form-dialog-foot {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 0.65rem 1.1rem 1rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 65%, transparent);
	background: var(--wm-panel, #fff);
}

.wm-form-dialog-foot .wm-patient-edit-actions {
	margin: 0;
	flex: 1 1 auto;
	justify-content: flex-end;
}

.wm-form-dialog-foot:empty {
	display: none;
}

/* Fallback when actions could not be hoisted to the footer */
.wm-form-dialog-body .wm-patient-edit-actions {
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin-top: 0.75rem;
	padding: 0.65rem 0 0.15rem;
	background: linear-gradient(
		to top,
		var(--wm-panel, #fff) 78%,
		color-mix(in srgb, var(--wm-panel, #fff) 88%, transparent)
	);
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 55%, transparent);
}

body.wm-has-form-dialog {
	overflow: hidden;
}

.wm-end-dialog {
	position: fixed;
	inset: 0;
	z-index: 200010;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: color-mix(in srgb, #111 50%, transparent);
}

/* Above form dialogs (e.g. confirm while an appointment modal is open). */
.wm-confirm-dialog {
	z-index: 200030;
}

.wm-end-dialog-card {
	width: min(28rem, 100%);
	display: grid;
	gap: var(--wm-space-3, 0.85rem);
	padding: var(--wm-space-5, 1.5rem) var(--wm-space-5, 1.5rem);
	border-radius: 12px;
	background: var(--wm-panel, #fff);
	border: 1px solid var(--wm-line, currentColor);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
	color: inherit;
}

.wm-end-dialog-card h2 {
	margin: 0;
	font-size: 1.15rem;
}

.wm-end-dialog-card p {
	margin: 0;
	line-height: 1.45;
}

.wm-end-dialog .wm-actions {
	justify-content: flex-end;
}

.wm-join-ended .wm-join-actions {
	display: none;
}

@keyframes wm-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(0.7); opacity: 0.45; }
}

.wm-join-meta {
	display: grid;
	gap: var(--wm-space-1, 0.35rem);
	margin-top: 0.5rem;
	padding: var(--wm-space-3, 0.85rem) var(--wm-space-4, 1.15rem);
	border-radius: var(--wm-radius, 8px);
	border: 1px solid var(--wm-line, currentColor);
	background: color-mix(in srgb, var(--wm-panel, #fff) 94%, currentColor);
}

.wm-join-meta[hidden] {
	display: none !important;
}

.wm-join-meta-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	opacity: 0.65;
}

.wm-join-meta-value {
	font-size: 1.05rem;
	font-weight: 600;
}

.wm-join-hint {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	opacity: 0.85;
	color: var(--wm-muted, inherit);
}

.wm-join-actions {
	display: grid;
	gap: 0.75rem;
}

.wm-join-cta {
	width: 100%;
	padding: 0.75rem 1rem;
	text-align: center;
	font-weight: 600;
}

.wm-join-cta.is-waiting,
.wm-join-cta:disabled {
	opacity: 0.72;
	cursor: not-allowed;
}

.wm-join-status {
	margin: 0;
	font-size: 0.9rem;
}

.wm-join-lobby[hidden],
.wm-join-lobby.is-hidden {
	display: none !important;
}

.wm-join-contact-form[hidden],
.wm-join-contact-form.is-hidden {
	display: none !important;
}

.wm-join-call {
	position: relative;
	margin: 0;
	max-width: none;
	min-height: min(100dvh, 100vh);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #0b0f14;
	color: #f4f6f8;
	overflow: hidden;
}

/* Windowed call on desktop/laptop: wide stage instead of full viewport height. */
.wm-consult-join.is-in-call:not(.is-immersive) .wm-join-call:not([hidden]) {
	min-height: 0;
	width: min(72rem, 96vw);
	max-width: 96vw;
	margin: clamp(1rem, 3vh, 2.5rem) auto;
	border-radius: calc(var(--wm-radius, 8px) + 4px);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.wm-consult-join.is-in-call:not(.is-immersive) .wm-join-stage {
	min-height: 0;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.wm-consult-join.is-in-call:not(.is-immersive) .wm-join-videos {
	position: absolute;
	inset: 0;
	height: 100%;
	min-height: 0;
}

body.wm-consult-in-call .wm-join-call:not([hidden]) {
	position: fixed;
	inset: 0;
	z-index: 200000;
	width: 100%;
	height: 100%;
	min-height: 100dvh;
	margin: 0;
}

body.wm-consult-in-call .wm-join-stage,
body.wm-consult-in-call .wm-join-videos {
	height: 100%;
	min-height: 100%;
}

.wm-join-call[hidden] {
	display: none !important;
}

.wm-join-stage {
	position: relative;
	min-height: min(100dvh, 100vh);
	background: #0b0f14;
}

.wm-join-videos .wm-tile-remote {
	position: absolute;
	inset: 0;
	min-height: 0;
	border-radius: 0;
	background: #0b0f14;
}

.wm-join-videos .wm-tile-remote .wm-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
}

.wm-join-videos .wm-tile-self {
	position: absolute;
	left: 0.85rem;
	right: auto;
	top: auto;
	bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px) + 4.1rem);
	z-index: 4;
	width: min(11.5rem, 32vw);
	aspect-ratio: 3 / 4;
	min-height: 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	background: #1a222c;
}

.wm-join-videos .wm-tile-self .wm-video {
	height: 100%;
	min-height: 0;
}

.wm-join-videos .wm-stetho-pip {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	left: auto;
	bottom: auto;
	z-index: 6;
	width: min(18.5rem, calc(100% - 1.7rem));
	max-height: min(72%, 32rem);
	overflow: auto;
	padding: 0.7rem 0.8rem 0.85rem;
	border-radius: 12px;
	background: var(--wm-surface, #fff);
	color: var(--wm-ink, #1c2430);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.wm-join-videos .wm-stetho-pip[hidden] {
	display: none !important;
}

.wm-join-call.has-exam .wm-stetho-pip {
	top: auto;
	bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px) + 7.6rem);
}

.wm-stetho-pip-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0 0 0.55rem;
}

.wm-stetho-pip-title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.2;
}

.wm-stetho-pip-hide {
	min-height: 2rem;
	padding: 0.2rem 0.65rem;
}

.wm-join-videos .wm-tile-exam {
	position: absolute;
	left: 0.85rem;
	top: 0.85rem;
	bottom: auto;
	z-index: 4;
	width: min(14rem, 38vw);
	aspect-ratio: 4 / 3;
	min-height: 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	background: #10161d;
}

.wm-join-videos .wm-tile-exam .wm-video {
	height: 100%;
	min-height: 0;
	object-fit: cover;
}

/* Examination camera mode: USB feed is main; patient face stays in the corner card. */
.wm-join-call.has-exam .wm-tile-exam {
	inset: 0;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: auto;
	height: auto;
	aspect-ratio: auto;
	z-index: 1;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.wm-join-call.has-exam .wm-tile-exam .wm-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.wm-join-call.has-exam .wm-tile-exam .wm-label {
	display: none;
}

.wm-join-call.has-exam .wm-tile-self {
	z-index: 4;
}

.wm-join-call.has-exam.is-connected .wm-tile-remote {
	inset: auto;
	top: 0.85rem;
	right: 0.85rem;
	left: auto;
	bottom: auto;
	width: min(11.5rem, 32vw);
	height: auto;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	z-index: 4;
	pointer-events: auto;
	background: #1a222c;
}

.wm-join-call.has-exam.is-connected .wm-tile-remote .wm-video {
	position: absolute;
	inset: 0;
}

.wm-join-call.has-exam.is-connected .wm-tile-remote .wm-tile-head {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
}

.wm-join-call.has-exam .wm-clinician-waiting {
	z-index: 3;
}

.wm-join-call.has-exam.has-local-preview:not(.is-connected) .wm-tile-self {
	inset: auto;
	left: 0.85rem;
	right: auto;
	top: auto;
	bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px) + 4.1rem);
	width: min(11.5rem, 32vw);
	height: auto;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	z-index: 4;
}

.wm-join-call.has-exam.has-local-preview:not(.is-connected) .wm-tile-self .wm-video {
	position: relative;
	inset: auto;
	width: 100%;
	height: 100%;
}

.wm-join-call.has-exam .wm-join-videos .wm-tile-self {
	bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px) + 4.1rem);
}

.wm-join-videos .wm-tile-self.is-cam-off .wm-video {
	opacity: 0.15;
}

.wm-join-call.has-local-preview:not(.is-connected) .wm-join-videos .wm-tile-self {
	inset: 0;
	width: auto;
	height: auto;
	aspect-ratio: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	z-index: 1;
}

.wm-join-call.has-local-preview:not(.is-connected) .wm-join-videos .wm-tile-self .wm-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.wm-join-call:not(.is-connected) .wm-tile-remote {
	background: transparent;
	pointer-events: none;
}

.wm-join-call:not(.is-connected) .wm-tile-remote .wm-tile-head,
.wm-join-call:not(.is-connected) .wm-tile-remote .wm-label,
.wm-join-call:not(.is-connected) .wm-tile-remote .wm-video,
.wm-join-call.has-local-preview:not(.is-connected) .wm-tile-self .wm-label {
	display: none;
}

.wm-join-call.has-local-preview:not(.is-connected) .wm-join-connecting:not([hidden]) {
	inset: auto;
	top: 3.6rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 6;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.55rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: rgba(12, 16, 22, 0.78);
	backdrop-filter: blur(8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.wm-join-call.has-local-preview:not(.is-connected) .wm-join-connecting-ring {
	width: 1.1rem;
	height: 1.1rem;
	border-width: 2px;
}

.wm-join-call.has-local-preview:not(.is-connected) .wm-join-connecting-text {
	font-size: 0.88rem;
}

.wm-self-off {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	background: #1a1f26;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
	padding: 0.5rem;
	pointer-events: none;
}

.wm-self-off .wm-video-avatar-circle {
	width: min(56%, 4.5rem);
	font-size: clamp(0.8rem, 2.6vw, 1.15rem);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.wm-self-off[hidden] {
	display: none !important;
}

.wm-join-connecting {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 1rem;
	background:
		radial-gradient(ellipse at 50% 40%, rgba(40, 58, 78, 0.55), transparent 58%),
		#0b0f14;
	color: #fff;
}

.wm-join-connecting[hidden] {
	display: none !important;
}

.wm-join-connecting-ring {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.18);
	border-top-color: #fff;
	animation: wm-spin 1s linear infinite;
}

.wm-join-connecting-text {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

@keyframes wm-spin {
	to { transform: rotate(360deg); }
}

.wm-join-call-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 0.85rem 1.1rem 2.4rem;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent);
	pointer-events: none;
}

.wm-join-call-meta {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.wm-join-call-live::before {
	content: '';
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.4rem;
	border-radius: 50%;
	background: #c98516;
	vertical-align: 0.05em;
	animation: wm-pulse 1.4s ease-in-out infinite;
}

.wm-join-call-live.is-live::before {
	background: #3dd68c;
	animation: none;
}

.wm-join-call-timer {
	font-variant-numeric: tabular-nums;
	opacity: 0.9;
}

.wm-join-toast {
	position: absolute;
	left: 50%;
	top: 3.5rem;
	transform: translateX(-50%);
	z-index: 6;
	display: grid;
	gap: 0.5rem;
	width: min(26rem, calc(100% - 1.5rem));
	pointer-events: none;
}

.wm-join-toast > * {
	pointer-events: auto;
}

.wm-join-call .wm-media-warn,
.wm-join-call .wm-status {
	margin: 0;
	padding: 0.55rem 0.75rem;
	border-radius: 999px;
	background: rgba(12, 16, 22, 0.78);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
	text-align: center;
	backdrop-filter: blur(8px);
}

.wm-join-call .wm-media-warn {
	border-radius: 12px;
	background: rgba(120, 24, 24, 0.82);
}

.wm-join-call .wm-chat {
	position: absolute;
	top: auto;
	right: 0.85rem;
	bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
	z-index: 7;
	width: min(20rem, calc(100% - 5.5rem));
	max-height: min(18rem, 40dvh);
	display: none;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0;
	padding: 0.75rem 0.8rem 0.8rem;
	background: rgba(12, 16, 22, 0.96);
	color: #f4f6f8;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(10px);
}

.wm-join-call.is-chat-open .wm-chat {
	display: flex;
}

.wm-join-call .wm-chat-fab {
	position: absolute;
	right: 0.85rem;
	bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
	z-index: 6;
	width: 3.25rem;
	height: 3.25rem;
	min-width: 3.25rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(28, 32, 38, 0.94);
	background-color: rgba(28, 32, 38, 0.94);
	color: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
	line-height: 0;
}

.wm-join-call .wm-chat-fab:hover {
	background: rgba(48, 54, 62, 0.96);
	background-color: rgba(48, 54, 62, 0.96);
	color: #fff;
}

.wm-join-call .wm-chat-fab.is-on {
	background: #1e88e5;
	background-color: #1e88e5;
	border-color: transparent;
	color: #fff;
}

.wm-join-call .wm-chat-fab svg {
	display: block;
	flex-shrink: 0;
	fill: currentColor;
	color: inherit;
}

.wm-join-call .wm-media-controls-overlay {
	bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

.wm-chat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.wm-chat-head h3 {
	margin: 0;
	font-size: 0.95rem;
}

.wm-join-call .wm-chat-close {
	color: #fff;
	border-color: transparent;
}

.wm-join-call .wm-chat-log {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.wm-join-call .wm-chat-head,
.wm-join-call .wm-chat-form {
	flex: 0 0 auto;
}

.wm-join-call .wm-chat-input {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.wm-ctrl-badge {
	position: absolute;
	top: -0.2rem;
	right: -0.2rem;
	min-width: 1.05rem;
	height: 1.05rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: #e53935;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.05rem;
	text-align: center;
}

.wm-ctrl-btn {
	position: relative;
}

.wm-media-controls-overlay .wm-ctrl-btn.is-on {
	background: rgba(58, 64, 74, 0.95);
	background-color: rgba(58, 64, 74, 0.95);
	color: #fff;
}

body.wm-consult-in-call .wm-consult-join-main,
body.wm-consult-in-call .wm-consult-join-main .entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

html.wm-consult-in-call,
html.wm-consult-in-call body {
	overflow: hidden !important;
	height: 100% !important;
	max-height: 100dvh !important;
	overscroll-behavior: none;
}

body.wm-consult-in-call .site-header,
body.wm-consult-in-call .site-footer,
body.wm-consult-in-call #masthead,
body.wm-consult-in-call #header,
body.wm-consult-in-call #site-header,
body.wm-consult-in-call #colophon,
body.wm-consult-in-call header.wp-block-template-part,
body.wm-consult-in-call footer.wp-block-template-part,
body.wm-consult-in-call .wp-site-blocks > header,
body.wm-consult-in-call .wp-site-blocks > footer,
body.wm-consult-in-call .elementor-location-header,
body.wm-consult-in-call .elementor-location-footer,
body.wm-consult-in-call .elementor-sticky,
body.wm-consult-in-call .ast-mobile-header-wrap,
body.wm-consult-in-call .ast-desktop-header-content {
	display: none !important;
}

body.wm-consult-in-call {
	background: #0b0f14;
}

body.wm-consult-in-call .wm-consult-join-standalone .wm-consult-join {
	padding: 0;
}

.wm-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	background: #111;
	display: block;
	min-height: 160px;
}

.wm-self {
	transform: scaleX(-1);
}

.wm-label {
	position: absolute;
	left: 0.5rem;
	top: 0.5rem;
	z-index: 1;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 0.75rem;
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
}

.wm-label:empty {
	display: none;
}

.wm-tile-head {
	position: absolute;
	left: 0.5rem;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	max-width: none;
	pointer-events: none;
}

.wm-tile-pip-tools {
	position: absolute;
	left: 50%;
	bottom: 0.45rem;
	transform: translateX(-50%);
	z-index: 3;
	display: none;
	align-items: center;
	gap: 0.25rem;
	pointer-events: auto;
}

.wm-clinician-call.has-exam .wm-tile.is-feed-pip .wm-tile-pip-tools {
	display: inline-flex;
}

.wm-tile-tool-btn.wm-ctrl-btn {
	width: 2rem;
	height: 2rem;
	min-width: 2rem;
	min-height: 2rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(28, 32, 38, 0.92);
	background-color: rgba(28, 32, 38, 0.92);
	color: #fff;
	line-height: 0;
}

.wm-tile-tool-btn.wm-ctrl-btn:hover {
	background: rgba(48, 54, 62, 0.95);
	background-color: rgba(48, 54, 62, 0.95);
	color: #fff;
}

.wm-tile-tool-btn.wm-ctrl-btn svg {
	display: block;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	fill: currentColor;
	color: inherit;
}

.wm-tile-tool-btn.wm-ctrl-screenshot svg.wm-icon-screenshot {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
}

.wm-tile-tool-btn.wm-ctrl-screenshot svg.wm-icon-screenshot .wm-icon-fill {
	fill: currentColor;
	stroke: none;
}

.wm-tile-head .wm-label {
	position: static;
	left: auto;
	top: auto;
	z-index: auto;
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wm-tile-head .wm-tile-audio-status {
	position: static;
	left: auto;
	top: auto;
	bottom: auto;
	transform: none;
	flex: 0 0 auto;
}

.wm-video-avatar {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a1f26;
	pointer-events: none;
}

.wm-video-avatar[hidden] {
	display: none !important;
}

.wm-video-avatar-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: min(38%, 8.5rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: #4a5568;
	color: #fff;
	font-size: clamp(1.05rem, 3.8vw, 2.15rem);
	font-weight: 650;
	letter-spacing: 0.04em;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	user-select: none;
}

.wm-tile-audio-status {
	position: absolute;
	bottom: 0.55rem;
	left: 0.55rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.65rem;
	height: 1.65rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.58);
	color: #c8f5d4;
	pointer-events: none;
}

.wm-tile-audio-status[hidden] {
	display: none !important;
}

.wm-tile-audio-status.is-off {
	background: rgba(198, 40, 40, 0.9);
	color: #fff;
}

.wm-tile-audio-status.is-speaking {
	background: rgba(18, 92, 52, 0.92);
	color: #e8fff0;
	min-width: 1.85rem;
}

.wm-audio-bars {
	display: inline-flex;
	align-items: flex-end;
	justify-content: center;
	gap: 0.12rem;
	width: 0.95rem;
	height: 0.75rem;
}

.wm-audio-bars i {
	display: block;
	width: 0.14rem;
	border-radius: 999px;
	background: currentColor;
	animation: wm-audio-bar 0.85s ease-in-out infinite;
}

.wm-audio-bars i:nth-child(1) {
	height: 0.34rem;
	animation-delay: 0s;
}

.wm-audio-bars i:nth-child(2) {
	height: 0.62rem;
	animation-delay: 0.15s;
}

.wm-audio-bars i:nth-child(3) {
	height: 0.44rem;
	animation-delay: 0.3s;
}

@keyframes wm-audio-bar {
	0%,
	100% {
		transform: scaleY(0.45);
		opacity: 0.72;
	}
	50% {
		transform: scaleY(1);
		opacity: 1;
	}
}

.wm-tile.is-remote-speaking.is-no-video .wm-video-avatar-circle {
	/* Inset ring so overflow:hidden on the tile does not clip the glow. */
	box-shadow:
		inset 0 0 0 3px rgba(120, 220, 160, 0.95),
		0 6px 18px rgba(0, 0, 0, 0.28);
}

.wm-tile.is-remote-speaking:not(.is-no-video) {
	/* Inset ring — edge borders were clipped by overflow:hidden ancestors. */
	box-shadow: inset 0 0 0 3px rgba(120, 220, 160, 0.9);
}

.wm-tile.is-no-video > .wm-video {
	opacity: 0;
}

.wm-mode-simple .wm-tile-self .wm-video-avatar-circle {
	width: min(56%, 4.5rem);
	font-size: clamp(0.8rem, 2.6vw, 1.15rem);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

/* Prefer theme buttons when present; keep fallbacks for structure. */
.wm-btn {
	appearance: none;
	border: 1px solid var(--wm-line, currentColor);
	background: var(--wm-panel, transparent);
	color: inherit;
	border-radius: var(--wm-radius, 8px);
	padding: 0.55rem 1rem;
	min-height: var(--wm-control-min, 2.75rem);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: inherit;
	line-height: 1.3;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	touch-action: manipulation;
}

.wm-btn:focus-visible {
	outline: 2px solid var(--wm-accent);
	outline-offset: 2px;
}

.wm-btn-sm,
.wm-btn-compact {
	box-sizing: border-box;
	min-height: 2rem;
	height: 2rem;
	padding: 0 0.65rem;
	font-size: 0.8125rem;
	line-height: 1.25;
	white-space: nowrap;
}

.wm-btn-sm .wm-icon,
.wm-btn-compact .wm-icon {
	width: 16px;
	height: 16px;
}

.wm-icon {
	flex: 0 0 auto;
	display: block;
}

.wm-has-icon {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.wm-has-icon > span {
	min-width: 0;
}

.wm-empty-icon {
	display: flex;
	justify-content: center;
	color: var(--wm-muted, #5b6b75);
	opacity: 0.5;
	margin: 0 0 0.35rem;
}

.wm-card-title.wm-has-icon,
.wm-section-title.wm-has-icon {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.wm-btn-primary {
	background: var(--wm-accent, currentColor);
	border-color: var(--wm-accent, currentColor);
	color: var(--wm-on-accent, #fff);
}

.wm-btn-danger {
	background: var(--wm-danger, #9b2226);
	border-color: var(--wm-danger, #9b2226);
	color: var(--wm-on-accent, #fff);
}

.wm-btn-quiet {
	background: transparent;
	color: var(--wm-btn-text-muted, var(--wm-muted, #5b6b75));
}

.wm-btn-quiet:not(.wm-btn-icon):not(.is-active):hover,
.wm-btn-quiet:not(.wm-btn-icon):not(.is-active):focus-visible {
	color: var(--wm-btn-text-accent, var(--wm-accent));
	background: color-mix(in srgb, var(--wm-btn-text-accent, var(--wm-accent)) 10%, transparent);
}

.wm-btn-quiet.wm-btn-icon:hover,
.wm-btn-quiet.wm-btn-icon:focus-visible {
	background: color-mix(in srgb, var(--wm-panel, #fff) 80%, currentColor);
}

.wm-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.wm-consult-control {
	display: inline-block;
}

.wm-consult-control.is-unavailable {
	cursor: not-allowed;
}

.wm-consult-control.is-unavailable .wm-btn {
	pointer-events: none;
}

.wm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wm-space-2, 0.55rem);
	margin: 0.65rem 0 1.15rem;
}

.wm-room-list,
.wm-appt-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.wm-room-list li,
.wm-appt-list li {
	border: 1px solid var(--wm-line, currentColor);
	border-radius: var(--wm-radius, 8px);
	padding: 0.5rem;
	display: grid;
	gap: 0.35rem;
}

.wm-status,
.wm-muted,
.wm-consult-msg {
	color: var(--wm-muted, inherit);
	opacity: 0.92;
	font-size: 0.95rem;
	margin-bottom: 0.75rem;
}

.wm-status.is-success,
.wm-success-msg {
	color: var(--wm-success, #0f6b3a);
	opacity: 1;
	font-weight: 600;
}

.wm-status.is-error {
	color: color-mix(in srgb, var(--wm-danger, #9b2226) 62%, var(--wm-muted, #6b6b6b));
	opacity: 1;
	font-weight: 500;
}

/* Inline notice used by the clinician portal; hidden while there is nothing to say. */
.wm-status-bar {
	margin: 0;
	padding: 0.6rem 0.85rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: color-mix(in srgb, var(--wm-panel, #fff) 94%, currentColor);
	font-size: 0.92rem;
}

.wm-status-bar.is-success {
	border-color: color-mix(in srgb, var(--wm-success, #0f6b3a) 35%, transparent);
	background: color-mix(in srgb, var(--wm-success, #0f6b3a) 8%, transparent);
}

.wm-status-bar.is-error {
	border-color: color-mix(in srgb, var(--wm-danger, #9b2226) 35%, transparent);
	background: color-mix(in srgb, var(--wm-danger, #9b2226) 8%, transparent);
	color: var(--wm-danger, #9b2226);
	opacity: 1;
}

.wm-media-warn {
	margin: 0.5rem 0 0.75rem;
	padding: 0.65rem 0.75rem;
	border-radius: var(--wm-radius, 8px);
	border: 1px solid color-mix(in srgb, var(--wm-danger, #9b2226) 35%, transparent);
	background: color-mix(in srgb, var(--wm-danger, #9b2226) 10%, transparent);
	color: var(--wm-danger, #9b2226);
	font-size: 0.92rem;
	line-height: 1.35;
}

.wm-media-warn[hidden] {
	display: none;
}

.wm-access-code,
.wm-invite-input.wm-access-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.08em;
	font-weight: 600;
}

.wm-access-code.is-inactive {
	text-decoration: line-through;
	opacity: 0.85;
}

.wm-chat-log {
	height: 240px;
	overflow: auto;
	border: 1px solid var(--wm-line, currentColor);
	border-radius: var(--wm-radius, 8px);
	padding: 0.5rem;
	background: color-mix(in srgb, var(--wm-panel, #fff) 92%, currentColor);
	margin-bottom: 0.5rem;
}

.wm-chat-form {
	display: flex;
	gap: 0.35rem;
}

.wm-chat-input,
.wm-invite-input,
.wm-input,
.wm-select,
.wm-name-input {
	width: 100%;
	box-sizing: border-box;
	min-height: 2.5rem;
	padding: 0.5rem 0.7rem;
	border-width: 1px;
	border-style: solid;
	border-color: var(--wm-field-line, #c3c4c7);
	border-radius: var(--wm-radius, 8px);
	font: inherit;
	line-height: 1.4;
	color: inherit;
	background: var(--wm-panel, #fff);
	box-shadow: none;
}

.wm-invite {
	margin-bottom: 1rem;
}

.wm-booking label {
	display: block;
	margin: 0.75rem 0 0.25rem;
	font-weight: 600;
}

.wm-section-title {
	margin: 1.25rem 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	font-family: var(--wm-font-stack, var(--wm-font, "Roboto", system-ui, sans-serif));
}

.wm-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.wm-steps[hidden],
.wm-step-nav[hidden],
.wm-step-panels[hidden],
.wm-status[hidden],
.wm-success-panel[hidden],
.wm-join-access[hidden],
.wm-auth-form[hidden] {
	display: none !important;
}

.wm-booking-wizard.is-complete .wm-steps,
.wm-booking-wizard.is-complete .wm-step-nav,
.wm-booking-wizard.is-complete .wm-step-panels {
	display: none !important;
}

.wm-success-panel {
	margin-top: 0.25rem;
	display: grid;
	gap: 1rem;
}

.wm-success-footer {
	margin-top: 0.5rem;
	padding: 1.25rem 0 0.25rem;
	border-top: 1px solid var(--wm-line, currentColor);
}

.wm-success-actions {
	margin: 0.5rem 0 0;
}

.wm-join-access {
	margin: 0;
	padding: 0;
	border-top: none;
	display: grid;
	gap: 0.85rem;
}

.wm-join-access .wm-join-meta {
	margin-top: 0;
}

.wm-join-access .wm-invite-input {
	margin-top: 0.35rem;
}

.wm-step-item {
	flex: 1 1 120px;
	margin: 0;
	padding: 0.5rem 0.65rem;
	border-width: 1px;
	border-style: solid;
	border-color: var(--wm-field-line, #c3c4c7);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	box-shadow: none;
	font-size: 0.85rem;
	font-weight: 500;
	opacity: 1;
	text-align: center;
}

.wm-step-item.is-active {
	border-color: var(--wm-accent);
	font-weight: 600;
	color: inherit;
}

.wm-step-item.is-done {
	opacity: 0.85;
}

.wm-booking-wizard {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1 1 auto;
}

.wm-booking-wizard .wm-status:empty {
	display: none;
	margin: 0;
}

.wm-step-panels {
	flex: 1 1 20rem;
	height: auto;
	min-height: 18rem;
	max-height: 24rem;
	overflow: auto;
	padding-right: 0.15rem;
}

.wm-step-panel {
	min-height: 100%;
	align-content: start;
	align-items: stretch;
}

.wm-step-panel.wm-auth-form label {
	align-content: start;
}

.wm-step-panel.wm-auth-form input,
.wm-step-panel.wm-auth-form select,
.wm-step-panel.wm-auth-form textarea {
	height: var(--wm-control-min, 2.75rem);
	min-height: var(--wm-control-min, 2.75rem);
	max-height: none;
	align-self: start;
	width: 100%;
}

.wm-step-nav {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1rem;
}

.wm-slots {
	max-height: 9.5rem;
	overflow: auto;
}

.wm-summary-list {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: 0.35rem 0.75rem;
	margin: 0 0 1rem;
}

.wm-summary-list dt {
	margin: 0;
	font-weight: 600;
	opacity: 0.8;
}

.wm-summary-list dd {
	margin: 0;
}

.wm-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 0.45rem;
	margin: 0.35rem 0 0.75rem;
}

.wm-pill-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0.35rem 0 0.5rem;
}

.wm-slot-btn,
.wm-pill-btn {
	appearance: none;
	border: 1px solid var(--wm-line, currentColor);
	background: var(--wm-panel, transparent);
	color: inherit;
	border-radius: 999px;
	padding: 0.5rem 0.9rem;
	font: inherit;
	cursor: pointer;
}

.wm-slot-btn {
	border-radius: var(--wm-radius, 8px);
	padding: 0.55rem 0.35rem;
}

.wm-slot-btn:hover,
.wm-pill-btn:hover {
	border-color: var(--wm-accent, currentColor);
}

.wm-slot-btn.is-selected,
.wm-pill-btn.is-selected {
	background: var(--wm-accent, currentColor);
	border-color: var(--wm-accent, currentColor);
	color: var(--wm-on-accent, #fff);
}

.wm-duration-block {
	margin-top: 0.75rem;
}

.wm-consult-join-standalone {
	margin: 0;
	min-height: 100vh;
	font-family: inherit;
	color: inherit;
	background: inherit;
}

.wm-consult-join-standalone .wm-consult-join {
	padding: 1.5rem 1rem;
}

.wm-portal {
	display: grid;
	gap: 1rem;
	width: 100%;
	min-width: 0;
	padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 2rem;
	box-sizing: border-box;
}

.wm-consult-align .wm-portal:not(.wm-portal-join):not(.wm-portal-auth) {
	/* Align wrapper already pads clinician portal chrome; join/auth keep their own. */
	padding: 0;
}

.wm-consult-align:has(.wm-portal-join),
.wm-consult-align:has(.wm-portal-auth) {
	/* Let join/auth blocks own the inset padding. */
	padding: 0;
}

.wm-consult-app.wm-portal-join,
.wm-portal.wm-portal-join,
.wm-consult-app.wm-portal-auth,
.wm-portal.wm-portal-auth {
	padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 2rem;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

body.wm-consult-booking-page .wm-consult-app.wm-portal-join,
body.wm-consult-booking-page .wm-portal-join {
	padding: var(--wm-space-5, 1.5rem) clamp(1rem, 3vw, 1.85rem) var(--wm-space-6, 2rem);
}

.wm-clinician-shell {
	display: grid;
	gap: var(--wm-space-4, 1.15rem);
	width: 100%;
	min-width: 0;
}

.wm-portal-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.85rem 1.5rem;
	margin-bottom: var(--wm-space-5, 1.5rem);
}

.wm-portal-header-html {
	display: block;
}

.wm-portal-header-html > *:first-child {
	margin-top: 0;
}

.wm-portal-header-html > *:last-child {
	margin-bottom: 0;
}

.wm-portal-header-main {
	display: grid;
	gap: var(--wm-space-2, 0.55rem);
	min-width: 0;
}

.wm-portal-header-aside {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

.wm-portal-header-aside:empty {
	display: none;
}

.wm-portal-eyebrow {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
}

.wm-portal-title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 1.85rem);
	line-height: 1.2;
	font-family: var(--wm-font-stack, var(--wm-font, "Roboto", system-ui, sans-serif));
	font-weight: 700;
}

.wm-portal-lead {
	margin: 0;
	opacity: 0.85;
	max-width: 40rem;
}

.wm-portal-patient-record .wm-portal-record-lead {
	margin: 0 0 0.65rem;
	font-size: 0.92rem;
	line-height: 1.45;
	max-width: 42rem;
}

.wm-portal-record-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 0.85rem;
}

.wm-portal-record-tab {
	appearance: none;
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 92%, transparent);
	border-radius: 999px;
	background: var(--wm-panel, #fff);
	padding: 0.35rem 0.85rem;
	font-size: 0.84rem;
	font-weight: 550;
	color: var(--wm-muted, #5b6b75);
	cursor: pointer;
}

.wm-portal-record-tab.is-active {
	color: var(--wm-ink, #1a2a33);
	border-color: color-mix(in srgb, var(--wm-accent, #7a1f2b) 45%, var(--wm-line, #dcdcde));
	background: color-mix(in srgb, var(--wm-accent, #7a1f2b) 8%, var(--wm-panel, #fff));
}

.wm-portal-record-section + .wm-portal-record-section {
	margin-top: 1.15rem;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 85%, transparent);
}

.wm-portal-record-hint {
	margin: 0 0 0.65rem;
	font-size: 0.88rem;
	line-height: 1.45;
}

.wm-portal-vitals-form {
	display: grid;
	gap: 0.65rem;
	max-width: 22rem;
}

.wm-portal-vitals-form-actions {
	display: flex;
	justify-content: flex-start;
}

.wm-portal-vitals-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.wm-portal-vitals-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.45rem 0.65rem;
	align-items: center;
	padding: 0.45rem 0.55rem;
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 88%, transparent);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
}

.wm-portal-vitals-main {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
	min-width: 0;
}

.wm-portal-vitals-type {
	font-weight: 600;
	font-size: 0.88rem;
}

.wm-portal-vitals-value {
	font-size: 0.88rem;
	font-variant-numeric: tabular-nums;
}

.wm-portal-vitals-when {
	font-size: 0.78rem;
	white-space: nowrap;
}

.wm-portal-patient-record .wm-portal-chat.is-record-messages {
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-width: 36rem;
}

.wm-portal-patient-record .wm-portal-chat.is-record-messages .wm-chat-log {
	max-height: min(22rem, 48vh);
	min-height: 10rem;
}

.wm-portal-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.35rem 0 0.75rem;
	padding: 0.35rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wm-panel, #fff) 92%, currentColor);
}

.wm-portal-tab {
	appearance: none;
	border: 1px solid transparent;
	background: transparent;
	color: inherit;
	border-radius: 999px;
	padding: 0.55rem 1.1rem;
	min-height: 2.5rem;
	font: inherit;
	cursor: pointer;
	color: var(--wm-muted, #5b6b75);
	transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
	touch-action: manipulation;
}

.wm-portal-tab:focus-visible {
	outline: 2px solid var(--wm-accent);
	outline-offset: 2px;
}

.wm-portal-tab.wm-has-icon {
	padding-inline: 0.75rem 0.95rem;
}

.wm-portal-tab .wm-icon {
	opacity: 0.85;
}

.wm-portal-tab:hover {
	color: inherit;
	background: color-mix(in srgb, var(--wm-panel, #fff) 60%, transparent);
}

.wm-portal-tab.is-active {
	font-weight: 600;
	color: inherit;
	border-color: var(--wm-line, #dcdcde);
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.08);
}

.wm-portal-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--wm-line, #dcdcde);
}

.wm-portal-toolbar[hidden] {
	display: none !important;
}

.wm-portal-toolbar .wm-portal-tabs {
	margin: 0;
}

.wm-portal-toolbar-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

.wm-portal-header-account {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem 0.75rem;
}

.wm-workspace-switcher-wrap {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.wm-workspace-switcher {
	width: auto;
	min-width: 11.5rem;
	max-width: 16rem;
	min-height: var(--wm-control-min, 2.75rem);
	font-size: 0.875rem;
}

.wm-authority-table .wm-authority-ws-cell {
	text-align: center;
	width: 5.5rem;
}

.wm-workspace-program-banner {
	margin: 0 0 0.75rem;
}

.wm-program-workspace .wm-program-panel {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.wm-program-alerts-strip {
	margin: 0 0 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: var(--wm-radius-md, 0.5rem);
	background: var(--wm-surface-muted, #f4f6f8);
}

.wm-program-alert-list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wm-program-alert-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.wm-program-reading-fields,
.wm-program-time-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.wm-program-care-plan-body {
	width: 100%;
	margin: 0.5rem 0;
}

.wm-program-patient-results {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0.75rem 0;
	max-height: 12rem;
	overflow: auto;
}

.wm-program-patient-pick {
	justify-content: flex-start;
	text-align: left;
}

.wm-rpm-stat-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 0.75rem;
}

.wm-rpm-stat {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.wm-rpm-stat-value {
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.2;
}

.wm-rpm-threshold-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 8rem;
}

.wm-modal-host {
	position: fixed;
	inset: 0;
	z-index: 1200;
	pointer-events: none;
}

.wm-modal-host[aria-hidden="false"] {
	pointer-events: auto;
}

.wm-modal-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 1.5rem 1rem;
	overflow: auto;
	background: rgb(15 23 42 / 0.45);
}

.wm-modal-overlay .wm-modal {
	pointer-events: auto;
	width: 100%;
	margin: auto;
	padding: 1.25rem;
	box-shadow: var(--wm-shadow-lg, 0 12px 40px rgb(15 23 42 / 0.2));
}

.wm-modal-wide {
	max-width: min(56rem, 96vw);
}

.wm-program-enroll-table-wrap {
	max-height: min(24rem, 50vh);
}

.wm-program-enroll-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0 0 0.75rem;
}

.wm-program-patient-search {
	flex: 1 1 14rem;
	min-width: 12rem;
	max-width: 24rem;
}

.wm-program-per-page {
	width: auto;
	min-width: 9rem;
}

.wm-program-enroll-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.wm-table-footer-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.wm-portal-whoami {
	display: inline-flex;
	align-items: baseline;
	gap: 0.45rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: 999px;
	background: var(--wm-panel, #fff);
	font-size: 0.9rem;
	line-height: 1.35;
	white-space: nowrap;
	max-width: 100%;
}

.wm-whoami-label {
	color: var(--wm-muted, #5b6b75);
}

.wm-whoami-name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wm-portal-whoami[hidden] {
	display: none !important;
}

.wm-portal-panel {
	min-height: 12rem;
}

.wm-portal-panel[hidden] {
	display: none !important;
}

.wm-portal-guest {
	display: grid;
	gap: var(--wm-space-3, 0.85rem);
	justify-items: start;
	padding: var(--wm-space-3, 0.85rem) 0 var(--wm-space-5, 1.5rem);
}

.wm-portal-clinician .wm-consult-layout {
	margin-top: 0.25rem;
}

/* Top navigation sits in the toolbar; the chart tab strip keeps its own spacing. */
.wm-clinician-spa .wm-portal-tabs:not(.wm-chart-tabs) {
	margin: 0;
}

.wm-clinician-spa .wm-clinician-shell {
	gap: 1.25rem;
}

.wm-settings-panel {
	display: grid;
	gap: 1.25rem;
}

.wm-spa-panel[hidden] {
	display: none !important;
}

.wm-patients-panel,
.wm-patient-detail-panel {
	width: 100%;
	min-width: 0;
}

.wm-patient-search {
	margin: 0 0 0.85rem;
	width: 100%;
}

.wm-patient-status-filter-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 0 0 auto;
}

.wm-patient-status-filter-wrap .wm-filter-label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wm-patient-status-filter {
	min-width: 8.5rem;
}

.wm-patient-list {
	display: grid;
	gap: 0.65rem;
	width: 100%;
	min-width: 0;
	grid-template-columns: minmax(0, 1fr);
}

.wm-patient-table-wrap {
	overflow: auto;
	width: 100%;
	min-width: 0;
	/*
	 * Fixed ink, not var(--wm-line). That variable mixes against currentColor,
	 * which resolves per cell — muted demographics/contact columns would draw
	 * a lighter (visually thinner) divider than the name column.
	 */
	--wm-table-line: color-mix(in srgb, #000 12%, transparent);
	border: 1px solid var(--wm-table-line);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
}

.wm-patient-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0;
	font-size: 0.95rem;
	table-layout: auto;
}

.wm-patient-table th,
.wm-patient-table td {
	padding: 0.8rem 1rem;
	text-align: left;
	vertical-align: middle;
	border: 0;
	border-bottom: 1px solid var(--wm-table-line);
}

/*
 * Stripe against black, not currentColor. Muted columns (demographics,
 * contact) change the cell's colour, and color-mix(... currentColor) would
 * resolve per cell and leave a seam down the row.
 */
.wm-patient-table thead th {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wm-muted, #646970);
	white-space: nowrap;
	background: color-mix(in srgb, var(--wm-panel, #fff) 90%, #000);
}

.wm-patient-table th.wm-sortable {
	cursor: pointer;
	user-select: none;
}

.wm-patient-table th.wm-sortable:hover,
.wm-patient-table th.wm-sortable:focus-visible {
	color: inherit;
}

.wm-patient-table th.wm-sorted-asc::after,
.wm-patient-table th.wm-sorted-desc::after {
	content: "";
	display: inline-block;
	margin-left: 0.35em;
	border: 4px solid transparent;
	vertical-align: middle;
}

.wm-patient-table th.wm-sorted-asc::after {
	border-bottom-color: currentColor;
	transform: translateY(-2px);
}

.wm-patient-table th.wm-sorted-desc::after {
	border-top-color: currentColor;
	transform: translateY(2px);
}

.wm-patient-table tbody tr:nth-child(even) th,
.wm-patient-table tbody tr:nth-child(even) td {
	background: color-mix(in srgb, var(--wm-panel, #fff) 96%, #000);
}

.wm-patient-table tbody tr:hover th,
.wm-patient-table tbody tr:hover td {
	background: color-mix(in srgb, var(--wm-panel, #fff) 92%, #000);
}

.wm-patient-table tbody tr:last-child th,
.wm-patient-table tbody tr:last-child td {
	border-bottom: 0;
}

/* Patient roster: compact rows — action buttons were forcing ~2.75rem cell height. */
.wm-patient-list .wm-patient-table th,
.wm-patient-list .wm-patient-table td {
	padding: 0.45rem 0.75rem;
	line-height: 1.35;
}

.wm-patient-list .wm-patient-table .wm-patient-col-actions > .wm-actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.35rem;
	margin: 0;
}

.wm-patient-list .wm-patient-table .wm-btn {
	min-height: 0;
	padding: 0.35rem 0.65rem;
	font-size: 0.8125rem;
	line-height: 1.25;
}

.wm-patient-alerts-bell {
	flex-shrink: 0;
	position: relative;
}

.wm-patient-list .wm-patient-table th.wm-patient-col-alerts,
.wm-patient-list .wm-patient-table td.wm-patient-col-alerts {
	width: 2.75rem;
	min-width: 2.75rem;
	max-width: 2.75rem;
	padding: 0;
	text-align: center;
	vertical-align: middle;
}

.wm-patient-list .wm-patient-col-alerts .wm-patient-alerts-bell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	max-width: 100%;
	box-sizing: border-box;
}

.wm-patient-list .wm-patient-col-alerts .wm-patient-alerts-bell[data-alert-count] {
	/* Count badge is position:absolute; reserve width so it stays inside the column. */
	padding-right: 0.55rem;
}

.wm-patient-list .wm-patient-col-alerts .wm-patient-alerts-bell-trigger {
	padding: 0;
	min-width: 0;
	min-height: 0;
	justify-content: center;
}

.wm-patient-list .wm-patient-col-alerts .wm-patient-alerts-bell-trigger.wm-btn-icon {
	width: 1.75rem;
	height: 1.75rem;
	min-width: 1.75rem;
	min-height: 1.75rem;
}

.wm-patient-alerts-bell .wm-patient-alerts-bell-trigger {
	position: relative;
	color: var(--wm-accent, #8b1538);
}

.wm-patient-list .wm-patient-rpm-devices {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
}

.wm-patient-list .wm-patient-rpm-device-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wm-accent, #8b1538);
	line-height: 0;
}

.wm-patient-list .wm-patient-col-rpm-devices {
	width: auto;
	min-width: 3.5rem;
	max-width: 7rem;
	text-align: center;
	white-space: nowrap;
}

.wm-patient-alerts-bell[data-alert-count]::after {
	content: attr(data-alert-count);
	position: absolute;
	top: 0.05rem;
	right: 0.05rem;
	min-width: 1rem;
	height: 1rem;
	padding: 0 0.2rem;
	border-radius: 999px;
	background: var(--wm-accent, #8b1538);
	color: var(--wm-on-accent, #fff);
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1rem;
	text-align: center;
	pointer-events: none;
	box-sizing: border-box;
}

/* Above .wm-form-dialog-overlay (200020) — body-ported help/menus must not sit under modals. */
.wm-popover.wm-anchored-menu.is-fixed-panel,
.wm-popover.wm-anchored-menu.is-follow-trigger {
	z-index: 200030;
}

/* Scrolls with the row; sticky table header (z-index 2) paints above this menu. */
.wm-patient-list .wm-patient-table tbody tr:has(.wm-patient-alerts-bell.is-menu-open) {
	position: relative;
	z-index: 1;
}

.wm-patient-list .wm-patient-col-alerts .wm-patient-alerts-bell.is-menu-open {
	position: relative;
	z-index: 1;
	overflow: visible;
}

.wm-popover.wm-patient-alerts-menu-panel {
	width: min(22rem, calc(100vw - 2rem));
	min-width: min(18rem, calc(100vw - 2rem));
	max-width: min(22rem, calc(100vw - 2rem));
	padding: 0.45rem 0.65rem 0.5rem;
	overflow-x: hidden;
	box-sizing: border-box;
	z-index: 1;
}

.wm-patient-alerts-bell.is-menu-open > .wm-popover-caret {
	z-index: 1;
	opacity: 1;
	visibility: visible;
}

.wm-patient-alerts-bell .wm-popover-head {
	margin-bottom: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
}

.wm-patient-alerts-bell .wm-popover-head strong {
	font-weight: 600;
}

.wm-patient-alerts-bell .wm-anchored-menu-inner {
	max-height: none;
	overflow: visible;
}

.wm-patient-alerts-popover {
	box-sizing: border-box;
}

.wm-patient-alerts-popover .wm-patient-alerts-list.wm-program-alert-list {
	margin: 0;
	gap: 0;
}

.wm-patient-alerts-list {
	max-height: min(45vh, 15rem);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0;
	margin: 0;
	overscroll-behavior: contain;
}

.wm-patient-alerts-list > .wm-patient-alerts-list-item {
	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
	gap: 0.4rem;
	padding: 0.35rem 0.1rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 55%, transparent);
}

.wm-patient-alerts-list > .wm-patient-alerts-list-item:last-child {
	border-bottom: none;
	padding-bottom: 0.1rem;
}

.wm-patient-alerts-list > .wm-patient-alerts-list-item .wm-pill {
	flex-shrink: 0;
	margin-top: 0.05rem;
	font-size: 0.68rem;
	padding: 0.1rem 0.35rem;
	text-transform: lowercase;
}

.wm-patient-alerts-list .wm-patient-alert-message {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--wm-ink, inherit);
	overflow-wrap: break-word;
	word-break: break-word;
}

.wm-patient-alerts-list .wm-patient-alerts-ack {
	flex-shrink: 0;
	margin: 0;
	padding: 0.2rem;
	min-width: 1.75rem;
	min-height: 1.75rem;
	border: none;
	box-shadow: none;
	background: transparent;
	color: var(--wm-accent, #8b1538);
}

.wm-patient-alerts-list .wm-patient-alerts-ack:hover {
	background: color-mix(in srgb, var(--wm-accent, #8b1538) 10%, transparent);
}

.wm-patient-alerts-list .wm-patient-alerts-ack .wm-icon {
	display: block;
}

.wm-patient-list-name {
	font-weight: 600;
}

.wm-patient-status-dot {
	flex-shrink: 0;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--wm-muted, #8c8f94);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
}

.wm-patient-status-dot.is-active {
	background: #16a34a;
}

.wm-patient-status-dot.is-pending {
	background: #d97706;
}

.wm-patient-status-dot.is-deceased {
	background: #6b7280;
}

.wm-patient-status-dot.is-inactive {
	background: #9ca3af;
}

.wm-patient-col-enrollment {
	white-space: nowrap;
}

.wm-patient-list-programs {
	display: inline-flex;
	flex-flow: row nowrap;
	gap: 0.3rem;
	align-items: center;
	justify-content: center;
}

.wm-pill-program {
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 0.1rem 0.4rem;
	border-radius: var(--wm-radius, 8px);
}

.wm-pill-rpm {
	background: color-mix(in srgb, var(--wm-accent, #8b1538) 14%, transparent);
	color: var(--wm-accent, #8b1538);
}

.wm-pill-ccm {
	background: color-mix(in srgb, #2563eb 14%, transparent);
	color: #1d4ed8;
}

/* Patient directory: compact solid program chips */
.wm-patient-list .wm-patient-list-programs {
	justify-content: center;
}

.wm-patient-list .wm-pill-program {
	border-radius: var(--wm-radius, 8px);
	padding: 0.28rem 0.55rem;
	line-height: 1.25;
	min-height: 1.65rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.wm-patient-list .wm-pill-rpm {
	background: var(--wm-accent, #8b1538);
	color: #fff;
}

.wm-patient-list .wm-pill-ccm {
	background: #2563eb;
	color: #fff;
}

.wm-patient-list .wm-pill-program-link:hover {
	filter: brightness(1.06);
}

.wm-patient-list .wm-pill-program-link:active {
	filter: brightness(0.94);
}

.wm-patient-list-status {
	font-size: 0.65rem;
}

.wm-patient-table th.wm-patient-col-status,
.wm-patient-table td.wm-patient-col-status,
.wm-patient-table th.wm-patient-col-rpm-devices,
.wm-patient-table td.wm-patient-col-rpm-devices,
.wm-patient-table th.wm-patient-col-enrollment,
.wm-patient-table td.wm-patient-col-enrollment,
.wm-patient-table th.wm-patient-col-dob,
.wm-patient-table td.wm-patient-col-dob,
.wm-patient-table th.wm-patient-col-sex,
.wm-patient-table td.wm-patient-col-sex,
.wm-patient-table th.wm-patient-col-last-interaction,
.wm-patient-table td.wm-patient-col-last-interaction {
	text-align: center;
}

.wm-patient-table th.wm-patient-col-dob,
.wm-patient-table td.wm-patient-col-dob,
.wm-patient-table th.wm-patient-col-sex,
.wm-patient-table td.wm-patient-col-sex {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.wm-patient-col-sex {
	width: 2.5rem;
}

.wm-patient-list-actions {
	justify-content: flex-end;
}

.wm-patient-record-menu-popover {
	width: 17rem;
	min-width: 17rem;
	max-width: min(18rem, calc(100vw - 2rem));
	padding: 0.35rem 0.25rem 0.5rem;
}

.wm-patient-record-menu-popover .wm-anchored-menu-inner {
	display: block;
	overflow: visible;
	max-height: none;
}

.wm-patient-record-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.1rem;
	width: 100%;
}

.wm-patient-record-menu-item-wrap {
	display: block;
	margin: 0;
	padding: 0;
}

.wm-patient-record-menu-item {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	text-align: left;
	white-space: normal;
	border-radius: 6px;
}

.wm-patient-record-menu-item-label {
	flex: 1 1 auto;
	min-width: 0;
}

.wm-patient-record-menu-section-title {
	margin: 0.15rem 0.5rem 0.35rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wm-muted, #646970);
}

.wm-patient-record-menu-export-wrap .wm-chart-export-menu {
	padding: 0 0.35rem 0.25rem;
}

.wm-pill-program-link {
	cursor: pointer;
	border: none;
	font: inherit;
	line-height: inherit;
	transition: filter 0.12s ease, box-shadow 0.12s ease;
}

.wm-pill-program-link:hover {
	filter: brightness(0.96);
}

.wm-pill-program-link:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--wm-accent) 55%, transparent);
	outline-offset: 2px;
}

.wm-patient-record-menu-divider-wrap {
	list-style: none;
	margin: 0.2rem 0;
	padding: 0;
}

.wm-patient-record-menu-divider {
	height: 1px;
	background: color-mix(in srgb, var(--wm-line, #dcdcde) 80%, transparent);
}

.wm-patient-record-menu-wrap .wm-popover-head strong {
	font-size: 0.8125rem;
	font-weight: 600;
}

.wm-patient-programs-edit {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wm-patient-edit-form .wm-patient-enroll-toggle-field {
	margin-bottom: 0;
}

.wm-patient-edit-form .wm-patient-enroll-toggle-field .wm-rpm-note-toggle {
	justify-content: space-between;
	width: 100%;
}

/* Vertical scroll only — no horizontal bar above pagination. */
.wm-consult-app .wm-patient-list .wm-table-panel > .wm-table-scroll-region {
	overflow-x: clip;
	overflow-y: auto;
	scrollbar-gutter: auto;
}

.wm-patient-list .wm-patient-table {
	table-layout: auto;
	width: 100%;
}

/* Shrink-to-fit contact text without stealing the full table width (fixed-layout + width:100% breaks columns). */
.wm-patient-list .wm-table-scroll-region .wm-patient-table th.wm-table-col-shrink,
.wm-patient-list .wm-table-scroll-region .wm-patient-table td.wm-table-col-shrink {
	max-width: 14rem;
	width: auto;
	min-width: 5rem;
}

.wm-patient-list .wm-patient-col-name {
	font-weight: 600;
	font-size: 0.9375rem;
	width: auto;
	min-width: 8rem;
}

.wm-patient-list .wm-patient-col-name .wm-patient-list-name {
	display: block;
}

.wm-patient-list .wm-patient-col-status {
	width: 5rem;
	white-space: nowrap;
}

.wm-patient-list .wm-patient-col-status .wm-patient-list-status {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
}

.wm-patient-list .wm-patient-col-enrollment {
	width: auto;
	min-width: 7.25rem;
}

.wm-patient-table th.wm-patient-col-last-interaction,
.wm-patient-table td.wm-patient-col-last-interaction {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.wm-patient-list .wm-patient-col-last-interaction {
	width: auto;
	min-width: 8.5rem;
}

.wm-patient-list .wm-patient-col-dob {
	width: auto;
	min-width: 6.25rem;
}

.wm-patient-list .wm-patient-col-sex {
	width: auto;
	min-width: 2.75rem;
}

.wm-patient-list .wm-patient-col-contact {
	color: var(--wm-muted, inherit);
	width: auto;
}

.wm-patient-list .wm-patient-col-actions {
	width: 2.5rem;
	padding-inline: 0.25rem;
	text-align: center;
}

.wm-patient-list .wm-patient-col-actions .wm-patient-record-menu-wrap {
	display: flex;
	justify-content: center;
}

.wm-patient-list .wm-patient-col-actions .wm-patient-record-menu-trigger {
	min-width: 0;
	min-height: 0;
	padding: 0.3rem;
}

.wm-patient-list .wm-patient-col-actions .wm-appt-actions-menu-wrap {
	display: flex;
	justify-content: center;
}

.wm-patient-list .wm-patient-col-actions .wm-appt-actions-menu-trigger {
	min-width: 0;
	min-height: 0;
	padding: 0.3rem;
}

.wm-patient-record-menu-item.is-warn {
	color: var(--wm-danger, #b42318);
}

.wm-patient-list .wm-table-panel > .wm-table-footer {
	margin-top: 0.65rem;
	padding-inline: 0.15rem;
}

.wm-patient-col-name {
	font-weight: 600;
	font-size: 1rem;
}

.wm-patient-col-contact {
	color: var(--wm-muted, inherit);
	overflow-wrap: anywhere;
	width: auto;
}

.wm-patient-col-actions {
	width: 1%;
	white-space: nowrap;
}

.wm-patient-col-actions .wm-actions,
.wm-table-actions {
	justify-content: flex-end;
	flex-wrap: wrap;
	margin: 0;
}

.wm-table-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-top: 0.85rem;
}

.wm-table-range {
	margin: 0;
	font-size: 0.9rem;
}

.wm-table-footer-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-left: auto;
}

.wm-pagination {
	--wm-pagination-control-size: 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
}

.wm-pagination .wm-page-btn {
	box-sizing: border-box;
	flex: 0 0 auto;
	height: var(--wm-pagination-control-size);
	min-height: var(--wm-pagination-control-size);
	min-width: var(--wm-pagination-control-size);
	padding-inline: 0.35rem;
	font-variant-numeric: tabular-nums;
}

.wm-pagination .wm-page-btn:disabled {
	min-width: var(--wm-pagination-control-size);
}

.wm-pagination .wm-page-arrow {
	flex: 0 0 var(--wm-pagination-control-size);
	width: var(--wm-pagination-control-size);
	min-width: var(--wm-pagination-control-size);
	max-width: var(--wm-pagination-control-size);
	padding: 0;
}

.wm-pagination .wm-pagination-chevron-prev {
	transform: rotate(90deg);
}

.wm-pagination .wm-pagination-chevron-next {
	transform: rotate(-90deg);
}

.wm-page-gap {
	padding: 0 0.15rem;
	color: var(--wm-muted, #5b6b75);
}

.wm-per-page {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
}

.wm-per-page-select {
	box-sizing: border-box;
	width: auto;
	min-width: calc(var(--wm-pagination-control-size, 2rem) * 1.35);
	min-height: var(--wm-pagination-control-size, 2rem);
	height: var(--wm-pagination-control-size, 2rem);
	padding: 0 1.5rem 0 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.25;
}

.wm-consult-app .wm-table-footer .wm-per-page-select,
.wm-consult-app .wm-pagination .wm-per-page-select {
	width: auto;
	max-width: none;
	min-height: var(--wm-pagination-control-size, 2rem);
	height: var(--wm-pagination-control-size, 2rem);
	padding: 0 1.5rem 0 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.25;
}

.wm-patient-list[aria-busy='true'] {
	opacity: 0.6;
}

@media (max-width: 600px) {
	.wm-table-footer {
		justify-content: center;
		text-align: center;
	}

	.wm-table-footer-controls {
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}

	.wm-pagination {
		justify-content: center;
	}
}

@media (max-width: 720px) {
	.wm-patient-table thead {
		display: none;
	}

	.wm-patient-table,
	.wm-patient-table tbody,
	.wm-patient-table tr,
	.wm-patient-table td {
		display: block;
		width: 100%;
	}

	.wm-patient-table tr {
		padding: 1rem 1.1rem;
		border-bottom: 1px solid var(--wm-table-line);
	}

	.wm-patient-table tbody tr:nth-child(even) th,
	.wm-patient-table tbody tr:nth-child(even) td,
	.wm-patient-table tbody tr:hover th,
	.wm-patient-table tbody tr:hover td {
		background: transparent;
	}

	.wm-patient-table tr:last-child {
		border-bottom: 0;
	}

	.wm-patient-table td {
		padding: 0.35rem 0;
		border-bottom: 0;
		background: transparent;
	}

	.wm-patient-col-name {
		font-size: 1rem;
		margin-bottom: 0.15rem;
	}

	.wm-patient-col-actions {
		width: auto;
		margin-top: 0.5rem;
	}

	.wm-patient-col-actions .wm-actions {
		justify-content: flex-start;
	}
}

.wm-patient-detail-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	margin: 0 0 0.85rem;
	padding: 0.15rem 0 0.35rem;
}

.wm-patient-detail-header-start {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	min-width: 0;
	flex: 1 1 auto;
	line-height: 1.35;
}

.wm-patient-detail-header-sep {
	flex-shrink: 0;
	font-size: 0.875rem;
	font-weight: 400;
	color: color-mix(in srgb, var(--wm-muted, #5b6b75) 45%, transparent);
	user-select: none;
}

.wm-patient-detail-header-name-row {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	max-width: 100%;
}

.wm-patient-detail-header-name {
	min-width: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--wm-ink, #1a2a33);
	overflow-wrap: anywhere;
}

.wm-patient-detail-header-name.wm-patient-detail-header-name-action {
	cursor: pointer;
}

.wm-patient-detail-header-name.wm-patient-detail-header-name-action:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--wm-accent, #0d6b8c) 55%, transparent);
	outline-offset: 2px;
}

.wm-patient-detail-header .wm-patient-detail-consult {
	margin-left: auto;
	flex-shrink: 0;
}

.wm-patient-detail-header .wm-patient-back {
	justify-self: start;
	border: 0;
	box-shadow: none;
	min-height: 1.75rem;
	margin: 0;
	padding: 0.15rem 0.35rem 0.15rem 0.2rem;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--wm-muted, #5b6b75);
	border-radius: 6px;
}

.wm-patient-detail-header .wm-patient-back:hover,
.wm-patient-detail-header .wm-patient-back:focus-visible {
	color: inherit;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, transparent);
}

.wm-patient-detail-header .wm-patient-back .wm-icon {
	width: 16px;
	height: 16px;
	opacity: 0.85;
}

.wm-patient-detail-header .wm-section-title {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.wm-patient-chart-view-toggle {
	display: inline-flex;
	flex-shrink: 0;
	margin-left: auto;
	align-items: center;
	gap: 0;
	padding: 2px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 18%, transparent);
}

.wm-patient-chart-view-btn {
	border: 0;
	background: transparent;
	margin: 0;
	padding: 0.35rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wm-muted, #5b6b75);
	border-radius: 6px;
	cursor: pointer;
}

.wm-patient-chart-view-btn:hover,
.wm-patient-chart-view-btn:focus-visible {
	color: inherit;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, transparent);
}

.wm-patient-chart-view-btn.is-active {
	color: var(--wm-ink, #1a2a33);
	background: var(--wm-surface, #fff);
	box-shadow: 0 1px 2px color-mix(in srgb, #000 8%, transparent);
}

.wm-program-billing-rings {
	--wm-code-progress-track: #d1d5db;
	--wm-code-progress-empty-arc: #c4cad1;
	margin: 0.75rem 0 1.25rem;
}

.wm-rpm-transmission-days-hint {
	margin: 0 0 0.65rem;
}

.wm-rpm-main-cards {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0 0 0.25rem;
}

.wm-rpm-main-cards-row {
	--wm-rpm-main-header-h: 5.5rem;
	--wm-rpm-metric-tile: 7.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: var(--wm-rpm-main-header-h) auto 1fr;
	gap: 1rem;
	align-items: stretch;
}

.wm-rpm-main-card-cpt {
	grid-column: 1;
	grid-row: 1 / span 3;
	display: grid;
	grid-template-rows: subgrid;
}

.wm-rpm-main-card-readings {
	grid-column: 2;
	grid-row: 1 / span 3;
	display: grid;
	grid-template-rows: subgrid;
}

.wm-rpm-main-card-cpt .wm-program-billing-rings,
.wm-rpm-main-card-readings .wm-rpm-latest-section {
	display: contents;
}

.wm-rpm-main-card-header {
	grid-row: 1;
	box-sizing: border-box;
	min-height: var(--wm-rpm-main-header-h, 5.5rem);
	height: var(--wm-rpm-main-header-h, 5.5rem);
	padding: 0 0 0.55rem;
	margin: 0;
	min-width: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 72%, transparent);
}

.wm-code-progress-header.wm-rpm-main-card-header {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.35rem;
}

.wm-rpm-main-card-cpt .wm-code-progress-title,
.wm-rpm-main-card-readings .wm-rpm-latest-head .wm-edit-group-title {
	margin: 0;
	min-width: 0;
	font-size: 0.95rem;
	line-height: 1.25;
}

.wm-rpm-main-card-cpt .wm-code-progress-hint {
	margin: 0;
	min-width: 0;
	line-height: 1.35;
	font-size: 0.8125rem;
}

.wm-rpm-main-card-readings .wm-rpm-latest-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	width: 100%;
}

.wm-rpm-main-card-readings .wm-rpm-latest-head .wm-edit-group-title {
	flex: 1 1 12rem;
}

.wm-rpm-main-card-readings .wm-rpm-latest-head-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	flex: 0 0 auto;
	margin-left: auto;
}

.wm-rpm-main-card-cpt .wm-code-progress-panel {
	display: contents;
}

.wm-rpm-main-card-cpt .wm-code-progress-tiles,
.wm-rpm-main-card-readings .wm-rpm-latest-device-row,
.wm-rpm-main-card-readings .wm-rpm-latest-empty {
	grid-row: 2;
	align-self: start;
	margin: 0.65rem 0 0;
	min-width: 0;
}

.wm-rpm-main-card-cpt .wm-code-progress-tiles {
	padding-bottom: 0.5rem;
}

.wm-rpm-main-card-cpt .wm-code-progress-todos {
	grid-row: 3;
	margin: 0.75rem 0 0;
}

@media (orientation: portrait), (max-width: 960px) {
	.wm-rpm-main-cards-row {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.wm-rpm-main-card-cpt,
	.wm-rpm-main-card-readings {
		grid-column: auto;
		grid-row: auto;
		display: flex;
		flex-direction: column;
	}

	.wm-rpm-main-card-cpt .wm-program-billing-rings,
	.wm-rpm-main-card-readings .wm-rpm-latest-section {
		display: block;
	}
}

.wm-rpm-main-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	padding: 0.85rem 1rem 1rem;
	border-radius: 12px;
	border: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 18%, transparent);
	background: var(--wm-panel, #fff);
	box-shadow: 0 2px 8px color-mix(in srgb, #000 6%, transparent);
}

.wm-rpm-main-card .wm-program-billing-rings,
.wm-rpm-main-card .wm-rpm-latest-section {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.wm-rpm-main-card .wm-program-billing-rings {
	margin-bottom: 0;
}

.wm-rpm-main-card .wm-edit-group-title {
	margin: 0;
	padding-top: 0;
	border-top: none;
}

.wm-rpm-main-card .wm-code-progress-panel {
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.wm-rpm-main-card .wm-rpm-latest-device-row {
	margin: 0;
}

.wm-rpm-main-cards-row .wm-code-progress-item,
.wm-rpm-main-card .wm-rpm-latest-device-item {
	flex: 0 0 var(--wm-rpm-metric-tile, 7.5rem);
	width: var(--wm-rpm-metric-tile, 7.5rem);
	min-width: var(--wm-rpm-metric-tile, 7.5rem);
	max-width: var(--wm-rpm-metric-tile, 7.5rem);
}

.wm-rpm-main-cards-row .wm-code-progress-card,
.wm-rpm-main-card .wm-rpm-latest-device-card {
	width: 100%;
	height: var(--wm-rpm-metric-tile, 7.5rem);
	min-height: var(--wm-rpm-metric-tile, 7.5rem);
	box-sizing: border-box;
	gap: 0;
	padding: 0.5rem 0.35rem;
	border-radius: 10px;
	border: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 16%, transparent);
	box-shadow: 0 2px 8px color-mix(in srgb, #000 7%, transparent);
}

.wm-rpm-main-cards-row .wm-code-progress-card {
	justify-content: center;
	align-items: center;
}

.wm-rpm-main-cards-row .wm-code-progress-ring {
	width: 6.15rem;
	height: 6.15rem;
	flex-shrink: 0;
	margin: 0 auto;
}

.wm-rpm-main-cards-row .wm-code-progress-graphic {
	inset: 0;
}

.wm-rpm-main-cards-row .wm-code-progress-svg {
	max-width: 6.15rem;
	max-height: 6.15rem;
}

.wm-rpm-main-cards-row .wm-code-progress-center {
	padding: 0.2rem 0.45rem;
	gap: 0.1rem;
}

.wm-rpm-main-cards-row .wm-code-progress-code {
	font-size: 0.625rem;
	max-width: 4.35rem;
	line-height: 1.1;
}

.wm-rpm-main-cards-row .wm-code-progress-pct {
	font-size: 0.8125rem;
}

.wm-rpm-main-card .wm-rpm-latest-device-card {
	justify-content: center;
}

.wm-rpm-main-card .wm-rpm-latest-device-icon {
	width: 3.25rem;
	height: 3.25rem;
	flex-shrink: 0;
}

.wm-rpm-main-card .wm-rpm-latest-device-icon svg,
.wm-rpm-main-card .wm-rpm-latest-device-icon .wm-icon-rpm-device {
	width: 2rem;
	height: 2rem;
}

.wm-rpm-main-card .wm-rpm-latest-device-title {
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.2;
	max-width: 6.75rem;
	overflow-wrap: anywhere;
}

.wm-rpm-main-card .wm-rpm-latest-device-status {
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.15;
}

.wm-rpm-main-card-head {
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--wm-line);
}

.wm-rpm-main-card-title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.wm-rpm-main-card-head .wm-card-title-row .wm-rpm-main-card-title {
	margin: 0;
}

.wm-rpm-main-card-notes .wm-rpm-review-panel {
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	min-height: 0;
}

.wm-rpm-main-card-notes .wm-rpm-review-panel-notes {
	padding-right: 0.75rem;
	border-right: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 82%, transparent);
}

.wm-rpm-main-card-notes .wm-rpm-review-panel-readings {
	padding-left: 0.75rem;
}

.wm-rpm-main-card-notes .wm-rpm-review-panel-head {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.wm-rpm-main-card-notes .wm-rpm-review-panel-notes {
	gap: 0.75rem;
}

.wm-rpm-main-card-notes .wm-rpm-review-notes-search {
	margin: 0;
}

.wm-rpm-main-card-notes .wm-rpm-review-panel-notes .wm-rpm-review-notes-panel {
	margin-top: 0;
}

.wm-rpm-main-card-notes .wm-rpm-review-panel-readings > .wm-rpm-review-panel-title {
	margin-bottom: 0;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--wm-line);
}

.wm-rpm-main-card-notes .wm-rpm-review-panel-readings > .wm-rpm-review-hint {
	margin: 0.5rem 0 0;
}

.wm-rpm-main-card-notes .wm-rpm-review-readings-panel-host {
	margin-top: 0.65rem;
}

.wm-rpm-main-card-notes .wm-table-panel {
	min-width: 0;
}

.wm-code-progress-panel {
	padding: 1rem 1rem 1.1rem;
	border-radius: 12px;
	background: color-mix(in srgb, var(--wm-surface, #fff) 92%, var(--wm-muted, #5b6b75) 8%);
	border: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 20%, transparent);
	box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent);
}

.wm-code-progress-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0.75rem;
	overflow: visible;
}

.wm-code-progress-todos {
	margin-top: 0.85rem;
	padding-top: 0.65rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 75%, transparent);
}

.wm-code-progress-todos-summary {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wm-ink, #1a2a33);
	list-style: none;
}

.wm-code-progress-todos-summary::-webkit-details-marker {
	display: none;
}

.wm-code-progress-todos-title {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	min-width: 0;
}

.wm-code-progress-todos-chevron {
	flex-shrink: 0;
	margin-left: auto;
	opacity: 0.7;
	transition: transform 140ms ease;
}

.wm-code-progress-todos-chevron.is-open {
	transform: rotate(180deg);
}

.wm-code-progress-todos-label {
	letter-spacing: 0.02em;
}

.wm-code-progress-todos-count {
	flex-shrink: 0;
	min-width: 1.35rem;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 800;
	text-align: center;
	color: var(--wm-ink, #1a2a33);
	background: color-mix(in srgb, var(--wm-accent) 14%, var(--wm-surface, #fff));
}

.wm-code-progress-todos-count.is-clear {
	color: #166534;
	background: color-mix(in srgb, #16a34a 14%, var(--wm-surface, #fff));
}

.wm-code-progress-todo-list {
	list-style: none;
	margin: 0.4rem 0 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.wm-code-progress-todo-item {
	display: grid;
	grid-template-columns: 3.35rem minmax(0, 1fr);
	gap: 0.35rem 0.5rem;
	align-items: start;
	padding: 0.4rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 65%, transparent);
}

.wm-code-progress-todo-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.wm-code-progress-todo-code {
	padding-top: 0.05rem;
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--wm-ink, #1a2a33);
}

.wm-code-progress-todo-text {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--wm-muted, #5b6b75);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem 0.35rem;
}

.wm-code-progress-todo-hint,
.wm-code-progress-todo-action {
	display: inline;
}

.wm-code-progress-todo-hint.is-struck,
.wm-code-progress-todo-action.is-struck {
	text-decoration: line-through;
	opacity: 0.72;
}

.wm-code-progress-todo-vector {
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
	line-height: 1.25;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 11%, var(--wm-surface, #fff));
	white-space: nowrap;
}

.wm-code-progress-todo-item.is-complete .wm-code-progress-todo-code {
	color: var(--wm-muted, #5b6b75);
}

.wm-code-progress-todo-item.is-locked .wm-code-progress-todo-code,
.wm-code-progress-todo-item.is-locked .wm-code-progress-todo-text {
	color: color-mix(in srgb, var(--wm-muted, #5b6b75) 88%, transparent);
}

.wm-code-progress-todo-vector.is-locked {
	color: color-mix(in srgb, var(--wm-muted, #5b6b75) 75%, transparent);
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 8%, var(--wm-surface, #fff));
}

.wm-code-progress-todo-check {
	flex-shrink: 0;
	color: #16a34a;
	margin-left: 0.1rem;
}

.wm-code-progress-todos-empty {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
}

.wm-rpm-main-card .wm-code-progress-todos {
	margin-top: 0;
	padding-top: 0.55rem;
}

.wm-code-progress-tiles {
	min-width: 0;
}

.wm-code-progress-item {
	flex: 1 1 6.5rem;
	min-width: 6.5rem;
	max-width: 8.5rem;
}

.wm-code-progress-card.is-code-progress-inactive {
	opacity: 0.58;
}

.wm-code-progress-card.is-code-progress-inactive .wm-code-progress-code {
	color: var(--wm-muted, #5b6b75);
}

.wm-code-progress-card.is-code-progress-superseded {
	opacity: 0.72;
}

.wm-code-progress-card.is-code-progress-superseded .wm-code-progress-code {
	color: var(--wm-muted, #5b6b75);
}

.wm-code-progress-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 6.75rem;
	padding: 0.95rem 0.75rem 0.85rem;
	border-radius: 10px;
	background: var(--wm-surface, #fff);
	border: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 16%, transparent);
	box-shadow: 0 2px 8px color-mix(in srgb, #000 7%, transparent);
	box-sizing: border-box;
}

.wm-code-progress-ring {
	position: relative;
	width: 5.5rem;
	height: 5.5rem;
	max-width: calc(100% - 0.35rem);
	margin-inline: auto;
}

.wm-code-progress-graphic {
	position: absolute;
	inset: 0.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wm-code-progress-svg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 5.5rem;
	max-height: 5.5rem;
	overflow: visible;
}

.wm-code-progress-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	padding: 0.5rem;
	text-align: center;
	pointer-events: none;
	line-height: 1.15;
}

.wm-code-progress-code {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	max-width: 5.25rem;
	overflow-wrap: anywhere;
	color: var(--wm-ink, #1a2a33);
}

.wm-code-progress-pct {
	font-size: 0.9375rem;
	font-weight: 800;
}

.wm-code-progress-pct.is-tone-empty {
	color: #8a96a0;
}

.wm-code-progress-track {
	stroke: var(--wm-code-progress-track);
}

.wm-code-progress-svg.is-tone-empty .wm-code-progress-arc {
	stroke: var(--wm-code-progress-empty-arc);
}

.wm-code-progress-head {
	pointer-events: none;
}

.wm-card-head-main {
	min-width: 0;
}

.wm-rpm-export-log-dialog {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.wm-rpm-export-log-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
}

.wm-rpm-export-log-month-label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.wm-rpm-export-log-month {
	min-width: 10rem;
}

.wm-rpm-export-log-summary {
	margin: 0;
}

.wm-rpm-export-log-status {
	margin: 0;
}

.wm-rpm-export-log-section {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wm-rpm-export-log-hint {
	margin: 0;
	font-size: 0.75rem;
}

.wm-rpm-export-log-table-wrap {
	max-height: 14rem;
	overflow: auto;
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 80%, transparent);
	border-radius: 8px;
}

.wm-rpm-export-log-table {
	margin: 0;
	font-size: 0.8125rem;
}

.wm-rpm-export-log-table th,
.wm-rpm-export-log-table td {
	padding: 0.35rem 0.5rem;
	vertical-align: top;
}

.wm-rpm-export-log-when {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.wm-form-dialog--rpm-billing {
	max-width: min(1120px, 96vw);
}

.wm-rpm-billing-log-dialog {
	gap: 1rem;
}

.wm-rpm-billing-log-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.wm-rpm-billing-log-toolbar-start {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.wm-rpm-billing-month-nav.is-next svg {
	transform: rotate(180deg);
}

.wm-rpm-billing-log-month-title {
	font-weight: 600;
	font-size: 0.95rem;
	min-width: 10rem;
	text-align: center;
}

.wm-rpm-billing-cpt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 0.5rem;
}

.wm-rpm-billing-cpt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	min-height: 5.5rem;
	padding: 0.5rem 0.35rem;
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 85%, transparent);
	border-radius: 8px;
	background: var(--wm-surface, #fff);
	text-align: center;
}

.wm-rpm-billing-cpt-card.is-inactive {
	opacity: 0.55;
}

.wm-rpm-billing-cpt-card.is-met {
	border-color: color-mix(in srgb, #16a34a 45%, var(--wm-line, #dcdcde));
}

.wm-rpm-billing-cpt-code {
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.2;
}

.wm-rpm-billing-cpt-check {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	color: #16a34a;
}

.wm-rpm-billing-cpt-metric-label {
	font-size: 0.65rem;
	color: var(--wm-muted, #646970);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.wm-rpm-billing-cpt-metric-value {
	font-size: 1.05rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.wm-rpm-billing-log-tables {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

@media (max-width: 900px) {
	.wm-rpm-billing-log-tables {
		grid-template-columns: 1fr;
	}
}

.wm-rpm-billing-log-panel {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.wm-rpm-billing-log-search {
	width: 100%;
}

.wm-rpm-billing-log-table-wrap {
	max-height: 16rem;
	overflow: auto;
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 80%, transparent);
	border-radius: 8px;
}

.wm-rpm-billing-log-table {
	margin: 0;
	font-size: 0.8125rem;
}

.wm-rpm-billing-log-table th,
.wm-rpm-billing-log-table td {
	padding: 0.4rem 0.5rem;
	vertical-align: top;
}

.wm-rpm-billing-log-table-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem 0.75rem;
	font-size: 0.75rem;
	color: var(--wm-muted, #646970);
}

.wm-rpm-billing-log-pagesize-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.wm-rpm-billing-log-pagesize {
	min-width: 4.5rem;
	padding: 0.15rem 0.35rem;
	font-size: 0.75rem;
}

.wm-vitals-add-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.wm-form-dialog-body:has(> .wm-vitals-bt-capture) {
	display: flex;
	flex-direction: column;
}

.wm-form-dialog.wm-vitals-bt-dialog {
	width: min(40rem, calc(100vw - 2rem));
	height: min(32rem, 88vh);
}

.wm-form-dialog.wm-vitals-bt-dialog .wm-form-dialog-head {
	gap: 0.4rem;
	padding: 0.35rem 0.7rem;
}

.wm-form-dialog.wm-vitals-bt-dialog .wm-form-dialog-title {
	font-size: 0.92rem;
	line-height: 1.2;
}

.wm-form-dialog.wm-vitals-bt-dialog .wm-form-dialog-close,
.wm-consult-app .wm-form-dialog.wm-vitals-bt-dialog .wm-info-help-btn {
	width: 1.65rem;
	min-width: 1.65rem;
	height: 1.65rem;
	min-height: 1.65rem;
	padding: 0;
	font-size: 0.9rem;
}

.wm-form-dialog.wm-vitals-bt-dialog .wm-form-dialog-body {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0.6rem 0.7rem 0.65rem;
}

.wm-vitals-bt-capture {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	width: 100%;
	min-height: 0;
	text-align: center;
}

.wm-vitals-bt-stage {
	display: grid;
	grid-template-columns: 16.5rem minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	gap: 0.65rem;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.wm-vitals-bt-rail {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 0;
	min-width: 0;
}

.wm-vitals-bt-rail-rule {
	flex: 0 0 1px;
	align-self: stretch;
	width: 1px;
	margin: 0.35rem 0;
	background: #e3e8ec;
}

.wm-vitals-bt-stage-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	text-align: center;
}

.wm-vitals-bt-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.7rem;
	border-top: 1px solid var(--wm-line, #dcdcde);
}

.wm-vitals-bt-bl {
	--wm-bl-orb: #9aa3aa;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.18rem 0.7rem 0.18rem 0.18rem;
	border: 1px solid #e6ebef;
	border-radius: 999px;
	background: #f4f7f8;
	color: #3c4a52;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	text-align: left;
}

.wm-vitals-bt-bl.is-scanning,
.wm-vitals-bt-bl.is-connecting,
.wm-vitals-bt-bl.is-fetching {
	--wm-bl-orb: #3d6e8c;
}

.wm-vitals-bt-bl.is-off {
	--wm-bl-orb: #8d8681;
	color: #6d6560;
}

.wm-vitals-bt-bl-orb {
	position: relative;
	display: grid;
	place-items: center;
	width: 1.65rem;
	height: 1.65rem;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--wm-bl-orb);
	color: #fff;
}

.wm-vitals-bt-bl-orb > .wm-icon {
	position: relative;
	z-index: 1;
	width: 0.85rem;
	height: 0.85rem;
	color: #fff;
}

.wm-vitals-bt-bl-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid transparent;
}

.wm-vitals-bt-bl.is-off .wm-vitals-bt-bl-orb::after {
	content: '';
	position: absolute;
	z-index: 2;
	width: 1.15rem;
	height: 1.5px;
	border-radius: 2px;
	background: #fff;
	transform: rotate(-42deg);
}

.wm-vitals-bt-bl.is-scanning .wm-vitals-bt-bl-orb {
	animation: wm-vitals-bt-bl-ripple 1.8s ease-out infinite;
}

.wm-vitals-bt-bl.is-connecting .wm-vitals-bt-bl-ring {
	border-color: rgba(255, 255, 255, 0.28);
	border-top-color: #fff;
	animation: wm-vitals-bt-bl-spin 0.9s linear infinite;
}

.wm-vitals-bt-bl.is-fetching .wm-vitals-bt-bl-orb {
	animation: wm-vitals-bt-bl-beat 1.2s ease-in-out infinite;
}

@keyframes wm-vitals-bt-bl-ripple {
	0% { box-shadow: 0 0 0 0 rgba(61, 110, 140, 0.38); }
	70%, 100% { box-shadow: 0 0 0 7px rgba(61, 110, 140, 0); }
}

@keyframes wm-vitals-bt-bl-spin {
	to { transform: rotate(360deg); }
}

@keyframes wm-vitals-bt-bl-beat {
	0%, 100% { box-shadow: 0 0 0 0 rgba(61, 110, 140, 0.35); }
	50% { box-shadow: 0 0 0 5px rgba(61, 110, 140, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.wm-vitals-bt-bl-ring,
	.wm-vitals-bt-bl-orb {
		animation: none !important;
	}
}

.wm-vitals-bt-pair-row {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin: 0;
}

.wm-vitals-bt-pair-row .wm-vitals-bt-pair-btn {
	margin: 0;
}

.wm-vitals-bt-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
	margin: 0.6rem 0 0;
	color: var(--wm-accent);
}

.wm-vitals-bt-scan-label,
.wm-vitals-bt-scan-note {
	display: none;
	max-width: 100%;
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
	color: var(--wm-muted, #5b6b75);
}

.wm-vitals-bt-scan-label {
	margin-top: 0.35rem;
}

.wm-vitals-bt-visual.is-busy .wm-vitals-bt-scan-label,
.wm-vitals-bt-visual.is-busy .wm-vitals-bt-scan-note {
	display: block;
}

.wm-vitals-bt-scan-badge {
	display: grid;
	place-items: center;
	width: 6rem;
	height: 6rem;
}

.wm-vitals-bt-scan-badge > * {
	grid-area: 1 / 1;
}

.wm-vitals-bt-scan-badge > .wm-icon {
	z-index: 1;
}

.wm-vitals-bt-scan-ring {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wm-accent) 16%, #fff);
}

.wm-vitals-bt-scan-ring.is-outer {
	width: 6rem;
	height: 6rem;
	background: color-mix(in srgb, var(--wm-accent) 8%, #fff);
	opacity: 0;
}

.wm-rpm-device-capture .wm-vitals-bt-visual > .wm-icon {
	padding: 1.1rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wm-accent) 12%, transparent);
}

.wm-vitals-bt-spo2-ring {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	width: 8.5rem;
	flex-shrink: 0;
}

.wm-vitals-bt-spo2-ring > .wm-vitals-bt-spo2-svg {
	width: 8.5rem;
	height: 8.5rem;
}

.wm-vitals-bt-spo2-meta {
	display: flex;
	justify-content: center;
	gap: 1.1rem;
	width: 100%;
}

.wm-vitals-bt-spo2-meta-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.1rem;
	min-width: 2.75rem;
}

.wm-vitals-bt-spo2-meta-value {
	font-size: 1rem;
	font-weight: 650;
	line-height: 1;
	color: var(--wm-ink, inherit);
	font-variant-numeric: tabular-nums;
}

.wm-vitals-bt-spo2-meta-label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--wm-muted, #5b6b75);
}

.wm-vitals-bt-spo2-ring[hidden] {
	display: none !important;
}

.wm-vitals-bt-spo2-svg {
	display: block;
	width: 100%;
	height: 100%;
}

.wm-vitals-bt-spo2-bg {
	stroke: color-mix(in srgb, var(--wm-accent) 18%, transparent);
}

.wm-vitals-bt-spo2-fg {
	stroke: var(--wm-accent);
	transition: stroke-dasharray 0.25s ease;
}

.wm-vitals-bt-spo2-center {
	position: absolute;
	top: 0;
	left: 0;
	width: 8.5rem;
	height: 8.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.05rem;
	pointer-events: none;
}

.wm-vitals-bt-spo2-value {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wm-ink, inherit);
	font-variant-numeric: tabular-nums;
}

.wm-vitals-bt-spo2-unit {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wm-muted, #5b6b75);
	letter-spacing: 0.02em;
}

.wm-vitals-bt-visual.is-busy .wm-vitals-bt-scan-ring {
	animation: wm-vitals-bt-halo 1.5s ease-in-out infinite;
}

.wm-vitals-bt-visual.is-busy .wm-vitals-bt-scan-ring.is-outer {
	animation: wm-vitals-bt-ripple 1.5s ease-out infinite;
}

@keyframes wm-vitals-bt-halo {
	0%, 100% { transform: scale(0.9); }
	50% { transform: scale(1); }
}

@keyframes wm-vitals-bt-ripple {
	0% { transform: scale(0.78); opacity: 0; }
	18% { opacity: 0.9; }
	100% { transform: scale(1.12); opacity: 0; }
}
.wm-vitals-bt-device {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.3rem 0.55rem;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
	line-height: 1.3;
	text-align: center;
}

.wm-vitals-bt-device-cards {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.4rem;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	scrollbar-width: thin;
}

.wm-vitals-bt-device-cards[hidden] {
	display: none !important;
}

@media (max-width: 640px) {
	.wm-vitals-bt-stage {
		grid-template-columns: minmax(0, 1fr);
	}

	.wm-vitals-bt-rail {
		max-height: 9.5rem;
	}

	.wm-vitals-bt-rail-rule {
		display: none;
	}
}

.wm-vitals-bt-device-toggle {
	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1.35rem minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 0.4rem;
	row-gap: 0.05rem;
	flex: 0 0 auto;
	width: 100%;
	min-height: 2.85rem;
	padding: 0.4rem 1.05rem 0.4rem 0.45rem;
	scroll-snap-align: start;
	border: 1px solid var(--wm-border, var(--wm-line, #dcdcde));
	border-radius: 0.7rem;
	background: var(--wm-panel, #fff);
	color: var(--wm-ink, inherit);
	text-align: left;
	cursor: pointer;
}

.wm-vitals-bt-device-toggle > .wm-icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 1.35rem;
	height: 1.35rem;
}

.wm-vitals-bt-card-copy {
	display: contents;
}

.wm-vitals-bt-card-brand,
.wm-vitals-bt-card-type {
	max-width: 100%;
}

.wm-vitals-bt-card-brand {
	grid-column: 2;
	grid-row: 1;
	overflow: hidden;
	font-size: 0.75rem;
	font-weight: 650;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wm-vitals-bt-card-type {
	grid-column: 2;
	grid-row: 2;
	overflow: hidden;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wm-muted, #5b6b75);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wm-vitals-bt-card-reading {
	grid-column: 3;
	grid-row: 1 / span 2;
	align-self: stretch;
	display: flex;
	align-items: center;
	margin-left: 0.15rem;
	padding-left: 0.5rem;
	border-left: 1px solid #e3e8ec;
	font-size: 0.6875rem;
	font-weight: 650;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wm-vitals-bt-card-reading.is-empty {
	color: var(--wm-muted, #5b6b75);
	font-weight: 600;
}

.wm-vitals-bt-device-toggle.is-available::after {
	content: '';
	position: absolute;
	top: 0.28rem;
	right: 0.28rem;
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50%;
	background: var(--wm-accent);
	box-shadow: 0 0 0 2px var(--wm-panel, #fff);
}

.wm-vitals-bt-device-toggle.is-selected {
	border-color: var(--wm-accent);
	background: color-mix(in srgb, var(--wm-accent) 14%, transparent);
	color: var(--wm-accent);
}

.wm-vitals-bt-device-lock {
	position: absolute;
	right: 0.18rem;
	bottom: 0.18rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	background: var(--wm-panel, #fff);
	color: var(--wm-muted, #5b6b75);
}

.wm-vitals-bt-device-lock .wm-icon {
	width: 0.62rem;
	height: 0.62rem;
}

.wm-vitals-bt-device-toggle:disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

.wm-vitals-bt-device-toggle.is-available:disabled,
.wm-vitals-bt-device-toggle.is-locked,
.wm-vitals-bt-device-toggle.is-locked:disabled {
	opacity: 1;
	cursor: pointer;
}

.wm-vitals-bt-device[hidden],
.wm-vitals-bt-device .wm-pill[hidden],
.wm-vitals-bt-wait[hidden],
.wm-vitals-bt-device-brand[hidden],
.wm-vitals-bt-live[hidden] {
	display: none !important;
}

.wm-vitals-bt-device-name {
	font-weight: 650;
	color: var(--wm-ink, inherit);
}

.wm-vitals-bt-device-brand {
	color: var(--wm-muted, #5b6b75);
}

.wm-vitals-bt-device-brand:not([hidden])::before {
	content: '·';
	margin-right: 0.55rem;
	color: var(--wm-muted, #5b6b75);
}

.wm-vitals-bt-wait {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--wm-accent);
	font-weight: 550;
}

.wm-vitals-bt-wait::before {
	content: '';
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--wm-accent);
	animation: wm-vitals-bt-wait-pulse 1.2s ease-in-out infinite;
}

.wm-vitals-bt-live {
	margin: 0.15rem 0 0;
	font-size: 2rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--wm-ink, inherit);
	text-align: center;
}

@keyframes wm-vitals-bt-wait-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.35; transform: scale(0.75); }
}

@media (prefers-reduced-motion: reduce) {
	.wm-vitals-bt-wait::before,
	.wm-vitals-bt-visual.is-busy .wm-vitals-bt-scan-ring {
		animation: none;
	}

	.wm-vitals-bt-visual.is-busy .wm-vitals-bt-scan-ring.is-outer {
		opacity: 0.85;
	}
}

.wm-vitals-bt-visual[hidden] {
	display: none !important;
}

.wm-vitals-bt-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.wm-vitals-bt-actions > .wm-btn[hidden] {
	display: none !important;
}

.wm-vitals-bt-pair-btn {
	font-weight: 600;
	min-height: 2.25rem;
}

.wm-vitals-bt-confirm {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	max-width: 28rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--wm-border);
	border-radius: var(--wm-radius);
	background: color-mix(in srgb, var(--wm-surface) 92%, var(--wm-accent));
	text-align: center;
}

.wm-vitals-bt-confirm-summary {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	text-align: center;
}

.wm-vitals-bt-confirm-warn {
	margin: 0;
	max-width: 24rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--wm-ink, inherit);
}

.wm-vitals-bt-os-pair {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	max-width: 26rem;
	margin: 0.5rem auto 0;
}

/* display:flex above beats the [hidden] attribute, so the box showed on every scan. */
.wm-vitals-bt-os-pair[hidden] {
	display: none;
}

.wm-vitals-bt-os-pair-steps {
	margin: 0;
	padding-left: 1.25rem;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: left;
}

.wm-vitals-bt-os-pair-btn {
	margin: 0;
}

.wm-vitals-bt-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	width: 100%;
}

.wm-vitals-bt-footnote {
	margin: 0;
	max-width: 28rem;
	font-size: 0.8125rem;
	text-align: center;
}

.wm-vitals-bt-captured {
	margin: 0;
	max-width: 28rem;
	font-size: 0.875rem;
	text-align: center;
}

.wm-assign-devices-panel {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 16rem;
	max-width: min(26rem, calc(100vw - 2rem));
	padding: 0.15rem 0;
}

.wm-popover-point-to-trigger .wm-assign-devices-panel {
	padding-top: 0.1rem;
}

.wm-assign-devices-menu-item {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	width: 100%;
	margin: 0;
	padding: 0.55rem 0.65rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

.wm-assign-devices-menu-item:hover:not(:disabled),
.wm-assign-devices-menu-item:focus-visible:not(:disabled) {
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 10%, transparent);
}

.wm-assign-devices-menu-item:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.wm-assign-devices-menu-item-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.wm-assign-devices-menu-item-label {
	font-size: 0.875rem;
	font-weight: 600;
}

.wm-assign-devices-menu-item-desc {
	font-size: 0.75rem;
	line-height: 1.35;
}

.wm-assign-devices-section-label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wm-muted, #5b6b75);
}

.wm-assign-devices-divider {
	height: 1px;
	margin: 0.15rem 0;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 18%, transparent);
}

.wm-assign-devices-list {
	margin: 0;
	padding: 0 0 0 1rem;
	font-size: 0.8125rem;
}

.wm-assign-devices-assigned-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wm-assign-devices-assigned-cards-item {
	margin: 0;
	padding: 0;
}

.wm-assign-devices-menu-card,
.wm-assign-devices-assigned-card {
	border: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 22%, transparent);
	border-radius: 10px;
	background: var(--wm-surface, #fff);
	overflow: hidden;
}

.wm-assign-devices-enable-head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.65rem 0.35rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 14%, transparent);
}

.wm-assign-devices-enable-head svg,
.wm-assign-devices-enable-head .wm-icon-rpm-device {
	color: var(--wm-accent);
	flex-shrink: 0;
}

.wm-assign-devices-enable-title {
	margin: 0;
}

.wm-assign-devices-enable-body {
	padding: 0.55rem 0.65rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wm-assign-devices-enable-body .wm-assign-devices-thresholds {
	margin: 0;
}

.wm-assign-devices-enable-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.65rem 0.6rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, transparent);
}

.wm-assign-devices-assigned-summary {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5rem 0.65rem;
	padding: 0.55rem 0.65rem;
	cursor: pointer;
	list-style: none;
	font-size: 0.8125rem;
}

.wm-assign-devices-assigned-summary::-webkit-details-marker {
	display: none;
}

.wm-assign-devices-assigned-summary .wm-icon-rpm-device,
.wm-assign-devices-assigned-summary svg {
	color: var(--wm-accent);
	flex-shrink: 0;
}

.wm-assign-devices-assigned-summary-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.wm-assign-devices-assigned-title {
	font-weight: 600;
	line-height: 1.25;
}

.wm-assign-devices-assigned-meta {
	font-size: 0.75rem;
	line-height: 1.3;
}

.wm-assign-devices-assigned-chevron {
	flex-shrink: 0;
	color: var(--wm-muted, #5b6b75);
	transition: transform 0.15s ease;
}

.wm-assign-devices-assigned-chevron.is-open {
	transform: rotate(180deg);
}

.wm-assign-devices-assigned-body {
	padding: 0 0.65rem 0.65rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 14%, transparent);
}

.wm-assign-devices-assigned-body .wm-assign-devices-thresholds {
	margin-top: 0.55rem;
}

.wm-assign-devices-reminder-block {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wm-assign-devices-reminder-label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wm-muted, #5b6b75);
}

.wm-assign-devices-assigned-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.15rem;
	padding-top: 0.5rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, transparent);
}

.wm-assign-devices-assigned-foot .wm-rpm-reminder-automatic {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: auto;
	font-size: 0.8125rem;
	cursor: pointer;
}

.wm-assign-devices-remove {
	color: #d64545;
}

.wm-assign-devices-card-error {
	margin: 0;
	font-size: 0.8125rem;
}

.wm-assign-devices-empty {
	margin: 0;
	font-size: 0.8125rem;
}

.wm-assign-devices-register-btn {
	align-self: flex-start;
}

.wm-assign-devices-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.wm-assign-devices-assigned-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.wm-assign-devices-edit-thresholds {
	margin-left: auto;
}

.wm-assign-devices-thresholds-nested {
	margin-top: 0.35rem;
}

.wm-assign-devices-threshold-hint {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.35;
}

.wm-assign-devices-panel .wm-assign-devices-thresholds {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 0.75rem;
}

.wm-assign-devices-panel .wm-rpm-threshold-field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.8125rem;
}

.wm-vitals-bt-actions .wm-anchored-menu-wrap {
	display: inline-flex;
}

.wm-rpm-latest-device-row {
	list-style: none;
	margin: 0.5rem 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	overflow: visible;
}

.wm-rpm-latest-device-item {
	flex: 1 1 8.5rem;
	min-width: 8.5rem;
	max-width: 12.5rem;
}

.wm-rpm-latest-device-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.65rem;
	width: 100%;
	min-height: 9.5rem;
	margin: 0;
	padding: 1.15rem 0.75rem 1rem;
	border: 0;
	border-radius: 12px;
	background: var(--wm-surface, #fff);
	box-shadow: 0 2px 10px color-mix(in srgb, #000 8%, transparent);
	text-align: center;
	color: inherit;
	font: inherit;
}

.wm-rpm-latest-device-card.is-interactive {
	cursor: pointer;
}

.wm-rpm-latest-device-card.is-interactive:hover,
.wm-rpm-latest-device-card.is-interactive:focus-visible {
	box-shadow: 0 4px 14px color-mix(in srgb, var(--wm-accent) 18%, transparent);
	outline: 2px solid color-mix(in srgb, var(--wm-accent) 35%, transparent);
	outline-offset: 2px;
}

.wm-rpm-latest-device-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wm-accent);
}

.wm-icon-rpm-device {
	display: block;
	flex-shrink: 0;
}

.wm-assign-devices-menu-item .wm-icon-rpm-device {
	color: var(--wm-accent);
}

.wm-rpm-latest-device-title {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.25;
}

.wm-rpm-latest-device-status {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
}

.wm-rpm-latest-device-status.is-empty {
	color: #d64545;
}

.wm-rpm-latest-device-status.has-value {
	color: var(--wm-ink, #1a2a33);
}

.wm-rpm-assigned-devices {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
}

.wm-rpm-assigned-device-card {
	border-radius: 12px;
	background: var(--wm-surface, #fff);
	box-shadow: 0 2px 10px color-mix(in srgb, #000 8%, transparent);
	overflow: hidden;
}

.wm-rpm-assigned-device-summary {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 0.85rem 1rem;
	cursor: pointer;
	list-style: none;
}

.wm-rpm-assigned-device-summary::-webkit-details-marker {
	display: none;
}

.wm-rpm-assigned-device-card[open] > .wm-rpm-assigned-device-summary {
	border-bottom: 1px solid color-mix(in srgb, var(--wm-ink, #1a2a33) 10%, transparent);
}

.wm-rpm-assigned-device-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wm-accent);
	flex-shrink: 0;
}

.wm-rpm-assigned-device-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.wm-rpm-assigned-device-title {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25;
}

.wm-rpm-assigned-device-status {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
}

.wm-rpm-assigned-device-status.is-empty {
	color: #d64545;
}

.wm-rpm-assigned-device-status.has-value {
	color: var(--wm-ink, #1a2a33);
}

.wm-rpm-assigned-device-chevron {
	flex-shrink: 0;
	color: var(--wm-muted-ink, #5a6a73);
	transition: transform 0.15s ease;
}

.wm-rpm-assigned-device-chevron.is-open {
	transform: rotate(180deg);
}

.wm-rpm-assigned-device-body {
	padding: 0.85rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.wm-rpm-assigned-device-body .wm-assign-devices-thresholds {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 0.75rem;
}

.wm-rpm-assigned-device-body .wm-rpm-threshold-field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.8125rem;
}

.wm-rpm-assigned-device-section-title {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wm-muted-ink, #5a6a73);
}

.wm-rpm-assigned-device-hint {
	margin: 0;
	font-size: 0.8125rem;
}

.wm-rpm-reminder-fields {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.wm-rpm-reminder-schedule-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.wm-rpm-reminder-times {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem 0.75rem;
}

.wm-rpm-reminder-time-field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.8125rem;
}

.wm-rpm-assigned-device-quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wm-rpm-assigned-device-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-top: 0.15rem;
	padding-top: 0.65rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-ink, #1a2a33) 8%, transparent);
}

.wm-rpm-assigned-device-foot .wm-rpm-reminder-automatic {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: auto;
	margin-right: 0;
	font-size: 0.8125rem;
	cursor: pointer;
}

.wm-rpm-assigned-device-foot .wm-btn-primary {
	margin-left: 0;
}

.wm-rpm-assigned-device-unassign {
	color: #d64545;
}

.wm-rpm-latest-section {
	margin: 0.5rem 0 1rem;
}

.wm-rpm-latest-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 0.65rem;
}

.wm-rpm-latest-head .wm-edit-group-title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.wm-rpm-latest-head .wm-anchored-menu-wrap {
	margin-left: auto;
	flex-shrink: 0;
}

.wm-rpm-latest-head-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	margin-left: auto;
	flex-shrink: 0;
}

.wm-rpm-device-detail {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 0;
}

.wm-rpm-trend-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
}

.wm-rpm-trend-toolbar-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 0.9375rem;
}

.wm-rpm-trend-toolbar-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem 0.85rem;
}

.wm-rpm-trend-view-toggle .wm-btn {
	min-width: 4.25rem;
}

.wm-rpm-trend-graph-controls {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.85rem;
}

.wm-rpm-trend-graph-panel,
.wm-rpm-trend-table-panel {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.wm-rpm-trend-graph-panel[hidden],
.wm-rpm-trend-table-panel[hidden],
.wm-rpm-trend-graph-controls[hidden] {
	display: none !important;
}

.wm-rpm-trend-table-panel:not([hidden]) .wm-rpm-trend-table-wrap {
	max-height: 18rem;
}

.wm-rpm-trend-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8125rem;
	white-space: nowrap;
	cursor: pointer;
}

.wm-rpm-trend-range-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8125rem;
}

.wm-rpm-trend-range {
	min-width: 7.5rem;
}

.wm-rpm-trend-chart-wrap {
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
	background: color-mix(in srgb, var(--wm-surface, #fff) 94%, var(--wm-muted, #5b6b75) 6%);
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 80%, transparent);
}

.wm-rpm-trend-chart {
	display: block;
	width: 100%;
	height: auto;
}

.wm-rpm-trend-grid {
	stroke: color-mix(in srgb, var(--wm-line, #dcdcde) 85%, transparent);
	stroke-width: 1;
}

.wm-rpm-trend-axis {
	fill: var(--wm-muted, #5b6b75);
	font-size: 11px;
}

.wm-rpm-trend-threshold-label {
	font-size: 11px;
	font-weight: 600;
}

.wm-rpm-trend-empty {
	fill: var(--wm-muted, #5b6b75);
	font-size: 13px;
}

.wm-rpm-trend-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	justify-content: center;
	font-size: 0.8125rem;
}

.wm-rpm-trend-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.wm-rpm-trend-legend-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	flex-shrink: 0;
}

.wm-rpm-trend-table-wrap {
	max-height: 14rem;
	overflow: auto;
}

.wm-rpm-trend-status {
	margin: 0;
	font-size: 0.875rem;
}

.wm-rpm-latest-empty {
	margin: 0;
	font-size: 0.875rem;
}

.wm-rpm-recent-readings-review {
	margin-top: 0.75rem;
}

.wm-rpm-recent-readings-review > .wm-edit-group-title {
	margin-bottom: 0.5rem;
}

.wm-rpm-readings-review {
	display: grid;
	grid-template-columns: minmax(9rem, 0.78fr) minmax(18rem, 1.45fr);
	gap: 0.75rem;
	align-items: stretch;
	min-height: 18rem;
}

@media (max-width: 1100px) {
	.wm-rpm-readings-review {
		grid-template-columns: 1fr;
		min-height: 0;
	}
}

.wm-rpm-review-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	padding: 0.75rem;
	border-radius: 12px;
	border: 1px solid color-mix(in srgb, var(--wm-muted, #5b6b75) 18%, transparent);
	background: var(--wm-panel, #fff);
	box-shadow: 0 2px 8px color-mix(in srgb, #000 6%, transparent);
}

.wm-rpm-review-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.wm-rpm-review-panel-head .wm-rpm-review-panel-title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.wm-rpm-review-new-note {
	flex: 0 0 auto;
	white-space: nowrap;
}

.wm-rpm-review-panel-title {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--wm-muted, #5b6b75);
}

.wm-rpm-review-compose {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.wm-form-dialog-body .wm-rpm-review-compose-body {
	min-height: 12rem;
}

.wm-rpm-review-notes-search {
	width: 100%;
	margin-bottom: 0;
	box-sizing: border-box;
}

.wm-rpm-review-panel-notes .wm-rpm-review-notes-panel {
	margin-top: 0.65rem;
}

.wm-rpm-review-panel-notes .wm-rpm-review-notes-panel .wm-table-scroll-region {
	padding-top: 0.15rem;
}

.wm-rpm-readings-review .wm-note-list {
	margin: 0;
	max-height: none;
	padding: 0;
	border: none;
	background: transparent;
	overflow: visible;
}

.wm-rpm-readings-review .wm-note,
.wm-rpm-readings-review .wm-note:nth-child(even) {
	background: var(--wm-panel, #fff);
}

.wm-rpm-review-notes-list .wm-note {
	min-width: 0;
}

.wm-rpm-review-hint {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
}

.wm-rpm-readings-review .wm-table-scroll-region .wm-patient-table th,
.wm-rpm-readings-review .wm-table-scroll-region .wm-patient-table tbody td {
	padding: 0 0.75rem;
	line-height: 1.25;
}

.wm-rpm-readings-review .wm-table-scroll-region .wm-patient-table th.wm-table-col-shrink,
.wm-rpm-readings-review .wm-table-scroll-region .wm-patient-table td.wm-table-col-shrink {
	max-width: 14rem;
	width: auto;
	min-width: 5rem;
}

.wm-rpm-review-readings-table .wm-rpm-reading-source {
	font-size: 0.8125rem;
	color: var(--wm-muted, #5b6b75);
	white-space: nowrap;
}

.wm-rpm-review-readings-table .wm-rpm-reading-actions {
	width: 2.25rem;
	padding-left: 0.25rem;
	padding-right: 0.25rem;
	text-align: center;
	white-space: nowrap;
}

.wm-rpm-readings-review .wm-rpm-reading-add-note.wm-btn {
	min-width: 0;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: none;
	box-shadow: none;
	background: transparent;
	color: var(--wm-accent);
}

.wm-rpm-readings-review .wm-rpm-reading-add-note.wm-btn:hover:not(:disabled),
.wm-rpm-readings-review .wm-rpm-reading-add-note.wm-btn:focus-visible {
	background: color-mix(in srgb, var(--wm-accent) 10%, transparent);
}

.wm-rpm-reading-add-note.is-cited {
	opacity: 0.45;
	color: var(--wm-muted, #5b6b75);
}

.wm-rpm-review-readings-table tr.is-cited {
	background: color-mix(in srgb, var(--wm-success, #16a34a) 8%, transparent);
}

.wm-rpm-review-readings-table tr.is-alert-focus {
	background: color-mix(in srgb, var(--wm-danger, #dc2626) 14%, transparent);
	box-shadow: inset 3px 0 0 var(--wm-danger, #dc2626);
}

.wm-rpm-review-note-item {
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 80%, transparent);
}

.wm-rpm-review-note-toggle {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.15rem 0.35rem;
	align-items: start;
	width: 100%;
	margin: 0;
	padding: 0.5rem 0.15rem;
	border: 0;
	background: transparent;
	text-align: left;
	font: inherit;
	cursor: pointer;
}

.wm-rpm-review-note-title {
	grid-column: 1;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
}

.wm-rpm-review-note-meta {
	grid-column: 1;
	font-size: 0.75rem;
	color: var(--wm-muted, #5b6b75);
}

.wm-rpm-review-note-chevron {
	grid-column: 2;
	grid-row: 1 / span 2;
	opacity: 0.65;
	transition: transform 140ms ease;
}

.wm-rpm-review-note-chevron.is-open {
	transform: rotate(180deg);
}

.wm-rpm-review-note-body {
	padding: 0 0 0.65rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	white-space: pre-wrap;
}

.wm-rpm-review-field {
	display: grid;
	gap: 0.25rem;
	margin-bottom: 0.5rem;
}

.wm-rpm-review-field .wm-select,
.wm-rpm-review-field .wm-invite-input {
	width: 100%;
	box-sizing: border-box;
}

.wm-rpm-review-compose-body {
	flex: 1 1 auto;
	min-height: 8rem;
	width: 100%;
	resize: vertical;
	box-sizing: border-box;
}

.wm-rpm-review-panel-compose {
	display: flex;
	flex-direction: column;
}

.wm-form-dialog-foot .wm-rpm-note-dialog-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem 1rem;
	width: 100%;
}

.wm-rpm-note-dialog-toggles {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.15rem;
	margin-right: auto;
}

.wm-rpm-note-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8125rem;
	line-height: 1.25;
	cursor: pointer;
	user-select: none;
}

.wm-rpm-note-toggle-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wm-rpm-note-toggle-track {
	position: relative;
	flex-shrink: 0;
	width: 2.15rem;
	height: 1.2rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 35%, #e8eaed);
	transition: background-color 140ms ease;
}

.wm-rpm-note-toggle-track::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: calc(1.2rem - 4px);
	height: calc(1.2rem - 4px);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.18);
	transition: transform 140ms ease;
}

.wm-rpm-note-toggle-input:checked + .wm-rpm-note-toggle-track {
	background: var(--wm-accent, #b42318);
}

.wm-rpm-note-toggle-input:checked + .wm-rpm-note-toggle-track::after {
	transform: translateX(0.95rem);
}

.wm-rpm-note-toggle-input:focus-visible + .wm-rpm-note-toggle-track {
	outline: 2px solid color-mix(in srgb, var(--wm-accent, #b42318) 45%, transparent);
	outline-offset: 2px;
}

.wm-rpm-note-toggle-label {
	color: var(--wm-ink, #1a2a33);
}

.wm-rpm-review-save-row {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.35rem;
}

.wm-rpm-review-save {
	min-width: 5.5rem;
}

.wm-rpm-capture-steps {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	justify-content: center;
}

.wm-rpm-capture-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	min-width: 4.5rem;
	opacity: 0.55;
	font-size: 0.75rem;
}

.wm-rpm-capture-step.is-current {
	opacity: 1;
	font-weight: 600;
}

.wm-rpm-capture-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 14%, transparent);
	font-weight: 700;
}

.wm-rpm-capture-step.is-current .wm-rpm-capture-step-num {
	background: var(--wm-accent);
	color: #fff;
}

.wm-rpm-device-capture-copy {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
}

.wm-rpm-all-devices-capture {
	display: grid;
	gap: 0.75rem;
	max-height: min(70vh, 32rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.wm-rpm-all-devices-capture-block--sep {
	padding-top: 0.75rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
}

.wm-patient-meta {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: 0.45rem 1rem;
	margin: 0.65rem 0 0;
}

.wm-patient-meta dt {
	margin: 0;
	font-weight: 600;
	color: var(--wm-muted, inherit);
	opacity: 0.9;
}

.wm-patient-profile-card {
	display: grid;
	gap: 0;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.04);
	min-height: 0;
}

.wm-patient-profile-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 0.85rem;
	flex-wrap: wrap;
}

.wm-patient-profile-heading {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem 0.65rem;
	min-width: 0;
	flex: 1 1 12rem;
}

.wm-patient-profile-name {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
	min-width: 0;
	overflow-wrap: anywhere;
}

.wm-patient-profile-status {
	flex: 0 0 auto;
	width: fit-content;
	max-width: 100%;
	padding: 0.12rem 0.55rem;
	font-size: 0.72rem;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.wm-patient-profile-status.is-active {
	color: var(--wm-success);
	background: color-mix(in srgb, var(--wm-success) 9%, var(--wm-panel, #fff));
	border-color: color-mix(in srgb, var(--wm-success) 28%, var(--wm-line, #dcdcde));
}

.wm-patient-profile-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	margin-left: auto;
	flex: 0 0 auto;
}

.wm-patient-meta-group {
	padding: 0.85rem 1rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
}

/* Header is the card’s first child — do not stack a second line under it. */
.wm-patient-profile-card > .wm-overview-card-head + .wm-patient-meta-group,
.wm-patient-profile-card > .wm-patient-profile-toolbar + .wm-patient-meta-group,
.wm-patient-meta-group:first-child {
	border-top: 0;
}

.wm-patient-meta-group-title {
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wm-muted, #5b6b75);
}

.wm-patient-meta-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.65rem;
}

.wm-patient-meta-row {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.wm-patient-meta-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wm-muted, #5b6b75);
}

.wm-patient-meta-value {
	font-size: 0.92rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.wm-patient-meta-value.is-empty {
	color: var(--wm-muted, #5b6b75);
	opacity: 0.75;
}

.wm-patient-meta-value.is-multiline {
	margin: 0;
	white-space: pre-wrap;
}

.wm-patient-meta-row .wm-pill {
	justify-self: start;
	width: fit-content;
	max-width: 100%;
	padding: 0.12rem 0.55rem;
	font-size: 0.72rem;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.wm-patient-meta-row .wm-pill.is-active {
	color: var(--wm-success);
	background: color-mix(in srgb, var(--wm-success) 9%, var(--wm-panel, #fff));
	border-color: color-mix(in srgb, var(--wm-success) 28%, var(--wm-line, #dcdcde));
}

.wm-file-size {
	white-space: nowrap;
}

.wm-file-cell {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.wm-file-thumb {
	display: grid;
	place-items: center;
	flex: 0 0 3.25rem;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: 6px;
	background: color-mix(in srgb, var(--wm-panel, #fff) 88%, currentColor);
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.wm-file-thumb.is-static {
	cursor: default;
}

.wm-file-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wm-file-kind {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.wm-file-thumb .wm-file-kind {
	width: 100%;
	height: 100%;
}

.wm-file-name-btn,
.wm-file-name-link {
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 600;
	color: inherit;
	text-align: left;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	overflow-wrap: anywhere;
}

.wm-file-pick {
	display: grid;
	gap: 0.5rem;
}

.wm-file-pick-preview:not([hidden]) {
	display: grid;
	justify-items: start;
}

.wm-file-pdf-embed {
	width: 100%;
	height: 9rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: 6px;
	background: color-mix(in srgb, var(--wm-panel, #fff) 92%, #000);
}

.wm-ehr-file {
	align-items: center;
}

.wm-file-preview-dialog {
	width: min(56rem, calc(100vw - 2rem));
	max-width: calc(100vw - 2rem);
	max-height: calc(100vh - 2rem);
	padding: 0;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: calc(var(--wm-radius, 8px) + 4px);
	background: var(--wm-panel, #fff);
	color: var(--wm-ink, inherit);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.wm-file-preview-dialog::backdrop {
	background: color-mix(in srgb, #111 50%, transparent);
}

.wm-file-preview-bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 0.85rem;
	border-bottom: 1px solid var(--wm-line, #dcdcde);
}

.wm-file-preview-title {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 0.95rem;
}

.wm-file-preview-body {
	background: color-mix(in srgb, var(--wm-panel, #fff) 92%, #000);
}

.wm-file-preview-img {
	display: block;
	width: 100%;
	max-height: min(80vh, 48rem);
	object-fit: contain;
	background: #111;
}

.wm-file-preview-frame {
	display: block;
	width: 100%;
	height: min(80vh, 48rem);
	border: 0;
	background: #fff;
}

.wm-file-preview-fallback {
	margin: 0;
	padding: 1.25rem 1rem;
}

body.wm-consult-in-call .wm-consult-join.wm-platform-desktop .wm-join-call {
	display: flex;
	align-items: center;
	justify-content: center;
}

body.wm-consult-in-call .wm-consult-join.wm-platform-desktop .wm-join-stage {
	position: relative;
	width: min(100vw, calc(100dvh * 16 / 9));
	height: min(100dvh, calc(100vw * 9 / 16));
	max-height: 100dvh;
	min-height: 0;
	margin-inline: auto;
	aspect-ratio: 16 / 9;
}

body.wm-consult-in-call .wm-consult-join.wm-platform-desktop .wm-join-videos {
	height: 100%;
	min-height: 0;
}

.wm-consult-app.wm-platform-desktop .wm-mode-simple .wm-tile-self,
.wm-consult-app.wm-platform-desktop.is-in-call .wm-clinician-call.has-exam .wm-tile.is-feed-pip,
.wm-consult-app.wm-platform-desktop.is-in-call .wm-clinician-call.has-exam .wm-tile-patient.is-feed-pip {
	aspect-ratio: 4 / 3;
	width: min(14rem, 28vw);
}

/* Desktop / wide landscape: video column fills the call row (no 16:9 letterbox on white). */
.wm-consult-app.wm-call-layout-side.wm-platform-wide-call.is-in-call .wm-clinician-call {
	height: calc(100dvh - var(--wm-call-chrome-offset, 9.5rem));
	max-height: calc(100dvh - var(--wm-call-chrome-offset, 9.5rem));
	overflow: hidden;
}

.wm-consult-app.wm-call-layout-side.wm-platform-wide-call.is-in-call .wm-call-body {
	flex: 1 1 0;
	min-height: 0;
	overflow: hidden;
}

.wm-consult-app.wm-call-layout-side.wm-platform-wide-call.is-in-call .wm-call-body > * {
	max-height: 100%;
	overflow: hidden;
}

.wm-consult-app.wm-call-layout-side.wm-platform-wide-call.is-in-call .wm-clinician-call .wm-stage-grid,
.wm-consult-app.wm-call-layout-side.wm-platform-wide-call.is-in-call .wm-clinician-call.has-exam .wm-stage-grid {
	width: 100%;
	max-width: 100%;
	height: 100%;
	flex: 1 1 0;
	min-height: 0;
	aspect-ratio: auto;
	overflow: hidden;
	box-sizing: border-box;
}

.wm-consult-app.wm-call-layout-side.wm-platform-wide-call.is-in-call .wm-call-patient {
	max-height: 100%;
}

/*
 * In-call 16:9 stage (desktop). Chart beside video unless wm-call-chart-stack (narrow/portrait).
 * Class toggled from clinician-app.js via shouldStackCallChart().
 */
.wm-consult-app.wm-platform-desktop.is-in-call:not(.wm-call-chart-stack) .wm-clinician-call .wm-call-body > .wm-stage {
	height: auto;
	max-height: none;
	align-self: start;
}

.wm-consult-app.wm-platform-desktop.is-in-call:not(.wm-call-chart-stack).wm-call-layout-side.wm-platform-wide-call .wm-clinician-call .wm-stage-grid,
.wm-consult-app.wm-platform-desktop.is-in-call:not(.wm-call-chart-stack).wm-call-layout-side.wm-platform-wide-call .wm-clinician-call.has-exam .wm-stage-grid {
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 0;
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.wm-consult-app.wm-platform-desktop.is-in-call:not(.wm-call-chart-stack) .wm-call-body > .wm-stage {
	max-height: none;
}

.wm-consult-app.wm-call-chart-stack.is-in-call .wm-clinician-call .wm-call-body {
	grid-template-columns: 1fr;
	grid-template-rows: auto minmax(0, 1fr);
	height: 100%;
}

.wm-consult-app.wm-call-chart-stack.is-in-call .wm-clinician-call .wm-call-body > .wm-stage {
	height: auto;
	max-height: none;
	width: 100%;
}

.wm-consult-app.wm-call-chart-stack.is-in-call .wm-clinician-call .wm-stage-grid,
.wm-consult-app.wm-call-chart-stack.is-in-call .wm-clinician-call.has-exam .wm-stage-grid {
	width: 100%;
	height: auto;
	min-height: 12rem;
	max-height: min(56vh, 56.25vw);
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.wm-consult-app.wm-call-chart-stack.is-in-call .wm-call-patient {
	height: 100%;
	max-height: none;
	min-height: 0;
}

.wm-consult-app.wm-platform-desktop.is-in-call.wm-mode-simple .wm-tile-self,
.wm-consult-app.wm-call-chart-stack.is-in-call.wm-mode-simple .wm-tile-self {
	width: min(12rem, 26%);
	height: auto;
	min-height: 0;
	aspect-ratio: 16 / 10;
}

/* Scale PiP, controls, and chrome to the call stage width (not the viewport). */
@container wm-stage (min-width: 1px) {
	.wm-clinician-call .wm-media-controls-overlay {
		bottom: clamp(0.45rem, 2cqw, 0.85rem);
		padding: clamp(0.28rem, 1.1cqw, 0.4rem) clamp(0.35rem, 1.4cqw, 0.55rem);
		gap: clamp(0.2rem, 0.9cqw, 0.35rem);
		max-width: calc(100% - 1.25rem);
		flex-wrap: nowrap;
	}

	.wm-clinician-call .wm-media-controls-overlay .wm-ctrl-btn,
	.wm-consult-app .wm-clinician-call .wm-media-controls-overlay .wm-ctrl-btn {
		min-width: clamp(1.85rem, 5.2cqw, 2.75rem);
		width: clamp(1.85rem, 5.2cqw, 2.75rem);
		height: clamp(1.85rem, 5.2cqw, 2.75rem);
		min-height: clamp(1.85rem, 5.2cqw, 2.75rem);
	}

	.wm-clinician-call .wm-media-controls-overlay .wm-camera-control .wm-ctrl-btn,
	.wm-consult-app .wm-clinician-call .wm-media-controls-overlay .wm-camera-control .wm-ctrl-btn {
		min-width: clamp(1.85rem, 5.2cqw, 2.75rem);
		width: clamp(1.85rem, 5.2cqw, 2.75rem);
		height: clamp(1.85rem, 5.2cqw, 2.75rem);
	}

	.wm-clinician-call .wm-media-controls-overlay .wm-camera-control .wm-camera-control-menu,
	.wm-consult-app .wm-clinician-call .wm-media-controls-overlay .wm-camera-control .wm-camera-control-menu {
		min-width: clamp(1.45rem, 4cqw, 2.15rem);
		width: clamp(1.45rem, 4cqw, 2.15rem);
	}

	.wm-clinician-call .wm-media-controls-overlay .wm-ctrl-screenshot svg.wm-icon-screenshot,
	.wm-consult-app .wm-clinician-call .wm-media-controls-overlay .wm-ctrl-screenshot svg.wm-icon-screenshot {
		width: clamp(16px, 4.2cqw, 26px);
		height: clamp(16px, 4.2cqw, 26px);
	}

	.wm-clinician-call .wm-chat-fab,
	.wm-consult-app .wm-clinician-call .wm-chat-fab {
		right: clamp(0.45rem, 2cqw, 0.85rem);
		bottom: clamp(0.45rem, 2cqw, 0.85rem);
		width: clamp(1.85rem, 5.2cqw, 2.75rem);
		height: clamp(1.85rem, 5.2cqw, 2.75rem);
		min-width: clamp(1.85rem, 5.2cqw, 2.75rem);
		min-height: clamp(1.85rem, 5.2cqw, 2.75rem);
		border-radius: 999px;
	}

	.wm-clinician-call .wm-chat-fab svg,
	.wm-consult-app .wm-clinician-call .wm-chat-fab svg {
		width: clamp(16px, 4.2cqw, 22px);
		height: clamp(16px, 4.2cqw, 22px);
	}

	.wm-clinician-call .wm-chat {
		right: clamp(0.45rem, 2cqw, 0.85rem);
		bottom: clamp(3.75rem, 12cqw, 4.85rem);
		width: min(20rem, calc(100% - 1.25rem));
	}

	.wm-clinician-call .wm-chat-fab-toast {
		right: clamp(0.45rem, 2cqw, 0.85rem);
		bottom: clamp(3.25rem, 10cqw, 4.25rem);
		max-width: min(16rem, calc(100% - 1.25rem));
	}

	.wm-consult-app.is-in-call.wm-mode-simple .wm-tile-self {
		top: clamp(0.45rem, 2cqw, 0.85rem);
		right: clamp(0.45rem, 2cqw, 0.85rem);
	}

	.wm-clinician-call .wm-mode-simple .wm-tile-self {
		width: min(14rem, 32cqw);
		min-height: 0;
		height: auto;
	}

	.wm-consult-app.wm-platform-wide-call.wm-mode-simple .wm-tile-self,
	.wm-consult-app.wm-platform-wide-call.is-in-call .wm-clinician-call.has-exam .wm-tile-self,
	.wm-consult-app.wm-platform-wide-call .wm-clinician-call.has-exam .wm-tile-self,
	.wm-consult-app.wm-platform-wide-call.is-in-call .wm-clinician-call.has-exam .wm-tile.is-feed-pip,
	.wm-consult-app.wm-platform-wide-call .wm-clinician-call.has-exam .wm-tile.is-feed-pip {
		aspect-ratio: 4 / 3;
		width: min(14rem, 22cqw);
	}

	.wm-clinician-call .wm-tile-patient.is-patient-absent .wm-patient-waiting {
		width: min(22rem, calc(100% - 2rem));
		max-width: min(22rem, calc(100% - 2rem));
		font-size: clamp(0.85rem, 2.5cqw, 1.05rem);
		padding: clamp(0.5rem, 1.5cqw, 0.85rem) clamp(0.65rem, 2cqw, 1.1rem);
	}
}

@container wm-join-stage (min-width: 1px) {
	.wm-consult-app.wm-platform-wide-call .wm-join-videos .wm-tile-self,
	.wm-consult-app.wm-platform-wide-call.is-in-call .wm-join-call.has-exam.is-connected .wm-tile-remote,
	.wm-consult-app.wm-platform-wide-call.is-in-call .wm-join-call.has-exam.has-local-preview:not(.is-connected) .wm-tile-self {
		width: min(14rem, 22cqw);
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 1023px) and (orientation: portrait), (max-width: 639px) {
	.wm-consult-layout {
		grid-template-columns: 1fr;
	}

	.wm-consult-app.is-in-call {
		--wm-call-chrome-offset: 8.25rem;
	}
}

@media (max-width: 960px) {
	.wm-join-videos .wm-tile-self {
		width: min(7.5rem, 34vw);
		left: 0.7rem;
		right: auto;
		top: auto;
		bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px) + 4.05rem);
	}
	.wm-join-videos .wm-tile-exam {
		left: 0.7rem;
		top: 0.7rem;
		width: min(9rem, 42vw);
	}
	.wm-join-call.has-exam .wm-tile-exam {
		inset: 0;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		width: auto;
		height: auto;
	}
	.wm-join-call.has-exam.is-connected .wm-tile-remote {
		top: 0.7rem;
		right: 0.7rem;
		width: min(7.5rem, 34vw);
	}
	.wm-join-call.has-exam.has-local-preview:not(.is-connected) .wm-tile-self {
		left: 0.7rem;
		bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px) + 4.05rem);
		width: min(7.5rem, 34vw);
	}
	.wm-join-call.has-exam .wm-join-videos .wm-tile-self {
		bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px) + 4.05rem);
	}
	.wm-join-call.has-local-preview:not(.is-connected) .wm-join-videos .wm-tile-self {
		inset: 0;
		width: auto;
		height: auto;
		right: 0;
		bottom: 0;
	}
	.wm-patient-meta {
		grid-template-columns: 1fr;
	}

}

.wm-ehr-form {
	display: grid;
	gap: 0.5rem;
	margin-top: 1rem;
	max-width: 28rem;
}

.wm-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.wm-section-head.is-actions-only {
	width: 100%;
	justify-content: flex-end;
}

.wm-section-head-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	flex: 0 0 auto;
	flex-wrap: wrap;
}

.wm-patient-edit-form {
	max-width: 34rem;
}

.wm-edit-field {
	display: grid;
	gap: 0.2rem;
}

.wm-edit-field[hidden] {
	display: none;
}

.wm-edit-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wm-muted, inherit);
}

.wm-required-mark {
	color: var(--wm-danger, #b32d2e);
	font-weight: 700;
	margin-left: 0.2em;
}

.wm-edit-check {
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0.5rem;
}

.wm-edit-check .wm-edit-label {
	font-weight: 500;
}

.wm-edit-hint {
	margin: -0.15rem 0 0;
	font-size: 0.85rem;
	color: var(--wm-muted, #5c6670);
}

.wm-edit-group-title {
	margin: 0.75rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--wm-border, rgba(0, 0, 0, 0.12));
	font-size: 0.95rem;
}

.wm-patient-col-demographics {
	white-space: nowrap;
	color: var(--wm-muted, inherit);
}

.wm-patient-edit-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.25rem;
}

.wm-patient-edit-error {
	margin: 0;
	color: var(--wm-danger, #b32d2e);
}

.wm-patient-edit-error[hidden] {
	display: none;
}

.wm-ehr-form textarea.wm-invite-input {
	min-height: 4.5rem;
	resize: vertical;
}

/* Clinician's own working hours */
.wm-schedule-editor {
	display: grid;
	gap: 1rem;
	max-width: 42rem;
}

.wm-schedule-modes {
	display: grid;
	gap: 0.5rem;
}

.wm-schedule-choice {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 0.5rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--wm-border, rgba(0, 0, 0, 0.12));
	border-radius: 0.5rem;
}

.wm-schedule-choice-body {
	display: grid;
	gap: 0.35rem;
}

.wm-schedule-choice-hint {
	display: block;
	font-size: 0.85rem;
}

/* Day / hours pairs, one row per block of days sharing the same times. */
.wm-week-summary {
	display: grid;
	grid-template-columns: minmax(5.5rem, auto) 1fr;
	gap: 0.15rem 1rem;
	font-size: 0.9rem;
}

.wm-week-days {
	font-weight: 600;
}

.wm-week-times {
	font-variant-numeric: tabular-nums;
}

.wm-week-summary.is-closed,
.wm-week-times.is-closed {
	color: var(--wm-muted, #5c6670);
}

.wm-week-summary.is-closed {
	display: block;
	font-size: 0.85rem;
}

.wm-schedule-week,
.wm-schedule-durations {
	display: grid;
	gap: 0.5rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--wm-border, rgba(0, 0, 0, 0.12));
}

.wm-schedule-day {
	display: grid;
	grid-template-columns: 7rem 1fr;
	gap: 0.5rem 0.75rem;
	align-items: start;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--wm-border, rgba(0, 0, 0, 0.08));
}

.wm-schedule-day-label {
	font-weight: 600;
	padding-top: 0.35rem;
}

.wm-schedule-day.is-closed .wm-schedule-day-label {
	color: var(--wm-muted, inherit);
	font-weight: 500;
}

.wm-schedule-day-body {
	display: grid;
	gap: 0.35rem;
}

.wm-schedule-range {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.wm-schedule-time {
	width: auto;
	min-width: 7rem;
}

.wm-schedule-day-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

@media (max-width: 40rem) {
	.wm-schedule-day {
		grid-template-columns: 1fr;
	}

	.wm-schedule-day-label {
		padding-top: 0;
	}
}

.wm-ehr-list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.wm-ehr-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	justify-content: space-between;
}

.wm-ehr-item {
	padding: 0.65rem 0;
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

/* Add forms live in a panel anchored under their trigger button. */
.wm-popover-wrap {
	position: relative;
	display: inline-block;
}

.wm-popover {
	position: absolute;
	z-index: 30;
	top: calc(100% + 0.5rem);
	right: 0;
	width: max-content;
	min-width: 18rem;
	max-width: min(24rem, calc(100vw - 2rem));
	padding: 0.85rem 0.9rem 0.95rem;
	text-align: left;
	background: var(--wm-panel, #fff);
	color: var(--wm-ink, inherit);
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: calc(var(--wm-radius, 8px) + 2px);
	box-shadow: 0 14px 34px rgba(15, 23, 32, 0.18);
}

.wm-popover[hidden] {
	display: none;
}

.wm-popover::before {
	content: '';
	position: absolute;
	top: -0.4rem;
	right: 1.15rem;
	width: 0.7rem;
	height: 0.7rem;
	background: var(--wm-panel, #fff);
	border-left: 1px solid var(--wm-line, #dcdcde);
	border-top: 1px solid var(--wm-line, #dcdcde);
	transform: rotate(45deg);
}

.wm-popover.is-align-start {
	left: 0;
	right: auto;
}

.wm-popover.is-align-start::before {
	left: 1.15rem;
	right: auto;
}

.wm-popover-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.wm-popover-head-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem;
	flex-shrink: 0;
}

.wm-patient-alerts-ack-all {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.15rem 0.45rem;
	white-space: nowrap;
}

.wm-popover-close {
	padding: 0.1rem 0.4rem;
	line-height: 1;
}

.wm-popover-form {
	margin-top: 0;
	max-width: none;
}

/* An inline editor replaces the row content, so it needs the full width. */
.wm-inline-edit-form {
	flex: 1 1 100%;
	width: 100%;
	max-width: 34rem;
	margin-top: 0.5rem;
}

.wm-chart-item-actions {
	flex: 0 0 auto;
}

.wm-ehr-item .wm-chart-item-actions {
	margin-top: 0.35rem;
}

.wm-chart-tabs {
	margin: 0.75rem 0 1rem;
	align-items: center;
}

.wm-chart-tabs-carousel {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.1rem;
	padding-inline: 0.2rem;
}

.wm-chart-tabs-carousel:not(.is-overflowing) .wm-chart-tabs-scroll {
	visibility: hidden;
	pointer-events: none;
}

.wm-chart-tablist-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	min-width: 0;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
	overscroll-behavior-x: contain;
}

.wm-chart-tablist-viewport::-webkit-scrollbar {
	display: none;
}

.wm-chart-tabs-scroll {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wm-muted, #5b6b75);
	cursor: pointer;
}

.wm-chart-tabs-scroll:hover:not(:disabled),
.wm-chart-tabs-scroll:focus-visible {
	color: inherit;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, transparent);
}

.wm-chart-tabs-scroll:disabled {
	opacity: 0.35;
	cursor: default;
}

.wm-chart-tabs-scroll-prev .wm-icon {
	transform: rotate(90deg);
}

.wm-chart-tabs-scroll-next .wm-icon {
	transform: rotate(-90deg);
}

.wm-chart-tablist {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
}

.wm-chart-tabs-carousel .wm-chart-tablist {
	flex-wrap: nowrap;
	width: max-content;
	max-width: none;
}

.wm-chart-tabs-carousel .wm-portal-tab {
	scroll-snap-align: start;
	flex-shrink: 0;
}

/* Chart tabs: is-active is the only selected affordance — no focus ring after click. */
.wm-chart-tabs .wm-portal-tab:focus,
.wm-chart-tabs .wm-portal-tab:focus-visible {
	outline: none;
	outline-offset: 0;
}

.wm-chart-tabs-end {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: auto;
	padding-left: 0.5rem;
}

/*
 * The action shares the strip with the tabs, so it copies the tab pill metrics
 * exactly — same height, padding, and type. Only the fill tells them apart.
 */
.wm-chart-tabs-end .wm-btn {
	border-radius: 999px;
	min-height: 2.5rem;
	padding: 0.55rem 1.1rem;
	font: inherit;
	gap: 0.4rem;
}

.wm-chart-tabs-end .wm-btn.wm-has-icon {
	padding-inline: 0.75rem 0.95rem;
}

/* Chart tabs reuse the patient table, with a few chart-only columns. */
.wm-chart-col-primary {
	font-weight: 600;
	min-width: 9rem;
}

.wm-chart-col-wrap {
	color: var(--wm-muted, inherit);
	overflow-wrap: anywhere;
	min-width: 10rem;
}

.wm-chart-col-actions {
	width: 1%;
	min-width: 0;
	white-space: nowrap;
	vertical-align: middle;
	text-align: right;
}

.wm-chart-table thead .wm-chart-col-actions {
	padding-left: 0.35rem;
	padding-right: 0.35rem;
}

/* Chart rows: keep Edit / Remove (etc.) on one line and compact. */
.wm-chart-table .wm-table-actions,
.wm-chart-table .wm-chart-item-actions {
	display: flex;
	width: 100%;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem 0.55rem;
	margin: 0;
}

.wm-chart-table .wm-table-actions .wm-btn,
.wm-chart-table .wm-chart-item-actions .wm-btn {
	min-height: 0;
	padding: 0.3rem 0.55rem;
	font-size: 0.875rem;
	line-height: 1.25;
	white-space: nowrap;
}

.wm-chart-table .wm-btn-icon {
	padding: 0.35rem;
	min-width: 2.125rem;
	min-height: 2.125rem;
}

.wm-chart-table .wm-btn-icon.wm-has-icon {
	justify-content: center;
	gap: 0;
}

.wm-chart-table .wm-btn-icon .wm-icon {
	display: block;
}

.wm-chart-table .wm-btn-icon-edit {
	color: var(--wm-accent);
}

.wm-chart-table .wm-btn-icon-edit:hover {
	color: var(--wm-accent);
	background: color-mix(in srgb, var(--wm-accent) 12%, transparent);
}

.wm-chart-table .wm-btn-icon-danger {
	color: var(--wm-danger, #9b2226);
}

.wm-chart-table .wm-btn-icon-danger:hover {
	color: var(--wm-danger, #9b2226);
	background: color-mix(in srgb, var(--wm-danger, #9b2226) 12%, transparent);
}

.wm-chart-table .wm-btn-icon-warn {
	color: var(--wm-warning, #b45309);
}

.wm-chart-table .wm-btn-icon-warn:hover {
	color: var(--wm-warning, #b45309);
	background: color-mix(in srgb, var(--wm-warning, #b45309) 12%, transparent);
}

.wm-chart-table tbody td {
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}

.wm-patient-detail-body > .wm-section-title,
.wm-patient-detail-body > div > .wm-section-title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

.wm-chart-panel > .wm-section-head {
	align-items: center;
	margin: 0 0 0.75rem;
	width: 100%;
}

.wm-chart-panel > .wm-section-head.is-actions-only {
	justify-content: flex-end;
}

.wm-chart-panel .wm-section-head .wm-section-title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}

.wm-chart-panel .wm-clinician-section > .wm-section-title {
	margin: 0 0 0.65rem;
	font-size: 1.1rem;
}

.wm-chart-panel .wm-section-head + .wm-patient-table-wrap,
.wm-chart-panel .wm-section-head + .wm-empty {
	margin-top: 0;
}

.wm-chart-table tbody tr.is-void td {
	color: var(--wm-muted, #5b6b75);
}

.wm-chart-table thead th {
	font-size: 0.875rem;
	letter-spacing: 0.01em;
}

.wm-chart-table tbody tr.is-void .wm-chart-col-primary {
	text-decoration: line-through;
}

/* The editor takes the whole row, so the row loses its table look. */
.wm-chart-table tr.is-editing td {
	padding: 0.85rem;
	background: color-mix(in srgb, var(--wm-panel, #fff) 94%, #000);
}

.wm-chart-table .wm-inline-edit-form {
	margin-top: 0;
	max-width: 32rem;
}

.wm-pill {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
	border: 1px solid currentColor;
}

.wm-pill.is-active {
	color: var(--wm-success);
	background: color-mix(in srgb, var(--wm-success) 9%, var(--wm-panel, #fff));
	border-color: color-mix(in srgb, var(--wm-success) 28%, var(--wm-line, #dcdcde));
}

.wm-pill.is-inactive {
	color: var(--wm-muted, #5b6b75);
}

.wm-visit-delivery.is-video {
	color: var(--wm-primary, #0b5cab);
	background: color-mix(in srgb, var(--wm-primary, #0b5cab) 12%, transparent);
	border-color: color-mix(in srgb, var(--wm-primary, #0b5cab) 35%, transparent);
}

.wm-visit-delivery.is-in_person {
	color: var(--wm-ink, #1a2b33);
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 14%, transparent);
	border-color: color-mix(in srgb, var(--wm-muted, #5b6b75) 30%, transparent);
}

@media (max-width: 720px) {
	/* Stacked rows lose the header, so each cell names itself. */
	.wm-chart-table td::before {
		content: attr(data-label) ': ';
		font-weight: 600;
		color: var(--wm-muted, #5b6b75);
	}

	.wm-chart-table td.wm-chart-col-primary::before,
	.wm-chart-table td.wm-chart-col-actions::before,
	.wm-chart-table tr.is-editing td::before {
		content: none;
	}

	.wm-chart-col-actions {
		width: auto;
		min-width: 0;
		white-space: normal;
		margin-top: 0.4rem;
		text-align: right;
	}

	.wm-chart-table .wm-table-actions,
	.wm-chart-table .wm-chart-item-actions {
		justify-content: flex-end;
		flex-wrap: wrap;
	}
}

/* Overview: profile card and notes side by side. */
.wm-chart-overview {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	align-items: stretch;
	min-height: 0;
}

.wm-chart-overview-main {
	display: grid;
	gap: 0.75rem;
	min-width: 0;
	min-height: 0;
	width: 100%;
}

.wm-chart-overview.is-split-triple > .wm-chart-overview-main,
.wm-chart-overview.is-split-triple > .wm-chart-snapshot,
.wm-chart-overview.is-split-triple > .wm-chart-notes {
	min-width: 0;
	width: 100%;
}

.wm-chart-overview.is-split-triple .wm-patient-profile-section {
	width: 100%;
	margin: 0;
}

.wm-chart-overview.is-split-triple .wm-patient-profile-card,
.wm-chart-overview.is-split-triple .wm-chart-snapshot-card,
.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail {
	min-height: 100%;
	border-radius: var(--wm-radius, 8px);
	overflow: hidden;
	isolation: isolate;
}

.wm-chart-notes.is-overview-rail {
	min-height: 0;
	width: 100%;
}

.wm-chart-notes.is-overview-rail .wm-note-list-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
	min-height: 0;
}

/* Overview triple: shared card header bar (profile, snapshot, notes). */
.wm-chart-overview.is-split-triple {
	--wm-overview-card-head-min-h: 3.375rem;
	--wm-overview-section-pad-x: 1rem;
	--wm-overview-section-pad-y: 0.75rem;
	--wm-overview-section-title-gap: 0.5rem;
}

.wm-chart-overview.is-split-triple .wm-chart-snapshot-card > .wm-overview-card-head,
.wm-chart-overview.is-split-triple .wm-patient-profile-toolbar {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	flex-wrap: wrap;
	min-height: var(--wm-overview-card-head-min-h);
	padding: 0.5rem 1rem;
	margin: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
	background: color-mix(in srgb, var(--wm-panel, #fff) 96%, #000);
}

.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail > .wm-overview-card-head {
	box-sizing: border-box;
	flex: 0 0 auto;
	position: relative;
	z-index: 1;
	padding: 0.5rem 1rem;
	margin: 0;
	min-height: var(--wm-overview-card-head-min-h);
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
	background: color-mix(in srgb, var(--wm-panel, #fff) 96%, #000);
}

.wm-chart-overview.is-split-triple .wm-overview-card-head-title,
.wm-chart-overview.is-split-triple .wm-patient-profile-name,
.wm-chart-overview.is-split-triple .wm-chart-snapshot-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.25;
	min-width: 0;
}

.wm-chart-overview.is-split-triple .wm-overview-card-head-actions,
.wm-chart-overview.is-split-triple .wm-chart-snapshot-actions,
.wm-chart-overview.is-split-triple .wm-patient-profile-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	margin-left: auto;
	flex: 0 0 auto;
}

.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail {
	padding: 0;
	gap: 0;
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.04);
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-note-list-wrap {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	padding: var(--wm-overview-section-pad-y) var(--wm-overview-section-pad-x) 1rem;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--wm-muted, #5b6b75) 40%, transparent) transparent;
}

.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-note-list {
	max-height: none;
	overflow: hidden;
	flex: 0 0 auto;
	min-height: auto;
	height: auto;
	align-content: start;
	grid-auto-rows: max-content;
}

.wm-chart-notes.is-overview-rail .wm-note {
	overflow: hidden;
	min-height: min-content;
	height: auto;
}

.wm-chart-overview.is-split-triple .wm-patient-profile-card .wm-patient-meta-group {
	padding: var(--wm-overview-section-pad-y) var(--wm-overview-section-pad-x);
}

.wm-chart-overview.is-split-triple .wm-chart-snapshot-card .wm-snapshot-group {
	padding: var(--wm-overview-section-pad-y) var(--wm-overview-section-pad-x);
}

.wm-chart-overview.is-split-triple .wm-patient-meta-group-title,
.wm-chart-overview.is-split-triple .wm-snapshot-group-title {
	margin: 0 0 var(--wm-overview-section-title-gap);
}

.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-note-list-wrap.is-overview-rail-body:has(.wm-empty),
.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-note-list-wrap.is-overview-rail-body.wm-empty-boundary {
	flex: 0 0 auto;
	overflow: visible;
	justify-content: center;
	--wm-empty-boundary-margin: var(--wm-overview-section-pad-y) var(--wm-overview-section-pad-x) 1rem;
	padding: 0;
	min-height: 9rem;
}

.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-empty.is-overview-inline {
	margin: 0;
	padding: 1.15rem 1rem 1.25rem;
	justify-items: center;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	border-radius: calc(var(--wm-radius, 8px) - 2px);
}

.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-empty.is-overview-inline .wm-empty-icon {
	opacity: 1;
	margin: 0 0 0.5rem;
	width: 2.75rem;
	height: 2.75rem;
	align-items: center;
	border-radius: 999px;
	color: var(--wm-accent, #7a1f2b);
	background: color-mix(in srgb, var(--wm-accent, #7a1f2b) 10%, var(--wm-panel, #fff));
}

.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-empty.is-overview-inline .wm-empty-title {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--wm-ink, #1d2327);
}

.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-empty.is-overview-inline .wm-empty-text {
	font-size: 0.8rem;
	line-height: 1.4;
	max-width: 15rem;
	margin: 0.2rem auto 0;
}

/* Three equal columns; notes rail matches snapshot height and scrolls inside. */
@media (min-width: 60rem) {
	.wm-chart-overview.is-split-triple {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
		align-items: stretch;
	}

	.wm-chart-overview.is-split-triple > .wm-chart-overview-main,
	.wm-chart-overview.is-split-triple > .wm-chart-snapshot,
	.wm-chart-overview.is-split-triple > .wm-chart-notes {
		display: flex;
		flex-direction: column;
		min-height: 0;
		align-self: stretch;
	}

	.wm-chart-overview.is-split-triple .wm-chart-overview-main {
		display: flex;
		flex-direction: column;
	}

	.wm-chart-overview.is-split-triple .wm-patient-profile-section,
	.wm-chart-overview.is-split-triple .wm-chart-snapshot {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.wm-chart-overview.is-split-triple .wm-patient-profile-card,
	.wm-chart-overview.is-split-triple .wm-chart-snapshot-card {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail {
		width: 100%;
		height: 100%;
		max-height: none;
		flex: 1 1 auto;
	}

	.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-note-list-wrap {
		flex: 1 1 0;
	}

	.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-note-list-wrap.wm-empty-boundary,
	.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-note-list-wrap.is-overview-rail-body:has(.wm-empty) {
		flex: 0 0 auto;
	}

	.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail .wm-note-list {
		display: grid;
		flex: 0 0 auto;
		min-height: auto;
		max-height: none;
		margin: 0;
		padding: 0;
		overflow: visible;
		border: 0;
		background: transparent;
		box-shadow: none;
		align-content: start;
		grid-auto-rows: max-content;
	}
}

@media (max-width: 59.99rem) {
	.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail {
		max-height: min(28rem, calc(100dvh - 10rem));
	}
}

.wm-chart-snapshot {
	min-width: 0;
}

.wm-chart-snapshot-card {
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.04);
	overflow: hidden;
}

@media (min-width: 60rem) {
	.wm-chart-overview.is-split-triple .wm-chart-snapshot-card {
		overflow: hidden;
		min-height: 0;
	}
}

.wm-overview-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	flex-wrap: wrap;
	min-width: 0;
}

.wm-overview-card-head-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	min-width: 0;
	flex: 1 1 auto;
}

.wm-overview-card-head-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
	min-width: 0;
}

.wm-overview-card-head-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	margin-left: auto;
	flex: 0 0 auto;
}

.wm-patient-profile-actions .wm-btn {
	width: auto;
	flex-shrink: 0;
}

.wm-patient-profile-actions .wm-btn.wm-btn-icon.wm-has-icon {
	min-width: 2.25rem;
	padding-left: 0;
	padding-right: 0;
	justify-content: center;
}

.wm-patient-profile-card.is-editing {
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: min(70vh, 36rem);
	overflow: hidden;
}

.wm-patient-profile-card.is-editing .wm-patient-edit-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.wm-patient-profile-card.is-editing .wm-patient-edit-form {
	margin-top: 0;
	max-width: none;
	padding: 0.65rem 1rem 1rem;
	grid-template-columns: 1fr;
	gap: 0.55rem 0.75rem;
}

@media (min-width: 36rem) {
	.wm-patient-profile-card.is-editing .wm-patient-edit-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wm-patient-profile-card.is-editing .wm-patient-edit-form .wm-edit-hint,
	.wm-patient-profile-card.is-editing .wm-patient-edit-form .wm-edit-group-title,
	.wm-patient-profile-card.is-editing .wm-patient-edit-form .wm-patient-edit-error,
	.wm-patient-profile-card.is-editing .wm-patient-edit-form > .wm-edit-field:has(textarea) {
		grid-column: 1 / -1;
	}
}

.wm-chart-overview.is-split-triple.is-profile-editing {
	align-items: start;
}

.wm-chart-overview.is-split-triple.is-profile-editing .wm-patient-profile-card,
.wm-chart-overview.is-split-triple.is-profile-editing .wm-chart-snapshot-card,
.wm-chart-overview.is-split-triple.is-profile-editing .wm-chart-notes.is-overview-rail {
	min-height: 0;
	max-height: min(70vh, 36rem);
}

@media (min-width: 60rem) {
	.wm-chart-overview.is-split-triple.is-profile-editing .wm-chart-snapshot-card {
		overflow: auto;
	}
}

.wm-snapshot-group {
	padding: 0.7rem 1rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 65%, transparent);
}

.wm-snapshot-group:first-of-type {
	border-top: 0;
}

.wm-snapshot-group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
}

.wm-snapshot-group-title {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wm-muted, #5b6b75);
}

.wm-snapshot-group-actions {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
}

.wm-snapshot-group-actions .wm-btn.wm-snapshot-capture-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.28rem;
	min-height: 0;
	height: auto;
	max-height: none;
	padding: 0.18rem 0.5rem;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	border-radius: 6px;
}

.wm-snapshot-group-actions .wm-btn.wm-snapshot-capture-btn .wm-icon {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.wm-snapshot-link {
	font-size: 0.78rem;
	padding: 0.2rem 0.45rem;
	min-height: 0;
}

.wm-snapshot-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.wm-snapshot-item {
	display: grid;
	gap: 0.1rem;
	min-width: 0;
}

.wm-snapshot-item-vital {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.5rem;
}

.wm-snapshot-vital-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-top: 0.05rem;
	color: var(--wm-accent, #8b1538);
}

.wm-snapshot-vital-icon .wm-icon-rpm-device {
	width: 1.375rem;
	height: 1.375rem;
}

.wm-snapshot-vital-text {
	display: grid;
	gap: 0.1rem;
	min-width: 0;
	flex: 1 1 auto;
}

.wm-snapshot-item-primary {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.wm-snapshot-item-secondary {
	font-size: 0.82rem;
	color: var(--wm-muted, #5b6b75);
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.wm-snapshot-empty {
	margin: 0;
	font-size: 0.85rem;
	color: var(--wm-muted, #5b6b75);
}

.wm-snapshot-visit-card {
	display: grid;
	gap: 0.65rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--wm-line, currentColor);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--wm-ink, #1a2a33) 6%, transparent);
	box-sizing: border-box;
	min-width: 0;
}

.wm-snapshot-visit-card.is-empty {
	padding: 0.65rem 0.85rem;
}

.wm-snapshot-visit-card > .wm-snapshot-visit-note {
	margin-top: 0.1rem;
	padding: 0.55rem 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
}

.wm-snapshot-visit-card > .wm-snapshot-visit-no-note {
	padding-top: 0.5rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 70%, transparent);
}

.wm-snapshot-visit-main {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
}

.wm-snapshot-visit-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 8px;
	background: color-mix(in srgb, var(--wm-accent, #8b1538) 10%, var(--wm-panel, #fff));
	color: var(--wm-accent, #8b1538);
}

.wm-snapshot-visit-summary {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
	flex: 1 1 auto;
}

.wm-snapshot-visit-when {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wm-ink, #1a2a33);
}

.wm-snapshot-visit-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
}

.wm-snapshot-visit-badges .wm-pill {
	font-size: 0.68rem;
	padding: 0.1rem 0.42rem;
}

.wm-snapshot-visit-status {
	font-size: 0.68rem;
	font-weight: 600;
	padding: 0.12rem 0.45rem;
}

.wm-snapshot-visit-status.is-success {
	background: color-mix(in srgb, #0d7a4a 14%, var(--wm-panel, #fff));
	color: #0d7a4a;
}

.wm-snapshot-visit-status.is-active {
	background: color-mix(in srgb, var(--wm-accent, #8b1538) 12%, var(--wm-panel, #fff));
	color: var(--wm-accent, #8b1538);
}

.wm-snapshot-visit-status.is-muted {
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, var(--wm-panel, #fff));
	color: var(--wm-muted, #5b6b75);
}

.wm-snapshot-visit-length {
	font-size: 0.72rem;
	color: var(--wm-muted, #5b6b75);
}

.wm-snapshot-visit-reason {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--wm-muted, #5b6b75);
	overflow-wrap: anywhere;
}

.wm-snapshot-visit-note {
	padding: 0.55rem 0.65rem;
	border-radius: 8px;
	border: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 75%, transparent);
	background: color-mix(in srgb, var(--wm-panel, #fff) 92%, #000 8%);
}

.wm-snapshot-visit-note-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.wm-snapshot-visit-note-label {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wm-muted, #5b6b75);
}

.wm-snapshot-visit-note-when {
	font-size: 0.72rem;
	color: var(--wm-muted, #5b6b75);
	white-space: nowrap;
}

.wm-snapshot-visit-note-title {
	margin: 0 0 0.2rem;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wm-ink, #1a2a33);
}

.wm-snapshot-visit-note-body {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--wm-ink, #1a2a33);
	overflow-wrap: anywhere;
}

.wm-snapshot-visit-no-note {
	margin: 0;
	padding: 0.35rem 0 0;
}

.wm-snapshot-note {
	margin: 0.45rem 0 0;
	font-size: 0.86rem;
	line-height: 1.45;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* Whole notes rail is one card: heading and Add note sit on it, list inset below. */
.wm-chart-notes {
	display: grid;
	gap: 0.65rem;
	padding: 0.85rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	min-width: 0;
}

/* Overview triple: flex column beats .wm-chart-notes grid (later in file). */
.wm-chart-overview.is-split-triple .wm-chart-notes.is-overview-rail {
	display: flex;
	flex-direction: column;
	padding: 0;
	gap: 0;
}

.wm-chart-notes > .wm-section-head {
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}

.wm-chart-notes > .wm-section-head .wm-section-title {
	margin: 0;
}

/* Inside the card the tint alone separates the list — a second border would double up. */
.wm-chart-notes .wm-note-list {
	border: 0;
}

.wm-chart-notes > .wm-empty-boundary {
	--wm-empty-boundary-margin: 0;
}

.wm-note-count {
	font-size: 0.82rem;
	white-space: nowrap;
}

.wm-note-form {
	display: grid;
	gap: 0.4rem;
	margin: 0;
}

.wm-note-input {
	width: 100%;
	line-height: 1.5;
	resize: vertical;
}

.wm-note-form-actions {
	display: flex;
	justify-content: flex-end;
}

.wm-note-list-wrap {
	display: grid;
	gap: 0.45rem;
	min-width: 0;
}

/*
 * The notes column is white cards on a white panel, so the list sits in a
 * tinted well and the cards alternate — otherwise a long history reads as one
 * undifferentiated block of text.
 */
.wm-note-list {
	list-style: none;
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0.5rem;
	max-height: 34rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: color-mix(in srgb, var(--wm-panel, #fff) 94%, #000);
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--wm-muted, #5b6b75) 40%, transparent) transparent;
}

.wm-note {
	position: relative;
	overflow: hidden;
	padding: 0.55rem 0.7rem 0.55rem 0.95rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.06);
}

.wm-note:nth-child(even) {
	background: var(--wm-surface-alt, var(--wm-panel, #fff));
}

.wm-note.is-draft {
	border-style: dashed;
	background: var(--wm-surface-alt, var(--wm-panel, #fff));
}

/* Accent spine — gives the stack a left edge to scan down. */
.wm-note::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	border-radius: var(--wm-radius, 8px) 0 0 var(--wm-radius, 8px);
	background: color-mix(in srgb, var(--wm-accent) 40%, transparent);
}

.wm-note-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.15rem 0.6rem;
	font-size: 0.78rem;
	color: var(--wm-muted, #5b6b75);
}

.wm-note-when {
	font-variant-numeric: tabular-nums;
}

.wm-note-author {
	font-weight: 600;
	padding: 0.05rem 0.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wm-accent) 10%, transparent);
	color: color-mix(in srgb, var(--wm-accent) 80%, #000);
}

/* Notes are typed free-form, so keep the clinician's own line breaks. */
.wm-note-body {
	margin: 0.6rem 0 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	line-height: 1.55;
}

.wm-note .wm-chart-item-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.1rem;
	margin: 0.4rem 0 0;
	padding-top: 0.35rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-line, #dcdcde) 65%, transparent);
}

.wm-note .wm-chart-item-actions.wm-actions {
	margin-bottom: 0;
}

.wm-note .wm-chart-item-actions.wm-note-meta-actions {
	flex: 0 0 auto;
	margin: 0 0 0 auto;
	padding-top: 0;
	border-top: 0;
}

.wm-consult-app .wm-note .wm-chart-item-actions .wm-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	box-shadow: none;
}

.wm-consult-app .wm-note .wm-chart-item-actions .wm-btn-icon svg,
.wm-consult-app .wm-note .wm-chart-item-actions .wm-btn-icon .wm-icon {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.wm-consult-app .wm-note .wm-chart-item-actions .wm-btn-icon svg path {
	fill: currentColor;
}

/* Without this the icons inherit the full 2.75rem control height. */
.wm-note .wm-btn-icon {
	min-width: 2rem;
	min-height: 2rem;
	padding: 0.3rem;
	justify-content: center;
	gap: 0;
}

.wm-note .wm-btn-icon .wm-icon {
	width: 18px;
	height: 18px;
}

.wm-note .wm-btn-icon-edit {
	color: color-mix(in srgb, var(--wm-accent) 75%, var(--wm-muted, #5b6b75));
}

.wm-note .wm-btn-icon-edit:hover {
	color: var(--wm-accent);
	background: color-mix(in srgb, var(--wm-accent) 12%, transparent);
}

.wm-note .wm-btn-icon-danger {
	color: color-mix(in srgb, var(--wm-danger, #9b2226) 70%, var(--wm-muted, #5b6b75));
}

.wm-note .wm-btn-icon-danger:hover {
	color: var(--wm-danger, #9b2226);
	background: color-mix(in srgb, var(--wm-danger, #9b2226) 12%, transparent);
}

.wm-note-more {
	margin: 0;
	font-size: 0.82rem;
	text-align: center;
}

.wm-note-headline {
	margin: 0 0 0.35rem;
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1.35;
	color: var(--wm-text, #1a2b33);
}

.wm-note-comments {
	margin-top: 0.45rem;
}

.wm-note-comments.has-thread {
	padding-top: 0.4rem;
	border-top: 1px solid color-mix(in srgb, var(--wm-border, #d8e0e6) 55%, transparent);
}

.wm-note-comments-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 1.75rem;
}

.wm-note-comments-count {
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--wm-muted, #5b6b75);
}

.wm-note-comments-count.is-empty {
	flex: 1;
	min-width: 0;
}

.wm-note-comments .wm-note-comment-toggle.wm-btn-icon {
	flex-shrink: 0;
	margin-left: auto;
	min-width: 1.65rem;
	min-height: 1.65rem;
	padding: 0.2rem;
}

.wm-note-comments .wm-note-comment-toggle .wm-icon {
	width: 16px;
	height: 16px;
}

.wm-note-comment-toggle > span {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wm-note-comment-list {
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.35rem;
}

.wm-note-comment {
	position: relative;
	overflow: hidden;
	padding: 0.4rem 0.55rem 0.45rem 0.8rem;
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	background: color-mix(in srgb, var(--wm-panel) 94%, var(--wm-muted));
}

.wm-note-comment::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	border-radius: var(--wm-radius) 0 0 var(--wm-radius);
	background: color-mix(in srgb, var(--wm-accent) 38%, transparent);
}

.wm-note-comment-meta,
.wm-note-comment-line {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--wm-text, #1a2b33);
}

.wm-note-comment-author {
	font-weight: 600;
}

.wm-note-comment-when,
.wm-note-comment-sep {
	color: var(--wm-muted, #5b6b75);
	font-weight: 400;
}

.wm-note-comment-body {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--wm-text, #1a2b33);
	white-space: pre-wrap;
}

.wm-note-comment-form {
	margin-top: 0.35rem;
	display: grid;
	gap: 0.3rem;
}

.wm-note-comment-form[hidden] {
	display: none !important;
}

.wm-note-comment-input {
	min-height: 2rem;
	padding: 0.35rem 0.45rem;
	font-size: 0.8rem;
	line-height: 1.35;
	resize: vertical;
}

.wm-note-comment-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.35rem;
}

.wm-note-comment-form-actions .wm-btn-compact {
	font-size: 0.78rem;
	padding: 0.15rem 0.55rem;
	min-height: 1.65rem;
}


.wm-auth-form label,
.wm-auth-panel label {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	font-weight: 600;
}

.wm-auth-form label > span {
	font-size: 0.86rem;
	letter-spacing: 0.01em;
}

.wm-auth-form {
	display: grid;
	gap: 0.85rem;
	max-width: none;
	width: 100%;
}

.wm-auth-form .wm-edit-hint {
	margin: -0.35rem 0 0;
	font-size: 0.82rem;
	line-height: 1.35;
}

.wm-auth-name-row {
	display: grid;
	gap: 0.85rem;
}

@media (min-width: 420px) {
	.wm-auth-name-row {
		grid-template-columns: 1fr 1fr;
	}
}

.wm-auth-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.35rem;
}

.wm-auth-actions .wm-btn-primary {
	min-width: 8.5rem;
}

.wm-auth-shell {
	width: min(100%, 52rem);
	margin-inline: auto;
	display: grid;
	gap: 1.5rem;
}

.wm-idle-notice {
	margin: 0.35rem 0 0;
	color: var(--wm-muted, #5b6b75);
	border-color: color-mix(in srgb, #c98516 40%, var(--wm-line, currentColor));
	background: color-mix(in srgb, var(--wm-panel, #fff) 90%, #c98516);
	line-height: 1.35;
	white-space: normal;
	max-width: 28rem;
}

.wm-idle-notice::before {
	background: #c98516;
	opacity: 1;
}

.wm-idle-settings .wm-section-title {
	margin-top: 0;
}

.wm-idle-warning-dialog {
	width: min(24rem, calc(100vw - 2rem));
	max-width: calc(100vw - 2rem);
	padding: 1.25rem 1.35rem 1.35rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: calc(var(--wm-radius, 8px) + 4px);
	background: var(--wm-panel, #fff);
	color: var(--wm-ink, inherit);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.wm-idle-warning-dialog::backdrop {
	background: color-mix(in srgb, #111 50%, transparent);
}

.wm-idle-warning-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 650;
	line-height: 1.3;
}

.wm-idle-warning-count {
	margin: 0.85rem 0 1rem;
	font-size: 1.35rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	color: var(--wm-accent);
}

.wm-idle-warning-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

.wm-portal-auth .wm-auth-hero,
.wm-portal-join .wm-auth-hero {
	display: block;
	margin: 0;
}

.wm-portal-auth .wm-auth-hero .wm-portal-header-main,
.wm-portal-join .wm-auth-hero .wm-portal-header-main {
	gap: 0.55rem;
	max-width: 34rem;
}

.wm-portal-auth .wm-auth-hero .wm-portal-eyebrow,
.wm-portal-join .wm-auth-hero .wm-portal-eyebrow {
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	opacity: 0.78;
}

.wm-portal-auth .wm-auth-hero .wm-portal-title,
.wm-portal-join .wm-auth-hero .wm-portal-title {
	font-size: clamp(2rem, 4.5vw, 2.85rem);
	letter-spacing: -0.02em;
}

.wm-portal-auth .wm-auth-hero .wm-portal-lead,
.wm-portal-join .wm-auth-hero .wm-portal-lead {
	font-size: 1.02rem;
	line-height: 1.45;
	max-width: 28rem;
}

.wm-portal-auth,
.wm-portal-join {
	min-height: min(100vh, 52rem);
	padding-top: clamp(1.75rem, 5vw, 3rem);
	padding-bottom: clamp(2rem, 6vw, 3.5rem);
}

.wm-portal-account {
	margin: 0;
}

.wm-auth-columns {
	display: grid;
	gap: 0;
	width: 100%;
	min-width: 0;
	align-items: stretch;
	background: var(--wm-panel, #fff);
	border: 1px solid var(--wm-line, color-mix(in srgb, currentColor 14%, transparent));
	border-radius: calc(var(--wm-radius, 8px) + 4px);
	overflow: hidden;
}

.wm-auth-panel {
	min-width: 0;
	margin: 0;
	padding: var(--wm-space-5, 1.5rem) var(--wm-space-5, 1.5rem) var(--wm-space-5, 1.5rem);
	background: transparent;
	border: 0;
	border-radius: 0;
}

.wm-auth-panel-head {
	display: grid;
	gap: var(--wm-space-2, 0.55rem);
	margin-bottom: var(--wm-space-4, 1.15rem);
}

.wm-auth-panel-head h3 {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.2;
}

.wm-auth-panel-head .wm-muted {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
}

.wm-auth-panel .wm-status {
	margin: 0.85rem 0 0;
}

.wm-auth-panel .wm-status:empty {
	display: none;
	margin: 0;
}

.wm-auth-footer {
	margin: 0;
	font-size: 0.92rem;
}

.wm-auth-footer a {
	color: inherit;
	font-weight: 600;
	text-underline-offset: 0.15em;
}

@media (min-width: 900px) {
	.wm-auth-columns {
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	}

	.wm-auth-login {
		border-right: 1px solid color-mix(in srgb, currentColor 12%, transparent);
		background: color-mix(in srgb, var(--wm-panel, #fff) 92%, currentColor 4%);
	}

	.wm-auth-panel {
		padding: 1.65rem 1.75rem 1.85rem;
	}
}

@media (max-width: 899px) {
	.wm-auth-register {
		border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	}
}

.wm-join-code-form {
	margin-top: 0;
	max-width: none;
}

.wm-booking-embed,
.wm-auth-panel .wm-booking,
.wm-portal-book-embed .wm-booking {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.wm-auth-register {
	display: flex;
	flex-direction: column;
}

.wm-portal-book-embed,
.wm-booking-embed {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.wm-auth-panel .wm-steps {
	margin: 0 0 1rem;
}

.wm-auth-panel .wm-section-title {
	display: none;
}

.wm-join-contact-form {
	display: grid;
	gap: 0.75rem;
	max-width: 22rem;
	margin: 1rem auto 0;
	text-align: left;
}

.wm-join-contact-form label {
	display: grid;
	gap: 0.25rem;
	font-weight: 600;
}

.wm-portal-book-embed .wm-booking > h2 {
	display: none;
}

/* Staff marketing (trial banner + occasional modal). Hidden during a live call. */
.wm-mkt-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	margin: 0 0 0.85rem;
	padding: 0.85rem 1rem;
	border: 1px solid color-mix(in srgb, var(--wm-accent) 35%, var(--wm-line, #dcdcde));
	border-radius: var(--wm-radius, 8px);
	background: color-mix(in srgb, var(--wm-accent) 8%, var(--wm-panel, #fff));
}

.wm-mkt-copy {
	flex: 1 1 16rem;
	min-width: 0;
}

.wm-mkt-title {
	display: block;
	font-size: 1rem;
	margin-bottom: 0.25rem;
}

.wm-mkt-body,
.wm-mkt-hint {
	margin: 0.25rem 0 0;
	font-size: 0.92rem;
}

.wm-mkt-hint {
	color: var(--wm-muted, inherit);
	opacity: 0.92;
}

.wm-mkt-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.wm-mkt-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: color-mix(in srgb, #111 45%, transparent);
}

.wm-mkt-overlay[hidden] {
	display: none;
}

.wm-mkt-dialog {
	width: min(28rem, 100%);
	max-height: min(90vh, 36rem);
	overflow: auto;
	padding: 1.25rem 1.35rem 1.1rem;
	border-radius: var(--wm-radius, 10px);
	background: var(--wm-panel, #fff);
	color: var(--wm-ink, inherit);
	box-shadow: 0 12px 40px color-mix(in srgb, #000 22%, transparent);
}

.wm-mkt-dialog-title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.wm-mkt-points {
	margin: 0.75rem 0 1rem;
	padding-left: 1.2rem;
}

.wm-mkt-points li {
	margin: 0.3rem 0;
}

.wm-consult-app.is-in-call .wm-mkt-banner,
.wm-consult-app.is-in-call .wm-mkt-overlay {
	display: none !important;
}

/* Staff hub notices (info / warning / alert / downtime). Hidden during a live call. */
.wm-staff-notices {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0 0 0.85rem;
}

.wm-staff-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
}

.wm-staff-notice-copy {
	flex: 1 1 16rem;
	min-width: 0;
}

.wm-staff-notice-kicker {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 0.2rem;
	opacity: 0.85;
}

.wm-staff-notice-title {
	display: block;
	font-size: 1rem;
}

.wm-staff-notice-body {
	margin: 0.3rem 0 0;
	font-size: 0.92rem;
}

.wm-staff-notice-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.wm-staff-notice--info {
	border-color: color-mix(in srgb, var(--wm-accent) 40%, var(--wm-line, #dcdcde));
	background: color-mix(in srgb, var(--wm-accent) 8%, var(--wm-panel, #fff));
}

.wm-staff-notice--warning {
	border-color: color-mix(in srgb, #dba617 45%, var(--wm-line, #dcdcde));
	background: color-mix(in srgb, #dba617 12%, var(--wm-panel, #fff));
}

.wm-staff-notice--alert,
.wm-staff-notice--downtime {
	border-color: color-mix(in srgb, #b32d2e 50%, var(--wm-line, #dcdcde));
	background: color-mix(in srgb, #b32d2e 10%, var(--wm-panel, #fff));
}

.wm-staff-notice--update {
	border-color: color-mix(in srgb, #2271b1 55%, var(--wm-line, #dcdcde));
	background: color-mix(in srgb, #2271b1 10%, var(--wm-panel, #fff));
}

.wm-staff-notice--downtime {
	border-width: 2px;
}

.wm-consult-app.is-in-call .wm-staff-notices {
	display: none !important;
}

/*
 * Beat block-theme form styles (email/password/date/select often lose their
 * border). Same chrome on portal, booking, join, and clinician screens.
 */
.wm-consult-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="reset"]):not([type="range"]):not([type="color"]):not(.wm-chat-input):not(.wm-call-chat-input):not(.wm-appt-access-input):not(.wm-appt-access-compact-input),
.wm-consult-app select,
.wm-consult-app textarea,
.wm-consult-app .wm-invite-input,
.wm-consult-app .wm-input,
.wm-consult-app .wm-select,
.wm-consult-app .wm-name-input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: var(--wm-control-min, 2.75rem);
	margin: 0;
	padding: 0.6rem 0.85rem;
	border-width: 1px;
	border-style: solid;
	border-color: var(--wm-field-line, #c3c4c7);
	border-radius: var(--wm-radius, 8px);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: inherit;
	background-color: var(--wm-panel, #fff);
	background-image: none;
	box-shadow: none;
	outline: none;
}

.wm-consult-app textarea.wm-invite-input,
.wm-consult-app textarea.wm-input {
	min-height: 4.75rem;
	resize: vertical;
}

.wm-consult-app .wm-appt-access-compact-input {
	width: auto;
	max-width: none;
	min-width: 0;
	min-height: 0;
	padding: 0;
	padding-inline-end: 0.12rem;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 0.72rem;
	white-space: nowrap;
}

.wm-consult-app .wm-appt-access-compact-input:focus,
.wm-consult-app .wm-appt-access-compact-input:focus-visible {
	border: 0;
	box-shadow: none;
	outline: none;
}

.wm-consult-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):not(.wm-chat-input):not(.wm-call-chat-input):not(.wm-appt-access-input):not(.wm-appt-access-compact-input):focus-visible,
.wm-consult-app select:focus-visible,
.wm-consult-app textarea:focus-visible,
.wm-consult-app .wm-invite-input:focus-visible,
.wm-consult-app .wm-input:focus-visible,
.wm-consult-app .wm-select:focus-visible,
.wm-consult-app .wm-name-input:focus-visible {
	border-color: var(--wm-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wm-accent) 22%, transparent);
	outline: none;
}

/* Pointer focus: default field chrome only (keyboard ring is :focus-visible above). */
.wm-consult-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):not(.wm-chat-input):not(.wm-call-chat-input):not(.wm-appt-access-input):not(.wm-appt-access-compact-input):focus:not(:focus-visible),
.wm-consult-app select:focus:not(:focus-visible),
.wm-consult-app textarea:focus:not(:focus-visible),
.wm-consult-app .wm-invite-input:focus:not(:focus-visible),
.wm-consult-app .wm-input:focus:not(:focus-visible),
.wm-consult-app .wm-select:focus:not(:focus-visible),
.wm-consult-app .wm-name-input:focus:not(:focus-visible) {
	border-color: var(--wm-field-line, #c3c4c7);
	box-shadow: none;
	outline: none;
}

/*
 * Selects match :focus-visible after a mouse choice, so shared input focus styles
 * look “stuck”. Keep default chrome; blur on change is handled in form-focus.js.
 */
.wm-consult-app select:focus,
.wm-consult-app select:focus-visible,
.wm-consult-app select.wm-invite-input:focus,
.wm-consult-app select.wm-invite-input:focus-visible,
.wm-consult-app select.wm-select:focus,
.wm-consult-app select.wm-select:focus-visible,
.wm-consult-app select.wm-input:focus,
.wm-consult-app select.wm-input:focus-visible {
	border-color: var(--wm-field-line, #c3c4c7);
	box-shadow: none;
	outline: none;
}

.wm-consult-app .wm-patient-list .wm-patient-table .wm-btn {
	min-height: 0;
	padding: 0.35rem 0.65rem;
	font-size: 0.8125rem;
	line-height: 1.25;
}

/* Default panel / form buttons — exclude variants and dark overlay menus. */
.wm-consult-app .wm-btn:not(.wm-ctrl-btn):not(.wm-camera-picker-item):not(.wm-camera-picker-rescan):not(.wm-call-more-item):not(.wm-chat-close):not(.wm-chat-fab):not(.wm-btn-primary):not(.wm-btn-danger):not(.wm-btn-quiet):not(.wm-overview-toolbar-btn) {
	border-width: 1px;
	border-style: solid;
	border-color: var(--wm-field-line, #c3c4c7);
	background-color: var(--wm-panel, #fff);
	color: inherit;
	font-size: 0.875rem;
	min-height: var(--wm-control-min, 2.75rem);
	padding: 0.55rem 1rem;
}

.wm-consult-app .wm-camera-picker-menu .wm-btn,
.wm-consult-app .wm-clinician-call .wm-call-more-menu .wm-btn {
	border: 0;
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	color: #f4f6f8;
	min-height: 0;
}

.wm-consult-app .wm-camera-picker-menu .wm-btn.wm-camera-picker-item {
	justify-content: flex-start;
	text-align: left;
}

.wm-consult-app .wm-btn.wm-has-icon {
	display: inline-flex;
}

.wm-consult-app .wm-media-controls-overlay .wm-ctrl-btn {
	min-height: 2.75rem;
	padding: 0;
	border-color: rgba(255, 255, 255, 0.28);
	background-color: rgba(28, 32, 38, 0.92);
	color: #fff;
}

.wm-consult-app .wm-media-controls-overlay .wm-ctrl-btn:hover {
	background-color: rgba(48, 54, 62, 0.95);
	color: #fff;
}

.wm-consult-app .wm-media-controls-overlay .wm-ctrl-btn.is-on {
	background-color: rgba(58, 64, 74, 0.95);
	color: #fff;
}

.wm-consult-app .wm-media-controls-overlay .wm-ctrl-btn.is-off,
.wm-consult-app .wm-media-controls-overlay .wm-btn-danger {
	border-color: transparent;
	background-color: #c62828;
	color: #fff;
}

.wm-consult-app .wm-media-controls-overlay .wm-ctrl-btn svg {
	fill: currentColor;
	color: inherit;
}

.wm-consult-app .wm-media-controls-overlay .wm-ctrl-screenshot svg.wm-icon-screenshot {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
}

.wm-consult-app .wm-media-controls-overlay .wm-ctrl-screenshot svg.wm-icon-screenshot .wm-icon-fill {
	fill: currentColor;
	stroke: none;
}

.wm-consult-app .wm-tile-tool-btn.wm-ctrl-screenshot svg.wm-icon-screenshot {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
}

.wm-consult-app .wm-tile-tool-btn.wm-ctrl-screenshot svg.wm-icon-screenshot .wm-icon-fill {
	fill: currentColor;
	stroke: none;
}

.wm-consult-app .wm-tile-pip-tools .wm-ctrl-btn,
.wm-consult-app .wm-tile-tool-btn.wm-ctrl-btn {
	min-width: 2rem;
	min-height: 2rem;
	padding: 0;
	border-color: rgba(255, 255, 255, 0.28);
	background-color: rgba(28, 32, 38, 0.92);
	color: #fff;
}

.wm-consult-app .wm-tile-pip-tools .wm-ctrl-btn:hover,
.wm-consult-app .wm-tile-tool-btn.wm-ctrl-btn:hover {
	background-color: rgba(48, 54, 62, 0.95);
	color: #fff;
}

.wm-consult-app .wm-tile-pip-tools .wm-ctrl-btn svg,
.wm-consult-app .wm-tile-tool-btn.wm-ctrl-btn svg {
	fill: currentColor;
	color: inherit;
}

.wm-consult-app .wm-clinician-call .wm-chat-fab {
	min-height: 0;
	padding: 0;
	border-radius: 999px;
	border-color: rgba(255, 255, 255, 0.22);
	background-color: rgba(28, 32, 38, 0.94);
	color: #fff;
}

.wm-consult-app .wm-clinician-call .wm-chat-fab:hover {
	background-color: rgba(48, 54, 62, 0.96);
	color: #fff;
}

.wm-consult-app .wm-clinician-call .wm-chat-fab.is-on {
	border-color: transparent;
	background-color: #1e88e5;
	color: #fff;
}

.wm-consult-app .wm-clinician-call .wm-chat-fab svg {
	fill: currentColor;
	color: inherit;
}

/* Patient join chat FAB — same dark chip as clinician (beat theme .wm-btn white). */
.wm-consult-app .wm-join-call .wm-chat-fab,
body.wm-consult-in-call .wm-join-call .wm-chat-fab {
	min-height: 3.25rem;
	width: 3.25rem;
	min-width: 3.25rem;
	padding: 0;
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(28, 32, 38, 0.94);
	background-color: rgba(28, 32, 38, 0.94);
	color: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.wm-consult-app .wm-join-call .wm-chat-fab:hover,
body.wm-consult-in-call .wm-join-call .wm-chat-fab:hover {
	background: rgba(48, 54, 62, 0.96);
	background-color: rgba(48, 54, 62, 0.96);
	color: #fff;
}

.wm-consult-app .wm-join-call .wm-chat-fab.is-on,
body.wm-consult-in-call .wm-join-call .wm-chat-fab.is-on {
	border-color: transparent;
	background: #1e88e5;
	background-color: #1e88e5;
	color: #fff;
}

.wm-consult-app .wm-join-call .wm-chat-fab svg,
body.wm-consult-in-call .wm-join-call .wm-chat-fab svg {
	display: block;
	flex-shrink: 0;
	fill: currentColor;
	color: inherit;
}

.wm-consult-app .wm-clinician-call .wm-call-more-item {
	min-height: 2.4rem;
	justify-content: flex-start;
	width: 100%;
	border-color: transparent;
	background: transparent;
	background-color: transparent;
	color: #f4f6f8;
	box-shadow: none;
}

.wm-consult-app .wm-clinician-call .wm-call-more-item:hover,
.wm-consult-app .wm-clinician-call .wm-call-more-item:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.wm-consult-app .wm-clinician-call .wm-call-more-item .wm-icon,
.wm-consult-app .wm-clinician-call .wm-call-more-item svg {
	fill: currentColor;
	color: inherit;
}

/* In-call chat field — dedicated class + !important to beat portal form chrome. */
.wm-consult-app .wm-clinician-call .wm-chat-input,
.wm-consult-app .wm-clinician-call .wm-call-chat-input,
.wm-consult-app.is-in-call .wm-clinician-call input.wm-chat-input,
.wm-consult-app.is-in-call .wm-clinician-call input.wm-call-chat-input {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 2.5rem !important;
	padding: 0.5rem 0.75rem !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 999px !important;
	background: #d5d8dc !important;
	background-color: #d5d8dc !important;
	color: #111 !important;
	caret-color: #111 !important;
	box-shadow: none !important;
	-webkit-text-fill-color: #111 !important;
}

.wm-consult-app .wm-clinician-call .wm-chat-input::placeholder,
.wm-consult-app .wm-clinician-call .wm-call-chat-input::placeholder,
.wm-consult-app.is-in-call .wm-clinician-call input.wm-chat-input::placeholder,
.wm-consult-app.is-in-call .wm-clinician-call input.wm-call-chat-input::placeholder {
	color: rgba(17, 17, 17, 0.5) !important;
	-webkit-text-fill-color: rgba(17, 17, 17, 0.5) !important;
	opacity: 1 !important;
}

.wm-consult-app .wm-clinician-call .wm-chat-input:focus,
.wm-consult-app .wm-clinician-call .wm-chat-input:focus-visible,
.wm-consult-app .wm-clinician-call .wm-call-chat-input:focus,
.wm-consult-app .wm-clinician-call .wm-call-chat-input:focus-visible,
.wm-consult-app.is-in-call .wm-clinician-call input.wm-chat-input:focus,
.wm-consult-app.is-in-call .wm-clinician-call input.wm-chat-input:focus-visible,
.wm-consult-app.is-in-call .wm-clinician-call input.wm-call-chat-input:focus,
.wm-consult-app.is-in-call .wm-clinician-call input.wm-call-chat-input:focus-visible {
	border-color: rgba(30, 136, 229, 0.75) !important;
	box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.22) !important;
	outline: none !important;
	color: #111 !important;
	-webkit-text-fill-color: #111 !important;
	background: #e4e7ea !important;
	background-color: #e4e7ea !important;
}

.wm-consult-app .wm-clinician-call .wm-chat-close {
	border-color: transparent;
	background-color: transparent;
	color: rgba(255, 255, 255, 0.78);
	min-height: 0;
	padding: 0.2rem 0.45rem;
}

.wm-consult-app .wm-btn-primary {
	border-color: var(--wm-accent);
	background-color: var(--wm-accent);
	color: var(--wm-on-accent, #fff);
}

.wm-consult-app .wm-btn-danger {
	border-color: var(--wm-danger, #9b2226);
	background-color: var(--wm-danger, #9b2226);
	color: var(--wm-on-accent, #fff);
}

.wm-consult-app .wm-btn-quiet {
	border-color: transparent;
	background-color: transparent;
	color: var(--wm-btn-text-muted, var(--wm-muted, #5b6b75));
}

.wm-consult-app .wm-btn-quiet:not(.wm-btn-icon):not(.is-active):hover,
.wm-consult-app .wm-btn-quiet:not(.wm-btn-icon):not(.is-active):focus-visible {
	color: var(--wm-btn-text-accent, var(--wm-accent));
}

/* Restated inside the app scope so the themed button rules do not re-inflate it. */
.wm-consult-app .wm-btn.wm-btn-sm,
.wm-consult-app .wm-btn.wm-btn-compact {
	min-height: 2rem;
	height: 2rem;
	padding: 0 0.65rem;
	font-size: 0.8125rem;
	line-height: 1.25;
}

/* After themed defaults — overview header actions share one size (primary + secondary). */
.wm-consult-app .wm-chart-overview .wm-btn.wm-overview-toolbar-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.25rem;
	height: 2.25rem;
	max-height: 2.25rem;
	padding: 0 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.25;
	white-space: nowrap;
}

.wm-consult-app .wm-chart-overview .wm-btn.wm-overview-toolbar-btn .wm-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.wm-consult-app .wm-chart-overview .wm-patient-profile-actions .wm-btn.wm-overview-toolbar-btn {
	width: auto;
	min-width: 2.25rem;
	padding: 0;
}

.wm-consult-app .wm-patient-detail-header .wm-patient-back {
	min-height: 2rem;
	padding: 0.2rem 0.4rem;
	border-color: transparent;
	background-color: transparent;
}

.wm-consult-app .wm-chart-tabs-end .wm-btn {
	border-radius: 999px;
	min-height: 2.5rem;
	padding: 0.55rem 1.1rem;
	font-size: inherit;
}

.wm-consult-app .wm-chart-tabs-end .wm-btn.wm-has-icon {
	padding-inline: 0.75rem 0.95rem;
}

.wm-consult-app .wm-room-card > .wm-card-side-actions .wm-btn {
	border-radius: 999px;
	min-height: 2.125rem;
	padding: 0.3rem 0.5rem;
	font-size: 0.75rem;
}

.wm-consult-app .wm-room-card > .wm-card-side-actions .wm-btn.wm-has-icon {
	padding-inline: 0.4rem 0.55rem;
}

/* Agenda actions: keep sizing from .wm-appt-card-actions (not room strip rules). */
.wm-consult-app .wm-appt-card-actions .wm-btn {
	border-radius: 999px;
	min-height: 2.5rem;
	padding: 0.45rem 0.65rem;
	font-size: 0.8125rem;
}

.wm-consult-app .wm-appt-card-actions .wm-btn.wm-has-icon {
	padding-inline: 0.55rem 0.65rem;
}

.wm-consult-app .wm-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.wm-consult-app .wm-slot-btn,
.wm-consult-app .wm-pill-btn {
	border-color: var(--wm-field-line, #c3c4c7);
	background-color: var(--wm-panel, #fff);
}

.wm-consult-app .wm-slot-btn:hover,
.wm-consult-app .wm-pill-btn:hover {
	border-color: var(--wm-accent);
}

.wm-consult-app .wm-slot-btn.is-selected,
.wm-consult-app .wm-pill-btn.is-selected {
	border-color: var(--wm-accent);
	background-color: var(--wm-accent);
	color: var(--wm-on-accent, #fff);
}

.wm-consult-app .wm-steps {
	border: 0;
}

.wm-consult-app .wm-step-item {
	border-width: 1px;
	border-style: solid;
	border-color: var(--wm-field-line, #c3c4c7);
	border-radius: var(--wm-radius, 8px);
	background-color: var(--wm-panel, #fff);
	box-shadow: none;
	min-height: var(--wm-control-min, 2.75rem);
	padding: 0.55rem 0.75rem;
}

.wm-consult-app .wm-step-item.is-active {
	border-color: var(--wm-accent);
}

.wm-consult-app .wm-step-item.is-done {
	border-color: var(--wm-field-line, #c3c4c7);
}

@media (prefers-reduced-motion: reduce) {
	.wm-join-state.is-waiting::before,
	.wm-join-state.is-loading::before,
	.wm-join-call-live::before,
	.wm-join-connecting-ring {
		animation: none !important;
	}

	.wm-portal-tab,
	.wm-page-btn,
	.wm-btn {
		transition: none !important;
	}
}

/* Clinic admin workspace */
.wm-portal-admin .wm-portal-header-aside {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.wm-admin-spa {
	display: grid;
	gap: 1.15rem;
	min-width: 0;
}

.wm-admin-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 0.75rem;
}

.wm-admin-kpi {
	margin: 0;
	padding: 0.9rem 1rem;
}

.wm-admin-kpi-label {
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--wm-muted, #646970);
}

.wm-admin-kpi-value {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.wm-admin-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: end;
	padding: 0 1rem 0.85rem;
}

.wm-admin-filters .wm-invite-input {
	width: max-content;
	max-width: 100%;
	min-width: 8.5rem;
	flex: 0 1 auto;
}

/*
 * The shared field rule above sets width:100% at a specificity these filters
 * cannot beat, so size the text inputs with flex-basis instead — it wins over
 * width on the main axis without an escalating selector.
 */
.wm-admin-filters input.wm-invite-input {
	flex-basis: 10.5rem;
}

.wm-admin-filters input[type="search"].wm-invite-input {
	flex-basis: 16rem;
}

.wm-admin-form {
	display: grid;
	gap: 0.75rem;
	padding: 0 1rem 1.15rem;
	max-width: 36rem;
}

.wm-billing-settings-row {
	padding: 0 1rem 0.35rem;
}

.wm-billing-patient-picker {
	position: relative;
	display: grid;
	gap: 0.35rem;
}

.wm-billing-patient-picker.is-open {
	z-index: 40;
}

.wm-billing-patient-picker-search {
	position: relative;
	display: grid;
	gap: 0.35rem;
}

.wm-billing-patient-picker-hint {
	margin: 0;
	font-size: 0.82rem;
}

.wm-billing-patient-picker-panel {
	top: calc(100% - 0.15rem);
}

.wm-billing-patient-picker-option {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.28rem 0.35rem;
	border: 0;
	border-radius: 6px;
	background: transparent;
	font: inherit;
	font-size: 0.88rem;
	line-height: 1.35;
	text-align: left;
	color: inherit;
	cursor: pointer;
}

.wm-billing-patient-picker-option:hover,
.wm-billing-patient-picker-option:focus-visible {
	background: color-mix(in srgb, var(--wm-accent) 8%, transparent);
	outline: none;
}

.wm-billing-patient-selected {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.65rem;
	font-size: 0.9rem;
}

.wm-billing-patient-picker-name {
	font-weight: 500;
}

/*
 * Account menu — one trigger for identity, workspace switch, and sign out.
 *
 * The portal moves this control into .wm-portal-header, which is a sibling of
 * .wm-consult-app, so every rule is scoped to both roots. Scoped to the app
 * alone the theme's own button and link styles win and the menu falls apart.
 */
.wm-user-menu {
	position: relative;
	display: inline-flex;
}

:is(.wm-portal, .wm-consult-app) .wm-user-menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 16rem;
	min-height: 2.5rem;
	margin: 0;
	padding: 0.25rem 0.7rem 0.25rem 0.3rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: 999px;
	background: var(--wm-panel, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.05);
	color: inherit;
	font: inherit;
	font-size: 0.9rem;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

:is(.wm-portal, .wm-consult-app) .wm-user-menu-btn:hover,
.wm-user-menu.is-open .wm-user-menu-btn {
	border-color: var(--wm-field-line, #c3c4c7);
	background: color-mix(in srgb, var(--wm-panel, #fff) 96%, currentColor);
	box-shadow: 0 2px 6px rgba(15, 23, 32, 0.08);
}

:is(.wm-portal, .wm-consult-app) .wm-user-menu-btn:focus-visible {
	outline: 2px solid var(--wm-accent);
	outline-offset: 2px;
}

.wm-user-avatar {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: var(--wm-accent);
	color: var(--wm-on-accent, #fff);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.wm-user-menu-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}

.wm-user-menu .wm-icon {
	flex: 0 0 auto;
	opacity: 0.7;
}

.wm-user-menu-chevron {
	transition: transform 140ms ease;
}

.wm-user-menu.is-open .wm-user-menu-chevron {
	transform: rotate(180deg);
}

.wm-user-menu-list {
	position: absolute;
	top: calc(100% + 0.45rem);
	right: 0;
	z-index: 20;
	display: grid;
	gap: 0.1rem;
	box-sizing: border-box;
	width: max-content;
	min-width: max(15rem, 100%);
	max-width: min(28rem, calc(100vw - 2rem));
	padding: 0.35rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: 14px;
	background: var(--wm-panel, #fff);
	box-shadow: 0 16px 38px rgba(15, 23, 32, 0.18);
}

.wm-user-menu-list[hidden] {
	display: none;
}

.wm-user-menu-head {
	display: grid;
	gap: 0.15rem;
	padding: 0.6rem 0.65rem 0.65rem;
	margin-bottom: 0.25rem;
	border-bottom: 1px solid var(--wm-line, #dcdcde);
}

.wm-user-menu-eyebrow {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wm-muted, #5b6b75);
}

.wm-user-menu-fullname {
	font-size: 0.95rem;
	line-height: 1.3;
}

.wm-user-menu-meta {
	font-size: 0.8rem;
	line-height: 1.35;
	color: var(--wm-muted, #5b6b75);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

:is(.wm-portal, .wm-consult-app) .wm-user-menu-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	min-height: 2.4rem;
	margin: 0;
	padding: 0.45rem 0.65rem;
	border: 0;
	border-radius: 9px;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 0.9rem;
	line-height: 1.35;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 120ms ease, color 120ms ease;
}

:is(.wm-portal, .wm-consult-app) .wm-user-menu-item:hover,
:is(.wm-portal, .wm-consult-app) .wm-user-menu-item:focus-visible {
	background: color-mix(in srgb, var(--wm-accent) 10%, transparent);
	color: inherit;
	text-decoration: none;
}

:is(.wm-portal, .wm-consult-app) .wm-user-menu-item:focus-visible {
	outline: 2px solid var(--wm-accent);
	outline-offset: -2px;
}

:is(.wm-portal, .wm-consult-app) .wm-user-menu-item.is-danger {
	color: var(--wm-danger, #9b2226);
}

:is(.wm-portal, .wm-consult-app) .wm-user-menu-item.is-danger:hover,
:is(.wm-portal, .wm-consult-app) .wm-user-menu-item.is-danger:focus-visible {
	background: color-mix(in srgb, var(--wm-danger, #9b2226) 10%, transparent);
	color: var(--wm-danger, #9b2226);
}

.wm-user-menu-item .wm-icon {
	opacity: 0.75;
}

/* Routes append several cards here, so the panel owns the space between them. */
.wm-admin-panel {
	display: grid;
	gap: var(--wm-space-4, 1.15rem);
	align-content: start;
	min-width: 0;
}

.wm-admin-care-list {
	display: grid;
	gap: 0.65rem;
}

.wm-admin-care-item {
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--wm-line, #dcdcde);
	border-radius: var(--wm-radius, 8px);
	background: color-mix(in srgb, var(--wm-panel, #fff) 96%, currentColor);
}

.wm-admin-care-item p {
	margin: 0;
}

.wm-admin-care-item p + p {
	margin-top: 0.3rem;
}

@media (max-width: 720px) {
	.wm-portal-admin .wm-patient-table-wrap {
		overflow-x: auto;
	}

	.wm-admin-filters {
		padding-inline: 0.75rem;
	}
}

/* RPM monthly review (Agenda → under visit schedule; legacy Vue MonthlyReview layout) */
.wm-monthly-review-panel {
	margin-top: var(--wm-space-4, 1.15rem);
	padding-bottom: var(--wm-space-4, 1.15rem);
	gap: 0;
}

.wm-monthly-review-head {
	width: 100%;
	min-width: 0;
	padding-bottom: 0.35rem;
}

.wm-monthly-review-head-row {
	align-items: start;
}

.wm-monthly-review-head-expanded {
	align-items: center;
	min-width: 0;
}

.wm-monthly-review-head-controls {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	gap: 0.5rem 0.65rem;
	flex: 0 1 auto;
	min-width: 0;
	margin-left: 0;
	--wm-mr-head-control-h: var(--wm-control-min, 2.75rem);
}

.wm-monthly-review-head-controls .wm-list-toolbar-search {
	flex: 0 1 14rem;
	min-width: 9rem;
	max-width: 16rem;
	width: auto;
	margin: 0;
	height: var(--wm-mr-head-control-h);
	min-height: var(--wm-mr-head-control-h);
	box-sizing: border-box;
}

.wm-monthly-review-head-controls .wm-timeline-month-input,
.wm-monthly-review-head-tail .wm-timeline-month-input {
	flex: 0 0 auto;
	width: auto !important;
	min-width: 9.5rem;
	max-width: 11.5rem;
	margin: 0;
	height: var(--wm-mr-head-control-h);
	min-height: var(--wm-mr-head-control-h);
	box-sizing: border-box;
}

.wm-monthly-review-head-tail {
	--wm-mr-head-control-h: var(--wm-control-min, 2.75rem);
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	max-width: 100%;
	min-width: 0;
}

.wm-monthly-review-head-tail .wm-monthly-review-head-controls {
	display: flex;
	flex-flow: row nowrap;
	flex-wrap: nowrap;
	flex: 0 1 auto;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem 0.55rem;
	margin-left: 0.35rem;
	min-width: 0;
}

.wm-monthly-review-head-tail .wm-monthly-review-head-controls .wm-list-toolbar-search {
	flex: 0 1 9.5rem;
	min-width: 6.5rem;
	max-width: 11rem;
}

.wm-monthly-review-head-controls .wm-anchored-menu-wrap {
	flex: 0 0 auto;
	position: relative;
	z-index: 4;
}

.wm-monthly-review-head-controls .wm-btn {
	flex-shrink: 0;
	align-self: center;
	min-height: var(--wm-mr-head-control-h);
}

.wm-monthly-review-head-title {
	flex: 1 1 12rem;
	min-width: 0;
}

.wm-monthly-review-head-title .wm-card-title {
	margin: 0 0 0.15rem;
}

.wm-monthly-review-head-title .wm-card-hint {
	margin: 0;
}

.wm-monthly-review-panel.is-collapsed > .wm-monthly-review-body,
.wm-monthly-review-panel.is-collapsed > .wm-monthly-review-license {
	display: none !important;
}

.wm-monthly-review-license {
	margin: 0 0 1rem;
}

.wm-monthly-review-panel.is-collapsed .wm-monthly-review-collapsed-stats {
	align-self: center;
	min-width: 0;
	font-size: 0.8125rem;
	line-height: 1.3;
}

.wm-monthly-review-panel.is-collapsed .wm-agenda-cal-collapsed-summary {
	grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
}

.wm-monthly-review-table-section {
	margin: 0;
	padding: 0;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	overflow-x: clip;
	container-type: inline-size;
	container-name: wm-mr-layout;
}

.wm-monthly-review-loading,
.wm-monthly-review-error,
.wm-monthly-review-empty {
	margin: 0.75rem 1rem 1rem;
}

.wm-monthly-review-body {
	min-width: 0;
	max-width: 100%;
}

.wm-monthly-review-table-host {
	padding: 0.15rem 0 0;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

.wm-monthly-review-table-scroll {
	overflow: auto;
	height: clamp(var(--wm-table-scroll-min-height, 38rem), 56vh, 48rem);
	min-height: var(--wm-table-scroll-min-height, 38rem);
	max-height: clamp(var(--wm-table-scroll-min-height, 38rem), 70vh, 48rem);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--wm-line, currentColor);
	border-radius: var(--wm-radius, 8px);
	background: var(--wm-panel, #fff);
	-webkit-overflow-scrolling: touch;
	padding-bottom: 2px;
	contain: paint;
}


.wm-monthly-review-panel {
	overflow-x: clip;
	max-width: 100%;
	--wm-mr-cell-size: 0.86rem;
	--wm-mr-mark-radius: 2px;
	--wm-mr-mark-border-empty: #c8c8c8;
	--wm-mr-note-gap: 2px;
	--wm-mr-slot-size: calc(var(--wm-mr-cell-size) + 2 * var(--wm-mr-note-gap) + 4px);
	--wm-mr-day-col-width: calc(var(--wm-mr-slot-size) + 0.12rem);
	--wm-mr-note-ring-color: var(--wm-ink, #1a2a33);
}

.wm-monthly-review-table {
	--wm-mr-cell-size: 0.88rem;
	--wm-mr-note-gap: 2px;
	--wm-mr-slot-size: calc(var(--wm-mr-cell-size) + 2 * var(--wm-mr-note-gap) + 4px);
	--wm-mr-day-col-width: calc(var(--wm-mr-slot-size) + 0.12rem);
	--wm-mr-row-min-height: var(--wm-table-row-height, 2.375rem);
	--wm-mr-thead-bg: color-mix(in srgb, var(--wm-ink, #1a2a33) 9%, var(--wm-panel-muted, #e4e7eb));
	width: 100%;
	min-width: 0;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.78rem;
}

.wm-monthly-review-table col.wm-monthly-review-name-col {
	width: 10.5rem;
}

.wm-monthly-review-table col.wm-monthly-review-dob-col {
	width: 4.35rem;
}

.wm-monthly-review-table col.wm-monthly-review-progress-col {
	width: 4.85rem;
}

.wm-monthly-review-table col.wm-monthly-review-presence-col {
	width: 2.35rem;
}

@container wm-mr-layout (min-width: 52rem) {
	.wm-monthly-review-table {
		--wm-mr-cell-size: 0.92rem;
	}
}

/* Hide birthdate when the review panel is too narrow for day grid + DOB (landscape or portrait). */
@container wm-mr-layout (max-width: 60rem) {
	.wm-monthly-review-table .wm-monthly-review-dob-col {
		display: none;
	}
}

@container wm-mr-layout (max-width: 40rem) {
	.wm-monthly-review-table {
		--wm-mr-cell-size: 0.78rem;
		--wm-mr-day-col-width: calc(var(--wm-mr-slot-size) + 0.08rem);
	}

	.wm-monthly-review-table .wm-monthly-review-name-col {
		min-width: 8rem;
		width: 8rem;
		max-width: 8rem;
	}
}

@container wm-mr-layout (max-width: 68rem) {
	.wm-monthly-review-table {
		--wm-mr-cell-size: 0.72rem;
		--wm-mr-note-gap: 1px;
		--wm-mr-day-col-width: calc(var(--wm-mr-slot-size) + 0.06rem);
	}

	.wm-monthly-review-table .wm-monthly-review-name-col {
		min-width: 8rem;
		width: 8rem;
		max-width: 8rem;
	}

	.wm-monthly-review-table .wm-monthly-review-progress-col {
		min-width: 4rem;
		width: auto;
	}

	.wm-monthly-review-table .wm-monthly-review-progress {
		width: 3.65rem;
	}
}

.wm-monthly-review-table th,
.wm-monthly-review-table td {
	padding: 0.06rem 0.08rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wm-line, #e8e8e8) 85%, transparent);
	vertical-align: middle;
	text-align: center;
	height: var(--wm-mr-row-min-height);
	min-height: var(--wm-mr-row-min-height);
	max-height: var(--wm-mr-row-min-height);
	line-height: 1.2;
	box-sizing: border-box;
}

.wm-monthly-review-table th.wm-monthly-review-name-col,
.wm-monthly-review-table td.wm-monthly-review-name-col,
.wm-monthly-review-table th.wm-monthly-review-dob-col,
.wm-monthly-review-table td.wm-monthly-review-dob-col,
.wm-monthly-review-table th.wm-monthly-review-progress-col,
.wm-monthly-review-table td.wm-monthly-review-progress-col,
.wm-monthly-review-table th.wm-monthly-review-presence-col,
.wm-monthly-review-table td.wm-monthly-review-presence-col {
	overflow: visible;
}

.wm-monthly-review-table tbody tr.wm-monthly-review-row:nth-child(even) td:not(.wm-monthly-review-week-col) {
	background: color-mix(in srgb, var(--wm-panel-muted, #f3f4f6) 45%, var(--wm-panel, #fff));
}

.wm-monthly-review-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--wm-mr-thead-bg);
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--wm-ink, #1a2a33);
	text-transform: none;
	letter-spacing: 0.02em;
}

.wm-monthly-review-name-col,
.wm-monthly-review-dob-col {
	text-align: left;
	white-space: nowrap;
}

.wm-monthly-review-name-col {
	width: 10.5rem;
	min-width: 10.5rem;
	max-width: 10.5rem;
	padding-left: 0.35rem !important;
	padding-right: 0.5rem !important;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wm-monthly-review-table th.wm-monthly-review-name-col,
.wm-monthly-review-table td.wm-monthly-review-name-col {
	position: sticky;
	left: 0;
	z-index: 3;
	background: var(--wm-panel, #fff);
}

.wm-monthly-review-table tbody tr.wm-monthly-review-row:nth-child(even) td.wm-monthly-review-name-col {
	background: color-mix(in srgb, var(--wm-panel-muted, #f3f4f6) 45%, var(--wm-panel, #fff));
}

.wm-monthly-review-table thead th.wm-monthly-review-name-col {
	z-index: 5;
	background: var(--wm-mr-thead-bg);
	text-align: left;
}

.wm-monthly-review-table td.wm-monthly-review-name-col {
	text-align: left;
}

.wm-monthly-review-name-cell {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	max-width: 100%;
}

.wm-monthly-review-patient-link {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.wm-monthly-review-enroll-mark {
	flex: 0 0 auto;
	width: 0.72rem;
	height: 0.72rem;
	border: 1px solid color-mix(in srgb, var(--wm-accent, #7a1f2b) 55%, #ccc);
	border-radius: 2px;
	background: transparent;
}

.wm-monthly-review-enroll-mark.is-rpm {
	background: var(--wm-accent, #7a1f2b);
	border-color: var(--wm-accent, #7a1f2b);
}

.wm-monthly-review-dob-col {
	width: 4.35rem;
	min-width: 4.35rem;
	max-width: 4.35rem;
	font-size: 0.7rem;
	font-weight: 500;
	padding-right: 0.25rem !important;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wm-monthly-review-table th.wm-monthly-review-dob-col,
.wm-monthly-review-table td.wm-monthly-review-dob-col {
	text-align: left;
	padding-left: 0.35rem !important;
}

.wm-monthly-review-progress-col {
	width: 4.85rem;
	min-width: 4.85rem;
	max-width: 4.85rem;
	padding-inline: 0.35rem !important;
}

.wm-monthly-review-presence-col {
	width: 2.35rem;
	min-width: 2.35rem;
	max-width: 2.35rem;
	padding-left: 0.15rem !important;
	padding-right: 0.15rem !important;
}

.wm-monthly-review-presence-btn {
	margin: 0 auto;
	color: var(--wm-accent, #7a1f2b);
}

.wm-monthly-review-day-col {
	min-width: var(--wm-mr-day-col-width);
	padding: 0.05rem !important;
}

.wm-monthly-review-week-col {
	min-width: var(--wm-mr-day-col-width);
	padding: 0.05rem !important;
}

.wm-monthly-review-table tbody tr.wm-monthly-review-row td.wm-monthly-review-week-col,
.wm-monthly-review-table tbody tr.wm-monthly-review-row:nth-child(even) td.wm-monthly-review-week-col {
	background: #d8d8d8;
}

.wm-monthly-review-day-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wm-mr-slot-size);
	height: var(--wm-mr-slot-size);
	margin: 0 auto;
	vertical-align: middle;
	line-height: 0;
}

.wm-monthly-review-week-check {
	display: inline-block;
	width: var(--wm-mr-cell-size);
	height: var(--wm-mr-cell-size);
	box-sizing: border-box;
	border: 1px solid var(--wm-mr-mark-border-empty);
	border-radius: var(--wm-mr-mark-radius);
	background: transparent;
	vertical-align: middle;
}

.wm-monthly-review-week-check.is-filled {
	background: #4b5563;
	border-color: #374151;
}

.wm-monthly-review-patient-link {
	appearance: none;
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	font-size: inherit;
	color: var(--wm-ink, #1a2a33);
	cursor: pointer;
	text-align: left;
	font-weight: 600;
	white-space: nowrap;
	min-width: 0;
}

.wm-monthly-review-patient-link:hover {
	color: var(--wm-accent, #7a1f2b);
	text-decoration: underline;
}

.wm-monthly-review-cell {
	display: inline-block;
	width: var(--wm-mr-cell-size);
	height: var(--wm-mr-cell-size);
	border-radius: var(--wm-mr-mark-radius);
	box-sizing: border-box;
	vertical-align: middle;
	flex-shrink: 0;
}

.wm-monthly-review-day-btn.wm-monthly-review-cell {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: var(--wm-mr-cell-size);
	height: var(--wm-mr-cell-size);
	min-width: var(--wm-mr-cell-size);
	min-height: var(--wm-mr-cell-size);
	max-width: var(--wm-mr-cell-size);
	max-height: var(--wm-mr-cell-size);
}

.wm-monthly-review-cell.is-none {
	border: 1px solid var(--wm-mr-mark-border-empty);
	background: transparent;
}

.wm-monthly-review-cell.is-reading {
	background: #16a34a;
	border: 1px solid #15803d;
}

.wm-monthly-review-cell.is-warn {
	background: #ea580c;
	border: 1px solid #c2410c;
}

.wm-monthly-review-cell.is-alert {
	background: #dc2626;
	border: 1px solid #b91c1c;
}

.wm-monthly-review-note-ring {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--wm-mr-slot-size);
	height: var(--wm-mr-slot-size);
	max-width: 100%;
	max-height: 100%;
	padding: var(--wm-mr-note-gap);
	border: 2px dashed var(--wm-mr-note-ring-color);
	border-radius: calc(var(--wm-mr-mark-radius) + 1px);
	line-height: 0;
	vertical-align: middle;
	flex-shrink: 0;
}

.wm-monthly-review-note-ring .wm-monthly-review-day-btn {
	display: inline-flex;
}

.wm-monthly-review-dialog-table tr.is-abnormal-reading {
	background: color-mix(in srgb, #dc2626 10%, transparent);
}

.wm-monthly-review-dialog-reading-value.is-abnormal {
	color: #b91c1c;
	font-weight: 700;
}

.wm-monthly-review-progress {
	position: relative;
	width: 4.1rem;
	height: 0.8rem;
	margin: 0 auto;
	border-radius: 999px;
	overflow: hidden;
	background: color-mix(in srgb, var(--wm-line, #ccc) 55%, transparent);
}

.wm-monthly-review-progress-fill {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
}

.wm-monthly-review-progress-text {
	position: relative;
	z-index: 1;
	display: block;
	font-size: 0.6rem;
	font-weight: 700;
	line-height: 0.8rem;
	color: #fff;
	text-align: center;
	text-shadow: 0 0 2px rgb(0 0 0 / 45%);
}

.wm-monthly-review-footer {
	padding: 0.45rem 0 0;
	margin-top: 0;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	overflow-x: auto;
}

.wm-monthly-review-panel.wm-card {
	padding-bottom: var(--wm-space-4, 1.15rem);
	gap: var(--wm-space-2, 0.65rem);
}

.wm-monthly-review-footer[hidden],
.wm-monthly-review-footer:empty {
	display: none !important;
	padding: 0;
	margin: 0;
	border: 0;
}

.wm-monthly-review-footer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	min-width: 0;
}

.wm-monthly-review-legend {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	gap: 0.15rem 0;
	font-size: 0.75rem;
	font-weight: 700;
	min-width: 0;
	flex: 1 1 12rem;
}

.wm-monthly-review-legend-label {
	margin: 0 0.65rem 0 0.75rem;
}

.wm-monthly-review-legend > .wm-monthly-review-cell {
	margin: 0 0.4rem;
}

.wm-monthly-review-legend-note {
	margin: 0 0.4rem;
}

.wm-monthly-review-legend-note .wm-monthly-review-cell {
	margin: 0;
}

.wm-monthly-review-legend-away {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wm-mr-slot-size);
	height: var(--wm-mr-slot-size);
	margin: 0 0.4rem 0 0.55rem;
	padding: 0;
	background: #bcbcbc;
}

.wm-monthly-review-legend-away .wm-monthly-review-cell {
	margin: 0;
}

.wm-monthly-review-legend-med {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wm-mr-slot-size);
	height: var(--wm-mr-slot-size);
	margin: 0 0.35rem;
	flex-shrink: 0;
}

.wm-monthly-review-legend-med::before {
	content: '';
	width: calc(var(--wm-mr-cell-size) * 0.72);
	height: calc(var(--wm-mr-cell-size) * 0.72);
	border-radius: 50%;
	background: #4b5563;
}

.wm-monthly-review-overall {
	position: relative;
	height: 1.25rem;
	border-radius: 999px;
	overflow: hidden;
	background: color-mix(in srgb, var(--wm-line, #ccc) 55%, transparent);
}

.wm-monthly-review-overall-fill {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
}

.wm-monthly-review-overall-text {
	position: relative;
	z-index: 1;
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.25rem;
	color: #fff;
	text-align: center;
	text-shadow: 0 0 2px rgb(0 0 0 / 45%);
}

.wm-monthly-review-footer-pagination {
	flex: 1 1 17rem;
	min-width: 0;
	max-width: 100%;
	margin-left: auto;
}

.wm-monthly-review-footer-pagination .wm-table-footer {
	margin-top: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.wm-monthly-review-footer-pagination .wm-table-range {
	margin: 0;
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	flex: 0 1 auto;
	min-width: 0;
}

.wm-monthly-review-footer-pagination .wm-table-footer-controls {
	margin-left: 0;
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem 0.5rem;
	min-width: 0;
	max-width: 100%;
}

.wm-monthly-review-footer-pagination .wm-pagination {
	flex-wrap: nowrap;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 1px;
}

.wm-monthly-review-footer-pagination .wm-pagination .wm-page-btn {
	flex-shrink: 0;
}

.wm-monthly-review-footer-pagination .wm-per-page {
	flex-shrink: 0;
}

@media (max-width: 52rem), (orientation: portrait) and (max-width: 72rem) {
	.wm-monthly-review-panel {
		--wm-mr-cell-size: 0.8rem;
		--wm-mr-note-gap: 1px;
		--wm-mr-day-col-width: calc(var(--wm-mr-slot-size) + 0.1rem);
		padding-inline: var(--wm-space-3, 0.85rem);
		padding-bottom: var(--wm-space-4, 1.15rem);
	}

	.wm-monthly-review-head-controls {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.wm-monthly-review-head-tail .wm-monthly-review-head-controls {
		flex-wrap: nowrap;
	}

	.wm-monthly-review-table-host {
		padding: 0.2rem 0 0;
	}

	.wm-monthly-review-table th,
	.wm-monthly-review-table td {
		padding: 0.04rem 0.04rem;
		min-height: var(--wm-mr-row-min-height);
	}

	.wm-monthly-review-name-col {
		width: 8.25rem;
		min-width: 8.25rem;
		max-width: 8.25rem;
		padding-left: 0.25rem !important;
	}

	.wm-monthly-review-progress-col {
		width: 4rem;
		min-width: 4rem;
	}

	.wm-monthly-review-progress {
		width: 3.65rem;
	}

	.wm-monthly-review-presence-col {
		width: 2rem;
		min-width: 2rem;
	}

	.wm-monthly-review-table th.wm-monthly-review-dob-col,
	.wm-monthly-review-table td.wm-monthly-review-dob-col {
		display: none;
	}

	.wm-monthly-review-footer {
		padding: 0.4rem 0 0;
	}

	.wm-monthly-review-footer-row {
		flex-direction: column;
		align-items: stretch;
		gap: 0.45rem;
	}

	.wm-monthly-review-legend {
		flex: 1 1 auto;
	}

	.wm-monthly-review-legend-label {
		margin-left: 0;
	}

	.wm-monthly-review-legend > .wm-monthly-review-cell,
	.wm-monthly-review-legend-note,
	.wm-monthly-review-legend-away,
	.wm-monthly-review-legend-med {
		margin-inline: 0.22rem;
	}

	.wm-monthly-review-footer .wm-monthly-review-overall-wrap {
		width: 100%;
		max-width: none;
		min-width: 0;
		margin-inline: 0;
	}

	.wm-monthly-review-footer-pagination {
		flex: 1 1 auto;
		margin-left: 0;
		width: 100%;
	}

	.wm-monthly-review-footer-pagination .wm-table-footer {
		justify-content: space-between;
	}

	.wm-monthly-review-footer-pagination .wm-table-footer-controls {
		justify-content: flex-end;
		width: 100%;
	}
}

@container wm-mr-layout (max-width: 36rem) {
	.wm-monthly-review-footer-pagination .wm-table-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.wm-monthly-review-footer-pagination .wm-table-footer-controls {
		justify-content: space-between;
		width: 100%;
	}

	.wm-monthly-review-footer-pagination .wm-pagination {
		flex: 1 1 auto;
		justify-content: center;
	}
}

.wm-monthly-review-progress-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
	cursor: help;
	outline: none;
}

.wm-monthly-review-footer .wm-monthly-review-overall-wrap {
	display: block;
	width: min(18.75rem, 100%);
	min-width: 11rem;
	max-width: 18.75rem;
	cursor: help;
	outline: none;
	flex: 0 1 18.75rem;
	margin-inline: auto;
}

.wm-monthly-review-footer .wm-monthly-review-overall {
	width: 100%;
}

.wm-hover-tooltip-layer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
	overflow: visible;
}

.wm-hover-tooltip {
	position: fixed;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 140ms ease, visibility 140ms ease;
	background: var(--wm-panel, #fff);
	color: var(--wm-ink, #1a2332);
	border: 1px solid color-mix(in srgb, var(--wm-line, #d8dce3) 90%, transparent);
	border-radius: var(--wm-radius, 8px);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.wm-hover-tooltip.is-visible {
	opacity: 1;
	visibility: visible;
}

.wm-monthly-review-cpt-tooltip-shell {
	padding: 0.45rem 0.55rem;
}

.wm-monthly-review-cpt-tooltip {
	display: grid;
	grid-template-columns: repeat(2, minmax(8.5rem, 1fr));
	gap: 0.35rem 0.5rem;
}

.wm-monthly-review-cpt-tooltip-item.is-wide {
	grid-column: 1 / -1;
}

.wm-monthly-review-cpt-tooltip-item.is-inactive {
	opacity: 0.75;
}

.wm-monthly-review-cpt-tooltip-shell .wm-monthly-review-cpt-bar.is-compact {
	height: 1.3rem;
	min-width: 0;
	width: 100%;
	background: color-mix(in srgb, var(--wm-line, #d8dce3) 55%, transparent);
}

.wm-monthly-review-cpt-tooltip-shell .wm-monthly-review-cpt-bar-text {
	font-size: 0.68rem;
	line-height: 1.3rem;
	color: var(--wm-ink, #1a2332);
	text-shadow: none;
}

.wm-monthly-review-cpt-tooltip-shell .wm-monthly-review-cpt-bar:not(.is-low-fill) .wm-monthly-review-cpt-bar-text {
	color: #fff;
	text-shadow: 0 0 2px rgb(0 0 0 / 45%);
}

.wm-monthly-review-day-btn {
	appearance: none;
	padding: 0;
	margin: 0 auto;
	align-items: center;
	justify-content: center;
	cursor: default;
}

.wm-monthly-review-day-btn.is-clickable:not(:disabled) {
	cursor: pointer;
}

.wm-monthly-review-day-btn:disabled {
	opacity: 1;
}

.wm-monthly-review-week-check.is-clickable {
	appearance: none;
	padding: 0;
	cursor: pointer;
}

.wm-monthly-review-cpt-breakdown {
	display: grid;
	gap: 0.65rem;
	min-width: min(100%, 20rem);
}

.wm-monthly-review-cpt-row.is-inactive {
	opacity: 0.72;
}

.wm-monthly-review-cpt-row-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 0.5rem;
	margin-bottom: 0.2rem;
}

.wm-monthly-review-cpt-code {
	font-size: 0.8rem;
	font-weight: 700;
}

.wm-monthly-review-cpt-metric {
	font-size: 0.75rem;
}

.wm-monthly-review-cpt-bar {
	position: relative;
	height: 1.15rem;
	border-radius: 999px;
	overflow: hidden;
	background: color-mix(in srgb, var(--wm-line, #ccc) 55%, transparent);
}

.wm-monthly-review-cpt-bar-fill {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
}

.wm-monthly-review-cpt-bar-text {
	position: relative;
	z-index: 1;
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.15rem;
	color: #fff;
	text-align: center;
	text-shadow: 0 0 2px rgb(0 0 0 / 45%);
}

.wm-form-dialog.wm-form-dialog--monthly-review {
	width: min(88rem, 94vw);
	max-width: 1400px;
	max-height: 90vh;
	height: min(90vh, 56rem);
}

.wm-form-dialog--monthly-review .wm-form-dialog-body {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0.5rem 0.65rem 0.65rem;
}

.wm-monthly-review-dialog-loading {
	margin: 0.5rem 0.25rem;
}

.wm-monthly-review-dialog {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
	gap: 0.5rem;
	min-height: 0;
	height: 100%;
}

.wm-monthly-review-dialog-measurements-col {
	display: grid;
	grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.5rem;
	min-height: 0;
}

.wm-monthly-review-dialog-panel-notes,
.wm-monthly-review-dialog-panel-readings,
.wm-monthly-review-dialog-panel-third-party,
.wm-monthly-review-dialog-panel-compose {
	min-height: 0;
}

.wm-monthly-review-dialog-panel-compose .wm-monthly-review-dialog-compose {
	flex: 1 1 auto;
	min-height: 0;
}

.wm-monthly-review-dialog-panel-compose .wm-rpm-review-compose-body {
	flex: 1 1 auto;
	min-height: 6rem;
}

.wm-monthly-review-dialog-subtitle {
	margin: 0 0 0.35rem;
	padding: 0 0.15rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: none;
	color: inherit;
}

.wm-monthly-review-dialog-table-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
}

.wm-monthly-review-dialog-panel-notes {
	display: flex;
	flex-direction: column;
}

.wm-monthly-review-dialog-panel-readings,
.wm-monthly-review-dialog-panel-third-party {
	display: flex;
	flex-direction: column;
}

.wm-monthly-review-dialog-table {
	width: 100%;
	font-size: 0.8125rem;
}

.wm-monthly-review-dialog-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--wm-panel, #fff);
	font-size: 0.75rem;
}

.wm-monthly-review-dialog-note-row {
	cursor: pointer;
}

.wm-monthly-review-dialog-note-row:hover {
	background: color-mix(in srgb, var(--wm-accent, currentColor) 6%, transparent);
}

.wm-monthly-review-dialog-note-name {
	font-weight: 700;
	font-size: 0.78rem;
	text-align: left;
}

.wm-monthly-review-dialog-note-name .wm-icon {
	display: inline-block;
	vertical-align: -0.15em;
	margin-right: 0.2rem;
	transition: transform 140ms ease;
}

.wm-monthly-review-dialog-note-chevron.is-open {
	transform: rotate(90deg);
}

.wm-monthly-review-dialog-note-created {
	text-align: right;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.wm-monthly-review-dialog-note-detail-cell {
	padding: 0.35rem 0.5rem 0.65rem 1.35rem !important;
	background: color-mix(in srgb, var(--wm-line, #dcdcde) 12%, transparent);
}

.wm-monthly-review-dialog-note-detail-body {
	max-height: 12.5rem;
	overflow: auto;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.45;
	white-space: pre-wrap;
	text-align: left;
}

.wm-monthly-review-dialog-reading-when {
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
}

.wm-monthly-review-dialog-reading-value {
	text-align: right;
	font-size: 0.8125rem;
	font-weight: 500;
}

.wm-monthly-review-dialog-toggles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem 0.5rem;
	margin-top: 0.35rem;
}

.wm-monthly-review-dialog-save-row {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.45rem;
}

.wm-monthly-review-dialog-save-row .wm-btn {
	min-width: 5.5rem;
	text-transform: capitalize;
}

@media (max-width: 1100px) {
	.wm-monthly-review-dialog {
		grid-template-columns: 1fr;
		overflow: auto;
	}

	.wm-form-dialog.wm-form-dialog--monthly-review {
		height: auto;
		max-height: 94vh;
	}

	.wm-form-dialog--monthly-review .wm-form-dialog-body {
		overflow: auto;
	}
}

/*
 * Pointer focus rings.
 *
 * WordPress themes paint their own :focus outline on every control, and it
 * lands on the plugin's pills, tabs, cards and links after a click — a heavy
 * ring the clinic UI never asks for. Silence it for pointer focus across every
 * plugin root (the portal header sits outside .wm-consult-app, so both are
 * listed). Keyboard focus is untouched: :focus-visible still draws the accent
 * ring each component defines, which is what keyboard and screen reader users
 * rely on to know where they are.
 */
:is(.wm-portal, .wm-consult-app, .wm-consult-themed, .wm-consult-join-page)
	:is(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="menuitem"], [role="tab"]):focus:not(:focus-visible) {
	outline: none !important;
	outline-offset: 0 !important;
}

/* Same for the roots themselves when a theme makes the wrapper focusable. */
:is(.wm-portal, .wm-consult-app, .wm-consult-themed, .wm-consult-join-page):focus:not(:focus-visible) {
	outline: none !important;
}

.wm-call-patient > .wm-stetho-card {
	flex: 0 0 auto;
	margin: 0.75rem 0.85rem 0.35rem;
	padding: 0.9rem 1rem 1rem;
	border: 1px solid color-mix(in srgb, var(--wm-border, #c9d0d8) 85%, transparent);
	border-radius: 0.7rem;
	background: var(--wm-surface, #fff);
	box-shadow: 0 1px 2px color-mix(in srgb, #000 6%, transparent);
}

.wm-stetho-card-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
}

.wm-stetho-card-name {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.2;
}

.wm-stetho-card-title .wm-stetho-connline {
	flex: 0 0 auto;
	margin: 0;
}

.wm-stetho-record.is-on {
	background: var(--wm-accent, #a51717);
	border-color: var(--wm-accent, #a51717);
	color: var(--wm-on-accent, #fff);
}

.wm-stetho-panel {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.wm-stetho-status {
	margin: 0;
	color: var(--wm-muted, #5b6b75);
	font-size: 0.85rem;
}

.wm-stetho-connline {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #777;
}

.wm-stetho-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: #c5c5c5;
}

.wm-stetho-dot.is-on {
	background: #1b7f3a;
}

.wm-stetho-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
}

.wm-stetho-fact {
	display: flex;
	gap: 0.35rem;
	align-items: baseline;
}

.wm-stetho-fact-label {
	color: var(--wm-muted, #5b6b75);
}

.wm-stetho-fact-value {
	font-weight: 650;
}

.wm-stetho-kicker {
	margin: 0;
	color: var(--wm-accent, #a51717);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wm-stetho-wave {
	display: block;
	width: 100%;
	height: 96px;
	border-radius: 8px;
	background: #f7f9fc;
}

.wm-stetho-segment {
	display: flex;
	gap: 0.35rem;
	padding: 0.25rem;
	border-radius: 10px;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, var(--wm-panel, #fff));
}

.wm-stetho-mode {
	flex: 1;
	min-height: 2.4rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--wm-accent, #a51717);
	font: inherit;
	cursor: pointer;
}

.wm-stetho-mode:disabled {
	cursor: default;
	opacity: 0.55;
}

.wm-stetho-mode.is-on {
	background: var(--wm-accent, #a51717);
	color: var(--wm-on-accent, #fff);
}

.wm-stetho-noise {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	background: color-mix(in srgb, var(--wm-muted, #5b6b75) 12%, var(--wm-panel, #fff));
}

.wm-stetho-switch {
	width: 2.6rem;
	height: 1.45rem;
	accent-color: var(--wm-accent, #a51717);
}

.wm-stetho-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.wm-stetho-vol {
	min-width: 3rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.wm-live-consult {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.85rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	border: 1px solid color-mix(in srgb, var(--wm-accent, #a51717) 45%, transparent);
	background: color-mix(in srgb, var(--wm-accent, #a51717) 12%, var(--wm-panel, #fff));
}

.wm-live-consult p {
	margin: 0;
	font-weight: 600;
}
