::-ms-expand {
	display: none;
}
:root {
	--bg: #f4f4f5;
	--border: #e4e4e7;
	--error: #ef4444;
	--focus: rgba(37, 99, 235, 0.2);
	--muted: #71717a;
	--on-primary: #ffffff;
	--primary: #2563eb;
	--success: #10b981;
	--surface: #ffffff;
	--text: #18181b;
	--warn: #f59e0b;
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}
*,
::before,
::after {
	box-sizing: border-box;
}
a,
area,
button,
input,
label,
select,
summary,
textarea,
[tabindex] {
	touch-action: manipulation;
}
body {
	background: ;
	color: var(--text);
	font-family: 'Manrope', sans-serif;
	-webkit-font-smoothing: antialiased;
}
button {
	cursor: pointer;
}
button,
input,
textarea {
	font: inherit;
}
button:focus,
input:focus,
select:focus,
textarea:focus,
[contenteditable]:focus {
	outline: 0;
}
html,
body {
	height: 100%;
	overflow: hidden;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}
input[type="number"] {
	-moz-appearance: textfield;
}
svg {
	display: block;
}
table {
	border-collapse: collapse;
}
.agent-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.agent-name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.agent-profile {
	gap: 10px;
	justify-content: flex-start;
	min-width: 0;
}
.agent-status {
	color: var(--muted);
	font-size: 12px;
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.app-frame {
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}
.app-shell {
	align-items: center;
	display: flex;
	height: 100dvh;
	justify-content: center;
	padding: 0;
	width: 100vw;
}
.attach-button {
	align-self: flex-end;
	margin-bottom: 4px;
}
.avatar {
	background-color: var(--bg);
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--muted);
	height: 40px;
	width: 40px;
}
.avatar-container {
	position: relative;
}
.chat-header {
	align-items: center;
	background-color: var(--surface);
	border-bottom: 1px solid var(--border);
	display: flex;
	flex-shrink: 0;
	justify-content: space-between;
	padding: 12px 16px;
	position: relative;
	z-index: 10;
}
.chat-history {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
	overflow-y: auto;
	padding: 20px 16px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}
