.ysa-sentiment-stream,
.ysa-sentiment-stream *{
	box-sizing:border-box;
}

#xhr_stats_sentiment_stream{
	margin-top:20px;
}

.ysa-sentiment-stream{
	width:100%;
	padding:28px;
	border:1px solid #E1E7EF;
	border-radius:18px;
	background:#FFFFFF;
	color:#101828;
	box-shadow:0 2px 6px rgba(16,24,40,.04);
}

.ysa-sentiment-stream__header{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:28px;
}

.ysa-sentiment-stream__header h2{
	margin:0;
	color:#101828 !important;
	font-family:var(--fontheaders,Geist,Inter,sans-serif);
	font-size:24px !important;
	line-height:1.2;
	font-weight:740 !important;
	letter-spacing:-.025em !important;
}

.ysa-sentiment-stream__header p{
	max-width:760px;
	margin:8px 0 0;
	color:#71829B;
	font-size:var(--fontsize,14px);
	line-height:1.55;
}

.ysa-sentiment-stream__metric-control{
	display:flex;
	flex:0 0 auto;
	align-items:center;
	gap:10px;
	color:#91A1B8;
	font-size:12px;
}

.ysa-sentiment-stream__metric-control>div{
	display:flex;
	padding:3px;
	border:1px solid #E6EBF2;
	border-radius:10px;
	background:#F7F9FC;
}

.ysa-sentiment-stream__metric-control button{
	height:34px;
	padding:0 14px;
	border:0;
	border-radius:8px;
	background:transparent;
	color:#536176;
	font:650 12px/1 var(--fontfamily,Geist,Inter,sans-serif);
	cursor:pointer;
}

.ysa-sentiment-stream__metric-control button.is-active{
	background:#101828;
	color:#FFFFFF;
	box-shadow:0 2px 6px rgba(16,24,40,.18);
}

.ysa-sentiment-stream__metric-control button.is-unavailable:not(.is-active){
	color:#71829B;
}

.ysa-sentiment-stream__metric-control button:focus-visible{
	outline:2px solid #21C8AA;
	outline-offset:2px;
}

.ysa-sentiment-stream__kpis{
	display:grid;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:14px;
	margin-top:26px;
}

.ysa-sentiment-stream__kpis article{
	display:flex;
	min-width:0;
	min-height:132px;
	flex-direction:column;
	align-items:flex-start;
	padding:18px;
	border:1px solid #E7ECF3;
	border-radius:14px;
	background:#FBFCFE;
}

.ysa-sentiment-stream__kpis article>span{
	color:#91A2BA;
	font-size:11px;
	line-height:1.2;
	font-weight:650;
	letter-spacing:.08em;
	text-transform:uppercase;
}

.ysa-sentiment-stream__kpis article>strong{
	margin-top:10px;
	color:#101828;
	font-size:31px;
	line-height:1;
	font-weight:750;
	letter-spacing:-.035em;
}

.ysa-sentiment-stream__kpis article>p{
	margin:7px 0 0;
	color:#94A3B8;
	font-size:12px;
	line-height:1.35;
}

.ysa-sentiment-stream__kpis article>em{
	display:inline-flex;
	min-height:25px;
	align-items:center;
	margin-top:auto;
	padding:5px 8px;
	border-radius:7px;
	background:#F2F4F7;
	color:#667085;
	font-size:11px;
	line-height:1.2;
	font-style:normal;
	font-weight:650;
}

.ysa-sentiment-stream__kpis article>em.is-positive{
	background:#EAF9F3;
	color:#087C67;
}

.ysa-sentiment-stream__kpis article>em.is-negative{
	background:#FFF3E8;
	color:#C84412;
}

.ysa-sentiment-stream__body{
	display:grid;
	grid-template-columns:minmax(0,1fr) minmax(250px,300px);
	gap:22px;
	align-items:stretch;
	margin-top:26px;
}

.ysa-sentiment-stream__visual{
	min-width:0;
	padding:8px 8px 0 0;
}

