/*
Theme Name: TeachCourse Agent Hub
Theme URI: https://teachcourse.cn
Author: TeachCourse
Description: Hub 壳主题 — 对齐 KB-V2 §6.1（顶栏 / 侧栏 / 主区骨架）。不含 Skill / AI / 计费逻辑。
Version: 1.6.2
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: teachcourse-agent-hub
*/

:root {
	--tch-hub-accent: #ea580c;
	--tch-hub-accent-soft: #fff7ed;
	--tch-hub-border: #e5e7eb;
	--tch-hub-text: #111827;
	--tch-hub-muted: #6b7280;
	--tch-hub-sidebar-w: 260px;
	--tch-hub-radius: 10px;
	--tch-hub-gap: 1.25rem;
	--tch-hub-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--tch-hub-shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body.tch-hub-body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	color: var(--tch-hub-text);
	line-height: 1.55;
	background: #f3f4f6;
}

a {
	color: #1d4ed8;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.tch-hub-muted {
	color: var(--tch-hub-muted);
	font-size: 0.95rem;
}

/* --- App shell --- */
.tch-hub-app {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* --- Top bar (§6.1) --- */
.tch-hub-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	padding: 0.65rem var(--tch-hub-gap);
	background: #fff;
	border-bottom: 1px solid var(--tch-hub-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.tch-hub-topbar__brand {
	flex: 1 1 200px;
	min-width: 0;
}

.tch-hub-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 650;
	font-size: 1.15rem;
	color: var(--tch-hub-text);
}

.tch-hub-logo:hover {
	text-decoration: none;
	color: var(--tch-hub-accent);
}

.tch-hub-logo__mark {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: linear-gradient(135deg, var(--tch-hub-accent), #fb923c);
}

.tch-hub-topbar__tagline {
	margin: 0.15rem 0 0;
	font-size: 0.8rem;
	color: var(--tch-hub-muted);
	max-width: 42ch;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tch-hub-topbar__search {
	flex: 1 1 180px;
	min-width: 0;
	max-width: 320px;
}

.tch-hub-topbar__search .search-form {
	display: flex;
	gap: 0.35rem;
	align-items: center;
	margin: 0;
}

.tch-hub-topbar__search .search-field {
	flex: 1;
	min-width: 0;
	padding: 0.4rem 0.65rem;
	border: 1px solid var(--tch-hub-border);
	border-radius: 8px;
	font: inherit;
}

.tch-hub-topbar__search .search-submit {
	padding: 0.4rem 0.75rem;
	border: none;
	border-radius: 8px;
	background: var(--tch-hub-accent);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.tch-hub-topbar__search .search-submit:hover {
	filter: brightness(1.05);
}

.tch-hub-skill-search {
	position: relative;
}

.tch-hub-skill-search__label {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
}

.tch-hub-skill-search__input {
	flex: 1;
	min-width: 0;
	width: 100%;
	padding: 0.4rem 0.65rem 0.4rem 0.15rem;
	border: 1px solid var(--tch-hub-border);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

.tch-hub-skill-search__input:focus {
	outline: none;
	border-color: var(--tch-hub-accent);
	box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.15);
}

.tch-hub-skill-search__results {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	right: 0;
	z-index: 200;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--tch-hub-border);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	max-height: 320px;
	overflow-y: auto;
}

.tch-hub-skill-search__results[hidden] {
	display: none;
}

.tch-hub-skill-search__item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.5rem 0.75rem;
	color: inherit;
	text-decoration: none;
}

.tch-hub-skill-search__item:hover,
.tch-hub-skill-search__item:focus {
	background: #fff7ed;
}

.tch-hub-skill-search__name {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--tch-hub-text, #111827);
}

.tch-hub-skill-search__cat {
	font-size: 0.72rem;
	color: var(--tch-hub-muted);
}

.tch-hub-skill-search__empty {
	padding: 0.65rem 0.75rem;
	font-size: 0.82rem;
	color: var(--tch-hub-muted);
}

.tch-hub-topbar__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.75rem;
	flex: 2 1 280px;
	justify-content: flex-end;
}

.tch-hub-nav {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.25rem 0.65rem;
	align-items: center;
}

.tch-hub-nav a {
	font-size: 0.9rem;
	color: var(--tch-hub-text);
}

.tch-hub-nav a:hover {
	color: var(--tch-hub-accent);
}

.tch-hub-topbar__user {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	margin-left: 0.35rem;
	padding-left: 0.65rem;
	border-left: 1px solid var(--tch-hub-border);
}

.tch-hub-topbar__logout {
	font-size: 0.85rem;
	color: var(--tch-hub-muted);
}

.tch-hub-topbar__points-wrap {
	display: inline-flex;
	align-items: center;
}

.tch-hub-topbar__points {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--tch-hub-accent);
	padding: 0.15rem 0.45rem;
	border-radius: 6px;
	background: var(--tch-hub-accent-soft);
	border: 1px solid rgba(234, 88, 12, 0.2);
	text-decoration: none;
}

