/**
 * Easy Helpdesk frontend styles
 * Copyright (C) 2011 - 2026 JoomlaX
 * GPL version 3 or later
 *
 * Fully namespaced under .ehd-portal so template CSS cannot override portal UI.
 * Do not target bare h1/a/p/.btn selectors here.
 */

.ehd-portal {
	--ehd-slate-950: #14181c;
	--ehd-slate-800: #2a3238;
	--ehd-slate-700: #4a5560;
	--ehd-slate-500: #6f7c86;
	--ehd-slate-300: #c5ced0;
	--ehd-slate-200: #e2e7eb;
	--ehd-slate-100: #f4f6f7;
	--ehd-teal-700: #1f4f4d;
	--ehd-teal-600: #2a6461;
	--ehd-teal-400: #5a9e9a;
	--ehd-teal-100: #e8f2f1;
	--ehd-hero-copy: #cfd8dc;
	--ehd-white: #ffffff;
	/* Text that sits on the accent. The design settings swap it for ink when the
	   accent is a pale one. */
	--ehd-on-accent: #ffffff;
	/* The portal fills whatever column the template hands it. A desk that wants
	   a ceiling sets one in the options, which writes this over. */
	--ehd-max: 100%;
	--ehd-radius: 8px;
	--ehd-radius-lg: 12px;
	--ehd-radius-sm: 6px;
	--ehd-shadow: none;
	--ehd-font: inherit;
	--ehd-line: 1.55;
	--ehd-nav-radius: 8px;
	--ehd-chip-radius: 8px;
	--ehd-btn-radius: 8px;
	--ehd-input-radius: 8px;
	--ehd-search-radius: 8px;
	--ehd-control-radius: 8px;
	--ehd-badge-radius: 8px;
	--ehd-hero-bg: linear-gradient(160deg, #1a2228 0%, #2c3a42 100%);

	box-sizing: border-box;
	isolation: isolate;
	max-width: var(--ehd-max);
	margin: 0 auto;
	padding: 1.75rem 1rem 2.5rem;
	color: var(--ehd-slate-950);
	font-family: var(--ehd-font);
	font-size: 1rem;
	line-height: var(--ehd-line);
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.ehd-portal *,
.ehd-portal *::before,
.ehd-portal *::after {
	box-sizing: border-box;
}

/* The one column screens: submit a ticket, and the staff new ticket form. They
   follow the portal unless the options give them a ceiling of their own. */
.ehd-portal.ehd-narrow {
	max-width: var(--ehd-max-narrow, var(--ehd-max));
}

/* Optional two-column layout for the submit ticket field list. */
.ehd-portal .ehd-submit-fields.ehd-submit-cols-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 1.25rem;
	align-items: start;
}

.ehd-portal .ehd-submit-fields.ehd-submit-cols-2 .control-group:has(#jform_subject),
.ehd-portal .ehd-submit-fields.ehd-submit-cols-2 .control-group:has(#jform_message),
.ehd-portal .ehd-submit-fields.ehd-submit-cols-2 .control-group:has(textarea[name="jform[message]"]) {
	grid-column: 1 / -1;
}

@media (max-width: 720px) {
	.ehd-portal .ehd-submit-fields.ehd-submit-cols-2 {
		grid-template-columns: 1fr;
	}
}

/* Typography owned by component classes (not bare h1/h2/p/a) */
.ehd-portal .ehd-title,
.ehd-portal .ehd-subtitle,
.ehd-portal .ehd-copy,
.ehd-portal .ehd-eyebrow,
.ehd-portal .ehd-ticket-number,
.ehd-portal .ehd-priority,
.ehd-portal .ehd-back,
.ehd-portal .ehd-article-body,
.ehd-portal .ehd-article-body p,
.ehd-portal .ehd-kb-card .ehd-kb-meta,
.ehd-portal .ehd-kb-card .ehd-subtitle,
.ehd-portal .ehd-kb-card .ehd-copy,
.ehd-portal .ehd-stat .ehd-stat-value,
.ehd-portal .ehd-stat .ehd-stat-label,
.ehd-portal .ehd-ticket-row .ehd-ticket-subject,
.ehd-portal .ehd-ticket-row .ehd-ticket-meta,
.ehd-portal .ehd-message .ehd-message-author,
.ehd-portal .ehd-message .ehd-message-role,
.ehd-portal .ehd-message .ehd-message-time,
.ehd-portal .ehd-message .ehd-message-body,
.ehd-portal .ehd-ticket-facts-list dt,
.ehd-portal .ehd-ticket-facts-list dd,
.ehd-portal .ehd-article-link .ehd-article-title,
.ehd-portal .ehd-article-link .ehd-article-excerpt,
.ehd-portal .ehd-crumb,
.ehd-portal .ehd-crumb-sep,
.ehd-portal .ehd-article-cat,
.ehd-portal .ehd-aside-title,
.ehd-portal .ehd-related-link,
.ehd-portal .ehd-related-link .ehd-related-title,
.ehd-portal .ehd-related-link .ehd-related-excerpt {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	font-family: var(--ehd-font);
	font-style: normal;
	font-weight: 400;
	line-height: var(--ehd-line);
	color: var(--ehd-slate-950);
}

.ehd-portal .ehd-title {
	display: block;
	margin: 0.35rem 0;
	color: var(--ehd-slate-950);
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.ehd-portal .ehd-subtitle {
	display: block;
	margin: 0 0 0.75rem;
	color: var(--ehd-slate-950);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
}

.ehd-portal .ehd-copy {
	display: block;
	color: var(--ehd-slate-700);
	font-size: 1.05rem;
	line-height: 1.6;
}

.ehd-portal .ehd-eyebrow,
.ehd-portal .ehd-ticket-number {
	display: inline-block;
	color: var(--ehd-teal-400);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.ehd-portal .ehd-page-head .ehd-eyebrow,
.ehd-portal .ehd-page-head .ehd-ticket-number {
	color: var(--ehd-teal-700);
}

/* Buttons: component-owned, not Bootstrap .btn */
.ehd-portal .ehd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.7rem 1.25rem;
	border: 1px solid var(--ehd-teal-600);
	border-radius: var(--ehd-btn-radius);
	background: var(--ehd-teal-600);
	box-shadow: none;
	color: var(--ehd-on-accent);
	font-family: var(--ehd-font);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ehd-portal .ehd-btn:hover,
.ehd-portal .ehd-btn:focus,
.ehd-portal .ehd-btn:active {
	border-color: var(--ehd-teal-700);
	background: var(--ehd-teal-700);
	color: var(--ehd-on-accent);
	text-decoration: none;
	outline: none;
}

.ehd-portal .ehd-btn:focus-visible {
	outline: 2px solid var(--ehd-teal-400);
	outline-offset: 2px;
}

.ehd-portal .ehd-btn-lg {
	padding: 0.9rem 1.5rem;
	font-size: 1.05rem;
}

.ehd-portal .ehd-btn-primary {
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-600);
	color: var(--ehd-on-accent);
}

.ehd-portal .ehd-btn-ghost {
	border-color: var(--ehd-slate-300);
	background: transparent;
	color: var(--ehd-slate-800);
}

.ehd-portal .ehd-btn-small {
	padding: 0.4rem 0.8rem;
	font-size: 0.85rem;
}

.ehd-portal .ehd-btn-ghost:hover,
.ehd-portal .ehd-btn-ghost:focus,
.ehd-portal .ehd-btn-ghost:active {
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
}

/* Nav */
.ehd-portal .ehd-demo-readonly {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-nav-radius);
	background: #fff8e6;
	color: var(--ehd-slate-700);
	font-size: 0.95rem;
	line-height: 1.45;
}

.ehd-portal .ehd-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	align-items: center;
	margin: 0 0 1.5rem;
	padding: 0.35rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-nav-radius);
	background: var(--ehd-white);
	box-shadow: var(--ehd-shadow);
}

.ehd-portal .ehd-nav-list {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 0.2rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* In-portal notification centre (bell in the nav) */
.ehd-portal .ehd-notify {
	position: relative;
	flex: 0 0 auto;
	margin: 0;
	margin-left: auto;
}

.ehd-portal .ehd-notify-toggle {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--ehd-control-radius);
	background: transparent;
	color: var(--ehd-slate-700);
	cursor: pointer;
	list-style: none;
}

.ehd-portal .ehd-notify-toggle::-webkit-details-marker,
.ehd-portal .ehd-notify-toggle::marker {
	display: none;
	content: '';
}

.ehd-portal .ehd-notify-toggle:hover,
.ehd-portal .ehd-notify-toggle:focus-visible,
.ehd-portal .ehd-notify[open] > .ehd-notify-toggle {
	border-color: var(--ehd-slate-200);
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-950);
	outline: none;
}

.ehd-portal .ehd-notify-bell {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
}

.ehd-portal .ehd-notify-count {
	position: absolute;
	top: 0.15rem;
	right: 0.1rem;
	min-width: 1.05rem;
	padding: 0 0.28rem;
	border-radius: 999px;
	background: var(--ehd-teal-600);
	color: var(--ehd-on-accent);
	font-family: var(--ehd-font);
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.05rem;
	text-align: center;
}

.ehd-portal .ehd-notify-panel {
	position: absolute;
	top: calc(100% + 0.65rem);
	right: 0;
	z-index: 40;
	display: grid;
	gap: 0.65rem;
	width: min(22rem, calc(100vw - 2rem));
	max-height: min(24rem, 70vh);
	padding: 0.85rem;
	overflow: auto;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius-lg);
	background: var(--ehd-white);
	box-shadow: 0 16px 40px rgba(20, 24, 28, 0.16);
}

.ehd-portal .ehd-notify-head {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: space-between;
}

.ehd-portal .ehd-notify-head strong {
	color: var(--ehd-slate-950);
	font-size: 0.95rem;
}

.ehd-portal .ehd-notify-actions {
	display: inline-flex;
	flex-shrink: 0;
	gap: 0.25rem;
	align-items: center;
}

.ehd-portal .ehd-notify-list {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-notify-item {
	margin: 0;
}

.ehd-portal .ehd-notify-item > a,
.ehd-portal .ehd-notify-item > span {
	display: grid;
	gap: 0.15rem;
	padding: 0.65rem 0.7rem;
	border-radius: var(--ehd-radius-sm);
	color: var(--ehd-slate-800);
	text-decoration: none;
}

.ehd-portal .ehd-notify-item.is-unread > a,
.ehd-portal .ehd-notify-item.is-unread > span {
	background: var(--ehd-teal-100);
}

.ehd-portal .ehd-notify-item > a:hover,
.ehd-portal .ehd-notify-item > a:focus-visible {
	background: var(--ehd-slate-100);
	outline: none;
}

.ehd-portal .ehd-notify-item strong {
	color: var(--ehd-slate-950);
	font-size: 0.9rem;
}

.ehd-portal .ehd-notify-item span,
.ehd-portal .ehd-notify-item small {
	color: var(--ehd-slate-500);
	font-size: 0.8rem;
}

.ehd-portal .ehd-nav-list > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-nav-link {
	display: inline-block;
	margin: 0;
	padding: 0.55rem 0.9rem;
	border: 0;
	border-radius: calc(var(--ehd-nav-radius) - 2px);
	background: transparent;
	color: var(--ehd-slate-700);
	font-family: var(--ehd-font);
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
}

.ehd-portal .ehd-nav-link:hover,
.ehd-portal .ehd-nav-link:focus,
.ehd-portal .ehd-nav-link.is-active {
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-950);
	text-decoration: none;
	outline: none;
}

.ehd-portal .ehd-nav-link.is-active {
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
}

/* Hero */
.ehd-portal .ehd-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 2.5rem;
	border: 0;
	border-radius: var(--ehd-radius-lg);
	background: var(--ehd-hero-bg);
	box-shadow: var(--ehd-shadow);
	color: var(--ehd-white);
}

.ehd-portal .ehd-hero .ehd-eyebrow {
	color: var(--ehd-teal-400);
}

.ehd-portal .ehd-hero .ehd-title {
	color: var(--ehd-white);
}

.ehd-portal .ehd-hero .ehd-copy {
	max-width: 600px;
	color: var(--ehd-hero-copy);
	font-size: 1.08rem;
}

.ehd-portal .ehd-hero .ehd-btn {
	flex-shrink: 0;
}

/* Header style, chosen in the options. Flat drops the gradient for the darker
   accent; plain drops the banner altogether and reads as part of the page. */
.ehd-portal.ehd-head-flat .ehd-hero {
	background: var(--ehd-teal-700);
}

.ehd-portal.ehd-head-plain .ehd-hero {
	padding: 0 0 1.75rem;
	border-bottom: 1px solid var(--ehd-slate-200);
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--ehd-slate-950);
}

.ehd-portal.ehd-head-plain .ehd-hero .ehd-eyebrow {
	color: var(--ehd-teal-600);
}

.ehd-portal.ehd-head-plain .ehd-hero .ehd-title {
	color: var(--ehd-slate-950);
}

.ehd-portal.ehd-head-plain .ehd-hero .ehd-copy {
	color: var(--ehd-slate-700);
}

/* Stats */
.ehd-portal .ehd-stat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

/* Tickets-only desk: two equal figures, no empty third cell. */
.ehd-portal .ehd-stat-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Tickets-only paths replace the knowledge base strip. */
.ehd-portal .ehd-path-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.ehd-portal .ehd-path {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
	padding: 1.5rem 1.6rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius);
	background: var(--ehd-white);
	box-shadow: var(--ehd-shadow);
	color: var(--ehd-slate-950);
	text-decoration: none;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ehd-portal .ehd-path:hover,
.ehd-portal .ehd-path:focus-visible {
	border-color: var(--ehd-teal-600);
	color: var(--ehd-slate-950);
	text-decoration: none;
	outline: none;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(20, 24, 28, 0.08);
}

.ehd-portal .ehd-path-kicker {
	color: var(--ehd-teal-600);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ehd-portal .ehd-path-title {
	color: var(--ehd-slate-950);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
}

.ehd-portal .ehd-path-copy {
	color: var(--ehd-slate-700);
	font-size: 0.98rem;
	line-height: 1.45;
}

.ehd-portal .ehd-how {
	margin-top: 0;
}

.ehd-portal .ehd-how-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-how-list > li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin: 0;
	padding: 0.15rem 0;
	color: var(--ehd-slate-700);
	font-size: 0.98rem;
	line-height: 1.45;
}

.ehd-portal .ehd-how-step {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
	.ehd-portal .ehd-path {
		transition: none;
	}

	.ehd-portal .ehd-path:hover,
	.ehd-portal .ehd-path:focus-visible {
		transform: none;
	}
}

.ehd-portal .ehd-stat {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	padding: 1.5rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius);
	background: var(--ehd-white);
	box-shadow: var(--ehd-shadow);
	color: var(--ehd-slate-950);
	text-decoration: none;
}

.ehd-portal .ehd-stat:hover,
.ehd-portal .ehd-stat:focus {
	border-color: var(--ehd-teal-600);
	color: var(--ehd-slate-950);
	text-decoration: none;
	outline: none;
}