.chat-screen {
	background-color: var(--surface);
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 auto;
	overflow: hidden;
	position: relative;
	width: 100%;
}
.composer-actions {
	align-items: flex-end;
	display: flex;
}
.composer-area {
	background-color: var(--surface);
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 12px;
	padding: 14px 16px 16px 16px;
}
.composer-form {
	align-items: flex-end;
	display: flex;
	gap: 10px;
}
.date-separator {
	margin: 8px 0;
	text-align: center;
}
.date-separator span {
	background-color: var(--bg);
	border-radius: 999px;
	color: var(--muted);
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
}
.dot {
	animation: typingPulse 1.2s infinite ease-in-out;
	background-color: var(--muted);
	border-radius: 999px;
	display: block;
	height: 8px;
	opacity: .45;
	width: 8px;
}
.dot:nth-child(2){
	animation-delay: .15s;
}
.dot:nth-child(3){
	animation-delay: .3s;
}
.header-left {
	gap: 12px;
	min-width: 0;
}
.header-left,
.header-right,
.agent-profile,
.avatar,
.message-avatar,
.icon-button,
.send-button,
.quick-reply-chip {
	align-items: center;
	display: flex;
	justify-content: center;
}
.icon-button {
	background: none;
	border: none;
	border-radius: 999px;
	color: var(--muted);
	flex-shrink: 0;
	padding: 8px;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.icon-button:active,
.send-button:active,
.quick-reply-chip:active {
	transform: scale(.97);
}
.icon-button:focus-visible,
.send-button:focus-visible,
.message-input:focus-visible,
.quick-reply-chip:focus-visible {
	box-shadow: 0 0 0 3px var(--focus);
	outline: none;
}
.icon-button:hover,
.icon-button:focus-visible {
	background-color: var(--bg);
	color: var(--text);
	outline: none;
}
.input-wrapper {
	background-color: #f8f8fb;
	border: 1px solid var(--border);
	border-radius: 24px;
	display: flex;
	flex: 1;
	gap: 12px;
	padding: 10px 10px 10px 14px;
}
.input-wrapper:focus-within {
	border-color: #c7d3f8;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.message-author {
	color: var(--text);
	font-size: 14px;
	font-weight: 700;
}
.message-avatar {
	background-color: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--muted);
	flex-shrink: 0;
	height: 36px;
	width: 36px;
}
.message-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.message-input {
	background: transparent;
	border: none;
	color: var(--text);
	flex: 1;
	line-height: 1.5;
	max-height: 160px;
	min-height: 24px;
	outline: none;
	resize: none;
}
.message-input::placeholder {
	color: #9494a4;
}
.message-meta {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.message-row {
	display: flex;
	gap: 12px;
	width: 100%;
}
.message-row.has-avatar .message-content {
	max-width: min(100%, 500px);
}
.message-row.incoming .message-content {
	align-items: flex-start;
	max-width: min(100%, 540px);
}
.message-row.outgoing {
	justify-content: flex-end;
}
.message-row.outgoing .message-content {
	align-items: flex-end;
	max-width: min(100%, 540px);
}
.message-row.outgoing .message-text {
	background: linear-gradient(180deg, #2f6ef5 0%, var(--primary) 100%);
	border-color: transparent;
	color: var(--on-primary);
}
.message-text {
	background-color: #f8f8fb;
	border: 1px solid var(--border);
	border-radius: 18px;
	color: var(--text);
	font-size: 15px;
	line-height: 1.6;
	max-width: 100%;
	padding: 12px 14px;
	width: fit-content;
}
.message-text p {
	overflow-wrap: anywhere;
}
.message-text.typing {
	align-items: center;
	display: inline-flex;
	gap: 4px;
	min-height: 44px;
	padding: 0 14px;
}
.message-time {
	color: var(--muted);
	font-size: 12px;
}
.not-found-card {
	background-color: var(--surface);
	border: 1px solid var(--border);
	border-radius: 24px;
	box-shadow: 0 30px 80px -40px rgba(24, 24, 27, .24);
	margin: auto;
	max-width: 420px;
	padding: 32px;
	text-align: center;
	width: calc(100% - 32px);
}
.not-found-code {
	color: var(--primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	margin-bottom: 10px;
	text-transform: uppercase;
}
.not-found-copy {
	color: var(--muted);
	line-height: 1.6;
	margin-bottom: 20px;
}
.not-found-link {
	background-color: var(--primary);
	border-radius: 999px;
	color: var(--on-primary);
	display: inline-flex;
	font-weight: 700;
	padding: 12px 18px;
	text-decoration: none;
}
.not-found-title {
	font-size: clamp(28px, 4vw, 38px);
	line-height: 1.1;
	margin-bottom: 12px;
}
.page-main {
	display: flex;
	height: 100%;
	width: 100%;
}
.pre-composer-helpers {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
}
.pre-composer-helpers::-webkit-scrollbar {
	display: none;
}
.quick-reply-chip {
	background-color: #f8f8fb;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text);
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 14px;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.quick-reply-chip:hover {
	background-color: #eff3ff;
	border-color: #c9d6ff;
	color: var(--primary);
}
.send-button {
	background: linear-gradient(180deg, #2f6ef5 0%, var(--primary) 100%);
	border: none;
	border-radius: 999px;
	color: var(--on-primary);
	gap: 8px;
	padding: 11px 14px;
	transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.send-button:not([disabled]):hover {
	box-shadow: 0 12px 24px -14px rgba(37, 99, 235, .75);
}
.send-button[disabled] {
	cursor: not-allowed;
	opacity: .45;
	transform: none;
}
.status-indicator {
	border: 2px solid var(--surface);
	border-radius: 999px;
	bottom: 0;
	height: 10px;
	position: absolute;
	right: 0;
	width: 10px;
}
.status-indicator.offline {
	background-color: var(--muted);
}
.status-indicator.online {
	background-color: var(--success);
}
.typing-indicator-container.hidden {
	display: none;
}
@keyframes typingPulse {
	0%,
	80%,
	100% {
		opacity: .35;
		transform: translateY(0);
	}
	40% {
		opacity: 1;
		transform: translateY(-2px);
	}
}
@media (max-width: 767px){
	.chat-header {
		padding: 12px;
	}
	.chat-history {
		padding: 16px 12px;
	}
	.composer-area {
		padding: 12px;
	}
	.input-wrapper {
		gap: 8px;
		padding-right: 8px;
	}
	.message-row.has-avatar .message-content,
	.message-row.incoming .message-content,
	.message-row.outgoing .message-content {
		max-width: 100%;
	}
	.send-button span {
		display: none;
	}
}
@media (min-width: 768px){
	.app-shell {
		padding: 24px;
	}
	.chat-screen {
		border: 1px solid var(--border);
		border-radius: 20px;
		box-shadow: 0 36px 90px -52px rgba(24, 24, 27, .28);
		height: min(900px, 90vh);
		max-width: 880px;
	}
}