/* Skilled Professors Chat — front-end widget styles */
.ewsc-root,
.ewsc-root * { box-sizing: border-box; }
.ewsc-root [hidden] { display: none !important; }
.ewsc-root {
	--ewsc-primary: var(--sp-primary, #0B2447);
	--ewsc-primary-hover: var(--sp-primary-hover, #071A33);
	--ewsc-primary-soft: var(--sp-primary-soft, #EEF3F8);
	--ewsc-ink: var(--sp-ink, #172033);
	--ewsc-muted: var(--sp-muted, #667085);
	--ewsc-border: var(--sp-border, #E5EAF0);
	--ewsc-surface: #FFFFFF;
	--ewsc-bg: #F6F8FB;
	--ewsc-accent: #F58220;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483000;
	font-family: "Inter", "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ewsc-ink);
	-webkit-font-smoothing: antialiased;
}

/* Skilled Professors pill launcher. */
.ewsc-bubble {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 104px;
	height: 50px;
	padding: 0 18px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 999px;
	background: var(--ewsc-primary);
	color: #fff;
	box-shadow: 0 12px 30px rgba(11,36,71,.22);
	cursor: pointer;
	font: inherit;
	font-weight: 750;
	letter-spacing: -.01em;
	transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.ewsc-bubble:hover,
.ewsc-bubble:focus-visible,
.ewsc-bubble.ewsc-open {
	background: var(--ewsc-primary-hover);
	box-shadow: 0 16px 34px rgba(11,36,71,.28);
	transform: translateY(-1px);
	outline: none;
}
.ewsc-bubble-label { line-height: 1; }
.ewsc-bubble svg { flex: 0 0 auto; }
.ewsc-dot {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 13px;
	height: 13px;
	background: #D92D20;
	border: 2px solid #fff;
	border-radius: 50%;
}

/* Main panel */
.ewsc-panel {
	position: absolute;
	right: 0;
	bottom: 64px;
	width: 380px;
	max-width: calc(100vw - 28px);
	height: 530px;
	max-height: min(74vh, 650px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ewsc-border);
	border-radius: 20px;
	background: var(--ewsc-bg);
	box-shadow: 0 22px 60px rgba(15,35,60,.18);
	animation: ewsc-pop .16s ease;
}
@keyframes ewsc-pop {
	from { opacity: 0; transform: translateY(8px) scale(.99); }
	to { opacity: 1; transform: none; }
}

.ewsc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 72px;
	padding: 14px 16px;
	background: linear-gradient(135deg, var(--ewsc-primary) 0%, #143760 100%);
	color: #fff;
}
.ewsc-head::before {
	content: "";
	width: 9px;
	height: 38px;
	border-radius: 999px;
	background: var(--ewsc-accent);
	box-shadow: 0 0 0 4px rgba(255,255,255,.08);
	flex: 0 0 9px;
}
.ewsc-head-t { min-width: 0; flex: 1; }
.ewsc-head-t strong {
	display: block;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ewsc-head-t span {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 550;
	opacity: .82;
}
.ewsc-head-t span::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 6px;
	border-radius: 50%;
	background: #32D583;
	vertical-align: middle;
}
.ewsc-head-r { display: flex; align-items: center; gap: 6px; }
.ewsc-x,
.ewsc-snd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: .88;
}
.ewsc-x { font-size: 24px; line-height: 1; }
.ewsc-x:hover,
.ewsc-x:focus-visible,
.ewsc-snd:hover,
.ewsc-snd:focus-visible { background: rgba(255,255,255,.12); opacity: 1; outline: none; }
.ewsc-snd.is-muted { opacity: .48; position: relative; }
.ewsc-snd.is-muted::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 1.5px;
	background: currentColor;
	transform: rotate(-45deg);
}
.ewsc-end {
	min-height: 32px;
	padding: 5px 10px;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 9px;
	background: rgba(255,255,255,.1);
	color: #fff;
	font: inherit;
	font-size: 11.5px;
	font-weight: 650;
	cursor: pointer;
	white-space: nowrap;
}
.ewsc-end:hover { background: rgba(255,255,255,.2); }

.ewsc-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	scrollbar-width: thin;
	scrollbar-color: #C8D1DD transparent;
}
.ewsc-thread { margin-top: 8px; }
.ewsc-msg { display: flex; margin-bottom: 10px; }
.ewsc-msg .ewsc-b {
	max-width: 84%;
	padding: 10px 12px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.5;
	word-wrap: break-word;
	white-space: normal;
}
.ewsc-in { justify-content: flex-start; }
.ewsc-in .ewsc-b {
	background: #fff;
	color: var(--ewsc-ink);
	border: 1px solid var(--ewsc-border);
	border-bottom-left-radius: 4px;
	box-shadow: 0 4px 12px rgba(15,35,60,.04);
}
.ewsc-out { justify-content: flex-end; }
.ewsc-out .ewsc-b {
	background: var(--ewsc-primary);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.ewsc-msg.ewsc-sys { justify-content: center; }
.ewsc-msg.ewsc-sys .ewsc-b {
	max-width: 100%;
	padding: 4px 8px;
	background: transparent;
	box-shadow: none;
	color: var(--ewsc-muted);
	font-size: 11.5px;
	text-align: center;
}

/* Entry actions and quick replies. */
.ewsc-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.ewsc-here,
.ewsc-wa,
.ewsc-link-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 43px;
	padding: 10px 14px;
	border-radius: 11px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.ewsc-here,
.ewsc-link-btn {
	border: 1px solid var(--ewsc-primary);
	background: var(--ewsc-primary);
	color: #fff;
}
.ewsc-here:hover,
.ewsc-here:focus-visible,
.ewsc-link-btn:hover,
.ewsc-link-btn:focus-visible {
	background: var(--ewsc-primary-hover);
	border-color: var(--ewsc-primary-hover);
	color: #fff;
	outline: none;
}
.ewsc-wa {
	border: 1px solid #CFE8D7;
	background: #F4FBF6;
	color: #187A3C;
}
.ewsc-wa:hover,
.ewsc-wa:focus-visible { background: #EAF7EE; border-color: #9FD2AE; color: #126431; outline: none; }

.ewsc-quick {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 2px;
}
.ewsc-quick-b,
.ewsc-sub-b {
	border: 1px solid var(--ewsc-border);
	background: #fff;
	color: #344054;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ewsc-quick-b {
	min-height: 44px;
	padding: 9px 8px;
	border-radius: 11px;
	font-size: 12.5px;
	line-height: 1.3;
	text-align: center;
}
.ewsc-quick-b:hover,
.ewsc-quick-b:focus-visible,
.ewsc-sub-b:hover,
.ewsc-sub-b:focus-visible {
	border-color: #B9C7D7;
	background: var(--ewsc-primary-soft);
	color: var(--ewsc-primary);
	outline: none;
}
.ewsc-link-btn { margin-top: 9px; min-height: 38px; padding: 8px 12px; font-size: 12.5px; }
.ewsc-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ewsc-sub-b { padding: 6px 10px; border-radius: 999px; font-size: 11.5px; }

/* Compose */
.ewsc-compose {
	border-top: 1px solid var(--ewsc-border);
	padding: 11px 12px 12px;
	background: #fff;
}
.ewsc-id { margin-bottom: 3px; }
.ewsc-name,
.ewsc-contact,
.ewsc-input,
.ewsc-teaser-input {
	width: 100%;
	border: 1px solid #D7DEE8;
	background: #fff;
	color: var(--ewsc-ink);
	font-family: inherit;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ewsc-name,
.ewsc-contact {
	padding: 8px 10px;
	border-radius: 9px;
	font-size: 12.5px;
	margin-bottom: 8px;
}
.ewsc-input {
	flex: 1;
	resize: none;
	max-height: 110px;
	padding: 9px 11px;
	border-radius: 10px;
	font-size: 13.5px;
}
.ewsc-name:focus,
.ewsc-contact:focus,
.ewsc-input:focus,
.ewsc-teaser-input:focus {
	border-color: var(--ewsc-primary);
	box-shadow: 0 0 0 3px rgba(11,36,71,.09);
}
.ewsc-err {
	margin-bottom: 8px;
	padding: 7px 9px;
	border: 1px solid #F0B9BB;
	border-radius: 9px;
	background: #FFF5F5;
	color: #A72A31;
	font-size: 11.5px;
	line-height: 1.4;
}
.ewsc-row { display: flex; align-items: flex-end; gap: 8px; }
.ewsc-send,
.ewsc-teaser-send {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--ewsc-primary);
	color: #fff;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.ewsc-send { width: 40px; height: 40px; }
.ewsc-teaser-send { width: 38px; height: 38px; }
.ewsc-send:hover,
.ewsc-send:focus-visible,
.ewsc-teaser-send:hover,
.ewsc-teaser-send:focus-visible { background: var(--ewsc-primary-hover); outline: none; transform: translateY(-1px); }

.ewsc-foot {
	padding: 8px 14px;
	border-top: 1px solid #EEF1F5;
	background: #FBFCFD;
	color: #7C8798;
	font-size: 10.5px;
	text-align: center;
}
.ewsc-foot a { color: var(--ewsc-primary); font-weight: 650; }

/* Proactive teaser */
.ewsc-teaser {
	position: absolute;
	right: 0;
	bottom: 64px;
	width: 320px;
	max-width: calc(100vw - 28px);
	padding: 15px;
	border: 1px solid var(--ewsc-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(15,35,60,.16);
	animation: ewsc-pop .18s ease;
}
.ewsc-teaser-x {
	position: absolute;
	top: 7px;
	right: 9px;
	border: 0;
	background: transparent;
	color: #98A2B3;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.ewsc-teaser-x:hover { color: #475467; }
.ewsc-teaser-msg { margin: 1px 18px 12px 1px; color: #344054; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.ewsc-teaser-row { display: flex; align-items: center; gap: 8px; }
.ewsc-teaser-input { flex: 1; padding: 9px 12px; border-radius: 999px; background: #F8FAFC; font-size: 13px; }

/* Away/closed states */
.ewsc-away .ewsc-head-t span::before { background: #98A2B3; }
.ewsc-closed { margin-top: 8px; padding: 14px 12px; border-top: 1px solid var(--ewsc-border); text-align: center; }
.ewsc-closed p { margin: 0 0 10px; color: #475467; font-size: 12.5px; }
.ewsc-restart {
	border: 1px solid var(--ewsc-primary);
	border-radius: 9px;
	padding: 8px 14px;
	background: var(--ewsc-primary);
	color: #fff;
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}
.ewsc-restart:hover { background: var(--ewsc-primary-hover); }

@media (max-width: 480px) {
	.ewsc-root { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
	.ewsc-bubble { min-width: 96px; height: 48px; padding: 0 16px; }
	.ewsc-panel {
		width: calc(100vw - 24px);
		height: min(640px, calc(100dvh - 96px));
		max-height: calc(100dvh - 96px);
		bottom: 60px;
		border-radius: 18px;
	}
	.ewsc-teaser { width: calc(100vw - 24px); bottom: 60px; }
	.ewsc-quick { grid-template-columns: 1fr 1fr; }
	.ewsc-head { padding: 12px 13px; min-height: 66px; }
	.ewsc-body { padding: 13px; }
}
