.gridchat-widget {
	--gridai-primary: #df1f38;
	--gridai-primary-hover: #c91b31;
	--gridai-secondary: #008ddf;
	--gridai-text: #1e272e;
	--gridai-surface: #ffffff;
	--gridai-bg-1: #dfe4ea;
	--gridai-bg-2: #f5f5f5;
	--gridai-border: #cfd6de;
	position: fixed;
	bottom: 24px;
	z-index: 999999;
	font-family: Arial, sans-serif;
	color: var(--gridai-text);
}

.gridchat-widget--right { right: 24px; }
.gridchat-widget--left { left: 24px; }

.gridchat-widget .gridchat-launcher {
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--gridai-primary) !important;
	background-color: var(--gridai-primary) !important;
	color: #ffffff !important;
	padding: 15px 22px !important;
	font-weight: 700 !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
	text-shadow: none !important;
	cursor: pointer !important;
}

.gridchat-widget .gridchat-launcher:hover,
.gridchat-widget .gridchat-launcher:focus {
	border-color: var(--gridai-primary-hover) !important;
	background: var(--gridai-primary-hover) !important;
	background-color: var(--gridai-primary-hover) !important;
	color: #ffffff !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
	outline: none !important;
}

.gridchat-panel {
	position: absolute;
	bottom: 64px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 120px);
	background: var(--gridai-surface);
	border: 1px solid var(--gridai-border);
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.gridchat-widget--right .gridchat-panel { right: 0; }
.gridchat-widget--left .gridchat-panel { left: 0; }

.gridchat-header {
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 18px;
	background: var(--gridai-primary);
	color: #ffffff;
}

.gridchat-header__identity {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.gridchat-header__avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 38px;
}

.gridchat-header__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gridchat-header__text strong {
	font-size: 15px;
	line-height: 1.2;
	color: #ffffff;
}

.gridchat-header__text span {
	font-size: 12px;
	line-height: 1.2;
	opacity: 0.85;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #ffffff;
}

.gridchat-widget .gridchat-header button[data-gridchat-close] {
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid var(--gridai-border) !important;
	border-radius: 6px !important;
	background: var(--gridai-surface) !important;
	background-color: var(--gridai-surface) !important;
	color: #000000 !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
	flex: 0 0 28px !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.gridchat-widget .gridchat-header button[data-gridchat-close]:hover,
.gridchat-widget .gridchat-header button[data-gridchat-close]:focus {
	background: var(--gridai-surface) !important;
	background-color: var(--gridai-surface) !important;
	color: #000000 !important;
	border-color: var(--gridai-secondary) !important;
	box-shadow: none !important;
	outline: none !important;
}

.gridchat-body { height: calc(100% - 90px); }

.gridchat-lead,
.gridchat-chat {
	height: 100%;
	padding: 18px;
	box-sizing: border-box;
}

.gridchat-lead form {
	display: grid;
	gap: 12px;
}

.gridchat-lead label {
	display: grid;
	gap: 6px;
	font-weight: 600;
	color: var(--gridai-text);
}

.gridchat-widget .gridchat-lead input,
.gridchat-widget .gridchat-compose textarea,
.gridchat-widget .gridchat-survey textarea {
	width: 100% !important;
	box-sizing: border-box !important;
	border: 1px solid var(--gridai-border) !important;
	border-radius: 6px !important;
	background: var(--gridai-surface) !important;
	color: var(--gridai-text) !important;
	padding: 10px !important;
	box-shadow: none !important;
	outline: none !important;
}

.gridchat-widget .gridchat-lead input:focus,
.gridchat-widget .gridchat-compose textarea:focus,
.gridchat-widget .gridchat-survey textarea:focus {
	border-color: var(--gridai-secondary) !important;
	box-shadow: 0 0 0 1px var(--gridai-secondary) !important;
}

.gridchat-widget .gridchat-lead form button[type="submit"],
.gridchat-widget .gridchat-compose button[type="submit"],
.gridchat-widget .gridchat-survey-actions button[type="submit"] {
	border: 1px solid var(--gridai-primary) !important;
	border-radius: 6px !important;
	background: var(--gridai-primary) !important;
	background-color: var(--gridai-primary) !important;
	color: #ffffff !important;
	padding: 10px 14px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
}

.gridchat-widget .gridchat-lead form button[type="submit"]:hover,
.gridchat-widget .gridchat-lead form button[type="submit"]:focus,
.gridchat-widget .gridchat-compose button[type="submit"]:hover,
.gridchat-widget .gridchat-compose button[type="submit"]:focus,
.gridchat-widget .gridchat-survey-actions button[type="submit"]:hover,
.gridchat-widget .gridchat-survey-actions button[type="submit"]:focus {
	border-color: var(--gridai-primary-hover) !important;
	background: var(--gridai-primary-hover) !important;
	background-color: var(--gridai-primary-hover) !important;
	color: #ffffff !important;
	box-shadow: none !important;
	outline: none !important;
}

.gridchat-chat {
	display: flex;
	flex-direction: column;
}

.gridchat-messages {
	flex: 1;
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: 10px;
}

.gridchat-message {
	max-width: 84%;
	padding: 10px 12px;
	border-radius: 12px;
	line-height: 1.45;
	white-space: pre-wrap;
}

.gridchat-message--user {
	align-self: flex-end;
	background: var(--gridai-secondary);
	color: #ffffff;
}

.gridchat-message--assistant {
	align-self: flex-start;
	background: var(--gridai-bg-2);
	color: var(--gridai-text);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.gridchat-message--assistant a {
	color: var(--gridai-secondary) !important;
	text-decoration: underline !important;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.gridchat-message--assistant a:hover,
.gridchat-message--assistant a:focus {
	color: var(--gridai-primary) !important;
}

.gridchat-sources {
	font-size: 12px;
	margin-top: 6px;
}

.gridchat-sources a { display: block; }

.gridchat-compose {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}

.gridchat-compose textarea { resize: none; }

.gridchat-error {
	color: #b42318;
	font-size: 13px;
}

.gridchat-thinking { opacity: 0.65; }

.gridchat-powered-by {
	height: 26px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 4px 10px;
	border-top: 1px solid #eef1f4;
	background: var(--gridai-surface);
	color: #6b7280;
	font-size: 10px;
	line-height: 1.2;
}

.gridchat-powered-by a {
	color: var(--gridai-primary) !important;
	text-decoration: none !important;
	font-weight: 700;
}

.gridchat-powered-by a:hover,
.gridchat-powered-by a:focus {
	color: var(--gridai-primary-hover) !important;
	text-decoration: underline !important;
}

.gridchat-feedback {
	display: flex;
	gap: 4px;
	margin-top: 8px;
}

.gridchat-widget .gridchat-feedback-btn {
	border: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--gridai-text) !important;
	padding: 2px 4px !important;
	cursor: pointer !important;
	opacity: 0.55;
	font-size: 15px !important;
	box-shadow: none !important;
}

.gridchat-widget .gridchat-feedback-btn:hover,
.gridchat-widget .gridchat-feedback-btn.is-selected {
	opacity: 1;
	color: var(--gridai-primary) !important;
}

.gridchat-widget .gridchat-feedback-btn:disabled:not(.is-selected) { cursor: default !important; }

.gridchat-survey {
	height: 100%;
	padding: 18px;
	box-sizing: border-box;
	overflow: auto;
	color: var(--gridai-text);
}

.gridchat-survey h3 {
	margin: 0 0 16px;
	color: var(--gridai-text);
}

.gridchat-survey form {
	display: grid;
	gap: 16px;
}

.gridchat-survey fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

.gridchat-survey legend {
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--gridai-text);
}

.gridchat-survey-rating,
.gridchat-survey-choice {
	display: flex;
	gap: 8px;
}

.gridchat-survey-rating label input,
.gridchat-helpful label input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.gridchat-survey-rating label span {
	display: flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--gridai-border);
	border-radius: 8px;
	background: var(--gridai-surface);
	color: var(--gridai-text);
	cursor: pointer;
}

