/*
Theme Name: 格物制之 (GeWuZhiZhi)
Theme URI: https://gewuzhizhi.utheme.net/
Author: 格物制之
Author URI: https://gewuzhizhi.utheme.net/
Description: Authentic Smartisan tactile skeuomorphic WordPress learning-media theme for YouCanStudy.AI (Smartisan OS woven-linen Light Mode + Smartisan Notes v4.3 warm-neutral carbon charcoal Dark Mode).
Version: 0.8.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: youcanstudy-ai
*/

/* ==========================================================================
   YouCanStudy.AI × Smartisan Tactile Theme Layer (v0.8.0)
   Builds on assets/css/smartisan-core.css & assets/css/theme.css
   ========================================================================== */

:root,
:root[data-theme="light"],
:root[theme-mode="light"] {
	--ycsa-ai-accent: #2f8f6b;
	--ycsa-ai-accent-soft: rgba(47, 143, 107, 0.12);
	--ycsa-obsidian: #151417;
	--ycsa-obsidian-deep: #0e0d10;
	--ycsa-obsidian-border: rgba(255, 255, 255, 0.09);
	--ycsa-nav-hover-bg: rgba(0, 0, 0, 0.045);
	--ycsa-nav-active-bg: linear-gradient(180deg, #ffffff 0%, #f1f2f4 100%);
	--ycsa-nav-active-border: #d0d2d7;
	--ycsa-nav-active-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.06);
	--ycsa-cta-band-bg: linear-gradient(180deg, #f9fafb 0%, #f1f2f5 100%);
}

:root[data-theme="dark"],
:root[theme-mode="dark"] {
	--ycsa-ai-accent: #5cc49a;
	--ycsa-ai-accent-soft: rgba(92, 196, 154, 0.14);
	--ycsa-obsidian: #161518;
	--ycsa-obsidian-deep: #0c0b0e;
	--ycsa-obsidian-border: #2a282e;
	--ycsa-nav-hover-bg: rgba(255, 255, 255, 0.055);
	--ycsa-nav-active-bg: linear-gradient(180deg, #2b2930 0%, #222027 100%);
	--ycsa-nav-active-border: #3a3740;
	--ycsa-nav-active-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 3px rgba(0, 0, 0, 0.34);
	--ycsa-cta-band-bg: linear-gradient(180deg, #1b191e 0%, #151418 100%);
}

/* ── Authentic 2018 Smartisan 60px Jet-Black Header ──────────────────────── */
.ycsa-global-topbar {
	position: relative;
	z-index: 60;
	width: 100%;
	background: linear-gradient(180deg, #161719 0%, #090a0c 100%);
	border-bottom: 1px solid #040506;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	color: #c8c8c8;
}

.ycsa-global-topbar-inner {
	display: flex;
	height: 55px;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.ycsa-global-topbar-inner {
		height: 59px;
	}
}

.ycsa-global-logo {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	color: #ffffff;
	text-decoration: none;
	transition: opacity 150ms ease;
}

.ycsa-global-logo:hover {
	text-decoration: none;
	color: #ffffff;
	opacity: 0.90;
}

.ycsa-global-logo-lockup {
	display: block;
	height: 23px;
	width: auto;
	max-width: 210px;
	object-fit: contain;
}

.ycsa-breadcrumb-wrap {
	padding: 16px 0 0;
}

@media (min-width: 768px) {
	.ycsa-global-logo-lockup {
		height: 27px;
		max-width: 250px;
	}

	#main-content:not(.ycsa-login-page) {
		padding-top: 24px;
	}

	.ycsa-breadcrumb-wrap {
		padding: 20px 0 0;
	}

	.ycsa-breadcrumb-wrap + #main-content:not(.ycsa-login-page) {
		padding-top: 14px;
	}
}

.ycsa-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--sm-text-muted);
}

.ycsa-breadcrumb a {
	color: var(--sm-text-secondary);
	text-decoration: none;
	transition: color 140ms ease;
}

.ycsa-breadcrumb a:hover {
	color: var(--sm-accent-blue);
	text-decoration: none;
}

.ycsa-breadcrumb-current {
	color: var(--sm-text-heading);
}

.ycsa-global-right {
	display: flex;
	align-items: center;
}

.ycsa-global-nav {
	display: none;
	align-items: center;
	gap: 26px;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.ycsa-global-nav {
		display: flex;
	}
}

.ycsa-global-link {
	font-size: 11.5px;
	line-height: 16px;
	letter-spacing: 0.02em;
	font-weight: 400;
	color: #c8c8c8;
	text-decoration: none;
	transition: color 140ms ease;
}

.ycsa-global-link:hover,
.ycsa-global-link.is-active {
	color: #ffffff;
	text-decoration: none;
}

.ycsa-global-link.is-active {
	font-weight: 600;
}

.ycsa-global-sep {
	display: none;
	width: 1px;
	height: 12px;
	margin: 0 18px 0 26px;
	background: rgba(255, 255, 255, 0.20);
}

@media (min-width: 768px) {
	.ycsa-global-sep {
		display: block;
	}
}

.ycsa-global-aside {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ycsa-global-user-btn {
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #b4b5ba;
	cursor: pointer;
	text-decoration: none;
	transition: color 140ms ease, background 140ms ease;
}

.ycsa-global-user-btn:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.09);
	text-decoration: none;
}

/* Tier 2: Authentic 2018 Transparent Dot-Separated Sub-Nav Floating Directly on Canvas */
.ycsa-subnav-bar {
	display: none;
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
	height: 76px;
	background: transparent;
	border-bottom: 1px solid transparent;
	box-shadow: none;
	transition: height 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

@media (min-width: 768px) {
	.ycsa-subnav-bar {
		display: block;
	}
}

.ycsa-subnav-bar.is-scrolled {
	height: 60px;
	background: linear-gradient(180deg, #fbfbfb 0%, #f1f1f1 100%);
	border-bottom-color: #dadada;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.065), inset 0 1px 0 #ffffff;
}

.ycsa-subnav-inner {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.ycsa-subnav-links {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow-x: auto;
}

.ycsa-subnav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-size: 13.5px;
	font-weight: 400;
	color: #666666;
	text-decoration: none;
	white-space: nowrap;
	word-break: keep-all;
	user-select: none;
	transition: color 120ms ease;
}

.ycsa-subnav-link + .ycsa-subnav-link::before {
	content: '';
	display: inline-block;
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background: #bdbdbd;
	margin: 0 18px;
	pointer-events: none;
}

.ycsa-subnav-link:hover {
	color: #5079d9;
	text-decoration: none;
}

.ycsa-subnav-link.is-active {
	color: #333333;
	font-weight: 700;
}

/* Single User Icon fades in cleanly on the right only when sticky sub-nav is scrolled */
.ycsa-subnav-scrolled-actions {
	display: flex;
	align-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms ease;
}

.ycsa-subnav-bar.is-scrolled .ycsa-subnav-scrolled-actions {
	opacity: 1;
	pointer-events: auto;
}

.ycsa-subnav-user-btn {
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #666666;
	text-decoration: none;
	transition: color 120ms ease, background 120ms ease;
}

.ycsa-subnav-user-btn:hover {
	color: #212121;
	background: rgba(0, 0, 0, 0.05);
	text-decoration: none;
}

.ycsa-site-logo-badge {
	display: inline-flex;
	height: 36px;
	width: 36px;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	background: linear-gradient(180deg, #ffffff 0%, #f0f1f3 100%);
	border: 1px solid rgba(0, 0, 0, 0.11);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10), inset 0 1px 0 #ffffff;
	padding: 3px;
}

@media (min-width: 768px) {
	.ycsa-mobile-menu-toggle {
		display: none !important;
	}
}

.ycsa-btn-on-dark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 38px;
	padding: 0.5rem 1.15rem;
	border-radius: 7px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
	color: #eceaef;
	font-size: 0.84rem;
	font-weight: 500;
	text-decoration: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.36);
	transition: background 120ms ease, border-color 120ms ease;
}

