/* ==========================================================================
   Trader Space Theme (Hixiv Trading) — main stylesheet
   --------------------------------------------------------------------------
   1. Design tokens (dark default, light via [data-theme="light"])
   2. Base and typography
   3. Layout helpers
   4. Buttons and small components
   5. Header and navigation
   6. Page and section headings
   7. Article text (prose)
   8. Blog list and pagination
   9. Forms
   10. Footer
   11. Utilities and accessibility
   ========================================================================== */

/* 1. Design tokens -------------------------------------------------------- */
:root {
	--tst-bg: #0a0f1c;
	--tst-surface: #131b2e;
	--tst-raised: #1a2440;
	--tst-line: rgba(148, 163, 184, 0.16);
	--tst-line-strong: rgba(148, 163, 184, 0.30);
	--tst-text: #e8edf6;
	--tst-muted: #9aa7bf;
	--tst-accent: #14b8a6;
	--tst-accent-text: #2dd4bf;
	--tst-on-accent: #04201d;
	--tst-accent-soft: rgba(20, 184, 166, 0.12);
	--tst-good: #22c55e;
	--tst-good-bg: rgba(34, 197, 94, 0.12);
	--tst-bad: #f87171;
	--tst-bad-bg: rgba(248, 113, 113, 0.12);
	--tst-warn: #f59e0b;
	--tst-warn-bg: rgba(245, 158, 11, 0.12);
	--tst-header-bg: rgba(10, 15, 28, 0.82);
	--tst-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.25);

	--tst-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--tst-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--tst-fs-xs: 13px;
	--tst-fs-sm: 15px;
	--tst-fs-base: 17px;
	--tst-fs-md: 20px;
	--tst-fs-lg: 26px;
	--tst-fs-xl: clamp(28px, 3.6vw, 34px);
	--tst-fs-2xl: clamp(32px, 4.6vw, 44px);
	--tst-fs-hero: clamp(40px, 6vw, 68px);

	--tst-radius: 14px;
	--tst-radius-sm: 10px;
	--tst-container: 1180px;
	--tst-gutter: 20px;
	--tst-header-h: 68px;
	--tst-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

	color-scheme: dark;
}

[data-theme="light"] {
	--tst-bg: #f5f7fb;
	--tst-surface: #ffffff;
	--tst-raised: #eef2f8;
	--tst-line: rgba(15, 23, 42, 0.10);
	--tst-line-strong: rgba(15, 23, 42, 0.22);
	--tst-text: #0f172a;
	--tst-muted: #526079;
	--tst-accent: #0f766e;
	--tst-accent-text: #0f766e;
	--tst-on-accent: #ffffff;
	--tst-accent-soft: rgba(15, 118, 110, 0.10);
	--tst-good: #15803d;
	--tst-good-bg: rgba(21, 128, 61, 0.10);
	--tst-bad: #b91c1c;
	--tst-bad-bg: rgba(185, 28, 28, 0.08);
	--tst-warn: #b45309;
	--tst-warn-bg: rgba(180, 83, 9, 0.10);
	--tst-header-bg: rgba(245, 247, 251, 0.85);
	--tst-shadow: 0 30px 60px -34px rgba(15, 23, 42, 0.30), 0 1px 3px rgba(15, 23, 42, 0.08);
	color-scheme: light;
}

/* 2. Base and typography -------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--tst-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--tst-bg);
	color: var(--tst-text);
	font-family: var(--tst-font);
	font-size: var(--tst-fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: background-color 0.25s ease, color 0.25s ease;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--tst-text);
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--tst-accent-text);
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--tst-accent-text);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--tst-accent);
	color: var(--tst-on-accent);
}

.tst-num {
	font-family: var(--tst-mono);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

/* 3. Layout --------------------------------------------------------------- */
.tst-container {
	width: 100%;
	max-width: calc(var(--tst-container) + var(--tst-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--tst-gutter);
}

.tst-main {
	display: block;
	min-height: 60vh;
}

.tst-main:focus {
	outline: none;
}

.tst-section {
	padding-block: clamp(64px, 9vw, 120px);
	border-top: 1px solid var(--tst-line);
}

.tst-section--tight {
	padding-block: clamp(36px, 5vw, 64px);
	border-top: 0;
}

/* 4. Buttons and small components ---------------------------------------- */
.tst-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--tst-radius-sm);
	border: 1px solid transparent;
	font-family: var(--tst-font);
	font-size: var(--tst-fs-sm);
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, filter 0.15s ease;
}

.tst-btn:active {
	transform: translateY(1px);
}

.tst-btn .tst-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s var(--tst-ease);
}

.tst-btn:hover .tst-icon--arrow {
	transform: translateX(3px);
}

.tst-btn--primary {
	background: var(--tst-accent);
	color: var(--tst-on-accent);
}

.tst-btn--primary:hover {
	filter: brightness(1.08);
	color: var(--tst-on-accent);
	text-decoration: none;
}

.tst-btn--ghost {
	background: transparent;
	color: var(--tst-text);
	border-color: var(--tst-line-strong);
}

.tst-btn--ghost:hover {
	background: var(--tst-raised);
	color: var(--tst-text);
	text-decoration: none;
}

.tst-btn--quiet {
	padding-inline: 4px;
	background: transparent;
	color: var(--tst-accent-text);
}

.tst-btn--lg {
	min-height: 52px;
	padding: 14px 24px;
	font-size: 16px;
}

/* Status pills (approved / blocked / warning). */
.tst-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-family: var(--tst-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 1px solid currentColor;
}

.tst-pill--good {
	color: var(--tst-good);
	background: var(--tst-good-bg);
}

.tst-pill--bad {
	color: var(--tst-bad);
	background: var(--tst-bad-bg);
}

.tst-pill--warn {
	color: var(--tst-warn);
	background: var(--tst-warn-bg);
}

.tst-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	border-radius: 999px;
	background: var(--tst-accent);
	color: var(--tst-on-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

/* 5. Header and navigation ----------------------------------------------- */
.tst-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: var(--tst-radius-sm);
	background: var(--tst-accent);
	color: var(--tst-on-accent);
	font-weight: 700;
	text-decoration: none;
}

.tst-skip:focus {
	top: 12px;
}

.tst-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--tst-header-bg);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tst-header.is-scrolled {
	border-bottom-color: var(--tst-line);
}

.admin-bar .tst-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .tst-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .tst-header {
		top: 0;
	}
}

.tst-header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--tst-header-h);
}

.tst-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tst-text);
	text-decoration: none;
	flex-shrink: 0;
}

.tst-brand:hover {
	color: var(--tst-text);
	text-decoration: none;
}

.tst-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--tst-accent);
	color: var(--tst-on-accent);
}

.tst-brand-mark .tst-icon {
	width: 18px;
	height: 18px;
	stroke-width: 3;
}