.gridchat-survey-rating label input:checked + span {
	background: var(--gridai-primary);
	color: #ffffff;
	border-color: var(--gridai-primary);
}

.gridchat-survey-rating label input:focus + span {
	border-color: var(--gridai-secondary);
	box-shadow: 0 0 0 1px var(--gridai-secondary);
}

.gridchat-survey-choice label {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--gridai-text);
}

.gridchat-widget .gridchat-survey-choice input[type="radio"] {
	accent-color: var(--gridai-primary);
}

.gridchat-survey > form > label {
	display: grid;
	gap: 6px;
	font-weight: 600;
	color: var(--gridai-text);
}

.gridchat-survey textarea { resize: vertical; }

.gridchat-survey-actions {
	display: flex;
	gap: 8px;
}

.gridchat-widget .gridchat-survey-actions .gridchat-survey-skip {
	border: 1px solid var(--gridai-border) !important;
	border-radius: 6px !important;
	background: var(--gridai-surface) !important;
	background-color: var(--gridai-surface) !important;
	color: var(--gridai-text) !important;
	padding: 10px 14px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.gridchat-widget .gridchat-survey-actions .gridchat-survey-skip:hover,
.gridchat-widget .gridchat-survey-actions .gridchat-survey-skip:focus {
	border-color: var(--gridai-secondary) !important;
	background: var(--gridai-surface) !important;
	background-color: var(--gridai-surface) !important;
	color: var(--gridai-secondary) !important;
	box-shadow: none !important;
	outline: none !important;
}

.gridchat-survey-thanks {
	padding: 24px 0;
	text-align: center;
	color: var(--gridai-text);
}

.gridchat-helpful {
	display: flex;
	gap: 8px;
}

.gridchat-helpful label span {
	display: flex;
	width: 40px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--gridai-border);
	border-radius: 8px;
	background: var(--gridai-surface);
	cursor: pointer;
	font-size: 18px;
}

.gridchat-helpful label input:checked + span {
	background: var(--gridai-bg-2);
	border-color: var(--gridai-primary);
}

.gridchat-helpful label input:focus + span {
	border-color: var(--gridai-secondary);
	box-shadow: 0 0 0 1px var(--gridai-secondary);
}

@media (max-width: 480px) {
	.gridchat-widget { bottom: 12px; }
	.gridchat-widget--right { right: 12px; }
	.gridchat-widget--left { left: 12px; }
	.gridchat-panel {
		width: calc(100vw - 24px);
		height: 70vh;
	}
}

/* Beta 13: keep GridChat view state authoritative regardless of theme/plugin CSS. */
.gridchat-widget [hidden] {
	display: none !important;
}

.gridchat-complete {
	height: 100%;
	padding: 24px 18px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	text-align: center;
	color: var(--gridai-text);
}

.gridchat-complete p {
	margin: 0;
}

.gridchat-widget .gridchat-complete button[data-gridchat-new-chat] {
	border: 1px solid var(--gridai-primary) !important;
	border-radius: 6px !important;
	background: var(--gridai-primary) !important;
	background-color: var(--gridai-primary) !important;
	color: #ffffff !important;
	padding: 10px 14px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
}