.ycsa-btn-on-dark:hover {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.10) 100%);
	border-color: rgba(255, 255, 255, 0.34);
	color: #ffffff;
	text-decoration: none;
}

.ycsa-mobile-drawer {
	border-top: 1px solid var(--sm-border-subtle);
	background: var(--sm-bg-elevated);
	box-shadow: var(--sm-card-shadow);
	color: var(--sm-text);
}

.ycsa-mobile-nav-link {
	display: flex;
	align-items: center;
	border-radius: 7px;
	border: 1px solid transparent;
	padding: 0.55rem 0.75rem;
	color: var(--sm-text-secondary);
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
}

.ycsa-mobile-nav-link:hover {
	background: var(--ycsa-nav-hover-bg);
	color: var(--sm-text-heading);
	text-decoration: none;
}

.ycsa-mobile-nav-link.is-active {
	background: var(--sm-brand-soft);
	border-color: var(--sm-brand-ring);
	color: var(--sm-blue);
	font-weight: 600;
}

.sm-segmented-btn.is-active,
.sm-segmented-btn.is-active:hover,
.sm-segmented-btn[aria-pressed="true"],
.sm-segmented-btn[aria-pressed="true"]:hover {
	color: #ffffff;
}

/* ── Homepage Full-Width 2016/2018 Smartisan 3D Parallax Hero Stage ──────── */
.ycsa-hero-stage {
	position: relative;
	z-index: 1;
	min-height: 360px;
	perspective: 3000px;
}

.ycsa-hero-3d-slides {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 360px;
	transform-style: preserve-3d;
	transform: translate3d(0, 0, 0);
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 768px) {
	.ycsa-hero-stage,
	.ycsa-hero-3d-slides {
		min-height: 460px;
	}
}

.ycsa-hero-stage.is-animating .ycsa-hero-3d-slides {
	transform: translate3d(0, 0, 10px);
}

/* Floating ambient drop shadow that tracks opposite cursor tilt (2016 Smartisan banner-3d-shadow) */
.ycsa-hero-3d-shadow {
	position: absolute;
	inset: 14px 12px -16px 12px;
	border-radius: 16px;
	background: radial-gradient(ellipse at center, rgba(15, 16, 22, 0.44) 0%, rgba(15, 16, 22, 0.22) 52%, rgba(15, 16, 22, 0) 76%);
	filter: blur(18px);
	opacity: 0;
	pointer-events: none;
	z-index: 0;
	transition: opacity 0.3s ease;
	will-change: transform, opacity;
}

:root[data-theme="dark"] .ycsa-hero-3d-shadow {
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0) 78%);
}

.ycsa-hero-stage.is-animating .ycsa-hero-3d-shadow {
	opacity: 1;
}

.ycsa-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	transform-style: preserve-3d;
	transition: opacity 0.9s ease;
	will-change: transform, opacity;
}

.ycsa-hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

.ycsa-hero-slide-card {
	border-radius: 10px;
	background: var(--ycsa-obsidian);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 3px 10px rgba(0, 0, 0, 0.14), 0 10px 26px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s ease;
}

.ycsa-hero-stage.is-animating .ycsa-hero-slide-card {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 16px 38px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .ycsa-hero-slide-card {
	box-shadow: inset 0 0 0 1px #323039, 0 8px 26px rgba(0, 0, 0, 0.52);
}

.ycsa-hero-layer-base {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	overflow: hidden;
}

.ycsa-hero-layer-mid {
	position: absolute;
	inset: -12px;
	pointer-events: none;
	will-change: transform;
}

.ycsa-hero-layer-fore {
	will-change: transform;
}

.ycsa-hero-3d-glare {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 36%, transparent 70%);
}

.ycsa-hero-stage.is-animating .ycsa-hero-3d-glare {
	opacity: 1;
}

.ycsa-hero-dots-wrap {
	position: absolute;
	bottom: 20px;
	left: 50%;
	z-index: 30;
	transform: translateX(-50%) translateZ(30px);
	display: flex;
	align-items: center;
	gap: 8px;
}

.ycsa-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16, 15, 19, 0.12) 0%, rgba(16, 15, 19, 0.56) 54%, rgba(12, 11, 15, 0.92) 100%);
}

.ycsa-hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.10);
	padding: 0.26rem 0.65rem;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #eef1f7;
	backdrop-filter: blur(8px);
}

.ycsa-hero-dot {
	height: 9px;
	width: 9px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.42);
	background: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ycsa-hero-dot.is-active,
.ycsa-hero-dot[aria-current="true"] {
	background: #ffffff;
	border-color: #ffffff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.38);
	transform: scale(1.1);
}

/* ── Authentic 2018 Smartisan 4-Column Joined Activity Block List ────────── */
.ycsa-quad-strip {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	background: var(--sm-bg-elevated);
	border: 1px solid var(--sm-card-border);
	border-radius: 9px;
	box-shadow: var(--sm-card-shadow);
	overflow: hidden;
}

@media (min-width: 640px) {
	.ycsa-quad-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ycsa-quad-strip {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ycsa-quad-cell {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--sm-bg-elevated);
	text-decoration: none;
	overflow: hidden;
	border-top: 1px solid var(--sm-border-subtle);
	transition: background 150ms ease;
}

.ycsa-quad-cell:first-child {
	border-top: 0;
}

@media (min-width: 640px) {
	.ycsa-quad-cell:nth-child(-n + 2) {
		border-top: 0;
	}
	.ycsa-quad-cell:nth-child(even) {
		border-left: 1px solid var(--sm-border-subtle);
	}
}

@media (min-width: 1024px) {
	.ycsa-quad-cell {
		border-top: 0;
		border-left: 1px solid var(--sm-border-subtle);
	}
	.ycsa-quad-cell:first-child {
		border-left: 0;
	}
}

/* Iconic 2018 Smartisan Store soft inset-shadow hover sweep */
.ycsa-quad-cell::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
	transition: box-shadow 160ms ease;
	z-index: 3;
}

.ycsa-quad-cell:hover {
	text-decoration: none;
}

.ycsa-quad-cell:hover::after {
	box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.08);
}

.ycsa-quad-copy {
	padding: 18px 16px 10px;
	text-align: center;
}

.ycsa-quad-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.ycsa-quad-title {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sm-text-heading);
	line-height: 1.4;
}

.ycsa-quad-pill {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	height: 18px;
	padding: 0 7px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	color: #3a8f49;
	background: #ebf7ee;
	border: 1px solid #bce3c5;
}

.ycsa-quad-sub {
	margin: 5px 0 0;
	font-size: 11.5px;
	color: var(--sm-text-muted);
	line-height: 1.45;
}

.ycsa-quad-thumb {
	position: relative;
	height: 128px;
	margin: 4px 14px 14px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--sm-bg-surface);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.ycsa-quad-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 260ms ease;
}

.ycsa-quad-cell:hover .ycsa-quad-thumb img {
	transform: scale(1.03);
}

.ycsa-quad-thumb-fallback {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--sm-text-muted);
}

.ycsa-hero-arrow {
	position: absolute;
	top: 50%;
	z-index: 30;
	transform: translateY(-50%);
	display: none;
	height: 36px;
	width: 36px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(20, 19, 24, 0.56);
	color: #f3f4f6;
	backdrop-filter: blur(8px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
	opacity: 0;
	cursor: pointer;
	transition: opacity 150ms ease, background 150ms ease, transform 120ms ease;
}

@media (min-width: 768px) {
	.ycsa-hero-arrow {
		display: flex;
	}
}

.ycsa-hero-stage:hover .ycsa-hero-arrow {
	opacity: 1;
}

.ycsa-hero-arrow:hover {
	background: rgba(28, 26, 33, 0.84);
}

/* "最近上新" Sidebar Card */
.ycsa-sidebar-card {
	display: flex;
	flex-direction: column;
	background: var(--sm-bg-elevated);
	border: 1px solid var(--sm-card-border);
	border-radius: 11px;
	box-shadow: var(--sm-card-shadow);
	overflow: hidden;
}

.ycsa-sidebar-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1.25rem;
	background: var(--sm-card-header-bg);
	border-bottom: 1px solid var(--sm-border-subtle);
}