.tst-brand-name {
	font-size: 18px;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.tst-logo {
	display: block;
	max-height: 40px;
	width: auto;
}

.tst-nav {
	flex: 1;
}

.tst-nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tst-nav-list a {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--tst-muted);
	font-size: var(--tst-fs-sm);
	font-weight: 550;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.tst-nav-list a:hover,
.tst-nav-list .current-menu-item > a,
.tst-nav-list a[aria-current="page"] {
	color: var(--tst-text);
	background: var(--tst-raised);
}

.tst-nav-actions {
	display: none;
}

.tst-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.tst-header-login {
	padding: 8px 10px;
	color: var(--tst-text);
	font-size: var(--tst-fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.tst-header-login:hover {
	color: var(--tst-accent-text);
}

.tst-account {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px 4px 4px;
	border: 1px solid var(--tst-line);
	border-radius: 999px;
	color: var(--tst-text);
	font-size: var(--tst-fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.tst-account:hover {
	border-color: var(--tst-line-strong);
	color: var(--tst-text);
}

.tst-account-name {
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tst-theme-toggle,
.tst-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 10px;
	border: 1px solid var(--tst-line);
	background: transparent;
	color: var(--tst-text);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tst-theme-toggle:hover,
.tst-menu-toggle:hover {
	border-color: var(--tst-line-strong);
	background: var(--tst-raised);
}

.tst-theme-toggle .tst-icon--moon,
[data-theme="light"] .tst-theme-toggle .tst-icon--sun {
	display: none;
}

[data-theme="light"] .tst-theme-toggle .tst-icon--moon {
	display: block;
}

.tst-menu-toggle {
	display: none;
}

.tst-menu-toggle .tst-icon--close,
.tst-menu-toggle[aria-expanded="true"] .tst-icon--menu {
	display: none;
}

.tst-menu-toggle[aria-expanded="true"] .tst-icon--close {
	display: block;
}

/* Member Area: the plugin's account menu sits in the header. */
.tst-header--minimal .tst-header-inner {
	justify-content: space-between;
}

/* Mobile navigation ------------------------------------------------------- */
@media (max-width: 959px) {
	.tst-menu-toggle {
		display: inline-flex;
	}

	.tst-hide-mobile {
		display: none !important;
	}

	.tst-account-name {
		display: none;
	}

	.tst-account {
		padding: 3px;
	}

	/* With JavaScript: a drop-down panel opened by the menu button. */
	.tst-js .tst-nav {
		position: fixed;
		left: 0;
		right: 0;
		top: var(--tst-header-h);
		bottom: 0;
		z-index: 99;
		display: none;
		padding: 16px var(--tst-gutter) 32px;
		overflow-y: auto;
		background: var(--tst-bg);
		border-top: 1px solid var(--tst-line);
	}

	.tst-js .tst-nav.is-open {
		display: block;
		animation: tst-drop 0.22s var(--tst-ease);
	}

	/* Without JavaScript: the menu simply shows as a row under the logo. */
	html:not(.tst-js) .tst-header-inner {
		flex-wrap: wrap;
	}

	html:not(.tst-js) .tst-nav {
		order: 3;
		flex-basis: 100%;
	}

	html:not(.tst-js) .tst-menu-toggle {
		display: none;
	}

	.tst-nav .tst-nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.tst-nav .tst-nav-list a {
		display: block;
		padding: 16px 4px;
		border-radius: 0;
		border-bottom: 1px solid var(--tst-line);
		font-size: 18px;
		color: var(--tst-text);
		background: transparent;
	}

	.tst-nav-actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin-top: 24px;
	}

	.tst-nav-actions .tst-btn {
		width: 100%;
		min-height: 50px;
	}

	.tst-nav-logout {
		padding: 10px 0;
		text-align: center;
		color: var(--tst-muted);
	}

	body.tst-menu-open {
		overflow: hidden;
	}
}

@keyframes tst-drop {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 420px) {
	:root {
		--tst-gutter: 16px;
	}

	.tst-header-inner {
		gap: 10px;
	}

	.tst-header-actions {
		gap: 6px;
	}

	.tst-header-actions > .tst-btn {
		padding-inline: 12px;
	}

	.tst-brand-name {
		font-size: 16px;
	}
}

/* 6. Page and section headings ------------------------------------------- */
.tst-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-family: var(--tst-mono);
	font-size: var(--tst-fs-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-muted);
}

.tst-kicker-num {
	color: var(--tst-accent-text);
}

.tst-kicker-sep {
	opacity: 0.5;
}

.tst-h1 {
	font-size: var(--tst-fs-2xl);
	letter-spacing: -0.03em;
	max-width: 22ch;
}

.tst-h2 {
	font-size: var(--tst-fs-xl);
	letter-spacing: -0.025em;
	max-width: 24ch;
}

.tst-h3 {
	font-size: var(--tst-fs-md);
	letter-spacing: -0.01em;
	margin-bottom: 0.4em;
}

.tst-lead {
	max-width: 62ch;
	margin: 0;
	font-size: clamp(17px, 1.6vw, 19px);
	line-height: 1.65;
	color: var(--tst-muted);
}

.tst-section-head {
	margin-bottom: clamp(32px, 5vw, 56px);
}

.tst-section-head .tst-lead {
	margin-top: 4px;
}

.tst-page-head {
	padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px);
	border-bottom: 1px solid var(--tst-line);
	background:
		linear-gradient(var(--tst-line) 1px, transparent 1px) 0 0 / 100% 48px,
		var(--tst-bg);
}

.tst-page-head .tst-lead {
	margin-top: 12px;
}

/* 7. Article text (prose) ------------------------------------------------ */
.tst-prose {
	max-width: 720px;
	font-size: 18px;
	line-height: 1.75;
}

.tst-prose > * + * {
	margin-top: 1.1em;
}

.tst-prose > :first-child {
	margin-top: 0;
}

.tst-prose h2 {
	margin-top: 2em;
	font-size: 28px;
}

.tst-prose h3 {
	margin-top: 1.6em;
	font-size: 22px;
}

.tst-prose h4 {
	margin-top: 1.4em;
	font-size: 18px;
}

.tst-prose ul,
.tst-prose ol {
	padding-left: 1.3em;
}

.tst-prose li + li {
	margin-top: 0.4em;
}

.tst-prose li::marker {
	color: var(--tst-accent-text);
}

.tst-prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--tst-accent);
	color: var(--tst-muted);
}

.tst-prose img,
.tst-prose figure img {
	border-radius: var(--tst-radius-sm);
}

.tst-prose figcaption,
.tst-prose .wp-caption-text {
	margin-top: 8px;
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

.tst-prose code,
.tst-prose pre {
	font-family: var(--tst-mono);
	font-size: 0.9em;
	background: var(--tst-surface);
	border: 1px solid var(--tst-line);
	border-radius: 6px;
}

.tst-prose code {
	padding: 2px 6px;
}

.tst-prose pre {
	padding: 16px;
	overflow-x: auto;
}

.tst-prose pre code {
	padding: 0;
	border: 0;
	background: none;
}

.tst-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--tst-fs-sm);
}

.tst-prose th,
.tst-prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--tst-line);
	text-align: left;
}

.tst-prose hr {
	border: 0;
	border-top: 1px solid var(--tst-line);
	margin-block: 2.4em;
}

.tst-prose .alignwide {
	max-width: 1000px;
}

.tst-prose .aligncenter {
	margin-inline: auto;
	text-align: center;
}

.tst-prose .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.tst-prose .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.tst-page-links {
	margin-top: 2em;
	font-family: var(--tst-mono);
}

/* 8. Blog list and pagination -------------------------------------------- */
.tst-post-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--tst-line);
}

.tst-post-row {
	display: grid;
	grid-template-columns: 150px 1fr auto;
	gap: 24px;
	align-items: start;
	padding-block: 28px;
	border-bottom: 1px solid var(--tst-line);
}

.tst-post-date {
	padding-top: 6px;
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

.tst-post-title {
	margin: 0 0 6px;
	font-size: 22px;
}

.tst-post-title a {
	color: var(--tst-text);
	text-decoration: none;
}

.tst-post-title a:hover {
	color: var(--tst-accent-text);
}

.tst-post-excerpt {
	margin: 0;
	color: var(--tst-muted);
}

.tst-post-thumb img {
	display: block;
	width: 140px;
	height: 92px;
	object-fit: cover;
	border-radius: var(--tst-radius-sm);
	border: 1px solid var(--tst-line);
}

@media (max-width: 700px) {
	.tst-post-row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.tst-post-thumb {
		order: -1;
	}

	.tst-post-thumb img {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}
}

.tst-pagination {
	margin-top: 40px;
}

.tst-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tst-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--tst-line);
	border-radius: var(--tst-radius-sm);
	color: var(--tst-text);
	font-family: var(--tst-mono);
	font-size: var(--tst-fs-sm);
	text-decoration: none;
}

