/**
 * Skill 工作台：三栏 + 顶栏 + 底栏（Hub Skill 详情页）
 */

.tckb-skill-ui.tckb-skill-ui--workspace {
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
	background: transparent;
	font-size: 15px;
	line-height: 1.55;
}

.tckb-skill-workspace {
	display: flex;
	flex-direction: column;
	min-height: min( calc( 100vh - 10rem ), 880px );
	gap: 0;
}

/* —— 顶栏 —— */
.tckb-ws__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 方案 A：两行分区顶栏 */
.tckb-ws__header--v2 {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0;
	padding: 0;
	overflow: visible;
}

.tckb-ws__header-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem 1.5rem;
	padding: 0.9rem 1rem 0.75rem;
	align-items: start;
}

.tckb-ws__header-stats {
	text-align: right;
	flex-shrink: 0;
}

.tckb-ws__header--v2 .tckb-ws__points {
	font-size: 0.8rem;
	color: #6b7280;
	font-weight: 500;
}

.tckb-ws__header--v2 .tckb-ws__points-val {
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
}

.tckb-ws__stat-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.3rem;
	margin-top: 0.35rem;
}

.tckb-ws__stat-chip {
	font-size: 0.68rem;
	padding: 0.18rem 0.5rem;
	border-radius: 6px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	color: #4b5563;
	white-space: nowrap;
}

.tckb-ws__stat-chip [data-ws-meta] {
	font-weight: 600;
	color: #111827;
}

.tckb-ws__header--v2 .tckb-ws__tagline {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: none;
}

.tckb-ws__header-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.5rem;
	padding: 0.55rem 1rem 0.65rem;
	border-top: 1px solid #f3f4f6;
	background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.tckb-ws__header-bar-left,
.tckb-ws__header-bar-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}

.tckb-ws__header-bar-left {
	flex: 1 1 auto;
	min-width: 0;
}

.tckb-ws__header-bar-right {
	margin-left: auto;
}

.tckb-ws__header-divider {
	width: 1px;
	height: 1.25rem;
	background: #e5e7eb;
	flex-shrink: 0;
}

.tckb-ws__btn--menu {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.tckb-ws__btn--menu::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.55;
}

.tckb-ws__export-menu {
	position: relative;
	display: inline-block;
}

.tckb-ws__export-panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 30;
	min-width: 11.5rem;
	padding: 0.35rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.tckb-ws__export-item {
	display: block;
	width: 100%;
	text-align: left;
	margin: 0;
	border: none;
	border-radius: 5px;
	background: transparent;
}

.tckb-ws__export-item:hover:not(:disabled) {
	background: #fff7ed;
	border-color: transparent;
}

.tckb-ws__export-item:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

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

@media (max-width: 720px) {
	.tckb-ws__header-top {
		grid-template-columns: 1fr;
	}
	.tckb-ws__header-stats {
		text-align: left;
	}
	.tckb-ws__stat-chips {
		justify-content: flex-start;
	}
	.tckb-ws__header-bar-right {
		width: 100%;
		margin-left: 0;
		justify-content: flex-end;
	}
}

.tckb-ws__header-main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.65rem 1rem;
	flex: 1 1 16rem;
	min-width: 0;
}

.tckb-ws__icon {
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 10px;
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
	border: 1px solid #fed7aa;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	font-weight: 700;
	color: #c2410c;
}

.tckb-ws__titles {
	min-width: 0;
}

.tckb-ws__name {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.tckb-ws__tagline {
	margin: 0.25rem 0 0;
	font-size: 0.82rem;
	color: #6b7280;
	line-height: 1.45;
	max-width: 42rem;
}

.tckb-ws__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.4rem;
}

.tckb-ws__tag {
	font-size: 0.72rem;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
	border: 1px solid rgba(0, 0, 0, 0.06);
	font-weight: 600;
	letter-spacing: 0.02em;
}

