/**
 * Culltron Coach styles — shared verbatim across every client app.
 * Self-contained, no external fonts/assets. Scoped under .cc- classes so it
 * never collides with a host app's styles. Accent comes from --cc-accent
 * (each plugin sets it to its own brand colour); a neutral fallback is used.
 */

:root { --cc-accent: #2b6cb0; }

/* ---- launcher ---------------------------------------------------------- */
.cc-launch {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 2147483000;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px 10px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--cc-accent);
	color: #fff;
	font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}
.cc-launch:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32); }
.cc-launch:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }
.cc-launch-q {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	font-weight: 800;
	font-size: 14px;
}
@media (max-width: 640px) { .cc-launch-t { display: none; } .cc-launch { padding: 12px; } }

/* ---- welcome modal ----------------------------------------------------- */
.cc-lock { overflow: hidden; }
.cc-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 18, 24, 0.62);
	backdrop-filter: saturate(140%) blur(2px);
	animation: cc-fade .18s ease;
}
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
.cc-modal {
	position: relative;
	width: 100%;
	max-width: 460px;
	background: #fff;
	color: #1c2430;
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	animation: cc-pop .2s cubic-bezier(.2, .9, .3, 1.2);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@keyframes cc-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-x {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #8b95a4;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.cc-x:hover { background: #f0f2f5; color: #333; }
.cc-body { padding: 34px 30px 8px; text-align: center; }
.cc-icon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.cc-h { margin: 0 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: #131a24; }
.cc-text { font-size: 15px; line-height: 1.6; color: #46505f; }
.cc-text ul { text-align: left; margin: 12px 0 4px; padding-left: 20px; }
.cc-text li { margin: 5px 0; }
.cc-text strong { color: #23303f; }
.cc-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 22px 20px;
}
.cc-dots { display: flex; gap: 6px; }
.cc-dot { width: 7px; height: 7px; border-radius: 50%; background: #d3d9e0; transition: all .18s ease; }
.cc-dot.cc-on { background: var(--cc-accent); width: 20px; border-radius: 4px; }
.cc-btns { display: flex; gap: 8px; }
.cc-btn {
	border: 0;
	border-radius: 10px;
	padding: 9px 16px;
	font: 600 14px/1 inherit;
	cursor: pointer;
	transition: filter .12s ease, background .12s ease;
}
.cc-primary { background: var(--cc-accent); color: #fff; }
.cc-primary:hover { filter: brightness(1.06); }
.cc-ghost { background: transparent; color: #6b7685; }
.cc-ghost:hover { background: #f0f2f5; }
.cc-btn:focus-visible { outline: 3px solid rgba(43, 108, 176, 0.4); outline-offset: 1px; }

/* ---- contextual tip callout ------------------------------------------- */
.cc-tip {
	margin: 0 0 14px;
	animation: cc-slide .22s ease;
}
@keyframes cc-slide { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-tip-in {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 14px;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(43, 108, 176, 0.09), rgba(43, 108, 176, 0.045));
	border: 1px solid rgba(43, 108, 176, 0.28);
	border-left: 4px solid var(--cc-accent);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cc-tip-badge { font-size: 20px; line-height: 1.2; flex: 0 0 auto; }
.cc-tip-main { flex: 1 1 auto; min-width: 0; }
.cc-tip-title { display: block; font-size: 14.5px; font-weight: 700; color: #1b2734; margin-bottom: 3px; }
.cc-tip-text { font-size: 13.5px; line-height: 1.55; color: #45525f; }
.cc-tip-text ul { margin: 6px 0 2px; padding-left: 18px; }
.cc-tip-text li { margin: 3px 0; }
.cc-tip-x {
	flex: 0 0 auto;
	align-self: center;
	border: 1px solid rgba(43, 108, 176, 0.35);
	background: #fff;
	color: var(--cc-accent);
	border-radius: 8px;
	padding: 6px 12px;
	font: 600 13px/1 inherit;
	cursor: pointer;
	white-space: nowrap;
}
.cc-tip-x:hover { background: var(--cc-accent); color: #fff; }

/* ---- tip "more help" link --------------------------------------------- */
.cc-tip-more {
	display: inline-block;
	margin-top: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--cc-accent);
	text-decoration: none;
	border-bottom: 1px dotted var(--cc-accent);
}
.cc-tip-more:hover { border-bottom-style: solid; }

/* ---- help hub --------------------------------------------------------- */
.cc-help {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 84vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #1c2430;
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	animation: cc-pop .2s cubic-bezier(.2, .9, .3, 1.2);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cc-help-head { padding: 18px 20px 14px; border-bottom: 1px solid #eef1f4; position: relative; }
.cc-help-title { font-size: 17px; font-weight: 800; color: #131a24; margin-bottom: 12px; }
.cc-help .cc-x { top: 12px; right: 14px; }
.cc-search-wrap { position: relative; display: flex; align-items: center; }
.cc-search-ico { position: absolute; left: 13px; font-size: 15px; opacity: .7; pointer-events: none; }
.cc-search {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px 12px 38px;
	border: 1.5px solid #d7dde3;
	border-radius: 11px;
	font-size: 15px;
	color: #1c2430;
	background: #fbfcfd;
	outline: none;
	transition: border-color .12s ease, box-shadow .12s ease;
}
.cc-search:focus { border-color: var(--cc-accent); box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.14); background: #fff; }
.cc-help-results { overflow-y: auto; padding: 8px; flex: 1 1 auto; }
.cc-res {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 12px;
	border-radius: 12px;
	transition: background .12s ease;
}
.cc-res + .cc-res { border-top: 1px solid #f1f3f5; }
.cc-res:hover { background: #f7f9fb; }
.cc-res-ico { font-size: 20px; line-height: 1.3; flex: 0 0 auto; }
.cc-res-main { flex: 1 1 auto; min-width: 0; }
.cc-res-title { font-size: 14.5px; font-weight: 700; color: #1b2734; margin-bottom: 3px; }
.cc-res-text { font-size: 13px; line-height: 1.5; color: #55606d; }
.cc-res-text ul { margin: 5px 0 2px; padding-left: 17px; }
.cc-res-text li { margin: 2px 0; }
.cc-res-go {
	flex: 0 0 auto;
	align-self: center;
	border: 1px solid var(--cc-accent);
	background: #fff;
	color: var(--cc-accent);
	border-radius: 9px;
	padding: 7px 12px;
	font: 600 12.5px/1 inherit;
	cursor: pointer;
	white-space: nowrap;
}
.cc-res-go:hover { background: var(--cc-accent); color: #fff; }

/* Shown instead of "Go there" when the result is the screen already on display.
   Deliberately not a button: there is nowhere to go, and a dead control is worse
   than a plain label. */
.cc-res-here {
	flex: 0 0 auto;
	align-self: center;
	border: 1px dashed #c8d0da;
	border-radius: 999px;
	padding: 5px 11px;
	font-size: 12.5px;
	font-weight: 600;
	color: #6b7685;
	background: #f7f9fb;
	white-space: nowrap;
}
.cc-nores { padding: 30px 20px; text-align: center; color: #6b7685; font-size: 14px; }
.cc-nores p { margin: 0 0 12px; }
.cc-help-foot {
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 12px 16px;
	border-top: 1px solid #eef1f4;
	background: #fafbfc;
}
.cc-ai-btn, .cc-ai-btn2 { background: var(--cc-accent); color: #fff; }
.cc-ai-btn:hover, .cc-ai-btn2:hover { filter: brightness(1.06); }

/* ---- AI answer panel -------------------------------------------------- */
.cc-ai-wrap { padding: 14px; }
.cc-ai-q {
	display: inline-block;
	background: var(--cc-accent);
	color: #fff;
	padding: 8px 13px;
	border-radius: 12px 12px 12px 3px;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 12px;
	max-width: 90%;
}
.cc-ai-a { font-size: 14px; line-height: 1.6; color: #303a45; }
.cc-ai-a ul { padding-left: 18px; }
.cc-ai-loading { color: #8a929c; font-style: italic; }
.cc-ai-go { margin-top: 14px; }

/* ---- dark-app friendliness: apps that render on a dark shell get a
   readable card regardless (modal/tip keep their own light surface). ----- */
@media (prefers-color-scheme: dark) {
	.cc-tip-in { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); }
	.cc-tip-title { color: #eef2f6; }
	.cc-tip-text { color: #c2ccd6; }
	.cc-tip-x { background: transparent; }
}