.tst-pagination .page-numbers.current,
.tst-pagination a.page-numbers:hover {
	border-color: var(--tst-accent);
	color: var(--tst-accent-text);
}

.tst-empty {
	padding: 48px 0;
	color: var(--tst-muted);
}

/* 9. Forms ---------------------------------------------------------------- */
.tst-field {
	margin-bottom: 18px;
}

.tst-label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--tst-fs-sm);
	font-weight: 600;
}

.tst-input,
.tst-textarea,
.tst-prose input[type="text"],
.tst-prose input[type="email"],
.tst-prose input[type="search"],
.tst-prose textarea,
.search-form .search-field {
	display: block;
	width: 100%;
	padding: 12px 14px;
	font-family: var(--tst-font);
	font-size: 16px;
	line-height: 1.4;
	color: var(--tst-text);
	background: var(--tst-surface);
	border: 1px solid var(--tst-line-strong);
	border-radius: var(--tst-radius-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tst-textarea {
	min-height: 160px;
	resize: vertical;
}

.tst-input:focus,
.tst-textarea:focus,
.search-form .search-field:focus {
	outline: none;
	border-color: var(--tst-accent);
	box-shadow: 0 0 0 3px var(--tst-accent-soft);
}

.tst-field.has-error .tst-input,
.tst-field.has-error .tst-textarea {
	border-color: var(--tst-bad);
}

.tst-field-error {
	margin: 6px 0 0;
	font-size: var(--tst-fs-xs);
	color: var(--tst-bad);
}

.tst-field-error:empty {
	display: none;
}

.tst-notice {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid currentColor;
	border-radius: var(--tst-radius-sm);
	font-size: var(--tst-fs-sm);
}

.tst-notice p {
	margin: 0;
	color: var(--tst-text);
}

.tst-notice--good {
	color: var(--tst-good);
	background: var(--tst-good-bg);
}

.tst-notice--bad {
	color: var(--tst-bad);
	background: var(--tst-bad-bg);
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form label {
	flex: 1;
}

.search-form .search-submit {
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: var(--tst-radius-sm);
	background: var(--tst-accent);
	color: var(--tst-on-accent);
	font-weight: 650;
	cursor: pointer;
}

/* 10. Footer -------------------------------------------------------------- */
.tst-footer {
	margin-top: 0;
	padding-block: 64px 32px;
	border-top: 1px solid var(--tst-line);
	background: var(--tst-surface);
	font-size: var(--tst-fs-sm);
}

.tst-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
}

.tst-footer-tagline {
	margin: 14px 0 6px;
	font-weight: 650;
}

.tst-footer-about {
	max-width: 36ch;
	color: var(--tst-muted);
}

.tst-footer-title {
	margin: 4px 0 14px;
	font-family: var(--tst-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-muted);
}

.tst-footer-list,
.tst-social {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tst-footer-list li + li {
	margin-top: 10px;
}

.tst-footer-list a,
.tst-social a {
	color: var(--tst-text);
	text-decoration: none;
}

.tst-footer-list a:hover,
.tst-social a:hover {
	color: var(--tst-accent-text);
	text-decoration: underline;
}

.tst-social {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 14px;
}

.tst-disclaimer {
	display: flex;
	gap: 16px;
	align-items: baseline;
	margin-top: 48px;
	padding: 16px 18px;
	border: 1px solid var(--tst-line);
	border-left: 3px solid var(--tst-warn);
	border-radius: var(--tst-radius-sm);
	background: var(--tst-bg);
}

.tst-disclaimer p {
	margin: 0;
}

.tst-disclaimer-label {
	flex-shrink: 0;
	font-family: var(--tst-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-warn);
}

.tst-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 28px;
	color: var(--tst-muted);
	font-size: var(--tst-fs-xs);
}

.tst-footer-bottom p {
	margin: 0;
}

.tst-footer--minimal {
	padding-block: 20px;
	background: transparent;
}

.tst-footer--minimal .tst-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

.tst-footer--minimal p {
	margin: 0;
}

@media (max-width: 860px) {
	.tst-footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.tst-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.tst-footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.tst-disclaimer {
		flex-direction: column;
		gap: 6px;
	}
}

/* 11. Utilities and accessibility ---------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	left: 12px;
	top: 12px;
	width: auto;
	z-index: 100000;
	padding: 12px 16px;
	background: var(--tst-surface);
	color: var(--tst-text);
}

.tst-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   PART 2 — Home page
   12. Shared bits (pills, numbers, section links)
   13. Hero + pre-trade checklist
   14. 01 Problem (rule-break log)
   15. 02 Steps
   16. 03 Features index + mini previews
   17. 04 Dashboard preview + P/L calendar
   18. 05 FAQ
   19. Final call to action
   ========================================================================== */

/* 12. Shared bits -------------------------------------------------------- */
.tst-pill--accent {
	color: var(--tst-accent-text);
	background: var(--tst-accent-soft);
}

.tst-pill--muted,
.tst-pill--wait {
	color: var(--tst-muted);
	background: var(--tst-raised);
	border-color: var(--tst-line-strong);
}

.tst-pos {
	color: var(--tst-good);
}

.tst-neg {
	color: var(--tst-bad);
}

.tst-section-link {
	margin: 36px 0 0;
}

.tst-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

@media (max-width: 900px) {
	.tst-split {
		grid-template-columns: 1fr;
	}
}

/* 13. Hero ---------------------------------------------------------------- */
.tst-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px);
}

/* Faint ledger grid, only around the checklist. */
.tst-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(var(--tst-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--tst-line) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 50% 60% at 76% 46%, #000 15%, transparent 72%);
	mask-image: radial-gradient(ellipse 50% 60% at 76% 46%, #000 15%, transparent 72%);
}

.tst-hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: center;
}

.tst-hero-eyebrow {
	margin-bottom: 22px;
}

.tst-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tst-accent);
	box-shadow: 0 0 0 4px var(--tst-accent-soft);
}

.tst-hero-title {
	margin: 0 0 24px;
	max-width: 13ch;
	font-size: var(--tst-fs-hero);
	font-weight: 760;
	line-height: 1.02;
	letter-spacing: -0.04em;
}

.tst-hero-text {
	max-width: 52ch;
	margin: 0 0 32px;
	font-size: clamp(17px, 1.7vw, 20px);
	line-height: 1.6;
	color: var(--tst-muted);
}

.tst-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tst-hero-note {
	margin: 16px 0 0;
	font-family: var(--tst-mono);
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

.tst-hero-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	max-width: 520px;
	justify-self: end;
	width: 100%;
}

/* Soft teal glow behind the card. */
.tst-hero-visual::before {
	content: "";
	position: absolute;
	inset: 10% 5% 0 5%;
	background: radial-gradient(closest-side, var(--tst-accent-soft), transparent);
	filter: blur(30px);
	pointer-events: none;
}

.tst-check-wrap {
	position: relative;
}

/* A second "sheet" peeking out behind, like a stack of trade tickets. */
.tst-check-stack {
	position: absolute;
	inset: 16px -14px -16px 14px;
	border: 1px solid var(--tst-line);
	border-radius: 18px;
	background: var(--tst-surface);
	opacity: 0.55;
	transform: rotate(2.2deg);
}

.tst-check {
	position: relative;
	padding: 22px;
	background: var(--tst-surface);
	border: 1px solid var(--tst-line-strong);
	border-radius: 18px;
	box-shadow: var(--tst-shadow);
}

