/* AI 챗봇 임시 UI — 시안 기반 */
.kst-chat-root{
	--kst-chat-ink:#1a2332;
	--kst-chat-user:#1e2a3b;
	--kst-chat-ai:#fff;
	--kst-chat-bg:#f3f4f6;
	--kst-chat-line:#e5e7eb;
	--kst-chat-blue:#2f6fed;
	--kst-chat-muted:#6b7280;
	--kst-chat-radius:1.6rem;
	--kst-fs:1;
	font-family:"Pretendard Variable", Pretendard, "SUIT", sans-serif;
	-webkit-font-smoothing:antialiased;
}
.kst-chat-root.is-fs-1{--kst-fs:1.18;}
.kst-chat-root.is-fs-2{--kst-fs:1.36;}
.kst-chat-root.is-fs-3{--kst-fs:1.54;}

.kst-chat-backdrop{
	position:fixed;
	inset:0;
	z-index:1200;
	background:rgba(26,35,50,.35);
	opacity:0;
	visibility:hidden;
	transition:opacity .25s ease, visibility .25s ease;
}
.kst-chat-root.is-open .kst-chat-backdrop{
	opacity:1;
	visibility:visible;
}

.kst-chat-panel{
	position:fixed;
	right:2.4rem;
	bottom:2.4rem;
	z-index:1201;
	display:flex;
	flex-direction:column;
	width:min(52rem, calc(100vw - 2.4rem));
	height:min(68rem, calc(100vh - 4.8rem));
	background:var(--kst-chat-bg);
	border:1px solid var(--kst-chat-line);
	border-radius:2rem;
	box-shadow:0 1.6rem 4rem rgba(26,35,50,.18);
	transform:translateY(1.6rem) scale(.98);
	opacity:0;
	visibility:hidden;
	pointer-events:none;
	transition:transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease, visibility .28s ease, width .28s ease, height .28s ease;
	overflow:hidden;
}
.kst-chat-root.is-open .kst-chat-panel{
	transform:none;
	opacity:1;
	visibility:visible;
	pointer-events:auto;
}
.kst-chat-root.is-expanded .kst-chat-panel{
	width:min(63rem, calc(100vw - 2.4rem));
	height:min(102rem, calc(100vh - 4.8rem));
}

.kst-chat-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:1.2rem;
	padding:1.4rem 1.6rem;
	background:#fff;
	border-bottom:1px solid var(--kst-chat-line);
}
.kst-chat-brand{
	display:flex;
	align-items:center;
	gap:1rem;
	min-width:0;
	flex:0 0 auto;
}
.kst-chat-brand img{
	width:4rem;
	height:4rem;
	object-fit:contain;
	flex-shrink:0;
}
.kst-chat-brand .txt{
	min-width:0;
}
.kst-chat-brand .txt strong{
	display:block;
	font-size:1.5rem;
	font-weight:700;
	color:var(--kst-chat-ink);
	line-height:1.3;
	white-space:nowrap;
}
.kst-chat-brand .txt span{
	display:block;
	font-size:1.2rem;
	color:var(--kst-chat-muted);
	margin-top:.2rem;
}
.kst-chat-actions{
	display:flex;
	align-items:center;
	gap:.6rem;
	flex-shrink:0;
}
.kst-chat-tools{
	display:flex;
	align-items:center;
	gap:.4rem;
}
.kst-chat-font-step{
	min-width:4.4rem;
	text-align:center;
	font-size:1.15rem;
	font-weight:700;
	color:var(--kst-chat-muted);
	line-height:1;
}
#kstChat .kst-chat-tool{
	height:3.2rem;
	padding:0 .9rem;
	border:1px solid #e5e7eb !important;
	border-radius:.8rem;
	background:#ffffff !important;
	color:#1a2332 !important;
	font-size:1.25rem;
	font-weight:700;
	line-height:1;
	cursor:pointer;
	white-space:nowrap;
}
#kstChat .kst-chat-tool:hover,
#kstChat .kst-chat-tool:focus{
	background:#f3f4f6 !important;
	color:#1a2332 !important;
}
#kstChat .kst-chat-tool:disabled{
	opacity:.35 !important;
	cursor:default;
}
.kst-chat-close{
	width:3.6rem;
	height:3.6rem;
	border:0;
	border-radius:50%;
	background:#f3f4f6;
	color:var(--kst-chat-ink);
	font-size:2rem;
	line-height:1;
	cursor:pointer;
}
/* 사이트 전역 button:hover{background:transparent} 완전 차단 */
#kstChat button,
#kstChat button:hover,
#kstChat button:focus,
#kstChat button:active{
	opacity:1 !important;
	visibility:visible !important;
	-webkit-text-fill-color:unset;
}
#kstChat .kst-chat-close{
	background:#f3f4f6 !important;
	color:#1a2332 !important;
}
#kstChat .kst-chat-close:hover,
#kstChat .kst-chat-close:focus{
	background:#e5e7eb !important;
	color:#1a2332 !important;
}