.ehd-portal .ehd-stat .ehd-stat-value {
	color: var(--ehd-teal-700);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
}

.ehd-portal .ehd-stat .ehd-stat-label {
	color: var(--ehd-slate-700);
	font-size: 0.95rem;
	font-weight: 600;
}

/* Panels / lists */
.ehd-portal .ehd-panel {
	margin: 0;
	padding: 1.5rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius);
	background: var(--ehd-white);
	box-shadow: var(--ehd-shadow);
}

.ehd-portal .ehd-panel > .ehd-subtitle {
	margin-bottom: 0.75rem;
}

.ehd-portal .ehd-article-list {
	display: grid;
}

.ehd-portal .ehd-article-link {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 1rem 0;
	border: 0;
	border-bottom: 1px solid var(--ehd-slate-200);
	background: transparent;
	color: var(--ehd-slate-950);
	text-decoration: none;
}

.ehd-portal .ehd-article-link:last-child {
	border-bottom: 0;
}

.ehd-portal .ehd-article-link:hover,
.ehd-portal .ehd-article-link:focus {
	color: var(--ehd-teal-700);
	text-decoration: none;
	outline: none;
}

.ehd-portal .ehd-article-link .ehd-article-title {
	color: inherit;
	font-size: 1.05rem;
	font-weight: 700;
}

.ehd-portal .ehd-article-link .ehd-article-excerpt {
	color: var(--ehd-slate-700);
	font-size: 0.95rem;
}

/* Page head */
.ehd-portal .ehd-page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin: 0 0 2rem;
}

.ehd-portal .ehd-page-head > div {
	min-width: 0;
	flex: 1 1 14rem;
}

.ehd-portal .ehd-page-head-actions {
	display: flex;
	flex: 0 1 auto;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: flex-end;
	max-width: 100%;
}

.ehd-portal .ehd-page-head-actions .ehd-btn {
	max-width: 100%;
}

.ehd-portal .ehd-btn-icon {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	margin-right: 0.4rem;
	vertical-align: -0.12em;
}

.ehd-portal .ehd-page-head .ehd-title {
	color: var(--ehd-slate-950);
}

.ehd-portal .ehd-page-head .ehd-copy {
	margin-top: 0.35rem;
}

/* Tickets */
.ehd-portal .ehd-ticket-list {
	overflow: hidden;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius);
	background: var(--ehd-white);
	box-shadow: var(--ehd-shadow);
}

.ehd-portal .ehd-empty {
	padding: 1.75rem 1.5rem;
}

.ehd-portal .ehd-panel-title {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	margin: 0 0 0.55rem;
}

.ehd-portal .ehd-panel-title .ehd-subtitle {
	margin: 0;
}

.ehd-portal .ehd-panel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: var(--ehd-control-radius);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
	flex: 0 0 auto;
}

.ehd-portal .ehd-panel-icon-svg {
	width: 1.1rem;
	height: 1.1rem;
}

.ehd-portal .ehd-empty .ehd-subtitle {
	margin: 0 0 0.55rem;
}

.ehd-portal .ehd-empty .ehd-panel-title + .ehd-copy,
.ehd-portal .ehd-find-form .ehd-panel-title + .ehd-copy {
	margin-top: 0;
}

.ehd-portal .ehd-empty .ehd-copy {
	margin: 0 0 1rem;
	max-width: 42rem;
}

.ehd-portal .ehd-empty-list {
	margin: 0 0 1.35rem;
	padding: 0 0 0 1.15rem;
	color: var(--ehd-slate-700);
	font-size: 0.98rem;
	line-height: 1.55;
}

.ehd-portal .ehd-empty-list li {
	margin: 0 0 0.45rem;
}

.ehd-portal .ehd-empty-list--icons {
	display: grid;
	gap: 0.7rem;
	margin: 0 0 1.35rem;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-empty-list--icons li {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	margin: 0;
}

.ehd-portal .ehd-empty-point-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	margin-top: 0.05rem;
	border-radius: var(--ehd-control-radius);
	background: var(--ehd-slate-100);
	color: var(--ehd-teal-700);
	flex: 0 0 auto;
}

.ehd-portal .ehd-empty-point-icon .ehd-icon {
	width: 0.95rem;
	height: 0.95rem;
}

.ehd-portal .ehd-empty-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.ehd-portal .ehd-find-form {
	margin-top: 1rem;
}

.ehd-portal .ehd-find-form > .ehd-subtitle {
	margin: 0 0 0.45rem;
}

.ehd-portal .ehd-find-form > .ehd-copy,
.ehd-portal .ehd-find-form .ehd-panel-title + .ehd-copy {
	margin: 0 0 1.15rem;
	max-width: 40rem;
}

.ehd-portal .ehd-field-with-icon {
	position: relative;
}

.ehd-portal .ehd-field-with-icon .ehd-field-icon {
	position: absolute;
	top: 50%;
	left: 0.8rem;
	z-index: 1;
	display: inline-flex;
	color: var(--ehd-slate-500);
	transform: translateY(-50%);
	pointer-events: none;
}

.ehd-portal .ehd-field-with-icon .ehd-field-icon .ehd-icon {
	width: 1rem;
	height: 1rem;
}

/* The field rules below set padding with the shorthand, so an override here
   would have to out-specify them. Handing the left inset over as a variable
   keeps the icon clear of the text without that fight. */
.ehd-portal .ehd-field-with-icon input {
	--ehd-input-pad-left: 2.35rem;
}

.ehd-portal .ehd-attachments {
	margin: 0 0 1.25rem;
}

.ehd-portal .ehd-attachments-label {
	display: block;
	margin: 0 0 0.55rem;
	color: var(--ehd-slate-800);
	font-size: 0.92rem;
	font-weight: 700;
}

.ehd-portal .ehd-dropzone {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 132px;
	padding: 1.25rem 1rem;
	border: 1.5px dashed var(--ehd-slate-300);
	border-radius: var(--ehd-radius);
	background:
		linear-gradient(180deg, #f7fbfb 0%, #f3f7f8 100%);
	color: var(--ehd-slate-700);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.ehd-portal .ehd-dropzone:hover,
.ehd-portal .ehd-dropzone:focus,
.ehd-portal .ehd-dropzone:focus-within {
	border-color: var(--ehd-teal-600);
	background: #eef8f7;
	box-shadow: 0 0 0 3px rgba(13, 127, 123, 0.12);
	outline: none;
}

.ehd-portal .ehd-dropzone.is-dragging {
	border-color: var(--ehd-teal-600);
	border-style: solid;
	background: var(--ehd-teal-100);
	box-shadow: 0 0 0 4px rgba(13, 127, 123, 0.16);
}

.ehd-portal .ehd-dropzone.has-files {
	border-style: solid;
	border-color: var(--ehd-slate-200);
	background: var(--ehd-white);
}

.ehd-portal .ehd-dropzone-input {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

.ehd-portal .ehd-dropzone-body {
	display: grid;
	justify-items: center;
	gap: 0.35rem;
	pointer-events: none;
}

.ehd-portal .ehd-dropzone-icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 0.2rem;
	border-radius: 999px;
	background: var(--ehd-white);
	color: var(--ehd-teal-700);
	box-shadow: 0 6px 16px rgba(23, 33, 43, 0.08);
}

.ehd-portal .ehd-dropzone-title {
	color: var(--ehd-slate-950);
	font-size: 0.98rem;
	font-weight: 700;
}

.ehd-portal .ehd-dropzone-browse {
	color: var(--ehd-teal-700);
	font-size: 0.9rem;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ehd-portal .ehd-attachments-help {
	margin: 0.55rem 0 0;
	color: var(--ehd-slate-500);
	font-size: 0.85rem;
	line-height: 1.45;
}

.ehd-portal .ehd-dropzone-files {
	display: grid;
	gap: 0.55rem;
	margin: 0.85rem 0 0;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-dropzone-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius);
	background: var(--ehd-white);
}

.ehd-portal .ehd-dropzone-thumb {
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: calc(var(--ehd-radius) - 2px);
	object-fit: cover;
	background: var(--ehd-slate-100);
}

.ehd-portal .ehd-dropzone-file-meta {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
	flex: 1 1 auto;
}

.ehd-portal .ehd-dropzone-file-name {
	overflow: hidden;
	color: var(--ehd-slate-950);
	font-size: 0.92rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ehd-portal .ehd-dropzone-file-size {
	color: var(--ehd-slate-500);
	font-size: 0.8rem;
}

.ehd-portal .ehd-dropzone-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.85rem;
	height: 1.85rem;
	margin: 0;
	padding: 0;
	border: 1.5px solid #c62828;
	border-radius: 999px;
	background: #fff5f5;
	color: #c62828;
	line-height: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.ehd-portal .ehd-dropzone-remove-icon {
	display: block;
	width: 0.7rem;
	height: 0.7rem;
	flex: 0 0 auto;
	overflow: visible;
}

.ehd-portal .ehd-dropzone-remove-icon path {
	fill: currentColor !important;
	stroke: none !important;
}

.ehd-portal .ehd-dropzone-remove:hover,
.ehd-portal .ehd-dropzone-remove:focus {
	border-color: #b71c1c;
	background: #ffe8e8;
	color: #b71c1c;
	outline: none;
}

.ehd-portal .ehd-attachments-error {
	margin: 0.55rem 0 0;
	padding: 0.55rem 0.75rem;
	border: 1px solid #f1b0b0;
	border-radius: var(--ehd-radius);
	background: #fff5f5;
	color: #b71c1c;
	font-size: 0.88rem;
	line-height: 1.4;
}

.ehd-portal .ehd-attachment-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-attachment-item {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	max-width: 100%;
}

.ehd-portal .ehd-attachment-item.is-image {
	width: min(100%, 9.5rem);
}

.ehd-portal .ehd-attachment-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-control-radius);
	background: var(--ehd-slate-100);
	color: var(--ehd-teal-700);
	font-size: 0.88rem;
	font-weight: 650;
	text-decoration: none;
}

.ehd-portal .ehd-attachment-link:hover,
.ehd-portal .ehd-attachment-link:focus {
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
	outline: none;
}

.ehd-portal .ehd-attachment-preview {
	display: grid;
	gap: 0.45rem;
	width: 100%;
	margin: 0;
	padding: 0.4rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-control-radius);
	background: var(--ehd-slate-100);
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: zoom-in;
}

.ehd-portal .ehd-attachment-preview img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 7rem;
	border-radius: calc(var(--ehd-control-radius) - 2px);
	object-fit: cover;
	background: var(--ehd-white);
}

.ehd-portal .ehd-attachment-preview:hover,
.ehd-portal .ehd-attachment-preview:focus {
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-100);
	outline: none;
}

.ehd-portal .ehd-attachment-caption {
	display: grid;
	gap: 0.1rem;
	min-width: 0;
	padding: 0 0.15rem 0.1rem;
}

.ehd-portal .ehd-attachment-caption-name {
	overflow: hidden;
	color: var(--ehd-slate-950);
	font-size: 0.85rem;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ehd-portal .ehd-attachment-download {
	justify-self: start;
	color: var(--ehd-teal-700);
	font-size: 0.82rem;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ehd-portal .ehd-attachment-size {
	color: var(--ehd-slate-500);
	font-weight: 500;
}

body.ehd-lightbox-open {
	overflow: hidden;
}

.ehd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(0.5rem, 2vw, 1.25rem);
	box-sizing: border-box;
}

.ehd-lightbox[hidden] {
	display: none !important;
}

.ehd-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 32, 0.82);
}

.ehd-lightbox-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(100%, 56rem);
	max-height: min(92vh, 100%);
	min-height: 0;
	padding: 0.75rem;
	border-radius: 1rem;
	background: #111827;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	color: #f8fafc;
	box-sizing: border-box;
}

.ehd-lightbox-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	margin: 0 0 0.65rem;
	min-width: 0;
	flex: 0 0 auto;
}

.ehd-lightbox-title {
	margin: 0;
	min-width: 0;
	overflow: hidden;
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ehd-lightbox-actions {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	flex: 0 0 auto;
}

.ehd-lightbox-download,
.ehd-lightbox-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	min-height: 2.25rem;
	padding: 0 0.85rem;
	border: 1.5px solid rgba(248, 250, 252, 0.35);
	border-radius: 999px;
	background: transparent;
	color: #f8fafc;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

.ehd-lightbox-download svg,
.ehd-lightbox-close svg {
	display: block;
	flex: 0 0 auto;
}

.ehd-lightbox-close {
	width: 2.25rem;
	padding: 0;
}

.ehd-lightbox-download:hover,
.ehd-lightbox-download:focus,
.ehd-lightbox-close:hover,
.ehd-lightbox-close:focus {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	outline: none;
}

.ehd-lightbox-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 0.25rem;
}

.ehd-lightbox-stage img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	margin: auto;
	object-fit: contain;
}

@media (max-width: 640px) {
	.ehd-lightbox-dialog {
		width: 100%;
		max-height: 100%;
		border-radius: 0.75rem;
	}

	.ehd-lightbox-toolbar {
		align-items: flex-start;
	}

	.ehd-lightbox-title {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.ehd-lightbox-download span {
		display: none;
	}

	.ehd-lightbox-download {
		width: 2.25rem;
		padding: 0;
	}
}

.ehd-portal .ehd-reply-editor {
	margin: 0 0 1rem;
}

.ehd-portal .ehd-find-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1rem;
}

@media (max-width: 720px) {
	.ehd-portal .ehd-find-grid {
		grid-template-columns: 1fr;
	}
}

.ehd-portal .ehd-ticket-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 1.2rem 1.4rem;
	border: 0;
	border-bottom: 1px solid var(--ehd-slate-200);
	background: transparent;
	color: var(--ehd-slate-950);
	text-decoration: none;
}

.ehd-portal .ehd-ticket-row:last-child {
	border-bottom: 0;
}

.ehd-portal .ehd-ticket-row:hover,
.ehd-portal .ehd-ticket-row:focus {
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-950);
	text-decoration: none;
	outline: none;
}

.ehd-portal .ehd-ticket-row > div {
	display: grid;
	gap: 0.3rem;
}

/* The status column is a flex item, so its grid rows would stretch to the
   height of the subject column and drag the badge taller with them. */
.ehd-portal .ehd-ticket-row > div:last-child {
	align-content: start;
	justify-items: start;
}

.ehd-portal .ehd-ticket-row .ehd-ticket-subject {
	color: var(--ehd-slate-950);
	font-size: 1.05rem;
	font-weight: 700;
}

.ehd-portal .ehd-ticket-row .ehd-ticket-meta {
	color: var(--ehd-slate-500);
	font-size: 0.88rem;
}

.ehd-portal .ehd-badge {
	display: inline-block;
	margin: 0;
	padding: 0.35rem 0.65rem;
	border: 0;
	border-radius: var(--ehd-badge-radius);
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-700);
	font-family: var(--ehd-font);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ehd-portal .ehd-status-open,
.ehd-portal .ehd-status-pending {
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
}

.ehd-portal .ehd-status-waiting,
.ehd-portal .ehd-status-onhold {
	background: #fff3cd;
	color: #856404;
}