.tst-check-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tst-check-title {
	font-family: var(--tst-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tst-check-example {
	padding: 2px 8px;
	border: 1px solid var(--tst-line-strong);
	border-radius: 6px;
	font-family: var(--tst-mono);
	font-size: 11px;
	color: var(--tst-muted);
}

.tst-check-meta {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 18px 0 8px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--tst-raised);
}

.tst-check-meta dt {
	font-family: var(--tst-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-muted);
}

.tst-check-meta dd {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 650;
}

.tst-check-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tst-check-row {
	display: grid;
	grid-template-columns: 26px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px 4px;
	border-bottom: 1px solid var(--tst-line);
	font-size: 15px;
	transition: color 0.2s ease, background-color 0.3s ease;
}

.tst-check-box {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 7px;
	border: 1.5px solid var(--tst-line-strong);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tst-check-box .tst-icon {
	display: none;
	width: 16px;
	height: 16px;
	stroke-width: 3;
}

.tst-check-tag {
	font-family: var(--tst-mono);
	font-size: 11px;
	color: var(--tst-muted);
}

.tst-check-row[data-state="pending"] .tst-check-label {
	color: var(--tst-muted);
}

.tst-check-row[data-state="ok"] .tst-check-box {
	background: var(--tst-good);
	border-color: var(--tst-good);
	color: #04150a;
	animation: tst-pop 0.28s var(--tst-ease);
}

.tst-check-row[data-state="ok"] .tst-icon--check {
	display: block;
}

.tst-check-row[data-state="fail"] {
	background: linear-gradient(90deg, var(--tst-bad-bg), transparent 80%);
}

.tst-check-row[data-state="fail"] .tst-check-box {
	border-color: var(--tst-bad);
	background: var(--tst-bad-bg);
	color: var(--tst-bad);
	animation: tst-shake 0.35s ease;
}

.tst-check-row[data-state="fail"] .tst-icon--x {
	display: block;
}

.tst-check-row[data-state="fail"] .tst-check-tag {
	color: var(--tst-bad);
}

.tst-check-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin-top: 16px;
	padding: 14px 16px;
	border: 1px solid var(--tst-line);
	border-radius: 12px;
	background: var(--tst-raised);
	transition: border-color 0.3s ease;
}

.tst-check-status-label {
	font-family: var(--tst-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-muted);
}

.tst-check-status .tst-pill {
	transition: color 0.25s ease, background-color 0.25s ease;
}

.tst-check-reason {
	margin-left: auto;
	font-family: var(--tst-mono);
	font-size: 12px;
	color: var(--tst-muted);
}

.tst-check.is-blocked .tst-check-status {
	border-color: var(--tst-bad);
}

.tst-check.is-approved .tst-check-status {
	border-color: var(--tst-good);
}

/* The one deliberate moment: a ring pulses out when the trade is approved. */
.tst-check.is-approved.is-live .tst-check-status {
	animation: tst-approve 0.9s var(--tst-ease);
}

.tst-check-replay {
	position: relative;
	align-self: flex-end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-top: 26px;
	padding: 0;
	border: 1px solid var(--tst-line);
	border-radius: 999px;
	background: var(--tst-surface);
	color: var(--tst-muted);
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, transform 0.3s var(--tst-ease);
}

.tst-check-replay:hover {
	color: var(--tst-text);
	border-color: var(--tst-line-strong);
	transform: rotate(-90deg);
}

.tst-check-replay[hidden] {
	display: none;
}

@keyframes tst-pop {
	0% { transform: scale(0.6); }
	60% { transform: scale(1.12); }
	100% { transform: scale(1); }
}

@keyframes tst-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-3px); }
	75% { transform: translateX(3px); }
}

@keyframes tst-approve {
	0% { box-shadow: 0 0 0 0 var(--tst-good-bg), 0 0 0 0 rgba(34, 197, 94, 0.45); }
	100% { box-shadow: 0 0 0 0 transparent, 0 0 0 14px rgba(34, 197, 94, 0); }
}

@media (max-width: 900px) {
	.tst-hero-grid {
		grid-template-columns: 1fr;
	}

	.tst-hero-visual {
		justify-self: start;
		max-width: 560px;
	}

	.tst-hero::before {
		-webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 75%, #000 15%, transparent 72%);
		mask-image: radial-gradient(ellipse 80% 40% at 50% 75%, #000 15%, transparent 72%);
	}
}

@media (max-width: 480px) {
	.tst-hero-actions .tst-btn {
		width: 100%;
	}

	.tst-check {
		padding: 16px;
	}

	.tst-check-meta {
		grid-template-columns: repeat(2, 1fr);
	}

	.tst-check-tag {
		display: none;
	}

	.tst-check-row {
		grid-template-columns: 26px 1fr;
		font-size: 14px;
	}

	.tst-check-reason {
		margin-left: 0;
		flex-basis: 100%;
	}

	.tst-check-stack {
		inset: 10px -6px -10px 6px;
	}
}

/* 14. Problem: rule-break log ------------------------------------------- */
.tst-log-wrap {
	border: 1px solid var(--tst-line);
	border-radius: var(--tst-radius);
	background: var(--tst-surface);
	overflow: hidden;
}

.tst-log {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--tst-fs-sm);
}

