/*
 * Homeo Clinic Manager — front-end styles. SOURCE FILE: edit this one, then
 * run `php tools/build-css.php` to build app.css (every selector gets an
 * ID-strength scope so site themes cannot repaint the app).
 * Everything is scoped under .hcm-app / .hcm-auth / .hcm-book so it does not
 * leak into, or get overridden by, the site theme.
 *
 * .hcm-book is the public booking page, which has no dashboard around it. It
 * has to carry the palette itself: without it every var(--hcm-*) resolves to
 * nothing and the calendar loses its borders, its panel and its selected day.
 */

:is(html,#hcm-scope) .hcm-app,:is(html,#hcm-scope) .hcm-auth,:is(html,#hcm-scope) .hcm-book {
	--hcm-green: #008000;
	--hcm-green-dark: #056605;
	--hcm-green-soft: #eaf4ea;
	--hcm-yellow: #ffde59;
	--hcm-ink: #2a2927;
	--hcm-ink-2: #4f4e4a;
	--hcm-muted: #6f6e69;
	--hcm-line: #e3e5df;
	--hcm-line-2: #f0f1ee;
	--hcm-bg: #f4f5f2;
	--hcm-card: #ffffff;
	--hcm-danger: #b3261e;
	--hcm-danger-soft: #fdecea;
	--hcm-radius: 12px;
	--hcm-radius-sm: 9px;
	--hcm-shadow: 0 1px 2px rgba(20, 20, 18, .05), 0 6px 20px rgba(20, 20, 18, .05);
	--hcm-side-w: 246px;
	--hcm-canvas: 1340px;
	--hcm-gutter: 2rem;

	box-sizing: border-box;
	color: var(--hcm-ink) !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

:is(html,#hcm-scope) .hcm-app *,:is(html,#hcm-scope) .hcm-auth *,:is(html,#hcm-scope) .hcm-app *::before,:is(html,#hcm-scope) .hcm-auth *::before,:is(html,#hcm-scope) .hcm-app *::after,:is(html,#hcm-scope) .hcm-auth *::after { box-sizing: border-box; }

/* 2.1.2 — controls start from a clean slate. Themes style bare buttons and
   fields (Elementor kits add their font, 16px/28px padding and a 0.3s
   "transition: all"). :where() keeps this at zero specificity, so every class
   rule below still wins; it only replaces what the theme would have set. */
:is(html,#hcm-scope) :where(.hcm-app, .hcm-auth, .hcm-book) :where(button, input, select, textarea) {
	font-family: inherit;
	letter-spacing: inherit;
	text-transform: none;
	box-shadow: none;
	transition-property: color, background-color, border-color, box-shadow, opacity;
	transition-duration: .12s;
	transition-timing-function: ease;
}
:is(html,#hcm-scope) :where(.hcm-app, .hcm-auth, .hcm-book) :where(button) { padding: 1px 6px; min-height: 0; }

/* ------------------------------------------------------------------ *
 * Escaping the theme's content column
 *
 * Block themes constrain post content to a reading measure — Twenty
 * Twenty-Five uses about 650px — which is right for an article and far too
 * narrow for an application with a sidebar. This widens the app back out,
 * centred on the page and capped at a sensible canvas. The negative margins
 * resolve to zero when the parent is already wide enough, so a full-width
 * template or a page builder is left alone.
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-app,:is(html,#hcm-scope) .hcm-auth {
	--hcm-breakout: min(var(--hcm-canvas), calc(100vw - var(--hcm-gutter)));

	/* WordPress's constrained-layout rule caps every child of the content area
	   with "max-width: <content-size>" and centres it with
	   "margin-inline: auto !important". Both have to be overridden, so the
	   !important here is answering an !important, not shouting for no reason.

	   The margin is written as (100% - breakout) / 2 rather than auto because
	   it has to work in both directions: positive to centre inside a parent
	   that is wider than the canvas, negative to spill symmetrically out of a
	   parent that is narrower. "auto" cannot do the second. */
	width: var(--hcm-breakout) !important;
	max-width: var(--hcm-breakout) !important;
	margin-left: calc((100% - var(--hcm-breakout)) / 2) !important;
	margin-right: calc((100% - var(--hcm-breakout)) / 2) !important;
}

/* A sign-in form does not want a 1340px canvas. */
:is(html,#hcm-scope) .hcm-auth { --hcm-canvas: 1000px; }

/* [homeo_clinic width="full"] — edge to edge. */
:is(html,#hcm-scope) .hcm-app--full,:is(html,#hcm-scope) .hcm-auth--full { --hcm-canvas: 100vw; }

/* [homeo_clinic width="contained"] — stay inside the theme's column, for
   themes that clip overflow or page builders that manage width themselves. */
:is(html,#hcm-scope) .hcm-app--contained,:is(html,#hcm-scope) .hcm-auth--contained {
	width: auto !important;
	max-width: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

:is(html,#hcm-scope) .hcm-app h1,:is(html,#hcm-scope) .hcm-app h2,:is(html,#hcm-scope) .hcm-app h3,:is(html,#hcm-scope) .hcm-auth h1,:is(html,#hcm-scope) .hcm-auth h2,:is(html,#hcm-scope) .hcm-auth h3 {
	margin: 0;
	font-weight: 650;
	letter-spacing: -.011em;
	line-height: 1.25;
	color: var(--hcm-ink) !important;
}

:is(html,#hcm-scope) .hcm-app p,:is(html,#hcm-scope) .hcm-auth p { margin: 0; }

/* ------------------------------------------------------------------ *
 * Buttons, links, pills
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 17px;
	border: 1px solid transparent;
	border-radius: var(--hcm-radius-sm);
	background: transparent !important;
	color: var(--hcm-ink) !important;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .14s ease, border-color .14s ease, color .14s ease, opacity .14s ease;
}

/* Clicking a control should not leave a box around it. Keyboard focus still
   gets a clear green ring — this only suppresses the ring for pointer focus,
   including the browser's own default, which showed as a black rectangle on
   the disease bar. */
:is(html,#hcm-scope) .hcm-app :focus:not(:focus-visible),:is(html,#hcm-scope) .hcm-auth :focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

:is(html,#hcm-scope) .hcm-btn:focus-visible,:is(html,#hcm-scope) .hcm-app a:focus-visible,:is(html,#hcm-scope) .hcm-auth a:focus-visible,:is(html,#hcm-scope) .hcm-app button:focus-visible,:is(html,#hcm-scope) .hcm-auth button:focus-visible,:is(html,#hcm-scope) .hcm-app input:focus-visible,:is(html,#hcm-scope) .hcm-app select:focus-visible,:is(html,#hcm-scope) .hcm-app textarea:focus-visible,:is(html,#hcm-scope) .hcm-auth input:focus-visible {
	outline: 2px solid var(--hcm-green);
	outline-offset: 2px;
	border-radius: var(--hcm-radius-sm);
}

:is(html,#hcm-scope) .hcm-btn--primary { background: var(--hcm-green) !important; color: #fff !important; }
:is(html,#hcm-scope) .hcm-btn--primary:hover { background: var(--hcm-green-dark) !important; color: #fff !important; }

:is(html,#hcm-scope) .hcm-btn--ghost {
	background: var(--hcm-card) !important;
	border-color: var(--hcm-line) !important;
	color: var(--hcm-ink) !important;
}
:is(html,#hcm-scope) .hcm-btn--ghost:hover { border-color: #cdd0c8 !important; background: #fbfbf9 !important; color: var(--hcm-ink) !important; }

:is(html,#hcm-scope) .hcm-btn--danger { background: transparent !important; border-color: #eccdcb !important; color: var(--hcm-danger) !important; }
:is(html,#hcm-scope) .hcm-btn--danger:hover { background: var(--hcm-danger-soft) !important; color: var(--hcm-danger) !important; }

:is(html,#hcm-scope) .hcm-btn--sm { padding: 7px 13px; font-size: 13px; }
:is(html,#hcm-scope) .hcm-btn--block { width: 100%; }
:is(html,#hcm-scope) .hcm-btn[disabled] { opacity: .55; cursor: default; }

/* 3.3.0: themes that underline every link in the content area. */
:is(html,#hcm-scope) :where(.hcm-app, .hcm-book, .hcm-auth) a { color: var(--hcm-green-dark) !important; text-decoration: none !important; background-color: transparent !important; }

:is(html,#hcm-scope) .hcm-link { color: var(--hcm-green-dark) !important; text-decoration: none !important; font-weight: 600; }
:is(html,#hcm-scope) .hcm-link:hover { text-decoration: underline !important; }
:is(html,#hcm-scope) .hcm-link--muted { color: var(--hcm-muted) !important; font-weight: 500; font-size: 13px; }

:is(html,#hcm-scope) .hcm-linkbtn {
	background: none !important; border: 0; padding: 0; font: inherit;
	color: var(--hcm-green-dark) !important; font-weight: 600; cursor: pointer; text-decoration: underline !important;
}

:is(html,#hcm-scope) .hcm-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 650;
	letter-spacing: .01em;
	background: var(--hcm-line-2) !important;
	color: var(--hcm-ink-2) !important;
	white-space: nowrap;
}
:is(html,#hcm-scope) .hcm-pill--active { background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important; }
:is(html,#hcm-scope) .hcm-pill--follow_up { background: #fff6da !important; color: #7a5c00 !important; }
:is(html,#hcm-scope) .hcm-pill--cured { background: #e8f0fe !important; color: #1a4b8c !important; }
:is(html,#hcm-scope) .hcm-pill--closed { background: var(--hcm-line-2) !important; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-pill--date { background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important; font-variant-numeric: tabular-nums; }

:is(html,#hcm-scope) .hcm-bubble {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px; height: 34px;
	flex: 0 0 34px;
	border-radius: 50%;
	background: var(--hcm-green-soft) !important;
	color: var(--hcm-green-dark) !important;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .02em;
}
:is(html,#hcm-scope) .hcm-bubble--lg { width: 44px; height: 44px; flex-basis: 44px; font-size: 15px; }
:is(html,#hcm-scope) .hcm-bubble--xl { width: 58px; height: 58px; flex-basis: 58px; font-size: 19px; }

:is(html,#hcm-scope) .hcm-amount { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(html,#hcm-scope) .hcm-invno { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-req { color: var(--hcm-danger) !important; }

/* ------------------------------------------------------------------ *
 * Notices and toast
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-notice {
	padding: 11px 14px;
	border-radius: var(--hcm-radius-sm);
	font-size: 14px;
	margin: 0 0 16px;
	border: 1px solid transparent;
}
:is(html,#hcm-scope) .hcm-notice--success { background: var(--hcm-green-soft) !important; border-color: #cfe4cf !important; color: #17561a !important; }
:is(html,#hcm-scope) .hcm-notice--error { background: var(--hcm-danger-soft) !important; border-color: #f2cfcc !important; color: #8c1d18 !important; }

:is(html,#hcm-scope) .hcm-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	z-index: 100000;
	max-width: min(420px, calc(100vw - 32px));
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--hcm-ink) !important;
	color: #fafaf7 !important;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 8px 30px rgba(20, 20, 18, .28);
}
:is(html,#hcm-scope) .hcm-toast--error { background: var(--hcm-danger) !important; }

/* ------------------------------------------------------------------ *
 * Forms
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-form { display: flex; flex-direction: column; gap: 15px; }
:is(html,#hcm-scope) .hcm-form--inline { gap: 0; margin-top: 4px; }

:is(html,#hcm-scope) .hcm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
:is(html,#hcm-scope) .hcm-field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

:is(html,#hcm-scope) .hcm-field label,:is(html,#hcm-scope) .hcm-field > label {
	font-size: 13px;
	font-weight: 600;
	color: var(--hcm-ink-2) !important;
	letter-spacing: .005em;
}

:is(html,#hcm-scope) .hcm-app input[type="text"],:is(html,#hcm-scope) .hcm-app input[type="email"],:is(html,#hcm-scope) .hcm-app input[type="tel"],:is(html,#hcm-scope) .hcm-app input[type="url"],:is(html,#hcm-scope) .hcm-app input[type="date"],:is(html,#hcm-scope) .hcm-app input[type="number"],:is(html,#hcm-scope) .hcm-app input[type="search"],:is(html,#hcm-scope) .hcm-app input[type="password"],:is(html,#hcm-scope) .hcm-app select,:is(html,#hcm-scope) .hcm-app textarea,:is(html,#hcm-scope) .hcm-auth input[type="text"],:is(html,#hcm-scope) .hcm-auth input[type="email"],:is(html,#hcm-scope) .hcm-auth input[type="tel"],:is(html,#hcm-scope) .hcm-auth input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius-sm);
	background: var(--hcm-card) !important;
	color: var(--hcm-ink) !important;
	font: inherit;
	font-size: 14.5px;
	line-height: 1.4;
	min-height: 42px;
	appearance: none;
	-webkit-appearance: none;
}

:is(html,#hcm-scope) .hcm-app textarea,:is(html,#hcm-scope) .hcm-auth textarea { resize: vertical; min-height: 66px; }

:is(html,#hcm-scope) .hcm-app input::placeholder,:is(html,#hcm-scope) .hcm-auth input::placeholder,:is(html,#hcm-scope) .hcm-app textarea::placeholder { color: #a9a8a2 !important; }

:is(html,#hcm-scope) .hcm-app input:focus,:is(html,#hcm-scope) .hcm-app select:focus,:is(html,#hcm-scope) .hcm-app textarea:focus,:is(html,#hcm-scope) .hcm-auth input:focus {
	border-color: var(--hcm-green) !important;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 128, 0, .12);
}

:is(html,#hcm-scope) .hcm-select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b7a75' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	padding-right: 34px;
}

:is(html,#hcm-scope) .hcm-hint { font-size: 12.5px; color: var(--hcm-muted) !important; }

:is(html,#hcm-scope) .hcm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hcm-ink-2) !important; cursor: pointer; }
:is(html,#hcm-scope) .hcm-check input { width: 16px; height: 16px; accent-color: var(--hcm-green); }

:is(html,#hcm-scope) .hcm-passwrap { position: relative; }
:is(html,#hcm-scope) .hcm-passwrap input { padding-right: 46px; }
:is(html,#hcm-scope) .hcm-peek {
	position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0;
	background: none !important; border: 0; border-radius: 8px;
	color: var(--hcm-muted) !important; cursor: pointer;
}
:is(html,#hcm-scope) .hcm-peek:hover { color: var(--hcm-ink) !important; background: var(--hcm-line-2) !important; }
:is(html,#hcm-scope) .hcm-peek svg { width: 18px; height: 18px; display: block; }
:is(html,#hcm-scope) .hcm-peek .hcm-peek__hide { display: none; }
:is(html,#hcm-scope) .hcm-peek.is-on .hcm-peek__show { display: none; }
:is(html,#hcm-scope) .hcm-peek.is-on .hcm-peek__hide { display: block; }

:is(html,#hcm-scope) .hcm-otp {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 26px !important;
	letter-spacing: .34em;
	text-align: center;
	padding: 12px !important;
	min-height: 56px !important;
}

:is(html,#hcm-scope) .hcm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
:is(html,#hcm-scope) .hcm-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

:is(html,#hcm-scope) .hcm-rule { border: 0; border-top: 1px solid var(--hcm-line); margin: 6px 0; }
:is(html,#hcm-scope) .hcm-subhead { font-size: 14px; font-weight: 650; margin: 4px 0 0; }

:is(html,#hcm-scope) .hcm-form__actions {
	display: flex; justify-content: flex-end; gap: 10px;
	padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--hcm-line-2);
}

/* Any class of ours that sets a display value beats the browser's own
   [hidden] rule, because author styles outrank the user agent's. That is how
   the import's buttons came to sit there before a file had been chosen. One
   rule, so it can never happen again to anything. */
:is(html,#hcm-scope) .hcm-app [hidden],:is(html,#hcm-scope) .hcm-auth [hidden],:is(html,#hcm-scope) .hcm-book [hidden] { display: none !important; }

/* The rupee sign gets its own segment rather than floating over the input.
   As an overlay it collided with the digits, because the generic
   ".hcm-app input[type=number]" padding rule outranked the offset applied
   here. A real input group cannot drift out of alignment that way. */
:is(html,#hcm-scope) .hcm-money {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius-sm);
	background: var(--hcm-card) !important;
	overflow: hidden;
}
:is(html,#hcm-scope) .hcm-money__sym {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 13px;
	background: var(--hcm-line-2) !important;
	border-right: 1px solid var(--hcm-line);
	color: var(--hcm-ink-2) !important;
	font-size: 15px;
	font-weight: 650;
	line-height: 1;
}
:is(html,#hcm-scope) .hcm-app .hcm-money input[type="number"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none;
}
:is(html,#hcm-scope) .hcm-app .hcm-money input[type="number"]:focus { box-shadow: none; }
:is(html,#hcm-scope) .hcm-money:focus-within {
	border-color: var(--hcm-green) !important;
	box-shadow: 0 0 0 3px rgba(0, 128, 0, .12);
}

:is(html,#hcm-scope) .hcm-inputchips { display: flex; flex-direction: column; gap: 7px; }
:is(html,#hcm-scope) .hcm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
:is(html,#hcm-scope) .hcm-chip {
	padding: 5px 10px; border: 1px solid var(--hcm-line); border-radius: 999px;
	background: var(--hcm-card) !important; font: inherit; font-size: 12px; font-weight: 600;
	color: var(--hcm-ink-2) !important; cursor: pointer;
}
:is(html,#hcm-scope) .hcm-chip:hover,:is(html,#hcm-scope) .hcm-chip.is-on { border-color: var(--hcm-green) !important; background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important; }

/* Repeatable rows */
:is(html,#hcm-scope) .hcm-repeat { display: flex; flex-direction: column; gap: 9px; }
:is(html,#hcm-scope) .hcm-repeat__rows { display: flex; flex-direction: column; gap: 8px; }
:is(html,#hcm-scope) .hcm-repeat__row { display: flex; align-items: center; gap: 8px; }
:is(html,#hcm-scope) .hcm-repeat__row--med { flex-wrap: wrap; }
:is(html,#hcm-scope) .hcm-repeat__row--med > input[name="medicines[]"] { flex: 1 1 190px; }
:is(html,#hcm-scope) .hcm-repeat__n {
	flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--hcm-line-2) !important; color: var(--hcm-muted) !important;
	font-size: 11.5px; font-weight: 700;
}
:is(html,#hcm-scope) .hcm-repeat__row > input { flex: 1 1 auto; min-width: 0; }
:is(html,#hcm-scope) .hcm-mini { flex: 0 1 108px !important; }
/* Dose now picks from OD/BD/TDS/QID, so it no longer needs the long box. */
:is(html,#hcm-scope) .hcm-mini--dose { flex: 0 1 130px !important; }
:is(html,#hcm-scope) .hcm-repeat__x {
	flex: 0 0 30px; width: 30px; height: 30px; border: 0; border-radius: 7px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent !important; color: var(--hcm-muted) !important; font-size: 20px; line-height: 1; cursor: pointer;
}
:is(html,#hcm-scope) .hcm-repeat__x:hover { background: var(--hcm-danger-soft) !important; color: var(--hcm-danger) !important; }

/* ------------------------------------------------------------------ *
 * Auth screens
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-auth {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	min-height: 560px;
	background: var(--hcm-bg) !important;
	border: 1px solid var(--hcm-line);
	border-radius: 16px;
	overflow: hidden;
}

:is(html,#hcm-scope) .hcm-auth__brand {
	background: var(--hcm-ink) !important;
	color: #fafaf7 !important;
	padding: 46px 42px;
	display: flex;
	align-items: center;
}
:is(html,#hcm-scope) .hcm-auth__brandinner { max-width: 380px; }
:is(html,#hcm-scope) .hcm-auth__mark { color: var(--hcm-yellow) !important; display: block; margin-bottom: 20px; }
/* Needs the extra class to outrank the ".hcm-auth h2" reset above, which would
   otherwise paint this charcoal-on-charcoal and make it disappear. */
:is(html,#hcm-scope) .hcm-auth .hcm-auth__brandtitle { color: #fafaf7 !important; font-size: 25px; margin-bottom: 12px; }
:is(html,#hcm-scope) .hcm-auth__brandtext { color: #c6c5bf !important; font-size: 15px; line-height: 1.6; }
:is(html,#hcm-scope) .hcm-auth__points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
:is(html,#hcm-scope) .hcm-auth__points li {
	position: relative; padding-left: 26px; color: #dedcd4 !important; font-size: 14px;
}
:is(html,#hcm-scope) .hcm-auth__points li::before {
	content: ""; position: absolute; left: 0; top: 8px;
	width: 14px; height: 7px; border-left: 2px solid var(--hcm-yellow); border-bottom: 2px solid var(--hcm-yellow);
	transform: rotate(-45deg);
}

:is(html,#hcm-scope) .hcm-auth__panel { display: flex; align-items: center; justify-content: center; padding: 46px 34px; background: var(--hcm-card) !important; }
:is(html,#hcm-scope) .hcm-auth__card { width: 100%; max-width: 380px; }
:is(html,#hcm-scope) .hcm-auth__title { font-size: 24px; margin-bottom: 6px; }
:is(html,#hcm-scope) .hcm-auth__subtitle { color: var(--hcm-muted) !important; font-size: 14.5px; margin-bottom: 22px; }
:is(html,#hcm-scope) .hcm-auth__foot { margin-top: 16px; font-size: 14px; color: var(--hcm-muted) !important; text-align: center; }

/* ------------------------------------------------------------------ *
 * App shell
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-app {
	position: relative;
	display: grid;
	grid-template-columns: var(--hcm-side-w) minmax(0, 1fr);
	min-height: 640px;
	background: var(--hcm-bg) !important;
	border: 1px solid var(--hcm-line);
	border-radius: 16px;
	overflow: hidden;
	/* clip, not hidden: hidden makes .hcm-app a scroll box, which stops the
	   sidebar from sticking to the window. Older browsers keep "hidden". */
	overflow: clip;
}

:is(html,#hcm-scope) .hcm-side {
	background: var(--hcm-ink) !important;
	color: #d9d8d1 !important;
	display: flex;
	flex-direction: column;
	padding: 18px 12px;
	min-width: 0;
}

:is(html,#hcm-scope) .hcm-side__head { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
:is(html,#hcm-scope) .hcm-side__logo { color: var(--hcm-yellow) !important; display: inline-flex; }
:is(html,#hcm-scope) .hcm-side__name {
	font-size: 14.5px; font-weight: 650; color: #fafaf7 !important; letter-spacing: -.01em;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
:is(html,#hcm-scope) .hcm-side__close { display: none; margin-left: auto; background: none !important; border: 0; color: #9c9b94 !important; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }

:is(html,#hcm-scope) .hcm-nav { display: flex; flex-direction: column; gap: 2px; }
:is(html,#hcm-scope) .hcm-nav__item {
	display: flex; align-items: center; gap: 11px;
	padding: 10px 11px; border-radius: 9px;
	color: #c3c2ba !important; text-decoration: none !important; font-size: 14.5px; font-weight: 550;
	transition: background-color .14s ease, color .14s ease;
}
:is(html,#hcm-scope) .hcm-nav__item:hover { background: rgba(255, 255, 255, .07) !important; color: #fafaf7 !important; }
:is(html,#hcm-scope) .hcm-nav__item.is-active { background: var(--hcm-green) !important; color: #fff !important; font-weight: 650; }
:is(html,#hcm-scope) .hcm-nav__item.is-active .hcm-nav__count { background: rgba(255, 255, 255, .22) !important; color: #fff !important; }
:is(html,#hcm-scope) .hcm-nav__icon { flex: 0 0 19px; }
:is(html,#hcm-scope) .hcm-nav__label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(html,#hcm-scope) .hcm-nav__count {
	flex: 0 0 auto; padding: 1px 7px; border-radius: 999px;
	background: rgba(255, 255, 255, .1) !important; color: #b6b5ad !important;
	font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums;
}
:is(html,#hcm-scope) .hcm-side__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .09); }
:is(html,#hcm-scope) .hcm-nav__item--sm { font-size: 13.5px; }

:is(html,#hcm-scope) .hcm-main { display: flex; flex-direction: column; min-width: 0; background: var(--hcm-bg) !important; }

:is(html,#hcm-scope) .hcm-top {
	display: flex; align-items: center; gap: 12px;
	padding: 13px 22px;
	background: var(--hcm-card) !important;
	border-bottom: 1px solid var(--hcm-line);
}
:is(html,#hcm-scope) .hcm-top__title { font-size: 15px; font-weight: 650; flex: 1 1 auto; }

/* A labelled "Menu" pill, so it is not mistaken for the site's own hamburger. */
:is(html,#hcm-scope) .hcm-burger {
	display: none; align-items: center; gap: 7px;
	padding: 6px 11px 6px 9px; border: 1px solid var(--hcm-line); border-radius: 999px;
	background: var(--hcm-bg) !important; color: var(--hcm-ink) !important;
	font-size: 13px; font-weight: 650; line-height: 1.2; cursor: pointer;
}
:is(html,#hcm-scope) .hcm-burger__bars { display: inline-flex; flex-direction: column; gap: 3px; }
:is(html,#hcm-scope) .hcm-burger__bars span { display: block; width: 15px; height: 2px; background: currentColor !important; border-radius: 2px; }

:is(html,#hcm-scope) .hcm-menu { position: relative; flex: 0 0 auto; }
:is(html,#hcm-scope) .hcm-avatar {
	display: flex; align-items: center; gap: 9px;
	padding: 5px 9px 5px 5px; border: 1px solid transparent; border-radius: 999px;
	background: none !important; font: inherit; cursor: pointer; color: var(--hcm-ink) !important;
}
:is(html,#hcm-scope) .hcm-avatar:hover { background: var(--hcm-line-2) !important; }
:is(html,#hcm-scope) .hcm-avatar__initials {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--hcm-green) !important; color: #fff !important; font-size: 11.5px; font-weight: 700;
}
:is(html,#hcm-scope) .hcm-avatar__name { font-size: 14px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

:is(html,#hcm-scope) .hcm-menu__panel {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
	min-width: 232px; padding: 6px;
	background: var(--hcm-card) !important; border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius); box-shadow: var(--hcm-shadow);
}
:is(html,#hcm-scope) .hcm-menu__head { padding: 9px 11px 11px; border-bottom: 1px solid var(--hcm-line-2); margin-bottom: 5px; }
:is(html,#hcm-scope) .hcm-menu__head strong { display: block; font-size: 14px; }
:is(html,#hcm-scope) .hcm-menu__head span { display: block; font-size: 12.5px; color: var(--hcm-muted) !important; overflow: hidden; text-overflow: ellipsis; }
:is(html,#hcm-scope) .hcm-menu__panel a {
	display: block; padding: 9px 11px; border-radius: 8px;
	color: var(--hcm-ink-2) !important; text-decoration: none !important; font-size: 14px;
}
:is(html,#hcm-scope) .hcm-menu__panel a:hover { background: var(--hcm-line-2) !important; color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-menu__panel a.hcm-menu__danger { color: var(--hcm-danger) !important; }
:is(html,#hcm-scope) .hcm-menu__panel a.hcm-menu__danger:hover { background: var(--hcm-danger-soft) !important; }
:is(html,#hcm-scope) .hcm-menu__sep { border-top: 1px solid var(--hcm-line-2); margin-top: 5px; padding-top: 11px !important; border-radius: 0 0 8px 8px !important; }

:is(html,#hcm-scope) .hcm-content { flex: 1 1 auto; padding: 22px; min-width: 0; }

:is(html,#hcm-scope) .hcm-scrim { display: none; }
:is(html,#hcm-scope) .hcm-tabs { display: none; }

/* ------------------------------------------------------------------ *
 * Page furniture
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
:is(html,#hcm-scope) .hcm-head--sub { margin-top: 28px; }
:is(html,#hcm-scope) .hcm-head--tight { margin: 18px 0 12px; align-items: center; }
:is(html,#hcm-scope) .hcm-head__left { min-width: 0; }
:is(html,#hcm-scope) .hcm-head__title { font-size: 22px; }
:is(html,#hcm-scope) .hcm-head__title--sm { font-size: 18px; }
:is(html,#hcm-scope) .hcm-head__sub { color: var(--hcm-muted) !important; font-size: 13.5px; margin-top: 3px; }

:is(html,#hcm-scope) .hcm-back {
	display: inline-flex; align-items: center; gap: 5px; margin-bottom: 14px;
	color: var(--hcm-muted) !important; text-decoration: none !important; font-size: 13.5px; font-weight: 600;
}
:is(html,#hcm-scope) .hcm-back:hover { color: var(--hcm-ink) !important; }

:is(html,#hcm-scope) .hcm-filters {
	display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
	margin-bottom: 16px;
}
:is(html,#hcm-scope) .hcm-search { position: relative; flex: 1 1 260px; min-width: 0; max-width: 440px; }
:is(html,#hcm-scope) .hcm-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--hcm-muted) !important; pointer-events: none; }
:is(html,#hcm-scope) .hcm-search input { padding-left: 34px !important; }
:is(html,#hcm-scope) .hcm-filters .hcm-select { width: auto; min-width: 148px; flex: 0 0 auto; }
:is(html,#hcm-scope) .hcm-datefield { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--hcm-muted) !important; font-weight: 600; }
:is(html,#hcm-scope) .hcm-datefield input { width: auto !important; min-width: 145px; }

/* Cards */
:is(html,#hcm-scope) .hcm-card {
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius);
	padding: 18px;
	min-width: 0;
}
:is(html,#hcm-scope) .hcm-card--flat { box-shadow: none; }
:is(html,#hcm-scope) .hcm-card--danger { border-color: #eccdcb !important; margin-top: 20px; }
:is(html,#hcm-scope) .hcm-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
:is(html,#hcm-scope) .hcm-card__head h2 { font-size: 16px; }
:is(html,#hcm-scope) .hcm-card__note { font-size: 12.5px; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-card__mini { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hcm-muted) !important; margin-bottom: 8px; }

:is(html,#hcm-scope) .hcm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

:is(html,#hcm-scope) .hcm-prose { font-size: 14px; color: var(--hcm-ink-2) !important; line-height: 1.6; }
:is(html,#hcm-scope) .hcm-prose--muted { color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-prose--sm { font-size: 13.5px; }

/* Stats */
:is(html,#hcm-scope) .hcm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
:is(html,#hcm-scope) .hcm-stat {
	display: flex; flex-direction: column; gap: 3px;
	background: var(--hcm-card) !important; border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius); padding: 16px; text-decoration: none !important; color: inherit !important;
}
:is(html,#hcm-scope) a.hcm-stat:hover { border-color: #cdd0c8 !important; }
:is(html,#hcm-scope) .hcm-stat__label { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-stat__value { font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
:is(html,#hcm-scope) .hcm-stat__foot { font-size: 12.5px; color: var(--hcm-muted) !important; }

/* Simple lists */
:is(html,#hcm-scope) .hcm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
:is(html,#hcm-scope) .hcm-list__item {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 11px 0; border-bottom: 1px solid var(--hcm-line-2);
}
:is(html,#hcm-scope) .hcm-list__item:last-child { border-bottom: 0; padding-bottom: 0; }
:is(html,#hcm-scope) .hcm-list__main { text-decoration: none !important; color: inherit !important; min-width: 0; display: block; }
:is(html,#hcm-scope) .hcm-list__main strong { display: block; font-size: 14.5px; font-weight: 600; }
:is(html,#hcm-scope) .hcm-list__main span { display: block; font-size: 12.5px; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-list__main:hover strong { color: var(--hcm-green-dark) !important; }

/* Tables */
:is(html,#hcm-scope) .hcm-tablewrap {
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius);
	overflow-x: auto;
}
:is(html,#hcm-scope) .hcm-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
:is(html,#hcm-scope) .hcm-table th {
	text-align: left; padding: 11px 14px;
	font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
	color: var(--hcm-muted) !important; border-bottom: 1px solid var(--hcm-line); white-space: nowrap;
}
:is(html,#hcm-scope) .hcm-table td { padding: 12px 14px; border-bottom: 1px solid var(--hcm-line-2); vertical-align: middle; }
:is(html,#hcm-scope) .hcm-table tbody tr:last-child td { border-bottom: 0; }
:is(html,#hcm-scope) .hcm-table tbody tr:hover { background: #fbfbf9 !important; }

:is(html,#hcm-scope) .hcm-cellname { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: inherit !important; min-width: 0; }
:is(html,#hcm-scope) .hcm-cellname strong { display: block; font-weight: 600; font-size: 14px; }
:is(html,#hcm-scope) .hcm-cellname small { display: block; font-size: 12px; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-cellname:hover strong { color: var(--hcm-green-dark) !important; }

/* Tiles */
:is(html,#hcm-scope) .hcm-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
:is(html,#hcm-scope) .hcm-tile {
	display: flex; flex-direction: column; gap: 13px;
	background: var(--hcm-card) !important; border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius); padding: 17px;
}
:is(html,#hcm-scope) .hcm-tile__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
:is(html,#hcm-scope) .hcm-tile__logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--hcm-line-2) !important; }
:is(html,#hcm-scope) .hcm-tile__title { font-size: 16px; }
:is(html,#hcm-scope) .hcm-tile__sub { font-size: 12.5px; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-tile__foot { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

:is(html,#hcm-scope) .hcm-meta { margin: 0; display: flex; flex-direction: column; gap: 7px; }
:is(html,#hcm-scope) .hcm-meta > div { display: flex; gap: 10px; align-items: baseline; }
:is(html,#hcm-scope) .hcm-meta dt { flex: 0 0 88px; font-size: 12px; color: var(--hcm-muted) !important; font-weight: 600; }
:is(html,#hcm-scope) .hcm-meta dd { margin: 0; font-size: 13.5px; min-width: 0; word-break: break-word; }

/* Fact bar */
:is(html,#hcm-scope) .hcm-factbar {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px 18px;
	margin: 0 0 18px; padding: 15px 17px;
	background: var(--hcm-card) !important; border: 1px solid var(--hcm-line); border-radius: var(--hcm-radius);
}
:is(html,#hcm-scope) .hcm-factbar--inset { background: #fbfbf9 !important; margin-bottom: 14px; }
:is(html,#hcm-scope) .hcm-factbar > div { min-width: 0; }
:is(html,#hcm-scope) .hcm-factbar dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hcm-muted) !important; margin-bottom: 2px; }
:is(html,#hcm-scope) .hcm-factbar dd { margin: 0; font-size: 14px; font-weight: 600; word-break: break-word; }

/* Patient profile header */
:is(html,#hcm-scope) .hcm-profile { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
:is(html,#hcm-scope) .hcm-profile__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
:is(html,#hcm-scope) .hcm-profile__name { font-size: 24px; }
:is(html,#hcm-scope) .hcm-profile__sub { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 5px; font-size: 13px; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-profile__actions { display: flex; gap: 8px; }

/* Disease case blocks */
:is(html,#hcm-scope) .hcm-case {
	background: var(--hcm-card) !important; border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius); margin-bottom: 12px; overflow: hidden;
}
:is(html,#hcm-scope) .hcm-case__head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; flex-wrap: wrap; }
:is(html,#hcm-scope) .hcm-case__toggle {
	display: flex; align-items: center; gap: 10px; flex: 1 1 auto;
	background: none !important; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; min-width: 0;
	color: var(--hcm-ink) !important;
}
:is(html,#hcm-scope) .hcm-case__toggle svg { flex: 0 0 16px; color: var(--hcm-muted) !important; transition: transform .16s ease; }
:is(html,#hcm-scope) .hcm-case__toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
:is(html,#hcm-scope) .hcm-case__name { font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(html,#hcm-scope) .hcm-case__tools { display: flex; gap: 7px; flex: 0 0 auto; }
:is(html,#hcm-scope) .hcm-case__body { padding: 0 16px 16px; border-top: 1px solid var(--hcm-line-2); padding-top: 15px; }

:is(html,#hcm-scope) .hcm-symptoms { margin-bottom: 15px; }
:is(html,#hcm-scope) .hcm-symptoms__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--hcm-ink-2) !important; }

/* Visit timeline */
:is(html,#hcm-scope) .hcm-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
:is(html,#hcm-scope) .hcm-visit {
	display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px;
	padding: 15px 0; border-top: 1px solid var(--hcm-line-2);
}
:is(html,#hcm-scope) .hcm-visit:first-child { border-top: 0; padding-top: 4px; }
:is(html,#hcm-scope) .hcm-visit__date strong { display: block; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
:is(html,#hcm-scope) .hcm-visit__date span { display: block; font-size: 12px; color: var(--hcm-muted) !important; margin-top: 2px; }
:is(html,#hcm-scope) .hcm-visit__body { min-width: 0; }

:is(html,#hcm-scope) .hcm-meds { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
:is(html,#hcm-scope) .hcm-meds li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
:is(html,#hcm-scope) .hcm-meds__name { font-weight: 600; }
:is(html,#hcm-scope) .hcm-meds__pot { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important; font-weight: 650; }
:is(html,#hcm-scope) .hcm-meds__dose { font-size: 12.5px; color: var(--hcm-muted) !important; }

:is(html,#hcm-scope) .hcm-visit__facts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 9px 0; font-size: 13px; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-visit__tools { display: flex; gap: 6px; flex-wrap: wrap; }
:is(html,#hcm-scope) .hcm-visit__tools--tight { gap: 5px; }

:is(html,#hcm-scope) .hcm-chipbtn {
	display: inline-flex; align-items: center;
	padding: 5px 11px; border: 1px solid var(--hcm-line); border-radius: 999px;
	background: var(--hcm-card) !important; color: var(--hcm-ink-2) !important;
	font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none !important; cursor: pointer;
	white-space: nowrap;
}
:is(html,#hcm-scope) .hcm-chipbtn:hover { border-color: var(--hcm-green) !important; color: var(--hcm-green-dark) !important; background: var(--hcm-green-soft) !important; }
:is(html,#hcm-scope) .hcm-chipbtn--wa:hover { border-color: #25d366 !important; color: #0d7a3c !important; background: #e9f9ef !important; }
:is(html,#hcm-scope) .hcm-chipbtn--danger { color: var(--hcm-danger) !important; }
:is(html,#hcm-scope) .hcm-chipbtn--danger:hover { border-color: #eccdcb !important; background: var(--hcm-danger-soft) !important; color: var(--hcm-danger) !important; }

/* Empty and welcome states */
:is(html,#hcm-scope) .hcm-empty {
	background: var(--hcm-card) !important; border: 1px dashed var(--hcm-line);
	border-radius: var(--hcm-radius); padding: 46px 24px; text-align: center;
}
:is(html,#hcm-scope) .hcm-empty h2 { font-size: 17px; margin-bottom: 6px; }
:is(html,#hcm-scope) .hcm-empty p { color: var(--hcm-muted) !important; font-size: 14px; margin-bottom: 16px; }
:is(html,#hcm-scope) .hcm-empty--sm { padding: 22px 16px; border: 0; background: transparent !important; color: var(--hcm-muted) !important; font-size: 13.5px; text-align: left; }
:is(html,#hcm-scope) .hcm-empty--inset { padding: 30px 20px; }

:is(html,#hcm-scope) .hcm-welcome { background: var(--hcm-card) !important; border: 1px solid var(--hcm-line); border-radius: var(--hcm-radius); padding: 26px; }
:is(html,#hcm-scope) .hcm-welcome h2 { font-size: 20px; margin-bottom: 5px; }
:is(html,#hcm-scope) .hcm-welcome > p { color: var(--hcm-muted) !important; font-size: 14.5px; margin-bottom: 20px; }
:is(html,#hcm-scope) .hcm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
:is(html,#hcm-scope) .hcm-steps li { display: flex; gap: 12px; align-items: flex-start; }
:is(html,#hcm-scope) .hcm-steps__n {
	flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important; font-size: 12.5px; font-weight: 700;
}
:is(html,#hcm-scope) .hcm-steps strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
:is(html,#hcm-scope) .hcm-steps p { font-size: 13px; color: var(--hcm-muted) !important; margin-bottom: 9px; }

/* Pagination */
:is(html,#hcm-scope) .hcm-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
:is(html,#hcm-scope) .hcm-pager__btn {
	padding: 8px 15px; border: 1px solid var(--hcm-line); border-radius: var(--hcm-radius-sm);
	background: var(--hcm-card) !important; color: var(--hcm-ink) !important; text-decoration: none !important; font-size: 13.5px; font-weight: 600;
}
:is(html,#hcm-scope) .hcm-pager__btn:hover { border-color: #cdd0c8 !important; }
:is(html,#hcm-scope) .hcm-pager__btn.is-disabled { opacity: .45; pointer-events: none; }
:is(html,#hcm-scope) .hcm-pager__count { font-size: 13px; color: var(--hcm-muted) !important; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ *
 * Modal
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
:is(html,#hcm-scope) .hcm-modal[hidden] { display: none; }
:is(html,#hcm-scope) .hcm-modal__scrim { position: absolute; inset: 0; background: rgba(24, 24, 22, .5) !important; }
:is(html,#hcm-scope) .hcm-modal__box {
	position: relative; z-index: 1;
	width: 100%; max-width: 620px; max-height: calc(100vh - 40px);
	display: flex; flex-direction: column;
	background: var(--hcm-card) !important; border-radius: 14px;
	box-shadow: 0 20px 60px rgba(20, 20, 18, .3);
	overflow: hidden;
}
:is(html,#hcm-scope) .hcm-modal__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 20px; border-bottom: 1px solid var(--hcm-line);
}
:is(html,#hcm-scope) .hcm-modal__head h2 { font-size: 17px; }
:is(html,#hcm-scope) .hcm-modal__x { background: none !important; border: 0; font-size: 26px; line-height: 1; color: var(--hcm-muted) !important; cursor: pointer; padding: 0 4px; }
:is(html,#hcm-scope) .hcm-modal__x:hover { color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-modal__body { padding: 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------ *
 * Tablet
 * ------------------------------------------------------------------ */

@media (max-width: 1100px) {
	:is(html,#hcm-scope) .hcm-stats { grid-template-columns: repeat(2, 1fr); }
	:is(html,#hcm-scope) .hcm-steps { grid-template-columns: 1fr; }

	/* Laptop and tablet-landscape widths: tighten the table so it fits the
	   content column instead of needing a sideways scroll. */
	:is(html,#hcm-scope) .hcm-table { font-size: 13.5px; }
	:is(html,#hcm-scope) .hcm-table th { padding: 10px 8px; }
	:is(html,#hcm-scope) .hcm-table td { padding: 10px 8px; }
	:is(html,#hcm-scope) .hcm-cellname { gap: 8px; }
	:is(html,#hcm-scope) .hcm-content { padding: 18px; }
}

@media (max-width: 900px) {
	:is(html,#hcm-scope) .hcm-cols { grid-template-columns: 1fr; }
	:is(html,#hcm-scope) .hcm-auth { grid-template-columns: 1fr; }
	:is(html,#hcm-scope) .hcm-auth__brand { padding: 32px 26px; }
	:is(html,#hcm-scope) .hcm-auth__points { display: none; }
	:is(html,#hcm-scope) .hcm-auth__panel { padding: 30px 22px; }
}

/* ------------------------------------------------------------------ *
 * Mobile: drawer sidebar, bottom tabs, cards instead of tables
 * ------------------------------------------------------------------ */

@media (max-width: 782px) {
	:is(html,#hcm-scope) .hcm-app {
		grid-template-columns: 1fr;
		border-radius: 12px;
		min-height: 520px;
	}

	:is(html,#hcm-scope) .hcm-side {
		position: fixed;
		top: 0; bottom: 0; left: 0;
		width: 268px;
		z-index: 99998;
		transform: translateX(-102%);
		transition: transform .22s ease;
		padding-top: 16px;
		overflow-y: auto;
	}
	:is(html,#hcm-scope) .hcm-app.is-drawer-open .hcm-side { transform: translateX(0); }
	:is(html,#hcm-scope) .hcm-side__close { display: block; }

	:is(html,#hcm-scope) .hcm-scrim {
		display: block;
		position: fixed; inset: 0; z-index: 99997;
		background: rgba(24, 24, 22, .45) !important;
	}
	:is(html,#hcm-scope) .hcm-scrim[hidden] { display: none; }

	:is(html,#hcm-scope) .hcm-burger { display: inline-flex; }
	:is(html,#hcm-scope) .hcm-avatar__name { display: none; }
	:is(html,#hcm-scope) .hcm-top { padding: 11px 14px; }
	:is(html,#hcm-scope) .hcm-content { padding: 16px 14px 88px; }

	:is(html,#hcm-scope) .hcm-tabs {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		position: sticky;
		bottom: 0;
		z-index: 40;
		background: var(--hcm-card) !important;
		border-top: 1px solid var(--hcm-line);
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
	}
	:is(html,#hcm-scope) .hcm-tabs__item {
		display: flex; flex-direction: column; align-items: center; gap: 3px;
		padding: 6px 2px; border-radius: 9px;
		color: var(--hcm-muted) !important; text-decoration: none !important;
		font-size: 10.5px; font-weight: 600; text-align: center; line-height: 1.2;
	}
	:is(html,#hcm-scope) .hcm-tabs__item.is-active { color: var(--hcm-green-dark) !important; background: var(--hcm-green-soft) !important; }

	/* Tables become stacked cards */
	:is(html,#hcm-scope) .hcm-tablewrap { border: 0; background: transparent !important; overflow: visible; }
	:is(html,#hcm-scope) .hcm-table { min-width: 0; display: block; }
	:is(html,#hcm-scope) .hcm-table thead { display: none; }
	:is(html,#hcm-scope) .hcm-table tbody { display: flex; flex-direction: column; gap: 10px; }
	:is(html,#hcm-scope) .hcm-table tbody tr {
		display: block;
		background: var(--hcm-card) !important;
		border: 1px solid var(--hcm-line);
		border-radius: var(--hcm-radius);
		padding: 12px 14px;
	}
	:is(html,#hcm-scope) .hcm-table tbody tr:hover { background: var(--hcm-card) !important; }
	:is(html,#hcm-scope) .hcm-table td {
		display: flex; align-items: center; justify-content: space-between; gap: 14px;
		padding: 6px 0; border-bottom: 1px solid var(--hcm-line-2); text-align: right;
	}
	:is(html,#hcm-scope) .hcm-table td:first-child { padding-top: 0; text-align: left; }
	:is(html,#hcm-scope) .hcm-table td:last-child { border-bottom: 0; padding-bottom: 0; }
	:is(html,#hcm-scope) .hcm-table td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
		color: var(--hcm-muted) !important; text-align: left;
	}
	:is(html,#hcm-scope) .hcm-table td:first-child::before { display: none; }
	:is(html,#hcm-scope) .hcm-table td:first-child > .hcm-cellname { width: 100%; }
	:is(html,#hcm-scope) .hcm-table td .hcm-visit__tools { justify-content: flex-end; }

	:is(html,#hcm-scope) .hcm-head { align-items: flex-start; }
	:is(html,#hcm-scope) .hcm-head__title { font-size: 20px; }
	:is(html,#hcm-scope) .hcm-filters .hcm-select,:is(html,#hcm-scope) .hcm-datefield input { width: 100% !important; }
	:is(html,#hcm-scope) .hcm-filters .hcm-select { flex: 1 1 140px; min-width: 0; }
	:is(html,#hcm-scope) .hcm-datefield { flex: 1 1 140px; }

	:is(html,#hcm-scope) .hcm-grid2,:is(html,#hcm-scope) .hcm-grid3 { grid-template-columns: 1fr; }
	:is(html,#hcm-scope) .hcm-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	:is(html,#hcm-scope) .hcm-stat { padding: 13px; }
	:is(html,#hcm-scope) .hcm-stat__value { font-size: 22px; }

	:is(html,#hcm-scope) .hcm-visit { grid-template-columns: 1fr; gap: 8px; }
	:is(html,#hcm-scope) .hcm-visit__date { display: flex; align-items: baseline; gap: 9px; }
	:is(html,#hcm-scope) .hcm-visit__date span { margin-top: 0; }

	:is(html,#hcm-scope) .hcm-profile__actions { width: 100%; }
	:is(html,#hcm-scope) .hcm-profile__actions .hcm-btn { flex: 1 1 auto; }

	:is(html,#hcm-scope) .hcm-case__head { padding: 12px 13px; }
	:is(html,#hcm-scope) .hcm-case__body { padding: 14px 13px 14px; }
	:is(html,#hcm-scope) .hcm-case__tools { width: 100%; }
	:is(html,#hcm-scope) .hcm-case__tools .hcm-btn { flex: 1 1 auto; }

	:is(html,#hcm-scope) .hcm-modal { padding: 0; align-items: flex-end; }
	:is(html,#hcm-scope) .hcm-modal__box {
		max-width: none; max-height: 92vh;
		border-radius: 16px 16px 0 0;
	}
	:is(html,#hcm-scope) .hcm-modal__body { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
	:is(html,#hcm-scope) .hcm-form__actions { position: sticky; bottom: 0; background: var(--hcm-card) !important; padding-bottom: 4px; }
	:is(html,#hcm-scope) .hcm-form__actions .hcm-btn { flex: 1 1 auto; }

	:is(html,#hcm-scope) .hcm-repeat__row--med > input[name="medicines[]"] { flex: 1 1 100%; }
	:is(html,#hcm-scope) .hcm-mini { flex: 1 1 40% !important; }
	:is(html,#hcm-scope) .hcm-mini--dose { flex: 1 1 40% !important; }
}

@media (max-width: 420px) {
	:is(html,#hcm-scope) .hcm-stats { grid-template-columns: 1fr; }
	:is(html,#hcm-scope) .hcm-tabs__item span { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	:is(html,#hcm-scope) .hcm-side,:is(html,#hcm-scope) .hcm-btn,:is(html,#hcm-scope) .hcm-nav__item,:is(html,#hcm-scope) .hcm-case__toggle svg { transition: none !important; }
}

/* =====================================================================
 * Appointments
 * ===================================================================== */

:is(html,#hcm-scope) .hcm-subnav {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	border-bottom: 1px solid var(--hcm-line);
	margin: 0 0 22px;
	padding-bottom: 0;
	scrollbar-width: thin;
}

:is(html,#hcm-scope) .hcm-subnav__item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 14px;
	border-bottom: 2px solid transparent;
	color: var(--hcm-muted) !important;
	text-decoration: none !important;
	font-size: .875rem;
	font-weight: 600;
	white-space: nowrap;
}

:is(html,#hcm-scope) .hcm-subnav__item:hover { color: var(--hcm-ink) !important; }

:is(html,#hcm-scope) .hcm-subnav__item.is-active {
	color: var(--hcm-ink) !important;
	border-bottom-color: var(--hcm-green);
}

:is(html,#hcm-scope) .hcm-subnav__count {
	background: var(--hcm-green-soft) !important;
	color: var(--hcm-green-dark) !important;
	border-radius: 999px;
	padding: 1px 8px;
	font-size: .72rem;
	font-weight: 700;
}

:is(html,#hcm-scope) .hcm-head__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
:is(html,#hcm-scope) .hcm-inlineform { display: inline-flex; }

/* --- Availability, edited in place --- */

:is(html,#hcm-scope) .hcm-avail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
	gap: 14px;
	align-items: start;
	margin: 0 0 14px;
}

@media (max-width: 900px) {
	:is(html,#hcm-scope) .hcm-avail { grid-template-columns: minmax(0, 1fr); }
}

:is(html,#hcm-scope) .hcm-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 4px; }
:is(html,#hcm-scope) .hcm-panel__sub { margin: 0 0 14px; color: var(--hcm-muted) !important; font-size: .85rem; max-width: 62ch; }
:is(html,#hcm-scope) .hcm-panel__title--spaced { margin-top: 26px; }
:is(html,#hcm-scope) .hcm-panel__foot { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--hcm-line-2); }
:is(html,#hcm-scope) .hcm-panel__empty { margin: 4px 0 0; color: var(--hcm-muted) !important; font-size: .875rem; }
:is(html,#hcm-scope) .hcm-panel__note { margin: 8px 0 0; font-size: .8rem; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-tz { margin: 0; font-weight: 700; font-size: .95rem; }

:is(html,#hcm-scope) .hcm-days { list-style: none; margin: 0; padding: 0; }

:is(html,#hcm-scope) .hcm-day {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
	padding: 13px 0;
	border-bottom: 1px solid var(--hcm-line-2);
}

:is(html,#hcm-scope) .hcm-day:last-child { border-bottom: 0; }
:is(html,#hcm-scope) .hcm-day.is-saving { opacity: .6; }
:is(html,#hcm-scope) .hcm-day__ranges { display: grid; gap: 8px; min-height: 36px; align-content: center; }
:is(html,#hcm-scope) .hcm-day__closed { margin: 0; color: var(--hcm-muted) !important; font-size: .875rem; }
:is(html,#hcm-scope) .hcm-day__tools { display: flex; gap: 2px; align-items: center; }

:is(html,#hcm-scope) .hcm-range { display: flex; align-items: center; gap: 7px; }
:is(html,#hcm-scope) .hcm-range input[type="time"] { width: 116px; flex: 0 0 auto; }
:is(html,#hcm-scope) .hcm-range__dash { color: var(--hcm-muted) !important; }

/* The day switch */

:is(html,#hcm-scope) .hcm-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
:is(html,#hcm-scope) .hcm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }

:is(html,#hcm-scope) .hcm-switch__track {
	position: relative;
	width: 38px;
	height: 22px;
	border-radius: 999px;
	background: #cdd0c9 !important;
	flex: 0 0 auto;
	transition: background .15s ease;
}

:is(html,#hcm-scope) .hcm-switch__dot {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff !important;
	transition: transform .15s ease;
}

:is(html,#hcm-scope) .hcm-switch input:checked + .hcm-switch__track { background: var(--hcm-green) !important; }
:is(html,#hcm-scope) .hcm-switch input:checked + .hcm-switch__track .hcm-switch__dot { transform: translateX(16px); }
:is(html,#hcm-scope) .hcm-switch input:focus-visible + .hcm-switch__track { outline: 2px solid var(--hcm-green); outline-offset: 2px; }
:is(html,#hcm-scope) .hcm-switch__label { font-weight: 700; font-size: .9rem; }
:is(html,#hcm-scope) .hcm-day.is-off .hcm-switch__label { color: var(--hcm-muted) !important; font-weight: 600; }

/* Copy this day to others */

:is(html,#hcm-scope) .hcm-copy { position: relative; }

:is(html,#hcm-scope) .hcm-copy__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 5;
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius);
	box-shadow: var(--hcm-shadow);
	padding: 12px 14px 14px;
	min-width: 196px;
}

:is(html,#hcm-scope) .hcm-copy__lead { margin: 0 0 9px; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-copy__day { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .875rem; cursor: pointer; }
:is(html,#hcm-scope) .hcm-copy__panel .hcm-btn { margin-top: 10px; width: 100%; justify-content: center; }

@media (max-width: 700px) {
	/* Three columns do not fit a phone: the tools end up on top of the end
	   time. Stack the row instead — switch, then times, then the tools. */
	:is(html,#hcm-scope) .hcm-day { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 15px 0; }
	:is(html,#hcm-scope) .hcm-day__ranges { min-height: 0; }
	:is(html,#hcm-scope) .hcm-day__tools { justify-content: flex-start; }
	:is(html,#hcm-scope) .hcm-range { justify-content: flex-start; }
	:is(html,#hcm-scope) .hcm-range input[type="time"] { width: auto; flex: 1 1 0; min-width: 0; max-width: 148px; }
	:is(html,#hcm-scope) .hcm-day.is-off .hcm-day__tools { margin-top: 0; }
	:is(html,#hcm-scope) .hcm-copy__panel { right: auto; left: 0; }
}

/* --- Time off --- */

:is(html,#hcm-scope) .hcm-offlist { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 8px; }

:is(html,#hcm-scope) .hcm-offlist__row {
	display: grid;
	grid-template-columns: 120px 1fr auto auto;
	gap: 12px;
	align-items: center;
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-line);
	border-left: 3px solid var(--hcm-danger);
	border-radius: var(--hcm-radius-sm);
	padding: 10px 10px 10px 13px;
	font-size: .875rem;
}

:is(html,#hcm-scope) .hcm-offlist__row--extra { border-left-color: var(--hcm-green); }
:is(html,#hcm-scope) .hcm-offlist__date { font-weight: 700; }
:is(html,#hcm-scope) .hcm-offlist__why { color: var(--hcm-muted) !important; font-size: .8rem; }
:is(html,#hcm-scope) .hcm-offlist__tools { display: flex; gap: 2px; }

@media (max-width: 640px) {
	:is(html,#hcm-scope) .hcm-offlist__row { grid-template-columns: 1fr auto; }
	:is(html,#hcm-scope) .hcm-offlist__why { grid-column: 1 / -1; }
}

/* --- Event types --- */

:is(html,#hcm-scope) .hcm-dur {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--hcm-green-soft) !important;
	color: var(--hcm-green-dark) !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1;
}

:is(html,#hcm-scope) .hcm-dur small { font-size: .6rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
:is(html,#hcm-scope) .hcm-tile.is-paused { opacity: .68; }
:is(html,#hcm-scope) .hcm-tile__text { margin: 12px 0 0; color: var(--hcm-ink-2) !important; font-size: .875rem; }

/* --- Month calendar --- */

:is(html,#hcm-scope) .hcm-month { background: var(--hcm-card) !important; border: 1px solid var(--hcm-line); border-radius: var(--hcm-radius); overflow: hidden; }

:is(html,#hcm-scope) .hcm-month__dow,:is(html,#hcm-scope) .hcm-month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

:is(html,#hcm-scope) .hcm-month__dow span {
	padding: 9px 10px;
	font-size: .7rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hcm-muted) !important;
	border-bottom: 1px solid var(--hcm-line);
	font-weight: 700;
}

:is(html,#hcm-scope) .hcm-month__cell {
	min-height: 108px;
	border-right: 1px solid var(--hcm-line-2);
	border-bottom: 1px solid var(--hcm-line-2);
	padding: 6px 7px 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

:is(html,#hcm-scope) .hcm-month__cell.is-pad { background: var(--hcm-line-2) !important; }
:is(html,#hcm-scope) .hcm-month__cell.is-work { background: #fbfdfb !important; }
:is(html,#hcm-scope) .hcm-month__cell.is-today { box-shadow: inset 0 0 0 2px var(--hcm-green); }
:is(html,#hcm-scope) .hcm-month__n { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--hcm-muted) !important; font-weight: 700; }

:is(html,#hcm-scope) .hcm-month__add {
	appearance: none;
	border: 0;
	background: transparent !important;
	color: var(--hcm-muted) !important;
	cursor: pointer;
	border-radius: 6px;
	width: 20px;
	height: 20px;
	line-height: 1;
	opacity: 0;
}

:is(html,#hcm-scope) .hcm-month__cell:hover .hcm-month__add,:is(html,#hcm-scope) .hcm-month__add:focus-visible { opacity: 1; }
:is(html,#hcm-scope) .hcm-month__add:hover { background: rgba(0, 0, 0, .07) !important; color: var(--hcm-ink) !important; }

:is(html,#hcm-scope) .hcm-month__off {
	margin: 0;
	font-size: .68rem;
	font-weight: 700;
	color: var(--hcm-danger) !important;
	background: var(--hcm-danger-soft) !important;
	border-radius: 5px;
	padding: 2px 5px;
}

:is(html,#hcm-scope) .hcm-month__off--extra { color: var(--hcm-green-dark) !important; background: var(--hcm-green-soft) !important; }

:is(html,#hcm-scope) .hcm-appt {
	appearance: none;
	text-align: left;
	border: 0;
	border-left: 3px solid var(--hcm-green);
	background: var(--hcm-green-soft) !important;
	border-radius: 5px;
	padding: 3px 6px;
	cursor: pointer;
	font: inherit;
	font-size: .7rem;
	line-height: 1.3;
	display: block;
	width: 100%;
	overflow: hidden;
}

:is(html,#hcm-scope) .hcm-appt__t { font-weight: 800; display: block; }
:is(html,#hcm-scope) .hcm-appt__n { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--hcm-ink-2) !important; }
:is(html,#hcm-scope) .hcm-appt--pending { border-left-color: #b8860b; background: #fdf5e2 !important; }
:is(html,#hcm-scope) .hcm-appt--awaiting_payment { border-left-color: var(--hcm-muted); background: var(--hcm-line-2) !important; }
:is(html,#hcm-scope) .hcm-appt--declined,:is(html,#hcm-scope) .hcm-appt--cancelled { border-left-color: var(--hcm-danger); background: var(--hcm-danger-soft) !important; text-decoration: line-through !important; }

:is(html,#hcm-scope) .hcm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--hcm-muted) !important; font-size: .78rem; margin: 12px 0 0; }
:is(html,#hcm-scope) .hcm-legend__key { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 2px; }
:is(html,#hcm-scope) .hcm-legend__key--work { background: #fbfdfb !important; border: 1px solid var(--hcm-line); }
:is(html,#hcm-scope) .hcm-legend__key--confirmed { background: var(--hcm-green-soft) !important; border-left: 3px solid var(--hcm-green); }
:is(html,#hcm-scope) .hcm-legend__key--pending { background: #fdf5e2 !important; border-left: 3px solid #b8860b; }
:is(html,#hcm-scope) .hcm-legend__key--awaiting { background: var(--hcm-line-2) !important; border-left: 3px solid var(--hcm-muted); }

@media (max-width: 780px) {
	:is(html,#hcm-scope) .hcm-month__cell { min-height: 74px; padding: 4px 4px 6px; }
	:is(html,#hcm-scope) .hcm-appt__n { display: none; }
}

/* --- Booking queue --- */

:is(html,#hcm-scope) .hcm-statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }

:is(html,#hcm-scope) .hcm-stat {
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius);
	padding: 13px 15px;
	text-decoration: none !important;
	color: inherit !important;
	display: block;
}

:is(html,#hcm-scope) .hcm-stat.is-on { border-color: var(--hcm-green) !important; box-shadow: inset 0 0 0 1px var(--hcm-green); }
:is(html,#hcm-scope) .hcm-stat__n { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
:is(html,#hcm-scope) .hcm-stat__l { display: block; font-size: .78rem; color: var(--hcm-muted) !important; margin-top: 2px; }

:is(html,#hcm-scope) .hcm-pill--awaiting_payment { background: var(--hcm-line-2) !important; color: var(--hcm-ink-2) !important; }
:is(html,#hcm-scope) .hcm-pill--pending { background: #fdf5e2 !important; color: #7a5406 !important; }
:is(html,#hcm-scope) .hcm-pill--confirmed { background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important; }
:is(html,#hcm-scope) .hcm-pill--completed { background: #e8eef7 !important; color: #23507f !important; }
:is(html,#hcm-scope) .hcm-pill--declined,:is(html,#hcm-scope) .hcm-pill--cancelled { background: var(--hcm-danger-soft) !important; color: var(--hcm-danger) !important; }

:is(html,#hcm-scope) .hcm-chipbtn--ok { border-color: var(--hcm-green) !important; color: var(--hcm-green-dark) !important; }
:is(html,#hcm-scope) .hcm-chipbtn--no { border-color: var(--hcm-danger) !important; color: var(--hcm-danger) !important; }
:is(html,#hcm-scope) .hcm-sub { display: block; font-size: .75rem; color: var(--hcm-muted) !important; }

/* --- Modal recap --- */

:is(html,#hcm-scope) .hcm-recap {
	background: var(--hcm-line-2) !important;
	border-radius: var(--hcm-radius-sm);
	padding: 12px 14px;
	margin: 0 0 18px;
}

:is(html,#hcm-scope) .hcm-recap__list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px 16px; }
:is(html,#hcm-scope) .hcm-recap__list div { margin: 0; }
:is(html,#hcm-scope) .hcm-recap__list dt { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-recap__list dd { margin: 2px 0 0; font-weight: 700; font-size: .875rem; }
:is(html,#hcm-scope) .hcm-recap__link { margin: 11px 0 0; font-size: .8rem; }

:is(html,#hcm-scope) .hcm-form__lead { margin: 0 0 16px; color: var(--hcm-ink-2) !important; }
:is(html,#hcm-scope) .hcm-form__spacer { flex: 1 1 auto; }
:is(html,#hcm-scope) .hcm-form__actions--split { display: flex; align-items: center; gap: 8px; }
:is(html,#hcm-scope) .hcm-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }

/* --- Panels (booking settings) --- */

:is(html,#hcm-scope) .hcm-panel {
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius);
	padding: 18px 20px 20px;
	margin: 0 0 14px;
}

:is(html,#hcm-scope) .hcm-panel__title { margin: 0 0 15px; font-size: .95rem; }
:is(html,#hcm-scope) .hcm-upload { display: flex; gap: 8px; align-items: flex-start; }
:is(html,#hcm-scope) .hcm-upload input { flex: 1 1 auto; }
:is(html,#hcm-scope) .hcm-qrpreview { margin: 12px 0 0; }
:is(html,#hcm-scope) .hcm-qrpreview img { max-width: 168px; height: auto; border-radius: 10px; border: 1px solid var(--hcm-line); }
:is(html,#hcm-scope) .hcm-logopreview { margin: 12px 0 0; }
:is(html,#hcm-scope) .hcm-logopreview img {
	max-width: 210px; max-height: 76px; width: auto; height: auto;
	border-radius: 8px; border: 1px solid var(--hcm-line); padding: 6px; background: #fff !important;
}
:is(html,#hcm-scope) .hcm-hint--warn { color: var(--hcm-danger) !important; }
:is(html,#hcm-scope) .hcm-notice--warn { background: #fdf5e2 !important; color: #7a5406 !important; }

/* =====================================================================
 * The public booking page
 * ===================================================================== */

:is(html,#hcm-scope) .hcm-book {
	max-width: 940px;
	margin: 0 auto;
	padding: 8px 0 40px;
	color: var(--hcm-ink) !important;
	font-size: 15px;
	line-height: 1.55;
}

:is(html,#hcm-scope) .hcm-book--done,:is(html,#hcm-scope) .hcm-book--empty {
	max-width: 620px; text-align: center;
	margin: 32px auto 48px; padding: 32px 28px;
	background: var(--hcm-card) !important; border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius); box-shadow: var(--hcm-shadow);
}
:is(html,#hcm-scope) .hcm-book__head { margin: 0 0 22px; }
:is(html,#hcm-scope) .hcm-book__title { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -.02em; }
:is(html,#hcm-scope) .hcm-book__sub { margin: 0; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-book__doctor { margin: 26px 0 10px; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-book__admin { margin: 18px 0 14px; color: var(--hcm-muted) !important; font-size: .85rem; }
:is(html,#hcm-scope) .hcm-book__foot { margin: 26px 0 0; color: var(--hcm-muted) !important; font-size: .85rem; }

:is(html,#hcm-scope) .hcm-book__back {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0 0 16px;
	color: var(--hcm-muted) !important;
	text-decoration: none !important;
	font-size: .85rem;
	font-weight: 600;
}

:is(html,#hcm-scope) .hcm-book__back:hover { color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-book__events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

:is(html,#hcm-scope) .hcm-eventcard {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius);
	padding: 16px 18px;
	text-decoration: none !important;
	color: inherit !important;
	transition: border-color .15s ease, transform .15s ease;
}

:is(html,#hcm-scope) .hcm-eventcard:hover { border-color: var(--hcm-green) !important; transform: translateY(-1px); }
:is(html,#hcm-scope) .hcm-eventcard__title { display: block; font-weight: 700; font-size: 1.02rem; }
:is(html,#hcm-scope) .hcm-eventcard__desc { display: block; color: var(--hcm-muted) !important; font-size: .875rem; margin: 3px 0 0; }
:is(html,#hcm-scope) .hcm-eventcard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
:is(html,#hcm-scope) .hcm-eventcard__go { color: var(--hcm-muted) !important; flex: 0 0 auto; }

:is(html,#hcm-scope) .hcm-chip {
	display: inline-block;
	background: var(--hcm-line-2) !important;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: .74rem;
	font-weight: 700;
	color: var(--hcm-ink-2) !important;
}

:is(html,#hcm-scope) .hcm-chip--price { background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important; }
:is(html,#hcm-scope) .hcm-chip--free { background: #e8eef7 !important; color: #23507f !important; }

:is(html,#hcm-scope) .hcm-book__cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
:is(html,#hcm-scope) .hcm-book__cols--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }

@media (max-width: 780px) {
	:is(html,#hcm-scope) .hcm-book__cols { grid-template-columns: minmax(0, 1fr); }
}

:is(html,#hcm-scope) .hcm-cal,:is(html,#hcm-scope) .hcm-times,:is(html,#hcm-scope) .hcm-summary {
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius);
	padding: 16px 18px 18px;
}

:is(html,#hcm-scope) .hcm-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
:is(html,#hcm-scope) .hcm-cal__month { margin: 0; font-size: 1rem; }

:is(html,#hcm-scope) .hcm-cal__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	border: 1px solid var(--hcm-line);
	color: var(--hcm-ink) !important;
	text-decoration: none !important;
}

:is(html,#hcm-scope) .hcm-cal__nav:hover { background: var(--hcm-line-2) !important; }
:is(html,#hcm-scope) .hcm-cal__nav.is-off { opacity: .3; }
:is(html,#hcm-scope) .hcm-cal__dow,:is(html,#hcm-scope) .hcm-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
:is(html,#hcm-scope) .hcm-cal__dow span { text-align: center; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--hcm-muted) !important; font-weight: 700; padding-bottom: 5px; }

:is(html,#hcm-scope) .hcm-cal__day {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	border: 1px solid var(--hcm-line);
	background: var(--hcm-card) !important;
	color: var(--hcm-ink) !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: .9rem;
}

:is(html,#hcm-scope) .hcm-cal__day:hover { border-color: var(--hcm-green) !important; background: var(--hcm-green-soft) !important; }
:is(html,#hcm-scope) .hcm-cal__day.is-on { background: var(--hcm-green) !important; border-color: var(--hcm-green) !important; color: #fff !important; }
:is(html,#hcm-scope) .hcm-cal__day.is-off { color: var(--hcm-muted) !important; border-color: transparent !important; background: transparent !important; font-weight: 400; opacity: .55; }
:is(html,#hcm-scope) .hcm-cal__dot { position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--hcm-green) !important; }
:is(html,#hcm-scope) .hcm-cal__day.is-on .hcm-cal__dot { background: #fff !important; }
:is(html,#hcm-scope) .hcm-cal__legend { margin: 12px 0 0; font-size: .76rem; color: var(--hcm-muted) !important; }

:is(html,#hcm-scope) .hcm-times__date { margin: 0 0 12px; font-size: 1rem; }
:is(html,#hcm-scope) .hcm-times__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }

:is(html,#hcm-scope) .hcm-slot {
	display: block;
	text-align: center;
	padding: 11px 6px;
	border: 1px solid var(--hcm-line);
	border-radius: 9px;
	text-decoration: none !important;
	color: var(--hcm-ink) !important;
	font-weight: 700;
	font-size: .875rem;
}

:is(html,#hcm-scope) .hcm-slot:hover { border-color: var(--hcm-green) !important; background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important; }
:is(html,#hcm-scope) .hcm-times__empty { color: var(--hcm-muted) !important; padding: 18px 0; }

:is(html,#hcm-scope) .hcm-summary__title { margin: 0 0 14px; font-size: 1.05rem; }
:is(html,#hcm-scope) .hcm-summary__list { margin: 0; display: grid; gap: 11px; }
:is(html,#hcm-scope) .hcm-summary__list div { margin: 0; }
:is(html,#hcm-scope) .hcm-summary__list dt { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-summary__list dd { margin: 2px 0 0; font-weight: 700; }
:is(html,#hcm-scope) .hcm-summary__desc { margin: 16px 0 0; color: var(--hcm-muted) !important; font-size: .85rem; }

:is(html,#hcm-scope) .hcm-form--book { background: var(--hcm-card) !important; border: 1px solid var(--hcm-line); border-radius: var(--hcm-radius); padding: 20px 22px 22px; }
:is(html,#hcm-scope) .hcm-form__foot { margin: 12px 0 0; color: var(--hcm-muted) !important; font-size: .82rem; text-align: center; }
:is(html,#hcm-scope) .hcm-btn--wide { width: 100%; justify-content: center; }
:is(html,#hcm-scope) .hcm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Booked, waiting on payment --- */

:is(html,#hcm-scope) .hcm-done__badge {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 16px;
}

:is(html,#hcm-scope) .hcm-done__badge.is-ok { background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important; }
:is(html,#hcm-scope) .hcm-done__badge.is-part { background: #fdf5e2 !important; color: #7a5406 !important; }

:is(html,#hcm-scope) .hcm-ticket {
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius);
	padding: 18px 20px 20px;
	margin: 22px 0 0;
	text-align: left;
}

:is(html,#hcm-scope) .hcm-ticket__code {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 13px;
	margin-bottom: 14px;
	border-bottom: 1px dashed var(--hcm-line);
}

:is(html,#hcm-scope) .hcm-ticket__code span { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-ticket__code strong { font-size: 1.15rem; letter-spacing: .01em; }
:is(html,#hcm-scope) .hcm-ticket__list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; }
:is(html,#hcm-scope) .hcm-ticket__list div { margin: 0; }
:is(html,#hcm-scope) .hcm-ticket__list dt { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-ticket__list dd { margin: 2px 0 0; font-weight: 700; }

:is(html,#hcm-scope) .hcm-pay {
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-green);
	border-radius: var(--hcm-radius);
	padding: 18px 20px 20px;
	margin: 16px 0 0;
	text-align: left;
}

:is(html,#hcm-scope) .hcm-pay__title { margin: 0 0 14px; font-size: 1rem; }
:is(html,#hcm-scope) .hcm-pay__body { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
:is(html,#hcm-scope) .hcm-pay__list { margin: 0; flex: 1 1 220px; display: grid; gap: 11px; }
:is(html,#hcm-scope) .hcm-pay__list div { margin: 0; }
:is(html,#hcm-scope) .hcm-pay__list dt { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-pay__list dd { margin: 2px 0 0; font-weight: 700; }
:is(html,#hcm-scope) .hcm-pay__list code { background: var(--hcm-line-2) !important; border-radius: 6px; padding: 2px 7px; font-size: .95em; }
:is(html,#hcm-scope) .hcm-pay__qr { margin: 0; text-align: center; flex: 0 0 auto; }
:is(html,#hcm-scope) .hcm-pay__qr img { max-width: 168px; height: auto; border-radius: 10px; border: 1px solid var(--hcm-line); }
:is(html,#hcm-scope) .hcm-pay__qr figcaption { font-size: .74rem; color: var(--hcm-muted) !important; margin-top: 6px; }
:is(html,#hcm-scope) .hcm-pay__next { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--hcm-line); }
:is(html,#hcm-scope) .hcm-pay__next h3 { margin: 0 0 6px; font-size: .95rem; }
:is(html,#hcm-scope) .hcm-pay__next p { margin: 0; color: var(--hcm-ink-2) !important; font-size: .9rem; }
:is(html,#hcm-scope) .hcm-pay__actions { display: flex; gap: 9px; flex-wrap: wrap; margin: 14px 0 0; }
:is(html,#hcm-scope) p.hcm-pay__note.hcm-pay__note { margin: 12px 0 0 !important; color: var(--hcm-muted) !important; font-size: .82rem !important; }
:is(html,#hcm-scope) .hcm-btn--wa { background: #25d366 !important; border-color: #25d366 !important; color: #062b14 !important; }

:is(html,#hcm-scope) .hcm-vtype {
	display: inline-block;
	margin-top: 5px;
	border-radius: 999px;
	padding: 2px 9px;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .02em;
	background: #e8eef7 !important;
	color: #23507f !important;
}

:is(html,#hcm-scope) .hcm-vtype--call { background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important; }

/*
 * Visually hidden, but still read out. The plugin defines its own rather than
 * borrowing the theme's .screen-reader-text: a theme that does not define it
 * leaves the label visible, which is what happened to the booking calendar.
 */
:is(html,#hcm-scope) .hcm-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:is(html,#hcm-scope) .hcm-month__cell.is-work { background: #f6faf6 !important; }

/* A status dropdown beside the search box should size to its content, not
   stretch and push the button onto its own line. */
:is(html,#hcm-scope) .hcm-filters select { flex: 0 0 auto; width: auto; min-width: 168px; }

:is(html,#hcm-scope) .hcm-hint--now { font-weight: 600; color: var(--hcm-ink-2) !important; }

/* --- Linking doctors and clinics --- */

:is(html,#hcm-scope) .hcm-picklist {
	display: grid;
	gap: 2px;
	max-height: 210px;
	overflow-y: auto;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius-sm);
	padding: 6px;
	background: var(--hcm-card) !important;
}

:is(html,#hcm-scope) .hcm-picklist__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 9px;
	border-radius: 7px;
	cursor: pointer;
	font-size: .875rem;
}

:is(html,#hcm-scope) .hcm-picklist__item:hover { background: var(--hcm-line-2) !important; }
:is(html,#hcm-scope) .hcm-picklist__item input { margin-top: 2px; flex: 0 0 auto; }
:is(html,#hcm-scope) .hcm-picklist__item strong { display: block; font-weight: 600; }
:is(html,#hcm-scope) .hcm-picklist__item em { display: block; font-style: normal; color: var(--hcm-muted) !important; font-size: .8rem; }
:is(html,#hcm-scope) .hcm-muted { color: var(--hcm-muted) !important; }

/* Calendar entries are buttons: they open for editing. */
:is(html,#hcm-scope) .hcm-month__off {
	appearance: none;
	border: 0;
	font: inherit;
	text-align: left;
	width: 100%;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

:is(html,#hcm-scope) .hcm-month__off:hover { filter: brightness(.95); }
:is(html,#hcm-scope) .hcm-month__off:focus-visible,:is(html,#hcm-scope) .hcm-appt:focus-visible { outline: 2px solid var(--hcm-green); outline-offset: 1px; }

:is(html,#hcm-scope) .hcm-upload { align-items: center; }
:is(html,#hcm-scope) .hcm-upload input[type="file"] { display: none; }

/* =====================================================================
 * Importing old records
 * ===================================================================== */

:is(html,#hcm-scope) .hcm-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

:is(html,#hcm-scope) .hcm-import { max-width: 620px; }
:is(html,#hcm-scope) .hcm-import__step { margin-bottom: 4px; }
:is(html,#hcm-scope) .hcm-import__downloads { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 8px; }
:is(html,#hcm-scope) .hcm-import__file { font-weight: 600; margin: 0 0 8px; }

:is(html,#hcm-scope) .hcm-import__result {
	margin-top: 16px; padding: 14px 16px; border-radius: 10px;
	border: 1px solid var(--hcm-line); background: var(--hcm-line-2) !important; font-size: 13px;
}
:is(html,#hcm-scope) .hcm-import__result--ok { border-color: #b9d8c2 !important; background: #f1f8f2 !important; }
:is(html,#hcm-scope) .hcm-import__result--bad { border-color: #e7c9c9 !important; background: #fdf4f4 !important; }

:is(html,#hcm-scope) .hcm-import__counts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
:is(html,#hcm-scope) .hcm-import__counts li { color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-import__counts strong { color: var(--hcm-ink) !important; font-size: 16px; margin-right: 3px; }

:is(html,#hcm-scope) .hcm-import__new { margin: 12px 0 0; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-import__ok { margin: 0 0 10px; font-weight: 600; }
:is(html,#hcm-scope) .hcm-import__bad { margin: 12px 0 6px; color: var(--hcm-danger) !important; font-weight: 600; }

:is(html,#hcm-scope) .hcm-import__problems { margin: 0; padding-left: 18px; max-height: 220px; overflow-y: auto; }
:is(html,#hcm-scope) .hcm-import__problems li { color: var(--hcm-muted) !important; margin-bottom: 4px; }

:is(html,#hcm-scope) .hcm-import .hcm-filepick input[type="file"] {
	font: inherit; font-size: 13px; width: 100%;
	padding: 10px; border: 1px dashed var(--hcm-line); border-radius: 9px; background: #fff !important;
}

/* A main action with a smaller alternative fused to its right. */
:is(html,#hcm-scope) .hcm-split { display: inline-flex; align-items: stretch; }
:is(html,#hcm-scope) .hcm-split > .hcm-btn { border-radius: 9px 0 0 9px; }
:is(html,#hcm-scope) .hcm-split > .hcm-split__alt { border-radius: 0 9px 9px 0; margin-left: -1px; padding-left: 10px; padding-right: 10px; }


/* ------------------------------------------------------------------ *
 * 1.6.0
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-hint--tight { margin: -2px 0 2px; }

/* Pick-or-type lists for potency and dose. One menu, positioned against
   whichever box is open, so a row can be added without adding markup. */
:is(html,#hcm-scope) .hcm-picks {
	position: fixed;
	z-index: 100001;
	min-width: 120px;
	max-width: 260px;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: var(--hcm-card, #fff) !important;
	border: 1px solid var(--hcm-line, #e3e5df);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(20, 20, 18, .16);
	font-family: inherit;
}
:is(html,#hcm-scope) .hcm-picks[hidden] { display: none; }
:is(html,#hcm-scope) .hcm-picks__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 7px;
	background: none !important;
	font: inherit;
	font-size: 14px;
	font-weight: 650;
	color: var(--hcm-ink, #2a2927) !important;
	text-align: left;
	cursor: pointer;
}
:is(html,#hcm-scope) .hcm-picks__item small { font-size: 12px; font-weight: 500; color: var(--hcm-muted, #7b7a75) !important; }
:is(html,#hcm-scope) .hcm-picks__item:hover,:is(html,#hcm-scope) .hcm-picks__item.is-active { background: var(--hcm-green-soft, #eaf4ea) !important; color: var(--hcm-green-dark, #056605) !important; }
:is(html,#hcm-scope) .hcm-picks__item.is-chosen::after { content: "\2713"; margin-left: auto; color: var(--hcm-green, #008000) !important; }
:is(html,#hcm-scope) .hcm-picks__note { padding: 6px 10px 4px; font-size: 11.5px; color: var(--hcm-muted, #7b7a75) !important; border-top: 1px solid var(--hcm-line-2, #f0f1ee); margin-top: 2px; }
:is(html,#hcm-scope) .hcm-app input[data-hcm-picks] {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b7a75' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 14px;
	padding-right: 26px;
}

/* Consultation fee and medicine charges */
:is(html,#hcm-scope) .hcm-charges { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--hcm-line); border-radius: var(--hcm-radius-sm); background: #fafbf9 !important; }
:is(html,#hcm-scope) .hcm-charges .hcm-grid2 { margin: 0; }
:is(html,#hcm-scope) .hcm-charges.is-missing { border-color: var(--hcm-danger) !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .1); }
:is(html,#hcm-scope) .hcm-charges__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 0; }
:is(html,#hcm-scope) .hcm-charges__total { font-size: 13px; color: var(--hcm-ink-2) !important; }
:is(html,#hcm-scope) .hcm-charges__total strong { font-size: 15px; color: var(--hcm-ink) !important; font-variant-numeric: tabular-nums; }
:is(html,#hcm-scope) .hcm-charges.is-missing .hcm-hint { color: var(--hcm-danger) !important; font-weight: 600; }
:is(html,#hcm-scope) .hcm-charge { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* First visit inside Add patient */
:is(html,#hcm-scope) .hcm-firstvisit { display: flex; flex-direction: column; gap: 8px; }
:is(html,#hcm-scope) .hcm-firstvisit__body { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
:is(html,#hcm-scope) .hcm-firstvisit__body[hidden] { display: none; }

/* Duplicate-name notification */
:is(html,#hcm-scope) .hcm-app .hcm-alert {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid #f1d9a0;
	border-radius: var(--hcm-radius);
	background: #fdf5e2 !important;
	color: #6b4a05 !important;
	text-decoration: none !important;
}
:is(html,#hcm-scope) .hcm-app .hcm-alert:hover { border-color: #e2bd5f !important; }
:is(html,#hcm-scope) .hcm-alert__icon { flex: 0 0 auto; display: inline-flex; color: #b07b07 !important; }
:is(html,#hcm-scope) .hcm-alert__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
:is(html,#hcm-scope) .hcm-alert__text strong { font-size: 14.5px; font-weight: 700; color: #4d3504 !important; }
:is(html,#hcm-scope) .hcm-alert__go { flex: 0 0 auto; font-weight: 700; font-size: 13.5px; white-space: nowrap; }

:is(html,#hcm-scope) .hcm-app .hcm-bell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border-radius: 50%;
	color: var(--hcm-ink-2) !important;
	text-decoration: none !important;
}
:is(html,#hcm-scope) .hcm-app .hcm-bell:hover { background: var(--hcm-line-2) !important; color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-bell__count {
	position: absolute;
	top: 3px;
	right: 2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--hcm-danger) !important;
	color: #fff !important;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

:is(html,#hcm-scope) .hcm-pill--warn { background: #fdf5e2 !important; color: #7a5406 !important; }
:is(html,#hcm-scope) .hcm-dupe { margin-bottom: 16px; }
:is(html,#hcm-scope) .hcm-dupe__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
:is(html,#hcm-scope) .hcm-dupe__item { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--hcm-line); border-radius: var(--hcm-radius-sm); background: var(--hcm-card) !important; }
:is(html,#hcm-scope) .hcm-dupe__who { display: flex; align-items: center; gap: 10px; }
:is(html,#hcm-scope) .hcm-dupe__who strong { display: block; font-size: 15px; font-weight: 650; }
:is(html,#hcm-scope) .hcm-dupe__who small { color: var(--hcm-muted) !important; font-size: 12.5px; }
:is(html,#hcm-scope) .hcm-dupe__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
:is(html,#hcm-scope) .hcm-dupe__facts dt { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-dupe__facts dd { margin: 1px 0 0; color: var(--hcm-ink) !important; overflow-wrap: anywhere; }
:is(html,#hcm-scope) .hcm-dupe__wide { grid-column: 1 / -1; }
:is(html,#hcm-scope) .hcm-dupe__tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

@media (max-width: 640px) {
	:is(html,#hcm-scope) .hcm-app .hcm-alert { flex-wrap: wrap; }
	:is(html,#hcm-scope) .hcm-alert__go { margin-left: 34px; }
	:is(html,#hcm-scope) .hcm-dupe__list { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
 * 1.7.0 — forms open in the page, not in a pop-up
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-app.is-panel-open .hcm-content { display: none; }

:is(html,#hcm-scope) .hcm-sheet { flex: 1 1 auto; min-width: 0; padding: 22px; }
:is(html,#hcm-scope) .hcm-sheet[hidden] { display: none; }
:is(html,#hcm-scope) .hcm-sheet__head {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	margin: 0 0 16px;
}
:is(html,#hcm-scope) .hcm-app .hcm-sheet__back {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 7px 12px 7px 9px; border: 1px solid var(--hcm-line); border-radius: 999px;
	background: var(--hcm-card) !important; color: var(--hcm-ink-2) !important;
	font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
:is(html,#hcm-scope) .hcm-app .hcm-sheet__back:hover { border-color: #cdd0c8 !important; color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-sheet__head { justify-content: flex-start; }
:is(html,#hcm-scope) .hcm-app .hcm-sheet__title { flex: 1 1 auto; margin: 0; text-align: left; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
:is(html,#hcm-scope) .hcm-sheet__body {
	padding: 22px;
	background: var(--hcm-card) !important;
	border: 1px solid var(--hcm-line);
	border-radius: var(--hcm-radius);
	box-shadow: var(--hcm-shadow);
}
:is(html,#hcm-scope) .hcm-sheet__body .hcm-form__actions {
	position: sticky; bottom: 0; z-index: 5;
	margin: 6px -22px -22px; padding: 12px 22px;
	background: var(--hcm-card) !important;
	border-radius: 0 0 var(--hcm-radius) var(--hcm-radius);
}

:is(html,#hcm-scope) .hcm-grid3--fixed { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
:is(html,#hcm-scope) .hcm-span2 { grid-column: span 2; }

:is(html,#hcm-scope) .hcm-profile__rel { margin: 0 0 4px; color: var(--hcm-ink-2) !important; font-size: 14px; font-weight: 600; }
:is(html,#hcm-scope) .hcm-meds__qty { font-weight: 600; }
:is(html,#hcm-scope) .hcm-mini--qty { flex: 0 1 112px !important; }

/* Copy from the last visit */
:is(html,#hcm-scope) .hcm-copylast {
	display: flex; flex-direction: column; gap: 4px;
	padding: 12px 14px; margin-bottom: 4px;
	border: 1px dashed #b9d8b9; border-radius: var(--hcm-radius-sm);
	background: var(--hcm-green-soft) !important;
}
:is(html,#hcm-scope) .hcm-copylast .hcm-hint { margin: 0; }

/* A delete button waiting for its second tap */
:is(html,#hcm-scope) .hcm-app .is-confirming.is-confirming.is-confirming {
	background: var(--hcm-danger) !important;
	border-color: var(--hcm-danger) !important;
	color: #fff !important;
}
:is(html,#hcm-scope) .hcm-confirmnote { margin: 8px 0 0; color: var(--hcm-danger) !important; font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
	:is(html,#hcm-scope) .hcm-sheet { padding: 14px 14px 24px; }
	:is(html,#hcm-scope) .hcm-sheet__body { padding: 16px; }
	:is(html,#hcm-scope) .hcm-sheet__body .hcm-form__actions { margin: 6px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
	:is(html,#hcm-scope) .hcm-app.is-panel-open .hcm-tabs { display: none; }
	:is(html,#hcm-scope) .hcm-grid3--fixed { grid-template-columns: 1fr !important; }
	:is(html,#hcm-scope) .hcm-span2 { grid-column: auto; }
	:is(html,#hcm-scope) .hcm-repeat__row--med .hcm-mini { flex: 1 1 26% !important; }
}

/* ------------------------------------------------------------------ *
 * 1.8.0 — a calendar per service
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-notice--info { background: #eef4fb !important; border-color: #d3e2f3 !important; color: #1d4570 !important; }
:is(html,#hcm-scope) .hcm-availnote { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
:is(html,#hcm-scope) .hcm-availnote span { margin-right: 4px; }

:is(html,#hcm-scope) .hcm-services { margin-bottom: 16px; }
:is(html,#hcm-scope) .hcm-services .hcm-subnav__item { display: inline-flex; align-items: center; gap: 7px; }
:is(html,#hcm-scope) .hcm-services__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hcm-green) !important; flex: 0 0 auto; }
:is(html,#hcm-scope) .hcm-services__dot--online { background: #2f6fb5 !important; }

:is(html,#hcm-scope) .hcm-switch--block { display: flex; margin: 4px 0 2px; }
:is(html,#hcm-scope) .hcm-notice--warn a { color: inherit !important; font-weight: 700; margin-left: 4px; }

/* ------------------------------------------------------------------ *
 * 1.9.0 — booking shortcodes
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-shortcode {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
	margin: 0 0 12px; padding: 8px 10px;
	background: var(--hcm-line-2) !important; border-radius: var(--hcm-radius-sm);
}
:is(html,#hcm-scope) .hcm-app .hcm-shortcode code,:is(html,#hcm-scope) .hcm-app .hcm-shortcodes code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px; color: var(--hcm-ink) !important; background: none !important; padding: 0;
	overflow-wrap: anywhere;
}
:is(html,#hcm-scope) .hcm-shortcodes { margin-top: 18px; }
:is(html,#hcm-scope) .hcm-shortcodes summary { display: flex; flex-direction: column; gap: 2px; cursor: pointer; list-style: none; }
:is(html,#hcm-scope) .hcm-shortcodes summary::-webkit-details-marker { display: none; }
:is(html,#hcm-scope) .hcm-shortcodes summary span { color: var(--hcm-muted) !important; font-size: 13px; }
:is(html,#hcm-scope) .hcm-shortcodes summary::after { content: "Show ▾"; align-self: flex-start; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--hcm-green-dark) !important; }
:is(html,#hcm-scope) .hcm-shortcodes[open] summary::after { content: "Hide ▴"; }
:is(html,#hcm-scope) .hcm-shortcodes__table { width: 100%; border-collapse: collapse; margin: 14px 0 8px; font-size: 13.5px; }
:is(html,#hcm-scope) .hcm-shortcodes__table td { padding: 8px 6px; border-bottom: 1px solid var(--hcm-line-2); vertical-align: middle; }
:is(html,#hcm-scope) .hcm-shortcodes__table td:last-child { text-align: right; width: 1%; white-space: nowrap; }
:is(html,#hcm-scope) .hcm-bookwrap { scroll-margin-top: 90px; }
@media (max-width: 640px) {
	:is(html,#hcm-scope) .hcm-shortcodes__table td { display: block; padding: 4px 0; border: 0; text-align: left !important; }
	:is(html,#hcm-scope) .hcm-shortcodes__table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--hcm-line-2); }
}

/* ------------------------------------------------------------------ *
 * 1.10.0 — doctor photos
 * ------------------------------------------------------------------ */

:is(html,#hcm-scope) .hcm-app .hcm-docphoto,:is(html,#hcm-scope) .hcm-book .hcm-docphoto {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	background: var(--hcm-green-soft, #eaf4ea) !important;
	box-shadow: 0 0 0 1px var(--hcm-line, #e3e5df);
}
:is(html,#hcm-scope) .hcm-docphoto--initials { color: var(--hcm-green-dark, #056605) !important; font-weight: 700; line-height: 1; }

/* The doctor form: the photo sits beside the name. */
:is(html,#hcm-scope) .hcm-docform-top { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
:is(html,#hcm-scope) .hcm-photopick { display: flex; align-items: center; gap: 14px; }
:is(html,#hcm-scope) .hcm-app .hcm-photopreview { margin: 0; width: 84px; height: 84px; flex: 0 0 auto; }
:is(html,#hcm-scope) .hcm-app .hcm-photopreview img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1px var(--hcm-line); }
:is(html,#hcm-scope) .hcm-photoempty {
	width: 84px; height: 84px; flex: 0 0 auto; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--hcm-line-2) !important; color: var(--hcm-muted) !important; border: 1px dashed #cfd2ca;
}
:is(html,#hcm-scope) .hcm-photoempty[hidden] { display: none !important; }
:is(html,#hcm-scope) .hcm-upload--photo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
:is(html,#hcm-scope) .hcm-photofield .hcm-hint { max-width: 260px; }
:is(html,#hcm-scope) .hcm-head__left--photo { display: flex; align-items: center; gap: 14px; }

/* Booking pages */
:is(html,#hcm-scope) .hcm-book__doccard { display: flex; align-items: center; gap: 14px; margin: 24px 0 12px; }
:is(html,#hcm-scope) .hcm-book__doccard:first-of-type { margin-top: 4px; }
:is(html,#hcm-scope) .hcm-book .hcm-book__docname { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
:is(html,#hcm-scope) .hcm-book__docabout { margin: 2px 0 0; color: var(--hcm-muted, #7b7a75) !important; font-size: .875rem; }
:is(html,#hcm-scope) .hcm-book__head--doctor { display: flex; align-items: center; gap: 16px; }
:is(html,#hcm-scope) .hcm-docline { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 640px) {
	:is(html,#hcm-scope) .hcm-docform-top { grid-template-columns: 1fr; }
	:is(html,#hcm-scope) .hcm-book__head--doctor { align-items: flex-start; }
}

/* ---------------------------------------------------------------------
 * Visit photos and videos (1.11.0)
 * ------------------------------------------------------------------ */
:is(html,#hcm-scope) .hcm-app .hcm-media { margin: 1.1rem 0 .4rem; }
:is(html,#hcm-scope) .hcm-app .hcm-media__head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
:is(html,#hcm-scope) .hcm-app .hcm-media__count { font-size: .82rem; color: var(--hcm-muted) !important; font-variant-numeric: tabular-nums; }
:is(html,#hcm-scope) .hcm-app .hcm-media__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: .6rem;
	margin: .6rem 0 .7rem;
}
:is(html,#hcm-scope) .hcm-app .hcm-media__empty { grid-column: 1 / -1; margin: 0; }
:is(html,#hcm-scope) .hcm-app .hcm-ph {
	position: relative;
	margin: 0;
	aspect-ratio: 1 / 1;
	border-radius: var(--hcm-radius-sm);
	border: 1px solid var(--hcm-line);
	background: var(--hcm-bg) !important;
	overflow: hidden;
}
:is(html,#hcm-scope) .hcm-app .hcm-ph__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none !important;
	cursor: zoom-in;
}
:is(html,#hcm-scope) .hcm-app .hcm-ph__open img,:is(html,#hcm-scope) .hcm-app .hcm-ph__open video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
:is(html,#hcm-scope) .hcm-app .hcm-ph__play {
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55) !important;
	color: #fff !important;
	font-size: 14px;
	line-height: 34px;
	text-align: center;
	pointer-events: none;
}
:is(html,#hcm-scope) .hcm-app .hcm-ph__x {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	border: 0;
	border-radius: 13px;
	background: rgba(0, 0, 0, .6) !important;
	color: #fff !important;
	font-size: 17px;
	line-height: 26px;
	cursor: pointer;
}
:is(html,#hcm-scope) .hcm-app .hcm-ph__x:hover,:is(html,#hcm-scope) .hcm-app .hcm-ph__x:focus-visible { background: var(--hcm-danger) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-ph__x.is-confirming {
	left: 4px;
	font-size: .72rem;
	background: var(--hcm-danger) !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
:is(html,#hcm-scope) .hcm-app .hcm-ph.is-busy {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: .4rem;
	text-align: center;
}
:is(html,#hcm-scope) .hcm-app .hcm-ph__name {
	max-width: 100%;
	font-size: .7rem;
	color: var(--hcm-muted) !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
:is(html,#hcm-scope) .hcm-app .hcm-ph__spin {
	width: 22px;
	height: 22px;
	border: 3px solid var(--hcm-line);
	border-top-color: var(--hcm-green);
	border-radius: 50%;
	animation: hcm-spin .8s linear infinite;
}
@keyframes hcm-spin { to { transform: rotate(360deg); } }
:is(html,#hcm-scope) .hcm-app .hcm-media__add { display: flex; flex-wrap: wrap; gap: .5rem; }
/* "Take photo" only where there is a camera to open: phones and tablets. */
:is(html,#hcm-scope) .hcm-app .hcm-media__cam { display: none; }
@media (pointer: coarse) {
	:is(html,#hcm-scope) .hcm-app .hcm-media__cam { display: inline-flex; }
}
:is(html,#hcm-scope) .hcm-app .hcm-media__stage {
	margin: .6rem 0;
	padding: .6rem;
	border-radius: var(--hcm-radius);
	background: #111 !important;
}
:is(html,#hcm-scope) .hcm-app .hcm-media__frame img,:is(html,#hcm-scope) .hcm-app .hcm-media__frame video {
	display: block;
	max-width: 100%;
	max-height: 70vh;
	margin: 0 auto;
	border-radius: 6px;
}
:is(html,#hcm-scope) .hcm-app .hcm-media__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	margin-top: .6rem;
}
:is(html,#hcm-scope) .hcm-app .hcm-media__where { color: #ddd !important; font-size: .8rem; min-width: 5rem; text-align: center; }
:is(html,#hcm-scope) .hcm-app .hcm-media__bar .hcm-chipbtn { background: #fff !important; }

/* The View button and the visit's View screen. */
:is(html,#hcm-scope) .hcm-app .hcm-chipbtn--view { font-weight: 600; }
:is(html,#hcm-scope) .hcm-app .hcm-chipbtn__n {
	display: inline-block;
	min-width: 1.3em;
	margin-left: .25rem;
	padding: 0 .35em;
	border-radius: 999px;
	background: var(--hcm-green) !important;
	color: #fff !important;
	font-size: .72rem;
	line-height: 1.5;
	text-align: center;
}
:is(html,#hcm-scope) .hcm-app .hcm-chipbtn__n[hidden] { display: none; }
:is(html,#hcm-scope) .hcm-app .hcm-vview__facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: .6rem 1rem;
	margin: 0 0 1rem;
}
:is(html,#hcm-scope) .hcm-app .hcm-vview__facts dt { font-size: .75rem; color: var(--hcm-muted) !important; text-transform: uppercase; letter-spacing: .04em; }
:is(html,#hcm-scope) .hcm-app .hcm-vview__facts dd { margin: .1rem 0 0; font-weight: 600; }
:is(html,#hcm-scope) .hcm-app .hcm-vview__wide { grid-column: span 2; }
@media (max-width: 520px) { :is(html,#hcm-scope) .hcm-app .hcm-vview__wide { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------------
 * 2.0.0 — Diagnosis rows, history tabs, disease lists
 * ------------------------------------------------------------------ */
:is(html,#hcm-scope) .hcm-repeat__row--dx { flex-wrap: wrap; }
:is(html,#hcm-scope) .hcm-repeat__row--dx > input[name$="dx_disease[]"] { flex: 1 1 170px; }
:is(html,#hcm-scope) .hcm-repeat__row--dx > input[name$="dx_symptoms[]"] { flex: 2 1 220px; }
:is(html,#hcm-scope) .hcm-mini--cond { flex: 0 1 130px !important; }
@media (max-width: 640px) {
	:is(html,#hcm-scope) .hcm-repeat__row--dx > input[name$="dx_disease[]"],:is(html,#hcm-scope) .hcm-repeat__row--dx > input[name$="dx_symptoms[]"] { flex: 1 1 100%; }
	:is(html,#hcm-scope) .hcm-repeat__row--dx .hcm-mini--cond { flex: 1 1 60% !important; }
}
:is(html,#hcm-scope) .hcm-app .hcm-hint.is-carried { color: var(--hcm-green-dark) !important; font-weight: 600; }

/* Diagnosis shown on a visit (doctor only). */
:is(html,#hcm-scope) .hcm-app .hcm-dx { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .35rem; }
:is(html,#hcm-scope) .hcm-app .hcm-dx li {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .55rem;
	padding: .45rem .65rem; border-radius: var(--hcm-radius-sm);
	background: #fff8db !important; border: 1px solid #f2e3a6;
}
:is(html,#hcm-scope) .hcm-app .hcm-dx__name { font-weight: 700; color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-dx__cond {
	font-size: .75rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px;
	background: var(--hcm-green-soft) !important; color: var(--hcm-green-dark) !important;
}
:is(html,#hcm-scope) .hcm-app .hcm-dx__sym { flex: 1 1 100%; font-size: .85rem; color: var(--hcm-muted) !important; }

/* History tabs: Visits | Diseases. */
:is(html,#hcm-scope) .hcm-app .hcm-tabs2 {
	display: flex; gap: .25rem; margin: .4rem 0 1rem;
	border-bottom: 1px solid var(--hcm-line);
}
:is(html,#hcm-scope) .hcm-app .hcm-tabs2__tab {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .6rem .9rem; margin-bottom: -1px;
	border: 1px solid transparent; border-radius: 9px 9px 0 0;
	color: var(--hcm-muted) !important; font-weight: 600; text-decoration: none !important;
}
:is(html,#hcm-scope) .hcm-app .hcm-tabs2__tab:hover { color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-tabs2__tab.is-on {
	color: var(--hcm-green-dark) !important; background: var(--hcm-card) !important;
	border-color: var(--hcm-line) !important; border-bottom-color: var(--hcm-card);
}
:is(html,#hcm-scope) .hcm-app .hcm-tabs2__n {
	min-width: 1.4em; padding: 0 .4em; border-radius: 999px; text-align: center;
	background: var(--hcm-bg) !important; color: var(--hcm-muted) !important; font-size: .75rem; line-height: 1.6;
}
:is(html,#hcm-scope) .hcm-app .hcm-tabs2__tab.is-on .hcm-tabs2__n { background: var(--hcm-green) !important; color: #fff !important; }

/* The patient's diseases. */
:is(html,#hcm-scope) .hcm-app .hcm-dxline { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
:is(html,#hcm-scope) .hcm-app .hcm-dxchip {
	display: inline-block; padding: .15rem .6rem; border-radius: 999px;
	background: #fff8db !important; border: 1px solid #f2e3a6; color: var(--hcm-ink) !important;
	font-size: .8rem; font-weight: 600; text-decoration: none !important;
}
:is(html,#hcm-scope) .hcm-app .hcm-dxchip:hover { border-color: var(--hcm-green) !important; color: var(--hcm-green-dark) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-dxlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
:is(html,#hcm-scope) .hcm-app .hcm-dxlist__item {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
	padding: .85rem 1rem; border-radius: var(--hcm-radius);
	background: var(--hcm-card) !important; border: 1px solid var(--hcm-line);
	color: var(--hcm-ink) !important; text-decoration: none !important;
}
:is(html,#hcm-scope) .hcm-app .hcm-dxlist__item:hover { border-color: var(--hcm-green) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-dxlist__meta { display: inline-flex; align-items: center; gap: .5rem; color: var(--hcm-muted) !important; font-size: .85rem; }
:is(html,#hcm-scope) .hcm-app .hcm-dxhead { margin: 0 0 .8rem; }
:is(html,#hcm-scope) .hcm-app .hcm-dxhead__title { margin: .3rem 0 0; font-size: 1.05rem; }
:is(html,#hcm-scope) .hcm-app .hcm-case--history { padding-top: .25rem; }

/* ---------------------------------------------------------------------
 * 2.1.0 — Plans
 * ------------------------------------------------------------------ */
:is(html,#hcm-scope) .hcm-app .hcm-nav__plan {
	margin-left: auto; padding: 0 .45em; border-radius: 999px;
	font-size: .68rem; font-weight: 700; line-height: 1.6;
	background: rgba(255, 255, 255, .14) !important; color: #fff !important;
	white-space: nowrap; flex: 0 0 auto;
}
:is(html,#hcm-scope) .hcm-app .hcm-nav__plan--free { background: var(--hcm-yellow) !important; color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-planbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
	margin: 0 0 1rem; padding: .65rem .9rem; border-radius: var(--hcm-radius);
	background: #fff8db !important; border: 1px solid #f2e3a6;
}
:is(html,#hcm-scope) .hcm-app .hcm-planbar__tag {
	font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
	padding: .1rem .5rem; border-radius: 999px; background: var(--hcm-yellow) !important; color: var(--hcm-ink) !important;
}
:is(html,#hcm-scope) .hcm-app .hcm-planbar__text { flex: 1 1 260px; font-size: .9rem; }
:is(html,#hcm-scope) .hcm-app .hcm-plancard {
	display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
	margin: 0 0 1.2rem; padding: 1.2rem 1.4rem; border-radius: var(--hcm-radius);
	background: var(--hcm-card) !important; border: 1px solid var(--hcm-line); box-shadow: var(--hcm-shadow);
}
:is(html,#hcm-scope) .hcm-app .hcm-plancard--paid,:is(html,#hcm-scope) .hcm-app .hcm-plancard--comp,:is(html,#hcm-scope) .hcm-app .hcm-plancard--unlimited { border-color: var(--hcm-green) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-plancard__main { display: grid; gap: .2rem; }
:is(html,#hcm-scope) .hcm-app .hcm-plancard__label { font-size: .75rem; color: var(--hcm-muted) !important; text-transform: uppercase; letter-spacing: .05em; }
:is(html,#hcm-scope) .hcm-app .hcm-plancard__name { font-size: 1.5rem; color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-plancard__when { color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-plancard__pay { display: grid; gap: .45rem; justify-items: start; max-width: 360px; }
:is(html,#hcm-scope) .hcm-app .hcm-plancard__price { font-size: 1.35rem; font-weight: 800; color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-plancard__price small { font-size: .8rem; font-weight: 600; color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-plancard__test { font-size: .78rem; font-weight: 700; color: #8a5a00 !important; background: #fff3cd !important; padding: .1rem .5rem; border-radius: 6px; }
:is(html,#hcm-scope) .hcm-app .hcm-plancompare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 0 0 1.2rem; }
:is(html,#hcm-scope) .hcm-app .hcm-planbox { padding: 1rem 1.2rem; border-radius: var(--hcm-radius); background: var(--hcm-card) !important; border: 1px solid var(--hcm-line); }
:is(html,#hcm-scope) .hcm-app .hcm-planbox.is-current { border-color: var(--hcm-green) !important; box-shadow: 0 0 0 2px var(--hcm-green-soft); }
:is(html,#hcm-scope) .hcm-app .hcm-planbox h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
:is(html,#hcm-scope) .hcm-app .hcm-planbox__price { margin: -.25rem 0 .6rem; font-size: 1.15rem; font-weight: 700; color: var(--hcm-green-dark) !important; }
:is(html,#hcm-scope) .hcm-app .hcm-planbox ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }

/* =====================================================================
 * 2.1.2 — layout polish
 * ===================================================================== */

/* The sidebar stays in view on long pages and forms, below any sticky site
   header (app.js measures it into --hcm-sticky-top). The dark column is
   painted by the app's own background so it runs the full height. */
@media (min-width: 783px) {
	:is(html,#hcm-scope) .hcm-app {
		background: linear-gradient(to right, var(--hcm-ink) var(--hcm-side-w), var(--hcm-bg) var(--hcm-side-w)) !important;
	}
	:is(html,#hcm-scope) .hcm-side {
		position: sticky;
		top: var(--hcm-sticky-top, 0px);
		align-self: start;
		height: min(100%, calc(100vh - var(--hcm-sticky-top, 0px)));
		overflow-y: auto;
		scrollbar-width: thin;
	}
}

/* Phones: the Appointments tabs wrap onto a second line instead of hiding
   "Booking settings" off the side. */
@media (max-width: 782px) {
	:is(html,#hcm-scope) .hcm-subnav {
		flex-wrap: wrap;
		overflow-x: visible;
		row-gap: 0;
	}
	:is(html,#hcm-scope) .hcm-subnav__item { padding: 10px 11px; }
	:is(html,#hcm-scope) .hcm-book--empty { margin: 20px 14px 32px; padding: 24px 18px; }
}

/* =====================================================================
 * 3.0.0 — version, brand & booking page, support
 * ===================================================================== */

:is(html,#hcm-scope) .hcm-side__version { margin: 10px 11px 0; font-size: 11.5px; color: #8f8e87 !important; letter-spacing: .02em; }

:is(html,#hcm-scope) .hcm-brandform .hcm-field { max-width: 460px; }
:is(html,#hcm-scope) .hcm-pagestatus { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 0 0 14px; }
:is(html,#hcm-scope) .hcm-pagestatus code { font-size: 13px; background: rgba(255, 255, 255, .6) !important; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
:is(html,#hcm-scope) .hcm-pagestatus a { word-break: break-all; }
:is(html,#hcm-scope) .hcm-pagestatus__note { flex-basis: 100%; }
:is(html,#hcm-scope) .hcm-slugfield { display: flex; align-items: stretch; max-width: 640px; }
:is(html,#hcm-scope) .hcm-slugfield__base {
	display: inline-flex; align-items: center; padding: 0 10px;
	background: var(--hcm-line-2) !important; border: 1px solid var(--hcm-line); border-right: 0;
	border-radius: var(--hcm-radius-sm) 0 0 var(--hcm-radius-sm);
	color: var(--hcm-ink-2) !important; font-size: 13.5px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis;
}
:is(html,#hcm-scope) .hcm-slugfield input { flex: 1 1 auto; min-width: 0; border-radius: 0 var(--hcm-radius-sm) var(--hcm-radius-sm) 0 !important; }

:is(html,#hcm-scope) .hcm-book__brandbar { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0 0; }
:is(html,#hcm-scope) .hcm-book__logo { max-width: 160px; max-height: 72px; width: auto; height: auto; object-fit: contain; }
:is(html,#hcm-scope) .hcm-book__brand { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--hcm-green-dark) !important; text-align: center; letter-spacing: .01em; }

:is(html,#hcm-scope) .hcm-tickets { margin-bottom: 18px; }
:is(html,#hcm-scope) .hcm-pill--new { background: var(--hcm-yellow) !important; color: var(--hcm-ink) !important; margin-left: 6px; }
:is(html,#hcm-scope) .hcm-tstatus { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--hcm-line-2) !important; color: var(--hcm-ink-2) !important; }
:is(html,#hcm-scope) .hcm-tstatus--open { background: #eef4fb !important; color: #1d4570 !important; }
:is(html,#hcm-scope) .hcm-tstatus--awaiting { background: #fdf5e2 !important; color: #7a5406 !important; }
:is(html,#hcm-scope) .hcm-tstatus--resolved { background: var(--hcm-green-soft) !important; color: #17561a !important; }
:is(html,#hcm-scope) .hcm-backlink { display: inline-block; margin: 0 0 10px; color: var(--hcm-ink-2) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
:is(html,#hcm-scope) .hcm-backlink:hover { color: var(--hcm-ink) !important; }
:is(html,#hcm-scope) .hcm-thread { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }
:is(html,#hcm-scope) .hcm-msg {
	max-width: 760px; padding: 14px 16px;
	background: var(--hcm-card) !important; border: 1px solid var(--hcm-line); border-radius: var(--hcm-radius);
}
:is(html,#hcm-scope) .hcm-msg--support { background: #f3f8f3 !important; border-color: #d5e8d5 !important; margin-left: auto; }
:is(html,#hcm-scope) .hcm-msg__head { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; font-size: 13px; }
:is(html,#hcm-scope) .hcm-msg__head span { color: var(--hcm-muted) !important; }
:is(html,#hcm-scope) .hcm-msg__body { white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
:is(html,#hcm-scope) .hcm-msg__file { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--hcm-green-dark) !important; font-weight: 600; font-size: 13.5px; text-decoration: none !important; }
:is(html,#hcm-scope) .hcm-msg__file small { color: var(--hcm-muted) !important; font-weight: 500; }

/* 3.1.0 */
:is(html,#hcm-scope) .hcm-side__img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: #fff !important; flex: 0 0 28px; }
:is(html,#hcm-scope) .hcm-tabs__item--more { border: 0; background: none !important; cursor: pointer; }
:is(html,#hcm-scope) .hcm-accesslog { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--hcm-ink-2) !important; }
:is(html,#hcm-scope) .hcm-accesslog li { margin: 3px 0; }

/* 3.2.0 — AI Assistant */
:is(html,#hcm-scope) .hcm-chat { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
:is(html,#hcm-scope) .hcm-chat__log {
	display: flex; flex-direction: column; gap: 10px;
	min-height: 260px; max-height: 60vh; overflow-y: auto;
	padding: 16px; background: var(--hcm-card) !important; border: 1px solid var(--hcm-line); border-radius: var(--hcm-radius);
}
:is(html,#hcm-scope) .hcm-chat__intro p { margin: 0 0 8px; color: var(--hcm-muted) !important; font-size: 13.5px; }
:is(html,#hcm-scope) .hcm-chat__ideas { display: flex; flex-wrap: wrap; gap: 8px; }
:is(html,#hcm-scope) .hcm-chatmsg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; }
:is(html,#hcm-scope) .hcm-chatmsg--me { align-self: flex-end; background: var(--hcm-green) !important; color: #fff !important; border-bottom-right-radius: 4px; }
:is(html,#hcm-scope) .hcm-chatmsg--me a { color: #fff !important; text-decoration: underline !important; }
:is(html,#hcm-scope) .hcm-chatmsg--ai { align-self: flex-start; background: var(--hcm-line-2) !important; color: var(--hcm-ink) !important; border-bottom-left-radius: 4px; }
:is(html,#hcm-scope) .hcm-chatmsg--ai a { color: var(--hcm-green-dark) !important; font-weight: 600; }
:is(html,#hcm-scope) .hcm-chatmsg--ai ul { margin: 6px 0; padding-left: 18px; }
:is(html,#hcm-scope) .hcm-chatmsg--error { align-self: flex-start; background: var(--hcm-danger-soft) !important; color: var(--hcm-danger) !important; }
:is(html,#hcm-scope) .hcm-dots { display: inline-flex; gap: 4px; }
:is(html,#hcm-scope) .hcm-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--hcm-muted) !important; animation: hcm-dot 1s infinite ease-in-out; }
:is(html,#hcm-scope) .hcm-dots i:nth-child(2) { animation-delay: .15s; }
:is(html,#hcm-scope) .hcm-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hcm-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
:is(html,#hcm-scope) .hcm-chat__form { display: flex; gap: 10px; align-items: flex-end; }
:is(html,#hcm-scope) .hcm-chat__form textarea { flex: 1 1 auto; min-height: 48px; resize: vertical; }
:is(html,#hcm-scope) .hcm-chat__foot { margin: 0; }
@media (max-width: 640px) {
	:is(html,#hcm-scope) .hcm-chat__form { flex-direction: column; align-items: stretch; }
	:is(html,#hcm-scope) .hcm-chatmsg { max-width: 95%; }
}

/* 3.3.0 */
:is(html,#hcm-scope) .hcm-sugg { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
:is(html,#hcm-scope) .hcm-sugg__list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
:is(html,#hcm-scope) .hcm-sugg__list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--hcm-line-2); font-size: 14px; }
:is(html,#hcm-scope) .hcm-unbilled ul { margin: 6px 0 0; padding-left: 18px; }
:is(html,#hcm-scope) .hcm-import__note { margin: 10px 0 4px; color: #7a5406 !important; }

/* 3.3.0 — UI fixes from the 2.1.2 check */
/* Short screens (landscape tablets): the sidebar scrolls with the page
   instead of sticking with its foot cut off. */
@media (min-width: 783px) and (max-height: 560px) {
	:is(html,#hcm-scope) .hcm-side { position: static; height: auto; overflow: visible; }
}
/* Browsers without overflow: clip (Safari before 16): let the sidebar
   stick rather than be held by overflow: hidden. */
@supports not (overflow: clip) {
	:is(html,#hcm-scope) .hcm-app { overflow: visible; }
}

/* 3.4.0 trial, Basic, Pro, read-only */
.hcm-app .hcm-nav__plan--trial { background: #e7f4e7; color: #006400; }
.hcm-app .hcm-nav__plan--basic { background: #e8eef7; color: #23507f; }
.hcm-app .hcm-nav__plan--free { background: #fde8e8; color: #9b1c1c; }
.hcm-app .hcm-planbar--readonly { border-color: #f5b5b5; background: #fff5f5; }
.hcm-app .hcm-planbox .hcm-btn { margin-top: 12px; }
.hcm-app .hcm-planbox__note { font-size: 13px; opacity: .8; margin: 6px 0 0; }