.ehd-portal .ehd-status-closed,
.ehd-portal .ehd-status-resolved {
	background: var(--ehd-slate-200);
	color: var(--ehd-slate-700);
}

.ehd-portal .ehd-priority {
	margin-left: 0.5rem;
	color: var(--ehd-slate-500);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
}

/* Ticket conversation */
.ehd-portal .ehd-timeline {
	position: relative;
	margin: 2rem 0;
	padding-left: 1.2rem;
	border-left: 3px solid var(--ehd-teal-100);
}

.ehd-portal .ehd-message {
	margin: 0 0 1rem;
	padding: 1.25rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius);
	background: var(--ehd-white);
	box-shadow: none;
}

/* An answer from the desk is tinted and carries a coloured edge, so scanning the
   thread shows who spoke without reading a single name. */
.ehd-portal .ehd-message-staff {
	border-left: 4px solid var(--ehd-teal-600);
	background: var(--ehd-teal-100);
}

.ehd-portal .ehd-message-customer {
	border-left: 4px solid var(--ehd-slate-200);
}

.ehd-portal .ehd-message-header {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	align-items: center;
	margin: 0 0 0.8rem;
}

/* The desk holds no portraits, so initials stand in and take the colour of
   whoever is speaking. */
.ehd-portal .ehd-message-avatar {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-700);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.ehd-portal .ehd-message-staff .ehd-message-avatar {
	background: var(--ehd-teal-600);
	color: var(--ehd-on-accent);
}

.ehd-portal .ehd-message-note .ehd-message-avatar {
	background: #d99a2b;
	color: var(--ehd-white);
}

.ehd-portal .ehd-message .ehd-message-author {
	color: var(--ehd-slate-950);
	font-weight: 700;
}

.ehd-portal .ehd-message .ehd-message-role {
	padding: 0.05rem 0.5rem;
	border-radius: var(--ehd-badge-radius);
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-500);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ehd-portal .ehd-message-staff .ehd-message-role {
	background: var(--ehd-teal-600);
	color: var(--ehd-on-accent);
}

.ehd-portal .ehd-message .ehd-message-time {
	margin-left: auto;
	color: var(--ehd-slate-500);
	font-size: 0.82rem;
}

.ehd-portal .ehd-message .ehd-message-body {
	color: var(--ehd-slate-800);
	font-size: 1rem;
	line-height: 1.65;
}

/* Staff replies come from an editor, so style the markup they can produce. */
.ehd-portal .ehd-message-body > :first-child {
	margin-top: 0;
}

.ehd-portal .ehd-message-body > :last-child {
	margin-bottom: 0;
}

.ehd-portal .ehd-message-body p {
	margin: 0 0 0.9rem;
}

.ehd-portal .ehd-message-body ul,
.ehd-portal .ehd-message-body ol {
	margin: 0 0 0.9rem;
	padding-left: 1.35rem;
}

.ehd-portal .ehd-message-body li {
	margin: 0 0 0.35rem;
}

.ehd-portal .ehd-message-body a {
	color: var(--ehd-teal-700);
	text-decoration: underline;
}

.ehd-portal .ehd-message-body strong {
	color: var(--ehd-slate-950);
	font-weight: 700;
}

.ehd-portal .ehd-message-body blockquote {
	margin: 0 0 0.9rem;
	padding: 0.15rem 0 0.15rem 1rem;
	border-left: 3px solid var(--ehd-slate-200);
	color: var(--ehd-slate-600);
}

.ehd-portal .ehd-message-body pre,
.ehd-portal .ehd-message-body code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9rem;
}

.ehd-portal .ehd-message-body pre {
	margin: 0 0 0.9rem;
	padding: 0.85rem 1rem;
	overflow-x: auto;
	border-radius: var(--ehd-radius-sm);
	background: var(--ehd-slate-100);
}

.ehd-portal .ehd-message-body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--ehd-radius-sm);
}

/* Answers to the department's own questions, shown above the conversation. */
.ehd-portal .ehd-ticket-facts .ehd-subtitle {
	margin: 0 0 1rem;
}

.ehd-portal .ehd-ticket-facts-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 1rem;
	margin: 0 0 1.25rem;
}

.ehd-portal .ehd-ticket-facts-list dt {
	margin: 0 0 0.2rem;
	color: var(--ehd-slate-500);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ehd-portal .ehd-ticket-facts-list dd {
	margin: 0;
	color: var(--ehd-slate-800);
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* What the customer sees once the desk considers the job done. */
.ehd-portal .ehd-closed-actions {
	margin-top: 1.25rem;
}

.ehd-portal .ehd-rating-given {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
	margin: 0;
	color: var(--ehd-slate-700);
}

.ehd-portal .ehd-stars {
	color: #d97706;
	font-size: 1.15rem;
	letter-spacing: 0.08em;
}

.ehd-portal .ehd-rating-title {
	margin: 0 0 0.35rem;
}

.ehd-portal .ehd-rating-intro {
	margin: 0 0 1rem;
}

.ehd-portal .ehd-rating-form .ehd-btn,
.ehd-portal .ehd-reopen-form .ehd-btn {
	margin-top: 1.1rem;
}

.ehd-portal .ehd-rating-form + .ehd-reopen-form {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ehd-slate-200);
}

.ehd-portal .ehd-rating-choice {
	display: grid;
	justify-items: start;
	gap: 0.45rem;
	margin: 0 0 1.15rem;
}

.ehd-portal .ehd-rating-stars {
	position: relative;
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
}

/* Keep radios in the DOM for submit/a11y; stars are the visible control. */
.ehd-portal .ehd-rating-input {
	position: absolute !important;
	width: 1px !important;
	min-width: 0 !important;
	height: 1px !important;
	min-height: 0 !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.ehd-portal .ehd-rating-star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #d1d5db;
	cursor: pointer;
	line-height: 1;
	transition: color 0.12s ease, transform 0.12s ease;
}

.ehd-portal .ehd-rating-glyph {
	display: block;
	font-size: 2.1rem;
	line-height: 1;
	speak: never;
}

.ehd-portal .ehd-rating-star:hover,
.ehd-portal .ehd-rating-star:hover ~ .ehd-rating-star,
.ehd-portal .ehd-rating-input:checked ~ .ehd-rating-star {
	color: #d97706;
}

.ehd-portal .ehd-rating-star:hover {
	transform: scale(1.08);
}

.ehd-portal .ehd-rating-input:focus-visible + .ehd-rating-star {
	outline: 2px solid var(--ehd-teal-600);
	outline-offset: 3px;
	border-radius: 0.35rem;
}

.ehd-portal .ehd-rating-scale {
	display: flex;
	justify-content: space-between;
	width: min(100%, 13.5rem);
	margin: 0;
	color: var(--ehd-slate-500);
	font-size: 0.8rem;
	font-weight: 600;
}

/* Forms */
.ehd-portal .ehd-field-label,
.ehd-portal .ehd-reply .ehd-field-label {
	display: block;
	margin: 0 0 0.45rem;
	color: var(--ehd-slate-700);
	font-size: 0.92rem;
	font-weight: 700;
}

.ehd-portal .ehd-panel .control-group,
.ehd-portal .ehd-panel .form-group,
.ehd-portal .ehd-panel .mb-3 {
	margin: 0 0 1rem;
}

.ehd-portal .ehd-panel .form-control-feedback,
.ehd-portal .ehd-panel .invalid-feedback,
.ehd-portal .ehd-panel label .form-control-feedback,
.ehd-portal .ehd-panel .control-label .form-control-feedback {
	display: block;
	margin: 0.35rem 0 0;
	color: #c62828;
	font-family: var(--ehd-font);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
}

.ehd-portal .ehd-panel .control-group.invalid .form-control-feedback,
.ehd-portal .ehd-panel .control-group.error .form-control-feedback,
.ehd-portal .ehd-panel .is-invalid ~ .form-control-feedback,
.ehd-portal .ehd-panel .is-invalid + .form-control-feedback {
	color: #c62828;
}

.ehd-portal .ehd-panel input.is-invalid,
.ehd-portal .ehd-panel select.is-invalid,
.ehd-portal .ehd-panel textarea.is-invalid,
.ehd-portal .ehd-panel .form-control.is-invalid,
.ehd-portal .ehd-panel .form-select.is-invalid,
.ehd-portal .ehd-panel .control-group.invalid input,
.ehd-portal .ehd-panel .control-group.invalid select,
.ehd-portal .ehd-panel .control-group.invalid textarea,
.ehd-portal .ehd-panel .control-group.error input,
.ehd-portal .ehd-panel .control-group.error select,
.ehd-portal .ehd-panel .control-group.error textarea {
	border-color: #c62828;
}

.ehd-portal .ehd-panel input.is-invalid:focus,
.ehd-portal .ehd-panel select.is-invalid:focus,
.ehd-portal .ehd-panel textarea.is-invalid:focus,
.ehd-portal .ehd-panel .form-control.is-invalid:focus,
.ehd-portal .ehd-panel .form-select.is-invalid:focus {
	border-color: #c62828;
	outline: 2px solid rgba(198, 40, 40, 0.2);
}

.ehd-portal .ehd-panel label,
.ehd-portal .ehd-reply label {
	display: block;
	margin: 0 0 0.45rem;
	color: var(--ehd-slate-700);
	font-family: var(--ehd-font);
	font-size: 0.92rem;
	font-weight: 700;
}

.ehd-portal .ehd-panel input,
.ehd-portal .ehd-panel select,
.ehd-portal .ehd-panel textarea,
.ehd-portal .ehd-reply textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0.75rem 0.9rem 0.75rem var(--ehd-input-pad-left, 0.9rem);
	border: 1px solid var(--ehd-slate-300);
	border-radius: var(--ehd-input-radius);
	background-color: var(--ehd-white);
	box-shadow: none;
	color: var(--ehd-slate-950);
	font-family: var(--ehd-font);
	font-size: 1rem;
	line-height: 1.45;
	vertical-align: middle;
}

.ehd-portal .ehd-panel input,
.ehd-portal .ehd-panel textarea,
.ehd-portal .ehd-reply textarea {
	appearance: none;
	-webkit-appearance: none;
}

/* Template stylesheets tie on specificity and load later, so typed inputs
   need one extra attribute selector to keep the theme radius. */
.ehd-portal .ehd-panel input[type],
.ehd-portal .ehd-panel select:not([multiple]),
.ehd-portal .ehd-panel textarea:not([hidden]) {
	border-radius: var(--ehd-input-radius);
}

.ehd-portal .ehd-panel select,
.ehd-portal .ehd-panel .form-select {
	min-height: 2.85rem;
	height: auto;
	padding: 0.7rem 2.5rem 0.7rem 0.9rem;
	overflow: visible;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-color: var(--ehd-white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23405262' d='M4.2 6.2a.75.75 0 0 1 1.06 0L8 8.94l2.74-2.74a.75.75 0 1 1 1.06 1.06l-3.27 3.27a.75.75 0 0 1-1.06 0L4.2 7.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	background-size: 1rem 1rem;
}

.ehd-portal .ehd-panel select::-ms-expand {
	display: none;
}

.ehd-portal .ehd-panel input:focus,
.ehd-portal .ehd-panel select:focus,
.ehd-portal .ehd-panel .form-select:focus,
.ehd-portal .ehd-panel textarea:focus,
.ehd-portal .ehd-reply textarea:focus {
	border-color: var(--ehd-teal-600);
	outline: 2px solid var(--ehd-teal-100);
	outline-offset: 0;
}

.ehd-portal .ehd-reply .ehd-btn,
.ehd-portal .ehd-panel > .ehd-btn {
	margin-top: 1rem;
}

/* Knowledge base */
.ehd-portal .ehd-kb-head .ehd-copy {
	max-width: 40rem;
}

/* The intro picture a site can set for the knowledge base. */
.ehd-portal .ehd-kb-head.has-figure {
	align-items: center;
}

.ehd-portal .ehd-kb-figure {
	flex: 0 1 22rem;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius-lg);
	background: var(--ehd-slate-100);
	line-height: 0;
}

.ehd-portal .ehd-kb-figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.ehd-portal .ehd-kb-toolbar {
	margin: 0 0 1.25rem;
	padding: 1.15rem 1.25rem;
}

.ehd-portal .ehd-kb-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin: 0 0 1rem;
}

/* The wrapper carries the border so the icon takes real layout space. Template
   stylesheets force input padding with !important, which breaks icon overlays. */
.ehd-portal .ehd-kb-search-field {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	flex: 1 1 240px;
	min-height: 46px;
	padding: 0 0.9rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-search-radius);
	background: var(--ehd-white);
}

.ehd-portal .ehd-kb-search-field:focus-within {
	border-color: var(--ehd-teal-600);
	outline: 2px solid var(--ehd-teal-100);
	outline-offset: 0;
}

.ehd-portal .ehd-kb-search-icon {
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	color: var(--ehd-slate-500);
	pointer-events: none;
}

.ehd-portal .ehd-kb-search-field:focus-within .ehd-kb-search-icon {
	color: var(--ehd-teal-600);
}

.ehd-portal .ehd-kb-search input[type="search"] {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 2.75rem;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ehd-slate-950);
	font: inherit;
}

.ehd-portal .ehd-kb-search input[type="search"]:focus {
	border: 0;
	outline: none;
	box-shadow: none;
}

.ehd-portal .ehd-kb-search input[type="search"]::-webkit-search-cancel-button {
	cursor: pointer;
}

.ehd-portal .ehd-kb-search .ehd-btn {
	margin: 0;
	min-height: 46px;
}

.ehd-portal .ehd-btn-icon {
	width: 1.05rem;
	height: 1.05rem;
	flex: 0 0 auto;
}

.ehd-portal .ehd-btn-icon-only {
	gap: 0;
	width: 46px;
	min-width: 46px;
	height: 46px;
	min-height: 46px;
	padding: 0;
	line-height: 0;
}

/* With no label beside it, drop the labeled-button icon gutter so the glyph sits dead centre. */
.ehd-portal .ehd-btn-icon-only .ehd-btn-icon {
	display: block;
	width: 1.4rem;
	height: 1.4rem;
	margin: 0;
	vertical-align: middle;
}

.ehd-portal .ehd-kb-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.ehd-portal .ehd-kb-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-chip-radius);
	background: var(--ehd-white);
	color: var(--ehd-slate-700);
	font-size: 0.88rem;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ehd-portal .ehd-kb-chip:hover,
.ehd-portal .ehd-kb-chip:focus {
	border-color: var(--ehd-teal-600);
	color: var(--ehd-teal-700);
	text-decoration: none;
	outline: none;
}

.ehd-portal .ehd-kb-chip.is-active {
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
}

.ehd-portal .ehd-kb-chip-count {
	display: inline-grid;
	place-items: center;
	min-width: 1.35rem;
	padding: 0.05rem 0.35rem;
	border-radius: var(--ehd-radius-sm);
	background: rgba(23, 33, 43, 0.08);
	color: inherit;
	font-size: 0.75rem;
}

