/*
========================================================
Utilities for the RYCA Solutions Framework
========================================================
*/


/*Tabs Tips*/
.tab-container {
	/*max-width: 800px;*/
	margin: 0 auto;
	font-family: Arial, sans-serif;
}

/* Outer row: buttons (scroll) + optional controls (pinned right) */
.tab-buttons {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #ccc;
	flex-wrap: nowrap;
	min-width: 0;
	overflow: visible;
}

/* Only tab labels scroll; .tab-header-controls stays fixed on the right */
.tab-buttons-scroll {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.tab-buttons-scroll::-webkit-scrollbar,
.tab-buttons::-webkit-scrollbar {
	height: 4px;
}

.tab-buttons-scroll::-webkit-scrollbar-track,
.tab-buttons::-webkit-scrollbar-track {
	background: #1a1a1a;
	border-radius: 2px;
}

.tab-buttons-scroll::-webkit-scrollbar-thumb,
.tab-buttons::-webkit-scrollbar-thumb {
	background: #555;
	border-radius: 2px;
}

.tab-button {
	padding: 10px 20px;
	cursor: pointer;
	background: #f1f1f1;
	border: 1px solid #ccc;
	border-bottom: none;
	margin-right: 2px;
	border-radius: 4px 4px 0 0;
	transition: background 0.3s;
	white-space: nowrap;
}

.tab-button.active {
	background: #fff;
	font-weight: bold;
}

.tab-button:hover {
	background: #e0e0e0;
}

/* Generic checkbox-select tab mode: checkbox indicators on tabs (TabV1Mode::CheckSelect) */
.tab-container-checkselect .tab-button::before {
	content: "\f0c8";
	font-family: "Font Awesome 6 Pro";
	font-weight: 400;
	margin-right: 6px;
}

.tab-container-checkselect .tab-button.active::before {
	content: "\f14a";
}

.tab-content {
	/*border: 1px solid #ccc;*/
	/* Panes line up with the tab bar (no side inset) and sit a little below it; nested groups use .tab-pane > .tab-content */
	padding: 16px 0 0;
	background: #fff;
	/*border-radius: 0 0 4px 4px;*/
}

.tab-pane {
	display: none;
}

.chatBox .tab-pane.active {
	flex-direction: row;
	flex-direction: unset;
	gap: 8px;
}

.tab-pane.active {
	display: flex;
	flex-direction: column;
}

/* Support ticket meta tabs — date/select/textarea fill their FormV2 cell */
[data-tab-group="supportTicketWorkspace"] input:not([type=checkbox]):not([type=button]):not([type=hidden]):not([type=submit]),
[data-tab-group="supportTicketWorkspace"] select,
[data-tab-group="supportTicketWorkspace"] textarea,
[data-tab-group="supportTicketClientMeta"] input:not([type=checkbox]):not([type=button]):not([type=hidden]):not([type=submit]),
[data-tab-group="supportTicketClientMeta"] select,
[data-tab-group="supportTicketClientMeta"] textarea {
	width: 100%;
	box-sizing: border-box;
}

/*
========================================================
Nested tab groups
========================================================
A standard tab group rendered inside another group's pane. The child row reads
as a subordinate strip rather than a second set of folder tabs: flush with the
parent bar, edge to edge, flat, with an underline indicator.

Scoped to TabV1Mode::Tab only. Switch / Headless / CheckSelect keep their own
treatments — ChatV1's footer sub-tabs (elementTabV1GroupSwitch, ChatV1.php:886)
are already nested inside a pane and must not be caught by this.

A Tab group that sits behind a wrapper inside a pane (e.g. LeoCmdPane's
<div class='leo-cmd-pane'>) opts in with elementTabV1Group(..., ['nested' => true]),
which adds .tab-container-nested.
*/

:root {
	--tabNestedAccent: #d09d1f;
	--tabNestedBorder: rgba(255, 255, 255, .10);
	--tabNestedText: #f0f0f0;
	--tabNestedMuted: #a3a3a3;
	/* Fits a 38px header control (e.g. a filter bar) with 5px either side */
	--tabNestedBarHeight: 48px;
}

/* Collapse the parent pane's top gap, but only while a child group is the
   visible pane — panes without one keep the normal .tab-content spacing. */
.tab-content:has(> .tab-pane.active > .tab-container:not(.tab-container-switch):not(.tab-container-headless):not(.tab-container-checkselect):not(.tab-container-sidenav)),
.tab-content:has(> .tab-pane.active > * > .tab-container-nested) {
	padding-top: 0;
}

.tab-pane > .tab-container:not(.tab-container-switch):not(.tab-container-headless):not(.tab-container-checkselect):not(.tab-container-sidenav),
.tab-pane .tab-container.tab-container-nested {
	/* .sectionBox padding is what insets the group — drop it so the child bar
	   lines up with the parent bar and the rule runs the full width. */
	margin: 0;
	padding: 0;
	width: 100%;
	flex: 1 1 auto;
	min-width: 0;

	/* One standard row height whether or not the group carries a header slot,
	   so Fleet / Insight / Config line up instead of jumping as you switch. */
	& > .tab-buttons {
		border-bottom: 1px solid var(--tabNestedBorder);
		min-height: var(--tabNestedBarHeight);
		align-items: stretch;   /* tabs fill the row so the active underline meets the rule */
	}

	& > .tab-buttons .tab-buttons-scroll {
		align-items: stretch;
	}

	/* Header slot (range filter, Save control): centred, with a little air from
	   the tab labels and the row rule rather than sitting flush against them. */
	& > .tab-buttons .tab-header-trailing,
	& > .tab-buttons .tab-header-controls {
		display: flex;
		align-items: center;
		flex: 0 0 auto;
		padding: 5px 0 5px 12px;
	}

	/* Controls are usually authored to stand alone above content, so they carry
	   their own stacking margin. In a header slot that margin just inflates the
	   row — drop it and let the slot's padding do the spacing. */
	& > .tab-buttons .tab-header-trailing > *,
	& > .tab-buttons .tab-header-controls > * {
		margin: 0;
	}

	/* Flat, smaller, underline-active — visibly one level down from the parent */
	& > .tab-buttons .tab-button {
		background: transparent;
		border: 0;
		border-bottom: 2px solid transparent;
		border-radius: 0;
		margin: 0 14px -1px 0;
		padding: 8px 2px;
		/* Absolute, not em — RSF sets font-size:0 on the body grid, so a relative
		   size here collapses the labels to nothing. */
		font-size: 13px;
		line-height: 1.4;
		font-weight: 400;
		color: var(--tabNestedMuted);
		transition: color .15s ease, border-color .15s ease;
	}

	& > .tab-buttons .tab-button:hover {
		background: transparent;
		color: var(--tabNestedText);
	}

	& > .tab-buttons .tab-button.active {
		background: transparent;
		color: var(--tabNestedText);
		border-bottom-color: var(--tabNestedAccent);
		font-weight: 600;
	}

	/* Child content sits closer to its own bar than a top-level pane does */
	& > .tab-content {
		padding: 14px 0 0;
	}
}

/* TabV1Mode::SideNav — elementTabV1Group(..., TabV1Mode::SideNav, ['navWidth' => 220, 'sticky' => true])
   Vertical nav column (grouped .tab-sidenav-h headings) + content column. CSS only:
   the standard tab JS finds .tab-button / .tab-pane through the nearest .tab-container.
   Every selector is anchored on direct children so a group nested inside a pane keeps its own look. */

/* Nested reset: a SideNav inside a pane skips the underline treatment above but
   still drops the .sectionBox padding so it lines up with the parent bar. */
.tab-pane > .tab-container-sidenav {
	margin: 0;
	padding: 0;
	width: 100%;
	flex: 1 1 auto;
	min-width: 0;
}

.tab-content:has(> .tab-pane.active > .tab-container-sidenav) {
	padding-top: 16px;
}

.sectionBox.tab-container.tab-container-sidenav {
	display: grid;
	grid-template-columns: var(--tabSideNavWidth, 220px) minmax(0, 1fr);
	column-gap: 20px;
	align-items: start;
	box-sizing: border-box;
}

.tab-container.tab-container-sidenav > .tab-buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	box-sizing: border-box;
	gap: 1px;
	padding: 8px;
	text-align: left;
	font-size: 13px;
	background: var(--ffoPanel, var(--rmc-panel, #151515));
	border: 1px solid var(--ffoLine, var(--rmc-border2, rgba(255, 255, 255, .14)));
	border-radius: 10px;
}

.tab-container.tab-container-sidenav.tab-sidenav-sticky > .tab-buttons {
	position: sticky;
	top: var(--tabSideNavTop, 60px);
	align-self: start;
	max-height: calc(100vh - var(--tabSideNavTop, 60px));
	overflow-y: auto;
}

.tab-container.tab-container-sidenav > .tab-buttons > .tab-header-leading {
	display: block;
	margin: 0 0 8px;
}

.tab-container.tab-container-sidenav > .tab-buttons > .tab-buttons-scroll {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	min-width: 0;
}

.tab-container.tab-container-sidenav > .tab-buttons .tab-sidenav-h {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	line-height: 1.3;
	color: var(--rmc-faint, #7d7d7d);
	text-align: left;
	padding: 12px 10px 5px;
}

.tab-container.tab-container-sidenav > .tab-buttons .tab-sidenav-h:first-child {
	padding-top: 4px;
}

.tab-container.tab-container-sidenav > .tab-buttons .tab-button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 7px 10px;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 400;
	color: var(--rmc-muted, #a3a3a3);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.tab-container.tab-container-sidenav > .tab-buttons .tab-button:hover {
	color: var(--rmc-text, #f6f6f6);
	background: rgba(255, 255, 255, .04);
}

.tab-container.tab-container-sidenav > .tab-buttons .tab-button.active {
	color: var(--rmc-gold, #d09d1f);
	background: var(--rmc-gold-soft, rgba(208, 157, 31, .12));
	border-color: var(--rmc-gold-line, rgba(208, 157, 31, .45));
	font-weight: 600;
}

.tab-container.tab-container-sidenav > .tab-content {
	min-width: 0;
	padding: 0;
}

/* Per-tab controls + trailing html, above the panes */
.tab-container.tab-container-sidenav > .tab-content > .tab-sidenav-head {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-height: 38px;
	margin: 0 0 12px;
	font-size: 14px;
}

.tab-container.tab-container-sidenav > .tab-content > .tab-sidenav-head > .tab-header-trailing {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.tab-container.tab-container-sidenav > .tab-content > .tab-pane.active {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Tablet: one column; the nav becomes a wrapped row above the content */
@media (max-width: 960px) {
	.sectionBox.tab-container.tab-container-sidenav {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 12px;
	}

	.tab-container.tab-container-sidenav > .tab-buttons,
	.tab-container.tab-container-sidenav.tab-sidenav-sticky > .tab-buttons {
		position: static;
		max-height: none;
		overflow: visible;
		padding: 8px;
	}

	.tab-container.tab-container-sidenav > .tab-buttons > .tab-buttons-scroll {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px;
	}

	.tab-container.tab-container-sidenav > .tab-buttons .tab-sidenav-h,
	.tab-container.tab-container-sidenav > .tab-buttons .tab-sidenav-h:first-child {
		padding: 0 4px 0 10px;
	}

	.tab-container.tab-container-sidenav > .tab-buttons .tab-button {
		width: auto;
		flex: 0 0 auto;
	}
}

/* Phone: a single horizontal scroll strip, headings hidden, underline active */
@media (max-width: 720px) {
	.tab-container.tab-container-sidenav > .tab-buttons > .tab-buttons-scroll {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 14px;
		scrollbar-width: none;
	}

	.tab-container.tab-container-sidenav > .tab-buttons .tab-sidenav-h {
		display: none;
	}

	.tab-container.tab-container-sidenav > .tab-buttons,
	.tab-container.tab-container-sidenav.tab-sidenav-sticky > .tab-buttons {
		padding: 0 12px;
	}

	.tab-container.tab-container-sidenav > .tab-buttons .tab-button,
	.tab-container.tab-container-sidenav > .tab-buttons .tab-button:hover,
	.tab-container.tab-container-sidenav > .tab-buttons .tab-button.active {
		background: transparent;
		border: 0;
		border-bottom: 2px solid transparent;
		border-radius: 0;
		padding: 8px 2px;
		margin: 0 0 -1px;
	}

	.tab-container.tab-container-sidenav > .tab-buttons .tab-button.active {
		border-bottom-color: var(--rmc-gold, #d09d1f);
	}

	.tab-container.tab-container-sidenav > .tab-content > .tab-sidenav-head {
		justify-content: flex-start;
		flex-wrap: wrap;
	}
}
/* /TabV1Mode::SideNav */

/* Pill-Style Tabs (elementTabV1GroupSwitch) — mockup: light track, white active pill */
.tab-container-switch .tab-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: none;
	gap: 12px;
}

/* Pill cluster scrolls inside the strip; controls stay pinned */
.tab-container-switch .tab-buttons-scroll {
	flex: 1 1 auto;
	min-width: 0;
}

.tab-container-switch .tab-buttons-group {
	display: flex;
	gap: 2px;
	flex-wrap: nowrap;
	align-items: center;
	padding: 3px;
	background: #e8eaed;
	border-radius: 999px;
	width: max-content;
	max-width: 100%;
	box-sizing: border-box;
}

.tab-container-switch .tab-button {
	padding: 7px 18px;
	cursor: pointer;
	background: transparent;
	border: none;
	border-radius: 999px;
	margin-right: 0;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	transition: all 0.2s ease;
	white-space: nowrap;
	box-shadow: none;
}

.tab-container-switch .tab-button.active {
	background: #fff;
	color: #111827;
	border: none;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tab-container-switch .tab-button:hover {
	background: transparent;
	color: #374151;
}

.tab-container-switch .tab-button.active:hover {
	background: #fff;
	color: #111827;
}

/* Light-theme Switch variant — opt-in via options.theme = 'light'
   (e.g. dashboard chart cards on light surfaces). Default Switch stays dark. */
.tab-container-switch-light .tab-buttons-group {
	background: var(--bg-tertiary, #eeeeee);
	border: 1px solid var(--border-color-light, #e0e0e0);
}

.tab-container-switch-light .tab-button {
	color: var(--text-secondary, #666666);
}

.tab-container-switch-light .tab-button:hover {
	color: var(--text-primary, #333333);
}

.tab-container-switch-light .tab-button.active {
	background: var(--primary-light, #4a90e2);
	color: var(--text-inverse, #ffffff);
}

.tab-container-switch-light .tab-button.active:hover {
	background: var(--primary, #255697);
	color: var(--text-inverse, #ffffff);
}

/* Compact Switch (options.size = sm) — smaller pills for dense headers/cards */
.tab-container-switch-sm .tab-buttons-group {
	padding: 2px;
	gap: 2px;
	border-radius: 20px;
}

.tab-container-switch-sm .tab-button {
	padding: 4px 12px;
	font-size: 12px;
	border-radius: 16px;
	font-weight: 500;
}

/* Header-slot layout: leading (title) | switch pills | trailing (KPI/controls) */
.tab-container-switch.tab-has-header-slot .tab-buttons {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	flex-wrap: nowrap;
	min-width: 0;
}

.tab-container-switch.tab-has-header-slot .tab-header-leading {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
}

.tab-container-switch.tab-has-header-slot .tab-buttons-scroll {
	flex: 0 0 auto;
	min-width: 0;
	overflow-x: auto;
}

.tab-container-switch.tab-has-header-slot .tab-header-trailing {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 0;
}

.tab-container-switch.tab-has-header-slot .tab-header-controls {
	margin-left: 0;
	padding-left: 0;
}

/* When Switch header doubles as a chart-title row, keep content tight */
.tab-container-switch.tab-has-header-slot .tab-content {
	padding-top: 8px;
}

.tab-header-controls {
	display: flex;
	gap: 8px;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
	padding-left: 12px;
	font-size: 14px;
	/* Sit above horizontally scrolling tab labels */
	position: relative;
	z-index: 1;
}

.tab-header-controls .linkObjects,
.tab-header-controls .searchInputWrapper {
	font-size: 14px;
}

.tab-header-controls > * {
	margin: 0;
}

.tab-controls-group {
	display: none;
	gap: 12px;
	align-items: center;
}

.tab-controls-group.active {
	display: flex;
}


.tab-controls-group  > * > * { margin: 0;}

/* Phone: when the ACTIVE tab has controls, they drop to their own row under the tab labels, so
   the labels keep the full width instead of shrinking to one clipped tab. A tab without controls
   keeps one row. SideNav is untouched (its controls sit in .tab-sidenav-head, not .tab-buttons).
   The :has() keeps these above the app strip rules (.cc-page … > .tab-buttons, 0,4,0).
   flex-shrink 0: in a fixed-height flex column a tall pane would squeeze the wrapped bar back to
   its min-height, and the controls row would hang over the pane. */
@media (max-width: 640px) {
	.tab-container > .tab-buttons:has(> .tab-header-controls > .tab-controls-group.active) {
		flex-wrap: wrap;
		flex-shrink: 0;
		row-gap: 6px;
	}

	.tab-container > .tab-buttons:has(> .tab-header-controls > .tab-controls-group.active) > .tab-buttons-scroll {
		flex: 1 1 100%;
	}

	.tab-container > .tab-buttons:has(> .tab-header-controls > .tab-controls-group.active) > .tab-header-controls {
		flex: 1 1 100%;
		justify-content: flex-start;
		margin-left: 0;
		padding: 0 0 8px;
	}

	.tab-container > .tab-buttons > .tab-header-controls > .tab-controls-group.active {
		flex-wrap: wrap;
		row-gap: 8px;
	}
}

.tab-container-switch .tab-content {
	padding: 20px 0;
}

/* Fixed height for tab content within ChatV1 */
.chatBox .tab-container-switch .tab-content {
	/*height: 110px;*/
	overflow: visible;
	display: flex;
	flex-direction: column;
}

/* Make textarea expand to fill available space in ChatV1 */
.chatBox .tab-container-switch .tab-content form:not(.actionChatComment):not(.actionFormComposer) {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 220px 220px;
	flex-direction: row;
	padding-bottom: 20px;
}

.chatBox .tab-container-switch .tab-content textarea {
	flex: 1;
	resize: none;
	border: none;
	border-radius: 0;
	padding: 4px 0;
	background: transparent;
}

/* Chat Footer Controls (legacy right-aligned buttons below textarea) */
.chat-footer-controls {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
	padding: 12px 0;

	.formBtn.narrow{
		min-width: unset;
		padding: 14px
	}

	.formBtn {
		border-radius: 8px;
		margin: 0;
		padding: 10px 14px;
		min-width: unset;
		background-color: var(--comment-thread-bg-color, #fff);
		color: var(--defaultTextColor, #333);
		border: 1px solid var(--darkGray, #999);
	}
	.formBtn:hover {
		background-color: var(--formBtnHover, #eee);
		color: var(--defaultTextColor, #333);
	}
}

/* ---------- Chat composer card (Comment / Action footer mockup) ---------- */
.chatComposerCard {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	background: #f5f6f8;
	border: 1px solid #e8eaed;
	border-radius: 16px;
	padding: 14px 16px 12px;
}

/* ---------- Direct lane composer + thread marks (ChatV1::enableDirectMode / chatDirectMarksFor) ---------- */
.chatComposerCard.chatComposerDirect {
	border-color: var(--ffoToneGoldLine, var(--rmc-gold-line, rgba(208, 157, 31, .45)));
}

.chatComposerDirect .chatDirectHelper {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--ffoMuted, var(--rmc-muted, #a3a3a3));
	overflow-wrap: anywhere;
}

.chatDirectTag {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	margin-left: 6px;
	padding: 1px 7px;
	border: 1px solid var(--ffoToneGoldLine, var(--rmc-gold-line, rgba(208, 157, 31, .45)));
	border-radius: 999px;
	background: var(--ffoToneGoldSoft, var(--rmc-gold-soft, rgba(208, 157, 31, .12)));
	color: var(--ffoToneGold, var(--rmc-gold, #d09d1f));
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: middle;
	overflow-wrap: anywhere;
}

.chatDirectTag.is-queued {
	border-color: var(--ffoToneWarnLine, var(--rmc-amber-line, rgba(232, 176, 74, .42)));
	background: var(--ffoToneWarnSoft, var(--rmc-amber-soft, rgba(232, 176, 74, .11)));
	color: var(--ffoToneWarn, var(--rmc-amber, #e8b04a));
}
/* ---------- /Direct lane ---------- */

.chatComposerCard form.actionChatComment,
.chatComposerCard form.actionFormComposer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
}

.chatComposerTextarea {
	width: 100%;
	min-height: 48px;
	max-height: 160px;
	resize: none;
	overflow-y: auto;
	border: none !important;
	outline: none;
	background: transparent !important;
	box-shadow: none !important;
	padding: 2px 0 !important;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #1f2937;
	field-sizing: content;
}

.chatComposerTextarea::placeholder {
	color: #9ca3af;
}

.chatComposerPreview {
	min-height: 2.4em;
	padding: 2px 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #1f2937;
}

/* Bottom row inside composer: tools/chips left, primary action right */
.chatComposerFooterRow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding-top: 2px;
	box-sizing: border-box;
}

.chatComposerFooterRow .chatComposerToolbar,
.chatComposerFooterRow .chatComposerChips {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 0;
}

.chatComposerPrimaryAction {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	margin-left: auto;
}

.chatComposerPrimaryAction .linkObjects {
	margin: 0;
}

.chatComposerToolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
	padding-top: 2px;
}

.chatComposerTool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 6px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	font-size: 0.85rem;
	line-height: 1;
}

/* Formatting tools behind a side chevron (ChatV1 renderCommentComposerFooterRow). */
.chatComposerMdToggle { display: none; }
.chatComposerMdGroup { display: none; align-items: center; gap: 2px; }
.chatComposerMdToggle:checked ~ .chatComposerMdGroup { display: inline-flex; }
.chatComposerMdChevron i { transition: transform .15s ease; }
.chatComposerMdToggle:checked + .chatComposerMdChevron i { transform: rotate(180deg); }

.chatComposerTool:hover,
.chatComposerTool.active {
	color: #4b5563;
	background: rgba(0, 0, 0, 0.04);
}

.chatComposerToolText {
	font-weight: 700;
	font-size: 0.9rem;
	font-family: Georgia, 'Times New Roman', serif;
}

.chatComposerToolItalic {
	font-style: italic;
}

.chatComposerToolSep {
	display: inline-block;
	width: 1px;
	height: 16px;
	margin: 0 6px;
	background: #d1d5db;
	flex-shrink: 0;
}

.chatComposerChips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-top: 2px;
}

.chatComposerChip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	border: 1.5px dashed #c5c9d0;
	border-radius: 999px;
	background: transparent;
	color: #6b7280;
	font-size: 0.85rem;
	cursor: pointer;
	max-width: 100%;
	height: 32px;
	min-height: 32px;
	box-sizing: border-box;
}

.chatComposerChip i {
	color: #9ca3af;
	font-size: 0.8rem;
	flex-shrink: 0;
}

.chatComposerChip input[type='date'],
.chatComposerChip select {
	border: none !important;
	outline: none;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	min-height: unset !important;
	height: auto !important;
	font-size: 0.85rem;
	color: #4b5563;
	cursor: pointer;
	max-width: 160px;
	appearance: none;
	-webkit-appearance: none;
}

.chatComposerChip select {
	max-width: 180px;
	padding-right: 2px !important;
}

.chatComposerChip:hover {
	border-color: #9ca3af;
	color: #374151;
}

/* In-card Send / Add action buttons */
.chatComposerSendBtn.formBtn,
.formBtn.chatComposerSendBtn,
.chatComposerAddActionBtn.formBtn,
.formBtn.chatComposerAddActionBtn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: unset;
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.2;
	box-sizing: border-box;
	border: none !important;
	border-radius: 999px !important;
	padding: 8px 16px !important;
	white-space: nowrap;
}

.chatComposerSendBtn.formBtn,
.formBtn.chatComposerSendBtn {
	background: #111827 !important;
	color: #fff !important;
}

.chatComposerSendBtn.formBtn:hover,
.formBtn.chatComposerSendBtn:hover {
	background: #1f2937 !important;
	color: #fff !important;
}

.chatComposerAddActionBtn.formBtn,
.formBtn.chatComposerAddActionBtn {
	background: #2563eb !important;
	color: #fff !important;
}

.chatComposerAddActionBtn.formBtn:hover,
.formBtn.chatComposerAddActionBtn:hover {
	background: #1d4ed8 !important;
	color: #fff !important;
}

.chatComposerSendBtn .labelText,
.chatComposerAddActionBtn .labelText {
	color: inherit;
}

.chatComposerSendBtn i,
.chatComposerAddActionBtn i {
	color: inherit;
	font-size: 0.85rem;
}

/* ---------- Chat attachment pills (ChatV1 staging mode, chatv1-actions.js chatAttach*, CA-D4 / CA-D11) ----------
   Scoped to the comment card and the Direct card (its opt-in tray, ChatV1 enableDirectMode
   attach: the same markup under ref {refId}Direct). Every colour is a --chatAttach* hook with a light fallback
   (RMC maps the hooks to --rmc-* in ptbChatBox.css). An idle composer is no taller than
   today: the empty tray and hint are display:none, the note is [hidden], and the status
   span is absolute (out of the flex flow). Narrow rules key off the card's own width. */
:is(.chatComposerComment, .chatComposerDirect):has(> .chatAttachTray) {
	position: relative;
	container-type: inline-size;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachTray {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachTray:empty {
	display: none;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	height: 28px;
	max-width: min(220px, calc(50% - 3px));
	padding: 0 2px 0 9px;
	border: 1px solid var(--chatAttachPillBorder, rgba(24, 22, 16, .16));
	border-radius: 999px;
	background: var(--chatAttachPillBg, #ffffff);
	color: var(--chatAttachText, #1a1a18);
	font-size: 12px;
	line-height: 1;
	overflow: hidden;
}

/* is-up: the fill behind the content grows to --chatAttachPct (no separate progress bar) */
:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-up::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--chatAttachPct, 0%);
	background: var(--chatAttachUpFill, rgba(190, 140, 20, .2));
	z-index: -1;
	transition: width .18s linear;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachIcon {
	flex: none;
	width: 13px;
	font-size: 13px;
	line-height: 1;
	text-align: center;
	color: var(--chatAttachMuted, #5a5850);
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-ok .chatAttachIcon.fa-image {
	color: var(--chatAttachImg, #1f5aa6);
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-ok .chatAttachIcon.fa-file-pdf {
	color: var(--chatAttachPdf, #b3261e);
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-ok .chatAttachIcon.fa-file-video {
	color: var(--chatAttachVideo, #6540c0);
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachLabel {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

/* min-width = "Uploading 100%" at 12px, so the pill does not grow between 10% and 100% */
:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-up .chatAttachLabel {
	min-width: 100px;
	color: var(--chatAttachText, #1a1a18);
	font-variant-numeric: tabular-nums;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachX,
:is(.chatComposerComment, .chatComposerDirect) .chatAttachRetry {
	flex: none;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--chatAttachMuted, #5a5850);
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachRetry {
	margin-right: -2px;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachX i,
:is(.chatComposerComment, .chatComposerDirect) .chatAttachRetry i,
:is(.chatComposerComment, .chatComposerDirect) .chatAttachNoteX i {
	color: inherit;
	font-size: 12px;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachX:hover,
:is(.chatComposerComment, .chatComposerDirect) .chatAttachRetry:hover {
	background: var(--chatAttachHover, #dedbd1);
	color: var(--chatAttachText, #1a1a18);
}

/* The pill clips overflow for the fill, so the focus ring sits inside the button */
:is(.chatComposerComment, .chatComposerDirect) .chatAttachX:focus-visible,
:is(.chatComposerComment, .chatComposerDirect) .chatAttachRetry:focus-visible,
:is(.chatComposerComment, .chatComposerDirect) .chatAttachNoteX:focus-visible {
	outline: 2px solid var(--chatAttachAccent, #7f5a04);
	outline-offset: -2px;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-fail {
	border-color: var(--chatAttachErrLine, rgba(179, 38, 30, .38));
	background: var(--chatAttachErrSoft, rgba(220, 60, 50, .1));
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-fail .chatAttachIcon,
:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-fail .chatAttachLabel,
:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-fail .chatAttachRetry {
	color: var(--chatAttachErr, #b3261e);
}

/* Screen-reader status line: visually hidden and out of the flex flow */
:is(.chatComposerComment, .chatComposerDirect) .chatAttachStatus {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	font-size: 12px;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachNote {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 8px 6px 10px;
	border: 1px solid var(--chatAttachWarnLine, rgba(131, 84, 0, .4));
	border-radius: 8px;
	background: var(--chatAttachWarnSoft, rgba(220, 150, 20, .14));
	color: var(--chatAttachWarn, #835400);
	font-size: 12px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachNote[hidden] {
	display: none;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachNoteIcon {
	flex: none;
	margin-top: 2px;
	font-size: 12px;
	color: inherit;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachNoteText {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 12px;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachNoteText b {
	font-weight: 700;
}

/* 24x24 with negative margins, so the dismiss button never makes the note taller */
:is(.chatComposerComment, .chatComposerDirect) .chatAttachNoteX {
	flex: none;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin: -5px -4px -5px 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

:is(.chatComposerComment, .chatComposerDirect) .chatAttachNoteX:hover {
	background: var(--chatAttachHover, #dedbd1);
}

/* Drag over the card: dashed accent border, "Drop to attach", content hidden */
.chatBox .chatComposerCard:is(.chatComposerComment, .chatComposerDirect).is-dragging:has(> .chatAttachTray) {
	border: 1px dashed var(--chatAttachAccent, #7f5a04);
	background: var(--chatAttachAccentSoft, rgba(190, 140, 20, .13));
}

:is(.chatComposerComment, .chatComposerDirect).is-dragging:has(> .chatAttachTray) > * {
	visibility: hidden;
}

:is(.chatComposerComment, .chatComposerDirect).is-dragging:has(> .chatAttachTray)::after {
	content: 'Drop to attach';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: inherit;
	color: var(--chatAttachAccent, #7f5a04);
	font-size: 13px;
	font-weight: 700;
	pointer-events: none;
}

/* Send looks disabled while a file uploads / failed. No pointer-events:none: the click must
   still reach the chatAttachSend guard. Opacity sits on the wrapper so it never fights the
   !important Send backgrounds. */
:is(.chatComposerComment, .chatComposerDirect) .chatComposerPrimaryAction > .linkObjects.is-disabled {
	cursor: not-allowed;
	opacity: .45;
}

:is(.chatComposerComment, .chatComposerDirect) .chatComposerPrimaryAction > .linkObjects.is-disabled .chatComposerSendBtn {
	box-shadow: none !important;
	cursor: not-allowed;
}

/* CA-D4 hint left of Send: the zero basis only fills space the toolbar leaves, so it never
   wraps or scrolls the toolbar and never pushes Send out of the card. */
:is(.chatComposerComment, .chatComposerDirect) .chatComposerSendHint {
	flex: 999 1 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: right;
	font-size: 11.5px;
	line-height: 1.3;
	color: var(--chatAttachMuted, #5a5850);
}

:is(.chatComposerComment, .chatComposerDirect) .chatComposerSendHint:empty {
	display: none;
}

:is(.chatComposerComment, .chatComposerDirect) .chatComposerSendHint.is-warn {
	color: var(--chatAttachErr, #b3261e);
}

/* Narrow composer (phone, Leo drawer): keyed to the card's width, not the viewport.
   The footer row becomes a two-column grid only while the hint shows (toolbar + Send on
   row 1, hint on row 2); a wrapping flex row would drop Send onto its own line. */
@container (max-width: 480px) {
	:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill {
		gap: 4px;
		padding-left: 7px;
	}

	:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-up .chatAttachLabel {
		min-width: 0;
	}

	:is(.chatComposerComment, .chatComposerDirect) .chatAttachPill.is-up .chatAttachIcon {
		display: none;
	}

	:is(.chatComposerComment, .chatComposerDirect) .chatComposerSendHint {
		display: none;
	}

	:is(.chatComposerComment, .chatComposerDirect) .chatComposerFooterRow:has(> .chatComposerSendHint.is-wait),
	:is(.chatComposerComment, .chatComposerDirect) .chatComposerFooterRow:has(> .chatComposerSendHint.is-warn) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 12px;
		row-gap: 4px;
	}

	:is(.chatComposerComment, .chatComposerDirect) .chatComposerFooterRow:has(> .chatComposerSendHint.is-wait) > .chatComposerPrimaryAction,
	:is(.chatComposerComment, .chatComposerDirect) .chatComposerFooterRow:has(> .chatComposerSendHint.is-warn) > .chatComposerPrimaryAction {
		grid-column: 2;
		grid-row: 1;
	}

	:is(.chatComposerComment, .chatComposerDirect) .chatComposerSendHint.is-wait,
	:is(.chatComposerComment, .chatComposerDirect) .chatComposerSendHint.is-warn {
		display: block;
		grid-column: 1 / -1;
		grid-row: 2;
		text-align: left;
		white-space: normal;
	}
}
/* ---------- /Chat attachment pills ---------- */

/*Tool Tips — popover chrome is transparent; the card (.helpToolTip) owns the shadow.
  Do not also filter:drop-shadow here — it composites on top of box-shadow and looks doubled.
  Beat .searchResult[popover] { max-height: 300px } so wrapped copy can grow. */
.searchResult.helpTooltipHeadResult,
.searchResult.helpTooltipHeadResult[popover]{
	background-color: transparent;
	border-radius: 12px;
	border: none;
	box-shadow: none;
	filter: none;
	overflow: visible;
	max-height: none;
	padding: 0;
}

.formRow.head div.helpToolTip,
.helpToolTip {
	background-color: #e8e8e8;
	border-radius: 12px;
	padding: 10px;
	width: 320px;
	max-width: min(320px, calc(100vw - 24px));
	height: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	white-space: normal;
	overflow: visible;

	.header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 4px;
		width: 100%;
	}

	.title {
		font-weight: bold;
		font-size: 16px;
		color: #333;
	}

	.close-btn {
		background: none;
		border: none;
		font-size: 20px;
		color: #666;
		cursor: pointer;
		padding: 0;
		width: 24px;
		height: 24px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.close-btn:hover {
		color: #333;
	}

	.content {
		width: 100%;
		font-size: 12px;
		color: #333;
		margin-bottom: 10px;
		font-weight: normal;
		white-space: normal;
		overflow: visible;
		height: auto;
	}

	.watch-btn {
		background-color: #5a5a5a;
		color: white;
		border: none;
		border-radius: 6px;
		padding: 8px 24px;
		font-size: 12px;
		cursor: pointer;
		width: 100%;
		font-weight: 500;
	}

	.watch-btn:hover {
		background-color: #4a4a4a;
	}
}

/* ============================================================
   PlantToolbox — Help Center video thumbnail (option 2b)
   White fill · gray dot grid · dark play button (navy on hover)
   Source: .plans/help-video-thumbnail.html
   ============================================================ */
.ptb-video-thumb {
	--ptb-thumb-radius: 12px;
	--ptb-thumb-bg: #fdfdfe;
	--ptb-thumb-border: #e2e6ee;
	--ptb-dot-color: rgba(90, 100, 120, 0.18);
	--ptb-dot-size: 1.5px;
	--ptb-dot-gap: 20px;
	--ptb-play-bg: #1c2333;
	--ptb-play-bg-hover: #1e4a99; /* PlantToolbox navy */
	--ptb-play-icon: #ffffff;
	--ptb-badge-bg: #1c2333;
	--ptb-badge-fg: #ffffff;

	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	/* Slightly smaller than full content width; ratio stays 16:9 */
	width: 88%;
	max-width: 240px;
	margin: 8px auto 6px;
	border-radius: var(--ptb-thumb-radius);
	overflow: hidden;
	background: var(--ptb-thumb-bg);
	border: 1px solid var(--ptb-thumb-border);
	cursor: pointer;
	padding: 0;
	font: inherit;
	box-sizing: border-box;
}

/* Dot grid (placeholder state only) */
.ptb-video-thumb::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(var(--ptb-dot-color) var(--ptb-dot-size), transparent var(--ptb-dot-size));
	background-size: var(--ptb-dot-gap) var(--ptb-dot-gap);
}

.ptb-video-thumb.has-image { border: none; }
.ptb-video-thumb.has-image::before { display: none; }

.ptb-video-thumb__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ptb-video-thumb.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(20, 25, 38, 0.25);
}

/* Host is layout-only — FA circle-play draws the disc (no square bg/shadow box) */
.ptb-video-thumb__play {
	position: relative;
	z-index: 1;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: transparent;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	transition: transform 0.18s ease, color 0.18s ease;
	color: var(--ptb-play-bg);
	line-height: 1;
	padding: 0;
	box-sizing: border-box;
}

.ptb-video-thumb.has-image .ptb-video-thumb__play {
	background: transparent;
	border: none;
	box-shadow: none;
	/* Light icon over video frames */
	color: #ffffff;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.ptb-video-thumb__play i {
	font-size: 2.5rem;
	line-height: 1;
	width: 1em;
	height: 1em;
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	background: none !important;
	box-shadow: none !important;
}

.ptb-video-thumb:hover .ptb-video-thumb__play,
.ptb-video-thumb:focus-visible .ptb-video-thumb__play {
	transform: scale(1.12);
	background: transparent;
	color: var(--ptb-play-bg-hover);
}
.ptb-video-thumb.has-image:hover .ptb-video-thumb__play,
.ptb-video-thumb.has-image:focus-visible .ptb-video-thumb__play {
	background: transparent;
	color: #ffffff;
}
.ptb-video-thumb:focus-visible {
	outline: 2px solid #1e4a99;
	outline-offset: 2px;
}

.ptb-video-thumb__duration {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 1;
	background: var(--ptb-badge-bg);
	color: var(--ptb-badge-fg);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	padding: 2px 7px;
	border-radius: 4px;
}
.ptb-video-thumb.has-image .ptb-video-thumb__duration {
	background: rgba(0, 0, 0, 0.55);
}

/* Compact in column tooltips */
.helpToolTip .ptb-video-thumb {
	width: 100%;
	max-width: none;
	margin: 8px 0;
}
.helpToolTip .ptb-video-thumb__play {
	width: 44px;
	height: 44px;
	background: transparent;
	box-shadow: none;
}
.helpToolTip .ptb-video-thumb__play i {
	font-size: 2.15rem;
}

/* Text-style watch control under the preview tile */
.helpWatchBtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 4px;
	padding: 0;
	border: none;
	background: none;
	box-shadow: none;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.2;
	color: #1e4a99;
	cursor: pointer;
	text-align: left;
}

.helpWatchBtn:hover {
	color: #163a7a;
	text-decoration: underline;
}

.helpToolTip .helpWatchBtn {
	margin-top: 2px;
}

/* In-page help tutorial modal */
.helpTutorialBody {
	box-sizing: border-box;
	padding: 4px 0 8px;
}
.helpTutorialMeta {
	margin-bottom: 12px;
	text-align: left;
}
.helpTutorialTitle {
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 600;
	color: #1a202c;
}
.helpTutorialDesc {
	margin: 0;
	font-size: 0.9rem;
	color: #4a5568;
	line-height: 1.35;
}
/* Fixed 16:9 stage so empty / missing videos still look like a player */
.helpTutorialPlayerWrap {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: min(52vh, 480px);
	margin-bottom: 8px;
	position: relative;
	overflow: hidden;
	background: #0b0d12;
	border-radius: 8px;
	border: 1px solid #2a2f3a;
	box-sizing: border-box;
}
.helpTutorialPlayerWrap video,
#helpTutorialPlayer {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: contain;
	background: #0b0d12;
	border: none;
	border-radius: 0;
}
.helpTutorialPlayerEmpty {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #9aa3b2;
	font-size: 0.9rem;
	user-select: none;
}
.helpTutorialPlayerEmpty i {
	font-size: 2.25rem;
	color: #c5ccd6;
	opacity: 0.9;
}
.helpTutorialDuration {
	width: 100%;
	padding: 4px 0 0;
	text-align: right;
	font-size: 0.85rem;
	color: #4a5568;
}
.helpRelatedVideos {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
	text-align: left;
}
.helpRelatedVideosTitle {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #2d3748;
}
.helpRelatedVideosEmpty {
	margin: 0;
	font-size: 0.85rem;
	color: #718096;
}
.helpRelatedVideosList {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.helpRelatedVideoItem {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #f7fafc;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: #2d3748;
}
.helpRelatedVideoItem:hover {
	background: #edf2f7;
	border-color: #cbd5e0;
}
.helpRelatedVideoIcon {
	flex: 0 0 auto;
	color: #4a5568;
	font-size: 0.85rem;
}
.helpRelatedVideoText {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.helpRelatedVideoName {
	font-size: 0.9rem;
	font-weight: 500;
}
.helpRelatedVideoDur {
	font-size: 0.75rem;
	color: #718096;
}
.popUpBox.helpTutorialModal .headBtns {
	display: flex;
	align-items: center;
	gap: 10px;
}
.popUpBox.helpTutorialModal .helpTutorialOpenFull {
	white-space: nowrap;
	font-size: 0.8rem;
	padding: 4px 10px;
}

/* ffoType::userSearchSelect — closed chip is a name button; nest supplies outline */
.userSearchSelect.searchInputWrapper {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: none;
	background: transparent;
	color: #273b61;
	font-size: 0.85rem;
	cursor: pointer;
	max-width: 100%;
	box-sizing: border-box;
	position: relative;
	width: auto;
	anchor-name: none;
}
.userSearchSelect.searchInputWrapper::before {
	content: "\f007";
	font-family: "Font Awesome 6 Pro";
	font-weight: 400;
	color: #9ca3af;
	font-size: 0.8rem;
	flex-shrink: 0;
	pointer-events: none;
	margin-right: 8px;
}
.userSearchSelect.searchInputWrapper::after {
	content: "\f0d7";
	font-family: "Font Awesome 6 Pro";
	font-weight: 900;
	color: #9aa7b8;
	font-size: 0.65rem;
	flex-shrink: 0;
	pointer-events: none;
	margin-left: 2px;
}
.userSearchSelect.searchInputWrapper:hover,
.userSearchSelect.searchInputWrapper.active {
	color: #1f2937;
	anchor-name: none;
}
.userSearchSelectName {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex: 1 1 auto;
	font-weight: 400;
	font-size: inherit;
	line-height: 1.2;
	pointer-events: none;
}
.chatComposerChip .userSearchSelect.searchInputWrapper,
.chatComposerChipOwner .userSearchSelect.searchInputWrapper {
	border: none;
	padding: 0;
	background: transparent;
	max-width: 100%;
	flex: 1 1 auto;
	min-width: 0;
}
.chatComposerChip .userSearchSelect.searchInputWrapper::before,
.chatComposerChipOwner .userSearchSelect.searchInputWrapper::before {
	content: none;
	display: none;
}
.chatComposerChip:has(.userSearchSelect.active),
.chatComposerChipOwner:has(.userSearchSelect.active) {
	border-style: solid;
	border-color: #255697;
	box-shadow: 0 0 0 3px rgba(37, 86, 151, 0.12);
}
.msg.action .userSearchSelect.searchInputWrapper {
	width: 100%;
	max-width: 100%;
	min-height: 0;
	height: 100%;
	padding: 0;
	box-sizing: border-box;
	font-size: 0.85rem;
}
.msg.action .longBlock.formInput:has(.userSearchSelect) {
	padding: 0 16px !important;
}
.msg.action .longBlock.formInput:has(.userSearchSelect) .subject {
	display: contents;
}
.msg.action .longBlock.formInput:has(.userSearchSelect) .subject > div:not(.userSearchSelect) {
	display: contents;
}
.apCtxField .userSearchSelect.searchInputWrapper {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Unset CSS-anchor; card popover (search lives inside) */
.userSearchSelect .searchResult,
.userSearchSelect .searchResult[popover],
.userSearchSelect .searchResult.fixed {
	position: fixed;
	position-anchor: unset;
	position-try-fallbacks: none;
	top: unset;
	left: unset;
	right: unset;
	bottom: unset;
	width: 280px;
	min-width: 0;
	max-width: 280px;
	max-height: min(320px, calc(100vh - 16px));
	overflow: hidden;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	z-index: 40;
	background: #fff !important;
	border: 1px solid #d5dde6 !important;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(39, 59, 97, 0.16);
	text-align: left;
}
.userSearchSelect .searchResult > .userSearchSelectQuery {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
	z-index: 1;
	cursor: default;
}
.userSearchSelect .searchResult > .userSearchSelectQuery::before {
	content: "\f002";
	font-family: "Font Awesome 6 Pro";
	font-weight: 400;
	color: #8a97ab;
	font-size: 13px;
	flex-shrink: 0;
}
.userSearchSelectQueryInput,
.userSearchSelect .userSearchSelectQueryInput.searchBarTextField,
section.block.long .longBlock.formInput .userSearchSelect .userSearchSelectQueryInput {
	flex: 1 1 auto;
	border: 0 !important;
	outline: none;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: unset !important;
	height: auto !important;
	width: auto;
	max-width: none;
	font-size: 14px;
	color: #273b61;
	display: block;
}
.userSearchSelect .searchResult > .userSearchSelectList {
	padding: 0 0 6px;
	border: 0;
	background: transparent;
	cursor: default;
	max-height: min(272px, calc(100vh - 64px));
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #c5ced8 transparent;
}
.userSearchSelect .searchResult > .userSearchSelectList::-webkit-scrollbar {
	width: 8px;
}
.userSearchSelect .searchResult > .userSearchSelectList::-webkit-scrollbar-track {
	background: transparent;
	margin: 4px 0;
}
.userSearchSelect .searchResult > .userSearchSelectList::-webkit-scrollbar-thumb {
	background: #c5ced8;
	border-radius: 8px;
	border: 2px solid transparent;
	background-clip: padding-box;
}
.userSearchSelectList .userSearchSelectHeading {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a97ab;
	padding: 8px 12px 4px;
	background: #fff;
	cursor: default;
	border: 0;
}
.userSearchSelectList .userSearchSelectEmpty {
	padding: 16px 12px;
	color: #6b7c93;
	font-size: 13px;
	background: #fff;
	cursor: default;
	border: 0;
}
.userSearchSelect .searchResult .userSearchSelectList > div:not(.userSearchSelectHeading):not(.userSearchSelectEmpty) {
	padding: 9px 12px;
	background: #fff;
	border-bottom: 1px solid #eef0f3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 14px;
	font-weight: 400;
	color: #273b61;
}
.userSearchSelect .searchResult .userSearchSelectList > div:not(.userSearchSelectHeading):not(.userSearchSelectEmpty):last-child {
	border-bottom: 0;
}
.userSearchSelect .searchResult .userSearchSelectList > div:not(.noLink):hover {
	background: #f3f4f6;
	cursor: pointer;
}
.userSearchSelect .searchResult span.tag {
	display: none;
}

/* Flatten FormV2 section chrome when nested in composer / context-panel chips */
.chatComposerChipOwner section.block.long.narrow.form:has(.userSearchSelect),
.apCtxField section.block.long.narrow.form:has(.userSearchSelect) {
	margin: 0;
	padding: 0;
	width: auto;
	display: contents;
}
.chatComposerChipOwner section.block.long.narrow.form:has(.userSearchSelect) > .longBlock.formInput,
.apCtxField section.block.long.narrow.form:has(.userSearchSelect) > .longBlock.formInput {
	min-height: unset;
	height: auto;
	margin: 0;
	padding: 0;
	width: auto;
	display: contents;
}
.chatComposerChipOwner section.block.long.narrow.form:has(.userSearchSelect) .subject,
.apCtxField section.block.long.narrow.form:has(.userSearchSelect) .subject {
	margin: 0;
	padding: 0;
	display: contents;
}
.chatComposerChipOwner section.block.long.narrow.form:has(.userSearchSelect) .formFieldLabel,
.apCtxField section.block.long.narrow.form:has(.userSearchSelect) .formFieldLabel,
.msg.action section.block.long.narrow.form:has(.userSearchSelect) .formFieldLabel {
	display: none;
}