.tst-log caption {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var(--tst-line);
	font-family: var(--tst-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tst-log-note {
	float: right;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tst-muted);
}

.tst-log th {
	padding: 10px 16px;
	text-align: left;
	font-family: var(--tst-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-muted);
	border-bottom: 1px solid var(--tst-line);
}

.tst-log td {
	padding: 14px 16px;
	vertical-align: top;
	border-bottom: 1px solid var(--tst-line);
}

.tst-log-time {
	color: var(--tst-muted);
	white-space: nowrap;
}

.tst-log-rule {
	font-weight: 600;
}

.tst-log-what {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	color: var(--tst-muted);
}

.tst-log-foot {
	margin: 0;
	padding: 12px 16px;
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

@media (max-width: 640px) {
	.tst-log thead {
		display: none;
	}

	.tst-log tr {
		display: grid;
		grid-template-columns: auto 1fr;
		border-bottom: 1px solid var(--tst-line);
	}

	.tst-log td {
		border: 0;
		padding: 12px 16px 4px;
	}

	.tst-log-what {
		grid-column: 1 / -1;
		padding-top: 4px !important;
		padding-bottom: 14px !important;
	}
}

/* 15. Steps ---------------------------------------------------------------- */
.tst-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(24px, 4vw, 48px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tst-step {
	position: relative;
	padding-top: 32px;
	border-top: 2px solid var(--tst-line-strong);
}

.tst-step::before {
	content: "";
	position: absolute;
	top: -7px;
	left: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--tst-accent);
	box-shadow: 0 0 0 5px var(--tst-bg);
}

.tst-step-num {
	display: block;
	margin-bottom: 12px;
	font-size: var(--tst-fs-xs);
	color: var(--tst-accent-text);
}

.tst-step p {
	margin: 0;
	color: var(--tst-muted);
}

@media (max-width: 760px) {
	.tst-steps {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.tst-step {
		padding: 0 0 32px 32px;
		border-top: 0;
		border-left: 2px solid var(--tst-line-strong);
	}

	.tst-step:last-child {
		padding-bottom: 0;
		border-left-color: transparent;
	}

	.tst-step::before {
		top: 4px;
		left: -7px;
	}
}

/* 16. Features index ------------------------------------------------------ */
.tst-features {
	border-top: 1px solid var(--tst-line);
}

.tst-feature-head {
	margin: 0;
	font-size: inherit;
	letter-spacing: normal;
}

.tst-feature-tab {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px 4px;
	border: 0;
	border-bottom: 1px solid var(--tst-line);
	background: transparent;
	color: var(--tst-text);
	font-family: var(--tst-font);
	font-size: 18px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s ease, padding 0.25s var(--tst-ease);
}

.tst-feature-num {
	font-size: 12px;
	color: var(--tst-muted);
}

.tst-feature-name {
	flex: 1;
}

.tst-feature-tab .tst-icon {
	color: var(--tst-accent-text);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.2s ease, transform 0.25s var(--tst-ease);
}

.tst-feature-body {
	padding: 4px 0 28px;
}

.tst-feature-copy p {
	margin: 0 0 8px;
	color: var(--tst-muted);
}

.tst-feature-copy .tst-feature-title {
	color: var(--tst-text);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.tst-feature-preview {
	margin-top: 20px;
	padding: 18px;
	border: 1px solid var(--tst-line);
	border-radius: var(--tst-radius);
	background: var(--tst-bg);
}

/* With JavaScript: only the open feature is shown. */
.tst-js .tst-feature-tab {
	color: var(--tst-muted);
}

.tst-js .tst-feature-tab:hover,
.tst-js .tst-feature-tab.is-active {
	color: var(--tst-text);
}

.tst-js .tst-feature-tab.is-active .tst-feature-num {
	color: var(--tst-accent-text);
}

.tst-js .tst-feature-tab.is-active .tst-icon {
	opacity: 1;
	transform: none;
}

.tst-js .tst-feature-body {
	display: none;
}

.tst-js .tst-feature-body.is-open {
	display: block;
}

.tst-feature-body.is-entering {
	animation: tst-feature-in 0.32s var(--tst-ease);
}

@keyframes tst-feature-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (min-width: 900px) {
	.tst-js .tst-features {
		display: grid;
		grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.25fr);
		column-gap: clamp(32px, 5vw, 64px);
		align-items: start;
	}

	.tst-js .tst-feature-head {
		grid-column: 1;
	}

	.tst-js .tst-feature-tab.is-active {
		padding-left: 14px;
		box-shadow: inset 2px 0 0 var(--tst-accent);
	}

	.tst-js .tst-feature-body {
		grid-column: 2;
		grid-row: 1 / span 20;
		position: sticky;
		top: calc(var(--tst-header-h) + 24px);
		margin-top: 20px;
		padding: 28px;
		border: 1px solid var(--tst-line);
		border-radius: 18px;
		background: var(--tst-surface);
		box-shadow: var(--tst-shadow);
	}

	.tst-js .tst-feature-preview {
		min-height: 220px;
		display: flex;
		align-items: center;
	}

	.tst-js .tst-feature-preview > * {
		width: 100%;
	}
}

@media (max-width: 899px) {
	.tst-js .tst-feature-tab[aria-expanded="true"] .tst-icon {
		transform: rotate(90deg);
	}
}

/* Mini previews ------------------------------------------------------------ */
.tst-mini {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

.tst-mini-muted {
	color: var(--tst-muted);
}

.tst-mini-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tst-line);
}

.tst-mini-box {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border-radius: 6px;
}

.tst-mini-box .tst-icon {
	width: 13px;
	height: 13px;
	stroke-width: 3;
}

.tst-mini-box.is-ok {
	background: var(--tst-good);
	color: #04150a;
}

.tst-mini-box.is-bad {
	border: 1.5px solid var(--tst-bad);
	background: var(--tst-bad-bg);
	color: var(--tst-bad);
}

.tst-mini-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
}

.tst-mini-foot--top {
	margin-top: 0;
}

.tst-mini-dl > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--tst-line);
}

.tst-mini-dl dt {
	color: var(--tst-muted);
}

.tst-mini-dl dd {
	margin: 0;
	text-align: right;
}

.tst-mini-dl .tst-mini-wide {
	flex-direction: column;
	gap: 2px;
	border-bottom: 0;
}

.tst-mini-dl .tst-mini-wide dd {
	text-align: left;
}

.tst-mini-dots {
	display: flex;
	gap: 4px;
	align-items: center;
}

.tst-mini-dots i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tst-line-strong);
}

.tst-mini-dots i.on {
	background: var(--tst-accent);
}

.tst-mini-bar {
	display: grid;
	grid-template-columns: minmax(110px, 1.1fr) 1fr 52px;
	gap: 10px;
	align-items: center;
}

.tst-mini-bar.is-top .tst-mini-bar-label {
	font-weight: 700;
}

.tst-mini-bar > .tst-num:last-child {
	text-align: right;
}

.tst-mini-bar-track,
.tst-mini-track {
	display: block;
	height: 6px;
	border-radius: 6px;
	background: var(--tst-line);
	overflow: hidden;
}

.tst-mini-bar-track > span,
.tst-mini-track > span {
	display: block;
	height: 100%;
	border-radius: 6px;
	background: var(--tst-bad);
}

.tst-mini-bar-track.is-pos > span,
.tst-mini-track > span {
	background: var(--tst-accent);
}

.tst-mini-progress {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tst-mini-progress-top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.tst-mini-track {
	height: 8px;
}

.tst-mini-progress.is-warn .tst-mini-track > span {
	background: var(--tst-warn);
}

.tst-mini-progress.is-warn .tst-mini-progress-top {
	color: var(--tst-warn);
}

.tst-mini-note {
	margin: 0;
	padding: 12px;
	border-radius: 10px;
	background: var(--tst-raised);
}

.tst-mini-charts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.tst-mini-charts figure {
	margin: 0;
	padding: 8px;
	border: 1px solid var(--tst-line);
	border-radius: 10px;
	background: var(--tst-surface);
}

.tst-mini-candles {
	display: block;
	width: 100%;
	height: 100px;
}

.tst-mini-candles line {
	stroke-width: 1;
}

.tst-mini-candles .up {
	fill: var(--tst-good);
	stroke: var(--tst-good);
}

.tst-mini-candles .down {
	fill: var(--tst-bad);
	stroke: var(--tst-bad);
}

.tst-mini-charts figcaption {
	margin-top: 6px;
	font-family: var(--tst-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-muted);
}

.tst-mini-journal p {
	margin: 0;
}

.tst-mini-line {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: var(--tst-line);
}

.tst-mini-cal {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.tst-mini-cal-head {
	text-align: center;
	font-family: var(--tst-mono);
	font-size: 10px;
	color: var(--tst-muted);
}

.tst-mini-cal-day {
	position: relative;
	aspect-ratio: 1.3;
	border-radius: 5px;
}

.tst-mini-cal-day.is-p {
	background: var(--tst-good);
	opacity: 0.75;
}

.tst-mini-cal-day.is-n {
	background: var(--tst-bad);
	opacity: 0.75;
}

.tst-mini-cal-day.is-z {
	background: var(--tst-line-strong);
}

.tst-mini-cal-day.is-e {
	border: 1px dashed var(--tst-line);
}

.tst-mini-cal-day.has-flag::after,
.tst-mini-flag {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tst-warn);
	box-shadow: 0 0 0 2px var(--tst-bg);
}

.tst-mini-flag {
	position: static;
	display: inline-block;
	margin-right: 6px;
	vertical-align: middle;
}

.tst-mini-analytics {
	flex-direction: row;
	align-items: center;
	gap: 20px;
}

.tst-mini-donut {
	width: 110px;
	height: 110px;
	flex: 0 0 110px;
}

.tst-mini-donut circle {
	fill: none;
	stroke-width: 5;
}

.tst-mini-donut .track {
	stroke: var(--tst-line);
}

.tst-mini-donut .value {
	stroke: var(--tst-accent);
	stroke-linecap: round;
}

.tst-mini-donut text {
	font-family: var(--tst-mono);
	font-size: 8px;
	font-weight: 700;
	fill: var(--tst-text);
}

.tst-mini-compare {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tst-mini-compare p {
	margin: 0;
	font-size: 12px;
}

.tst-mini-compare .tst-mini-bar {
	grid-template-columns: 34px 1fr 52px;
}

.tst-mini-news {
	display: grid;
	grid-template-columns: 46px 36px 1fr auto;
	gap: 8px;
	align-items: center;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tst-line);
}

@media (max-width: 480px) {
	.tst-mini-analytics {
		flex-direction: column;
		align-items: stretch;
	}

	.tst-mini-donut {
		align-self: center;
	}

	.tst-mini-bar {
		grid-template-columns: 1fr 52px;
	}

	.tst-mini-bar .tst-mini-bar-track {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.tst-mini-news {
		grid-template-columns: 44px 1fr auto;
	}

	.tst-mini-news > :nth-child(2) {
		display: none;
	}
}

/* 17. Dashboard preview + P/L calendar ----------------------------------- */
.tst-record-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.8fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.tst-record-notes {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tst-record-notes li {
	padding: 18px 0;
	border-top: 1px solid var(--tst-line);
}

.tst-record-notes p {
	margin: 6px 0 0;
	color: var(--tst-muted);
	font-size: var(--tst-fs-sm);
}

.tst-record-label {
	font-family: var(--tst-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-accent-text);
}

.tst-dash {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--tst-line-strong);
	border-radius: 18px;
	background: var(--tst-surface);
	box-shadow: var(--tst-shadow);
}

.tst-dash-shot {
	display: block;
	width: 100%;
	height: auto;
}

.tst-dash-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--tst-line);
	background: var(--tst-raised);
}