.ehd-portal .ehd-kb-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.ehd-portal .ehd-kb-count {
	margin: 0;
	color: var(--ehd-slate-500);
	font-size: 0.9rem;
}

.ehd-portal .ehd-kb-footer,
.ehd-portal .ehd-list-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	margin: 1.35rem 0 0;
}

.ehd-portal .ehd-kb-footer .ehd-pagination,
.ehd-portal .ehd-list-footer .ehd-pagination {
	margin: 0 0 0 auto;
	justify-content: flex-end;
}

.ehd-portal .ehd-list-range {
	margin: 0;
	color: var(--ehd-slate-500);
	font-size: 0.9rem;
}

.ehd-portal .ehd-kb-limit {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
}

.ehd-portal .ehd-kb-limit-label {
	color: var(--ehd-slate-500);
	font-size: 0.86rem;
	font-weight: 650;
	white-space: nowrap;
}

/* Shape and colour are pinned in the armour block at the foot of this file */
.ehd-portal .ehd-kb-limit-select {
	min-width: 4.6rem;
	margin: 0;
	line-height: 1.2;
	cursor: pointer;
}

.ehd-portal .ehd-kb-limit-select:focus-visible {
	outline: 2px solid var(--ehd-teal-100);
	outline-offset: 0;
}

.ehd-portal .ehd-kb-results {
	position: relative;
	min-height: 6rem;
}

.ehd-portal .ehd-kb-results.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--ehd-radius);
	background: rgba(244, 246, 247, 0.72);
	pointer-events: none;
}

.ehd-portal .ehd-btn.is-hidden,
.ehd-portal .is-hidden {
	display: none !important;
}

.ehd-portal .ehd-guest-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 1.15rem;
	align-items: stretch;
}

.ehd-portal .ehd-guest-layout > .ehd-panel {
	height: 100%;
}

.ehd-portal .ehd-guest-layout .ehd-find-form {
	margin: 0;
}

.ehd-portal .ehd-guest-layout .ehd-find-grid {
	grid-template-columns: 1fr;
}

/* The signed out left hand card: what the desk is, and what it holds. */
.ehd-portal .ehd-guest-about {
	display: flex;
	flex-direction: column;
}

.ehd-portal .ehd-guest-about .ehd-empty-actions {
	margin-top: auto;
}

.ehd-portal .ehd-guest-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0.65rem;
	margin: 0 0 1.35rem;
	padding: 0;
}

.ehd-portal .ehd-guest-fact {
	margin: 0;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius);
	background: var(--ehd-slate-100);
}

.ehd-portal .ehd-guest-fact dt {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	margin: 0 0 0.2rem;
	color: var(--ehd-slate-600);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ehd-portal .ehd-guest-fact-icon {
	display: inline-flex;
	color: var(--ehd-teal-600);
}

.ehd-portal .ehd-guest-fact dd {
	margin: 0;
	color: var(--ehd-slate-950);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
}

/* Two ways in, one card: post me a link, or look one ticket up by its number. */
.ehd-portal .ehd-tabs {
	display: flex;
	gap: 0.3rem;
	margin: 0 0 1.15rem;
	padding: 0.25rem;
	border-radius: var(--ehd-control-radius);
	background: var(--ehd-slate-100);
}

.ehd-portal .ehd-tab {
	display: inline-flex;
	flex: 1 1 0;
	gap: 0.4rem;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 0.75rem;
	border: 0;
	border-radius: var(--ehd-control-radius);
	background: transparent;
	color: var(--ehd-slate-700);
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ehd-portal .ehd-tab:hover {
	color: var(--ehd-slate-950);
}

.ehd-portal .ehd-tab.is-active {
	background: var(--ehd-white);
	box-shadow: 0 1px 2px rgb(15 23 42 / 12%);
	color: var(--ehd-teal-700);
}

.ehd-portal .ehd-tab-pane[hidden] {
	display: none;
}

.ehd-portal .ehd-tab-pane > form > .ehd-copy:first-child {
	margin: 0 0 1.15rem;
}

.ehd-portal .ehd-login-form .ehd-btn,
.ehd-portal .ehd-access-form .ehd-btn {
	width: 100%;
}

.ehd-portal .ehd-access-form .ehd-hint {
	margin: 0.7rem 0 0;
	color: var(--ehd-slate-600);
	font-size: 0.86rem;
	text-align: center;
}

/* A password is the exception now, so it waits behind a line of text rather
   than taking half the card. */
.ehd-portal .ehd-signin-more {
	margin: 1.35rem 0 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--ehd-slate-200);
}

.ehd-portal .ehd-signin-more > summary {
	display: flex;
	gap: 0.45rem;
	align-items: center;
	color: var(--ehd-slate-700);
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.ehd-portal .ehd-signin-more > summary::-webkit-details-marker {
	display: none;
}

.ehd-portal .ehd-signin-more > summary:hover {
	color: var(--ehd-teal-700);
}

.ehd-portal .ehd-signin-more[open] > summary {
	margin: 0 0 1rem;
}

/* Who the list belongs to, for a visitor with no account to look at. */
.ehd-portal .ehd-access-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 1rem;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--ehd-teal-100);
	border-radius: var(--ehd-radius);
	background: var(--ehd-teal-100);
}

.ehd-portal .ehd-access-who {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	color: var(--ehd-teal-700);
	font-size: 0.94rem;
	font-weight: 600;
}

.ehd-portal .ehd-access-icon {
	display: inline-flex;
}

.ehd-portal .ehd-login-remember {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin: 0 0 1.15rem;
	color: var(--ehd-slate-700);
	font-size: 0.94rem;
	cursor: pointer;
}

.ehd-portal .ehd-login-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}

.ehd-portal .ehd-login-links a {
	color: var(--ehd-teal-700);
	text-decoration: none;
}

.ehd-portal .ehd-login-links a:hover {
	text-decoration: underline;
}

.ehd-portal .ehd-kb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.ehd-portal .ehd-kb-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius);
	background: var(--ehd-white);
	box-shadow: var(--ehd-shadow);
	color: var(--ehd-slate-950);
	text-decoration: none;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ehd-portal .ehd-kb-card:hover,
.ehd-portal .ehd-kb-card:focus {
	transform: translateY(-1px);
	border-color: var(--ehd-teal-600);
	box-shadow: var(--ehd-shadow);
	color: var(--ehd-slate-950);
	text-decoration: none;
	outline: none;
}

.ehd-portal .ehd-kb-card.is-featured {
	border-color: var(--ehd-teal-400);
}

/* The picture reaches the card edges; the words keep the padding. */
.ehd-portal .ehd-kb-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.35rem 1.4rem 1.25rem;
}

.ehd-portal .ehd-kb-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--ehd-slate-100);
	line-height: 0;
}

.ehd-portal .ehd-kb-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ehd-portal .ehd-kb-card:hover .ehd-kb-thumb img,
.ehd-portal .ehd-kb-card:focus .ehd-kb-thumb img {
	transform: scale(1.03);
}

.ehd-portal .ehd-kb-thumb-play {
	display: inline-flex;
	position: absolute;
	inset: auto auto 0.6rem 0.6rem;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: rgba(15, 23, 26, 0.72);
	color: #ffffff;
}

.ehd-portal .ehd-kb-thumb-play svg {
	width: 1.1rem;
	height: 1.1rem;
}

.ehd-portal .ehd-kb-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
}

.ehd-portal .ehd-kb-card .ehd-kb-meta {
	display: block;
	margin: 0;
	color: var(--ehd-teal-700);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ehd-portal .ehd-kb-featured {
	display: inline-flex;
	padding: 0.18rem 0.55rem;
	border-radius: var(--ehd-badge-radius);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
	font-size: 0.72rem;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Doubled portal class so a template h2 / .subtitle rule cannot thin these out. */
.ehd-portal.ehd-portal .ehd-kb-card .ehd-subtitle {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--ehd-slate-950) !important;
	font-family: var(--ehd-font) !important;
	font-size: 1.15rem !important;
	font-style: normal !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	text-transform: none !important;
}

.ehd-portal.ehd-portal .ehd-kb-card .ehd-copy {
	flex: 1 1 auto;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--ehd-slate-700) !important;
	font-family: var(--ehd-font) !important;
	font-size: 0.95rem !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	text-decoration: none !important;
}

.ehd-portal.ehd-portal .ehd-kb-card .ehd-kb-meta {
	margin: 0 !important;
	color: var(--ehd-teal-700) !important;
	font-family: var(--ehd-font) !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
}

.ehd-portal .ehd-kb-read {
	margin-top: 0.35rem;
	color: var(--ehd-teal-700);
	font-size: 0.9rem;
	font-weight: 700;
}

.ehd-portal .ehd-pagination {
	display: flex;
	justify-content: center;
	margin: 1.5rem 0 0;
}

.ehd-portal .ehd-pagination-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-pagination-list > li {
	display: flex;
	margin: 0;
}

.ehd-portal .ehd-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	min-height: 2.4rem;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-control-radius);
	background: var(--ehd-white);
	color: var(--ehd-slate-800);
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
}

.ehd-portal .ehd-page-link--icon {
	padding: 0;
}

.ehd-portal .ehd-page-icon {
	display: block;
	width: 1rem;
	height: 1rem;
}

.ehd-portal a.ehd-page-link:hover,
.ehd-portal a.ehd-page-link:focus {
	border-color: var(--ehd-teal-600);
	color: var(--ehd-teal-700);
	outline: none;
}

.ehd-portal .ehd-page-link.is-active {
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-600);
	color: var(--ehd-on-accent);
}

.ehd-portal .ehd-page-link.is-disabled {
	opacity: 0.4;
	cursor: default;
}

.ehd-portal .ehd-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Article */
/* SINGLE ARTICLE PAGE */
.ehd-portal .ehd-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 1.1rem;
	font-size: 0.88rem;
}

.ehd-portal .ehd-crumb {
	color: var(--ehd-slate-700);
	font-size: inherit;
	text-decoration: none;
}

.ehd-portal a.ehd-crumb:hover,
.ehd-portal a.ehd-crumb:focus {
	color: var(--ehd-teal-700);
	text-decoration: underline;
	outline: none;
}

.ehd-portal .ehd-crumb.is-current {
	color: var(--ehd-slate-950);
	font-size: inherit;
	font-weight: 600;
}

.ehd-portal .ehd-crumb-sep {
	color: var(--ehd-slate-500);
	font-size: inherit;
}

.ehd-portal .ehd-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: 1.5rem;
}

.ehd-portal .ehd-article-layout.is-solo {
	grid-template-columns: minmax(0, 1fr);
}

.ehd-portal .ehd-article-main {
	display: grid;
	gap: 1.25rem;
	min-width: 0;
}

.ehd-portal .ehd-article-head {
	display: grid;
	justify-items: start;
	gap: 0.7rem;
}

.ehd-portal .ehd-article-page .ehd-title {
	margin: 0;
	font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.ehd-portal .ehd-article-cat {
	display: inline-flex;
	padding: 0.3rem 0.7rem;
	border-radius: var(--ehd-badge-radius);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.ehd-portal .ehd-article-cat:hover,
.ehd-portal .ehd-article-cat:focus {
	background: var(--ehd-teal-600);
	color: var(--ehd-on-accent);
	outline: none;
}

.ehd-portal .ehd-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-article-meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	color: var(--ehd-slate-700);
	font-size: 0.88rem;
	line-height: 1.4;
}

.ehd-portal .ehd-meta-icon {
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
	color: var(--ehd-slate-500);
}

.ehd-portal .ehd-article-panel {
	padding: 1.9rem 2.1rem;
}

.ehd-portal .ehd-article-panel .ehd-article-body {
	max-width: 72ch;
}

.ehd-portal .ehd-article-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.ehd-portal .ehd-article-cta .ehd-subtitle {
	margin: 0 0 0.25rem;
}

.ehd-portal .ehd-article-cta .ehd-copy {
	margin: 0;
	max-width: 52ch;
}

.ehd-portal .ehd-article-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.ehd-portal .ehd-article-aside {
	display: grid;
	align-content: start;
	align-self: start;
	gap: 1.25rem;
}

/* Only the contents panel sticks. Related articles and Need more help scroll away. */
.ehd-portal .ehd-toc {
	position: sticky;
	top: 1.5rem;
	align-self: start;
	z-index: 2;
	max-height: calc(100vh - 3rem);
	padding: 1.2rem 1.3rem;
	overflow: auto;
}

.ehd-portal .ehd-toc.is-pinned {
	z-index: 5;
	margin: 0;
}

.ehd-portal .ehd-toc-pin {
	pointer-events: none;
}

.ehd-portal .ehd-aside-title {
	display: block;
	margin: 0 0 0.85rem;
	color: var(--ehd-slate-950);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ehd-portal .ehd-related-list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-related-list li {
	margin: 0;
}

.ehd-portal .ehd-related-list li + li {
	border-top: 1px solid var(--ehd-slate-200);
}

.ehd-portal .ehd-related-link {
	display: grid;
	gap: 0.2rem;
	padding: 0.75rem 0;
	color: var(--ehd-slate-950);
	text-decoration: none;
}

.ehd-portal .ehd-related-list li:first-child .ehd-related-link {
	padding-top: 0;
}

.ehd-portal .ehd-related-list li:last-child .ehd-related-link {
	padding-bottom: 0;
}

.ehd-portal .ehd-related-link .ehd-related-title {
	color: inherit;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.35;
}

.ehd-portal .ehd-related-link .ehd-related-excerpt {
	color: var(--ehd-slate-700);
	font-size: 0.85rem;
	line-height: 1.5;
}

.ehd-portal .ehd-related-link:hover,
.ehd-portal .ehd-related-link:focus {
	color: var(--ehd-teal-700);
	outline: none;
}

.ehd-portal .ehd-related-link:hover .ehd-related-title,
.ehd-portal .ehd-related-link:focus .ehd-related-title {
	color: inherit;
}

.ehd-portal .ehd-aside-help .ehd-copy {
	margin: 0 0 1rem;
	font-size: 0.92rem;
}

.ehd-portal .ehd-btn-block {
	width: 100%;
}

/* ---------------------------------------------------------------------------
   Knowledge base article: picture, video, contents, share and the helpful vote

   The aside keeps to its own height (not stretched to match the article), and
   the contents panel sticks while the reader scrolls. On a narrow screen the
   aside becomes part of the one column and the contents fold into a disclosure.
   --------------------------------------------------------------------------- */

.ehd-portal .ehd-sec-icon,
.ehd-portal .ehd-share-icon {
	display: block;
	flex: 0 0 auto;
	fill: currentColor;
	stroke: none;
}

.ehd-portal .ehd-sec-icon {
	width: 1.05rem;
	height: 1.05rem;
	color: var(--ehd-teal-600);
	vertical-align: -0.15em;
}

.ehd-portal .ehd-aside-title,
.ehd-portal .ehd-sec-title,
.ehd-portal .ehd-article-cta .ehd-subtitle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ehd-portal .ehd-sec-title {
	margin: 0 0 0.7rem;
	color: var(--ehd-slate-950);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ehd-portal .ehd-article-figure {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius-lg);
	background: var(--ehd-slate-100);
	line-height: 0;
}

.ehd-portal .ehd-article-figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 7;
	object-fit: cover;
}

.ehd-portal .ehd-video {
	position: relative;
	margin: 0 0 1.4rem;
	overflow: hidden;
	border-radius: var(--ehd-radius);
	background: var(--ehd-slate-950);
	aspect-ratio: 16 / 9;
}

.ehd-portal .ehd-video iframe,
.ehd-portal .ehd-video video {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ehd-portal .ehd-video-link {
	margin: 0 0 1rem;
}

.ehd-portal .ehd-toc-summary {
	margin: 0;
	cursor: pointer;
	list-style: none;
}

.ehd-portal .ehd-toc-summary::-webkit-details-marker {
	display: none;
}

.ehd-portal .ehd-toc[open] .ehd-toc-summary {
	margin: 0 0 0.7rem;
}

.ehd-portal .ehd-toc-list {
	display: grid;
	gap: 0.1rem;
	margin: 0;
	padding: 0;
	max-height: min(60vh, 30rem);
	overflow: auto;
	list-style: none;
}

.ehd-portal .ehd-toc-item {
	margin: 0;
	padding: 0;
}

.ehd-portal .ehd-toc-item::marker {
	content: none;
}

.ehd-portal .ehd-toc-link {
	display: block;
	padding: 0.35rem 0.6rem;
	border-left: 2px solid var(--ehd-slate-200);
	color: var(--ehd-slate-700);
	font-size: 0.9rem;
	line-height: 1.35;
	text-decoration: none;
}

.ehd-portal .ehd-toc-item.is-level-3 .ehd-toc-link {
	padding-left: 1.4rem;
	font-size: 0.86rem;
}

.ehd-portal .ehd-toc-link:hover,
.ehd-portal .ehd-toc-link:focus {
	border-left-color: var(--ehd-teal-400);
	color: var(--ehd-teal-700);
	text-decoration: none;
	outline: none;
}

.ehd-portal .ehd-toc-link.is-on {
	border-left-color: var(--ehd-teal-600);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
	font-weight: 700;
}

/* An anchor jump should not tuck the heading under a fixed template bar. */
.ehd-portal .ehd-article-body h2,
.ehd-portal .ehd-article-body h3 {
	scroll-margin-top: 6rem;
}

/* The helpful vote and the share row share one strip under the article. */
.ehd-portal .ehd-article-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem 2rem;
}

.ehd-portal .ehd-helpful,
.ehd-portal .ehd-share {
	min-width: 0;
}

.ehd-portal .ehd-helpful-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ehd-portal .ehd-vote {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-btn-radius);
	background: var(--ehd-white);
	color: var(--ehd-slate-700);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ehd-portal .ehd-vote .ehd-sec-icon {
	width: 1rem;
	height: 1rem;
	color: inherit;
}

.ehd-portal .ehd-vote:hover:not(:disabled),
.ehd-portal .ehd-vote:focus-visible {
	border-color: var(--ehd-teal-600);
	color: var(--ehd-teal-700);
	outline: none;
}

.ehd-portal .ehd-vote:disabled {
	cursor: default;
	opacity: 0.75;
}

.ehd-portal .ehd-vote.is-mine {
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
	opacity: 1;
}

.ehd-portal .ehd-vote-count {
	padding-left: 0.35rem;
	border-left: 1px solid var(--ehd-slate-200);
	color: var(--ehd-slate-500);
	font-size: 0.82rem;
	font-weight: 700;
}

.ehd-portal .ehd-helpful-thanks {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0.7rem 0 0;
	color: var(--ehd-teal-700);
	font-size: 0.88rem;
	font-weight: 650;
}

.ehd-portal .ehd-helpful-feedback {
	margin-top: 0.85rem;
	display: grid;
	gap: 0.55rem;
}

.ehd-portal .ehd-helpful-feedback-label {
	margin: 0;
	color: var(--ehd-slate-700);
	font-size: 0.9rem;
	font-weight: 650;
}

.ehd-portal .ehd-helpful-feedback-note {
	width: 100%;
	min-height: 5.5rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-btn-radius);
	background: var(--ehd-white);
	color: var(--ehd-slate-800);
	font: inherit;
	font-size: 0.92rem;
	line-height: 1.45;
	resize: vertical;
}