.ycsa-sidebar-row {
	display: block;
	padding: 0.78rem 1.25rem;
	border-bottom: 1px solid var(--sm-border-subtle);
	text-decoration: none;
	transition: background 120ms ease;
}

.ycsa-sidebar-row:last-child {
	border-bottom: 0;
}

.ycsa-sidebar-row:hover {
	background: var(--sm-table-row-hover);
	text-decoration: none;
}

.ycsa-sidebar-row-title {
	color: var(--sm-text-heading);
	font-size: 0.84rem;
	font-weight: 500;
	line-height: 1.5;
	transition: color 120ms ease;
}

.ycsa-sidebar-row:hover .ycsa-sidebar-row-title {
	color: var(--sm-blue);
}

/* ── Smartisan Segmented Filter Bar ──────────────────────────────────────── */
.ycsa-filter-shell {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.85rem;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
	background: var(--sm-bg-elevated);
	border: 1px solid var(--sm-card-border);
	box-shadow: var(--sm-card-shadow);
}

@media (min-width: 768px) {
	.ycsa-filter-shell {
		flex-direction: row;
		align-items: center;
	}
}

.ycsa-course-filter-tabs {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
	padding: 3px;
	border-radius: 8px;
	background: var(--sm-bg-recessed);
	border: 1px solid var(--sm-border-subtle);
	box-shadow: var(--sm-recess-shadow);
}

.ycsa-course-filter-button {
	display: inline-flex;
	height: 30px;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	padding: 0 0.85rem;
	border-radius: 6px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--sm-text-secondary);
	font-size: 0.81rem;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.ycsa-course-filter-button:hover {
	color: var(--sm-text-heading);
	text-decoration: none;
}

.ycsa-course-filter-button.is-active {
	background: var(--sm-btn-primary-bg);
	border-color: var(--sm-btn-primary-border);
	color: #ffffff;
	font-weight: 600;
	text-shadow: 0 -1px 0 rgba(28, 52, 114, 0.30);
	box-shadow: var(--sm-btn-primary-shadow);
}

.ycsa-filter-search-input {
	width: 100%;
	height: 36px;
	border-radius: 7px;
	border: 1px solid var(--sm-input-border);
	background: var(--sm-bg-input);
	padding: 0 0.9rem 0 2.25rem;
	color: var(--sm-text);
	font-size: 0.8rem;
	outline: none;
	box-shadow: var(--sm-recess-shadow);
	transition: border-color 140ms ease, box-shadow 140ms ease;
}

.ycsa-filter-search-input::placeholder {
	color: var(--sm-text-muted);
}

.ycsa-filter-search-input:focus {
	border-color: var(--sm-blue);
	box-shadow: 0 0 0 2.5px var(--sm-brand-ring);
}

/* ── Die-Cut Card Cover Mineral Palettes (Harmonious in Light & Dark) ────── */
.ycsa-card-cover {
	position: relative;
	display: flex;
	height: 10.5rem;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid var(--sm-border-subtle);
}

.ycsa-cover-mesh {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
	background-size: 16px 16px;
	opacity: 0.55;
}