.kst-chat-body{
	flex:1;
	overflow-y:auto;
	padding:1.6rem;
	display:flex;
	flex-direction:column;
	gap:1.2rem;
	scroll-behavior:smooth;
}

.kst-chat-msg{
	display:flex;
	flex-direction:column;
	max-width:92%;
}
.kst-chat-msg.is-user{
	align-self:flex-end;
	align-items:flex-end;
}
.kst-chat-msg.is-bot{
	align-self:flex-start;
	align-items:flex-start;
}
.kst-chat-bubble{
	padding:1.2rem 1.4rem;
	border-radius:1.4rem;
	font-size:calc(1.4rem * var(--kst-fs));
	line-height:1.55;
	word-break:keep-all;
}
.kst-chat-msg.is-user .kst-chat-bubble{
	background:var(--kst-chat-user);
	color:#fff;
	border-bottom-right-radius:.4rem;
}
.kst-chat-msg.is-bot .kst-chat-bubble{
	background:var(--kst-chat-ai);
	color:var(--kst-chat-ink);
	border:1px solid var(--kst-chat-line);
	border-bottom-left-radius:.4rem;
}
.kst-chat-bubble .em{
	color:var(--kst-chat-blue);
	font-weight:700;
}
.kst-chat-bubble .welcome-note{
	display:block;
	margin-top:.8rem;
	color:var(--kst-chat-muted);
	font-size:calc(1.25rem * var(--kst-fs));
	line-height:1.5;
}
.kst-chat-detail-title{
	margin:0 0 .8rem;
	font-weight:700;
}
.kst-chat-detail{
	margin:0;
}
.kst-chat-detail > div{
	display:grid;
	grid-template-columns:calc(7.2rem * var(--kst-fs)) 1fr;
	gap:.4rem;
	padding:.35rem 0;
	border-top:1px solid #eef0f3;
	font-size:calc(1.3rem * var(--kst-fs));
}
.kst-chat-detail dt{
	margin:0;
	color:#6b7280;
	font-weight:600;
}
.kst-chat-detail dd{
	margin:0;
}
.kst-chat-detail-label{
	margin:.9rem 0 .3rem;
	font-size:calc(1.2rem * var(--kst-fs));
	font-weight:700;
	color:#6b7280;
}
.kst-chat-detail-body{
	margin:0;
}
.kst-chat-detail-more{
	margin:.8rem 0 0;
}
.kst-chat-detail-more a{
	color:#2f6fed;
	font-weight:700;
	font-size:calc(1.25rem * var(--kst-fs));
}
.kst-chat-tags{
	display:flex;
	flex-wrap:wrap;
	gap:.6rem;
	margin-top:.8rem;
}
.kst-chat-tags span{
	display:inline-flex;
	align-items:center;
	padding:.4rem .9rem;
	border-radius:999px;
	background:rgba(47,111,237,.1);
	color:var(--kst-chat-blue);
	font-size:calc(1.2rem * var(--kst-fs));
	font-weight:600;
}

.kst-chat-typing{
	display:inline-flex;
	gap:.4rem;
	padding:1.2rem 1.4rem;
	background:#fff;
	border:1px solid var(--kst-chat-line);
	border-radius:1.4rem;
}
.kst-chat-typing i{
	width:.6rem;
	height:.6rem;
	border-radius:50%;
	background:#9ca3af;
	animation:kst-chat-dot 1s infinite ease-in-out;
}
.kst-chat-typing i:nth-child(2){animation-delay:.15s;}
.kst-chat-typing i:nth-child(3){animation-delay:.3s;}
@keyframes kst-chat-dot{
	0%,80%,100%{opacity:.3; transform:translateY(0);}
	40%{opacity:1; transform:translateY(-.2rem);}
}

