:root {
	--ac-navy: #101d2b;
	--ac-blue: #459be6;
	--ac-blue-dark: #2364b0;
	--ac-panel: #182838;
	--ac-panel-2: #21364a;
	--ac-border: rgba(255,255,255,.14);
	--ac-text: #ffffff;
	--ac-muted: #b9c7d4;
	--ac-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.ac-root,
.ac-root * { box-sizing: border-box; }

.ac-root {
	font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	z-index: 999999;
}

.ac-floating { position: fixed; right: 24px; bottom: 24px; }
.ac-floating.ac-position-left { right: auto; left: 24px; }

.ac-launcher {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 8px 18px 8px 8px;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ac-blue-dark), var(--ac-blue));
	color: #fff;
	font: inherit;
	font-weight: 700;
	box-shadow: 0 12px 34px rgba(0,0,0,.38);
	cursor: pointer;
}

.ac-launcher:hover { transform: translateY(-1px); filter: brightness(1.06); }
.ac-launcher-icon,
.ac-brandmark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #f4f8fb 0 8%, #bec8d1 26%, #66727d 60%, #202a34 100%);
	border: 2px solid rgba(255,255,255,.78);
	color: #12202c;
	font-weight: 900;
	text-shadow: 0 1px rgba(255,255,255,.5);
}

.ac-panel {
	position: absolute;
	right: 0;
	bottom: 72px;
	display: flex;
	flex-direction: column;
	width: min(410px, calc(100vw - 32px));
	height: min(720px, calc(100vh - 120px));
	min-height: 540px;
	border: 1px solid var(--ac-border);
	border-radius: 22px;
	background: linear-gradient(180deg, var(--ac-panel), var(--ac-navy));
	color: var(--ac-text);
	box-shadow: var(--ac-shadow);
	overflow: hidden;
}

.ac-position-left .ac-panel { right: auto; left: 0; }
.ac-panel[hidden] { display: none !important; }

.ac-inline { position: relative; z-index: 1; width: 100%; }
.ac-inline .ac-panel {
	position: relative;
	right: auto;
	bottom: auto;
	width: 100%;
	height: 720px;
	max-height: 85vh;
}

.ac-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: rgba(7,15,24,.52);
	border-bottom: 1px solid var(--ac-border);
}