.gridchat-widget .gridchat-complete button[data-gridchat-new-chat]:hover,
.gridchat-widget .gridchat-complete button[data-gridchat-new-chat]:focus {
	border-color: var(--gridai-primary-hover) !important;
	background: var(--gridai-primary-hover) !important;
	background-color: var(--gridai-primary-hover) !important;
	color: #ffffff !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Beta 15: explicit close-confirmation state before survey. */
.gridchat-closing {
	height: 100%;
	padding: 24px 18px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	color: var(--gridai-text);
}

.gridchat-closing h3,
.gridchat-closing p {
	margin: 0;
}

.gridchat-closing-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gridchat-widget .gridchat-closing-actions button[data-gridchat-closing-resolved] {
	border: 1px solid var(--gridai-primary) !important;
	border-radius: 6px !important;
	background: var(--gridai-primary) !important;
	background-color: var(--gridai-primary) !important;
	color: #ffffff !important;
	padding: 10px 14px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
}

.gridchat-widget .gridchat-closing-actions button[data-gridchat-closing-resolved]:hover,
.gridchat-widget .gridchat-closing-actions button[data-gridchat-closing-resolved]:focus {
	border-color: var(--gridai-primary-hover) !important;
	background: var(--gridai-primary-hover) !important;
	background-color: var(--gridai-primary-hover) !important;
	color: #ffffff !important;
	box-shadow: none !important;
	outline: none !important;
}

.gridchat-widget .gridchat-closing-actions .gridchat-closing-continue {
	border: 1px solid var(--gridai-border) !important;
	border-radius: 6px !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: var(--gridai-text) !important;
	padding: 10px 14px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
}

.gridchat-widget .gridchat-closing-actions .gridchat-closing-continue:hover,
.gridchat-widget .gridchat-closing-actions .gridchat-closing-continue:focus {
	border-color: var(--gridai-secondary) !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: var(--gridai-text) !important;
	box-shadow: none !important;
	outline: none !important;
}

/* GridChat 1.0 appearance modes */
.gridchat-gradient--grid-blue{--gridai-primary:#008ddf;--gridai-primary-hover:#0079bf;--gridai-secondary:#df1f38}
.gridchat-gradient--sunset{--gridai-primary:#df1f38;--gridai-primary-hover:#c91b31;--gridai-secondary:#ff8a3d}
.gridchat-gradient--ocean{--gridai-primary:#0077b6;--gridai-primary-hover:#005f91;--gridai-secondary:#48cae4}
.gridchat-gradient--violet{--gridai-primary:#7c3aed;--gridai-primary-hover:#6929cf;--gridai-secondary:#df1f38}
.gridchat-gradient--lime{--gridai-primary:#65a30d;--gridai-primary-hover:#4d7c0f;--gridai-secondary:#008ddf}
.gridchat-theme--dark{--gridai-text:#f5f7fa;--gridai-surface:#17212b;--gridai-bg-1:#202b36;--gridai-bg-2:#25313d;--gridai-border:#3a4652}
@media(prefers-color-scheme:dark){.gridchat-theme--system{--gridai-text:#f5f7fa;--gridai-surface:#17212b;--gridai-bg-1:#202b36;--gridai-bg-2:#25313d;--gridai-border:#3a4652}}
@media(max-width:767px){.gridchat-hide-mobile{display:none!important}}

/* GridChat 1.0.3 Appearance */
.gridchat-gradient--grid-blue{--gridchat-brand-bg:linear-gradient(135deg,#008ddf,#78cfff);--gridchat-brand-bg-hover:linear-gradient(135deg,#0079bf,#56b9ee)}
.gridchat-gradient--sunset{--gridchat-brand-bg:linear-gradient(135deg,#df1f38,#ff8a3d);--gridchat-brand-bg-hover:linear-gradient(135deg,#c91b31,#e8752e)}
.gridchat-gradient--ocean{--gridchat-brand-bg:linear-gradient(135deg,#0077b6,#48cae4);--gridchat-brand-bg-hover:linear-gradient(135deg,#005f91,#35b6d0)}
.gridchat-gradient--violet{--gridchat-brand-bg:linear-gradient(135deg,#7c3aed,#df1f38);--gridchat-brand-bg-hover:linear-gradient(135deg,#6929cf,#c91b31)}
.gridchat-gradient--lime{--gridchat-brand-bg:linear-gradient(135deg,#84cc16,#008ddf);--gridchat-brand-bg-hover:linear-gradient(135deg,#65a30d,#0079bf)}
.gridchat-widget .gridchat-launcher,.gridchat-header,.gridchat-widget .gridchat-lead form button[type="submit"],.gridchat-widget .gridchat-compose button[type="submit"],.gridchat-widget .gridchat-survey-actions button[type="submit"],.gridchat-widget .gridchat-closing-actions button[data-gridchat-closing-resolved],.gridchat-widget .gridchat-complete button[data-gridchat-new-chat]{background:var(--gridchat-brand-bg)!important;background-color:transparent!important;border-color:transparent!important;color:#fff!important}
.gridchat-widget .gridchat-launcher:hover,.gridchat-widget .gridchat-launcher:focus,.gridchat-widget .gridchat-lead form button[type="submit"]:hover,.gridchat-widget .gridchat-lead form button[type="submit"]:focus,.gridchat-widget .gridchat-compose button[type="submit"]:hover,.gridchat-widget .gridchat-compose button[type="submit"]:focus,.gridchat-widget .gridchat-survey-actions button[type="submit"]:hover,.gridchat-widget .gridchat-survey-actions button[type="submit"]:focus,.gridchat-widget .gridchat-closing-actions button[data-gridchat-closing-resolved]:hover,.gridchat-widget .gridchat-closing-actions button[data-gridchat-closing-resolved]:focus,.gridchat-widget .gridchat-complete button[data-gridchat-new-chat]:hover,.gridchat-widget .gridchat-complete button[data-gridchat-new-chat]:focus{background:var(--gridchat-brand-bg-hover)!important;background-color:transparent!important;border-color:transparent!important;color:#fff!important}
.gridchat-header__avatar--built-in{display:grid;place-items:center;background:rgba(255,255,255,.18);color:#fff;font-weight:700}
.gridchat-widget.gridchat-launcher-shape--circle .gridchat-launcher{width:54px!important;height:54px!important;min-width:54px!important;padding:0!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important}.gridchat-widget.gridchat-launcher-shape--rounded .gridchat-launcher{width:58px!important;height:54px!important;min-width:58px!important;padding:0!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important}.gridchat-widget.gridchat-launcher-shape--pill .gridchat-launcher{min-width:92px!important;height:52px!important;padding:0 18px!important;border-radius:999px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}.gridchat-launcher__icon{font-size:18px;line-height:1}.gridchat-launcher__label{font-weight:700}
.gridchat-panel.gridchat-animation--none{animation:none!important}.gridchat-panel.gridchat-animation--fade:not([hidden]){animation:gridchatFadeIn .28s ease both}.gridchat-panel.gridchat-animation--scale:not([hidden]){animation:gridchatScaleIn .3s cubic-bezier(.2,.8,.2,1) both}.gridchat-panel.gridchat-animation--slide-up:not([hidden]){animation:gridchatSlideUp .32s ease both}@keyframes gridchatFadeIn{from{opacity:0}to{opacity:1}}@keyframes gridchatScaleIn{from{opacity:0;transform:scale(.94);transform-origin:bottom right}to{opacity:1;transform:scale(1)}}@keyframes gridchatSlideUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

/* GridChat 1.0.3 shared admin-preview/frontend component */
.gridchat-widget {
	--gridchat-brand-bg: linear-gradient(135deg,#a9132c 0%,#df1f38 55%,#f26375 100%);
	--gridchat-brand-bg-hover: linear-gradient(135deg,#8f1026 0%,#c91b31 58%,#e45468 100%);
	--gridchat-home-overlay: linear-gradient(to bottom,rgba(255,255,255,.20) 0%,rgba(255,255,255,.72) 34%,#ffffff 58%);
}
.gridchat-gradient--grid-red{--gridchat-brand-bg:linear-gradient(135deg,#a9132c 0%,#df1f38 55%,#f26375 100%);--gridchat-brand-bg-hover:linear-gradient(135deg,#8f1026 0%,#c91b31 58%,#e45468 100%)}
.gridchat-gradient--grid-blue{--gridchat-brand-bg:linear-gradient(135deg,#008ddf,#78cfff);--gridchat-brand-bg-hover:linear-gradient(135deg,#0079bf,#56b9ee)}
.gridchat-gradient--sunset{--gridchat-brand-bg:linear-gradient(135deg,#df1f38,#ff8a3d);--gridchat-brand-bg-hover:linear-gradient(135deg,#c91b31,#e8752e)}
.gridchat-gradient--ocean{--gridchat-brand-bg:linear-gradient(135deg,#0077b6,#48cae4);--gridchat-brand-bg-hover:linear-gradient(135deg,#005f91,#35b6d0)}
.gridchat-gradient--violet{--gridchat-brand-bg:linear-gradient(135deg,#7c3aed,#df1f38);--gridchat-brand-bg-hover:linear-gradient(135deg,#6929cf,#c91b31)}
.gridchat-gradient--lime{--gridchat-brand-bg:linear-gradient(135deg,#84cc16,#008ddf);--gridchat-brand-bg-hover:linear-gradient(135deg,#65a30d,#0079bf)}

.gridchat-panel {
	display: flex;
	flex-direction: column;
	width: 360px;
	height: 570px;
	border-radius: 28px;
	background: var(--gridai-surface);
	border: 1px solid rgba(207,214,222,.9);
	box-shadow: 0 18px 50px rgba(20,35,50,.20);
}
.gridchat-header {
	flex: 0 0 68px;
	height: 68px;
	padding: 0 18px;
	background: var(--gridchat-brand-bg) !important;
}
.gridchat-header__avatar {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255,255,255,.18);
	color: #fff;
	font-weight: 700;
	overflow: hidden;
}
.gridchat-header__avatar img { width:100%;height:100%;object-fit:cover;display:block; }
.gridchat-widget .gridchat-header button[data-gridchat-close] {
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	min-height: 30px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255,255,255,.16) !important;
	color: #ffffff !important;
	font-size: 17px !important;
}
.gridchat-widget .gridchat-header button[data-gridchat-close]:hover,
.gridchat-widget .gridchat-header button[data-gridchat-close]:focus {
	background: rgba(255,255,255,.26) !important;
	color: #ffffff !important;
	border: 0 !important;
}
.gridchat-body {
	position: relative;
	flex: 1 1 auto;
	height: auto;
	min-height: 0;
	overflow: hidden;
	background: var(--gridai-surface);
}
.gridchat-home {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	background: var(--gridchat-brand-bg);
	overflow: auto;
}
.gridchat-home::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--gridchat-home-overlay);
	pointer-events: none;
}
.gridchat-home__content {
	position: relative;
	z-index: 1;
	padding: 24px 22px 18px;
}
.gridchat-home h2 {
	margin: 0 0 4px;
	font-size: 29px;
	line-height: 1.1;
	color: var(--gridai-text);
}
.gridchat-home h3 {
	margin: 0 0 9px;
	font-size: 20px;
	line-height: 1.2;
	color: var(--gridai-text);
}
.gridchat-home p {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #52606d;
}
.gridchat-widget .gridchat-home__cta {
	width: 100% !important;
	margin: 24px 0 16px !important;
	padding: 15px 16px !important;
	border: 0 !important;
	border-radius: 15px !important;
	background: var(--gridchat-brand-bg) !important;
	color: #fff !important;
	font-weight: 700 !important;
	text-align: left !important;
	box-shadow: 0 8px 18px rgba(20,35,50,.10) !important;
	cursor: pointer !important;
}
.gridchat-home__online {
	display: grid;
	grid-template-columns: 16px 1fr;
	padding: 13px 14px;
	border: 1px solid #e2e7ec;
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(20,35,50,.04);
}
.gridchat-home__online-dot {
	width: 8px;
	height: 8px;
	margin-top: 5px;
	border-radius: 50%;
	background: #55d6ad;
}
.gridchat-home__online strong { font-size:13px;color:var(--gridai-text); }
.gridchat-home__online small { grid-column:2;font-size:11px;color:#7a8591; }
.gridchat-home__prompt-label { margin:20px 0 8px;font-size:11px;color:#66727f; }
.gridchat-home__prompts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.gridchat-widget .gridchat-home__prompts button {
	min-height: 54px !important;
	padding: 9px 10px !important;
	border: 1px solid #e1e6eb !important;
	border-radius: 10px !important;
	background: rgba(255,255,255,.90) !important;
	color: #394552 !important;
	font-size: 12px !important;
	line-height: 1.35 !important;
	text-align: left !important;
	box-shadow: none !important;
	cursor: pointer !important;
}
.gridchat-lead,
.gridchat-chat,
.gridchat-closing,
.gridchat-survey,
.gridchat-complete {
	height: 100%;
	box-sizing: border-box;
	background: var(--gridai-surface);
}
.gridchat-lead,.gridchat-chat { padding:18px; }
.gridchat-tabs {
	flex: 0 0 54px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	border-top: 1px solid #e7ebef;
	background: var(--gridai-surface);
}
.gridchat-widget .gridchat-tabs button {
	border: 0 !important;
	background: transparent !important;
	color: #64717e !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	cursor: pointer !important;
}
.gridchat-widget .gridchat-tabs button.is-active { color: var(--gridai-secondary) !important; }
.gridchat-powered-by { flex:0 0 22px;height:22px;min-height:22px;padding:3px 10px; }

.gridchat-widget .gridchat-launcher,
.gridchat-widget .gridchat-lead form button[type="submit"],
.gridchat-widget .gridchat-compose button[type="submit"],
.gridchat-widget .gridchat-survey-actions button[type="submit"],
.gridchat-widget .gridchat-closing-actions button[data-gridchat-closing-resolved],
.gridchat-widget .gridchat-complete button[data-gridchat-new-chat] {
	background: var(--gridchat-brand-bg) !important;
	background-color: transparent !important;
	border-color: transparent !important;
	color: #fff !important;
}
.gridchat-widget .gridchat-launcher:hover,
.gridchat-widget .gridchat-launcher:focus,
.gridchat-widget .gridchat-lead form button[type="submit"]:hover,
.gridchat-widget .gridchat-lead form button[type="submit"]:focus,
.gridchat-widget .gridchat-compose button[type="submit"]:hover,
.gridchat-widget .gridchat-compose button[type="submit"]:focus,
.gridchat-widget .gridchat-survey-actions button[type="submit"]:hover,
.gridchat-widget .gridchat-survey-actions button[type="submit"]:focus,
.gridchat-widget .gridchat-closing-actions button[data-gridchat-closing-resolved]:hover,
.gridchat-widget .gridchat-closing-actions button[data-gridchat-closing-resolved]:focus,
.gridchat-widget .gridchat-complete button[data-gridchat-new-chat]:hover,
.gridchat-widget .gridchat-complete button[data-gridchat-new-chat]:focus {
	background: var(--gridchat-brand-bg-hover) !important;
	background-color: transparent !important;
	border-color: transparent !important;
	color: #fff !important;
}

.gridchat-theme--dark { --gridchat-home-overlay:linear-gradient(to bottom,rgba(17,24,39,.18) 0%,rgba(24,33,44,.84) 38%,#17212b 60%); }
.gridchat-theme--dark .gridchat-home p,
.gridchat-theme--dark .gridchat-home__prompt-label { color:#c0cad4; }
.gridchat-theme--dark .gridchat-home__online,
.gridchat-theme--dark .gridchat-home__prompts button { background:#111827 !important;border-color:#2c3745 !important;color:#f5f7fa !important; }
.gridchat-theme--dark .gridchat-home__online small { color:#aeb9c5; }
@media(prefers-color-scheme:dark){
	.gridchat-theme--system{--gridchat-home-overlay:linear-gradient(to bottom,rgba(17,24,39,.18) 0%,rgba(24,33,44,.84) 38%,#17212b 60%)}
	.gridchat-theme--system .gridchat-home p,.gridchat-theme--system .gridchat-home__prompt-label{color:#c0cad4}
	.gridchat-theme--system .gridchat-home__online,.gridchat-theme--system .gridchat-home__prompts button{background:#111827!important;border-color:#2c3745!important;color:#f5f7fa!important}
	.gridchat-theme--system .gridchat-home__online small{color:#aeb9c5}
}

/* Shared component in the admin preview: no separate mock markup or visual rules. */
.gridchat-widget--preview {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	z-index: 1;
	width: 350px;
	padding-bottom: 70px;
}
.gridchat-widget--preview .gridchat-panel {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	width: 350px;
	height: 570px;
	max-width: none;
	max-height: none;
	display: flex !important;
}
.gridchat-widget--preview .gridchat-launcher {
	position: absolute !important;
	right: 0 !important;
	bottom: 0 !important;
}
.gridchat-widget--preview .gridchat-home { display:block !important; }
.gridchat-widget--preview .gridchat-lead,
.gridchat-widget--preview .gridchat-chat,
.gridchat-widget--preview .gridchat-closing,
.gridchat-widget--preview .gridchat-survey,
.gridchat-widget--preview .gridchat-complete { display:none !important; }
.gridchat-widget--preview .gridchat-header button,
.gridchat-widget--preview .gridchat-home button,
.gridchat-widget--preview .gridchat-tabs button,
.gridchat-widget--preview .gridchat-launcher { pointer-events:none !important; }
.gridchat-preview-replay.gridchat-animation--fade{animation:gridchatFadeIn .28s ease both!important}
.gridchat-preview-replay.gridchat-animation--scale{animation:gridchatScaleIn .3s cubic-bezier(.2,.8,.2,1) both!important}
.gridchat-preview-replay.gridchat-animation--slide-up{animation:gridchatSlideUp .32s ease both!important}

@media(max-width:480px){
	.gridchat-panel{height:72vh;border-radius:22px}
	.gridchat-home h2{font-size:25px}
}


/* GridChat 1.0.3 shared shell refinement */
.gridchat-header__avatar {
	background: #ffffff !important;
	color: var(--gridai-primary) !important;
	box-shadow: 0 1px 4px rgba(20,35,50,.10);
}
.gridchat-header__avatar-icon,
.gridchat-header__close-icon {
	display: inline-block;
	background-image: var(--gridchat-brand-bg);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-weight: 800;
}
.gridchat-header__avatar img {
	background: #ffffff;
}
.gridchat-widget .gridchat-header button[data-gridchat-close],
.gridchat-widget .gridchat-header button[data-gridchat-close]:hover,
.gridchat-widget .gridchat-header button[data-gridchat-close]:focus {
	background: #ffffff !important;
	background-color: #ffffff !important;
	border: 0 !important;
	box-shadow: 0 1px 4px rgba(20,35,50,.10) !important;
}
.gridchat-header__close-icon {
	font-size: 18px;
	line-height: 1;
}

/* Prevent prompt cards/theme button rules from widening the home screen and exposing the brand background. */
.gridchat-home,
.gridchat-home__content,
.gridchat-home__prompts,
.gridchat-home__prompts > * {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}
.gridchat-home {
	overflow-x: hidden !important;
}
.gridchat-widget .gridchat-home__prompts button {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	white-space: normal !important;
	overflow-wrap: anywhere;
}

/* Home / Chat are distinct navigation buttons, not a full-width bottom band. */
.gridchat-tabs {
	flex: 0 0 64px;
	display: grid;
	grid-template-columns: minmax(0,1fr) minmax(0,1fr);
	gap: 10px;
	align-items: center;
	padding: 8px 12px;
	border-top: 1px solid #e7ebef;
	background: var(--gridai-surface) !important;
	box-sizing: border-box;
}
.gridchat-widget .gridchat-tabs button {
	width: 100% !important;
	min-width: 0 !important;
	height: 46px !important;
	padding: 0 14px !important;
	border: 1px solid #dfe5ea !important;
	border-radius: 16px !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #64717e !important;
	font-weight: 700 !important;
	box-shadow: 0 2px 7px rgba(20,35,50,.05) !important;
}
.gridchat-widget .gridchat-tabs button.is-active {
	border-color: transparent !important;
	background: var(--gridchat-brand-bg) !important;
	background-color: transparent !important;
	color: #ffffff !important;
	box-shadow: 0 6px 14px rgba(20,35,50,.12) !important;
}
.gridchat-widget .gridchat-tabs button:hover,
.gridchat-widget .gridchat-tabs button:focus {
	border-color: #cfd6de !important;
	background: #ffffff !important;
	color: var(--gridai-primary) !important;
}
.gridchat-widget .gridchat-tabs button.is-active:hover,
.gridchat-widget .gridchat-tabs button.is-active:focus {
	border-color: transparent !important;
	background: var(--gridchat-brand-bg-hover) !important;
	color: #ffffff !important;
}
.gridchat-powered-by {
	background: var(--gridai-surface) !important;
}

.gridchat-theme--dark .gridchat-tabs,
.gridchat-theme--dark .gridchat-powered-by {
	background: #17212b !important;
}
.gridchat-theme--dark .gridchat-widget .gridchat-tabs button,
.gridchat-theme--dark.gridchat-widget .gridchat-tabs button {
	background: #111827 !important;
	border-color: #2c3745 !important;
	color: #d8e0e8 !important;
}
@media(prefers-color-scheme:dark){
	.gridchat-theme--system .gridchat-tabs,
	.gridchat-theme--system .gridchat-powered-by{background:#17212b!important}
	.gridchat-theme--system.gridchat-widget .gridchat-tabs button{background:#111827!important;border-color:#2c3745!important;color:#d8e0e8!important}
	.gridchat-theme--system.gridchat-widget .gridchat-tabs button.is-active{background:var(--gridchat-brand-bg)!important;border-color:transparent!important;color:#fff!important}
}
.gridchat-theme--dark.gridchat-widget .gridchat-tabs button.is-active {
	background: var(--gridchat-brand-bg) !important;
	background-color: transparent !important;
	border-color: transparent !important;
	color: #ffffff !important;
}
.gridchat-theme--dark.gridchat-widget .gridchat-tabs button.is-active:hover,
.gridchat-theme--dark.gridchat-widget .gridchat-tabs button.is-active:focus {
	background: var(--gridchat-brand-bg-hover) !important;
	color: #ffffff !important;
}


/* GridChat 1.0.4 continuous shell gradient correction */
.gridchat-widget {
	--gridchat-brand-icon: #df1f38;
	--gridchat-shell-bg: linear-gradient(145deg,rgba(169,19,44,.30) 0%,rgba(223,31,56,.28) 48%,rgba(242,99,117,.24) 100%), #ffffff;
}
.gridchat-gradient--grid-red {
	--gridchat-brand-icon:#df1f38;
	--gridchat-shell-bg:linear-gradient(145deg,rgba(169,19,44,.30) 0%,rgba(223,31,56,.28) 48%,rgba(242,99,117,.24) 100%),#ffffff;
}
.gridchat-gradient--grid-blue {
	--gridchat-brand-icon:#008ddf;
	--gridchat-shell-bg:linear-gradient(145deg,rgba(0,141,223,.30) 0%,rgba(71,183,238,.27) 52%,rgba(120,207,255,.23) 100%),#ffffff;
}
.gridchat-gradient--sunset {
	--gridchat-brand-icon:#df1f38;
	--gridchat-shell-bg:linear-gradient(145deg,rgba(223,31,56,.30) 0%,rgba(244,83,55,.27) 52%,rgba(255,138,61,.23) 100%),#ffffff;
}
.gridchat-gradient--ocean {
	--gridchat-brand-icon:#0077b6;
	--gridchat-shell-bg:linear-gradient(145deg,rgba(0,119,182,.30) 0%,rgba(22,160,204,.27) 52%,rgba(72,202,228,.23) 100%),#ffffff;
}
.gridchat-gradient--violet {
	--gridchat-brand-icon:#7c3aed;
	--gridchat-shell-bg:linear-gradient(145deg,rgba(124,58,237,.30) 0%,rgba(164,43,153,.27) 52%,rgba(223,31,56,.23) 100%),#ffffff;
}
.gridchat-gradient--lime {
	--gridchat-brand-icon:#65a30d;
	--gridchat-shell-bg:linear-gradient(145deg,rgba(132,204,22,.30) 0%,rgba(67,174,119,.27) 52%,rgba(0,141,223,.23) 100%),#ffffff;
}

/* One continuous low-intensity gradient canvas. */
.gridchat-panel {
	background: var(--gridchat-shell-bg) !important;
	overflow: hidden;
}
.gridchat-header,
.gridchat-body,
.gridchat-home,
.gridchat-lead,
.gridchat-chat,
.gridchat-closing,
.gridchat-survey,
.gridchat-complete,
.gridchat-tabs,
.gridchat-powered-by {
	background: transparent !important;
	background-color: transparent !important;
}
.gridchat-home::before {
	display: none !important;
	content: none !important;
}

/* White top controls with a stable brand-colored glyph. */
.gridchat-header__avatar {
	background: #ffffff !important;
	color: var(--gridchat-brand-icon) !important;
}
.gridchat-header__avatar-icon,
.gridchat-header__close-icon {
	background: none !important;
	background-image: none !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
	-webkit-text-fill-color: currentColor !important;
	color: var(--gridchat-brand-icon) !important;
}
.gridchat-widget .gridchat-header button[data-gridchat-close],
.gridchat-widget .gridchat-header button[data-gridchat-close]:hover,
.gridchat-widget .gridchat-header button[data-gridchat-close]:focus {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: var(--gridchat-brand-icon) !important;
}
.gridchat-header__close-icon {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:auto;
	height:auto;
	font-size:18px;
	font-family:Arial,Helvetica,sans-serif;
	font-weight:700;
	line-height:1;
}

/* Keep content surfaces readable while allowing the shell gradient to show through. */
.gridchat-home__online,
.gridchat-widget .gridchat-home__prompts button,
.gridchat-lead form,
.gridchat-compose,
.gridchat-survey-card,
.gridchat-closing-card,
.gridchat-complete-card {
	background: rgba(255,255,255,.92) !important;
}
.gridchat-tabs {
	border-top: 1px solid rgba(207,214,222,.72);
}
.gridchat-powered-by {
	border-top-color: transparent !important;
}

/* Dark/system modes use the same continuous gradient over a dark base. */
.gridchat-theme--dark.gridchat-gradient--grid-red{--gridchat-shell-bg:linear-gradient(145deg,rgba(169,19,44,.30) 0%,rgba(223,31,56,.28) 48%,rgba(242,99,117,.22) 100%),#17212b}
.gridchat-theme--dark.gridchat-gradient--grid-blue{--gridchat-shell-bg:linear-gradient(145deg,rgba(0,141,223,.30) 0%,rgba(71,183,238,.27) 52%,rgba(120,207,255,.22) 100%),#17212b}
.gridchat-theme--dark.gridchat-gradient--sunset{--gridchat-shell-bg:linear-gradient(145deg,rgba(223,31,56,.30) 0%,rgba(244,83,55,.27) 52%,rgba(255,138,61,.22) 100%),#17212b}
.gridchat-theme--dark.gridchat-gradient--ocean{--gridchat-shell-bg:linear-gradient(145deg,rgba(0,119,182,.30) 0%,rgba(22,160,204,.27) 52%,rgba(72,202,228,.22) 100%),#17212b}
.gridchat-theme--dark.gridchat-gradient--violet{--gridchat-shell-bg:linear-gradient(145deg,rgba(124,58,237,.30) 0%,rgba(164,43,153,.27) 52%,rgba(223,31,56,.22) 100%),#17212b}
.gridchat-theme--dark.gridchat-gradient--lime{--gridchat-shell-bg:linear-gradient(145deg,rgba(132,204,22,.30) 0%,rgba(67,174,119,.27) 52%,rgba(0,141,223,.22) 100%),#17212b}
@media(prefers-color-scheme:dark){
	.gridchat-theme--system.gridchat-gradient--grid-red{--gridchat-shell-bg:linear-gradient(145deg,rgba(169,19,44,.30) 0%,rgba(223,31,56,.28) 48%,rgba(242,99,117,.22) 100%),#17212b}
	.gridchat-theme--system.gridchat-gradient--grid-blue{--gridchat-shell-bg:linear-gradient(145deg,rgba(0,141,223,.30) 0%,rgba(71,183,238,.27) 52%,rgba(120,207,255,.22) 100%),#17212b}
	.gridchat-theme--system.gridchat-gradient--sunset{--gridchat-shell-bg:linear-gradient(145deg,rgba(223,31,56,.30) 0%,rgba(244,83,55,.27) 52%,rgba(255,138,61,.22) 100%),#17212b}
	.gridchat-theme--system.gridchat-gradient--ocean{--gridchat-shell-bg:linear-gradient(145deg,rgba(0,119,182,.30) 0%,rgba(22,160,204,.27) 52%,rgba(72,202,228,.22) 100%),#17212b}
	.gridchat-theme--system.gridchat-gradient--violet{--gridchat-shell-bg:linear-gradient(145deg,rgba(124,58,237,.30) 0%,rgba(164,43,153,.27) 52%,rgba(223,31,56,.22) 100%),#17212b}
	.gridchat-theme--system.gridchat-gradient--lime{--gridchat-shell-bg:linear-gradient(145deg,rgba(132,204,22,.30) 0%,rgba(67,174,119,.27) 52%,rgba(0,141,223,.22) 100%),#17212b}
}

/* GridChat 1.0.5 top-only gradient shell correction */
.gridchat-panel {
	background-color: #ffffff !important;
	background-image:
		linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 58%, #ffffff 100%),
		var(--gridchat-brand-bg) !important;
	background-size: 100% 34%, 100% 34% !important;
	background-position: top left, top left !important;
	background-repeat: no-repeat, no-repeat !important;
}

/* The shell below the top gradient remains a true light surface. */
.gridchat-header,
.gridchat-body,
.gridchat-home,
.gridchat-lead,
.gridchat-chat,
.gridchat-closing,
.gridchat-survey,
.gridchat-complete,
.gridchat-tabs,
.gridchat-powered-by {
	background: transparent !important;
	background-color: transparent !important;
}

/* Dark mode keeps the same top-only treatment over the dark base. */
.gridchat-theme--dark .gridchat-panel {
	background-color: #17212b !important;
	background-image:
		linear-gradient(to bottom, rgba(23,33,43,0) 0%, rgba(23,33,43,.08) 58%, #17212b 100%),
		var(--gridchat-brand-bg) !important;
	background-size: 100% 34%, 100% 34% !important;
	background-position: top left, top left !important;
	background-repeat: no-repeat, no-repeat !important;
}

@media (prefers-color-scheme: dark) {
	.gridchat-theme--system .gridchat-panel {
		background-color: #17212b !important;
		background-image:
			linear-gradient(to bottom, rgba(23,33,43,0) 0%, rgba(23,33,43,.08) 58%, #17212b 100%),
			var(--gridchat-brand-bg) !important;
		background-size: 100% 34%, 100% 34% !important;
		background-position: top left, top left !important;
		background-repeat: no-repeat, no-repeat !important;
	}
}

/* GridChat 1.0.6 lead form placement refinement */
.gridchat-lead {
	padding-top: 108px !important;
}
.gridchat-lead > p {
	margin: 0 0 12px !important;
	color: var(--gridai-text) !important;
}
.gridchat-lead form {
	background: rgba(255,255,255,.96) !important;
	border: 1px solid rgba(207,214,222,.72) !important;
	border-radius: 14px !important;
	padding: 16px !important;
	box-shadow: 0 10px 28px rgba(0,0,0,.06) !important;
}
.gridchat-theme--dark .gridchat-lead form {
	background: rgba(23,33,43,.96) !important;
	border-color: rgba(58,70,82,.82) !important;
}
@media (prefers-color-scheme: dark) {
	.gridchat-theme--system .gridchat-lead form {
		background: rgba(23,33,43,.96) !important;
		border-color: rgba(58,70,82,.82) !important;
	}
}
@media (max-width: 480px) {
	.gridchat-lead {
		padding-top: 88px !important;
	}
}

/* GridChat 1.0.6 dark-mode suggested question readability correction */
.gridchat-theme--dark .gridchat-home__prompts button {
	background: rgba(255,255,255,.94) !important;
	border-color: rgba(207,214,222,.86) !important;
	color: #1e272e !important;
}
.gridchat-theme--dark .gridchat-home__prompts button:hover,
.gridchat-theme--dark .gridchat-home__prompts button:focus {
	background: #ffffff !important;
	border-color: var(--gridchat-brand-icon) !important;
	color: #1e272e !important;
}
@media (prefers-color-scheme: dark) {
	.gridchat-theme--system .gridchat-home__prompts button {
		background: rgba(255,255,255,.94) !important;
		border-color: rgba(207,214,222,.86) !important;
		color: #1e272e !important;
	}
	.gridchat-theme--system .gridchat-home__prompts button:hover,
	.gridchat-theme--system .gridchat-home__prompts button:focus {
		background: #ffffff !important;
		border-color: var(--gridchat-brand-icon) !important;
		color: #1e272e !important;
	}
}


/* GridChat 1.0.7 frontend state consistency audit */
.gridchat-widget .gridchat-compose {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 44px !important;
	align-items: center !important;
	gap: 0 !important;
	padding: 4px !important;
	border: 1px solid var(--gridai-border) !important;
	border-radius: 14px !important;
	background: var(--gridai-surface) !important;
	background-color: var(--gridai-surface) !important;
	box-shadow: none !important;
	overflow: hidden !important;
}
.gridchat-widget .gridchat-compose:focus-within {
	border-color: var(--gridai-secondary) !important;
	box-shadow: 0 0 0 1px var(--gridai-secondary) !important;
}
.gridchat-widget .gridchat-compose textarea,
.gridchat-widget .gridchat-compose textarea:focus {
	min-width: 0 !important;
	min-height: 42px !important;
	max-height: 110px !important;
	margin: 0 !important;
	padding: 10px 8px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--gridai-text) !important;
	box-shadow: none !important;
	outline: none !important;
}
.gridchat-widget .gridchat-compose textarea::placeholder {
	color: #8793a0 !important;
	opacity: 1 !important;
}
.gridchat-widget .gridchat-compose button[type="submit"],
.gridchat-widget .gridchat-compose button[type="submit"]:hover,
.gridchat-widget .gridchat-compose button[type="submit"]:focus {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 0 !important;
	border-radius: 11px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #df1f38 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	outline: none !important;
}
.gridchat-widget .gridchat-compose button[type="submit"]:hover,
.gridchat-widget .gridchat-compose button[type="submit"]:focus {
	background: rgba(223,31,56,.08) !important;
	background-color: rgba(223,31,56,.08) !important;
}
.gridchat-compose__send-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: inherit;
}
.gridchat-compose__send-icon svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* Neutral secondary controls use the active theme surface in every chat state. */
.gridchat-widget .gridchat-closing-actions .gridchat-closing-continue,
.gridchat-widget .gridchat-closing-actions .gridchat-closing-continue:hover,
.gridchat-widget .gridchat-closing-actions .gridchat-closing-continue:focus,
.gridchat-widget .gridchat-survey-actions .gridchat-survey-skip,
.gridchat-widget .gridchat-survey-actions .gridchat-survey-skip:hover,
.gridchat-widget .gridchat-survey-actions .gridchat-survey-skip:focus {
	background: var(--gridai-surface) !important;
	background-color: var(--gridai-surface) !important;
	color: var(--gridai-text) !important;
	border-color: var(--gridai-border) !important;
}
.gridchat-widget .gridchat-closing-actions .gridchat-closing-continue:hover,
.gridchat-widget .gridchat-closing-actions .gridchat-closing-continue:focus,
.gridchat-widget .gridchat-survey-actions .gridchat-survey-skip:hover,
.gridchat-widget .gridchat-survey-actions .gridchat-survey-skip:focus {
	border-color: var(--gridchat-brand-icon) !important;
}

/* Dark and system-dark compose rows remain uniformly dark; only the paper-plane icon is white. */
.gridchat-theme--dark .gridchat-compose {
	background: #17212b !important;
	background-color: #17212b !important;
	border-color: #3a4652 !important;
}
.gridchat-theme--dark .gridchat-compose textarea,
.gridchat-theme--dark .gridchat-compose textarea:focus {
	background: transparent !important;
	background-color: transparent !important;
	color: #f5f7fa !important;
}
.gridchat-theme--dark .gridchat-compose textarea::placeholder {
	color: #95a1ad !important;
}
.gridchat-theme--dark .gridchat-compose button[type="submit"],
.gridchat-theme--dark .gridchat-compose button[type="submit"]:hover,
.gridchat-theme--dark .gridchat-compose button[type="submit"]:focus {
	background: transparent !important;
	background-color: transparent !important;
	color: #ffffff !important;
}
.gridchat-theme--dark .gridchat-compose button[type="submit"]:hover,
.gridchat-theme--dark .gridchat-compose button[type="submit"]:focus {
	background: rgba(255,255,255,.08) !important;
	background-color: rgba(255,255,255,.08) !important;
}
@media (prefers-color-scheme: dark) {
	.gridchat-theme--system .gridchat-compose {
		background: #17212b !important;
		background-color: #17212b !important;
		border-color: #3a4652 !important;
	}
	.gridchat-theme--system .gridchat-compose textarea,
	.gridchat-theme--system .gridchat-compose textarea:focus {
		background: transparent !important;
		background-color: transparent !important;
		color: #f5f7fa !important;
	}
	.gridchat-theme--system .gridchat-compose textarea::placeholder {
		color: #95a1ad !important;
	}
	.gridchat-theme--system .gridchat-compose button[type="submit"],
	.gridchat-theme--system .gridchat-compose button[type="submit"]:hover,
	.gridchat-theme--system .gridchat-compose button[type="submit"]:focus {
		background: transparent !important;
		background-color: transparent !important;
		color: #ffffff !important;
	}
	.gridchat-theme--system .gridchat-compose button[type="submit"]:hover,
	.gridchat-theme--system .gridchat-compose button[type="submit"]:focus {
		background: rgba(255,255,255,.08) !important;
		background-color: rgba(255,255,255,.08) !important;
	}
}

/* GridChat chat utility menu, history, and transcript download UI */
.gridchat-header {
	position: relative;
	z-index: 30;
}
.gridchat-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.gridchat-widget .gridchat-header .gridchat-menu-toggle,
.gridchat-widget .gridchat-header .gridchat-menu-toggle:hover,
.gridchat-widget .gridchat-header .gridchat-menu-toggle:focus {
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid rgba(207,214,222,.82) !important;
	border-radius: 999px !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: var(--gridchat-brand-icon) !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer !important;
}
.gridchat-widget .gridchat-header .gridchat-menu-toggle:hover,
.gridchat-widget .gridchat-header .gridchat-menu-toggle:focus {
	border-color: var(--gridchat-brand-icon) !important;
	outline: none !important;
}
.gridchat-menu {
	position: absolute;
	top: 54px;
	right: 48px;
	z-index: 40;
	width: 190px;
	padding: 6px;
	border: 1px solid rgba(207,214,222,.92);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 14px 32px rgba(0,0,0,.16);
}
.gridchat-widget .gridchat-menu button,
.gridchat-widget .gridchat-menu button:hover,
.gridchat-widget .gridchat-menu button:focus {
	width: 100% !important;
	min-height: 38px !important;
	padding: 9px 11px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #1e272e !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-align: left !important;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer !important;
}
.gridchat-widget .gridchat-menu button:hover,
.gridchat-widget .gridchat-menu button:focus {
	background: rgba(223,31,56,.07) !important;
	background-color: rgba(223,31,56,.07) !important;
	outline: none !important;
}
.gridchat-widget .gridchat-menu button:disabled {
	opacity: .42 !important;
	cursor: not-allowed !important;
}
.gridchat-history {
	position: absolute;
	z-index: 18;
	top: 64px;
	left: 0;
	right: 0;
	bottom: 54px;
	display: flex;
	flex-direction: column;
	background: rgba(255,255,255,.98);
	backdrop-filter: blur(8px);
}
.gridchat-history__header {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 8px 14px;
	border-bottom: 1px solid rgba(207,214,222,.82);
}
.gridchat-widget .gridchat-history__header button,
.gridchat-widget .gridchat-history__header button:hover,
.gridchat-widget .gridchat-history__header button:focus {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	padding: 0 !important;
	border: 1px solid var(--gridai-border) !important;
	border-radius: 999px !important;
	background: #ffffff !important;
	color: var(--gridchat-brand-icon) !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
.gridchat-history__content {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
}
.gridchat-history__content > p {
	margin: 12px 4px;
	color: #687582;
	font-size: 13px;
}
.gridchat-history__item {
	margin-bottom: 9px;
	border: 1px solid var(--gridai-border);
	border-radius: 11px;
	background: #ffffff;
	overflow: hidden;
}
.gridchat-widget .gridchat-history__item-toggle,
.gridchat-widget .gridchat-history__item-toggle:hover,
.gridchat-widget .gridchat-history__item-toggle:focus {
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	padding: 11px 12px !important;
	border: 0 !important;
	background: #ffffff !important;
	color: #1e272e !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-align: left !important;
}
.gridchat-history__item-toggle span {
	font-size: 11px;
	color: #7b8793;
	white-space: nowrap;
}
.gridchat-history__messages {
	padding: 4px 12px 12px;
	border-top: 1px solid rgba(207,214,222,.68);
}
.gridchat-history__message {
	padding: 8px 0;
}
.gridchat-history__message strong {
	display: block;
	margin-bottom: 3px;
	font-size: 11px;
	color: var(--gridchat-brand-icon);
}
.gridchat-history__message p {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #35414d;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.gridchat-survey-transcript-note {
	display: block;
	margin: -2px 0 9px;
	font-size: 11px;
	line-height: 1.4;
	color: #6f7b87;
}
.gridchat-theme--dark .gridchat-menu,
.gridchat-theme--dark .gridchat-history,
.gridchat-theme--dark .gridchat-history__item,
.gridchat-theme--dark .gridchat-history__item-toggle {
	background: #17212b !important;
	color: #f5f7fa !important;
	border-color: #3a4652 !important;
}
.gridchat-theme--dark .gridchat-menu button,
.gridchat-theme--dark .gridchat-menu button:hover,
.gridchat-theme--dark .gridchat-menu button:focus,
.gridchat-theme--dark .gridchat-history__message p,
.gridchat-theme--dark .gridchat-history__item-toggle,
.gridchat-theme--dark .gridchat-history__header {
	color: #f5f7fa !important;
}
.gridchat-theme--dark .gridchat-history__item-toggle span,
.gridchat-theme--dark .gridchat-history__content > p,
.gridchat-theme--dark .gridchat-survey-transcript-note {
	color: #aab4be !important;
}
@media (prefers-color-scheme: dark) {
	.gridchat-theme--system .gridchat-menu,
	.gridchat-theme--system .gridchat-history,
	.gridchat-theme--system .gridchat-history__item,
	.gridchat-theme--system .gridchat-history__item-toggle {
		background: #17212b !important;
		color: #f5f7fa !important;
		border-color: #3a4652 !important;
	}
	.gridchat-theme--system .gridchat-menu button,
	.gridchat-theme--system .gridchat-menu button:hover,
	.gridchat-theme--system .gridchat-menu button:focus,
	.gridchat-theme--system .gridchat-history__message p,
	.gridchat-theme--system .gridchat-history__item-toggle,
	.gridchat-theme--system .gridchat-history__header {
		color: #f5f7fa !important;
	}
	.gridchat-theme--system .gridchat-history__item-toggle span,
	.gridchat-theme--system .gridchat-history__content > p,
	.gridchat-theme--system .gridchat-survey-transcript-note {
		color: #aab4be !important;
	}
}

/* GridChat 1.0.9 end-flow and seamless top-gradient refinement */
.gridchat-panel {
	background-color: #ffffff !important;
	background-image: none !important;
	isolation: isolate;
}

.gridchat-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 38%;
	background-image:
		linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 45%, rgba(255,255,255,.72) 82%, #ffffff 100%),
		var(--gridchat-brand-bg);
	background-position: center top, center top;
	background-repeat: no-repeat, no-repeat;
	background-size: 100% 100%, 100% 100%;
	pointer-events: none;
	z-index: 0;
}

.gridchat-panel > * {
	position: relative;
	z-index: 1;
}

/* Keep the header/menu above the greeting and panel content. */
.gridchat-panel > .gridchat-header {
	z-index: 30 !important;
}

.gridchat-panel > .gridchat-header .gridchat-menu {
	z-index: 40 !important;
}

.gridchat-theme--dark .gridchat-panel {
	background-color: #17212b !important;
	background-image: none !important;
}

.gridchat-theme--dark .gridchat-panel::before {
	background-image:
		linear-gradient(to bottom, rgba(23,33,43,0) 0%, rgba(23,33,43,.10) 45%, rgba(23,33,43,.72) 82%, #17212b 100%),
		var(--gridchat-brand-bg);
}

@media (prefers-color-scheme: dark) {
	.gridchat-theme--system .gridchat-panel {
		background-color: #17212b !important;
		background-image: none !important;
	}
	.gridchat-theme--system .gridchat-panel::before {
		background-image:
			linear-gradient(to bottom, rgba(23,33,43,0) 0%, rgba(23,33,43,.10) 45%, rgba(23,33,43,.72) 82%, #17212b 100%),
			var(--gridchat-brand-bg);
	}
}

.gridchat-survey-step[hidden] {
	display: none !important;
}

.gridchat-survey-step {
	display: grid;
	gap: 14px;
}

.gridchat-survey-step h4 {
	margin: 0;
	font-size: 15px;
	line-height: 1.3;
	color: var(--gridai-text);
}

.gridchat-survey .gridchat-survey-step-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--gridai-text);
}

.gridchat-survey-transcript-status {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.4;
	color: #667085;
}

.gridchat-theme--dark .gridchat-survey-transcript-status {
	color: #b8c2cc;
}

@media (prefers-color-scheme: dark) {
	.gridchat-theme--system .gridchat-survey-transcript-status {
		color: #b8c2cc;
	}
}

/* GridChat 1.0.11 avatar, custom color and launcher icon refinement */
.gridchat-header__avatar{width:40px!important;height:40px!important;min-width:40px!important}
.gridchat-header__avatar img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.gridchat-launcher__icon{display:grid!important;place-items:center!important;background:transparent!important;box-shadow:none!important;border:0!important;line-height:1!important}
.gridchat-launcher__icon img{display:block!important;width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;object-fit:contain!important;background:transparent!important;border:0!important;box-shadow:none!important}
.gridchat-launcher-shape--pill .gridchat-launcher__icon img{width:26px!important;height:26px!important}
.gridchat-gradient--custom{--gridai-secondary:var(--gridai-primary)}

/* GridChat 1.0.12 launcher icon sizing refinement */
.gridchat-widget.gridchat-launcher-shape--circle .gridchat-launcher__icon img,
.gridchat-widget.gridchat-launcher-shape--rounded .gridchat-launcher__icon img,
.gridchat-widget.gridchat-launcher-shape--pill .gridchat-launcher__icon img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
}
.gridchat-widget.gridchat-launcher-shape--pill .gridchat-launcher__label {
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}