.tst-dash-dots {
	display: flex;
	gap: 6px;
}

.tst-dash-dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--tst-line-strong);
}

.tst-dash-title {
	flex: 1;
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

.tst-dash-body {
	padding: 16px;
}

.tst-dash-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.tst-dash-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	border: 1px solid var(--tst-line);
	border-radius: 12px;
	font-size: 12px;
	color: var(--tst-muted);
}

.tst-dash-stat strong {
	font-size: 24px;
	line-height: 1.1;
	color: var(--tst-text);
}

.tst-dash-stat strong.tst-pos {
	color: var(--tst-good);
}

.tst-dash-stat .tst-dash-small {
	font-size: 16px;
	padding-top: 4px;
}

.tst-dash-meter {
	display: block;
	height: 4px;
	margin-top: 4px;
	border-radius: 4px;
	background: var(--tst-line);
	overflow: hidden;
}

.tst-dash-meter span {
	display: block;
	height: 100%;
	background: var(--tst-accent);
}

.tst-dash-panels {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: 10px;
	margin-top: 10px;
}

.tst-dash-panel {
	padding: 14px;
	border: 1px solid var(--tst-line);
	border-radius: 12px;
}

.tst-dash-panel-title {
	margin: 0 0 10px;
	font-family: var(--tst-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-muted);
}

.tst-dash-curve {
	display: block;
	width: 100%;
	height: 180px;
	color: var(--tst-accent);
}

.tst-dash-curve .line {
	fill: none;
	stroke: var(--tst-accent-text);
	stroke-width: 2;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.tst-dash-curve .zero {
	stroke: var(--tst-line-strong);
	stroke-dasharray: 3 3;
	vector-effect: non-scaling-stroke;
}

.tst-cal-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr) 0.9fr;
	gap: 4px;
}

.tst-cal-head {
	padding-bottom: 2px;
	text-align: center;
	font-family: var(--tst-mono);
	font-size: 10px;
	color: var(--tst-muted);
}

.tst-cal-day {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-height: 54px;
	padding: 5px 6px;
	border-radius: 8px;
	font-size: 11px;
}

.tst-cal-date {
	font-size: 10px;
	color: var(--tst-muted);
}

.tst-cal-r {
	font-size: 12px;
	font-weight: 700;
}

.tst-cal-count {
	font-size: 10px;
	color: var(--tst-muted);
}

.tst-cal-day.is-pos {
	background: var(--tst-good-bg);
}

.tst-cal-day.is-pos .tst-cal-r {
	color: var(--tst-good);
}

.tst-cal-day.is-neg {
	background: var(--tst-bad-bg);
}

.tst-cal-day.is-neg .tst-cal-r {
	color: var(--tst-bad);
}

.tst-cal-day.is-flat {
	background: var(--tst-raised);
}

.tst-cal-day.is-none {
	border: 1px dashed var(--tst-line);
}

.tst-cal-week {
	display: grid;
	place-items: center;
	border-left: 1px solid var(--tst-line);
	font-size: 12px;
	font-weight: 700;
}

.tst-cal-flag {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tst-warn);
}

.tst-cal-flag--inline {
	position: static;
	display: inline-block;
	margin-right: 6px;
	vertical-align: middle;
}

.tst-cal-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 10px;
	font-size: 12px;
	color: var(--tst-muted);
}

@media (max-width: 1000px) {
	.tst-record-grid {
		grid-template-columns: 1fr;
	}

	.tst-record-notes {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0 24px;
	}
}

@media (max-width: 700px) {
	.tst-record-notes {
		grid-template-columns: 1fr;
	}

	.tst-dash-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.tst-dash-panels {
		grid-template-columns: 1fr;
	}

	.tst-dash-body {
		padding: 10px;
	}

	.tst-cal-count {
		display: none;
	}

	.tst-cal-day {
		min-height: 44px;
		padding: 4px;
	}
}

/* 18. FAQ ------------------------------------------------------------------ */
.tst-faq-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: 0 clamp(32px, 6vw, 80px);
	align-items: start;
}

.tst-faq-layout .tst-faq {
	grid-row: 1 / span 2;
	grid-column: 2;
}

.tst-faq-more {
	grid-column: 1;
	margin-top: 0;
}

.tst-faq {
	border-top: 1px solid var(--tst-line);
}

.tst-faq-item {
	border-bottom: 1px solid var(--tst-line);
}

.tst-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 2px;
	font-size: 18px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.tst-faq-item summary::-webkit-details-marker {
	display: none;
}

.tst-faq-item summary:hover {
	color: var(--tst-accent-text);
}

.tst-faq-item summary .tst-icon {
	flex-shrink: 0;
	color: var(--tst-muted);
	transition: transform 0.25s var(--tst-ease);
}

.tst-faq-item[open] summary .tst-icon {
	transform: rotate(45deg);
	color: var(--tst-accent-text);
}

.tst-faq-answer {
	max-width: 62ch;
	padding: 0 2px 22px;
	color: var(--tst-muted);
}

.tst-faq-item[open] .tst-faq-answer {
	animation: tst-feature-in 0.25s var(--tst-ease);
}

.tst-faq-answer p {
	margin: 0;
}

@media (max-width: 860px) {
	.tst-faq-layout {
		grid-template-columns: 1fr;
	}

	.tst-faq-layout .tst-faq {
		grid-row: auto;
		grid-column: auto;
	}

	.tst-faq-more {
		margin-top: 28px;
	}
}

/* 19. Final call to action ----------------------------------------------- */
.tst-cta {
	position: relative;
	padding-block: clamp(64px, 9vw, 112px);
	border-top: 1px solid var(--tst-line);
	background:
		radial-gradient(800px 300px at 0% 100%, var(--tst-accent-soft), transparent 70%),
		var(--tst-bg);
}

.tst-cta-loop {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0 0 28px;
	font-family: var(--tst-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tst-muted);
}

.tst-cta-loop span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tst-cta-loop .tst-icon {
	width: 14px;
	height: 14px;
	color: var(--tst-accent-text);
	stroke-width: 3;
}

