/**
 * Skill UI — 短代码 teachcourse_kb_skill_ui（多轮详情 v2 视觉与交互）
 * 参考 docs/design/teachcourse-skill-ui-multiturn-preview-v2.html
 */

.tckb-skill-ui {
	box-sizing: border-box;
	position: relative;
	max-width: 44rem;
	margin: 1.5rem auto;
	padding: 1.35rem 1.4rem 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-radius: 10px;
	background: #ffffff;
	color: #1a1a1a;
	font-size: 15px;
	line-height: 1.55;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Hub Skill 详情页：由主题加 .tckb-skill-ui--flat，此处提供无主题时的兜底 */
.tckb-skill-ui.tckb-skill-ui--flat {
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.tckb-skill-ui--flat .tckb-skill-ui__title,
.tckb-skill-ui--flat .tckb-skill-ui__subtitle {
	display: none;
}

/* Chat v3：单一主滚动（对话区），底栏表单不嵌套滚动 */
.tckb-skill-ui--chat .tckb-skill-ui__shell {
	display: flex;
	flex-direction: column;
	min-height: min( 60vh, 640px );
	max-height: none;
	overflow: visible;
}

.tckb-skill-ui--chat .tckb-skill-ui__chat-pane {
	flex: 1 1 auto;
	min-height: min( 40vh, 480px );
	max-height: min( 72vh, 820px );
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0.5rem 0 1rem;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.tckb-skill-ui--chat .tckb-skill-ui__messages {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.tckb-skill-ui--chat .tckb-skill-ui__welcome {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 10rem;
	padding: 1.5rem 1rem;
	text-align: center;
}

.tckb-skill-ui--chat .tckb-skill-ui__welcome[hidden] {
	display: none !important;
}

.tckb-skill-ui--chat .tckb-skill-ui__welcome-text {
	margin: 0;
	max-width: 28rem;
	font-size: 0.95rem;
	color: #6b7280;
	line-height: 1.6;
}

.tckb-skill-ui--chat .tckb-skill-ui__composer {
	flex: 0 0 auto;
	max-height: none;
	display: flex;
	flex-direction: column;
	padding: 0.65rem 0 0;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.tckb-skill-ui--chat .tckb-skill-ui__form {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: none;
	overflow: visible;
}

.tckb-skill-ui--chat .tckb-skill-ui__composer-fields {
	max-height: none;
	overflow: visible;
	padding: 0 0.15rem 0.5rem 0;
}

body.tch-hub-skill-page .tckb-skill-ui--chat .tckb-skill-ui__composer-fields {
	max-height: none;
	overflow: visible;
}

.tckb-skill-ui--chat .tckb-skill-ui__composer-bar {
	flex: 0 0 auto;
	padding-top: 0.5rem;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tckb-skill-ui--chat .tckb-skill-ui__composer-scroll-hint {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	color: #9ca3af;
	line-height: 1.4;
}

.tckb-skill-ui--chat .tckb-skill-ui__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0;
}

.tckb-skill-ui--chat .tckb-skill-ui__thread-hint {
	flex: 1 1 12rem;
	margin: 0;
	font-size: 0.82rem;
	color: #6b7280;
}

.tckb-skill-ui--chat .tckb-skill-ui__latest {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

.tckb-skill-ui--chat .tckb-skill-ui__latest-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	margin: 0 0 0.35rem;
}

.tckb-skill-ui--chat .tckb-skill-ui__latest-body {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	background: #fff;
	padding: 0.85rem 1rem;
	max-height: none;
	overflow: visible;
}

.tckb-skill-ui--chat .tckb-skill-ui__turn-user-line {
	margin: 0 0 0.5rem;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	background: #e8f4fc;
	border: 1px solid #b8daf0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #1e3a5f;
}

.tckb-skill-ui--chat .tckb-skill-ui__turn-user-line-label {
	font-weight: 700;
	margin-right: 0.25rem;
}

.tckb-skill-ui--chat .tckb-skill-ui__history {
	margin: 0;
	padding: 0.35rem 0;
	border: none;
	background: transparent;
}

.tckb-skill-ui--chat .tckb-skill-ui__history-summary {
	cursor: pointer;
	font-size: 0.82rem;
	font-weight: 600;
	color: #6b7280;
	padding: 0.35rem 0;
	list-style: none;
}

.tckb-skill-ui--chat .tckb-skill-ui__history-inner {
	padding: 0.35rem 0 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	max-height: none;
	overflow: visible;
}

.tckb-skill-ui--chat .tckb-skill-ui__history-archive {
	font-size: 0.85rem;
	color: #4b5563;
	padding: 0.35rem 0;
	border-bottom: 1px solid #f3f4f6;
}

.tckb-skill-ui--chat .tckb-skill-ui__history-archive:last-child {
	border-bottom: none;
}

/* 对话区内 pre：横向滚动即可，不再套一层固定高度竖滚 */
.tckb-skill-ui--chat .tckb-skill-ui__latest-body .tckb-md-pre {
	max-height: none;
	overflow-x: auto;
	overflow-y: visible;
}

.tckb-skill-ui--chat .tckb-skill-ui__latest-body .tckb-skill-ui__thread-json-pre,
.tckb-skill-ui--chat .tckb-skill-ui__history .tckb-skill-ui__thread-json-pre {
	max-height: 8rem;
}

.tckb-skill-ui--chat .tckb-skill-ui__raw {
	margin-top: 0.65rem;
}

.tckb-skill-ui__latest-error-actions {
	margin: 0.5rem 0 0;
	font-size: 0.88rem;
}

.tckb-skill-ui__latest-error-actions a {
	font-weight: 600;
}

.tckb-skill-ui__title {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.tckb-skill-ui__subtitle {
	margin: 0 0 1.15rem;
	font-size: 0.875rem;
	color: #5c5c5c;
	line-height: 1.55;
}

/* —— 本轮结果（对齐 multiturn-preview-v2） —— */
.tckb-skill-ui:not(.tckb-skill-ui--flat) .tckb-skill-ui__latest {
	margin-bottom: 1.25rem;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-radius: 10px;
	background: linear-gradient(180deg, #fafaf9 0%, #fff 40%);
}

.tckb-skill-ui--flat .tckb-skill-ui__latest {
	margin-bottom: 0;
	padding: 0;
}

.tckb-skill-ui__run-hint {
	margin: 0.75rem 0 0;
	font-size: 0.88rem;
	color: #6b7280;
	line-height: 1.5;
}

.tckb-skill-ui__latest-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	margin-bottom: 0.6rem;
}

.tckb-skill-ui__latest--empty .tckb-skill-ui__latest-head {
	justify-content: center;
	text-align: center;
}

.tckb-skill-ui__latest--empty .tckb-skill-ui__latest-label {
	width: 100%;
	margin-bottom: 0;
}

.tckb-skill-ui__latest-label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
}

.tckb-skill-ui__latest-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.tckb-skill-ui__latest--loading .tckb-skill-ui__latest-actions {
	display: none;
}

.tckb-skill-ui__btn-sm {
	font: inherit;
	font-size: 0.75rem;
	padding: 0.3rem 0.55rem;
	border-radius: 4px;
	border: 1px solid #ccc;
	background: #fff;
	cursor: pointer;
	color: #1a1a1a;
}

.tckb-skill-ui__btn-sm:hover:not(:disabled) {
	background: #f5f5f5;
}

.tckb-skill-ui__btn-sm:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.tckb-skill-ui__latest-toast {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	color: #2e7d32;
	min-height: 0;
}

.tckb-skill-ui__latest-skeleton {
	display: none;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.35rem 0 0.5rem;
}

.tckb-skill-ui__latest--loading .tckb-skill-ui__latest-skeleton {
	display: flex;
}

.tckb-skill-ui__latest--loading .tckb-skill-ui__latest-body {
	display: none;
}

.tckb-skill-ui__latest-skeleton-bar {
	height: 0.8rem;
	border-radius: 4px;
	background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
	background-size: 200% 100%;
	animation: tckb-skel 1.05s ease-in-out infinite;
}

.tckb-skill-ui__latest-skeleton-bar:nth-child(2) {
	width: 92%;
}

.tckb-skill-ui__latest-skeleton-bar:nth-child(3) {
	width: 68%;
}

@media (prefers-reduced-motion: reduce) {
	.tckb-skill-ui__latest-skeleton-bar {
		animation: none;
		background: #ececec;
	}
}

@keyframes tckb-skel {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}

.tckb-skill-ui__latest--empty .tckb-skill-ui__latest-body {
	text-align: center;
	padding: 0.5rem 0.25rem 0.35rem;
}

.tckb-skill-ui__latest-empty-title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 600;
	color: #444;
}

.tckb-skill-ui__latest-empty-body {
	margin: 0;
	font-size: 0.9rem;
	color: #555;
	line-height: 1.5;
}

.tckb-skill-ui__latest-error {
	margin: 0;
	padding: 0.65rem 0.75rem;
	background: #fcf0f0;
	border: 1px solid #f5c2c7;
	border-radius: 6px;
	color: #842029;
	font-size: 0.9rem;
}

.tckb-skill-ui__form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tckb-skill-ui__req {
	color: #c00;
	font-weight: 700;
}

.tckb-skill-ui__field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.tckb-skill-ui__control {
	width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
	font: inherit;
	box-sizing: border-box;
}

.tckb-skill-ui__file-input {
	padding: 0.35rem 0;
	border: none;
	background: transparent;
}

.tckb-skill-ui__file-status {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.875rem;
	color: #2e7d32;
}

.tckb-skill-ui__control:focus {
	outline: 2px solid #1d6f9e;
	outline-offset: 1px;
	border-color: #1d6f9e;
}

textarea.tckb-skill-ui__control {
	min-height: 6rem;
	resize: vertical;
}

.tckb-skill-ui__help {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	color: #555;
	font-weight: 400;
}

.tckb-skill-ui__radios {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-top: 0.25rem;
}

.tckb-skill-ui__radio {
	font-weight: 400;
}

.tckb-skill-ui__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.65rem 1rem;
	margin-top: 0.15rem;
}

.tckb-skill-ui__toolbar .tckb-skill-ui__thread-hint {
	flex: 1 1 12rem;
	margin: 0;
	min-width: 0;
}

.tckb-skill-ui__submit {
	align-self: flex-start;
	padding: 0.55rem 1.35rem;
	border-radius: 6px;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	background: #d35400;
	color: #fff;
	border: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.tckb-skill-ui__submit:hover:not(:disabled) {
	background: #b84700;
}

.tckb-skill-ui__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.tckb-skill-ui__output-html {
	padding: 1rem 1.1rem;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 8px;
	background: #fafafa;
	line-height: 1.6;
}

.tckb-skill-ui__output-html .tckb-md-p {
	margin: 0 0 0.65rem;
}

.tckb-skill-ui__output-html .tckb-md-p:last-child {
	margin-bottom: 0;
}

.tckb-skill-ui__output-html .tckb-md-ul {
	margin: 0.5rem 0 0.65rem 1.1rem;
	padding: 0;
}

.tckb-skill-ui__output-html .tckb-md-ol {
	margin: 0.5rem 0 0.65rem 1.25rem;
	padding: 0;
}

.tckb-skill-ui__output-html .tckb-md-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.75rem 0;
	font-size: 0.92rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	overflow: hidden;
}

.tckb-skill-ui__output-html .tckb-md-table th,
.tckb-skill-ui__output-html .tckb-md-table td {
	padding: 0.45rem 0.6rem;
	border: 1px solid #e5e7eb;
	vertical-align: top;
}

.tckb-skill-ui__output-html .tckb-md-table thead th {
	background: #f9fafb;
	font-weight: 600;
}

.tckb-skill-ui__output-html .tckb-md-pre {
	margin: 0;
	padding: 0.55rem 0.65rem;
	background: rgba(0, 0, 0, 0.04);
	border-top: 1px solid #e8e8e8;
	overflow: auto;
	max-width: 100%;
	font-size: 0.75rem;
	line-height: 1.4;
	white-space: pre-wrap;
	word-break: break-word;
}

.tckb-skill-ui__output-html pre.tckb-output-json {
	margin: 0;
	padding: 0;
	background: transparent;
	font-size: 0.8125rem;
	white-space: pre-wrap;
	word-break: break-word;
}

.tckb-skill-ui__raw {
	margin-top: 1.15rem;
	padding-top: 0.85rem;
	border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.tckb-skill-ui__raw summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.875rem;
	color: #555;
}

.tckb-skill-ui__raw[open] summary {
	margin-bottom: 0.45rem;
}

.tckb-skill-ui__raw-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
}

.tckb-skill-ui__copy-diagnostics {
	padding: 0.3rem 0.65rem;
	font: inherit;
	font-size: 0.8125rem;
	border-radius: 6px;
	cursor: pointer;
	background: #fff;
	color: #1e1e1e;
	border: 1px solid #c8c8c8;
}

.tckb-skill-ui__copy-diagnostics:hover {
	background: #f3f3f3;
}

.tckb-skill-ui__copy-toast {
	font-size: 0.75rem;
	color: #2e7d32;
}

.tckb-skill-ui__result-json {
	margin: 0;
	padding: 0.75rem 1rem;
	background: #f6f7f7;
	border-radius: 6px;
	overflow: auto;
	max-height: 20rem;
	font-size: 0.8125rem;
	white-space: pre-wrap;
	word-break: break-word;
}

.tckb-skill-ui__notice,
.tckb-skill-ui__loading {
	margin: 0;
	color: #505050;
}

.tckb-skill-ui__thread-hint {
	font-size: 0.875rem;
	color: #555;
	line-height: 1.45;
}

.tckb-skill-ui__thread {
	margin-bottom: 1.15rem;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fbfbfc;
}

.tckb-skill-ui__thread-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
}

.tckb-skill-ui__thread-title {
	font-weight: 600;
	font-size: 0.95rem;
}

.tckb-skill-ui__thread-new {
	padding: 0.35rem 0.75rem;
	font: inherit;
	font-size: 0.8125rem;
	border-radius: 6px;
	cursor: pointer;
	background: #fff;
	color: #1e1e1e;
	border: 1px solid #c8c8c8;
}

.tckb-skill-ui__thread-new:hover {
	background: #f0f0f0;
}

.tckb-skill-ui__thread-inner {
	max-height: none;
	overflow: visible;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tckb-skill-ui__thread-foot {
	margin: 0.65rem 0 0;
	font-size: 0.8125rem;
	color: #666;
	line-height: 1.45;
}

.tckb-skill-ui__thread-restore {
	margin: 0 0 0.35rem;
	font-size: 0.8125rem;
	color: #1d6f9e;
}

.tckb-skill-ui__thread-turn {
	border-radius: 6px;
	padding: 0.5rem 0.65rem;
	font-size: 0.875rem;
}

.tckb-skill-ui__thread-turn--user {
	background: #e8f4fc;
	border: 1px solid #b8daf0;
}

.tckb-skill-ui__thread-turn--assistant {
	background: #fff;
	border: 1px solid #e0e0e0;
}

.tckb-skill-ui__thread-role {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	margin-bottom: 0.25rem;
}

.tckb-skill-ui__thread-summary {
	margin: 0 0 0.35rem;
	font-family: inherit;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #1e1e1e;
}

.tckb-skill-ui__thread-user-json {
	margin-top: 0.25rem;
}

.tckb-skill-ui__thread-user-json summary {
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #1d6f9e;
}

.tckb-skill-ui__thread-json-pre {
	margin: 0.35rem 0 0;
	padding: 0.5rem 0.6rem;
	background: rgba(255, 255, 255, 0.75);
	border-radius: 6px;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.75rem;
	line-height: 1.4;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 14rem;
	overflow: auto;
}

.tckb-skill-ui__thread-assistant-hint {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	color: #777;
	line-height: 1.4;
}

.tckb-skill-ui__thread-body {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.8125rem;
	line-height: 1.45;
}

.tckb-skill-ui__thread-turn--assistant .tckb-skill-ui__thread-body {
	font-family: inherit;
	white-space: pre-wrap;
}

/* —— 围栏代码：默认折叠（v2） + 弹窗 HTML 预览 —— */
.tckb-skill-ui__codefold {
	margin: 0.75rem 0;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fafafa;
	overflow: hidden;
}

.tckb-skill-ui__codefold > summary {
	cursor: pointer;
	list-style: none;
	padding: 0.45rem 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #1d6f9e;
	user-select: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.tckb-skill-ui__codefold-preview {
	margin-left: auto;
	font-size: 0.75rem;
	padding: 0.2rem 0.55rem;
	line-height: 1.3;
}

.tckb-skill-ui__codefold > summary::-webkit-details-marker {
	display: none;
}

.tckb-skill-ui__codefold > summary::before {
	content: "▸ ";
	display: inline-block;
	width: 0.9em;
	transition: transform 0.15s ease;
}

.tckb-skill-ui__codefold[open] > summary::before {
	transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
	.tckb-skill-ui__codefold > summary::before {
		transition: none;
	}
}

.tckb-skill-ui__modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.tckb-skill-ui__modal.hidden {
	display: none !important;
}

.tckb-skill-ui__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.tckb-skill-ui__modal-panel {
	position: relative;
	width: min(52rem, 100%);
	max-height: min(90vh, 720px);
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.09);
}

.tckb-skill-ui__modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0.85rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.09);
	background: #fafafa;
}