.tch-hub-topbar__points:hover {
	text-decoration: none;
	color: #c2410c;
}

span.tch-hub-topbar__points {
	cursor: default;
}

/* --- Sidebar + stage --- */
.tch-hub-shell {
	display: flex;
	flex: 1;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	align-items: stretch;
	min-height: 0;
}

.tch-hub-sidebar {
	width: var(--tch-hub-sidebar-w);
	flex-shrink: 0;
	background: #fff;
	border-right: 1px solid var(--tch-hub-border);
	padding: 1rem 0 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.tch-hub-sidebar__heading {
	margin: 0 0 0.5rem;
	padding: 0 var(--tch-hub-gap);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tch-hub-muted);
}

.tch-hub-nav--sidebar {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0 var(--tch-hub-gap);
}

.tch-hub-nav--sidebar li {
	margin: 0;
}

.tch-hub-nav--sidebar a {
	display: block;
	padding: 0.5rem 0.55rem 0.5rem 0.75rem;
	border-radius: 8px;
	border-left: 3px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tch-hub-nav--sidebar a:hover {
	background: var(--tch-hub-accent-soft);
	text-decoration: none;
	color: var(--tch-hub-accent);
}

.tch-hub-nav--sidebar li.is-current > a,
.tch-hub-nav--sidebar a.is-current {
	background: var(--tch-hub-accent-soft);
	color: var(--tch-hub-accent);
	font-weight: 600;
	border-left-color: var(--tch-hub-accent);
	text-decoration: none;
}

.tch-hub-nav--topbar a.is-current {
	color: var(--tch-hub-accent);
	font-weight: 600;
}

.tch-hub-sidebar__block {
	padding-top: 0.25rem;
	border-top: 1px solid var(--tch-hub-border);
}

.tch-hub-cat-list {
	list-style: none;
	margin: 0;
	padding: 0 var(--tch-hub-gap);
}

.tch-hub-cat-list li {
	margin: 0;
	border-bottom: 1px solid #f3f4f6;
}

.tch-hub-cat-list a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.5rem 0.35rem;
	font-size: 0.9rem;
	color: var(--tch-hub-text);
}

.tch-hub-cat-list a:hover {
	color: var(--tch-hub-accent);
}

.tch-hub-cat-list__count {
	font-size: 0.8rem;
	color: var(--tch-hub-muted);
	font-variant-numeric: tabular-nums;
}