.ehd-portal .ehd-helpful-feedback-note:focus {
	border-color: var(--ehd-teal-600);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ehd-teal-600) 18%, transparent);
}

.ehd-portal .ehd-helpful-feedback-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.ehd-portal .ehd-kb-head .ehd-copy p:last-child {
	margin-bottom: 0;
}

.ehd-portal .ehd-share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.ehd-portal .ehd-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-btn-radius);
	background: var(--ehd-white);
	color: var(--ehd-slate-700);
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ehd-portal .ehd-share-icon {
	width: 1.1rem;
	height: 1.1rem;
}

.ehd-portal .ehd-share-btn .ehd-sec-icon {
	width: 1.1rem;
	height: 1.1rem;
	color: inherit;
}

.ehd-portal .ehd-share-btn:hover,
.ehd-portal .ehd-share-btn:focus-visible {
	transform: translateY(-1px);
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
	text-decoration: none;
	outline: none;
}

.ehd-portal .ehd-share-btn.is-done {
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-600);
	color: var(--ehd-on-accent);
}

.ehd-portal .ehd-article-cta-copy {
	min-width: 0;
}

@media (max-width: 991px) {
	.ehd-portal .ehd-article-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	/* The aside gives up its box so the contents can sit above the article and
	   the rest keeps following it. */
	.ehd-portal .ehd-article-aside {
		display: contents;
		position: static;
		max-height: none;
		overflow: visible;
	}

	.ehd-portal .ehd-article-aside .ehd-toc {
		order: 1;
	}

	.ehd-portal .ehd-article-main {
		order: 2;
	}

	.ehd-portal .ehd-article-aside .ehd-related {
		order: 3;
	}

	.ehd-portal .ehd-article-aside .ehd-aside-help {
		order: 4;
	}

	.ehd-portal .ehd-toc {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.ehd-portal .ehd-article-panel {
		padding: 1.4rem 1.35rem;
	}

	.ehd-portal .ehd-article-figure img {
		aspect-ratio: 16 / 9;
	}
}

@media (min-width: 992px) {
	.ehd-portal .ehd-toc-summary {
		cursor: default;
	}
}

@media (max-width: 640px) {
	.ehd-portal .ehd-article-page .ehd-title {
		font-size: clamp(1.5rem, 6vw, 1.9rem);
	}

	.ehd-portal .ehd-article-panel {
		padding: 1.15rem 1.1rem;
	}

	.ehd-portal .ehd-article-foot {
		flex-direction: column;
		gap: 1.25rem;
	}

	.ehd-portal .ehd-article-cta {
		flex-direction: column;
		align-items: stretch;
	}

	.ehd-portal .ehd-article-cta-actions .ehd-btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.ehd-portal .ehd-vote {
		flex: 1 1 auto;
		justify-content: center;
	}
}

.ehd-portal .ehd-back {
	display: inline-block;
	margin: 0 0 1.5rem;
	color: var(--ehd-teal-700);
	font-weight: 700;
	text-decoration: none;
}

.ehd-portal .ehd-back:hover,
.ehd-portal .ehd-back:focus {
	color: var(--ehd-teal-600);
	text-decoration: underline;
	outline: none;
}

.ehd-portal .ehd-article-body {
	color: var(--ehd-slate-800);
	font-size: 1.08rem;
	line-height: 1.75;
}

.ehd-portal .ehd-article-body p,
.ehd-portal .ehd-article-body li,
.ehd-portal .ehd-article-body td {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.ehd-portal .ehd-article-body a {
	color: var(--ehd-teal-700);
	text-decoration: underline;
}

.ehd-portal .ehd-article-body a:hover,
.ehd-portal .ehd-article-body a:focus {
	color: var(--ehd-teal-600);
}

/* Body content comes from the editor as bare tags, so it needs explicit rules
   to stay consistent with the portal instead of inheriting template styles. */
.ehd-portal .ehd-article-body > *:first-child {
	margin-top: 0;
}

.ehd-portal .ehd-article-body > *:last-child {
	margin-bottom: 0;
}

.ehd-portal .ehd-article-body p {
	margin: 0 0 1.1rem;
}

.ehd-portal .ehd-article-body h2,
.ehd-portal .ehd-article-body h3,
.ehd-portal .ehd-article-body h4 {
	margin: 2rem 0 0.75rem;
	color: var(--ehd-slate-950);
	font-family: var(--ehd-font);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
}

.ehd-portal .ehd-article-body h2 {
	font-size: 1.45rem;
}

.ehd-portal .ehd-article-body h3 {
	font-size: 1.2rem;
}

.ehd-portal .ehd-article-body h4 {
	font-size: 1.05rem;
}

.ehd-portal .ehd-article-body ul,
.ehd-portal .ehd-article-body ol {
	margin: 0 0 1.1rem;
	padding-left: 1.35rem;
}

.ehd-portal .ehd-article-body li {
	margin: 0 0 0.4rem;
}

.ehd-portal .ehd-article-body img {
	max-width: 100%;
	height: auto;
	margin: 0.5rem 0;
	border-radius: var(--ehd-radius);
}

.ehd-portal .ehd-article-body blockquote {
	margin: 0 0 1.1rem;
	padding: 0.85rem 1.1rem;
	border-left: 3px solid var(--ehd-teal-600);
	border-radius: 0 var(--ehd-radius-sm) var(--ehd-radius-sm) 0;
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-800);
}

.ehd-portal .ehd-article-body code {
	padding: 0.15em 0.4em;
	border-radius: var(--ehd-radius-sm);
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-950);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.ehd-portal .ehd-article-body pre {
	margin: 0 0 1.1rem;
	padding: 1rem 1.1rem;
	overflow-x: auto;
	border-radius: var(--ehd-radius-sm);
	background: var(--ehd-slate-100);
}

.ehd-portal .ehd-article-body pre code {
	padding: 0;
	background: transparent;
}

.ehd-portal .ehd-article-body table {
	width: 100%;
	margin: 0 0 1.1rem;
	border-collapse: collapse;
}

.ehd-portal .ehd-article-body th,
.ehd-portal .ehd-article-body td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--ehd-slate-200);
	text-align: left;
}

.ehd-portal .ehd-article-body hr {
	margin: 1.75rem 0;
	border: 0;
	border-top: 1px solid var(--ehd-slate-200);
}

/* CAPTCHA (Easy Ajax Contact style) */
.ehd-portal .ehd-captcha {
	margin: 0 0 1.35rem;
}

.ehd-portal .ehd-captcha-label {
	display: block;
	margin: 0 0 0.55rem;
	color: var(--ehd-slate-800);
	font-size: 0.92rem;
	font-weight: 700;
}

.ehd-portal .ehd-required {
	color: #c62828;
	font-weight: 700;
}

.ehd-portal .ehd-captcha-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.7rem;
}

.ehd-portal .ehd-captcha-image {
	display: grid;
	place-items: center;
	width: 220px;
	min-height: 70px;
	overflow: hidden;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius);
	background: #f8fafc;
}

.ehd-portal .ehd-captcha-image img {
	display: block;
	width: 220px;
	height: 70px;
}

.ehd-portal .ehd-captcha-loading {
	padding: 0.5rem;
	color: var(--ehd-slate-500);
	font-size: 0.8125rem;
	text-align: center;
}

.ehd-portal .ehd-captcha-answer {
	max-width: 220px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ehd-portal .ehd-captcha-reload {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-control-radius);
	background: var(--ehd-surface, #fff);
	color: var(--ehd-slate-800);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 650;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease;
}

.ehd-portal .ehd-captcha-reload:hover,
.ehd-portal .ehd-captcha-reload:focus {
	border-color: var(--ehd-teal-600);
	background: #f8fafc;
	outline: none;
}

.ehd-portal .ehd-captcha-reload:disabled {
	opacity: 0.65;
	cursor: wait;
}

.ehd-portal .ehd-captcha-help {
	margin: 0.45rem 0 0;
	color: var(--ehd-slate-500);
	font-size: 0.85rem;
	line-height: 1.45;
}

.ehd-portal .ehd-captcha--turnstile .cf-turnstile {
	margin-top: 0.25rem;
}

/* Hide leftover Joomla pagination chrome if a template still prints it. */
.ehd-portal .pagination,
.ehd-portal nav[aria-label] .pagination {
	display: none !important;
}

@media (max-width: 980px) {
	.ehd-portal .ehd-kb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ehd-portal .ehd-guest-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.ehd-portal {
		/* Clear template floating preview / chat buttons on phones. */
		padding-bottom: 5.5rem;
	}

	.ehd-portal .ehd-hero,
	.ehd-portal .ehd-page-head,
	.ehd-portal .ehd-ticket-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.ehd-portal .ehd-page-head-actions {
		width: 100%;
		justify-content: stretch;
		/* Leave a clear lane for template floating preview buttons. */
		padding-bottom: 3.75rem;
	}


	.ehd-portal .ehd-page-head-actions .ehd-btn {
		flex: 1 1 calc(50% - 0.5rem);
		justify-content: center;
		text-align: center;
	}

	.ehd-portal .ehd-stat-grid,
	.ehd-portal .ehd-stat-grid--2,
	.ehd-portal .ehd-path-grid,
	.ehd-portal .ehd-how-list,
	.ehd-portal .ehd-kb-grid {
		grid-template-columns: 1fr;
	}

	.ehd-portal .ehd-hero {
		padding: 2rem;
	}

	.ehd-portal .ehd-ticket-row > div:last-child {
		text-align: left;
	}

	.ehd-portal .ehd-nav {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: start;
		border-radius: var(--ehd-radius);
	}

	.ehd-portal .ehd-nav-list {
		grid-column: 1 / -1;
		grid-row: 2;
		flex-direction: column;
	}

	.ehd-portal .ehd-notify {
		grid-column: 2;
		grid-row: 1;
		margin-left: 0;
		justify-self: end;
	}

	.ehd-portal .ehd-nav-link {
		display: block;
		width: 100%;
	}

	.ehd-portal .ehd-notify-panel {
		position: fixed;
		top: auto;
		right: 0.75rem;
		left: 0.75rem;
		width: auto;
		max-width: none;
	}

	.ehd-portal .ehd-captcha-image,
	.ehd-portal .ehd-captcha-image img {
		width: 100%;
		max-width: 220px;
	}

	.ehd-portal .ehd-kb-footer,
	.ehd-portal .ehd-list-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.ehd-portal .ehd-kb-footer .ehd-pagination,
	.ehd-portal .ehd-list-footer .ehd-pagination {
		margin: 0;
		justify-content: center;
	}

	.ehd-portal .ehd-kb-limit {
		justify-content: flex-start;
	}

	.ehd-portal .ehd-kb-figure {
		flex: 1 1 auto;
		width: 100%;
	}

	.ehd-portal .ehd-kb-toolbar {
		padding: 1rem;
	}

	.ehd-portal .ehd-kb-card-body {
		padding: 1.1rem 1.15rem;
	}
}

@media (max-width: 420px) {
	.ehd-portal .ehd-kb-search-field {
		flex-basis: 100%;
	}

	.ehd-portal .ehd-page-link {
		min-width: 2.1rem;
		padding: 0 0.4rem;
	}
}

.ehd-portal .ehd-priority-high,
.ehd-portal .ehd-priority-urgent {
	color: #a13a1c;
}

/* ---------------------------------------------------------------------------
   Staff console: the queue

   Saved views as tabs, one search row, then a single panel of striped rows at
   the density the agent picked. Anything a site template habitually reaches for
   (input padding, list bullets, link colour, checkbox size) is pinned here, so
   the desk looks the same on every template.
   --------------------------------------------------------------------------- */

.ehd-portal .ehd-icon {
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: middle;
}

.ehd-portal [hidden] {
	display: none !important;
}

/* Saved views */
/* Every queue stays in sight and wraps onto a second row, rather than hiding
   the later ones behind a sideways scroll. */
.ehd-portal .ehd-queue-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin: 0 0 0.9rem;
	padding: 0;
}