/* 추천 카드 캐러셀 */
.kst-chat-reco{
	width:100%;
	margin-top:.4rem;
	background:#fff;
	border:1px solid var(--kst-chat-line);
	border-radius:1.4rem;
	padding:1.2rem;
}
.kst-chat-reco-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:.8rem;
	margin-bottom:1rem;
}
.kst-chat-reco-head p{
	margin:0;
	font-size:calc(1.3rem * var(--kst-fs));
	font-weight:700;
	color:var(--kst-chat-ink);
}
.kst-chat-reco-nav{
	display:flex;
	gap:.4rem;
}
.kst-chat-reco-nav button{
	width:2.8rem;
	height:2.8rem;
	border:1px solid var(--kst-chat-line);
	border-radius:.6rem;
	background:#fff !important;
	cursor:pointer;
	font-size:1.4rem;
	line-height:1;
	color:var(--kst-chat-ink);
}
.kst-chat-reco-nav button:hover{background:#f9fafb !important;}
.kst-chat-reco-nav button:disabled{opacity:.35; cursor:default;}

.kst-chat-reco-track{
	display:flex;
	gap:1rem;
	overflow-x:auto;
	scroll-snap-type:x mandatory;
	scrollbar-width:thin;
	padding-bottom:.6rem;
	-webkit-overflow-scrolling:touch;
}
.kst-chat-reco-track::-webkit-scrollbar{height:.4rem;}
.kst-chat-reco-track::-webkit-scrollbar-thumb{
	background:#cfd4dc;
	border-radius:999px;
}

.kst-chat-card{
	flex:0 0 14.8rem;
	scroll-snap-align:start;
	display:flex;
	flex-direction:column;
	gap:.8rem;
}
.kst-chat-card .poster{
	width:100%;
	aspect-ratio:3/4;
	object-fit:cover;
	border-radius:1rem;
	background:#e5e7eb center/cover no-repeat;
	border:1px solid var(--kst-chat-line);
	display:block;
}
.kst-chat-card .title{
	margin:0;
	font-size:calc(1.3rem * var(--kst-fs));
	font-weight:700;
	color:var(--kst-chat-ink);
	line-height:1.35;
	min-height:3.6rem;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
.kst-chat-card .kst-chat-card-tags,
.kst-chat-card .kst-chat-card-meta{
	margin:0;
	font-size:calc(1.05rem * var(--kst-fs));
	line-height:1.35;
	color:#6b7280;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
.kst-chat-card .cta{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:.4rem;
	height:3.4rem;
	padding:0 1rem;
	border:1px solid var(--kst-chat-ink);
	border-radius:.8rem;
	background:#fff;
	color:var(--kst-chat-ink);
	font-size:calc(1.2rem * var(--kst-fs));
	font-weight:600;
	text-decoration:none;
}
.kst-chat-card .cta:hover{background:#f9fafb;}
.kst-chat-card .cta svg{
	width:1.2rem;
	height:1.2rem;
}
.kst-chat-reco-foot{
	margin:.6rem 0 0;
	font-size:calc(1.15rem * var(--kst-fs));
	color:var(--kst-chat-muted);
	text-align:right;
}

.kst-chat-foot{
	background:#fff;
	border-top:1px solid var(--kst-chat-line);
	padding:1.2rem 1.2rem 1.4rem;
}
.kst-chat-chips{
	display:flex;
	flex-wrap:wrap;
	gap:.6rem;
	margin-bottom:1rem;
}
#kstChat .kst-chat-chips button{
	height:3.2rem;
	padding:0 1.2rem;
	border:1px solid #e5e7eb !important;
	border-radius:999px;
	background:#ffffff !important;
	color:#1a2332 !important;
	font-size:1.25rem;
	font-weight:600;
	cursor:pointer;
}
#kstChat .kst-chat-chips button:hover,
#kstChat .kst-chat-chips button:focus,
#kstChat .kst-chat-chips button.is-on{
	border-color:#1a2332 !important;
	background:#f3f4f6 !important;
	color:#1a2332 !important;
}
.kst-chat-starters,
.kst-chat-choices{
	display:flex;
	flex-direction:column;
	gap:.6rem;
	width:100%;
	margin-top:.8rem;
}
.kst-chat-choices{
	flex-direction:row;
	flex-wrap:wrap;
}
#kstChat .kst-chat-starters button,
#kstChat .kst-chat-choices button{
	width:100%;
	text-align:left;
	padding:.9rem 1.2rem;
	border:1px solid #d7dbe2 !important;
	border-radius:1.2rem;
	background:#ffffff !important;
	color:#1a2332 !important;
	font-size:calc(1.3rem * var(--kst-fs));
	font-weight:600;
	line-height:1.45;
	cursor:pointer;
}
#kstChat .kst-chat-choices button{
	width:auto;
	text-align:center;
	border-radius:999px;
}
#kstChat .kst-chat-starters button:hover,
#kstChat .kst-chat-starters button:focus,
#kstChat .kst-chat-choices button:hover,
#kstChat .kst-chat-choices button:focus{
	background:#f3f4f6 !important;
	border-color:#1e2a3b !important;
	color:#1a2332 !important;
}
.kst-chat-form{
	position:relative;
}
.kst-chat-hash{
	position:absolute;
	left:0;
	right:5.2rem;
	bottom:calc(100% + .6rem);
	z-index:3;
	max-height:22rem;
	overflow-y:auto;
	background:#fff;
	border:1px solid var(--kst-chat-line);
	border-radius:1.2rem;
	box-shadow:0 .8rem 2rem rgba(26,35,50,.12);
}
#kstChat .kst-chat-hash-item{
	display:block;
	width:100%;
	text-align:left;
	padding:.8rem 1.2rem;
	border:0 !important;
	border-bottom:1px solid #eef0f3 !important;
	background:#ffffff !important;
	color:#1a2332 !important;
	font-size:calc(1.3rem * var(--kst-fs));
	font-weight:600;
	cursor:pointer;
}
#kstChat .kst-chat-hash-item:hover,
#kstChat .kst-chat-hash-item:focus,
#kstChat .kst-chat-hash-item.is-on{
	background:#f3f4f6 !important;
	color:#1a2332 !important;
}
.kst-chat-form{
	display:flex;
	align-items:flex-end;
	gap:.8rem;
}
.kst-chat-form textarea{
	flex:1;
	min-height:4.4rem;
	max-height:10rem;
	resize:none;
	border:1px solid var(--kst-chat-line);
	border-radius:1.2rem;
	padding:1.1rem 1.2rem;
	font-size:calc(1.4rem * var(--kst-fs));
	line-height:1.4;
	color:var(--kst-chat-ink);
	background:#f9fafb;
	font-family:inherit;
}
.kst-chat-form textarea:focus{
	outline:none;
	border-color:#9ca3af;
	background:#fff;
}
#kstChat .kst-chat-send{
	width:4.4rem;
	height:4.4rem;
	border:0;
	border-radius:1.2rem;
	background:#1e2a3b !important;
	color:#ffffff !important;
	cursor:pointer;
	flex-shrink:0;
	display:inline-flex;
	align-items:center;
	justify-content:center;
}
#kstChat .kst-chat-send:hover,
#kstChat .kst-chat-send:focus{
	background:#2a3a52 !important;
	color:#ffffff !important;
	opacity:1 !important;
}
#kstChat .kst-chat-send:disabled{opacity:.4 !important; cursor:default;}
#kstChat .kst-chat-send svg{
	stroke:#ffffff;
}
.kst-chat-send svg{width:1.8rem; height:1.8rem;}

.kst-chat-note{
	margin:.6rem 0 0;
	font-size:1.1rem;
	color:var(--kst-chat-muted);
	text-align:center;
}

@media (max-width:575.98px){
	.kst-chat-panel,
	.kst-chat-root.is-expanded .kst-chat-panel{
		right:0;
		bottom:0;
		width:100vw;
		height:100dvh;
		border-radius:0;
		border:0;
	}
	.kst-chat-card{flex-basis:13.2rem;}
	.kst-chat-font-step{display:none;}
	#kstChat .kst-chat-tool{padding:0 .6rem;}
}