.tch-hub-upgrade {
	margin: auto var(--tch-hub-gap) 0;
	padding: var(--tch-hub-gap);
	background: linear-gradient(160deg, var(--tch-hub-accent-soft), #fff);
	border: 1px solid #fed7aa;
	border-radius: var(--tch-hub-radius);
}

.tch-hub-upgrade__title {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.tch-hub-upgrade__text {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	color: var(--tch-hub-muted);
	line-height: 1.45;
}

.tch-hub-upgrade__btn {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	font-size: 0.85rem;
	border-radius: 8px;
	background: var(--tch-hub-accent);
	color: #fff !important;
}

.tch-hub-upgrade__btn:hover {
	filter: brightness(1.06);
	text-decoration: none;
}

.tch-hub-stage {
	flex: 1;
	min-width: 0;
	padding: var(--tch-hub-gap);
	background: #f8fafc;
}

/* --- Main content --- */
.tch-hub-main {
	background: #fff;
	border: 1px solid var(--tch-hub-border);
	border-radius: var(--tch-hub-radius);
	padding: clamp(1rem, 2.5vw, 1.75rem);
	min-height: 36vh;
	box-shadow: var(--tch-hub-shadow-sm);
}

/* --- 固定页面（含 Skill 详情） --- */
.tch-hub-page {
	margin: 0;
}

.tch-hub-page__header {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #f3f4f6;
}

.tch-hub-page-title {
	margin: 0;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--tch-hub-text);
}

.tch-hub-page__content {
	margin: 0;
}

/* 正文区：可读宽度 + 基础排版（块编辑器 / 经典编辑器） */
.tch-hub-entry {
	max-width: 48rem;
	margin: 0 auto;
	font-size: 1rem;
	color: var(--tch-hub-text);
}

.tch-hub-entry > *:first-child {
	margin-top: 0;
}

.tch-hub-entry > *:last-child {
	margin-bottom: 0;
}

.tch-hub-entry p {
	margin: 0 0 1rem;
	line-height: 1.65;
	color: #374151;
}

.tch-hub-entry ul,
.tch-hub-entry ol {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
	line-height: 1.6;
	color: #374151;
}

.tch-hub-entry li {
	margin-bottom: 0.35rem;
}

.tch-hub-entry h2,
.tch-hub-entry h3,
.tch-hub-entry h4 {
	margin: 1.5rem 0 0.65rem;
	font-weight: 650;
	line-height: 1.3;
	color: var(--tch-hub-text);
}

.tch-hub-entry h2 {
	font-size: 1.25rem;
}

.tch-hub-entry h3 {
	font-size: 1.1rem;
}

.tch-hub-entry blockquote {
	margin: 0 0 1rem;
	padding: 0.65rem 1rem;
	border-left: 4px solid var(--tch-hub-accent);
	background: var(--tch-hub-accent-soft);
	border-radius: 0 6px 6px 0;
	color: #4b5563;
	font-size: 0.95rem;
}

.tch-hub-entry pre,
.tch-hub-entry code {
	font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
}

.tch-hub-entry pre {
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	overflow: auto;
	max-width: 100%;
	font-size: 0.8125rem;
	line-height: 1.5;
	background: #f8fafc;
	border: 1px solid var(--tch-hub-border);
	border-radius: 8px;
}

.tch-hub-entry img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.tch-hub-entry .wp-block-separator {
	margin: 1.5rem 0;
	border: none;
	border-top: 1px solid var(--tch-hub-border);
}

/* Skill 详情：单层 panel，工作区扁平 */
body.tch-hub-skill-page .tch-hub-entry,
body.tch-hub-skill-page .tch-hub-skill-page__workspace {
	max-width: 52rem;
}

body.tch-hub-skill-page .tch-hub-page__header,
body.tch-hub-page--skill .tch-hub-skill-page__header {
	margin-bottom: 0.25rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid #ffedd5;
}

body.tch-hub-skill-page .tch-hub-skill-page__desc:not([hidden]) {
	margin: 0.35rem 0 0;
	max-width: 42rem;
}

body.tch-hub-skill-page .tch-hub-skill-page__workspace {
	min-height: 0;
}

body.tch-hub-body .tckb-skill-ui--chat .tckb-skill-ui__shell {
	min-height: min( calc(100vh - 14rem), 720px );
	max-height: min( calc(100vh - 10rem), 900px );
}

body.tch-hub-body .tckb-skill-ui--chat .tckb-skill-ui__chat-pane {
	min-height: min( 32vh, 300px );
}

body.tch-hub-body .tckb-skill-ui--chat .tckb-skill-ui__composer {
	border-top-color: var(--tch-hub-border);
}

body.tch-hub-body .tckb-skill-ui--chat.tckb-skill-ui--has-result .tckb-skill-ui__composer {
	max-height: min( 34vh, 320px );
}

body.tch-hub-body .tckb-skill-ui--chat .tckb-skill-ui__submit {
	min-width: 5.5rem;
}

/* KB Core Skill 短代码：Hub 内扁平，不叠第二层白卡片 */
body.tch-hub-body .tckb-skill-ui.tckb-skill-ui--flat,
body.tch-hub-skill-page .tckb-skill-ui {
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

/* Skill 工作台：登录后隐藏主题页头，避免与 workspace 顶栏重复 */
body.tch-hub-skill-page .tch-hub-skill-page__header--ws {
	display: none;
}

body.tch-hub-skill-page .tckb-skill-ui--guest-preview ~ .tch-hub-skill-page__header,
body.tch-hub-skill-page .tckb-skill-ui--guest-preview .tch-hub-skill-page__header {
	display: none;
}

body.tch-hub-skill-page .tckb-skill-workspace {
	width: 100%;
}

body.tch-hub-skill-page .tch-hub-page__content.tch-hub-skill-page__workspace {
	max-width: none;
}

/* Chat v3：Skill 区占满高度，避免页面 + 对话区双主滚动 */
body.tch-hub-skill-page .tckb-skill-ui--chat .tckb-skill-ui__shell {
	min-height: min( calc( 100vh - 12rem ), 780px );
}

body.tch-hub-skill-page .tckb-skill-ui--chat .tckb-skill-ui__chat-pane {
	max-height: min( calc( 100vh - 14rem ), 820px );
}

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

body.tch-hub-body .tckb-skill-ui__control:focus {
	outline: 2px solid rgba(234, 88, 12, 0.35);
	outline-offset: 1px;
	border-color: #fdba74;
}

body.tch-hub-body .tckb-skill-ui__submit {
	background: var(--tch-hub-accent);
	border-radius: 8px;
}

body.tch-hub-body .tckb-skill-ui__submit:hover {
	background: #c2410c;
}

body.tch-hub-body .tckb-skill-ui:not(.tckb-skill-ui--flat) .tckb-skill-ui__thread {
	border-color: #fed7aa;
	background: linear-gradient(180deg, #fffdfb 0%, #fff 100%);
}

body.tch-hub-body .tckb-skill-ui__thread-new {
	border-color: var(--tch-hub-border);
	color: var(--tch-hub-text);
}

body.tch-hub-body .tckb-skill-ui__thread-new:hover {
	border-color: #fdba74;
	color: var(--tch-hub-accent);
}

body.tch-hub-body .tckb-skill-ui:not(.tckb-skill-ui--chat):not(.tckb-skill-ui--flat) .tckb-skill-ui__latest,
body.tch-hub-body .tckb-skill-ui--flat:not(.tckb-skill-ui--chat) .tckb-skill-ui__latest {
	border-color: #fed7aa;
	background: linear-gradient(180deg, #fffdfb 0%, #fff 55%);
}

body.tch-hub-body .tckb-skill-ui__copy-diagnostics:hover {
	border-color: #fdba74;
	color: var(--tch-hub-accent);
}

body.tch-hub-body .tckb-skill-ui__html-preview-btn {
	border-radius: 8px;
}

body.tch-hub-body .tckb-skill-ui__html-preview-btn:hover {
	border-color: #fdba74;
	color: var(--tch-hub-accent);
}

/* --- Front page blocks --- */
.tch-hub-home {
	display: flex;
	flex-direction: column;
	gap: var(--tch-hub-gap);
}

.tch-hub-hero {
	padding: var(--tch-hub-gap);
	background: #fff;
	border: 1px solid var(--tch-hub-border);
	border-radius: var(--tch-hub-radius);
	border-left: 4px solid var(--tch-hub-accent);
	box-shadow: var(--tch-hub-shadow-sm);
}

.tch-hub-hero__title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
}

.tch-hub-hero__lead {
	margin: 0;
	color: var(--tch-hub-muted);
	font-size: 0.95rem;
	max-width: 62ch;
}

.tch-hub-kpi {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}

.tch-hub-kpi__item {
	background: #fff;
	border: 1px solid var(--tch-hub-border);
	border-radius: var(--tch-hub-radius);
	padding: 0.85rem var(--tch-hub-gap);
	text-align: center;
}

.tch-hub-kpi__value {
	display: block;
	font-size: 1.35rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	color: var(--tch-hub-text);
}

.tch-hub-kpi__label {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.8rem;
	color: var(--tch-hub-muted);
}

.tch-hub-panels {
	background: #fff;
	border: 1px solid var(--tch-hub-border);
	border-radius: var(--tch-hub-radius);
	padding: var(--tch-hub-gap);
}

.tch-hub-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.65rem;
}

.tch-hub-tabs__btn {
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--tch-hub-border);
	border-radius: 999px;
	background: #f9fafb;
	font: inherit;
	font-size: 0.85rem;
	color: var(--tch-hub-muted);
	cursor: pointer;
}

.tch-hub-tabs__btn.is-active {
	background: var(--tch-hub-accent);
	border-color: var(--tch-hub-accent);
	color: #fff;
	box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.tch-hub-panels__hint {
	margin: 0;
	font-size: 0.85rem;
	color: var(--tch-hub-muted);
}

/* --- 首页：已登记且「上首页」的 Skill 入口 --- */
.tch-hub-featured {
	background: #fff;
	border: 1px solid var(--tch-hub-border);
	border-radius: var(--tch-hub-radius);
	padding: var(--tch-hub-gap);
	box-shadow: var(--tch-hub-shadow-sm);
}

.tch-hub-featured__head {
	margin-bottom: 0.85rem;
}

.tch-hub-featured__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 650;
	color: var(--tch-hub-text);
}

.tch-hub-featured__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.75rem;
}