.ehd-portal .ehd-queue-tab {
	display: inline-flex;
	gap: 0.45rem;
	align-items: center;
	flex: 0 0 auto;
	margin: 0;
	padding: 0.5rem 0.85rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--ehd-slate-700) !important;
	font-family: var(--ehd-font);
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ehd-portal .ehd-queue-tab:hover,
.ehd-portal .ehd-queue-tab:focus-visible {
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-950) !important;
}

.ehd-portal .ehd-queue-tab.is-on {
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700) !important;
}

.ehd-portal .ehd-queue-tab-icon {
	opacity: 0.7;
}

.ehd-portal .ehd-queue-tab-count {
	padding: 0.05rem 0.4rem;
	border-radius: 999px;
	background: var(--ehd-slate-200);
	color: var(--ehd-slate-700);
	font-size: 0.74rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.ehd-portal .ehd-queue-tab.is-on .ehd-queue-tab-count {
	background: var(--ehd-teal-600);
	color: var(--ehd-on-accent);
}

/* Search and the rest of the filters */
.ehd-portal .ehd-queue-search-form {
	margin: 0 0 1rem;
}

.ehd-portal .ehd-queue-search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.ehd-portal .ehd-queue-search-field {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex: 1 1 260px;
	min-width: 0;
	min-height: 44px;
	padding: 0 0.85rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-search-radius);
	background: var(--ehd-white);
}

.ehd-portal .ehd-queue-search-field:focus-within {
	border-color: var(--ehd-teal-600);
	outline: 2px solid var(--ehd-teal-100);
}

.ehd-portal .ehd-queue-search-icon {
	color: var(--ehd-slate-500);
}

/* The field carries the border, so the input itself is stripped back. Templates
   set input padding and height with !important, which is why this does too. */
.ehd-portal .ehd-queue-search-field input {
	flex: 1 1 auto;
	width: 100% !important;
	min-width: 0;
	height: 42px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--ehd-slate-950);
	font-family: var(--ehd-font);
	font-size: 0.95rem;
	outline: none !important;
}

.ehd-portal .ehd-queue-more {
	position: relative;
	flex: 0 0 auto;
}

.ehd-portal .ehd-queue-more-toggle {
	display: inline-flex;
	gap: 0.45rem;
	align-items: center;
	min-height: 44px;
	padding: 0 0.9rem;
	border: 1px solid var(--ehd-slate-300);
	border-radius: var(--ehd-btn-radius);
	background: var(--ehd-white);
	color: var(--ehd-slate-800);
	font-family: var(--ehd-font);
	font-size: 0.92rem;
	font-weight: 650;
	list-style: none;
	cursor: pointer;
}

.ehd-portal .ehd-queue-more-toggle::-webkit-details-marker,
.ehd-portal .ehd-selbar-more > summary::-webkit-details-marker {
	display: none;
}

.ehd-portal .ehd-queue-more[open] .ehd-queue-more-toggle {
	border-color: var(--ehd-teal-600);
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
}

.ehd-portal .ehd-queue-more-count {
	padding: 0.05rem 0.4rem;
	border-radius: 999px;
	background: var(--ehd-teal-600);
	color: var(--ehd-on-accent);
	font-size: 0.74rem;
	font-weight: 700;
}

.ehd-portal .ehd-queue-more-fields {
	position: absolute;
	right: 0;
	top: calc(100% + 0.45rem);
	z-index: 30;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0.85rem;
	width: min(32rem, 86vw);
	padding: 1rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius-lg);
	background: var(--ehd-white);
	box-shadow: 0 16px 40px rgba(20, 24, 28, 0.16);
}

.ehd-portal .ehd-queue-more-actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	grid-column: 1 / -1;
}

.ehd-portal .ehd-queue-more-actions .ehd-btn {
	margin-top: 0;
}

/* Fields in the popovers sit outside a panel, so they carry their own look. */
.ehd-portal .ehd-queue-field {
	min-width: 0;
}

.ehd-portal .ehd-queue-field select {
	display: block;
	width: 100% !important;
	min-height: 2.6rem;
	height: auto !important;
	margin: 0 !important;
	padding: 0.55rem 2.3rem 0.55rem 0.7rem !important;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--ehd-slate-300) !important;
	border-radius: var(--ehd-input-radius) !important;
	background-color: var(--ehd-white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23405262' d='M4.2 6.2a.75.75 0 0 1 1.06 0L8 8.94l2.74-2.74a.75.75 0 1 1 1.06 1.06l-3.27 3.27a.75.75 0 0 1-1.06 0L4.2 7.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.7rem center;
	background-size: 1rem 1rem;
	box-shadow: none !important;
	color: var(--ehd-slate-950);
	font-family: var(--ehd-font);
	font-size: 0.92rem;
}

.ehd-portal .ehd-queue-field select:focus {
	border-color: var(--ehd-teal-600) !important;
	outline: 2px solid var(--ehd-teal-100);
}

/* The list */
.ehd-portal .ehd-queue-panel {
	overflow: hidden;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius-lg);
	background: var(--ehd-white);
}

.ehd-portal .ehd-queue-bar {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	padding: 0.55rem 0.9rem;
	border-bottom: 1px solid var(--ehd-slate-200);
	background: var(--ehd-slate-100);
}

.ehd-portal .ehd-queue-bar-count {
	margin-right: auto;
	color: var(--ehd-slate-500);
	font-family: var(--ehd-font);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Checkboxes: a template stretching every input turns one into an empty box, so
   the native control is put back and given a fixed size. */
.ehd-portal .ehd-check {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer;
}

.ehd-portal .ehd-check input[type="checkbox"] {
	all: revert !important;
	width: 1.05rem !important;
	min-width: 0 !important;
	height: 1.05rem !important;
	min-height: 0 !important;
	margin: 0 !important;
	/* Every property here has to shout, because `all` above shouts too. */
	accent-color: var(--ehd-teal-600) !important;
	cursor: pointer !important;
}

.ehd-portal .ehd-density {
	display: inline-flex;
	gap: 2px;
	flex: 0 0 auto;
	padding: 2px;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius-sm);
	background: var(--ehd-white);
}

.ehd-portal .ehd-density-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--ehd-slate-500);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ehd-portal .ehd-density-btn:hover {
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-800);
}

.ehd-portal .ehd-density-btn[aria-pressed="true"] {
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
}

.ehd-portal .ehd-queue {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ehd-portal .ehd-queue-row {
	display: flex;
	gap: 0.85rem;
	align-items: center;
	margin: 0 !important;
	padding: 0.75rem 0.9rem;
	border-left: 3px solid transparent;
	list-style: none !important;
	transition: background-color 0.15s ease;
}

.ehd-portal .ehd-queue-row:nth-child(odd) {
	background: #f8fafa;
}

/* A tint light enough that the chips on the row still read as chips. */
.ehd-portal .ehd-queue-row:hover {
	background: #f1f8f7;
}

.ehd-portal .ehd-queue-row.is-picked {
	border-left-color: var(--ehd-teal-600);
	background: #eaf5f3;
}

.ehd-portal .ehd-queue-open,
.ehd-portal .ehd-queue-pending {
	border-left-color: var(--ehd-teal-400);
}

.ehd-portal .ehd-queue-waiting,
.ehd-portal .ehd-queue-onhold {
	border-left-color: #e0a53c;
}

.ehd-portal .ehd-queue-link {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit !important;
	text-decoration: none !important;
}

.ehd-portal .ehd-queue-line {
	display: flex;
	gap: 0.5rem;
	align-items: baseline;
	min-width: 0;
}

.ehd-portal .ehd-queue-subject {
	overflow: hidden;
	color: var(--ehd-slate-950);
	font-family: var(--ehd-font);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ehd-portal .ehd-queue-link:hover .ehd-queue-subject {
	color: var(--ehd-teal-700);
}

.ehd-portal .ehd-queue-number {
	flex: 0 0 auto;
	color: var(--ehd-slate-500);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.72rem;
	letter-spacing: 0.02em;
}

.ehd-portal .ehd-queue-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.1rem 0.9rem;
	color: var(--ehd-slate-500);
	font-family: var(--ehd-font);
	font-size: 0.82rem;
}

.ehd-portal .ehd-queue-fact {
	display: inline-flex;
	gap: 0.3rem;
	align-items: center;
	min-width: 0;
	max-width: 16rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ehd-portal .ehd-queue-fact .ehd-icon {
	width: 0.85rem;
	height: 0.85rem;
	opacity: 0.65;
}

.ehd-portal .ehd-queue-side {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	flex: 0 0 auto;
}

.ehd-portal .ehd-queue-tags {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	justify-content: flex-end;
	min-width: 9.5rem;
}

.ehd-portal .ehd-tag {
	display: inline-flex;
	gap: 0.3rem;
	align-items: center;
	margin: 0;
	padding: 0.2rem 0.55rem;
	border: 1px solid rgba(20, 24, 28, 0.06);
	border-radius: 999px;
	background: var(--ehd-slate-200);
	color: var(--ehd-slate-700);
	font-family: var(--ehd-font);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
}

.ehd-portal .ehd-tag .ehd-icon {
	width: 0.8rem;
	height: 0.8rem;
}

.ehd-portal .ehd-tag-open,
.ehd-portal .ehd-tag-pending {
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
}

.ehd-portal .ehd-tag-waiting,
.ehd-portal .ehd-tag-onhold {
	background: #fdf1d6;
	color: #7d5800;
}

.ehd-portal .ehd-tag-loud {
	background: #fbe4dc;
	color: #93331a;
}

.ehd-portal .ehd-queue-owner {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	min-width: 0;
	color: var(--ehd-slate-700);
	font-family: var(--ehd-font);
	font-size: 0.84rem;
	font-weight: 600;
}

.ehd-portal .ehd-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--ehd-teal-600);
	color: var(--ehd-on-accent);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
}

.ehd-portal .ehd-queue-owner.is-free {
	color: var(--ehd-slate-500);
}

.ehd-portal .ehd-queue-owner.is-free .ehd-avatar {
	border: 1px dashed var(--ehd-slate-300);
	background: transparent;
	color: var(--ehd-slate-500);
}

.ehd-portal .ehd-tag-status {
	min-width: 5.4rem;
	justify-content: center;
}

.ehd-portal .ehd-queue-owner-name {
	width: 8rem;
	max-width: 8rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Compact rows: one line per ticket, for a queue you already know */
.ehd-portal .ehd-queue.is-compact .ehd-queue-row {
	padding: 0.35rem 0.9rem;
}

.ehd-portal .ehd-queue.is-compact .ehd-queue-link {
	flex-direction: row;
	gap: 0.85rem;
	align-items: center;
}

.ehd-portal .ehd-queue.is-compact .ehd-queue-line {
	flex: 1 1 auto;
}

.ehd-portal .ehd-queue.is-compact .ehd-queue-subject {
	font-size: 0.94rem;
}

.ehd-portal .ehd-queue.is-compact .ehd-queue-meta {
	flex: 0 0 auto;
	flex-wrap: nowrap;
	font-size: 0.78rem;
}

.ehd-portal .ehd-queue.is-compact .ehd-queue-fact-dept {
	display: none;
}

.ehd-portal .ehd-queue.is-compact .ehd-avatar {
	width: 1.35rem;
	height: 1.35rem;
	font-size: 0.66rem;
}

/* Acting on a selection */
.ehd-portal .ehd-selbar {
	position: sticky;
	bottom: 1rem;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 0.85rem 0 0;
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--ehd-slate-800);
	border-radius: var(--ehd-radius-lg);
	background: var(--ehd-slate-950);
	box-shadow: 0 14px 34px rgba(20, 24, 28, 0.24);
	color: var(--ehd-white);
}

.ehd-portal .ehd-selbar-count {
	margin-right: auto;
	color: var(--ehd-white);
	font-family: var(--ehd-font);
	font-size: 0.9rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.ehd-portal .ehd-selbar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.ehd-portal .ehd-selbar .ehd-btn {
	margin-top: 0;
}

.ehd-portal .ehd-selbar .ehd-btn-ghost {
	border-color: rgba(255, 255, 255, 0.32);
	background: transparent;
	color: var(--ehd-white);
}

.ehd-portal .ehd-selbar .ehd-btn-ghost:hover,
.ehd-portal .ehd-selbar .ehd-btn-ghost:focus-visible {
	border-color: var(--ehd-white);
	background: rgba(255, 255, 255, 0.12);
	color: var(--ehd-white);
}

.ehd-portal .ehd-btn-quiet {
	border-color: transparent;
	background: transparent;
	color: var(--ehd-slate-700);
}

.ehd-portal .ehd-selbar .ehd-btn-quiet {
	color: rgba(255, 255, 255, 0.72);
}

.ehd-portal .ehd-selbar .ehd-btn-quiet:hover,
.ehd-portal .ehd-selbar .ehd-btn-quiet:focus-visible {
	border-color: transparent;
	background: rgba(255, 255, 255, 0.12);
	color: var(--ehd-white);
}

.ehd-portal .ehd-selbar-more {
	position: relative;
}

.ehd-portal .ehd-selbar-more > summary {
	list-style: none;
}

.ehd-portal .ehd-selbar-fields {
	position: absolute;
	right: 0;
	bottom: calc(100% + 0.5rem);
	z-index: 30;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
	gap: 0.75rem;
	width: min(32rem, 86vw);
	padding: 1rem;
	border: 1px solid var(--ehd-slate-200);
	border-radius: var(--ehd-radius-lg);
	background: var(--ehd-white);
	box-shadow: 0 16px 40px rgba(20, 24, 28, 0.2);
	color: var(--ehd-slate-950);
}

.ehd-portal .ehd-selbar-apply {
	grid-column: 1 / -1;
	justify-self: start;
}

@media (prefers-reduced-motion: reduce) {
	.ehd-portal .ehd-queue-row,
	.ehd-portal .ehd-queue-tab,
	.ehd-portal .ehd-density-btn {
		transition: none;
	}
}

@media (max-width: 782px) {
	/* A grid keeps the tick box beside the subject and lets the tags drop under
	   both, which a wrapping flex row cannot do. */
	.ehd-portal .ehd-queue-row,
	.ehd-portal .ehd-queue.is-compact .ehd-queue-row {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.5rem 0.75rem;
		align-items: start;
		padding: 0.7rem 0.75rem;
	}

	.ehd-portal .ehd-queue.has-picks .ehd-queue-row {
		grid-template-columns: auto 1fr;
	}

	.ehd-portal .ehd-queue-row > .ehd-check {
		margin-top: 0.15rem !important;
	}

	.ehd-portal .ehd-queue.is-compact .ehd-queue-link {
		flex-direction: column;
		gap: 0.2rem;
		align-items: flex-start;
	}

	.ehd-portal .ehd-queue-side {
		grid-column: 1 / -1;
		width: 100%;
		flex-wrap: wrap;
		gap: 0.4rem 0.6rem;
	}

	.ehd-portal .ehd-queue.has-picks .ehd-queue-side {
		grid-column: 2;
	}

	.ehd-portal .ehd-queue.is-compact .ehd-queue-fact-dept {
		display: inline-flex;
	}

	.ehd-portal .ehd-queue-tags {
		min-width: 0;
	}

	.ehd-portal .ehd-queue-owner-name {
		width: auto;
		max-width: 12rem;
	}

	.ehd-portal .ehd-selbar {
		bottom: 0.5rem;
	}

	.ehd-portal .ehd-selbar-count {
		width: 100%;
		margin: 0;
	}

	.ehd-portal .ehd-selbar-fields,
	.ehd-portal .ehd-queue-more-fields {
		right: auto;
		left: 0;
	}
}

/* Staff console: single ticket */
/* Staff ticket head: the subject gets the full width, and the state badges sit
   on their own line against the right edge. */
.ehd-portal .ehd-page-head.ehd-staff-head {
	display: block;
	margin-bottom: 1.5rem;
}

.ehd-portal .ehd-staff-head-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 0.85rem;
}