.tckb-skill-ui__modal-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
}

.tckb-skill-ui__btn-ghost {
	font: inherit;
	font-size: 0.8125rem;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	border: 1px solid #c8c8c8;
	background: #fff;
	cursor: pointer;
	color: #1a1a1a;
}

.tckb-skill-ui__btn-ghost:hover {
	background: #f3f3f3;
}

.tckb-skill-ui__modal-frame {
	flex: 1;
	width: 100%;
	min-height: 280px;
	border: 0;
	background: #fff;
}

.tckb-skill-ui__modal-note {
	margin: 0;
	padding: 0.5rem 0.85rem;
	font-size: 0.72rem;
	color: #5c5c5c;
	background: #f6f6f6;
	border-top: 1px solid rgba(0, 0, 0, 0.09);
	line-height: 1.4;
}

/* 访客 Skill 预览（未登录） */
.tckb-skill-ui--guest-preview .tckb-guest-preview {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 0.25rem 0 0.5rem;
}

.tckb-guest-preview__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
}

.tckb-guest-preview__cat {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #9a3412;
	background: #ffedd5;
}

.tckb-guest-preview__estimate {
	font-size: 0.8125rem;
	color: #6b7280;
}

.tckb-guest-preview__grid {
	display: grid;
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}

@media (max-width: 768px) {
	.tckb-guest-preview__grid {
		grid-template-columns: 1fr;
	}
}