.tst-cta-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: 32px;
	align-items: end;
}

.tst-cta-title {
	margin: 0 0 12px;
	max-width: 18ch;
	font-size: clamp(32px, 4.6vw, 54px);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.tst-cta-note {
	margin: 10px 0 0;
	font-family: var(--tst-mono);
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

@media (max-width: 760px) {
	.tst-cta-inner {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.tst-cta-action .tst-btn {
		width: 100%;
	}
}

/* ==========================================================================
   PART 3 — Inner pages
   20. Shared inner-page bits (side index, fine print, side card)
   21. Features page
   22. How it works (loop diagram + stages)
   23. Pricing
   24. About
   25. Contact form
   26. FAQ page
   27. Login / Sign up
   28. Member Area
   ========================================================================== */

/* 20. Shared ------------------------------------------------------------- */
.tst-with-index {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.tst-index {
	position: sticky;
	top: calc(var(--tst-header-h) + 24px);
	font-size: var(--tst-fs-sm);
}

.tst-index-title {
	margin: 0 0 12px;
	font-family: var(--tst-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-muted);
}

.tst-index ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--tst-line);
}

.tst-index a {
	display: block;
	margin-left: -1px;
	padding: 6px 0 6px 14px;
	border-left: 2px solid transparent;
	color: var(--tst-muted);
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.tst-index a:hover,
.tst-index a.is-active {
	color: var(--tst-text);
}

.tst-index a.is-active {
	border-left-color: var(--tst-accent);
}

.tst-fineprint {
	max-width: 70ch;
	margin: 40px 0 0;
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

.tst-extra {
	margin-top: 48px;
}

.tst-side-card {
	position: sticky;
	top: calc(var(--tst-header-h) + 24px);
	padding: 24px;
	border: 1px solid var(--tst-line);
	border-radius: 16px;
	background: var(--tst-surface);
}

.tst-side-card p {
	color: var(--tst-muted);
}

@media (max-width: 960px) {
	.tst-with-index {
		grid-template-columns: 1fr;
	}

	.tst-index {
		display: none;
	}
}

/* 21. Features page ------------------------------------------------------- */
.tst-feature-entry {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	padding-block: 40px;
	border-top: 1px solid var(--tst-line);
	scroll-margin-top: calc(var(--tst-header-h) + 16px);
}

.tst-feature-entry:first-child {
	padding-top: 0;
	border-top: 0;
}

.tst-feature-entry .tst-feature-num {
	display: block;
	margin-bottom: 10px;
	color: var(--tst-accent-text);
}

.tst-feature-entry-copy p {
	margin: 0;
	color: var(--tst-muted);
}

.tst-feature-entry .tst-feature-preview {
	margin-top: 0;
}

@media (max-width: 760px) {
	.tst-feature-entry {
		grid-template-columns: 1fr;
	}
}

/* 22. How it works ----------------------------------------------------------- */
.tst-loop-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 72px);
	align-items: start;
}

.tst-loop-figure {
	position: sticky;
	top: calc(var(--tst-header-h) + 24px);
	margin: 0;
}

.tst-loop {
	display: block;
	width: 100%;
	max-width: 460px;
	margin-inline: auto;
	overflow: visible;
}

.tst-loop-track {
	fill: none;
	stroke: var(--tst-line);
	stroke-dasharray: 2 6;
}

.tst-loop-arc {
	fill: none;
	stroke: var(--tst-line-strong);
	stroke-width: 1.5;
	transition: stroke 0.25s ease;
}

.tst-loop-arc.is-active {
	stroke: var(--tst-accent-text);
}

.tst-loop-arrow path {
	fill: var(--tst-muted);
}

.tst-loop-node circle {
	fill: var(--tst-surface);
	stroke: var(--tst-line-strong);
	stroke-width: 1.5;
	transition: fill 0.25s ease, stroke 0.25s ease;
}

.tst-loop-node.is-active circle {
	fill: var(--tst-accent-soft);
	stroke: var(--tst-accent);
	stroke-width: 2.5;
}

.tst-loop-num {
	font-family: var(--tst-mono);
	font-size: 10px;
	fill: var(--tst-muted);
}

.tst-loop-node.is-active .tst-loop-num {
	fill: var(--tst-accent-text);
}

.tst-loop-label {
	font-family: var(--tst-font);
	font-size: 13px;
	font-weight: 650;
	fill: var(--tst-text);
}

.tst-loop-center {
	font-family: var(--tst-mono);
	font-size: 12px;
	fill: var(--tst-muted);
}

.tst-stages {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tst-stage {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
	padding: 22px 18px;
	border-left: 2px solid transparent;
	border-radius: 0 12px 12px 0;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tst-stage + .tst-stage {
	margin-top: 4px;
}

.tst-stage.is-active {
	background: var(--tst-surface);
	border-left-color: var(--tst-accent);
}

.tst-stage-num {
	padding-top: 4px;
	font-size: var(--tst-fs-xs);
	color: var(--tst-accent-text);
}

.tst-stage p {
	margin: 0 0 12px;
	color: var(--tst-muted);
}

.tst-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tst-tags li {
	padding: 3px 8px;
	border: 1px solid var(--tst-line);
	border-radius: 6px;
	font-family: var(--tst-mono);
	font-size: 11px;
	color: var(--tst-muted);
}

@media (max-width: 860px) {
	.tst-loop-layout {
		grid-template-columns: 1fr;
	}

	.tst-loop-figure {
		position: static;
	}

	.tst-loop {
		max-width: 360px;
	}
}

/* 23. Pricing ------------------------------------------------------------------ */
.tst-plans {
	display: grid;
	gap: 24px;
	align-items: start;
}

.tst-plans--one {
	grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 72px);
}

.tst-plans--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tst-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px;
	overflow: hidden;
	border: 1px solid var(--tst-line);
	border-radius: 18px;
	background: var(--tst-surface);
}

.tst-plan.is-featured {
	border-color: var(--tst-accent);
	box-shadow: var(--tst-shadow);
}

.tst-plan.is-featured::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--tst-accent);
}

.tst-plan-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tst-plan-name {
	margin: 0;
	font-size: 18px;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.tst-plan-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0;
}

.tst-plan-price .tst-num {
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}

.tst-plan-period {
	color: var(--tst-muted);
	font-size: var(--tst-fs-sm);
}

.tst-plan-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--tst-line);
	list-style: none;
}

.tst-plan-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.tst-plan-list .tst-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--tst-accent-text);
}

.tst-plan .tst-btn {
	width: 100%;
}

.tst-plan-note {
	margin: 0;
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

.tst-plan-aside {
	padding-top: 8px;
}

.tst-terms {
	margin: 20px 0 0;
}

.tst-terms > div {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--tst-line);
}

.tst-terms dt {
	padding-top: 2px;
	font-family: var(--tst-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-accent-text);
}

.tst-terms dd {
	margin: 0;
	color: var(--tst-muted);
}

@media (max-width: 960px) {
	.tst-plans--three {
		grid-template-columns: 1fr;
		max-width: 520px;
	}
}

@media (max-width: 800px) {
	.tst-plans--one {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.tst-plan {
		padding: 22px;
	}

	.tst-terms > div {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

/* 24. About ---------------------------------------------------------------------- */
.tst-about {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 72px);
	align-items: start;
}

.tst-ledger {
	position: sticky;
	top: calc(var(--tst-header-h) + 24px);
	display: grid;
	gap: 24px;
	padding: 24px;
	border: 1px solid var(--tst-line);
	border-radius: 18px;
	background: var(--tst-surface);
}

.tst-ledger-title {
	margin: 0 0 6px;
	font-family: var(--tst-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-muted);
}

.tst-ledger ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tst-ledger li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid var(--tst-line);
}

.tst-ledger li .tst-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
}