.tckb-ws__tag--muted {
	font-weight: 500;
	background: #fff;
	color: #6b7280;
}

.tckb-ws__header-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.45rem;
}

.tckb-ws__btn--ghost {
	border-color: transparent;
	background: transparent;
	color: #6b7280;
}

.tckb-ws__btn--ghost:hover {
	background: #f9fafb;
	color: #c2410c;
}

.tckb-ws__points-label {
	color: #6b7280;
	font-weight: 500;
}

.tckb-ws__points-val {
	font-weight: 700;
	color: #111827;
}

.tckb-ws__btn--block {
	display: block;
	width: 100%;
	text-align: center;
	margin-bottom: 0.35rem;
}

.tckb-ws__meta-actions .tckb-ws__btn--primary {
	background: #c2410c;
	border-color: #c2410c;
	color: #fff;
	font-weight: 600;
}

.tckb-ws__meta-actions .tckb-ws__btn--primary:hover:not(:disabled) {
	background: #9a3412;
	border-color: #9a3412;
	color: #fff;
}

.tckb-ws__meta-actions {
	margin: 0.5rem 0 0.85rem;
	padding-top: 0.5rem;
	border-top: 1px solid #f3f4f6;
}

.tckb-ws__composer-utils {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.35rem 0 0.5rem;
}

.tckb-ws__field--primary .tckb-skill-ui__field {
	margin: 0;
}

.tckb-ws__label--sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.tckb-ws__input-main {
	width: 100%;
	min-height: 5.5rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.55;
	resize: vertical;
}

.tckb-ws__input-main:focus {
	outline: 2px solid rgba(234, 88, 12, 0.3);
	border-color: #fdba74;
}

.tckb-ws__pricing-link {
	color: #1d6f9e;
	text-decoration: none;
	margin-left: 0.25rem;
}

.tckb-ws__pricing-link:hover {
	text-decoration: underline;
}

.tckb-ws__codecopy-wrap {
	position: relative;
	margin: 0.65rem 0;
}

.tckb-ws__codecopy {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	z-index: 2;
	font: inherit;
	font-size: 0.72rem;
	padding: 0.2rem 0.45rem;
	border-radius: 5px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	color: #374151;
	cursor: pointer;
}

.tckb-ws__codecopy:hover {
	border-color: #fdba74;
	color: #c2410c;
}

.tckb-ws__stage .tckb-ws__stage-deliver {
	min-height: 12rem;
}

.tckb-ws__header-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.35rem;
	flex: 0 0 auto;
}

.tckb-ws__points {
	font-size: 0.88rem;
	font-weight: 600;
	color: #1a1a1a;
}

.tckb-ws__estimate {
	font-size: 0.75rem;
	color: #9ca3af;
}

.tckb-ws__session-strip {
	margin-top: 0.35rem;
	font-size: 0.72rem;
	color: #6b7280;
	line-height: 1.35;
}

.tckb-ws__session-dl {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	margin: 0;
}

.tckb-ws__session-dl dt {
	font-weight: 600;
	color: #9ca3af;
	margin: 0;
}

.tckb-ws__session-dl dd {
	margin: 0;
	color: #374151;
	font-weight: 500;
}

.tckb-ws__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-end;
}

.tckb-ws__btn {
	font: inherit;
	font-size: 0.78rem;
	padding: 0.35rem 0.65rem;
	border-radius: 7px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	color: #374151;
	cursor: pointer;
	line-height: 1.3;
}

.tckb-ws__btn:hover {
	border-color: #fdba74;
	color: #c2410c;
}

.tckb-ws__btn--primary {
	background: #ea580c;
	border-color: #ea580c;
	color: #fff;
	font-weight: 600;
}

.tckb-ws__btn--primary:hover {
	background: #c2410c;
	border-color: #c2410c;
	color: #fff;
}

.tckb-ws__btn--dark {
	background: #1f2937;
	border-color: #1f2937;
	color: #fff;
}