.ac-brandmark { width: 38px; height: 38px; flex: 0 0 38px; }
.ac-heading { display: flex; flex-direction: column; min-width: 0; }
.ac-heading strong { font-size: 17px; line-height: 1.2; color: #fff; }
.ac-heading span { color: var(--ac-muted); font-size: 12px; }
.ac-close {
	margin-left: auto;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.09);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.ac-progress { height: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.ac-progress span {
	display: block;
	width: 38%;
	height: 100%;
	background: var(--ac-blue);
	animation: ac-loading 1.15s infinite ease-in-out;
}
@keyframes ac-loading { from { transform: translateX(-110%); } to { transform: translateX(300%); } }

.ac-messages {
	flex: 1 1 auto;
	min-height: 140px;
	overflow-y: auto;
	padding: 18px 14px 12px;
	scrollbar-width: thin;
}

.ac-message { display: flex; margin: 0 0 12px; }
.ac-message-user { justify-content: flex-end; }
.ac-bubble {
	max-width: 88%;
	padding: 11px 13px;
	border-radius: 16px 16px 16px 5px;
	background: var(--ac-panel-2);
	border: 1px solid rgba(255,255,255,.08);
	color: #fff;
	word-wrap: break-word;
}
.ac-message-user .ac-bubble {
	border-radius: 16px 16px 5px 16px;
	background: var(--ac-blue-dark);
}
.ac-bubble a { color: #9ed0ff; text-decoration: underline; font-weight: 700; }

.ac-quick-actions {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 0 14px 12px;
	scrollbar-width: none;
}
.ac-quick-actions::-webkit-scrollbar { display: none; }
.ac-chip {
	flex: 0 0 auto;
	padding: 8px 11px;
	border: 1px solid rgba(69,155,230,.62);
	border-radius: 999px;
	background: rgba(69,155,230,.1);
	color: #eaf6ff;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}
.ac-chip:hover { background: rgba(69,155,230,.24); }

.ac-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 9px;
	padding: 12px 14px;
	border-top: 1px solid var(--ac-border);
	background: rgba(7,15,24,.36);
}
.ac-input {
	width: 100%;
	min-height: 48px;
	max-height: 108px;
	resize: vertical;
	padding: 11px 12px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 13px;
	background: rgba(255,255,255,.08);
	color: #fff;
	font: inherit;
	outline: none;
}
.ac-input::placeholder { color: #c0cad4; opacity: .8; }
.ac-input:focus { border-color: var(--ac-blue); box-shadow: 0 0 0 3px rgba(69,155,230,.18); }
.ac-send {
	align-self: stretch;
	min-width: 72px;
	padding: 0 14px;
	border: 0;
	border-radius: 13px;
	background: var(--ac-blue);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.ac-send:disabled { opacity: .62; cursor: wait; }

.ac-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 0 14px 12px;
	background: rgba(7,15,24,.36);
}
.ac-footer span { color: var(--ac-muted); font-size: 10px; text-align: right; }
.ac-start-guide {
	padding: 0;
	border: 0;
	background: transparent;
	color: #9ed0ff;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.ac-guide {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px 16px;
	background: rgba(7,15,24,.2);
}
.ac-guide h3 { margin: 10px 0 14px; color: #fff; font-size: 20px; }
.ac-guide-count { color: #9ed0ff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ac-guide-bar { height: 6px; margin-top: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.ac-guide-bar span { display: block; height: 100%; border-radius: inherit; background: var(--ac-blue); }
.ac-guide-options { display: grid; gap: 9px; }
.ac-guide-options button,
.ac-primary-link,
.ac-secondary-link {
	display: block;
	width: 100%;
	padding: 12px 13px;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 13px;
	background: var(--ac-panel-2);
	color: #fff !important;
	font: inherit;
	font-weight: 700;
	text-align: left;
	text-decoration: none !important;
	cursor: pointer;
}
.ac-guide-options button:hover { border-color: var(--ac-blue); background: #29455e; }
.ac-guide-back {
	margin-top: 14px;
	padding: 5px 0;
	border: 0;
	background: transparent;
	color: #9ed0ff;
	font: inherit;
	cursor: pointer;
}
.ac-summary { display: grid; grid-template-columns: 110px 1fr; gap: 7px 10px; margin: 0 0 16px; }
.ac-summary dt { color: var(--ac-muted); }
.ac-summary dd { margin: 0; color: #fff; font-weight: 700; }
.ac-primary-link { margin-bottom: 9px; background: var(--ac-blue-dark); text-align: center; }
.ac-secondary-link { text-align: center; background: rgba(255,255,255,.08); }

@media (min-width: 783px) {
	.ac-floating.ac-open .ac-launcher { opacity: .3; }
}

@media (max-width: 782px) {
	.ac-floating,
	.ac-floating.ac-position-left {
		right: 14px;
		left: auto;
		bottom: 14px;
	}
	.ac-launcher {
		width: 58px;
		height: 58px;
		min-height: 58px;
		padding: 7px;
		border-radius: 50%;
	}
	.ac-launcher-icon { width: 42px; height: 42px; }
	.ac-launcher-label { display: none; }
	.ac-panel,
	.ac-position-left .ac-panel {
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: auto;
		height: min(74vh, 620px);
		min-height: 430px;
		border-radius: 19px;
	}
	.ac-open .ac-launcher { display: none; }
	.ac-messages { padding-top: 12px; }
	.ac-quick-actions { padding-bottom: 8px; }
	.ac-form { padding: 10px; }
	.ac-footer { padding: 0 10px 9px; }
	.ac-footer span { display: none; }
	.ac-input { min-height: 46px; font-size: 16px; }
}

@media (max-width: 390px) {
	.ac-heading span { display: none; }
	.ac-form { grid-template-columns: 1fr 66px; }
	.ac-send { min-width: 66px; padding: 0 8px; }
	.ac-bubble { max-width: 94%; }
}