.ycsa-cover-blue    { background: linear-gradient(145deg, #2b3f63 0%, #1d2b45 100%); }
.ycsa-cover-emerald { background: linear-gradient(145deg, #21453c 0%, #162e29 100%); }
.ycsa-cover-rose    { background: linear-gradient(145deg, #542d3a 0%, #381e28 100%); }
.ycsa-cover-purple  { background: linear-gradient(145deg, #3e3357 0%, #29223b 100%); }
.ycsa-cover-indigo  { background: linear-gradient(145deg, #2f365c 0%, #1f2440 100%); }
.ycsa-cover-amber   { background: linear-gradient(145deg, #544028 0%, #382a1a 100%); }
.ycsa-cover-cyan    { background: linear-gradient(145deg, #214454 0%, #162e39 100%); }
.ycsa-cover-stone   { background: linear-gradient(145deg, #3d3b38 0%, #292725 100%); }
.ycsa-cover-orange  { background: linear-gradient(145deg, #593927 0%, #3b2519 100%); }
.ycsa-cover-pink    { background: linear-gradient(145deg, #54314a 0%, #382032 100%); }
.ycsa-cover-sky     { background: linear-gradient(145deg, #254159 0%, #182c3d 100%); }
.ycsa-cover-teal    { background: linear-gradient(145deg, #214746 0%, #163030 100%); }

.ycsa-card-badge {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 20;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	padding: 0.2rem 0.55rem;
	font-size: 10.5px;
	font-weight: 600;
	color: #ffffff;
	background: rgba(18, 17, 22, 0.62);
	backdrop-filter: blur(8px);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.ycsa-badge-blue    { background: rgba(74, 108, 196, 0.86); }
.ycsa-badge-emerald { background: rgba(45, 132, 100, 0.86); }
.ycsa-badge-rose    { background: rgba(176, 74, 102, 0.86); }
.ycsa-badge-purple  { background: rgba(118, 86, 176, 0.86); }
.ycsa-badge-indigo  { background: rgba(84, 98, 186, 0.86); }
.ycsa-badge-amber   { background: rgba(176, 122, 42, 0.86); }
.ycsa-badge-cyan    { background: rgba(46, 128, 158, 0.86); }
.ycsa-badge-stone   { background: rgba(96, 92, 86, 0.86); }
.ycsa-badge-orange  { background: rgba(184, 98, 48, 0.86); }
.ycsa-badge-pink    { background: rgba(168, 78, 134, 0.86); }
.ycsa-badge-sky     { background: rgba(54, 122, 178, 0.86); }
.ycsa-badge-teal    { background: rgba(44, 134, 128, 0.86); }

.ycsa-course-medallion {
	position: absolute;
	bottom: 14px;
	right: 16px;
	z-index: 20;
	display: flex;
	height: 50px;
	width: 50px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.24);
	background: linear-gradient(180deg, #27252c 0%, #151418 100%);
	color: #f3f4f6;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ycsa-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	background: var(--sm-bg-elevated);
	padding: 1.15rem 1.25rem 1.25rem;
}

.ycsa-card-title {
	color: var(--sm-text-heading);
	transition: color 120ms ease;
}

.ycsa-card:hover .ycsa-card-title {
	color: var(--sm-blue);
}

.ycsa-card-excerpt {
	color: var(--sm-text-secondary);
}

.ycsa-card-date {
	color: var(--sm-text-muted);
}

/* ── Tactile Obsidian Feature Banner (Vibe Coding / Companion Highlight) ─── */
.ycsa-feature-banner {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: linear-gradient(145deg, #222027 0%, #141317 60%, #100f13 100%);
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ycsa-feature-banner:hover {
	transform: translateY(-2px);
	border-color: rgba(111, 145, 224, 0.42);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
	text-decoration: none;
}

:root[data-theme="dark"] .ycsa-feature-banner {
	border-color: #2f2d36;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── News List Card ──────────────────────────────────────────────────────── */
.ycsa-news-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1.5rem;
	border-bottom: 1px solid var(--sm-border-subtle);
	color: var(--sm-text);
	text-decoration: none;
	transition: background 120ms ease, color 120ms ease;
}

.ycsa-news-row:hover {
	background: var(--sm-table-row-hover);
	color: var(--sm-blue);
	text-decoration: none;
}

.ycsa-news-grid .ycsa-news-row:last-child {
	border-bottom: 0;
}

@media (min-width: 1024px) {
	.ycsa-news-grid .ycsa-news-row:nth-child(odd) {
		border-right: 1px solid var(--sm-border-subtle);
	}
	.ycsa-news-grid .ycsa-news-row:nth-last-child(2):nth-child(odd) {
		border-bottom: 0;
	}
}

/* ── Smartisan Paper Sheet & Editorial TOC ───────────────────────────────── */
.ycsa-paper-sheet {
	background: var(--sm-bg-elevated);
	border: 1px solid var(--sm-card-border);
	border-radius: 12px;
	box-shadow: var(--sm-card-shadow);
	padding: clamp(1.5rem, 3vw, 2.75rem);
}

.ycsa-toc-card {
	background: var(--sm-bg-elevated);
	border: 1px solid var(--sm-card-border);
	border-radius: 10px;
	box-shadow: var(--sm-card-shadow);
	overflow: hidden;
}

.ycsa-toc-link {
	display: block;
	padding: 0.38rem 0.65rem;
	border-radius: 6px;
	color: var(--sm-text-secondary);
	font-size: 0.82rem;
	line-height: 1.45;
	text-decoration: none;
	transition: background 120ms ease, color 120ms ease;
}

.ycsa-toc-link:hover {
	background: var(--sm-brand-soft);
	color: var(--sm-text-heading);
	text-decoration: none;
}

.ycsa-toc-link.is-sub {
	padding-left: 1.25rem;
	font-size: 0.76rem;
	color: var(--sm-text-muted);
}

.ycsa-callout-box {
	border-radius: 10px;
	border: 1px solid var(--sm-info-border);
	background: var(--sm-info-bg);
	padding: 1.25rem 1.4rem;
}

.ycsa-brass-box {
	border-radius: 10px;
	border: 1px solid var(--sm-border);
	border-left: 3px solid var(--sm-brass);
	background: var(--sm-brass-bg);
	padding: 1.25rem 1.4rem;
}

/* ── Framed 2018 Smartisan Sub-Page Header Card & Store Shelves ──────────── */
.ycsa-page-head-card {
	background: var(--sm-bg-elevated);
	border: 1px solid var(--sm-card-border);
	border-radius: 10px;
	box-shadow: var(--sm-card-shadow);
	overflow: hidden;
}

.ycsa-page-head-body {
	padding: clamp(1.4rem, 2.5vw, 2rem) clamp(1.4rem, 2.8vw, 2.25rem);
}

/* 2018 Smartisan Store 4-Column Hairline-Divided Course / Product Shelf */
.ycsa-store-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.ycsa-store-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ycsa-store-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.ycsa-store-grid.is-3col {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ycsa-store-cell {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--sm-bg-elevated);
	border-bottom: 1px solid var(--sm-border-subtle);
	text-decoration: none;
	overflow: hidden;
	cursor: pointer;
	transition: background 140ms ease;
}

@media (min-width: 640px) {
	.ycsa-store-cell {
		border-right: 1px solid var(--sm-border-subtle);
	}
	.ycsa-store-cell:nth-child(2n) {
		border-right: 0;
	}
}

@media (min-width: 1024px) {
	.ycsa-store-cell:nth-child(2n) {
		border-right: 1px solid var(--sm-border-subtle);
	}
	.ycsa-store-cell:nth-child(4n) {
		border-right: 0;
	}
	.ycsa-store-grid.is-3col .ycsa-store-cell:nth-child(4n) {
		border-right: 1px solid var(--sm-border-subtle);
	}
	.ycsa-store-grid.is-3col .ycsa-store-cell:nth-child(3n) {
		border-right: 0;
	}
}

.ycsa-store-cell::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
	transition: box-shadow 160ms ease;
	z-index: 4;
}

.ycsa-store-cell:hover {
	text-decoration: none;
}

.ycsa-store-cell:hover::after {
	box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.08);
}

.ycsa-store-pill {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 22px;
	padding: 0 11px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
}

.ycsa-store-pill.is-amber {
	background: #fff8e1;
	border: 1px solid #f0d78c;
	color: #b88318;
}

.ycsa-store-pill.is-rose {
	background: #fff0f0;
	border: 1px solid #f3c1c1;
	color: #d44d44;
}

.ycsa-store-pill.is-blue {
	background: #eef4ff;
	border: 1px solid #c3d6fa;
	color: #4a72c8;
}

.ycsa-store-pill.is-neutral {
	background: #f5f6f8;
	border: 1px solid #dcdfe6;
	color: #6e737c;
}

.ycsa-store-cell-visual {
	position: relative;
	height: 226px;
	padding: 36px 24px 8px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ycsa-card-cover-white {
	position: relative;
	height: 210px;
	padding: 32px 24px 10px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ycsa-store-product-img {
	display: block;
	width: 176px;
	height: 176px;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ycsa-store-cell:hover .ycsa-store-product-img,
.ycsa-card:hover .ycsa-store-product-img {
	transform: scale(1.04);
}

.ycsa-store-cell-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 12px 22px 26px;
}

.ycsa-store-cell-meta {
	margin-top: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 500;
	color: #9b9fa8;
}

.ycsa-store-meta-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: 1.5px solid #c5c9d1;
	background: #ffffff;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
	transition: border-color 140ms ease, background 140ms ease;
}

.ycsa-store-cell:hover .ycsa-store-meta-dot {
	border-color: var(--sm-accent-blue);
	background: var(--sm-accent-blue);
}

.ycsa-store-cell:hover .ycsa-card-title {
	color: var(--sm-accent-blue);
}

.ycsa-store-cell:focus-visible {
	outline: none;
}

.ycsa-store-cell:focus-visible::after {
	box-shadow: inset 0 0 0 2px var(--sm-accent-blue);
}

/* 3-Column Joined Smartisan Value Strip (Membership) */
.ycsa-tri-strip {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--sm-bg-elevated);
	border: 1px solid var(--sm-card-border);
	border-radius: 10px;
	box-shadow: var(--sm-card-shadow);
	overflow: hidden;
}

@media (min-width: 768px) {
	.ycsa-tri-strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ycsa-tri-cell {
	position: relative;
	padding: 26px 24px;
	border-top: 1px solid var(--sm-border-subtle);
	transition: background 140ms ease;
}

.ycsa-tri-cell:first-child {
	border-top: 0;
}

@media (min-width: 768px) {
	.ycsa-tri-cell {
		border-top: 0;
		border-left: 1px solid var(--sm-border-subtle);
	}
	.ycsa-tri-cell:first-child {
		border-left: 0;
	}
}

.ycsa-tri-cell:hover {
	background: var(--sm-table-row-hover);
}

/* Flush Hairline Article Shelf Row */
.ycsa-article-shelf-row {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--sm-border-subtle);
	text-decoration: none;
	transition: background 140ms ease;
}

@media (min-width: 640px) {
	.ycsa-article-shelf-row {
		flex-direction: row;
		align-items: center;
	}
}

.ycsa-article-shelf-row:last-child {
	border-bottom: 0;
}

.ycsa-article-shelf-row:hover {
	background: var(--sm-table-row-hover);
	text-decoration: none;
}

/* ── Surface Header Band (Legacy utility kept for fallback) ──────────────── */
.ycsa-page-band {
	background: var(--sm-bg-chrome);
	border-bottom: 1px solid var(--sm-chrome-border);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.ycsa-muted-panel {
	background: var(--sm-bg-surface);
	border: 1px solid var(--sm-border-subtle);
	border-radius: 10px;
}

.ycsa-divider {
	border-color: var(--sm-border-subtle);
}

.ycsa-text-heading { color: var(--sm-text-heading); }
.ycsa-text-body { color: var(--sm-text); }
.ycsa-text-secondary { color: var(--sm-text-secondary); }
.ycsa-text-muted { color: var(--sm-text-muted); }
.ycsa-text-blue { color: var(--sm-blue); }

.ycsa-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-radius: 5px;
	border: 1px solid var(--sm-border-subtle);
	background: var(--sm-tag-bg);
	padding: 0.22rem 0.6rem;
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--sm-tag-text);
	text-decoration: none;
	transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

a.ycsa-pill:hover {
	border-color: var(--sm-blue);
	color: var(--sm-blue);
	text-decoration: none;
}

.ycsa-pill-brand {
	background: var(--sm-brand-soft);
	border-color: var(--sm-brand-ring);
	color: var(--sm-blue);
	font-weight: 600;
}

/* ── Lesson Player Console ───────────────────────────────────────────────── */
.ycsa-lesson-shell {
	display: grid;
	min-height: 70vh;
	grid-template-columns: 1fr;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid var(--sm-card-border);
	background: var(--sm-bg-elevated);
	box-shadow: var(--sm-card-shadow);
}

@media (min-width: 1024px) {
	.ycsa-lesson-shell {
		grid-template-columns: 288px minmax(0, 1fr);
	}
}

.ycsa-lesson-sidebar {
	border-bottom: 1px solid var(--sm-border-subtle);
	background: var(--sm-bg-surface);
}

@media (min-width: 1024px) {
	.ycsa-lesson-sidebar {
		border-bottom: 0;
		border-right: 1px solid var(--sm-border-subtle);
	}
}

.ycsa-lesson-progress-track {
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--sm-bg-recessed);
	box-shadow: var(--sm-recess-shadow);
}

.ycsa-lesson-progress-bar {
	height: 100%;
	border-radius: 999px;
	background: var(--sm-btn-primary-bg);
}

.ycsa-lesson-item {
	display: flex;
	gap: 0.75rem;
	border-left: 3px solid transparent;
	padding: 0.72rem 1.2rem;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--sm-text-secondary);
	text-decoration: none;
	transition: background 120ms ease, color 120ms ease;
}

.ycsa-lesson-item:hover {
	background: var(--sm-table-row-hover);
	color: var(--sm-text-heading);
	text-decoration: none;
}

.ycsa-lesson-item.is-active {
	border-left-color: var(--sm-blue);
	background: var(--sm-brand-soft);
	color: var(--sm-text-heading);
	font-weight: 600;
}

/* ── Account Centre & Full-Bleed Tactile Modals ──────────────────────────── */
.ycsa-profile-input {
	min-height: 2.55rem;
	width: 100%;
	border: 1px solid var(--sm-input-border);
	border-radius: 6px;
	background: var(--sm-bg-input);
	padding: 0.55rem 0.75rem;
	color: var(--sm-text);
	font-size: 0.875rem;
	line-height: 1.25rem;
	box-shadow: var(--sm-recess-shadow);
	outline: none;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}

.ycsa-profile-input::placeholder {
	color: var(--sm-text-muted);
}

.ycsa-profile-input:focus {
	border-color: var(--sm-blue);
	box-shadow: 0 0 0 2.5px var(--sm-brand-ring);
}

.ycsa-profile-input:disabled,
button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ycsa-profile-avatar-control {
	position: relative;
	display: block;
	overflow: hidden;
	width: 6.25rem;
	height: 6.25rem;
	border: 3px solid var(--sm-bg-elevated);
	border-radius: 999px;
	background: var(--sm-bg-surface);
	cursor: pointer;
	box-shadow: 0 0 0 1px var(--sm-border), 0 8px 22px rgba(0, 0, 0, 0.14);
}

.ycsa-profile-avatar-control img,
.ycsa-profile-avatar-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ycsa-profile-avatar-control img {
	object-fit: cover;
}

.ycsa-profile-avatar-fallback {
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #6e98fa 0%, #4c69b8 100%);
	color: #ffffff;
}

.ycsa-profile-avatar-mask {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0.3rem;
	background: rgba(15, 14, 18, 0.62);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 600;
	opacity: 0;
	transition: opacity 160ms ease;
}

.ycsa-profile-avatar-control:hover .ycsa-profile-avatar-mask,
.ycsa-profile-avatar-control:focus-within .ycsa-profile-avatar-mask {
	opacity: 1;
}

.ycsa-shipping-manage {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border: 1px solid var(--sm-btn-default-border);
	border-radius: 8px;
	background: var(--sm-btn-default-bg);
	padding: 0.95rem 1.05rem;
	color: var(--sm-text-heading);
	text-align: left;
	box-shadow: var(--sm-btn-default-shadow);
	cursor: pointer;
	transition: border-color 140ms ease, background 140ms ease;
}

.ycsa-shipping-manage:hover {
	border-color: var(--sm-btn-default-border-hover);
	background: var(--sm-btn-default-hover);
}

.ycsa-shipping-manage strong,
.ycsa-shipping-manage small {
	display: block;
}

.ycsa-shipping-manage strong {
	font-size: 0.875rem;
}

.ycsa-shipping-manage small {
	margin-top: 0.25rem;
	color: var(--sm-text-muted);
	font-size: 0.75rem;
	font-weight: 400;
}

.ycsa-shipping-manage > svg {
	flex: 0 0 auto;
	color: var(--sm-text-muted);
}

/* Authentic 2016 Smartisan Store Modal (.module-dialog — header cast shadow + footer shelf) */
.ycsa-shipping-modal,
[data-password-modal] {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sm-mask-bg);
	padding: 1.25rem;
	backdrop-filter: blur(2px);
}

.ycsa-shipping-dialog {
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	max-height: calc(100vh - 2.5rem);
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	background: var(--sm-bg-modal);
	box-shadow: var(--sm-modal-shadow);
}

:root[data-theme="dark"] .ycsa-shipping-dialog {
	border-color: var(--sm-border);
}

.ycsa-shipping-dialog header {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 62px;
	padding: 1rem 1.25rem 1rem 1.75rem;
	background: var(--sm-modal-header-bg);
	border-bottom: 1px solid var(--sm-border);
	box-shadow: var(--sm-modal-header-bevel);
}

.ycsa-shipping-dialog header h3 {
	margin: 0;
	color: var(--sm-text-secondary);
	font-size: 1.125rem;
	font-weight: 400;
}

:root[data-theme="dark"] .ycsa-shipping-dialog header h3 {
	color: var(--sm-text-heading);
}

.ycsa-shipping-dialog header p {
	margin: 0.2rem 0 0;
	color: var(--sm-text-muted);
	font-size: 0.75rem;
}

.ycsa-shipping-dialog header button {
	display: inline-flex;
	width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	border: 0;
	background: transparent;
	color: var(--sm-text-muted);
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
	opacity: 0.7;
	cursor: pointer;
	transition: opacity 200ms ease, color 150ms ease;
}

.ycsa-shipping-dialog header button:hover {
	opacity: 1;
	color: var(--sm-text-heading);
}

.ycsa-shipping-dialog-body {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 0.95rem;
	padding: 1.5rem 1.75rem;
	overflow-y: auto;
}

.ycsa-shipping-dialog label {
	display: grid;
	gap: 0.4rem;
	color: var(--sm-text-secondary);
	font-size: 0.76rem;
	font-weight: 600;
}

.ycsa-shipping-dialog footer {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	padding: 0.9rem 1.4rem;
	background: var(--sm-modal-footer-bg);
	border-top: 1px solid var(--sm-border);
	box-shadow: var(--sm-modal-footer-bevel);
}

.ycsa-account-nav {
	display: grid;
	gap: 0.25rem;
}

.ycsa-account-nav-link {
	display: block;
	border-radius: 7px;
	border: 1px solid transparent;
	padding: 0.65rem 0.85rem;
	color: var(--sm-text-secondary);
	font-size: 0.84rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.ycsa-account-nav-link:hover {
	background: var(--ycsa-nav-hover-bg);
	color: var(--sm-text-heading);
	text-decoration: none;
}

.ycsa-account-nav-link[aria-selected="true"] {
	background: var(--sm-brand-soft);
	border-color: var(--sm-brand-ring);
	color: var(--sm-blue);
	font-weight: 600;
}

.ycsa-account-nav-link:focus-visible {
	outline: 2px solid var(--sm-blue);
	outline-offset: 2px;
}

.ycsa-member-pill {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 0.22rem 0.7rem;
	font-size: 10.5px;
	font-weight: 700;
	border: 1px solid var(--sm-border-subtle);
	background: var(--sm-tag-bg);
	color: var(--sm-tag-text);
}

.ycsa-member-pill.is-member {
	background: var(--sm-success-bg);
	border-color: var(--sm-success-border);
	color: var(--sm-success);
}

.ycsa-form-feedback {
	border-radius: 7px;
	padding: 0.6rem 0.85rem;
	font-size: 0.78rem;
	border: 1px solid var(--sm-danger-border);
	background: var(--sm-danger-bg);
	color: var(--sm-danger);
}

.ycsa-form-feedback.is-success {
	border-color: var(--sm-success-border);
	background: var(--sm-success-bg);
	color: var(--sm-success);
}

.ycsa-session-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-radius: 8px;
	border: 1px solid var(--sm-border-subtle);
	background: var(--sm-bg-surface);
	padding: 0.85rem 1rem;
}

[data-account-panel][hidden] {
	display: none !important;
}

/* ── Footer Membership Shelf & Obsidian Footer ───────────────────────────── */
.ycsa-footer-cta {
	background: var(--ycsa-cta-band-bg);
	border-top: 1px solid var(--sm-chrome-border);
	padding: 3.75rem 0;
}

.ycsa-footer-cta-card {
	background: var(--sm-bg-elevated);
	border: 1px solid var(--sm-card-border);
	border-radius: 12px;
	box-shadow: var(--sm-card-shadow);
	padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
	text-align: center;
}

.ycsa-footer-obsidian {
	background: linear-gradient(180deg, #161519 0%, #0e0d10 100%);
	border-top: 1px solid #26242b;
	color: #9a989d;
	padding: 3.5rem 0 2rem;
}

.ycsa-footer-obsidian a {
	color: #9a989d;
	text-decoration: none;
	transition: color 120ms ease;
}

.ycsa-footer-obsidian a:hover {
	color: #e6e4e8;
	text-decoration: none;
}

/* ── WordPress Pagination Harmonization ──────────────────────────────────── */
.ycsa-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 0.7rem;
	margin: 0 0.18rem;
	border-radius: 6px;
	border: 1px solid var(--sm-btn-default-border);
	background: var(--sm-btn-default-bg);
	color: var(--sm-btn-default-text);
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	box-shadow: var(--sm-btn-default-shadow);
}

.ycsa-pagination .page-numbers:hover {
	background: var(--sm-btn-default-hover);
	border-color: var(--sm-btn-default-border-hover);
	color: var(--sm-text-heading);
	text-decoration: none;
}

.ycsa-pagination .page-numbers.current {
	background: var(--sm-btn-primary-bg);
	border-color: var(--sm-btn-primary-border);
	color: #ffffff;
	box-shadow: var(--sm-btn-primary-shadow);
}

/* ── OPC Community Directory (2018 Smartisan Tactile Cabinet) ────────────── */
.ycsa-opc-stats-tray {
	display: inline-grid;
	grid-template-columns: repeat(3, minmax(84px, 1fr));
	border-radius: 9px;
	background: var(--sm-bg-recessed);
	border: 1px solid var(--sm-border-subtle);
	box-shadow: var(--sm-recess-shadow);
	overflow: hidden;
	flex-shrink: 0;
}

.ycsa-opc-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 11px 16px;
}

.ycsa-opc-stat + .ycsa-opc-stat {
	border-left: 1px solid var(--sm-border-subtle);
}

.ycsa-opc-stat-num {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--sm-text-heading);
	font-variant-numeric: tabular-nums;
}

.ycsa-opc-stat-label {
	margin-top: 3px;
	font-size: 11px;
	color: var(--sm-text-muted);
}

.ycsa-opc-filter-group {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.ycsa-opc-filter-label {
	flex-shrink: 0;
	padding-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--sm-text-muted);
	width: 30px;
}

.ycsa-opc-city-bar {
	flex: 1;
	min-width: 0;
}

.ycsa-opc-city-pills,
.ycsa-opc-track-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.ycsa-opc-pill,
.ycsa-opc-more-btn,
.ycsa-opc-track-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 29px;
	padding: 0 11px;
	border-radius: 6px;
	border: 1px solid var(--sm-border-subtle);
	background: linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%);
	color: var(--sm-text-secondary);
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.03);
	transition: color 130ms ease, border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.ycsa-opc-pill:hover,
.ycsa-opc-more-btn:hover,
.ycsa-opc-track-btn:hover {
	border-color: var(--sm-border-hover);
	color: var(--sm-text-heading);
	text-decoration: none;
}

.ycsa-opc-pill.is-active,
.ycsa-opc-track-btn.is-active {
	background: var(--sm-btn-primary-bg);
	border-color: var(--sm-btn-primary-border);
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--sm-btn-primary-shadow);
}

.ycsa-opc-pill-count {
	font-size: 11px;
	opacity: 0.72;
	font-variant-numeric: tabular-nums;
}

.ycsa-opc-pill.is-active .ycsa-opc-pill-count {
	color: rgba(255, 255, 255, 0.88);
	opacity: 1;
}

.ycsa-opc-more-btn {
	background: var(--sm-bg-recessed);
	color: var(--sm-text-secondary);
}

.ycsa-opc-more-btn.has-selection {
	border-color: var(--sm-accent-blue);
	color: var(--sm-accent-blue);
}

.ycsa-opc-more-chevron {
	transition: transform 160ms ease;
}

.ycsa-opc-more-btn[aria-expanded="true"] .ycsa-opc-more-chevron {
	transform: rotate(90deg);
}

.ycsa-opc-more-tray {
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--sm-bg-recessed);
	border: 1px solid var(--sm-border-subtle);
	box-shadow: var(--sm-recess-shadow);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ycsa-opc-more-tray[hidden] {
	display: none;
}

.ycsa-opc-grid {
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.ycsa-opc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ycsa-opc-cell-wrap {
	display: flex;
	min-width: 0;
	border-bottom: 1px solid var(--sm-border-subtle);
}

@media (min-width: 900px) {
	.ycsa-opc-cell-wrap:nth-child(odd) {
		border-right: 1px solid var(--sm-border-subtle);
	}
}

.ycsa-opc-cell {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	padding: 20px 24px 18px;
	background: var(--sm-bg-elevated);
	text-decoration: none;
	cursor: pointer;
	transition: background 140ms ease;
}

.ycsa-opc-cell:hover {
	text-decoration: none;
}

.ycsa-opc-card-media {
	position: relative;
	height: 186px;
	margin-bottom: 15px;
	border-radius: 8px;
	overflow: hidden;
	background: #f2f3f6;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ycsa-opc-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ycsa-opc-cell:hover .ycsa-opc-card-media img {
	transform: scale(1.035);
}

.ycsa-opc-photo-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(15, 16, 19, 0.68);
	backdrop-filter: blur(4px);
	color: #f3f4f6;
	font-size: 11px;
	font-weight: 500;
}

.ycsa-opc-cell::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
	transition: box-shadow 160ms ease;
}

.ycsa-opc-cell:hover::after {
	box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.06);
}

.ycsa-opc-cell:focus-visible {
	outline: none;
}

.ycsa-opc-cell:focus-visible::after {
	box-shadow: inset 0 0 0 2px var(--sm-accent-blue);
}

.ycsa-opc-cell-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	margin-bottom: 10px;
}

.ycsa-opc-cell-head > div {
	flex: 1;
	min-width: 0;
}

.ycsa-opc-city-tag {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 5px;
	background: #eef4ff;
	border: 1px solid #c9daf9;
	color: #3e68c4;
	font-size: 11.5px;
	font-weight: 600;
}

.ycsa-opc-feature-tag {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	height: 21px;
	padding: 0 9px;
	border-radius: 999px;
	background: #fff8e1;
	border: 1px solid #f0d78c;
	color: #ad7a14;
	font-size: 11px;
	font-weight: 600;
}

.ycsa-opc-cell-title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--sm-text-heading);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 140ms ease;
}

.ycsa-opc-cell:hover .ycsa-opc-cell-title {
	color: var(--sm-accent-blue);
}

.ycsa-opc-cell-summary {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.65;
	color: var(--sm-text-secondary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ycsa-opc-meta-list {
	margin: auto 0 0;
	padding-top: 12px;
	border-top: 1px dashed var(--sm-border-subtle);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ycsa-opc-meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--sm-text-muted);
	min-width: 0;
}

.ycsa-opc-meta-row dt {
	flex-shrink: 0;
	display: inline-flex;
	color: #9ca1ab;
}

.ycsa-opc-meta-row dd {
	margin: 0;
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--sm-text-secondary);
}

.ycsa-opc-detail-hint {
	flex-shrink: 0;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--sm-accent-blue);
	opacity: 0.78;
	transition: opacity 140ms ease, transform 140ms ease;
}

.ycsa-opc-cell:hover .ycsa-opc-detail-hint {
	opacity: 1;
	transform: translateX(2px);
}

.ycsa-opc-empty {
	padding: 56px 24px;
	text-align: center;
}

.ycsa-opc-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 18px 20px;
	background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
	border-top: 1px solid var(--sm-border-subtle);
}

.ycsa-opc-page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.ycsa-opc-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 32px;
	padding: 0 11px;
	border-radius: 6px;
	border: 1px solid var(--sm-btn-default-border);
	background: var(--sm-btn-default-bg);
	color: var(--sm-btn-default-text);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--sm-btn-default-shadow);
	transition: background 130ms ease, color 130ms ease, border-color 130ms ease;
}

.ycsa-opc-page-btn:hover:not(:disabled) {
	border-color: var(--sm-border-hover);
	color: var(--sm-text-heading);
}

.ycsa-opc-page-btn.is-active {
	background: var(--sm-btn-primary-bg);
	border-color: var(--sm-btn-primary-border);
	color: #ffffff;
	box-shadow: var(--sm-btn-primary-shadow);
}

.ycsa-opc-page-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ycsa-opc-page-ellipsis {
	padding: 0 4px;
	color: var(--sm-text-muted);
	font-size: 12px;
}

.ycsa-opc-modal-panel {
	width: min(600px, 100%);
}

/* Single OPC Space Photo Gallery & Lightbox */
.ycsa-opc-hero-photo-wrap {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--sm-border-subtle);
	background: #f2f3f6;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ycsa-opc-hero-photo-btn {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.ycsa-opc-hero-photo-btn img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: cover;
}

.ycsa-opc-zoom-hint {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(15, 16, 19, 0.72);
	backdrop-filter: blur(4px);
	color: #f4f5f7;
	font-size: 11.5px;
	font-weight: 500;
}

.ycsa-opc-thumbs {
	margin-top: 10px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.ycsa-opc-thumb {
	padding: 0;
	border-radius: 7px;
	overflow: hidden;
	border: 2px solid transparent;
	background: #f2f3f6;
	cursor: pointer;
	opacity: 0.72;
	transition: opacity 140ms ease, border-color 140ms ease;
}

.ycsa-opc-thumb:hover,
.ycsa-opc-thumb.is-active {
	opacity: 1;
	border-color: var(--sm-accent-blue);
}

.ycsa-opc-thumb img {
	display: block;
	width: 100%;
	height: 68px;
	object-fit: cover;
}

.ycsa-opc-lightbox-panel {
	width: min(860px, 100%);
}

.ycsa-sidebar-dark-card {
	border-radius: 10px;
	padding: 22px 24px;
	background: linear-gradient(180deg, #25272d 0%, #16181c 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	color: #eef0f4;
}

/* Same-City Related OPC SEO Mesh */
.ycsa-opc-related-grid {
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.ycsa-opc-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ycsa-opc-related-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ycsa-opc-related-cell {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 18px 20px 20px;
	background: var(--sm-bg-elevated);
	border-bottom: 1px solid var(--sm-border-subtle);
	text-decoration: none;
	transition: background 140ms ease;
}

@media (min-width: 640px) {
	.ycsa-opc-related-cell {
		border-right: 1px solid var(--sm-border-subtle);
	}
	.ycsa-opc-related-cell:nth-child(2n) {
		border-right: 0;
	}
}

@media (min-width: 1024px) {
	.ycsa-opc-related-cell:nth-child(2n) {
		border-right: 1px solid var(--sm-border-subtle);
	}
	.ycsa-opc-related-cell:nth-child(3n) {
		border-right: 0;
	}
}

.ycsa-opc-related-cell:hover {
	text-decoration: none;
	background: #fafafa;
}

.ycsa-opc-related-cell:hover .ycsa-opc-cell-title {
	color: var(--sm-accent-blue);
}

.ycsa-opc-related-thumb {
	height: 132px;
	margin-bottom: 12px;
	border-radius: 7px;
	overflow: hidden;
	background: #f2f3f6;
	border: 1px solid rgba(0, 0, 0, 0.07);
}

.ycsa-opc-related-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 280ms ease;
}

.ycsa-opc-related-cell:hover .ycsa-opc-related-thumb img {
	transform: scale(1.04);
}

.ycsa-opc-modal-specs {
	border-radius: 8px;
	border: 1px solid var(--sm-border-subtle);
	background: var(--sm-bg-recessed);
	box-shadow: var(--sm-recess-shadow);
	overflow: hidden;
}

.ycsa-opc-spec-row {
	display: grid;
	grid-template-columns: 98px 1fr;
	gap: 12px;
	padding: 11px 16px;
	font-size: 13px;
	line-height: 1.55;
	align-items: center;
}

.ycsa-opc-spec-row + .ycsa-opc-spec-row {
	border-top: 1px solid var(--sm-border-subtle);
}

.ycsa-opc-spec-key {
	font-size: 12px;
	font-weight: 600;
	color: var(--sm-text-muted);
}

.ycsa-opc-spec-val {
	color: var(--sm-text);
	word-break: break-word;
}

@media (max-width: 639px) {
	.ycsa-opc-cell {
		padding: 16px;
	}
	.ycsa-opc-spec-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.ycsa-opc-stats-tray {
		width: 100%;
	}
}

/* ── Responsive Adjustments ──────────────────────────────────────────────── */
@media (min-width: 1024px) {
	.ycsa-article-toc-aside {
		margin-top: 0;
	}
}

@media (max-width: 639px) {
	.ycsa-account-nav {
		width: 100%;
		min-width: 0;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ycsa-account-nav-link {
		padding: 0.6rem 0.3rem;
		text-align: center;
		font-size: 0.78rem;
		white-space: nowrap;
	}

	.ycsa-site-logo-wordmark {
		display: none;
	}
}

/* ── AI Video Generation Tutorial Grid & Detail View (Smartisan Tactile) ─── */
.ycsa-tut-grid {
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.ycsa-tut-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1120px) {
	.ycsa-tut-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ycsa-tut-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 20px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--sm-border-subtle);
	background: var(--sm-bg-elevated);
	transition: box-shadow 180ms ease, background-color 180ms ease;
}

@media (min-width: 768px) {
	.ycsa-tut-card {
		border-right: 1px solid var(--sm-border-subtle);
	}
	.ycsa-tut-card:nth-child(2n) {
		border-right: 0;
	}
}

@media (min-width: 1120px) {
	.ycsa-tut-card:nth-child(2n) {
		border-right: 1px solid var(--sm-border-subtle);
	}
	.ycsa-tut-card:nth-child(3n) {
		border-right: 0;
	}
}

.ycsa-tut-card:hover {
	text-decoration: none;
	background: #ffffff;
	box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.065);
	z-index: 2;
}

.ycsa-tut-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	background: #141519;
	border: 1px solid rgba(0, 0, 0, 0.08);
	margin-bottom: 14px;
}

.ycsa-tut-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ycsa-tut-card:hover .ycsa-tut-thumb img {
	transform: scale(1.035);
}

.ycsa-tut-thumb-fallback {
	display: flex;
	height: 100%;
	width: 100%;
	align-items: center;
	justify-content: center;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.32);
}

.ycsa-tut-deliverable-chip {
	position: absolute;
	left: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 5px;
	background: rgba(14, 15, 18, 0.78);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #f3f4f6;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
}

.ycsa-tut-access-chip {
	position: absolute;
	right: 10px;
	top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(22, 19, 14, 0.80);
	border: 1px solid rgba(242, 200, 121, 0.45);
	color: #f6d591;
	font-size: 10.5px;
	font-weight: 600;
	backdrop-filter: blur(6px);
}

.ycsa-tut-body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.ycsa-tut-meta-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 9px;
}

.ycsa-stage-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	border: 1px solid transparent;
	white-space: nowrap;
}

.ycsa-stage-pill.is-rose {
	background: #fff2f2;
	border-color: #f5c9c9;
	color: #c53b3b;
}

.ycsa-stage-pill.is-blue {
	background: #eef4ff;
	border-color: #c6d8fb;
	color: #3a66c9;
}

.ycsa-stage-pill.is-emerald {
	background: #eefaf4;
	border-color: #bfe8d2;
	color: #1c8557;
}

.ycsa-stage-pill.is-amber {
	background: #fff8ea;
	border-color: #f0d7a3;
	color: #a66a14;
}

.ycsa-stage-pill.is-purple {
	background: #f5f1ff;
	border-color: #d8c8fb;
	color: #6b45c7;
}

.ycsa-stage-pill.is-indigo {
	background: #eef2ff;
	border-color: #cad3f8;
	color: #3f52b5;
}

.ycsa-tut-series {
	font-size: 11px;
	color: var(--sm-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ycsa-tut-title {
	margin: 0 0 8px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--sm-text-heading);
	transition: color 140ms ease;
}

.ycsa-tut-card:hover .ycsa-tut-title {
	color: var(--sm-accent-blue);
}

.ycsa-tut-excerpt {
	margin: 0 0 14px;
	font-size: 12.5px;
	line-height: 1.65;
	color: var(--sm-text-secondary);
}

.ycsa-tut-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px dashed var(--sm-border-subtle);
}

.ycsa-tut-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	min-width: 0;
}

.ycsa-tut-tool-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	border-radius: 5px;
	background: var(--sm-bg-recessed);
	border: 1px solid var(--sm-border-subtle);
	font-size: 11px;
	font-weight: 500;
	color: var(--sm-text-secondary);
	text-decoration: none;
}

.ycsa-tut-tool-chip.is-link:hover {
	border-color: var(--sm-accent-blue);
	color: var(--sm-accent-blue);
	text-decoration: none;
}

.ycsa-tut-more {
	flex-shrink: 0;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--sm-accent-blue);
}

.ycsa-tut-hero-frame {
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
	background: #111215;
	border: 1px solid rgba(0, 0, 0, 0.12);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.ycsa-tut-spec-tray {
	margin: 0;
	border-radius: 8px;
	border: 1px solid var(--sm-border-subtle);
	background: var(--sm-bg-recessed);
	box-shadow: var(--sm-recess-shadow);
	overflow: hidden;
}

.ycsa-tut-spec-row {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 10px;
	padding: 11px 14px;
	font-size: 12.5px;
	line-height: 1.55;
	align-items: start;
}

.ycsa-tut-spec-row + .ycsa-tut-spec-row {
	border-top: 1px solid var(--sm-border-subtle);
}

.ycsa-tut-spec-row dt {
	font-weight: 600;
	color: var(--sm-text-muted);
}

.ycsa-tut-spec-row dd {
	margin: 0;
	color: var(--sm-text-heading);
	font-weight: 500;
}

.ycsa-tut-spec-row dd a {
	color: var(--sm-accent-blue);
	text-decoration: none;
}

.ycsa-tut-spec-row dd a:hover {
	text-decoration: underline;
}

.ycsa-prompt-box {
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid var(--sm-card-border);
	background: var(--sm-bg-elevated);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ycsa-prompt-box-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 16px;
	background: linear-gradient(180deg, #fafafa 0%, #f1f2f4 100%);
	border-bottom: 1px solid var(--sm-border-subtle);
}

.ycsa-copy-prompt-btn {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 6px;
	border: 1px solid #d0d3d9;
	background: linear-gradient(180deg, #ffffff 0%, #f2f3f6 100%);
	color: #333333;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: all 140ms ease;
}

.ycsa-copy-prompt-btn:hover {
	border-color: #aeb4be;
	background: #ffffff;
}

.ycsa-prompt-pre {
	margin: 0;
	padding: 16px 18px;
	overflow-x: auto;
	background: #17181c;
	color: #e4e6eb;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12.5px;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-word;
}

/* AI Video Tools Directory (doyoudo.com/resources style) & Detail View */
.ycsa-dir-head {
	margin-bottom: 28px;
}

.ycsa-dir-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--sm-text-heading);
}

.ycsa-dir-sub {
	margin: 6px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--sm-text-secondary);
}

.ycsa-dir-section {
	margin-bottom: 36px;
}

.ycsa-dir-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ycsa-dir-sec-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--sm-text-heading);
}