.tckb-guest-preview__side {
	padding: 1rem 1.1rem;
	border-radius: 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
}

.tckb-guest-preview__side-title {
	margin: 0 0 0.65rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #9a3412;
}

.tckb-guest-preview__points {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.875rem;
	color: #374151;
	line-height: 1.55;
}

.tckb-guest-preview__points li + li {
	margin-top: 0.35rem;
}

.tckb-guest-preview__desc {
	margin: 0;
	font-size: 0.875rem;
	color: #374151;
	line-height: 1.55;
}

.tckb-guest-preview__main {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 280px;
	padding: 1rem;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fafafa;
}

.tckb-guest-preview__demo-banner {
	margin: 0;
	font-size: 0.8125rem;
	color: #6b7280;
}

.tckb-guest-preview__demo-frame {
	width: 100%;
	min-height: 360px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	background: #fff;
}

.tckb-guest-preview__empty {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 240px;
	text-align: center;
	padding: 1.5rem;
}

.tckb-guest-preview__empty-title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: #111827;
}

.tckb-guest-preview__empty-body {
	margin: 0;
	max-width: 22rem;
	font-size: 0.875rem;
	color: #6b7280;
	line-height: 1.55;
}

.tckb-guest-preview__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
}

.tckb-guest-preview__chips-label {
	font-size: 0.75rem;
	color: #6b7280;
}

.tckb-guest-preview__chip {
	display: inline-flex;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	color: #374151;
	background: #fff;
	border: 1px dashed #d1d5db;
}

.tckb-guest-preview__cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	padding-top: 0.25rem;
}

.tckb-guest-preview__login-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.35rem;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #fff;
	background: #ea580c;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(234, 88, 12, 0.25);
}

.tckb-guest-preview__login-btn:hover {
	background: #c2410c;
	color: #fff;
}

.tckb-guest-preview__cta-hint {
	margin: 0;
	font-size: 0.8125rem;
	color: #6b7280;
	line-height: 1.5;
}
