/* FSOL Copilot — front end. Calm, fast, readable. */

.fsol-copilot {
	width: 100%;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1d2733;
}

/* Ask Cézanne header — brand band using the four-season palette. */
.fsol-copilot__head {
	background: linear-gradient( 120deg, rgba(139,196,176,0.16), rgba(146,181,60,0.12) 40%, rgba(242,152,46,0.12) 70%, rgba(195,14,126,0.14) );
	border: 1px solid #e4ecee;
	border-radius: 16px;
	padding: 14px 18px;
	margin-bottom: 16px;
}
.fsol-copilot__intro h2 {
	font-size: 1.5rem;
	margin: 0 0 2px;
	letter-spacing: -0.01em;
	background: linear-gradient( 90deg, #2e9b76, #92B53C 45%, #F2982E 75%, #c5107b );
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.fsol-copilot__intro p { margin: 0; color: #5b6b7b; font-size: 0.95rem; }

/* Cézanne sits to the right of the ask bar, not over it. */
.fsol-copilot__askwrap {
	display: flex;
	align-items: center;
	gap: 14px;
}
.fsol-copilot__avatar {
	width: 96px;
	height: auto;
	flex: 0 0 auto;
	filter: drop-shadow( 0 4px 10px rgba(197,16,123,0.25) );
}

.fsol-copilot__bar {
	flex: 1 1 auto;
	display: flex;
	align-items: stretch;
	gap: 8px;
	background: #fff;
	border: 1px solid #dce3ea;
	border-radius: 12px;
	padding: 8px;
	box-shadow: 0 1px 2px rgba(20, 40, 60, 0.04);
}
.fsol-copilot__dept {
	border: 0;
	background: #f1f5f8;
	border-radius: 8px;
	padding: 0 10px;
	font-size: 0.85rem;
	color: #3a4754;
	max-width: 170px;
}
.fsol-copilot__input {
	flex: 1;
	border: 0;
	font-size: 1rem;
	padding: 12px 6px;
	outline: none;
	background: transparent;
}
.fsol-copilot__ask {
	background: #c5107b;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 0 22px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.fsol-copilot__ask:hover { background: #a30d66; }

.fsol-copilot__result { margin-top: 18px; }
.fsol-copilot__loading { color: #5b6b7b; padding: 16px 2px; }
.fsol-copilot__err { color: #b3261e; padding: 12px; }

.fsol-answer {
	background: #fff;
	border: 1px solid #dce3ea;
	border-left: 4px solid #1f6f54;
	border-radius: 10px;
	padding: 18px 20px;
}
.fsol-answer.is-soft { border-left-color: #c9a227; }
.fsol-answer__body { font-size: 1.05rem; line-height: 1.55; white-space: pre-wrap; }

.fsol-answer__sources { margin-top: 16px; border-top: 1px solid #eef2f5; padding-top: 12px; }
.fsol-answer__sources span {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #8493a1;
}
.fsol-answer__sources ul { list-style: none; margin: 8px 0 0; padding: 0; }
.fsol-answer__sources li { margin-bottom: 10px; }
.fsol-answer__sources a { font-weight: 600; color: #1f6f54; text-decoration: none; }
.fsol-answer__sources a:hover { text-decoration: underline; }
.fsol-answer__sources p { margin: 2px 0 0; font-size: 0.85rem; color: #5b6b7b; }

.fsol-fallback { margin-top: 14px; }
.fsol-fallback p { color: #5b6b7b; margin: 0 0 8px; font-size: 0.9rem; }
.fsol-fallback__btn {
	background: #eef2f5;
	border: 0;
	border-radius: 8px;
	padding: 9px 16px;
	font-weight: 600;
	color: #3a4754;
	cursor: pointer;
}
.fsol-fallback__btn.primary { background: #1f6f54; color: #fff; margin-top: 8px; }
#fsol-ticket-detail {
	width: 100%;
	min-height: 80px;
	border: 1px solid #dce3ea;
	border-radius: 8px;
	padding: 10px;
	margin-top: 8px;
	font-family: inherit;
	font-size: 0.95rem;
}

/* Knowledge base directory */
.fsol-kb { max-width: 820px; margin: 0 auto; }
.fsol-kb__group { margin-bottom: 28px; }
.fsol-kb__group h3 {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #8493a1;
	border-bottom: 1px solid #eef2f5;
	padding-bottom: 6px;
}
.fsol-kb__group ul { list-style: none; padding: 0; margin: 10px 0 0; }
.fsol-kb__group li { padding: 8px 0; border-bottom: 1px solid #f4f7f9; }
.fsol-kb__group a { font-weight: 600; color: #1f2933; text-decoration: none; }
.fsol-kb__group a:hover { color: #1f6f54; }
.fsol-kb__group span { display: block; font-size: 0.85rem; color: #5b6b7b; margin-top: 2px; }

@media ( max-width: 600px ) {
	.fsol-copilot__bar { flex-wrap: wrap; }
	.fsol-copilot__dept { max-width: none; flex: 1; }
	.fsol-copilot__ask { flex: 1; padding: 10px; }
	.fsol-copilot__avatar { width: 64px; }
}

/* ---- My Tickets tracker ---- */
.fsol-mytickets { max-width: 760px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1d2733; }
.fsol-mytickets h2 { font-size: 1.4rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.fsol-mytickets__sub { color: #5b6b7b; margin: 0 0 18px; font-size: 0.92rem; }
.fsol-mytickets__loading, .fsol-mytickets__empty, .fsol-mytickets__err { color: #5b6b7b; padding: 16px 2px; }

.fsol-ticket {
	background: #fff;
	border: 1px solid #dce3ea;
	border-left: 4px solid #8493a1;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}
.fsol-ticket.is-open { border-left-color: #92B53C; }
.fsol-ticket.is-review { border-left-color: #F2982E; }
.fsol-ticket.is-escalated { border-left-color: #C30E7E; }
.fsol-ticket.is-resolved { border-left-color: #2e9b76; }

.fsol-ticket__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.fsol-ticket__q { font-weight: 600; color: #1d2733; }
.fsol-ticket__badge {
	font-size: 0.72rem;
	white-space: nowrap;
	padding: 3px 9px;
	border-radius: 999px;
	background: #f1f5f8;
	color: #3a4754;
}
.fsol-ticket.is-resolved .fsol-ticket__badge { background: rgba(46,155,118,0.14); color: #1f6f54; }
.fsol-ticket.is-escalated .fsol-ticket__badge { background: rgba(195,14,126,0.12); color: #C30E7E; }

.fsol-ticket__meta { font-size: 0.78rem; color: #8493a1; margin-top: 4px; }
.fsol-ticket__answer { margin-top: 12px; background: rgba(46,155,118,0.06); border-radius: 8px; padding: 12px 14px; }
.fsol-ticket__answer strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: #1f6f54; margin-bottom: 6px; }
.fsol-ticket__answer div { white-space: pre-wrap; line-height: 1.5; }

.fsol-ticket__actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.fsol-ta { background: #eef2f5; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 0.85rem; color: #3a4754; cursor: pointer; }
.fsol-ta.primary { background: #1f6f54; color: #fff; }
.fsol-ticket__reply { margin-top: 10px; }
.fsol-ticket__reply textarea { width: 100%; min-height: 70px; border: 1px solid #dce3ea; border-radius: 8px; padding: 10px; font-family: inherit; font-size: 0.92rem; margin-bottom: 8px; }

/* ---- My Queue (owners/managers) ---- */
.fsol-queue { max-width: 760px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1d2733; }
.fsol-queue h2 { font-size: 1.4rem; margin: 0 0 4px; }
.fsol-queue__sub { color: #5b6b7b; margin: 0 0 18px; font-size: 0.92rem; }
.fsol-queue__loading, .fsol-queue__empty, .fsol-queue__err { color: #5b6b7b; padding: 16px 2px; }
.fsol-qticket { background: #fff; border: 1px solid #dce3ea; border-left: 4px solid #92B53C; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.fsol-qticket.is-escalated { border-left-color: #C30E7E; }
.fsol-qticket.is-review { border-left-color: #F2982E; }
.fsol-qticket__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.fsol-qticket__q { font-weight: 600; }
.fsol-qticket__tag { font-size: 0.72rem; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: #f1f5f8; color: #3a4754; }
.fsol-qticket.is-escalated .fsol-qticket__tag { background: rgba(195,14,126,0.12); color: #C30E7E; }
.fsol-qticket__detail { margin-top: 8px; color: #3a4754; font-size: 0.92rem; }
.fsol-qticket__meta { font-size: 0.78rem; color: #8493a1; margin-top: 4px; }
.fsol-qticket__note { margin-top: 10px; font-size: 0.85rem; color: #F2982E; font-weight: 600; }
.fsol-qticket__answer { width: 100%; min-height: 80px; border: 1px solid #dce3ea; border-radius: 8px; padding: 10px; margin-top: 10px; font-family: inherit; font-size: 0.92rem; }
.fsol-qa { margin-top: 8px; background: #1f6f54; color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.fsol-qa:disabled { opacity: 0.5; cursor: default; }

/* ---- Document library ---- */
.fsol-docs { max-width: 820px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.fsol-docs__group { margin-bottom: 28px; }
.fsol-docs__group h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8493a1; border-bottom: 1px solid #eef2f5; padding-bottom: 6px; }
.fsol-docs__group ul { list-style: none; padding: 0; margin: 10px 0 0; }
.fsol-docs__group li { padding: 8px 0; border-bottom: 1px solid #f4f7f9; }
.fsol-docs__group a { font-weight: 600; color: #1f2933; text-decoration: none; }
.fsol-docs__group a:hover { color: #c5107b; }
.fsol-docs__group span { display: block; font-size: 0.85rem; color: #5b6b7b; margin-top: 2px; }
