/* Made4Trades page themes: only page background and text colours.
   Layout, cards, outlines, buttons and the current design remain untouched. */

body.m4t-page-midnight { --pt-bg: #0a1118; --pt-text: #e9eef6; --pt-muted: #8d9aad; }
body.m4t-page-emerald  { --pt-bg: #06140f; --pt-text: #eafff7; --pt-muted: #a9c9bb; }
body.m4t-page-ocean    { --pt-bg: #06121e; --pt-text: #eaf6ff; --pt-muted: #a9c6dd; }
body.m4t-page-violet   { --pt-bg: #0c0816; --pt-text: #f4efff; --pt-muted: #c3b8d9; }
body.m4t-page-amber    { --pt-bg: #120d06; --pt-text: #fff6e6; --pt-muted: #d8c4a2; }
body.m4t-page-graphite { --pt-bg: #0a0c0e; --pt-text: #f1f5f9; --pt-muted: #aab6c4; }
body.m4t-page-rose     { --pt-bg: #14070d; --pt-text: #fff0f4; --pt-muted: #d8b7c4; }

body.m4t-page-paper    { --pt-bg: #fbf7ef; --pt-text: #2b2418; --pt-muted: #7a6a52; }
body.m4t-page-sky      { --pt-bg: #f4faff; --pt-text: #0f2740; --pt-muted: #64748b; }
body.m4t-page-mint     { --pt-bg: #f4fcf8; --pt-text: #0b2f24; --pt-muted: #5f7f70; }
body.m4t-page-lavender { --pt-bg: #faf7ff; --pt-text: #241a3d; --pt-muted: #776b8f; }
body.m4t-page-peach    { --pt-bg: #fff8f4; --pt-text: #381c15; --pt-muted: #8b6a5d; }
body.m4t-page-sand     { --pt-bg: #fdfaf1; --pt-text: #2e2414; --pt-muted: #807258; }
body.m4t-page-cloud    { --pt-bg: #f6f9fc; --pt-text: #1e293b; --pt-muted: #64748b; }
body.m4t-page-blossom  { --pt-bg: #fff7fa; --pt-text: #381723; --pt-muted: #8c6272; }

html:not(.m4t-light) body[class*="m4t-page-"],
html.m4t-light body[class*="m4t-page-"] {
	background: var(--pt-bg) !important;
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t {
	--bg: var(--pt-bg);
	--bg-2: var(--pt-bg);
	--text: var(--pt-text);
	--muted: var(--pt-muted);
	--muted-2: var(--pt-muted);
	background: transparent !important;
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t h1,
body[class*="m4t-page-"] .m4t h2:not(.chat-title),
body[class*="m4t-page-"] .m4t h3,
body[class*="m4t-page-"] .m4t h4,
body[class*="m4t-page-"] .m4t .member-muted,
body[class*="m4t-page-"] .m4t .watch-summary,
body[class*="m4t-page-"] .m4t .section-head p,
body[class*="m4t-page-"] .m4t .site-foot p {
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t .member-muted,
body[class*="m4t-page-"] .m4t .watch-summary,
body[class*="m4t-page-"] .m4t .section-head p,
body[class*="m4t-page-"] .m4t .site-foot p {
	color: var(--pt-muted) !important;
}
body[class*="m4t-page-"] .m4t .feature p,
body[class*="m4t-page-"] .m4t .step p,
body[class*="m4t-page-"] .m4t .rule p,
body[class*="m4t-page-"] .m4t .call-card p,
body[class*="m4t-page-"] .m4t .cta-panel p,
body[class*="m4t-page-"] .m4t .faq-list p,
body[class*="m4t-page-"] .m4t .lede,
body[class*="m4t-page-"] .m4t .hero-trust,
body[class*="m4t-page-"] .m4t .signals-copy p,
body[class*="m4t-page-"] .m4t .member-lede,
body[class*="m4t-page-"] .m4t .board-sub {
	color: var(--pt-muted) !important;
}
/* Chat boxes keep their own chat-theme text colours */
body[class*="m4t-page-"] .m4t .chat-panel {
	color: var(--ct-text, var(--pt-text)) !important;
}
/* Account dropdown follows the active page theme, or the current site mode */
body[class*="m4t-page-"] .m4t .account-panel {
	border-color: color-mix(in srgb, var(--pt-bg) 78%, var(--pt-text) 22%) !important;
	background: var(--pt-bg) !important;
	background: color-mix(in srgb, var(--pt-bg) 94%, var(--pt-text) 6%) !important;
	color: var(--pt-text) !important;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20) !important;
}

body[class*="m4t-page-"] .m4t .account-head,
body[class*="m4t-page-"] .m4t .account-logout {
	border-color: color-mix(in srgb, var(--pt-bg) 80%, var(--pt-text) 20%) !important;
}

body[class*="m4t-page-"] .m4t .account-id strong,
body[class*="m4t-page-"] .m4t .account-item,
body[class*="m4t-page-"] .m4t .account-item b {
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t .account-id span,
body[class*="m4t-page-"] .m4t .account-item small {
	color: var(--pt-muted) !important;
}

body[class*="m4t-page-"] .m4t .account-item:hover {
	background: color-mix(in srgb, var(--pt-bg) 88%, var(--pt-text) 12%) !important;
}
/* Account dropdown: use page/mode text colours, never the bright brand green */
body[class*="m4t-page-"] .m4t .account-likes {
	color: var(--pt-muted) !important;
}

body[class*="m4t-page-"] .m4t .account-likes b {
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t .account-item svg {
	color: var(--pt-muted) !important;
}

body:not([class*="m4t-page-"]) .m4t .account-likes {
	color: var(--muted-2) !important;
}

body:not([class*="m4t-page-"]) .m4t .account-likes b {
	color: var(--text) !important;
}

body:not([class*="m4t-page-"]) .m4t .account-item svg {
	color: var(--muted) !important;
}
/* Page-theme accent text */
body.m4t-page-midnight  { --pt-accent: #00e28a; }
body.m4t-page-emerald   { --pt-accent: #35f0a9; }
body.m4t-page-ocean     { --pt-accent: #38bdf8; }
body.m4t-page-violet    { --pt-accent: #c4b5fd; }
body.m4t-page-amber     { --pt-accent: #ffc857; }
body.m4t-page-graphite  { --pt-accent: #cbd5e1; }
body.m4t-page-rose      { --pt-accent: #fb7185; }
body.m4t-page-paper     { --pt-accent: #b7791f; }
body.m4t-page-sky       { --pt-accent: #0284c7; }
body.m4t-page-mint      { --pt-accent: #0f9f6e; }
body.m4t-page-lavender  { --pt-accent: #7c5cd6; }
body.m4t-page-peach     { --pt-accent: #d9643a; }
body.m4t-page-sand      { --pt-accent: #a47b2a; }
body.m4t-page-cloud     { --pt-accent: #0284c7; }
body.m4t-page-blossom   { --pt-accent: #d9467a; }

body[class*="m4t-page-"] .m4t .brand-word em,
body[class*="m4t-page-"] .m4t .hl,
body[class*="m4t-page-"] .m4t .eyebrow,
body[class*="m4t-page-"] .m4t .member-kicker,
body[class*="m4t-page-"] .m4t .board-kicker,
body[class*="m4t-page-"] .m4t .likes-tab.is-active,
body[class*="m4t-page-"] .m4t .step-num,
body[class*="m4t-page-"] .m4t .link-btn,
body[class*="m4t-page-"] .m4t .likes-count,
body[class*="m4t-page-"] .m4t .call-giver-profit-inline,
body[class*="m4t-page-"] .m4t .call-giver-rate.is-good,
body[class*="m4t-page-"] .m4t .call-giver-profit-value {
	color: var(--pt-accent) !important;
}

body[class*="m4t-page-"] .m4t .eyebrow .dot,
body[class*="m4t-page-"] .m4t .member-kicker::before,
body[class*="m4t-page-"] .m4t .board-kicker::before {
	background: var(--pt-accent) !important;
}

body[class*="m4t-page-"] .m4t .lede,
body[class*="m4t-page-"] .m4t .hero-trust,
body[class*="m4t-page-"] .m4t .intro-disclaimer,
body[class*="m4t-page-"] .m4t .intro-clock,
body[class*="m4t-page-"] .m4t .chat-note,
body[class*="m4t-page-"] .m4t .chat-presence,
body[class*="m4t-page-"] .m4t .chat-presence-names,
body[class*="m4t-page-"] .m4t .breaking-meta,
body[class*="m4t-page-"] .m4t .likes-empty,
body[class*="m4t-page-"] .m4t .likes-tab,
body[class*="m4t-page-"] .m4t .call-time,
body[class*="m4t-page-"] .m4t .call-giver-meta,
body[class*="m4t-page-"] .m4t .call-giver-profit-label,
body[class*="m4t-page-"] .m4t .check-list,
body[class*="m4t-page-"] .m4t .check-list li,
body[class*="m4t-page-"] .m4t .member-lede,
body[class*="m4t-page-"] .m4t .board-sub,
body[class*="m4t-page-"] .m4t .section-head p,
body[class*="m4t-page-"] .m4t .feature p,
body[class*="m4t-page-"] .m4t .step p,
body[class*="m4t-page-"] .m4t .rule p,
body[class*="m4t-page-"] .m4t .call-card p,
body[class*="m4t-page-"] .m4t .faq-list p,
body[class*="m4t-page-"] .m4t .site-foot p {
	color: var(--pt-muted) !important;
}
/* Theme the main "Trade with the room" CTA panel */
body.m4t-page-midnight  { --pt-on-accent: #04120b; }
body.m4t-page-emerald   { --pt-on-accent: #04120b; }
body.m4t-page-ocean     { --pt-on-accent: #04121d; }
body.m4t-page-violet    { --pt-on-accent: #1b1233; }
body.m4t-page-amber     { --pt-on-accent: #211503; }
body.m4t-page-graphite  { --pt-on-accent: #12181f; }
body.m4t-page-rose      { --pt-on-accent: #2b0b14; }
body.m4t-page-paper     { --pt-on-accent: #ffffff; }
body.m4t-page-sky       { --pt-on-accent: #ffffff; }
body.m4t-page-mint      { --pt-on-accent: #ffffff; }
body.m4t-page-lavender  { --pt-on-accent: #ffffff; }
body.m4t-page-peach     { --pt-on-accent: #ffffff; }
body.m4t-page-sand      { --pt-on-accent: #ffffff; }
body.m4t-page-cloud     { --pt-on-accent: #ffffff; }
body.m4t-page-blossom   { --pt-on-accent: #ffffff; }

body[class*="m4t-page-"] .m4t .cta-panel {
	border-color: var(--pt-accent) !important;
	background: var(--pt-accent) !important;
	background: linear-gradient(
		135deg,
		var(--pt-accent) 0%,
		color-mix(in srgb, var(--pt-accent) 74%, #000000) 100%
	) !important;
	color: var(--pt-on-accent) !important;
	box-shadow: 0 24px 60px color-mix(in srgb, var(--pt-accent) 22%, transparent) !important;
}

body[class*="m4t-page-"] .m4t .cta-panel h2,
body[class*="m4t-page-"] .m4t .cta-panel p,
body[class*="m4t-page-"] .m4t .cta-panel .eyebrow {
	color: var(--pt-on-accent) !important;
}

body[class*="m4t-page-"] .m4t .cta-panel .eyebrow .dot {
	background: var(--pt-on-accent) !important;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--pt-on-accent) 18%, transparent) !important;
}
/* Header surface follows the page background */
body[class*="m4t-page-"] .m4t .site-head,
body[class*="m4t-page-"] .m4t .site-head.is-scrolled {
	border-bottom-color: color-mix(in srgb, var(--pt-bg) 72%, var(--pt-text) 28%) !important;
	background: var(--pt-bg) !important;
	box-shadow: 0 1px 0 color-mix(in srgb, var(--pt-bg) 70%, var(--pt-text) 30%), 0 12px 30px rgba(15, 23, 42, 0.14) !important;
}

body[class*="m4t-page-"] .m4t .site-head::after {
	background: linear-gradient(90deg, transparent 0%, var(--pt-accent) 35%, var(--pt-accent) 65%, transparent 100%) !important;
}
/* Header controls follow the page theme */
body[class*="m4t-page-"] .m4t .mode-switch,
body[class*="m4t-page-"] .m4t .site-clock,
body[class*="m4t-page-"] .m4t .notify-btn,
body[class*="m4t-page-"] .m4t .account-btn {
	border-color: color-mix(in srgb, var(--pt-bg) 72%, var(--pt-text) 28%) !important;
	background: var(--pt-bg) !important;
	background: color-mix(in srgb, var(--pt-bg) 90%, var(--pt-text) 10%) !important;
	color: var(--pt-text) !important;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

body[class*="m4t-page-"] .m4t .mode-switch:hover,
body[class*="m4t-page-"] .m4t .notify-btn:hover,
body[class*="m4t-page-"] .m4t .account-btn:hover {
	border-color: var(--pt-accent) !important;
	background: color-mix(in srgb, var(--pt-bg) 82%, var(--pt-text) 18%) !important;
}

body[class*="m4t-page-"] .m4t .mode-opt {
	color: var(--pt-muted) !important;
}

body[class*="m4t-page-"] .m4t .mode-opt.is-active {
	border-color: var(--pt-accent) !important;
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
}

body[class*="m4t-page-"] .m4t .site-clock {
	color: var(--pt-muted) !important;
}

body[class*="m4t-page-"] .m4t .site-clock::before {
	background: var(--pt-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt-accent) 18%, transparent) !important;
}

body[class*="m4t-page-"] .m4t .notify-btn {
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t .notify-badge {
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
}

body[class*="m4t-page-"] .m4t .account-btn-name {
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t .account-chevron {
	color: var(--pt-muted) !important;
}

body[class*="m4t-page-"] .m4t .site-head .btn-ghost {
	border-color: color-mix(in srgb, var(--pt-bg) 72%, var(--pt-text) 28%) !important;
	background: color-mix(in srgb, var(--pt-bg) 90%, var(--pt-text) 10%) !important;
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t .site-head .btn-primary {
	border-color: var(--pt-accent) !important;
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
}

body[class*="m4t-page-"] .m4t .site-head .btn-primary:hover {
	border-color: var(--pt-accent) !important;
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
}
/* Header logo and navigation typography */
body[class*="m4t-page-"] .m4t .site-head .brand-word {
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t .site-head .brand-mark {
	color: var(--pt-accent) !important;
}

body[class*="m4t-page-"] .m4t .site-head .nav a {
	color: var(--pt-muted) !important;
}

body[class*="m4t-page-"] .m4t .site-head .nav a:hover,
body[class*="m4t-page-"] .m4t .site-head .nav a.is-current {
	color: var(--pt-text) !important;
}
/* All page buttons follow the page theme */
body[class*="m4t-page-"] .m4t .btn-primary:not(.chat-send),
body[class*="m4t-page-"] .m4t .member-btn-primary,
body[class*="m4t-page-"] .m4t .board-btn-primary,
body[class*="m4t-page-"] .m4t .tl-comment-form button,
body[class*="m4t-page-"] .m4t .btn-dark {
	border-color: var(--pt-accent) !important;
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10) !important;
}

body[class*="m4t-page-"] .m4t .btn-primary:not(.chat-send):hover,
body[class*="m4t-page-"] .m4t .member-btn-primary:hover,
body[class*="m4t-page-"] .m4t .board-btn-primary:hover,
body[class*="m4t-page-"] .m4t .tl-comment-form button:hover,
body[class*="m4t-page-"] .m4t .btn-dark:hover {
	border-color: var(--pt-accent) !important;
	background: color-mix(in srgb, var(--pt-accent) 84%, var(--pt-text) 16%) !important;
	color: var(--pt-on-accent) !important;
}

body[class*="m4t-page-"] .m4t .btn-ghost,
body[class*="m4t-page-"] .m4t .member-btn:not(.member-btn-primary),
body[class*="m4t-page-"] .m4t .board-btn:not(.board-btn-primary),
body[class*="m4t-page-"] .m4t .btn-outline-dark,
body[class*="m4t-page-"] .m4t .tl-photo-btn,
body[class*="m4t-page-"] .m4t .tl-post-options,
body[class*="m4t-page-"] .m4t .nav-toggle {
	border-color: color-mix(in srgb, var(--pt-bg) 72%, var(--pt-text) 28%) !important;
	background: color-mix(in srgb, var(--pt-bg) 90%, var(--pt-text) 10%) !important;
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t .btn-ghost:hover,
body[class*="m4t-page-"] .m4t .member-btn:not(.member-btn-primary):hover,
body[class*="m4t-page-"] .m4t .board-btn:not(.board-btn-primary):hover,
body[class*="m4t-page-"] .m4t .btn-outline-dark:hover,
body[class*="m4t-page-"] .m4t .tl-photo-btn:hover,
body[class*="m4t-page-"] .m4t .tl-post-options:hover,
body[class*="m4t-page-"] .m4t .nav-toggle:hover {
	border-color: var(--pt-accent) !important;
	background: color-mix(in srgb, var(--pt-bg) 82%, var(--pt-text) 18%) !important;
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t .tl-react {
	border-color: color-mix(in srgb, var(--pt-bg) 76%, var(--pt-text) 24%) !important;
	background: color-mix(in srgb, var(--pt-bg) 92%, var(--pt-text) 8%) !important;
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t .tl-react:hover,
body[class*="m4t-page-"] .m4t .tl-react.is-active {
	border-color: var(--pt-accent) !important;
	background: var(--pt-accent) !important;
	color: var(--pt-on-accent) !important;
}

body[class*="m4t-page-"] .m4t .tl-react .tl-react-label,
body[class*="m4t-page-"] .m4t .tl-react b,
body[class*="m4t-page-"] .m4t .tl-file-name {
	color: var(--pt-muted) !important;
}

body[class*="m4t-page-"] .m4t .tl-react:hover .tl-react-label,
body[class*="m4t-page-"] .m4t .tl-react.is-active .tl-react-label,
body[class*="m4t-page-"] .m4t .tl-react:hover b,
body[class*="m4t-page-"] .m4t .tl-react.is-active b {
	color: var(--pt-on-accent) !important;
}

body[class*="m4t-page-"] .m4t .tl-comment-actions button {
	color: var(--pt-muted) !important;
}

body[class*="m4t-page-"] .m4t .tl-comment-actions button:hover {
	color: var(--pt-accent) !important;
}

body[class*="m4t-page-"] .m4t .cta-panel .btn-dark {
	border-color: var(--pt-on-accent) !important;
	background: var(--pt-on-accent) !important;
	color: var(--pt-accent) !important;
}

body[class*="m4t-page-"] .m4t .cta-panel .btn-outline-dark {
	border-color: color-mix(in srgb, var(--pt-on-accent) 46%, transparent) !important;
	background: transparent !important;
	color: var(--pt-on-accent) !important;
}
/* Page theme surface values are used only by the ticker and breaking strip */
body[class*="m4t-page-"] .m4t {
	--pt-surface: color-mix(in srgb, var(--pt-bg) 90%, var(--pt-accent) 10%);
	--pt-surface-2: color-mix(in srgb, var(--pt-bg) 84%, var(--pt-accent) 16%);
	--pt-border: color-mix(in srgb, var(--pt-bg) 68%, var(--pt-accent) 32%);
}

body[class*="m4t-page-"] .m4t .site-foot strong,
body[class*="m4t-page-"] .m4t .site-foot .disclaimer,
body[class*="m4t-page-"] .m4t .site-foot .disclaimer strong {
	color: var(--pt-text) !important;
}

body[class*="m4t-page-"] .m4t input::placeholder,
body[class*="m4t-page-"] .m4t textarea::placeholder {
	color: var(--pt-muted) !important;
	opacity: 1 !important;
}
/* Ticker and breaking-news strip follow the page theme */
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .ticker,
html.m4t-light body[class*="m4t-page-"] .m4t .ticker {
	border-color: var(--pt-border) !important;
	background: var(--pt-surface) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .tick,
html.m4t-light body[class*="m4t-page-"] .m4t .tick {
	border-right-color: var(--pt-border) !important;
	color: var(--pt-text) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .tick:hover,
html.m4t-light body[class*="m4t-page-"] .m4t .tick:hover {
	background: var(--pt-surface-2) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .tick-name,
html.m4t-light body[class*="m4t-page-"] .m4t .tick-name {
	border-right-color: var(--pt-border) !important;
	background: var(--pt-surface-2) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .tick-name b,
html.m4t-light body[class*="m4t-page-"] .m4t .tick-name b,
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .tick-quote .px,
html.m4t-light body[class*="m4t-page-"] .m4t .tick-quote .px {
	color: var(--pt-text) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .tick .up,
html.m4t-light body[class*="m4t-page-"] .m4t .tick .up,
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .tick-quote .up,
html.m4t-light body[class*="m4t-page-"] .m4t .tick-quote .up {
	color: var(--pt-accent) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .breaking-news,
html.m4t-light body[class*="m4t-page-"] .m4t .breaking-news {
	border-color: var(--pt-border) !important;
	background: var(--pt-surface) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .breaking-item,
html.m4t-light body[class*="m4t-page-"] .m4t .breaking-item {
	border-left-color: var(--pt-border) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .breaking-title,
html.m4t-light body[class*="m4t-page-"] .m4t .breaking-title {
	color: var(--pt-text) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .breaking-item:hover .breaking-title,
html.m4t-light body[class*="m4t-page-"] .m4t .breaking-item:hover .breaking-title {
	color: var(--pt-accent) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .breaking-meta,
html.m4t-light body[class*="m4t-page-"] .m4t .breaking-meta {
	color: var(--pt-muted) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .breaking-tag,
html.m4t-light body[class*="m4t-page-"] .m4t .breaking-tag {
	border-color: color-mix(in srgb, var(--pt-accent) 40%, transparent) !important;
	background: color-mix(in srgb, var(--pt-accent) 12%, transparent) !important;
	color: var(--pt-accent) !important;
}
/* Coordinated multicolour outlines per page theme */
body.m4t-page-midnight  { --pt-c1: #35f0a9; --pt-c2: #60a5fa; --pt-c3: #fbbf24; --pt-c4: #a78bfa; }
body.m4t-page-emerald   { --pt-c1: #35f0a9; --pt-c2: #38bdf8; --pt-c3: #ffc857; --pt-c4: #a78bfa; }
body.m4t-page-ocean     { --pt-c1: #38bdf8; --pt-c2: #35f0a9; --pt-c3: #a78bfa; --pt-c4: #fbbf24; }
body.m4t-page-violet    { --pt-c1: #c4b5fd; --pt-c2: #38bdf8; --pt-c3: #f472b6; --pt-c4: #fbbf24; }
body.m4t-page-amber     { --pt-c1: #ffc857; --pt-c2: #f97316; --pt-c3: #35f0a9; --pt-c4: #60a5fa; }
body.m4t-page-graphite  { --pt-c1: #cbd5e1; --pt-c2: #94a3b8; --pt-c3: #60a5fa; --pt-c4: #34d399; }
body.m4t-page-rose      { --pt-c1: #fb7185; --pt-c2: #f9a8d4; --pt-c3: #a78bfa; --pt-c4: #38bdf8; }
body.m4t-page-paper     { --pt-c1: #b7791f; --pt-c2: #0f9f6e; --pt-c3: #0284c7; --pt-c4: #7c5cd6; }
body.m4t-page-sky       { --pt-c1: #0284c7; --pt-c2: #0f9f6e; --pt-c3: #a47b2a; --pt-c4: #7c5cd6; }
body.m4t-page-mint      { --pt-c1: #0f9f6e; --pt-c2: #0284c7; --pt-c3: #b7791f; --pt-c4: #a78bfa; }
body.m4t-page-lavender  { --pt-c1: #7c5cd6; --pt-c2: #0284c7; --pt-c3: #d9467a; --pt-c4: #0f9f6e; }
body.m4t-page-peach     { --pt-c1: #d9643a; --pt-c2: #d9467a; --pt-c3: #b7791f; --pt-c4: #0f9f6e; }
body.m4t-page-sand      { --pt-c1: #a47b2a; --pt-c2: #0f9f6e; --pt-c3: #0284c7; --pt-c4: #d9643a; }
body.m4t-page-cloud     { --pt-c1: #0284c7; --pt-c2: #64748b; --pt-c3: #0f9f6e; --pt-c4: #7c5cd6; }
body.m4t-page-blossom   { --pt-c1: #d9467a; --pt-c2: #a78bfa; --pt-c3: #0284c7; --pt-c4: #0f9f6e; }

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .member-tile:nth-child(4n + 1),
html.m4t-light body[class*="m4t-page-"] .m4t .member-tile:nth-child(4n + 1),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .feature:nth-child(4n + 1),
html.m4t-light body[class*="m4t-page-"] .m4t .feature:nth-child(4n + 1),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .step:nth-child(3n + 1),
html.m4t-light body[class*="m4t-page-"] .m4t .step:nth-child(3n + 1),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .rule:nth-child(3n + 1),
html.m4t-light body[class*="m4t-page-"] .m4t .rule:nth-child(3n + 1) {
	border-top-color: var(--pt-c1) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .member-tile:nth-child(4n + 2),
html.m4t-light body[class*="m4t-page-"] .m4t .member-tile:nth-child(4n + 2),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .feature:nth-child(4n + 2),
html.m4t-light body[class*="m4t-page-"] .m4t .feature:nth-child(4n + 2),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .step:nth-child(3n + 2),
html.m4t-light body[class*="m4t-page-"] .m4t .step:nth-child(3n + 2),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .rule:nth-child(3n + 2),
html.m4t-light body[class*="m4t-page-"] .m4t .rule:nth-child(3n + 2) {
	border-top-color: var(--pt-c2) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .member-tile:nth-child(4n + 3),
html.m4t-light body[class*="m4t-page-"] .m4t .member-tile:nth-child(4n + 3),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .feature:nth-child(4n + 3),
html.m4t-light body[class*="m4t-page-"] .m4t .feature:nth-child(4n + 3),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .step:nth-child(3n + 3),
html.m4t-light body[class*="m4t-page-"] .m4t .step:nth-child(3n + 3),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .rule:nth-child(3n + 3),
html.m4t-light body[class*="m4t-page-"] .m4t .rule:nth-child(3n + 3) {
	border-top-color: var(--pt-c3) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .member-tile:nth-child(4n + 4),
html.m4t-light body[class*="m4t-page-"] .m4t .member-tile:nth-child(4n + 4),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .feature:nth-child(4n + 4),
html.m4t-light body[class*="m4t-page-"] .m4t .feature:nth-child(4n + 4) {
	border-top-color: var(--pt-c4) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .watch-card:nth-child(4n + 1)::before,
html.m4t-light body[class*="m4t-page-"] .m4t .watch-card:nth-child(4n + 1)::before { background: var(--pt-c1) !important; }
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .watch-card:nth-child(4n + 2)::before,
html.m4t-light body[class*="m4t-page-"] .m4t .watch-card:nth-child(4n + 2)::before { background: var(--pt-c2) !important; }
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .watch-card:nth-child(4n + 3)::before,
html.m4t-light body[class*="m4t-page-"] .m4t .watch-card:nth-child(4n + 3)::before { background: var(--pt-c3) !important; }
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .watch-card:nth-child(4n + 4)::before,
html.m4t-light body[class*="m4t-page-"] .m4t .watch-card:nth-child(4n + 4)::before { background: var(--pt-c4) !important; }

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .member-hero,
html.m4t-light body[class*="m4t-page-"] .m4t .member-hero,
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .profile-details,
html.m4t-light body[class*="m4t-page-"] .m4t .profile-details,
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .member-card-profile,
html.m4t-light body[class*="m4t-page-"] .m4t .member-card-profile {
	border-top-color: var(--pt-c1) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .my-space-main > .member-card:first-child,
html.m4t-light body[class*="m4t-page-"] .m4t .my-space-main > .member-card:first-child,
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .member-search,
html.m4t-light body[class*="m4t-page-"] .m4t .member-search,
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .board-table-card,
html.m4t-light body[class*="m4t-page-"] .m4t .board-table-card {
	border-top-color: var(--pt-c2) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .upcoming-card,
html.m4t-light body[class*="m4t-page-"] .m4t .upcoming-card,
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .yp-card,
html.m4t-light body[class*="m4t-page-"] .m4t .yp-card,
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .board-toolbar,
html.m4t-light body[class*="m4t-page-"] .m4t .board-toolbar {
	border-top-color: var(--pt-c3) !important;
}

html:not(.m4t-light) body[class*="m4t-page-"] .m4t .my-space-side > .member-card:nth-child(2),
html.m4t-light body[class*="m4t-page-"] .m4t .my-space-side > .member-card:nth-child(2),
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .member-card-calls,
html.m4t-light body[class*="m4t-page-"] .m4t .member-card-calls,
html:not(.m4t-light) body[class*="m4t-page-"] .m4t .timeline-section,
html.m4t-light body[class*="m4t-page-"] .m4t .timeline-section {
	border-top-color: var(--pt-c4) !important;
}
/* Typography and contrast refinement */
body[class*="m4t-page-"] .m4t {
	--pt-soft: color-mix(in srgb, var(--pt-text) 74%, var(--pt-bg) 26%);
}

body[class*="m4t-page-"] .m4t .member-muted,
body[class*="m4t-page-"] .m4t .watch-summary,
body[class*="m4t-page-"] .m4t .section-head p,
body[class*="m4t-page-"] .m4t .lede,
body[class*="m4t-page-"] .m4t .hero-trust,
body[class*="m4t-page-"] .m4t .intro-disclaimer,
body[class*="m4t-page-"] .m4t .chat-note,
body[class*="m4t-page-"] .m4t .feature p,
body[class*="m4t-page-"] .m4t .step p,
body[class*="m4t-page-"] .m4t .rule p,
body[class*="m4t-page-"] .m4t .call-card p,
body[class*="m4t-page-"] .m4t .faq-list p,
body[class*="m4t-page-"] .m4t .site-foot p,
body[class*="m4t-page-"] .m4t .board-sub,
body[class*="m4t-page-"] .m4t .call-giver-meta,
body[class*="m4t-page-"] .m4t .call-giver-profit-label,
body[class*="m4t-page-"] .m4t .breaking-meta {
	color: var(--pt-soft) !important;
}

body[class*="m4t-page-"] .m4t .section-head h2,
body[class*="m4t-page-"] .m4t .member-hero h2,
body[class*="m4t-page-"] .m4t .likes-card h3,
body[class*="m4t-page-"] .m4t .board-table-card h2,
body[class*="m4t-page-"] .m4t .feature h3,
body[class*="m4t-page-"] .m4t .step h3,
body[class*="m4t-page-"] .m4t .rule h3 {
	letter-spacing: -0.02em;
}

body[class*="m4t-page-"] .m4t .member-stat small,
body[class*="m4t-page-"] .m4t .board-table th,
body[class*="m4t-page-"] .m4t .watch-time,
body[class*="m4t-page-"] .m4t .watch-day-label,
body[class*="m4t-page-"] .m4t .upcoming-main span,
body[class*="m4t-page-"] .m4t .call-giver-profit-label,
body[class*="m4t-page-"] .m4t .breaking-meta,
body[class*="m4t-page-"] .m4t .tick-name b {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.035em;
}