.tch-hub-featured__item {
	margin: 0;
}

.tch-hub-featured__link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--tch-hub-border);
	border-radius: 8px;
	background: #fafafa;
	color: var(--tch-hub-text);
	text-decoration: none;
	min-height: 4.5rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tch-hub-featured__link:hover {
	text-decoration: none;
	border-color: #fdba74;
	box-shadow: var(--tch-hub-shadow-sm);
	color: var(--tch-hub-accent);
}

.tch-hub-featured__name {
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
}

.tch-hub-featured__id {
	font-size: 0.75rem;
	color: var(--tch-hub-muted);
	font-family: ui-monospace, Consolas, monospace;
}

.tch-hub-featured__link:hover .tch-hub-featured__id {
	color: #9a3412;
}

/* --- P0 Hub 工作台组件 --- */
.tch-hub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
}

.tch-hub-btn--primary {
	background: var(--tch-hub-accent);
	color: #fff !important;
}

.tch-hub-btn--primary:hover {
	filter: brightness(1.05);
	text-decoration: none;
}

.tch-hub-btn--ghost {
	background: #fff;
	border-color: var(--tch-hub-border);
	color: var(--tch-hub-text) !important;
}

.tch-hub-btn--sm {
	padding: 0.3rem 0.65rem;
	font-size: 0.8rem;
}