.tckb-ws__btn--dark:hover {
	background: #111827;
	color: #fff;
}

.tckb-ws__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* —— 快捷芯片 —— */
.tckb-ws__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0.5rem 0 0.15rem;
}

.tckb-ws__chip {
	font: inherit;
	font-size: 0.8rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: #fff;
	color: #374151;
	cursor: pointer;
}

.tckb-ws__chip:hover,
.tckb-ws__chip.is-active {
	border-color: #fdba74;
	background: #fff7ed;
	color: #c2410c;
}

/* —— 多轮快捷回复（模型 follow_up_options）—— */
.tckb-ws__follow-ups,
.tckb-follow-up {
	margin-top: 0.65rem;
	padding: 0.65rem 0.85rem;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
}

.tckb-follow-up__title {
	margin: 0 0 0.45rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #92400e;
}

.tckb-follow-up__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.tckb-follow-up__chip {
	font: inherit;
	font-size: 0.8rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid #fcd34d;
	background: #fff;
	color: #78350f;
	cursor: pointer;
}

.tckb-follow-up__chip:hover,
.tckb-follow-up__chip.is-active {
	border-color: #f97316;
	background: #ffedd5;
	color: #c2410c;
}

.tckb-follow-up__hint {
	margin: 0.45rem 0 0;
	font-size: 0.75rem;
	color: #a16207;
}

.tckb-ws__field--reply textarea {
	min-height: 2.5rem;
}

.tckb-follow-up--chat {
	margin: 0 0 0.5rem;
}

.tckb-md-fallback {
	line-height: 1.6;
}

.tckb-output-json-note {
	color: #92400e;
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
}

.tckb-skill-ui__output-html pre.tckb-output-json {
	max-height: 280px;
	overflow: auto;
	font-size: 0.75rem;
}

/* —— 主体：默认三栏；Hub 标准工作台为双栏（无右侧 meta）—— */
.tckb-ws__body {
	display: grid;
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 280px);
	gap: 0.85rem;
	flex: 1 1 auto;
	min-height: 0;
	margin-top: 0.75rem;
}

.tckb-ws--no-sidebar .tckb-ws__body {
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
}

