/**
 * Chatbot Drawer — Minimalist Toolkit Aesthetic
 *
 * Neutral palette, sans-serif, thin borders, square-ish corners.
 * Single accent color exposed via --hr-chat-accent so customer sites
 * can theme it from their own CSS.
 *
 * Desktop: fixed right-edge tab + 420px slide-in drawer.
 * Mobile: FAB + full-screen slide-up sheet.
 *
 * @package HRAIEnhancer
 */

/* ==========================================================================
   Design Tokens
   Override --hr-chat-accent from a customer theme to brand the chatbot.
   ========================================================================== */

:root {
	--hr-chat-accent: #2C2C2C;
	--hr-chat-accent-hover: #4a4a4a;
	--hr-chat-accent-soft: rgba(44, 44, 44, 0.06);
	--hr-chat-accent-ring: rgba(44, 44, 44, 0.18);

	--hr-chat-bg: #ffffff;
	--hr-chat-bg-subtle: #f6f6f6;
	--hr-chat-text: #1a1a1a;
	--hr-chat-text-muted: #6b6b6b;
	--hr-chat-text-faint: #9a9a9a;
	--hr-chat-border: #e5e5e5;
	--hr-chat-border-strong: #cccccc;

	--hr-chat-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

	--hr-chat-radius: 2px;
	--hr-chat-radius-pill: 999px;

	--hr-chat-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	--hr-chat-shadow-overlay: -8px 0 24px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes hrChatFadeInUp {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes hrChatTypingPulse {
	0%, 80%, 100% { opacity: 0.25; }
	40%           { opacity: 0.9; }
}

@keyframes hrChatMicPulse {
	0%, 100% { box-shadow: 0 0 0 0 var(--hr-chat-accent-ring); }
	50%      { box-shadow: 0 0 0 6px transparent; }
}

@keyframes hrChatSpin {
	to { transform: rotate(360deg); }
}

@keyframes hrChatPreloaderDots {
	0%, 20%   { content: ''; }
	40%       { content: '.'; }
	60%       { content: '..'; }
	80%, 100% { content: '...'; }
}

/* ==========================================================================
   1. Desktop Tab — Collapsed Trigger
   ========================================================================== */

.hr-chat-tab {
	position: fixed;
	right: 0;
	bottom: 25%;
	width: 56px;
	height: 72px;
	background: var(--hr-chat-accent);
	color: #fff;
	border: 1px solid var(--hr-chat-accent);
	border-right: none;
	border-radius: var(--hr-chat-radius) 0 0 var(--hr-chat-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 999999;
	padding: 0;
	transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            background 0.15s ease;
}

/* Tab slides with the drawer */
.hr-chat-tab.hr-chat-tab-open {
	right: 420px;
}

.hr-chat-tab:hover {
	background: var(--hr-chat-accent-hover);
}

.hr-chat-tab:focus-visible {
	outline: 2px solid var(--hr-chat-accent);
	outline-offset: 2px;
}

.hr-chat-tab-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.hr-chat-tab-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* ----- Tab Tooltip ----- */

.hr-chat-tab-tooltip {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(4px);
	background: var(--hr-chat-text);
	color: #fff;
	padding: 8px 12px;
	border-radius: var(--hr-chat-radius);
	font-family: var(--hr-chat-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	white-space: normal;
	width: max-content;
	max-width: 240px;
	box-shadow: var(--hr-chat-shadow);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
}

.hr-chat-tab-tooltip::after {
	content: '';
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	border-width: 5px 0 5px 6px;
	border-style: solid;
	border-color: transparent transparent transparent var(--hr-chat-text);
}

.hr-chat-tab:hover .hr-chat-tab-tooltip,
.hr-chat-tab:focus-visible .hr-chat-tab-tooltip,
.hr-chat-tab.hr-chat-tab-tooltip-auto .hr-chat-tab-tooltip {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

.hr-chat-tab.hr-chat-tab-open .hr-chat-tab-tooltip {
	display: none;
}

/* ==========================================================================
   2. Desktop Drawer
   ========================================================================== */

.hr-chat-drawer {
	position: fixed;
	right: 0;
	bottom: 10%;
	transform: translateX(100%);
	width: 420px;
	height: 70vh;
	max-height: 700px;
	min-height: 400px;
	background: var(--hr-chat-bg);
	border: 1px solid var(--hr-chat-border);
	border-right: none;
	border-radius: var(--hr-chat-radius) 0 0 var(--hr-chat-radius);
	box-shadow: var(--hr-chat-shadow-overlay);
	z-index: 999998;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	pointer-events: none;
	visibility: hidden;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            visibility 0s linear 0.35s;
}

.hr-chat-drawer.hr-chat-open {
	transform: translateX(0);
	pointer-events: auto;
	visibility: visible;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            visibility 0s linear 0s;
}

/* Overlay — click to close */
.hr-chat-overlay {
	position: fixed;
	inset: 0;
	z-index: 999997;
	background: rgba(0, 0, 0, 0);
	pointer-events: none;
	transition: background 0.35s ease;
}

.hr-chat-overlay.hr-chat-overlay-visible {
	background: rgba(0, 0, 0, 0.12);
	pointer-events: auto;
}

/* ==========================================================================
   3. Drawer Header
   ========================================================================== */

.hr-chat-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid var(--hr-chat-border);
	background: var(--hr-chat-bg);
	flex-shrink: 0;
}

.hr-chat-header-name {
	font-family: var(--hr-chat-sans);
	font-size: 15px;
	font-weight: 500;
	color: var(--hr-chat-text);
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.hr-chat-header-subtitle {
	font-family: var(--hr-chat-sans);
	font-size: 12px;
	color: var(--hr-chat-text-muted);
	margin-top: 2px;
}

.hr-chat-header-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hr-chat-header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hr-chat-reset-btn {
	font-family: var(--hr-chat-sans);
	font-size: 12px;
	color: var(--hr-chat-text-muted);
	background: transparent;
	border: 1px solid var(--hr-chat-border);
	border-radius: var(--hr-chat-radius);
	padding: 4px 10px;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
	white-space: nowrap;
}

.hr-chat-reset-btn:hover {
	color: var(--hr-chat-text);
	border-color: var(--hr-chat-border-strong);
	background: var(--hr-chat-bg-subtle);
}

.hr-chat-reset-btn:focus-visible {
	outline: 2px solid var(--hr-chat-accent);
	outline-offset: 2px;
}

.hr-chat-close-btn {
	width: 28px;
	height: 28px;
	border-radius: var(--hr-chat-radius);
	background: transparent;
	border: none;
	color: var(--hr-chat-text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.15s ease, color 0.15s ease;
	padding: 0;
}

.hr-chat-close-btn:hover {
	background: var(--hr-chat-bg-subtle);
	color: var(--hr-chat-text);
}

.hr-chat-close-btn:focus-visible {
	outline: 2px solid var(--hr-chat-accent);
	outline-offset: 2px;
}

.hr-chat-close-btn svg {
	width: 16px;
	height: 16px;
	pointer-events: none;
}

/* ==========================================================================
   4. Message Area
   ========================================================================== */

.hr-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 18px 16px;
	scroll-behavior: smooth;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--hr-chat-bg);
}

.hr-chat-messages::-webkit-scrollbar {
	width: 4px;
}

.hr-chat-messages::-webkit-scrollbar-track {
	background: transparent;
}

.hr-chat-messages::-webkit-scrollbar-thumb {
	background: var(--hr-chat-border);
	border-radius: 4px;
}

.hr-chat-messages::-webkit-scrollbar-thumb:hover {
	background: var(--hr-chat-border-strong);
}

.hr-chat-messages {
	scrollbar-width: thin;
	scrollbar-color: var(--hr-chat-border) transparent;
}

/* ==========================================================================
   5. Chat Bubbles
   ========================================================================== */

.hr-chat-bubble-user,
.hr-chat-bubble-assistant {
	max-width: 85%;
	word-break: break-word;
	overflow-wrap: break-word;
	font-family: var(--hr-chat-sans);
	font-size: 14px;
	line-height: 1.55;
}

/* User bubble — accent fill, right-aligned */
.hr-chat-bubble-user {
	background: var(--hr-chat-accent);
	color: #fff;
	border-radius: var(--hr-chat-radius);
	align-self: flex-end;
	padding: 9px 14px;
}

/* Assistant bubble — minimal: bordered, white bg, left-aligned */
.hr-chat-bubble-assistant {
	background: var(--hr-chat-bg);
	border: 1px solid var(--hr-chat-border);
	color: var(--hr-chat-text);
	border-radius: var(--hr-chat-radius);
	align-self: flex-start;
	padding: 10px 14px;
}

.hr-chat-bubble-assistant p {
	margin: 0 0 6px;
}

.hr-chat-bubble-assistant p:last-child {
	margin-bottom: 0;
}

.hr-chat-bubble-assistant strong {
	color: var(--hr-chat-text);
	font-weight: 600;
}

.hr-chat-bubble-assistant a {
	color: var(--hr-chat-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

.hr-chat-bubble-assistant a:hover {
	color: var(--hr-chat-accent-hover);
}

/* Bubble entrance animation */
.hr-chat-bubble-enter {
	animation: hrChatFadeInUp 0.25s ease forwards;
}

/* Notice text when restoring cards from a prior session */
.hr-chat-cards-notice {
	margin: 8px 0 0;
	font-family: var(--hr-chat-sans);
	font-size: 12px;
	color: var(--hr-chat-text-faint);
	font-style: italic;
}

/* ==========================================================================
   6. Typing Indicator
   ========================================================================== */

.hr-chat-typing {
	background: var(--hr-chat-bg);
	border: 1px solid var(--hr-chat-border);
	border-radius: var(--hr-chat-radius);
	align-self: flex-start;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--hr-chat-sans);
	font-size: 13px;
	color: var(--hr-chat-text-muted);
}

.hr-chat-typing-text {
	line-height: 1.4;
	font-style: italic;
}

.hr-chat-typing-dots {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.hr-chat-typing-dots span {
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hr-chat-text-muted);
	opacity: 0.25;
	animation: hrChatTypingPulse 1.2s ease-in-out infinite;
}

.hr-chat-typing-dots span:nth-child(1) { animation-delay: 0s; }
.hr-chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.hr-chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

/* ==========================================================================
   7. Property Cards
   ========================================================================== */

.hr-chat-cards {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
	margin-top: 10px;
}

.hr-chat-card {
	background: var(--hr-chat-bg);
	border: 1px solid var(--hr-chat-border);
	border-radius: var(--hr-chat-radius);
	overflow: hidden;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.hr-chat-card:hover {
	border-color: var(--hr-chat-border-strong);
	background: var(--hr-chat-bg-subtle);
}

.hr-chat-card:focus-visible {
	outline: 2px solid var(--hr-chat-accent);
	outline-offset: 2px;
}

.hr-chat-card-thumb {
	width: 25%;
	min-width: 72px;
	max-width: 90px;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}

.hr-chat-card-body {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	flex: 1;
}

.hr-chat-card-title {
	font-family: var(--hr-chat-sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--hr-chat-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.hr-chat-card-meta {
	display: flex;
	align-items: center;
	margin-top: 4px;
	font-size: 12px;
	gap: 8px;
	font-family: var(--hr-chat-sans);
}

.hr-chat-card-price {
	color: var(--hr-chat-text);
	font-weight: 600;
	white-space: nowrap;
}

.hr-chat-card-detail {
	color: var(--hr-chat-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* "View all results" link */
.hr-chat-view-all {
	display: block;
	margin-top: 10px;
	padding: 8px 0;
	font-family: var(--hr-chat-sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--hr-chat-accent);
	text-decoration: none;
	text-align: center;
	border-top: 1px solid var(--hr-chat-border);
	transition: color 0.15s ease;
}

.hr-chat-view-all:hover {
	color: var(--hr-chat-accent-hover);
	text-decoration: underline;
}

/* ==========================================================================
   8. Suggestion Chips
   ========================================================================== */

.hr-chat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.hr-chat-chip {
	background: var(--hr-chat-bg);
	border: 1px solid var(--hr-chat-border);
	border-radius: var(--hr-chat-radius-pill);
	padding: 5px 12px;
	font-family: var(--hr-chat-sans);
	font-size: 13px;
	color: var(--hr-chat-text);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	line-height: 1.4;
}

.hr-chat-chip:hover {
	background: var(--hr-chat-bg-subtle);
	border-color: var(--hr-chat-border-strong);
}

.hr-chat-chip:focus-visible {
	outline: 2px solid var(--hr-chat-accent);
	outline-offset: 2px;
}

/* ==========================================================================
   9. Input Area
   ========================================================================== */

.hr-chat-input-area {
	flex: none;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-top: 1px solid var(--hr-chat-border);
	background: var(--hr-chat-bg);
}

.hr-chat-input {
	flex: 1;
	border: 1px solid var(--hr-chat-border);
	border-radius: var(--hr-chat-radius);
	padding: 9px 12px;
	font-family: var(--hr-chat-sans);
	font-size: 14px;
	background: var(--hr-chat-bg);
	color: var(--hr-chat-text);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	line-height: 1.4;
	-webkit-appearance: none;
}

.hr-chat-input::placeholder {
	color: var(--hr-chat-text-faint);
}

.hr-chat-input:focus {
	border-color: var(--hr-chat-accent);
	box-shadow: 0 0 0 2px var(--hr-chat-accent-soft);
}

/* Mic button */
.hr-chat-mic-btn {
	width: 32px;
	height: 32px;
	border-radius: var(--hr-chat-radius);
	background: transparent;
	border: 1px solid var(--hr-chat-border);
	color: var(--hr-chat-text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hr-chat-mic-btn:hover {
	background: var(--hr-chat-bg-subtle);
	color: var(--hr-chat-text);
	border-color: var(--hr-chat-border-strong);
}

.hr-chat-mic-btn:focus-visible {
	outline: 2px solid var(--hr-chat-accent);
	outline-offset: 2px;
}

.hr-chat-mic-btn svg {
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.hr-chat-mic-btn.hr-chat-mic-active {
	background: var(--hr-chat-accent);
	color: #fff;
	border-color: var(--hr-chat-accent);
	animation: hrChatMicPulse 1.4s ease-in-out infinite;
}

/* Send button */
.hr-chat-send-btn {
	width: 32px;
	height: 32px;
	border-radius: var(--hr-chat-radius);
	background: var(--hr-chat-accent);
	color: #fff;
	border: 1px solid var(--hr-chat-accent);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.hr-chat-send-btn:hover {
	background: var(--hr-chat-accent-hover);
	border-color: var(--hr-chat-accent-hover);
}

.hr-chat-send-btn:focus-visible {
	outline: 2px solid var(--hr-chat-accent);
	outline-offset: 2px;
}

.hr-chat-send-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.hr-chat-send-btn svg {
	width: 16px;
	height: 16px;
	pointer-events: none;
}

/* ==========================================================================
   10. Mobile FAB (shown ≤768px)
   ========================================================================== */

.hr-chat-fab {
	display: none;
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--hr-chat-accent);
	color: #fff;
	border: none;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 999997;
	transition: background 0.15s ease;
	padding: 0;
}

.hr-chat-fab:hover {
	background: var(--hr-chat-accent-hover);
}

.hr-chat-fab:focus-visible {
	outline: 2px solid var(--hr-chat-accent);
	outline-offset: 3px;
}

.hr-chat-fab svg {
	width: 22px;
	height: 22px;
	pointer-events: none;
}

/* Unread indicator — red dot on the FAB / tab when the closed chatbot
   has content the user hasn't seen yet (e.g. after a mobile auto-close
   that fired before the user could read the response). */
.hr-chat-fab.hr-chat-has-unread::after,
.hr-chat-tab.hr-chat-has-unread::after {
	content: '';
	position: absolute;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #e53935;
	border: 2px solid #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	pointer-events: none;
	z-index: 1;
}

.hr-chat-fab.hr-chat-has-unread::after {
	top: 4px;
	right: 4px;
}

.hr-chat-tab.hr-chat-has-unread::after {
	top: 8px;
	right: 8px;
}

/* ==========================================================================
   11. Desktop — hide FAB, show tab (>768px)
   ========================================================================== */

@media (min-width: 769px) {
	.hr-chat-fab {
		display: none !important;
	}

	.hr-chat-tab {
		display: flex;
	}
}

/* ==========================================================================
   12. Navigation Preloader
   Shown while navigating from chat to the explorer page.
   ========================================================================== */

.hr-chat-preloader {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.hr-chat-preloader.hr-chat-preloader-visible {
	opacity: 1;
	pointer-events: auto;
}

.hr-chat-preloader-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 0 24px;
	text-align: center;
}

.hr-chat-preloader-spinner {
	width: 36px;
	height: 36px;
	border: 2px solid var(--hr-chat-border);
	border-top-color: var(--hr-chat-accent);
	border-radius: 50%;
	animation: hrChatSpin 0.8s linear infinite;
}

.hr-chat-preloader-text {
	font-family: var(--hr-chat-sans);
	font-size: 14px;
	color: var(--hr-chat-text-muted);
	letter-spacing: 0.01em;
}

.hr-chat-preloader-text::after {
	content: '';
	display: inline-block;
	width: 1.2em;
	text-align: left;
	animation: hrChatPreloaderDots 1.4s steps(4, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
	.hr-chat-preloader-spinner {
		animation: none;
		border-top-color: var(--hr-chat-border);
	}
	.hr-chat-preloader-text::after {
		animation: none;
		content: '...';
	}
}

/* ==========================================================================
   13. Toast Notification
   ========================================================================== */

.hr-chat-toast {
	position: absolute;
	bottom: 70px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--hr-chat-text);
	color: #fff;
	padding: 8px 14px;
	border-radius: var(--hr-chat-radius);
	font-family: var(--hr-chat-sans);
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
	z-index: 10;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.hr-chat-toast.hr-chat-toast-visible {
	opacity: 1;
	pointer-events: auto;
}

.hr-chat-toast-undo {
	background: none;
	border: none;
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	font-family: var(--hr-chat-sans);
	cursor: pointer;
	margin-left: 10px;
	padding: 0;
	text-decoration: underline;
}

/* ==========================================================================
   14. Mobile — full-screen slide-up drawer (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
	.hr-chat-tab {
		display: none !important;
	}

	.hr-chat-fab {
		display: flex;
	}

	.hr-chat-drawer {
		position: fixed;
		inset: 0;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
		max-height: none;
		min-height: 0;
		border: none;
		border-radius: 0;
		box-shadow: none;
		transform: translateY(100%);
		transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		            visibility 0s linear 0.35s;
	}

	.hr-chat-drawer.hr-chat-open {
		transform: translateY(0);
		transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		            visibility 0s linear 0s;
	}

	.hr-chat-header {
		padding-top: calc(14px + env(safe-area-inset-top));
	}

	.hr-chat-input-area {
		padding-bottom: calc(10px + env(safe-area-inset-bottom));
	}
}

/* ==========================================================================
   15. Accessibility — Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.hr-chat-drawer,
	.hr-chat-tab,
	.hr-chat-fab,
	.hr-chat-close-btn,
	.hr-chat-chip,
	.hr-chat-card,
	.hr-chat-mic-btn,
	.hr-chat-send-btn,
	.hr-chat-input,
	.hr-chat-toast {
		transition: none;
	}

	.hr-chat-bubble-enter {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.hr-chat-typing span {
		animation: none;
		opacity: 0.6;
	}

	.hr-chat-mic-btn.hr-chat-mic-active {
		animation: none;
	}
}