/* --- Hero / KPI / 能力卡（视觉稿对齐） --- */
.tch-hub-hero--marketing {
	padding: 0;
	border: none;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(118deg, #fff7ed 0%, #fffbf5 42%, #ffffff 100%);
	box-shadow: var(--tch-hub-shadow-md);
}

.tch-hub-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
	gap: 1.5rem;
	align-items: center;
	padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
}

.tch-hub-hero__eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tch-hub-accent);
}

.tch-hub-hero--marketing .tch-hub-hero__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	font-weight: 750;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.tch-hub-hero--marketing .tch-hub-hero__lead {
	max-width: 40ch;
	font-size: 1rem;
	line-height: 1.6;
}

.tch-hub-hero__features {
	margin: 0.85rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.tch-hub-hero__features li {
	position: relative;
	padding-left: 1.35rem;
	font-size: 0.9rem;
	color: #4b5563;
}

.tch-hub-hero__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tch-hub-accent);
	box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.tch-hub-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.15rem;
}

.tch-hub-hero__visual {
	position: relative;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tch-hub-hero__visual-svg {
	width: 100%;
	max-width: 300px;
	height: auto;
	filter: drop-shadow(0 12px 28px rgba(234, 88, 12, 0.12));
}

.tch-hub-hero__visual-orb {
	position: absolute;
	width: 120px;
	height: 120px;
	right: 8%;
	top: 10%;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #fed7aa, #fb923c);
	opacity: 0.35;
}

.tch-hub-hero__visual-card {
	position: absolute;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(253, 186, 116, 0.45);
	box-shadow: var(--tch-hub-shadow-sm);
}

.tch-hub-hero__visual-card--1 {
	width: 48%;
	height: 28%;
	left: 6%;
	bottom: 18%;
}

.tch-hub-hero__visual-card--2 {
	width: 36%;
	height: 22%;
	right: 4%;
	top: 16%;
}

.tch-hub-btn--lg {
	padding: 0.62rem 1.25rem;
	font-size: 0.95rem;
	border-radius: 10px;
}

.tch-hub-kpi--4 {
	grid-template-columns: repeat(4, 1fr);
	gap: 0.85rem;
}

.tch-hub-kpi--4 .tch-hub-kpi__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	text-align: left;
	padding: 1rem 1.1rem;
	border-radius: 14px;
	box-shadow: var(--tch-hub-shadow-sm);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tch-hub-kpi--4 .tch-hub-kpi__item:hover {
	box-shadow: var(--tch-hub-shadow-md);
	transform: translateY(-1px);
}

.tch-hub-kpi__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--tch-hub-accent-soft);
	color: var(--tch-hub-accent);
}

.tch-hub-kpi__body {
	min-width: 0;
	flex: 1;
}

.tch-hub-kpi__row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
}

.tch-hub-kpi--4 .tch-hub-kpi__value {
	font-size: 1.65rem;
	line-height: 1.1;
}

.tch-hub-kpi__trend {
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
}

.tch-hub-kpi__trend.is-up {
	color: #15803d;
	background: #dcfce7;
}

.tch-hub-kpi__trend.is-down {
	color: #b91c1c;
	background: #fee2e2;
}

.tch-hub-kpi__trend.is-flat {
	color: var(--tch-hub-muted);
	background: #f3f4f6;
}

.tch-hub-kpi__item--guest {
	grid-column: 1 / -1;
	text-align: left;
}

.tch-hub-panel {
	background: #fff;
	border: 1px solid var(--tch-hub-border);
	border-radius: 14px;
	padding: 1.15rem 1.2rem 1.25rem;
	box-shadow: var(--tch-hub-shadow-sm);
}

.tch-hub-section-title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	font-weight: 650;
}

.tch-hub-daily-life {
	margin-top: 1rem;
}

.tch-hub-daily-life__head {
	margin-bottom: 0.85rem;
}

.tch-hub-daily-life__lead {
	margin: 0.35rem 0 0;
	max-width: 42rem;
}

.tch-hub-notice--inline {
	margin-bottom: 1rem;
}

.tch-hub-workflows__grid,
.tch-hub-cap-grid,
.tch-hub-catalog__grid,
.tch-hub-new-task__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.tch-hub-workflows__grid {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.tch-hub-cap-grid {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}

.tch-hub-catalog__grid {
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: 0.65rem;
}

.tch-hub-new-task__grid {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}

.tch-hub-new-task__grid .tch-hub-cap-card {
	margin: 0;
	list-style: none;
}

.tch-hub-new-task__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 1rem;
}

.tch-hub-new-task__tabs {
	flex: 1 1 auto;
}

.tch-hub-new-task__search {
	flex: 0 1 240px;
	min-width: 160px;
}