.ycsa-dir-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.ycsa-dir-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 14px;
	border-radius: 7px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: #ffffff;
	color: #555a64;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.ycsa-dir-tab:hover {
	border-color: rgba(61, 112, 239, 0.35);
	color: #2b5be0;
	text-decoration: none;
}

.ycsa-dir-tab.is-active {
	background: #3d70ef;
	border-color: #3d70ef;
	color: #ffffff;
	font-weight: 600;
	box-shadow: 0 2px 6px rgba(61, 112, 239, 0.25);
}

.ycsa-dir-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px 16px;
}

.ycsa-dir-grid.is-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.ycsa-dir-grid,
	.ycsa-dir-grid.is-cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ycsa-dir-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
}

.ycsa-dir-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 104px;
	padding: 16px 18px;
	border-radius: 9px;
	border: 1px solid rgba(0, 0, 0, 0.055);
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.035);
	text-decoration: none;
	transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.ycsa-dir-card[hidden] {
	display: none;
}

.ycsa-dir-card[hidden] {
	display: none;
}

.ycsa-dir-card:hover {
	transform: translateY(-2px);
	border-color: rgba(61, 112, 239, 0.35);
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
	text-decoration: none;
}

.ycsa-dir-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.ycsa-dir-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #3d70ef 0%, #2451c7 100%);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ycsa-dir-avatar.is-lg {
	width: 48px;
	height: 48px;
	font-size: 18px;
}