.tst-ledger li.is-yes .tst-icon {
	color: var(--tst-accent-text);
}

.tst-ledger li.is-no {
	color: var(--tst-muted);
}

.tst-ledger li.is-no .tst-icon {
	color: var(--tst-muted);
}

.tst-ledger-foot {
	margin: 0;
	font-family: var(--tst-mono);
	font-size: 12px;
	color: var(--tst-muted);
}

@media (max-width: 860px) {
	.tst-about {
		grid-template-columns: 1fr;
	}

	.tst-ledger {
		position: static;
	}
}

/* 25. Contact ---------------------------------------------------------------- */
.tst-contact {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.tst-contact-card {
	padding: clamp(20px, 4vw, 32px);
	border: 1px solid var(--tst-line);
	border-radius: 18px;
	background: var(--tst-surface);
	scroll-margin-top: calc(var(--tst-header-h) + 16px);
}

.tst-contact-card .tst-input,
.tst-contact-card .tst-textarea {
	background: var(--tst-bg);
}

.tst-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.tst-select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa7bf' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	cursor: pointer;
}

.tst-form-small {
	margin: 0 0 18px;
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

.tst-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tst-submit {
	width: 100%;
}

.tst-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: tst-spin 0.7s linear infinite;
}

.tst-btn.is-loading .tst-spinner {
	display: inline-block;
}

.tst-btn[disabled] {
	cursor: progress;
	opacity: 0.85;
}

@keyframes tst-spin {
	to {
		transform: rotate(360deg);
	}
}

.tst-contact-points {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.tst-contact-points li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 0;
	border-top: 1px solid var(--tst-line);
}

.tst-contact-points span {
	color: var(--tst-muted);
	font-size: var(--tst-fs-sm);
}

@media (max-width: 860px) {
	.tst-contact {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.tst-form-row {
		grid-template-columns: 1fr;
	}
}

/* 26. FAQ page ---------------------------------------------------------------- */
.tst-faq-page {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

@media (max-width: 860px) {
	.tst-faq-page {
		grid-template-columns: 1fr;
	}

	.tst-side-card {
		position: static;
	}
}

/* 27. Login / Sign up -------------------------------------------------------- */
.tst-login {
	padding-block: clamp(32px, 6vw, 80px);
	background:
		radial-gradient(900px 400px at 85% 20%, var(--tst-accent-soft), transparent 70%),
		var(--tst-bg);
}

.tst-login-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.tst-login-title {
	max-width: 14ch;
	margin: 0 0 32px;
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.tst-login-points {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tst-login-points li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.tst-login-points strong {
	display: block;
}

.tst-login-points li > span:last-child {
	color: var(--tst-muted);
}

.tst-login-points strong {
	color: var(--tst-text);
}

.tst-login-tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--tst-accent-soft);
	color: var(--tst-accent-text);
}

.tst-login-tick .tst-icon {
	width: 16px;
	height: 16px;
	stroke-width: 3;
}

/* Let the plugin card sit directly on the page (its own panel background is not needed here). */
.tst-login .tsa-wrap {
	min-height: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	display: block;
}

.tst-login .tsa-card {
	margin-inline: auto;
}

.tst-login-extra {
	margin-top: 24px;
	font-size: var(--tst-fs-sm);
	color: var(--tst-muted);
}

@media (max-width: 860px) {
	.tst-login-grid {
		grid-template-columns: 1fr;
	}

	.tst-login-card {
		order: -1;
	}

	.tst-login-title {
		font-size: 28px;
		margin-bottom: 20px;
	}
}

/* 28. Member Area ------------------------------------------------------------- */
.tst-is-member .tst-main {
	min-height: calc(100vh - var(--tst-header-h) - 60px);
}

.tst-member {
	padding-block: 16px 32px;
}

.tst-member-empty {
	max-width: 560px;
	margin: clamp(48px, 10vw, 120px) auto;
	text-align: center;
}

.tst-member-empty .tst-brand-mark {
	width: 52px;
	height: 52px;
	margin-bottom: 24px;
	border-radius: 14px;
}

.tst-member-empty .tst-brand-mark .tst-icon {
	width: 28px;
	height: 28px;
}

.tst-member-empty .tst-h2,
.tst-member-empty .tst-lead {
	margin-inline: auto;
}

.tst-member-empty .tst-form-small {
	margin-top: 24px;
}

/* ==========================================================================
   PART 4 — Legal, 404, blog posts, search, comments
   ========================================================================== */

/* 29. Legal pages ------------------------------------------------------------ */
.tst-legal h2 {
	scroll-margin-top: calc(var(--tst-header-h) + 16px);
	padding-top: 8px;
}

.tst-legal-note {
	padding: 14px 16px;
	border: 1px dashed var(--tst-warn);
	border-radius: var(--tst-radius-sm);
	background: var(--tst-warn-bg);
	font-size: var(--tst-fs-sm);
}

.tst-notice--warn {
	color: var(--tst-warn);
	background: var(--tst-warn-bg);
}

.tst-notice--warn a {
	margin-left: 6px;
	font-weight: 600;
}

/* 30. 404 ---------------------------------------------------------------------- */
.tst-404 {
	padding-block: clamp(48px, 9vw, 112px);
}

.tst-404-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.tst-404-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 32px 0;
	padding: 0;
	list-style: none;
}

.tst-404-search {
	max-width: 460px;
}

.tst-check--static {
	max-width: 440px;
	justify-self: end;
	width: 100%;
}

@media (max-width: 860px) {
	.tst-404-grid {
		grid-template-columns: 1fr;
	}

	.tst-check--static {
		justify-self: start;
	}
}

/* 31. Single post --------------------------------------------------------- */
.tst-article-head .tst-h1 {
	max-width: 24ch;
}

.tst-article-meta {
	display: flex;
	gap: 10px;
	margin: 16px 0 0;
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

.tst-article-image {
	max-width: 960px;
	margin: 0 0 40px;
}

.tst-article-image img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--tst-line);
	border-radius: var(--tst-radius);
}

.tst-article-tags {
	max-width: 720px;
	margin-top: 40px;
}

.tst-article-tags a {
	color: inherit;
	text-decoration: none;
}

.tst-post-nav {
	max-width: 720px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--tst-line);
}

.tst-post-nav .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.tst-post-nav .nav-next {
	grid-column: 2;
	text-align: right;
}

.tst-post-nav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--tst-text);
	text-decoration: none;
}

.tst-post-nav a:hover .tst-post-nav-title {
	color: var(--tst-accent-text);
}

.tst-post-nav-label {
	font-family: var(--tst-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tst-muted);
}

.tst-post-nav-title {
	font-weight: 650;
}

/* 32. Comments ------------------------------------------------------------- */
.tst-comments {
	max-width: 720px;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--tst-line);
}

.tst-comment-list,
.tst-comment-list .children {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.tst-comment-list .children {
	margin: 16px 0 0 24px;
}

.tst-comment-list .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--tst-line);
}

.tst-comment-list .avatar {
	float: left;
	margin-right: 12px;
	border-radius: 50%;
}

.tst-comment-list .comment-meta,
.tst-comment-list .comment-metadata a {
	font-size: var(--tst-fs-xs);
	color: var(--tst-muted);
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--tst-fs-sm);
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px;
	color: var(--tst-text);
	background: var(--tst-surface);
	border: 1px solid var(--tst-line-strong);
	border-radius: var(--tst-radius-sm);
}

.comment-form .tst-btn {
	border: 0;
}

/* 33. Search -------------------------------------------------------------- */
.tst-search-again {
	max-width: 520px;
	margin-bottom: 32px;
}