.tch-hub-cap-card[hidden] {
	display: none;
}

.tch-hub-main--page .tch-hub-page.tch-hub-panel {
	padding: 1.25rem 1.35rem 1.5rem;
}

.tch-hub-recharge-template .tckb-recharge-portal {
	max-width: none;
}

.tch-hub-workflows__link {
	display: block;
	padding: 0.85rem 1rem;
	border: 1px solid var(--tch-hub-border);
	border-radius: 8px;
	background: #fff;
	color: var(--tch-hub-text);
	text-decoration: none;
}

.tch-hub-workflows__link:hover {
	border-color: #fdba74;
	box-shadow: var(--tch-hub-shadow-sm);
	text-decoration: none;
	color: var(--tch-hub-accent);
}

.tch-hub-cap-card__inner {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	height: 100%;
	padding: 1.1rem 1.15rem;
	border: 1px solid var(--tch-hub-border);
	border-radius: 14px;
	background: #fff;
	color: var(--tch-hub-text);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tch-hub-cap-card__inner:hover {
	border-color: #fdba74;
	box-shadow: 0 8px 28px rgba(234, 88, 12, 0.1);
	transform: translateY(-2px);
	text-decoration: none;
	color: var(--tch-hub-text);
}

.tch-hub-cap-card__icon {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	flex-shrink: 0;
}

.tch-hub-cap-card__icon.tone-blue {
	background: #eff6ff;
	color: #2563eb;
}

.tch-hub-cap-card__icon.tone-cyan {
	background: #ecfeff;
	color: #0891b2;
}

.tch-hub-cap-card__icon.tone-purple {
	background: #f5f3ff;
	color: #7c3aed;
}

.tch-hub-cap-card__icon.tone-violet {
	background: #ede9fe;
	color: #6d28d9;
}

.tch-hub-cap-card__icon.tone-green {
	background: #ecfdf5;
	color: #059669;
}

.tch-hub-cap-card__icon.tone-orange,
.tch-hub-cap-card__icon.tone-gray {
	background: var(--tch-hub-accent-soft);
	color: var(--tch-hub-accent);
}

.tch-hub-cap-card__icon.tone-slate {
	background: #f1f5f9;
	color: #475569;
}

.tch-hub-cap-card__content {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
	min-width: 0;
}

.tch-hub-cap-card__name {
	font-size: 1.05rem;
	font-weight: 650;
	line-height: 1.3;
}

.tch-hub-cap-card__desc {
	font-size: 0.85rem;
	color: var(--tch-hub-muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tch-hub-cap-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.25rem;
}

.tch-hub-tag {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	font-size: 0.72rem;
	font-weight: 500;
	border-radius: 6px;
	background: var(--tch-hub-accent-soft);
	color: #9a3412;
}

.tch-hub-tag--muted {
	background: #f3f4f6;
	color: var(--tch-hub-muted);
}

.tch-hub-cap-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	align-self: flex-start;
	margin-top: auto;
	padding: 0.4rem 0.85rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--tch-hub-accent);
	background: #fff;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}

.tch-hub-cap-card__inner:hover .tch-hub-cap-card__cta {
	background: var(--tch-hub-accent);
	color: #fff;
	border-color: var(--tch-hub-accent);
}

.tch-hub-cap-card__arrow {
	transition: transform 0.15s ease;
}

.tch-hub-cap-card__inner:hover .tch-hub-cap-card__arrow {
	transform: translateX(3px);
}

/* --- 全部能力：紧凑小卡片 --- */
.tch-hub-catalog__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.tch-hub-catalog__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 280px;
	justify-content: flex-end;
}

.tch-hub-catalog__search-wrap {
	position: relative;
	flex: 1 1 12rem;
	max-width: 280px;
}

.tch-hub-catalog__search-icon {
	position: absolute;
	left: 0.65rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.95rem;
	color: var(--tch-hub-muted);
	pointer-events: none;
}