.ehd-portal .ehd-staff-head .ehd-back {
	display: inline-flex;
	gap: 0.35rem;
	align-items: center;
	margin: 0;
}

.ehd-portal .ehd-back-icon {
	flex: 0 0 auto;
}

.ehd-portal .ehd-staff-head-ids {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0 0 0.35rem;
}

.ehd-portal .ehd-badge-dept {
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-700);
}

.ehd-portal .ehd-staff-head .ehd-title {
	width: 100%;
	margin: 0;
}

.ehd-portal .ehd-page-head .ehd-staff-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.85rem;
}

/* Sidebar accordions */
.ehd-portal .ehd-accordion {
	padding: 0;
}

.ehd-portal .ehd-accordion-head {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	padding: 1.1rem 1.5rem;
	border-radius: var(--ehd-radius);
	cursor: pointer;
	list-style: none;
}

.ehd-portal .ehd-accordion-head::-webkit-details-marker {
	display: none;
}

.ehd-portal .ehd-accordion-head:hover {
	background: var(--ehd-slate-100);
}

.ehd-portal .ehd-accordion-head:focus-visible {
	outline: 2px solid var(--ehd-teal-600);
	outline-offset: -2px;
}

.ehd-portal .ehd-accordion-head .ehd-subtitle {
	margin: 0;
	font-size: 1.05rem;
}

.ehd-portal .ehd-accordion-chevron {
	flex: 0 0 auto;
	color: var(--ehd-slate-500);
	transition: transform 0.15s ease;
}

.ehd-portal .ehd-accordion[open] > .ehd-accordion-head {
	border-bottom: 1px solid var(--ehd-slate-200);
	border-end-start-radius: 0;
	border-end-end-radius: 0;
}

.ehd-portal .ehd-accordion[open] > .ehd-accordion-head .ehd-accordion-chevron {
	transform: rotate(180deg);
}

.ehd-portal .ehd-accordion-body {
	padding: 1.25rem 1.5rem 1.5rem;
}

.ehd-portal .ehd-accordion-body > :last-child {
	margin-bottom: 0;
}

/* Panels stack bare labels, fields and a button as siblings, so the rhythm
   between them is set here rather than on every panel. */
.ehd-portal .ehd-accordion-body > .ehd-field-label,
.ehd-portal .ehd-ticket-extras form > .ehd-field-label {
	margin-top: 1rem;
}

.ehd-portal .ehd-accordion-body > .ehd-field-label:first-child,
.ehd-portal .ehd-ticket-extras form > .ehd-field-label:first-child {
	margin-top: 0;
}

.ehd-portal .ehd-accordion-body > input,
.ehd-portal .ehd-accordion-body > select,
.ehd-portal .ehd-accordion-body > textarea {
	margin-bottom: 0;
}

.ehd-portal .ehd-accordion-body > .ehd-btn,
.ehd-portal .ehd-ticket-extras form > .ehd-btn {
	margin-top: 1rem;
}

/* A sidebar action is the only thing on its line, so it takes the whole column
   and stays big enough to hit comfortably. */
.ehd-portal .ehd-staff-side .ehd-accordion-body > .ehd-btn,
.ehd-portal .ehd-staff-side .ehd-staff-merge > .ehd-btn,
.ehd-portal .ehd-staff-side .ehd-staff-spam > .ehd-btn {
	width: 100%;
	padding: 0.6rem 1rem;
	font-size: 0.92rem;
}

/* A square target reads as a control rather than a clipped label. */
.ehd-portal .ehd-btn-small.ehd-btn-icon-only {
	width: 2.15rem;
	min-width: 2.15rem;
	height: 2.15rem;
	padding: 0;
}

.ehd-portal .ehd-btn-small.ehd-btn-icon-only .ehd-btn-icon {
	width: 1rem;
	height: 1rem;
	margin: 0;
}

/* The two closing cards on a customer ticket each hold one short form, so they
   share a row instead of stretching across the page one below the other. */
.ehd-portal .ehd-ticket-extras {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: start;
	margin-top: 1.25rem;
}

/* On its own a card would stretch the full width again for the sake of one
   short field, so it keeps to a readable measure. */
.ehd-portal .ehd-ticket-extras > .ehd-panel:only-child {
	max-width: 34rem;
}

@media (max-width: 780px) {
	.ehd-portal .ehd-ticket-extras {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ehd-portal .ehd-ticket-extras > .ehd-panel {
	margin: 0;
}

.ehd-portal .ehd-ticket-extras .ehd-subtitle {
	margin-bottom: 0.35rem;
}

.ehd-portal .ehd-ticket-extras > .ehd-panel > .ehd-copy {
	margin-bottom: 1.1rem;
	max-width: 46ch;
}

/* A sidebar is too narrow for the roomy two column fact grid. */
.ehd-portal .ehd-staff-side .ehd-ticket-facts-list {
	grid-template-columns: minmax(0, 1fr);
	gap: 0.7rem;
	margin: 0;
}

.ehd-portal .ehd-staff-side .ehd-ticket-facts-list dt {
	margin: 0;
	font-size: 0.7rem;
	line-height: 1.3;
}

.ehd-portal .ehd-staff-side .ehd-ticket-facts-list dd {
	font-size: 0.92rem;
	line-height: 1.4;
}

/* The heading already sits in the summary above, so the lone action button
   tucks up against it instead of claiming a full row. */
.ehd-portal .ehd-accordion-body > .ehd-panel-head:first-child {
	margin: -0.4rem 0 0.6rem;
}

.ehd-portal .ehd-minihead {
	margin: 0 0 0.5rem;
	color: var(--ehd-slate-950);
	font-size: 0.95rem;
	font-weight: 700;
}

.ehd-portal .ehd-staff-merge .ehd-copy {
	margin: 0 0 1rem;
}

.ehd-portal .ehd-staff-advanced .ehd-staff-merge + .ehd-staff-spam {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ehd-slate-200);
}

@media (prefers-reduced-motion: reduce) {
	.ehd-portal .ehd-accordion-chevron {
		transition: none;
	}
}

.ehd-portal .ehd-staff-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
	gap: 1.5rem;
	align-items: start;
}

.ehd-portal .ehd-staff-main > .ehd-timeline {
	margin-top: 0;
}

.ehd-portal .ehd-staff-side {
	display: grid;
	gap: 1.25rem;
}

.ehd-portal .ehd-staff-field {
	margin: 0 0 1rem;
}

.ehd-portal .ehd-staff-field:last-child {
	margin-bottom: 0;
}

.ehd-portal .ehd-staff-switches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 1rem 0 0;
}

.ehd-portal .ehd-staff-switch {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin: 0;
	color: var(--ehd-slate-700);
	font-size: 0.92rem;
	font-weight: 600;
}

/* Panel inputs are block level and full width, which a tick box must not be. */
.ehd-portal .ehd-staff-switch input[type="checkbox"] {
	display: inline-block;
	width: 1rem;
	min-width: 1rem;
	height: 1rem;
	margin: 0;
	padding: 0;
	accent-color: var(--ehd-teal-600);
	appearance: auto;
	-webkit-appearance: checkbox;
}

/* Staff console: reply head, canned replies and the editor */
.ehd-portal .ehd-reply-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 0.9rem;
}

.ehd-portal .ehd-reply-head .ehd-subtitle {
	margin: 0;
}

.ehd-portal .ehd-canned {
	min-width: 14rem;
}

.ehd-portal .ehd-canned select {
	margin: 0;
}

/* The editor brings its own frame, so the panel does not add a second one. */
.ehd-portal .ehd-reply-editor .editor,
.ehd-portal .ehd-reply-editor .js-editor-none {
	width: 100%;
}

.ehd-portal .ehd-reply-editor .toggle-editor {
	margin: 0.5rem 0 0;
}

.ehd-portal .ehd-reply-editor .tox-tinymce {
	border-radius: var(--ehd-radius);
}

/* Splitting a message off is a rare move, so the control stays quiet until the
   message is hovered or the button itself is focused. */
.ehd-portal .ehd-message-split {
	margin: 0;
	padding: 0.15rem 0.5rem;
	border: 1px solid var(--ehd-slate-300);
	border-radius: var(--ehd-badge-radius);
	background: transparent;
	color: var(--ehd-slate-600);
	font-family: var(--ehd-font);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ehd-portal .ehd-message:hover .ehd-message-split,
.ehd-portal .ehd-message-split:focus-visible {
	opacity: 1;
}

.ehd-portal .ehd-message-split:hover,
.ehd-portal .ehd-message-split:focus-visible {
	border-color: var(--ehd-teal-600);
	color: var(--ehd-teal-700);
}

/* Panel heads carry a title and one small action, like the requester editor. */
.ehd-portal .ehd-panel-head {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 0.75rem;
}

.ehd-portal .ehd-panel-head .ehd-subtitle {
	margin: 0;
}

/* Inside an accordion the heading already sits in the summary, so the lone
   action button lines up on the right. */
.ehd-portal .ehd-accordion-body > .ehd-panel-head {
	justify-content: flex-end;
}

.ehd-portal .ehd-requester-note {
	margin: 0 0 0.75rem;
	color: var(--ehd-teal-700);
	font-size: 0.85rem;
}

.ehd-portal .ehd-requester-note.is-error {
	color: #b42318;
}

.ehd-portal .ehd-requester-actions {
	display: flex;
	gap: 0.5rem;
	margin: 0.85rem 0 0;
}

.ehd-portal .ehd-requester-email {
	overflow-wrap: anywhere;
}

/* Staff console: earlier tickets from the same requester */
.ehd-portal .ehd-history {
	display: grid;
	gap: 0.85rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-history-item {
	display: grid;
	gap: 0.2rem;
	margin: 0;
	padding: 0 0 0.85rem;
	border-bottom: 1px solid var(--ehd-slate-200);
}

.ehd-portal .ehd-history-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ehd-portal .ehd-history-link {
	color: var(--ehd-slate-950);
	font-weight: 700;
	text-decoration: none;
}

.ehd-portal .ehd-history-link:hover,
.ehd-portal .ehd-history-link:focus {
	color: var(--ehd-teal-700);
	text-decoration: underline;
}

.ehd-portal .ehd-history-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
	color: var(--ehd-slate-500);
	font-size: 0.8rem;
}

.ehd-portal .ehd-staff-hint {
	margin: 0.75rem 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ehd-slate-500);
	font-family: var(--ehd-font);
	font-size: 0.85rem;
}

/* A private note is desk only, so it is tinted warm and never reads as an
   answer the customer has already seen. */
.ehd-portal .ehd-message-note {
	border-left: 4px solid #d99a2b;
	background: #fdf6e6;
}

.ehd-portal .ehd-message-note .ehd-message-role {
	background: #d99a2b;
	color: var(--ehd-white);
}

/* The activity log reads as a trail, so entries hang off a single rail. */
.ehd-portal .ehd-activity {
	position: relative;
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0 0 0 1.1rem;
	list-style: none;
}

.ehd-portal .ehd-activity::before {
	position: absolute;
	top: 0.4rem;
	bottom: 0.4rem;
	left: 0.24rem;
	width: 2px;
	border-radius: 1px;
	background: var(--ehd-slate-200);
	content: "";
}

.ehd-portal .ehd-activity-item {
	position: relative;
	display: grid;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	border: 0;
}

.ehd-portal .ehd-activity-item::before {
	position: absolute;
	top: 0.4rem;
	left: -1.1rem;
	width: 0.6rem;
	height: 0.6rem;
	border: 2px solid var(--ehd-white);
	border-radius: 50%;
	background: var(--ehd-slate-300);
	content: "";
}

.ehd-portal .ehd-activity-item:first-child::before {
	background: var(--ehd-teal-600);
}

.ehd-portal .ehd-activity-text {
	color: var(--ehd-slate-800);
	font-family: var(--ehd-font);
	font-size: 0.92rem;
}

.ehd-portal .ehd-activity-meta {
	color: var(--ehd-slate-500);
	font-family: var(--ehd-font);
	font-size: 0.8rem;
}