.tckb-ws__nav,
.tckb-ws__stage-wrap,
.tckb-ws__meta {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.tckb-ws__nav-head,
.tckb-ws__meta-head {
	flex: 0 0 auto;
	padding: 0.65rem 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #9ca3af;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tckb-ws__nav-inner,
.tckb-ws__meta-inner {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0.5rem 0.75rem 0.85rem;
	-webkit-overflow-scrolling: touch;
}

.tckb-ws__nav-section {
	margin-bottom: 0.85rem;
}

.tckb-ws__nav-section-title {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	font-weight: 650;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tckb-ws__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.84rem;
}

.tckb-ws__nav-list li {
	margin: 0;
	padding: 0;
}

.tckb-ws__nav-link {
	display: block;
	width: 100%;
	text-align: left;
	font: inherit;
	font-size: 0.84rem;
	padding: 0.35rem 0.45rem;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #374151;
	cursor: pointer;
	line-height: 1.4;
}

.tckb-ws__nav-link:hover {
	background: #f9fafb;
	color: #c2410c;
}

.tckb-ws__nav-link.is-active {
	background: #fff7ed;
	color: #c2410c;
	font-weight: 600;
}

.tckb-ws__turn-item {
	padding: 0.4rem 0.45rem;
	border-radius: 6px;
	font-size: 0.8rem;
	color: #4b5563;
	border-left: 2px solid #e5e7eb;
	margin-bottom: 0.35rem;
	line-height: 1.4;
}

.tckb-ws__turn-item.is-latest {
	border-left-color: #ea580c;
	background: #fffdfb;
}

/* —— 中栏 —— */
.tckb-ws__stage-wrap {
	overflow: hidden;
}

.tckb-ws__stage-tabs {
	display: none;
	flex: 0 0 auto;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	padding: 0 0.5rem;
}

.tckb-ws__stage-tabs.is-visible {
	display: flex;
	gap: 0.25rem;
}

.tckb-ws__stage-tab {
	font: inherit;
	font-size: 0.8rem;
	padding: 0.5rem 0.75rem;
	border: none;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
	margin-bottom: -1px;
}

.tckb-ws__stage-tab.is-active {
	color: #c2410c;
	border-bottom-color: #ea580c;
	font-weight: 600;
}

.tckb-ws__stage {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 0.85rem 1rem 1rem;
	-webkit-overflow-scrolling: touch;
}

.tckb-ws__stage--loading .tckb-ws__skeleton {
	display: block;
}

.tckb-ws__loading-msg {
	margin: 0 0 0.85rem;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #6b7280;
	text-align: center;
}

.tckb-ws__skeleton {
	display: none;
}

.tckb-ws__skeleton-bar {
	height: 0.65rem;
	border-radius: 4px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: tckb-ws-shimmer 1.2s ease-in-out infinite;
	margin-bottom: 0.5rem;
}

.tckb-ws__skeleton-bar:nth-child(2) { width: 92%; }
.tckb-ws__skeleton-bar:nth-child(3) { width: 78%; }
.tckb-ws__skeleton-bar:nth-child(4) { width: 85%; }

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

.tckb-ws__empty {
	text-align: center;
	padding: 1.5rem 1rem;
	color: #6b7280;
	font-size: 0.9rem;
}

.tckb-ws__demo-banner {
	margin: 0 0 0.65rem;
	padding: 0.5rem 0.65rem;
	font-size: 0.78rem;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	color: #9a3412;
	line-height: 1.45;
}

.tckb-ws__demo-frame {
	width: 100%;
	max-width: 430px;
	margin: 0 auto;
	display: block;
	border: 0;
	border-radius: 12px;
	min-height: 520px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.tckb-ws__stage .tckb-skill-ui__output-html {
	font-size: 0.95rem;
}

.tckb-ws__stage .tckb-html-prototype-wrap {
	margin-bottom: 1rem;
}

.tckb-ws__stage .tckb-html-prototype {
	max-width: 100%;
	margin: 0 auto;
	display: block;
}

.tckb-ws__stage-notes[hidden] {
	display: none !important;
}

.tckb-ws__stage-error {
	color: #b91c1c;
	font-size: 0.9rem;
}

/* —— 右栏 —— */
.tckb-ws__meta-dl {
	margin: 0 0 0.85rem;
	font-size: 0.84rem;
}

.tckb-ws__meta-dl dt {
	margin: 0.5rem 0 0.15rem;
	font-size: 0.72rem;
	color: #9ca3af;
	font-weight: 600;
}

.tckb-ws__meta-dl dd {
	margin: 0;
	color: #1f2937;
}

.tckb-ws__selling {
	margin: 0 0 0.85rem;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	color: #4b5563;
}

.tckb-ws__selling li {
	padding: 0.35rem 0;
	border-bottom: 1px solid #f3f4f6;
	line-height: 1.45;
}

.tckb-ws__selling li::before {
	content: "✓ ";
	color: #ea580c;
	font-weight: 700;
}

.tckb-ws__related {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.84rem;
}

.tckb-ws__related a {
	color: #1d6f9e;
	text-decoration: none;
}

.tckb-ws__related a:hover {
	text-decoration: underline;
}

.tckb-ws__related li {
	padding: 0.35rem 0;
}

/* —— 底栏 —— */
.tckb-ws__composer {
	flex: 0 0 auto;
	margin-top: 0.75rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.tckb-ws__composer-primary {
	margin-bottom: 0.5rem;
}

.tckb-ws__composer-primary .tckb-skill-ui__field {
	margin-bottom: 0;
}

.tckb-ws__composer-primary textarea.tckb-skill-ui__control {
	min-height: 4.5rem;
	resize: vertical;
}

.tckb-ws__composer-primary .tckb-ws__field--file-inline {
	margin-top: 0.45rem;
}

.tckb-ws__composer-primary .tckb-ws__field--file-inline .tckb-skill-ui__control {
	font-size: 0.88rem;
}

.tckb-ws__composer-advanced {
	margin: 0.35rem 0 0.65rem;
	font-size: 0.84rem;
}

.tckb-ws__composer-advanced summary {
	cursor: pointer;
	color: #6b7280;
	font-weight: 500;
}

.tckb-ws__composer-advanced-fields {
	margin-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tckb-ws__composer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.tckb-ws__billing-note {
	margin: 0;
	font-size: 0.75rem;
	color: #9ca3af;
	flex: 1 1 12rem;
}

.tckb-ws__composer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.tckb-ws__toast {
	margin: 0.35rem 0 0;
	font-size: 0.8rem;
	color: #059669;
	min-height: 1.2em;
}

.tckb-ws__stage-toolbar {
	display: none;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0.5rem 0.65rem 0;
}

.tckb-ws__meta-toggle {
	display: none;
	align-items: center;
	padding: 0.35rem 0.65rem;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: #fff;
	color: #374151;
	cursor: pointer;
}

.tckb-ws__meta-backdrop {
	display: none;
}

.tckb-ws__billing-banner {
	flex: 0 0 auto;
	margin: 0.5rem 0.65rem 0;
	padding: 0.55rem 0.75rem;
	font-size: 0.82rem;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 8px;
}

.tckb-ws__billing-banner a {
	color: #c2410c;
	font-weight: 600;
}

.tckb-ws__format-error {
	color: #b45309;
}

.tckb-ws__nav-toggle {
	display: none;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.65rem;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: #fffdfb;
	color: #374151;
	cursor: pointer;
}

.tckb-ws__nav-backdrop {
	display: none;
}

.tckb-ws__raw {
	margin-top: 0.5rem;
	font-size: 0.8rem;
}

.tckb-ws__raw pre {
	max-height: 12rem;
	overflow: auto;
	font-size: 0.72rem;
}

/* 响应式 */
@media (max-width: 1199px) {
	.tckb-ws--no-sidebar .tckb-ws__body {
		grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
	}
	.tckb-ws:not(.tckb-ws--lite):not(.tckb-ws--no-sidebar) .tckb-ws__body {
		grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
	}
	.tckb-ws:not(.tckb-ws--lite):not(.tckb-ws--no-sidebar) .tckb-ws__meta {
		position: fixed;
		right: 0;
		top: 0;
		bottom: 0;
		z-index: 120;
		width: min(86vw, 300px);
		max-height: none;
		transform: translateX(105%);
		transition: transform 0.22s ease;
		box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
		grid-column: auto;
	}
	.tckb-ws:not(.tckb-ws--lite):not(.tckb-ws--no-sidebar) .tckb-ws__meta.is-drawer-open {
		transform: translateX(0);
	}
	.tckb-ws:not(.tckb-ws--lite):not(.tckb-ws--no-sidebar) .tckb-ws__stage-toolbar {
		display: flex;
	}
	.tckb-ws:not(.tckb-ws--lite):not(.tckb-ws--no-sidebar) .tckb-ws__meta-toggle {
		display: inline-flex;
	}
	.tckb-ws__meta-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 110;
		background: rgba(15, 23, 42, 0.35);
	}
	.tckb-ws__meta-backdrop[hidden] {
		display: none;
	}
}

@media (max-width: 1100px) {
	.tckb-ws--lite .tckb-ws__body {
		grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
	}
}

@media (max-width: 768px) {
	.tckb-ws__body {
		grid-template-columns: 1fr;
	}
	.tckb-ws__nav {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		z-index: 120;
		width: min(86vw, 280px);
		max-height: none;
		transform: translateX(-105%);
		transition: transform 0.22s ease;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
	}
	.tckb-ws__nav.is-drawer-open {
		transform: translateX(0);
	}
	.tckb-ws__nav-inner {
		display: block;
		overflow-x: hidden;
		overflow-y: auto;
		flex-wrap: nowrap;
		gap: 0;
		padding-bottom: 0.85rem;
	}
	.tckb-ws__nav-section {
		flex: none;
		margin-bottom: 0.85rem;
		min-width: 0;
	}
	.tckb-ws__nav-toggle {
		display: inline-flex;
	}
	.tckb-ws__stage-toolbar {
		display: flex;
	}
	.tckb-ws__nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 110;
		background: rgba(15, 23, 42, 0.35);
	}
	.tckb-ws__nav-backdrop[hidden] {
		display: none;
	}
}

/* —— Lite 模式 —— */
.tckb-ws--lite .tckb-ws__body--lite {
	grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
}

.tckb-ws--lite .tckb-ws__meta {
	display: none;
}

/* —— 阶段导航 —— */
.tckb-ws__nav-link.is-done::after {
	content: ' ✓';
	color: #059669;
	font-weight: 600;
}

.tckb-ws__nav-link.is-done.is-active::after {
	content: ' ✓';
}

/* —— Demo 缩略（Markdown-only 时保留） —— */
.tckb-ws__demo-mini {
	margin-bottom: 0.75rem;
}

.tckb-ws__demo-banner--mini {
	margin-bottom: 0.35rem;
	font-size: 0.78rem;
}

.tckb-ws__demo-frame--mini {
	width: 100%;
	max-width: 320px;
	height: 200px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #f9fafb;
}

/* —— 原型确认对话框 —— */
.tckb-ws__confirm-overlay {
	position: absolute;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, 0.45);
	border-radius: 10px;
}

.tckb-ws__confirm-panel {
	width: min(100%, 420px);
	padding: 1.1rem 1.15rem;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.tckb-ws__confirm-title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
}

.tckb-ws__confirm-body {
	margin: 0 0 0.75rem;
	font-size: 0.88rem;
	color: #4b5563;
}

.tckb-ws__confirm-options {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-bottom: 0.85rem;
}

.tckb-ws__confirm-option {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-size: 0.88rem;
	line-height: 1.45;
	cursor: pointer;
}

.tckb-ws__confirm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

.tckb-skill-workspace {
	position: relative;
}

/* —— Lite 首屏参数芯片 —— */
.tckb-ws__param-chips {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-bottom: 0.65rem;
	padding: 0.65rem 0.75rem;
	background: #fffdfb;
	border: 1px solid #fed7aa;
	border-radius: 8px;
}

.tckb-ws__param-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.tckb-ws__param-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: #6b7280;
	min-width: 2.5rem;
}

.tckb-ws__param-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.tckb-ws__param-chip {
	padding: 0.25rem 0.65rem;
	font-size: 0.8rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	color: #374151;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.tckb-ws__param-chip:hover {
	border-color: #fdba74;
}

.tckb-ws__param-chip.is-active {
	border-color: #ea580c;
	background: #fff7ed;
	color: #c2410c;
	font-weight: 600;
}

.tckb-ws__empty-preview {
	padding: 0.85rem 1rem;
	margin-bottom: 0.5rem;
	background: #fffdfb;
	border: 1px dashed #fed7aa;
	border-radius: 8px;
	font-size: 0.9rem;
}

.tckb-ws__empty-h {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
}

.tckb-ws__empty-ul {
	margin: 0.25rem 0 0;
	padding-left: 1.1rem;
}

.tckb-ws__empty-hint {
	margin: 0.5rem 0 0;
	font-size: 0.82rem;
	color: #6b7280;
}