.ysa-sentiment-stream__main-chart{
	position:relative;
	height:clamp(320px,22vw,420px);
}

.ysa-sentiment-stream__metric-empty{
	display:grid;
	position:absolute;
	inset:0;
	place-items:center;
	padding:24px;
	border:1px dashed #D8E0EA;
	border-radius:12px;
	background:#F8FAFC;
	color:#71829B;
	font-size:13px;
	line-height:1.5;
	text-align:center;
}

.ysa-sentiment-stream__metric-empty[hidden]{display:none;}
.ysa-sentiment-stream__main-chart>[data-stream-chart="main"][hidden]{display:none !important;}

.ysa-sentiment-stream__secondary{
	margin:10px 0 0 54px;
	padding-top:13px;
	border-top:1px solid #E8EDF3;
}

.ysa-sentiment-stream__secondary>strong{
	display:block;
	margin:0 0 3px;
	color:#D99508;
	font-size:12px;
	line-height:1.2;
	font-weight:650;
}

.ysa-sentiment-stream__secondary.is-sentiment>strong{color:#7C3AED;}

.ysa-sentiment-stream__secondary>div{
	position:relative;
	height:108px;
}

.ysa-sentiment-stream__main-chart canvas,
.ysa-sentiment-stream__secondary canvas{
	display:block;
	width:100% !important;
	height:100% !important;
}

.ysa-sentiment-stream__correlations{
	display:flex;
	min-width:0;
	flex-direction:column;
	padding:20px;
	border:1px solid #E5EAF1;
	border-radius:14px;
	background:#FBFCFE;
}

.ysa-sentiment-stream__correlations-head h3{
	margin:0;
	color:#172033 !important;
	font-size:15px !important;
	line-height:1.3;
	font-weight:700 !important;
}

.ysa-sentiment-stream__correlations-head p{
	margin:5px 0 0;
	color:#93A3BA;
	font-size:11px;
	line-height:1.45;
}

.ysa-sentiment-stream__correlation{
	margin-top:25px;
}

.ysa-sentiment-stream__correlation header{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
}

.ysa-sentiment-stream__correlation header strong,
.ysa-sentiment-stream__correlation header b{
	color:#42526A;
	font-size:12px;
	line-height:1.2;
	font-weight:650;
}

.ysa-sentiment-stream__correlation header b{
	color:#2563EB;
	font-size:15px;
}

.ysa-sentiment-stream__correlation.is-amber header b{color:#D99508;}
.ysa-sentiment-stream__correlation.is-purple header b{color:#7C3AED;}

.ysa-sentiment-stream__rail{
	position:relative;
	height:6px;
	margin-top:12px;
	border-radius:99px;
	background:#E5EAF2;
}

.ysa-sentiment-stream__rail:after{
	content:"";
	position:absolute;
	top:-5px;
	bottom:-5px;
	left:50%;
	width:1px;
	background:#CBD5E1;
}

.ysa-sentiment-stream__rail i{
	position:absolute;
	top:50%;
	left:var(--stream-position,50%);
	z-index:1;
	width:13px;
	height:13px;
	border:2px solid #FFFFFF;
	border-radius:50%;
	background:#2563EB;
	box-shadow:0 1px 3px rgba(16,24,40,.16);
	transform:translate(-50%,-50%);
}

.ysa-sentiment-stream__correlation.is-amber .ysa-sentiment-stream__rail i{background:#E09A0B;}
.ysa-sentiment-stream__correlation.is-purple .ysa-sentiment-stream__rail i{background:#7C3AED;}

.ysa-sentiment-stream__correlation footer{
	display:grid;
	grid-template-columns:1fr auto 1fr;
	gap:5px;
	margin-top:8px;
	color:#9AA9BE;
	font-size:9.5px;
	line-height:1.25;
}

.ysa-sentiment-stream__correlation footer span:nth-child(2){text-align:center;}
.ysa-sentiment-stream__correlation footer span:last-child{text-align:right;}

.ysa-sentiment-stream__selection{
	display:flex;
	flex-direction:column;
	gap:5px;
	margin-top:auto;
	padding-top:20px;
	border-top:1px solid #E5EAF1;
}

.ysa-sentiment-stream__selection strong{
	color:#172033;
	font-size:13px;
	line-height:1.35;
}

.ysa-sentiment-stream__selection span,
.ysa-sentiment-stream__selection small{
	color:#94A3B8;
	font-size:11px;
	line-height:1.4;
}

.ysa-sentiment-stream__selection small{margin-top:5px;}

.ysa-sentiment-stream p.ysa-sentiment-stream__insight,
.ysa-sentiment-stream__empty{
	display:flex;
	align-items:center;
	min-height:54px;
	margin:24px 0 0;
	padding:10px 18px;
	border:1px solid #E8EDF3;
	border-radius:12px;
	background:#F8FAFC;
	color:#536176;
	font-size:13px;
	line-height:1.55;
}

.ysa-sentiment-stream__insight>[data-stream-insight-copy]{
	display:block;
	width:100%;
}

.ysa-sentiment-stream__empty[hidden]{display:none !important;}

.ysa-sentiment-stream__insight strong{color:#172033;}

.ysa-sentiment-stream__empty{
	border-color:#F1D6BC;
	background:#FFF8F1;
	color:#8E5428;
}

.ysa-visually-hidden{
	position:absolute !important;
	width:1px !important;
	height:1px !important;
	padding:0 !important;
	margin:-1px !important;
	overflow:hidden !important;
	clip:rect(0,0,0,0) !important;
	white-space:nowrap !important;
	border:0 !important;
}

@media(max-width:1080px){
	.ysa-sentiment-stream__body{grid-template-columns:1fr;}
	.ysa-sentiment-stream__correlations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
	.ysa-sentiment-stream__correlations-head,
	.ysa-sentiment-stream__selection{grid-column:1/-1;}
	.ysa-sentiment-stream__correlation{margin-top:6px;}
	.ysa-sentiment-stream__selection{margin-top:0;}
}

@media(max-width:760px){
	.ysa-sentiment-stream{padding:18px 16px;border-radius:14px;}
	.ysa-sentiment-stream__header{flex-direction:column;gap:16px;}
	.ysa-sentiment-stream__header h2{font-size:21px !important;}
	.ysa-sentiment-stream__metric-control{width:100%;justify-content:space-between;}
	.ysa-sentiment-stream__metric-control>div{flex:1;}
	.ysa-sentiment-stream__metric-control button{flex:1;padding:0 8px;}
	.ysa-sentiment-stream__kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px;}
	.ysa-sentiment-stream__kpis article{min-height:128px;padding:14px;}
	.ysa-sentiment-stream__kpis article>strong{font-size:27px;}
	.ysa-sentiment-stream__body{margin-top:20px;}
	.ysa-sentiment-stream__visual{padding-right:0;}
	.ysa-sentiment-stream__main-chart{height:280px;}
	.ysa-sentiment-stream__secondary{margin-left:38px;}
	.ysa-sentiment-stream__correlations{display:flex;padding:16px;}
	.ysa-sentiment-stream__correlation{margin-top:22px;}
	.ysa-sentiment-stream__selection{margin-top:22px;}
	.ysa-sentiment-stream p.ysa-sentiment-stream__insight{margin-top:18px;padding:10px 14px;}
}

@media(max-width:420px){
	.ysa-sentiment-stream__kpis article{min-height:116px;}
	.ysa-sentiment-stream__main-chart{height:245px;}
	.ysa-sentiment-stream__secondary{margin-left:30px;}
}

@media(prefers-reduced-motion:reduce){
	.ysa-sentiment-stream *{scroll-behavior:auto !important;}
}

@media print{
	.ysa-sentiment-stream{break-inside:avoid;box-shadow:none;}
	.ysa-sentiment-stream__metric-control{display:none;}
}