@media (max-width: 900px) {
	.ehd-portal .ehd-staff-columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.ehd-portal .ehd-staff-side {
		order: -1;
	}

	.ehd-portal .ehd-canned {
		min-width: 0;
		width: 100%;
	}

	.ehd-portal .ehd-reply-head {
		align-items: stretch;
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	.ehd-portal .ehd-staff-row .ehd-staff-meta {
		align-items: flex-start;
		text-align: left;
	}

	.ehd-portal .ehd-staff-count {
		margin-left: 0;
	}

	.ehd-portal .ehd-page-head-actions .ehd-btn {
		flex: 1 1 100%;
	}

	.ehd-portal .ehd-queue-search-row > .ehd-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Theme: Classic */
.ehd-portal.ehd-theme-classic {
	--ehd-slate-950: #17212b;
	--ehd-slate-800: #24313c;
	--ehd-slate-700: #405262;
	--ehd-slate-500: #6b7f8f;
	--ehd-slate-300: #b9c6cc;
	--ehd-slate-200: #dce4e8;
	--ehd-slate-100: #eef3f5;
	--ehd-teal-700: #0b6b68;
	--ehd-teal-600: #0d7f7b;
	--ehd-teal-400: #4dc6bf;
	--ehd-teal-100: #d7f0ee;
	--ehd-hero-copy: #d8e5e8;
	--ehd-radius: 14px;
	--ehd-radius-lg: 20px;
	--ehd-radius-sm: 999px;
	--ehd-shadow: 0 12px 35px rgba(23, 33, 43, 0.08);
	--ehd-nav-radius: 999px;
	--ehd-chip-radius: 999px;
	--ehd-btn-radius: 999px;
	--ehd-input-radius: 12px;
	--ehd-search-radius: 999px;
	--ehd-control-radius: 999px;
	--ehd-badge-radius: 999px;
	--ehd-hero-bg: linear-gradient(135deg, #17212b, #264351);
}

.ehd-portal.ehd-theme-classic .ehd-panel textarea,
.ehd-portal.ehd-theme-classic .ehd-panel textarea:not([hidden]),
.ehd-portal.ehd-theme-classic .ehd-reply textarea {
	border-radius: var(--ehd-radius);
}

.ehd-portal.ehd-theme-classic .ehd-kb-card:hover,
.ehd-portal.ehd-theme-classic .ehd-kb-card:focus {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(23, 33, 43, 0.1);
}

/* Theme: Soft */
.ehd-portal.ehd-theme-soft {
	--ehd-slate-950: #243038;
	--ehd-slate-800: #3a4750;
	--ehd-slate-700: #5b6a74;
	--ehd-slate-500: #80919b;
	--ehd-slate-300: #c9d5db;
	--ehd-slate-200: #e6eef1;
	--ehd-slate-100: #f7fafb;
	--ehd-teal-700: #3d6f7a;
	--ehd-teal-600: #4f8894;
	--ehd-teal-400: #7eb4be;
	--ehd-teal-100: #e7f4f6;
	--ehd-hero-copy: #e4eef1;
	--ehd-radius: 18px;
	--ehd-radius-lg: 28px;
	--ehd-radius-sm: 999px;
	--ehd-shadow: 0 10px 28px rgba(61, 111, 122, 0.08);
	--ehd-nav-radius: 999px;
	--ehd-chip-radius: 999px;
	--ehd-btn-radius: 999px;
	--ehd-input-radius: 14px;
	--ehd-search-radius: 999px;
	--ehd-control-radius: 999px;
	--ehd-badge-radius: 999px;
	--ehd-hero-bg: linear-gradient(145deg, #3d6f7a 0%, #5d8f9a 55%, #7eb4be 100%);
}

/* Theme: Ink */
.ehd-portal.ehd-theme-ink {
	--ehd-slate-950: #0d0f12;
	--ehd-slate-800: #1c2128;
	--ehd-slate-700: #3a424c;
	--ehd-slate-500: #6a7380;
	--ehd-slate-300: #b7bec8;
	--ehd-slate-200: #d9dee5;
	--ehd-slate-100: #f1f3f6;
	--ehd-teal-700: #0d0f12;
	--ehd-teal-600: #1c2128;
	--ehd-teal-400: #5c6570;
	--ehd-teal-100: #e8eaee;
	--ehd-hero-copy: #d7dbe2;
	--ehd-radius: 4px;
	--ehd-radius-lg: 6px;
	--ehd-radius-sm: 3px;
	--ehd-shadow: none;
	--ehd-nav-radius: 4px;
	--ehd-chip-radius: 4px;
	--ehd-btn-radius: 4px;
	--ehd-input-radius: 4px;
	--ehd-search-radius: 4px;
	--ehd-control-radius: 4px;
	--ehd-badge-radius: 4px;
	--ehd-hero-bg: linear-gradient(160deg, #0d0f12 0%, #232833 100%);
}

/* ---------------------------------------------------------------------------
   Armour

   Site template stylesheets load after this file, and their form control rules
   tie with ours on specificity: select:not(.form-select):not(.form-control)
   weighs the same as .ehd-portal .ehd-panel select, so on a tie the sheet that
   loads last wins and the desk lost its select arrow, its field padding and its
   tick box size. Naming the portal class twice outranks those rules whatever
   order the sheets arrive in.

   Only shape is pinned here. Colour and corner radius still read the theme
   variables, so a theme can still be a theme.
   --------------------------------------------------------------------------- */

.ehd-portal.ehd-portal .ehd-panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="search"]),
.ehd-portal.ehd-portal .ehd-panel textarea,
.ehd-portal.ehd-portal .ehd-reply textarea {
	width: 100% !important;
	padding: 0.75rem 0.9rem 0.75rem var(--ehd-input-pad-left, 0.9rem) !important;
	border: 1px solid var(--ehd-slate-300) !important;
	background-color: var(--ehd-white) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--ehd-slate-950) !important;
	font-family: var(--ehd-font) !important;
	font-size: 1rem !important;
	line-height: 1.45 !important;
}

.ehd-portal.ehd-portal .ehd-panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="search"]) {
	border-radius: var(--ehd-input-radius) !important;
}

/* Selects keep room for the arrow, and the arrow itself */
.ehd-portal.ehd-portal .ehd-panel select,
.ehd-portal.ehd-portal .ehd-queue-field select,
.ehd-portal.ehd-portal .ehd-kb-limit-select {
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 1px solid var(--ehd-slate-300) !important;
	border-radius: var(--ehd-input-radius) !important;
	background-color: var(--ehd-white) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23405262' d='M4.2 6.2a.75.75 0 0 1 1.06 0L8 8.94l2.74-2.74a.75.75 0 1 1 1.06 1.06l-3.27 3.27a.75.75 0 0 1-1.06 0L4.2 7.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-size: 1rem 1rem !important;
	box-shadow: none !important;
	color: var(--ehd-slate-950) !important;
	font-family: var(--ehd-font) !important;
}

.ehd-portal.ehd-portal .ehd-panel select {
	height: auto !important;
	min-height: 2.85rem;
	padding: 0.7rem 2.5rem 0.7rem 0.9rem !important;
	background-position: right 0.85rem center !important;
	font-size: 1rem !important;
}

.ehd-portal.ehd-portal .ehd-queue-field select {
	height: auto !important;
	min-height: 2.6rem;
	padding: 0.55rem 2.3rem 0.55rem 0.7rem !important;
	background-position: right 0.7rem center !important;
	font-size: 0.92rem !important;
}

.ehd-portal.ehd-portal .ehd-kb-limit-select {
	width: auto !important;
	height: auto !important;
	min-height: 2.35rem;
	padding: 0.35rem 2rem 0.35rem 0.65rem !important;
	background-position: right 0.6rem center !important;
	font-size: 0.86rem !important;
	font-weight: 700 !important;
}

.ehd-portal.ehd-portal .ehd-kb-limit-select:focus-visible {
	border-color: var(--ehd-teal-600) !important;
}

/* Search boxes: the wrapper draws the border, the input is bare */
.ehd-portal.ehd-portal .ehd-queue-search-field input,
.ehd-portal.ehd-portal .ehd-kb-search-field input {
	width: 100% !important;
	height: 42px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: var(--ehd-font) !important;
	outline: none !important;
}

/* The Toggle Editor button belongs to the Joomla editor, so it arrives dressed
   by the template and floated out of the flow. It is a quiet aside here. */
.ehd-portal.ehd-portal .toggle-editor {
	float: none !important;
	margin: 0.5rem 0 0 !important;
	text-align: left;
}

.ehd-portal.ehd-portal .toggle-editor .btn {
	padding: 0.35rem 0.7rem !important;
	border: 1px solid var(--ehd-slate-300) !important;
	border-radius: var(--ehd-btn-radius) !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--ehd-slate-700) !important;
	font-family: var(--ehd-font) !important;
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	text-transform: none !important;
}

.ehd-portal.ehd-portal .toggle-editor .btn:hover,
.ehd-portal.ehd-portal .toggle-editor .btn:focus-visible {
	border-color: var(--ehd-teal-600) !important;
	background: var(--ehd-teal-100) !important;
	color: var(--ehd-teal-700) !important;
}

/* Tick boxes and radios go back to being the size of a tick box.
 * Leave Joomla .switcher radios alone: they are invisible hit targets over the toggle.
 * Leave .ehd-rating-input alone: star labels are the visible control. */
.ehd-portal.ehd-portal input[type="checkbox"],
.ehd-portal.ehd-portal input[type="radio"]:not(.ehd-rating-input) {
	all: revert !important;
	flex: 0 0 auto !important;
	width: 1.05rem !important;
	min-width: 0 !important;
	height: 1.05rem !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	accent-color: var(--ehd-teal-600) !important;
	cursor: pointer !important;
}

/* Reinstate Joomla switcher geometry that portal form CSS would otherwise crush. */
.ehd-portal.ehd-portal .switcher {
	position: relative !important;
	width: 18rem !important;
	height: 28px !important;
	margin: 0 !important;
}

.ehd-portal.ehd-portal .switcher input {
	position: absolute !important;
	top: 0 !important;
	inset-inline-start: 0 !important;
	z-index: 2 !important;
	display: block !important;
	width: 62px !important;
	min-width: 62px !important;
	max-width: 62px !important;
	height: 28px !important;
	min-height: 28px !important;
	max-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	opacity: 0 !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	pointer-events: auto !important;
}

.ehd-portal.ehd-portal .switcher input:checked {
	z-index: 1 !important;
}

.ehd-portal.ehd-portal .switcher label {
	display: inline-block !important;
	position: absolute !important;
	inset-inline-start: 0 !important;
	width: auto !important;
	min-width: 6rem !important;
	height: 100% !important;
	margin: 0 0 0 70px !important;
	margin-inline: 70px 0 !important;
	padding: 0 !important;
	line-height: 28px !important;
	text-align: start !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	transition: opacity 0.25s !important;
	cursor: pointer !important;
}

.ehd-portal.ehd-portal .switcher input:checked + label {
	z-index: 0 !important;
	opacity: 1 !important;
}

.ehd-portal.ehd-portal .switcher input:not(:checked) + label {
	z-index: 3 !important;
	opacity: 0 !important;
	/* Invisible label still sits over the text; keep it clickable for toggle. */
	pointer-events: auto !important;
}

.ehd-portal.ehd-portal .switcher .toggle-outside,
.ehd-portal.ehd-portal .switcher .toggle-inside {
	/* Decorative only: clicks must reach the stacked radio hit targets. */
	pointer-events: none !important;
}

.ehd-portal.ehd-portal .switcher .toggle-outside {
	box-sizing: border-box !important;
	position: absolute !important;
	inset-inline-start: 0 !important;
	z-index: 0 !important;
	width: 58px !important;
	height: 100% !important;
	overflow: hidden !important;
	border: 1px solid rgba(0, 0, 0, 0.18) !important;
	border-radius: 2px !important;
	background: #d3d3d3 !important;
	transition: background 0.2s, border-color 0.2s !important;
	transform: translate3d(0, 0, 0) !important;
}

.ehd-portal.ehd-portal .switcher input ~ input:checked ~ .toggle-outside {
	background: var(--ehd-teal-600, #2f7d32) !important;
}

.ehd-portal.ehd-portal .switcher .toggle-inside {
	position: absolute !important;
	left: 0 !important;
	width: 28px !important;
	height: 28px !important;
	background: #fff !important;
	transition: left 0.25s ease !important;
}

.ehd-portal.ehd-portal .switcher input ~ input:checked ~ .toggle-outside .toggle-inside {
	left: 30px !important;
}

/* ---------------------------------------------------------------------------
   1.0.7 desk extras: SLA, watchers, time, KB suggest, checkout
   Kept namespaced and wrapping-safe so Helix / Cassiopeia cannot stretch them.
   --------------------------------------------------------------------------- */

.ehd-portal .ehd-sla {
	font-variant-numeric: tabular-nums;
}

.ehd-portal .ehd-sla-ok {
	background: var(--ehd-teal-100);
	color: var(--ehd-teal-700);
}

.ehd-portal .ehd-sla-warn {
	background: #fff4df;
	color: #9a6700;
}

.ehd-portal .ehd-sla-breach,
.ehd-portal .ehd-sla-breached {
	background: #fde8e8;
	color: #b42318;
}

.ehd-portal .ehd-sla-paused {
	background: var(--ehd-slate-100);
	color: var(--ehd-slate-700);
}

.ehd-portal .ehd-checkout-warn {
	margin: 0 0 1rem;
	border-color: #f0c36a;
	background: #fff8e8;
}

.ehd-portal .ehd-watcher-list,
.ehd-portal .ehd-time-list,
.ehd-portal .ehd-kb-suggest-list {
	display: grid;
	gap: 0.45rem;
	margin: 0.5rem 0 0.85rem;
	padding: 0;
	list-style: none;
}

.ehd-portal .ehd-watcher-list li,
.ehd-portal .ehd-time-list li,
.ehd-portal .ehd-kb-suggest-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--ehd-slate-200);
	color: var(--ehd-slate-800);
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

.ehd-portal .ehd-watcher-list li:last-child,
.ehd-portal .ehd-time-list li:last-child,
.ehd-portal .ehd-kb-suggest-list li:last-child {
	border-bottom: 0;
}

.ehd-portal .ehd-watcher-email {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ehd-portal.ehd-portal .ehd-watcher-remove {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	padding: 0 !important;
	border: 1px solid transparent !important;
	border-radius: 50% !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--ehd-slate-500) !important;
	cursor: pointer;
}

.ehd-portal.ehd-portal .ehd-watcher-remove:hover,
.ehd-portal.ehd-portal .ehd-watcher-remove:focus-visible {
	border-color: var(--ehd-slate-300) !important;
	background: var(--ehd-slate-100) !important;
	color: var(--ehd-slate-900) !important;
}

.ehd-portal .ehd-kb-suggest-list a {
	color: var(--ehd-teal-700);
	font-weight: 650;
	text-decoration: none;
}

.ehd-portal .ehd-kb-suggest-list a:hover,
.ehd-portal .ehd-kb-suggest-list a:focus-visible {
	text-decoration: underline;
	outline: none;
}

.ehd-portal .ehd-staff-details select[multiple],
.ehd-portal #ehd-staff-tags {
	min-height: 6.5rem;
}

.ehd-portal .ehd-staff-form,
.ehd-portal .ehd-staff-columns,
.ehd-portal .ehd-staff-main,
.ehd-portal .ehd-staff-side,
.ehd-portal .ehd-queue-panel,
.ehd-portal .ehd-ticket-list,
.ehd-portal .ehd-message-body,
.ehd-portal .ehd-article-body {
	min-width: 0;
	max-width: 100%;
}

.ehd-portal img,
.ehd-portal video,
.ehd-portal iframe,
.ehd-portal table {
	max-width: 100%;
}

.ehd-portal table {
	display: block;
	overflow-x: auto;
}

/* Classic / Soft pill nav: keep the bell from looking crushed on phones */
.ehd-portal.ehd-theme-classic .ehd-notify-toggle,
.ehd-portal.ehd-theme-soft .ehd-notify-toggle {
	border-radius: 999px;
}

.ehd-portal.ehd-theme-ink .ehd-notify-panel {
	box-shadow: 0 10px 28px rgba(13, 15, 18, 0.22);
}