.tch-hub-catalog__search {
	width: 100%;
	padding: 0.48rem 0.65rem 0.48rem 2rem;
	border: 1px solid var(--tch-hub-border);
	border-radius: 10px;
	font: inherit;
	font-size: 0.875rem;
	background: #fafafa;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tch-hub-catalog__search:focus {
	outline: none;
	border-color: #fdba74;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.tch-hub-catalog__filter,
.tch-hub-catalog__sort {
	padding: 0.48rem 2rem 0.48rem 0.65rem;
	border: 1px solid var(--tch-hub-border);
	border-radius: 10px;
	font: inherit;
	font-size: 0.875rem;
	background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5 9 4.5'/%3E%3C/svg%3E") no-repeat right 0.55rem center;
	appearance: none;
	cursor: pointer;
}

.tch-hub-catalog__filter:focus,
.tch-hub-catalog__sort:focus {
	outline: none;
	border-color: #fdba74;
	background-color: #fff;
}

.tch-hub-catalog__card {
	margin: 0;
}

.tch-hub-catalog__inner {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.7rem 0.75rem;
	border: 1px solid var(--tch-hub-border);
	border-radius: 12px;
	background: #fff;
	color: var(--tch-hub-text);
	text-decoration: none;
	min-height: 3.5rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

a.tch-hub-catalog__inner:hover {
	border-color: #fdba74;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	transform: translateY(-1px);
	text-decoration: none;
	color: var(--tch-hub-text);
}

.tch-hub-catalog__inner.is-muted {
	cursor: not-allowed;
	background: #fafafa;
}

.tch-hub-catalog__card.is-disabled .tch-hub-catalog__inner.is-muted {
	opacity: 0.72;
}

.tch-hub-catalog__icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
}

.tch-hub-catalog__icon.tone-blue {
	background: #eff6ff;
	color: #2563eb;
}

.tch-hub-catalog__icon.tone-cyan {
	background: #ecfeff;
	color: #0891b2;
}

.tch-hub-catalog__icon.tone-purple {
	background: #f5f3ff;
	color: #7c3aed;
}

.tch-hub-catalog__icon.tone-violet {
	background: #ede9fe;
	color: #6d28d9;
}

.tch-hub-catalog__icon.tone-green {
	background: #ecfdf5;
	color: #059669;
}

.tch-hub-catalog__icon.tone-orange,
.tch-hub-catalog__icon.tone-gray {
	background: var(--tch-hub-accent-soft);
	color: var(--tch-hub-accent);
}

.tch-hub-catalog__icon.tone-slate {
	background: #f1f5f9;
	color: #475569;
}

.tch-hub-catalog__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.tch-hub-catalog__name {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tch-hub-catalog__meta {
	font-size: 0.72rem;
	color: var(--tch-hub-muted);
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tch-hub-catalog__meta--warn {
	color: #b91c1c;
}

.tch-hub-catalog__dot {
	margin: 0 0.15rem;
	opacity: 0.65;
}

.tch-hub-catalog__chevron {
	flex-shrink: 0;
	font-size: 0.95rem;
	color: #d1d5db;
	transition: color 0.15s ease, transform 0.15s ease;
}

a.tch-hub-catalog__inner:hover .tch-hub-catalog__chevron {
	color: var(--tch-hub-accent);
	transform: translateX(2px);
}

.tch-hub-catalog__empty {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	color: var(--tch-hub-muted);
	text-align: center;
	padding: 1.5rem;
	background: #fafafa;
	border-radius: 10px;
}

.tch-hub-catalog__foot {
	margin: 0.85rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid #f3f4f6;
	font-size: 0.8rem;
	color: var(--tch-hub-muted);
	text-align: center;
}

/* --- 任务 / 历史：横向记录卡片（与 catalog 同系） --- */
.tch-hub-list-panel__status {
	margin: 0 0 0.85rem;
	font-size: 0.875rem;
	color: var(--tch-hub-muted);
}

.tch-hub-list-panel__status.is-error {
	color: #b91c1c;
	background: #fef2f2;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
}

.tch-hub-list-panel__status.is-empty {
	text-align: center;
	padding: 2rem 1rem;
	background: #fafafa;
	border-radius: 10px;
	border: 1px dashed var(--tch-hub-border);
}

.tch-hub-record-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.tch-hub-record-list.is-loading {
	gap: 0.65rem;
}

.tch-hub-record-card__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--tch-hub-border);
	border-radius: 12px;
	background: #fff;
	color: var(--tch-hub-text);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

a.tch-hub-record-card__inner:hover {
	border-color: #fdba74;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
	transform: translateY(-1px);
	text-decoration: none;
	color: var(--tch-hub-text);
}

.tch-hub-record-card__inner.is-static {
	cursor: default;
	background: #fafafa;
}

.tch-hub-record-card__icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	font-size: 1.05rem;
	font-weight: 700;
}

.tch-hub-record-card__icon.tone-blue {
	background: #eff6ff;
	color: #2563eb;
}

.tch-hub-record-card__icon.tone-cyan {
	background: #ecfeff;
	color: #0891b2;
}

.tch-hub-record-card__icon.tone-purple {
	background: #f5f3ff;
	color: #7c3aed;
}

.tch-hub-record-card__icon.tone-violet {
	background: #ede9fe;
	color: #6d28d9;
}

.tch-hub-record-card__icon.tone-green {
	background: #ecfdf5;
	color: #059669;
}

.tch-hub-record-card__icon.tone-orange,
.tch-hub-record-card__icon.tone-gray {
	background: var(--tch-hub-accent-soft);
	color: var(--tch-hub-accent);
}

.tch-hub-record-card__icon.tone-slate {
	background: #f1f5f9;
	color: #475569;
}

.tch-hub-record-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.tch-hub-record-card__title {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tch-hub-record-card__subtitle {
	font-size: 0.72rem;
	color: var(--tch-hub-muted);
	font-family: ui-monospace, Consolas, monospace;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tch-hub-record-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-top: 0.15rem;
}

.tch-hub-tag.is-ok {
	background: #dcfce7;
	color: #15803d;
}

.tch-hub-tag.is-fail {
	background: #fee2e2;
	color: #b91c1c;
}

.tch-hub-tag.is-run {
	background: var(--tch-hub-accent-soft);
	color: #9a3412;
}

.tch-hub-tag.is-neutral {
	background: #f3f4f6;
	color: var(--tch-hub-muted);
}

.tch-hub-record-card__cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.38rem 0.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--tch-hub-accent);
	background: #fff;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

a.tch-hub-record-card__inner:hover .tch-hub-record-card__cta {
	background: var(--tch-hub-accent);
	color: #fff;
	border-color: var(--tch-hub-accent);
}

.tch-hub-record-card__arrow {
	transition: transform 0.15s ease;
}

a.tch-hub-record-card__inner:hover .tch-hub-record-card__arrow {
	transform: translateX(2px);
}

.tch-hub-record-card--skeleton .tch-hub-record-card__inner {
	pointer-events: none;
	border-color: #f3f4f6;
}

.tch-hub-skeleton-icon {
	width: 44px;
	height: 44px;
	border-radius: 11px;
	background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
	background-size: 200% 100%;
	animation: tch-hub-shimmer 1.2s ease-in-out infinite;
	flex-shrink: 0;
}

.tch-hub-skeleton-lines {
	flex: 1;
	height: 2.5rem;
	border-radius: 8px;
	background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
	background-size: 200% 100%;
	animation: tch-hub-shimmer 1.2s ease-in-out infinite;
}

@keyframes tch-hub-shimmer {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}

@media (max-width: 640px) {
	.tch-hub-record-card__inner {
		flex-wrap: wrap;
	}

	.tch-hub-record-card__cta {
		width: 100%;
		justify-content: center;
		margin-top: 0.25rem;
	}
}

.tch-hub-notice {
	padding: 0.75rem 1rem;
	background: var(--tch-hub-accent-soft);
	border-radius: 8px;
}

.tch-hub-main--below {
	margin-top: var(--tch-hub-gap);
}

@media (max-width: 960px) {
	.tch-hub-hero__grid {
		grid-template-columns: 1fr;
	}

	.tch-hub-hero__visual {
		min-height: 160px;
		order: -1;
	}

	.tch-hub-kpi--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.tch-hub-kpi--4 {
		grid-template-columns: 1fr;
	}

	.tch-hub-cap-grid {
		grid-template-columns: 1fr;
	}

	.tch-hub-catalog__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tch-hub-catalog__tools {
		justify-content: stretch;
	}

	.tch-hub-catalog__search-wrap {
		max-width: none;
		flex: 1 1 100%;
	}
}

@media (max-width: 400px) {
	.tch-hub-catalog__grid {
		grid-template-columns: 1fr;
	}
}

/* --- Site footer --- */
.tch-hub-site-footer {
	padding: 1rem var(--tch-hub-gap);
	text-align: center;
	font-size: 0.8rem;
	color: var(--tch-hub-muted);
	border-top: 1px solid var(--tch-hub-border);
	background: #fff;
}

.tch-hub-site-footer__note {
	margin: 0;
}

/* --- Responsive --- */
@media (max-width: 960px) {
	:root {
		--tch-hub-sidebar-w: 220px;
	}

	.tch-hub-kpi {
		grid-template-columns: 1fr;
	}

	.tch-hub-shell {
		flex-direction: column;
	}

	.tch-hub-sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--tch-hub-border);
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		padding: 0.75rem var(--tch-hub-gap);
	}

	.tch-hub-sidebar__primary {
		flex: 1 1 100%;
	}

	.tch-hub-nav--sidebar {
		flex-direction: row;
		flex-wrap: wrap;
		padding: 0;
		gap: 0.35rem;
	}

	.tch-hub-nav--sidebar a {
		padding: 0.35rem 0.55rem;
		background: #f9fafb;
		border-radius: 6px;
	}

	.tch-hub-sidebar__block {
		flex: 1 1 160px;
		border-top: none;
		padding-top: 0;
	}

	.tch-hub-cat-list {
		padding: 0;
	}

	.tch-hub-upgrade {
		flex: 1 1 220px;
		margin: 0;
	}
}

@media (max-width: 600px) {
	.tch-hub-topbar__tagline {
		display: none;
	}

	.tch-hub-topbar__search {
		flex: 1 1 100%;
		max-width: none;
		order: 4;
	}
}