.ycsa-dir-avatar.is-sm {
	width: 34px;
	height: 34px;
	font-size: 13px;
}

.ycsa-dir-card-title {
	font-size: 15px;
	font-weight: 600;
	color: #1f2329;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ycsa-dir-card-desc {
	margin: 12px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #868b96;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ycsa-tool-highlight-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--sm-border-subtle);
	background: rgba(0, 0, 0, 0.015);
	font-size: 13px;
	color: var(--sm-text-primary);
}

.ycsa-tool-highlight-dot {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(40, 190, 122, 0.14);
	color: #16985e;
}

.ycsa-account-avatar-badge {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	flex-shrink: 0;
	border-radius: 14px;
	background: linear-gradient(180deg, #5c89f2 0%, #3d70ef 100%);
	color: #ffffff;
	font-size: 22px;
	font-weight: 700;
	box-shadow: 0 4px 10px rgba(61, 112, 239, 0.25);
}

.ycsa-header-user-dot {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #5c89f2;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

:root[data-theme="dark"] .ycsa-dir-tab {
	background: #1f1e22;
	border-color: #2f2d34;
	color: #b2b0b8;
	box-shadow: none;
}

:root[data-theme="dark"] .ycsa-dir-tab:hover {
	border-color: #6084d8;
	color: #84a5f5;
}

:root[data-theme="dark"] .ycsa-dir-tab.is-active {
	background: #6084d8;
	border-color: #4f72c6;
	color: #ffffff;
}

:root[data-theme="dark"] .ycsa-dir-card {
	background: #1e1d21;
	border-color: #2e2c33;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .ycsa-dir-card:hover {
	border-color: rgba(111, 145, 224, 0.5);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .ycsa-dir-card-title {
	color: #e6e4ea;
}

:root[data-theme="dark"] .ycsa-dir-card-desc {
	color: #8f8d96;
}

:root[data-theme="dark"] .ycsa-tool-highlight-item {
	background: rgba(255, 255, 255, 0.03);
	border-color: #2e2c33;
}
