/* =============================================================================
   surafel - page layer
   -----------------------------------------------------------------------------
   Page-specific composition on top of surafel-ui.css. The front page sets the
   visual language (accent scrim, layered glass panel, tight type) and each
   route below reuses the same vocabulary.

   Sections
      1. Front page (guest) + auth
      2. Admin / staff login
      3. Home, feed, discover
      4. Profile
      5. Explore, search, hot topics
      6. Notifications
      7. Thread
      8. Messages (chats + conversation)
      9. Bookmarks, connections, suggested, subscriptions
     10. Settings + feed preferences
     11. Wallet family
     12. Premium, frames, gifts, affiliates, ads
     13. Stories + video
     14. Static / info / error pages
     15. Onboarding + confirmations
     16. Admin surfaces (cpanel, staff console, claim portal)
============================================================================= */

/* ---------------------------------------------------------------------------
   1. Front page (guest)

   Split layout: an editorial showcase panel over the image slider on the left,
   a focused auth card on the right. The accent scrim is what ties the page to
   whichever colour is active in Display settings.
--------------------------------------------------------------------------- */

body.cl-app-guest {
	background-color: var(--cl-primary-bg-color);
	background-image:
		radial-gradient(1100px 620px at 88% -12%, var(--sf-accent-subtle), transparent 70%),
		radial-gradient(760px 520px at 62% 108%, var(--sf-accent-wash), transparent 72%);
	background-attachment: fixed;
}

/* The shell caps this wrapper at 1240px for the logged-in three-column layout,
   which left the splash floating with dead margins. The front page is the one
   route that should run edge to edge. Matching !important is required. */
body.cl-app-guest main.main-content-container.guest-mode > div.main-content-container-inner {
	max-width: none !important;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

body.cl-app-guest div.welcome-page div.welcome-page__slider {
	width: 52%;
	z-index: 1;
}

/* Accent scrim over the photography, so any image works as a backdrop. */
body.cl-app-guest div.welcome-page div.welcome-page__slider:after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 10;
	pointer-events: none;
	background:
		linear-gradient(180deg,
			color-mix(in srgb, var(--sf-accent) 42%, transparent) 0%,
			color-mix(in srgb, #05070d 62%, transparent) 62%,
			rgba(5, 7, 13, 0.92) 100%),
		linear-gradient(90deg, transparent 55%, var(--cl-primary-bg-color) 100%);
}

body.cl-app-guest div.welcome-page div.welcome-page__slider div.slide {
	transform: scale(1.04);
	transition: opacity 1.1s ease-in-out, transform 6s ease-out;
}

body.cl-app-guest div.welcome-page div.welcome-page__slider div.slide.show {
	transform: scale(1);
}

/* Fallback wash when no slider images are configured. */
body.cl-app-guest div.welcome-page div.welcome-page__slider:before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--sf-accent-gradient);
}

/* --- Showcase copy over the slider --- */

body.cl-app-guest div.welcome-page div.welcome-page__showcase {
	position: fixed;
	left: 0;
	top: 0;
	width: 52%;
	height: 100%;
	z-index: 20;
	display: flex;
	/* Centred to sit level with the auth card opposite it; bottom-anchoring
	   left the upper half of the panel empty on tall screens. */
	align-items: center;
	padding: 64px 56px;
	pointer-events: none;
}

body.cl-app-guest div.welcome-page div.welcome-page__showcase-inner {
	max-width: 520px;
	color: #ffffff;
}

body.cl-app-guest span.welcome-page__eyebrow {
	display: inline-block;
	padding: 6px 14px;
	margin-bottom: 22px;
	border-radius: var(--sf-radius-pill);
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-size: var(--sf-text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff;
}

body.cl-app-guest h2.welcome-page__showcase-title {
	font-size: 46px;
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #ffffff;
	margin: 0 0 18px 0;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

body.cl-app-guest p.welcome-page__showcase-text {
	font-size: var(--sf-text-lg);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 28px 0;
	max-width: 460px;
}

body.cl-app-guest ul.welcome-page__highlights {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.cl-app-guest ul.welcome-page__highlights li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: var(--sf-text-base);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}

body.cl-app-guest span.welcome-page__highlight-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

@media (max-width: 1199.98px) {
	body.cl-app-guest div.welcome-page div.welcome-page__showcase { padding: 48px 40px 72px; }
	body.cl-app-guest h2.welcome-page__showcase-title { font-size: 38px; }
	body.cl-app-guest p.welcome-page__showcase-text { font-size: var(--sf-text-base); }
}

/* Below 992px the slider is hidden (stock behaviour). Rather than hiding the
   showcase with it - which left a bare white page and no brand at all - it
   becomes a compact accent band that sits above the auth card. */
@media (max-width: 991.98px) {
	body.cl-app-guest div.welcome-page div.welcome-page__slider { display: none; }

	body.cl-app-guest div.welcome-page div.welcome-page__showcase {
		display: flex;
		position: static;
		width: 100%;
		height: auto;
		align-items: flex-start;
		padding: 44px 28px 48px;
		/* Deepened rather than the raw accent: the band carries white text, and
		   the lighter skins (yellow especially) would not carry it otherwise. */
		background: linear-gradient(135deg,
			color-mix(in srgb, var(--sf-accent) 62%, #0b1220) 0%,
			color-mix(in srgb, var(--sf-accent) 45%, #0b1220) 100%);
	}

	body.cl-app-guest div.welcome-page div.welcome-page__showcase-inner {
		max-width: 620px;
		margin: 0 auto;
	}

	body.cl-app-guest h2.welcome-page__showcase-title { font-size: 30px; }

	/* The bullet list is redundant once the band is this short. */
	body.cl-app-guest ul.welcome-page__highlights { display: none; }
}

@media (max-width: 575.98px) {
	body.cl-app-guest div.welcome-page div.welcome-page__showcase {
		padding: 34px 22px 38px;
	}
	body.cl-app-guest h2.welcome-page__showcase-title { font-size: 26px; }
	body.cl-app-guest p.welcome-page__showcase-text { font-size: var(--sf-text-sm); }
}

/* --- Auth card ---
   The panel is offset by the slider width and centres its card in whatever
   space is left, so the form never drifts toward the middle of the page. */

body.cl-app-guest div.welcome-page div.welcome-page__body {
	display: flex;
}

body.cl-app-guest div.welcome-page div.welcome-page__panel {
	margin-left: 52%;
	width: 48%;
	display: flex;
	justify-content: center;
	align-items: center;
}

body.cl-app-guest div.welcome-page div.welcome-page__panel-inner {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* As a flex item this shrink-wrapped to the form's intrinsic width, so the card
   never reached its max-width and looked undersized on wide screens. */
body.cl-app-guest div.welcome-page div.welcome-page__rp-inner {
	width: 100%;
	max-width: 440px;
}

body.cl-app-guest div.welcome-page div.welcome-page__body div.welcome-page__rp {
	padding: 56px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 100vh;
}

body.cl-app-guest div.welcome-page div.welcome-page-form {
	width: 100%;
	max-width: 440px;
	padding: 36px 34px;
	border-radius: var(--sf-radius-xl);
	background: var(--cl-primary-bg-color);
	border: 1px solid var(--cl-primary-border-color);
	box-shadow: var(--sf-shadow-xl);
}

body.cl-app-guest div.welcome-page-form div.welcome-page-form__header {
	margin-bottom: 26px;
}

body.cl-app-guest div.welcome-page-form div.welcome-page-form__header a.logo {
	height: 42px;
	margin-bottom: 22px;
}

body.cl-app-guest div.welcome-page-form div.welcome-page-form__header h1 {
	font-size: var(--sf-text-2xl);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.18;
	margin: 0;
}

body.cl-app-guest p.welcome-page-form__subtitle {
	font-size: var(--sf-text-sm);
	line-height: 1.55;
	color: var(--cl-secondary-text-color);
	margin: 10px 0 0 0;
}

body.cl-app-guest div.welcome-page-form div.welcome-page-form__body {
	max-width: none;
	min-width: 0;
}

/* The card already carries the page title, so the inner form title is muted. */
body.cl-app-guest div.auth-form form.form div.form-title h2 {
	font-size: var(--sf-text-lg);
	font-weight: 700;
	letter-spacing: -0.02em;
}

body.cl-app-guest div.auth-form form.form div.form-title p {
	font-size: var(--sf-text-sm);
	color: var(--cl-secondary-text-color);
	opacity: 1;
}

body.cl-app-guest div.auth-form div.form-cta-link {
	font-size: var(--sf-text-sm);
	color: var(--cl-secondary-text-color);
}

body.cl-app-guest div.auth-form div.form-cta-link a {
	color: var(--sf-accent-text);
	font-weight: 600;
}

body.cl-app-guest div.auth-form div.form-cta-link a:hover {
	color: var(--sf-accent-hover);
	text-decoration: underline;
}

body.cl-app-guest div.auth-form div.login-or-signup span:before,
body.cl-app-guest div.auth-form div.login-or-signup span:after {
	height: 1px;
	background: var(--cl-primary-border-color);
	top: 6px;
}

/* Footer reads as part of the page rather than a black bar. */
body.cl-app-guest div.welcome-page div.welcome-page__footer {
	background-color: var(--cl-secondary-bg-color);
	border-top: 1px solid var(--cl-primary-border-color);
	padding: 18px 40px 4px;
}

body.cl-app-guest div.welcome-page div.welcome-page__bp-wrapper {
	max-width: 1180px;
	margin: 0 auto;
}

body.cl-app-guest div.welcome-page__footer ul.footer-nav li.footer-nav-item > a,
body.cl-app-guest div.welcome-page__footer ul.footer-nav li.footer-nav-item.dropdown > div.dropdown-toggle,
body.cl-app-guest div.welcome-page__footer div.footer-nav-get-apps a {
	color: var(--cl-secondary-text-color);
	transition: color var(--sf-dur-fast) var(--sf-ease);
}

body.cl-app-guest div.welcome-page__footer ul.footer-nav li.footer-nav-item > a:hover,
body.cl-app-guest div.welcome-page__footer div.footer-nav-get-apps a:hover {
	color: var(--sf-accent-text);
}

@media (max-width: 991.98px) {
	body.cl-app-guest div.welcome-page div.welcome-page__panel {
		margin-left: 0;
		width: 100%;
	}
	body.cl-app-guest div.welcome-page div.welcome-page__body div.welcome-page__rp {
		padding: 32px 18px;
		justify-content: center;
		min-height: auto;
	}
	body.cl-app-guest div.welcome-page div.welcome-page-form {
		padding: 28px 22px;
		border-radius: var(--sf-radius-lg);
		box-shadow: var(--sf-shadow-lg);
	}
	body.cl-app-guest div.welcome-page-form div.welcome-page-form__header h1 {
		font-size: var(--sf-text-xl);
	}
}

/* Signup date-of-birth picker. */
body.cl-app-guest .signup-dob-modern select.form-control,
body .cl-dob-picker-modern select.form-control {
	border-radius: var(--sf-radius-sm);
}

/* ---------------------------------------------------------------------------
   2. Admin / staff login
--------------------------------------------------------------------------- */

body.cl-app-admin_login {
	background-image: radial-gradient(900px 520px at 50% -10%, var(--sf-accent-subtle), transparent 70%);
}

body.cl-app-admin_login div.admin-staff-login {
	border-radius: var(--sf-radius-xl);
	border: 1px solid var(--cl-primary-border-color);
	background: var(--sf-surface-raised);
	box-shadow: var(--sf-shadow-xl);
	padding: 34px;
}

/* ---------------------------------------------------------------------------
   3. Home, feed, discover
--------------------------------------------------------------------------- */

body.cl-app-home div.timeline-container div.timeline-navbar a.tab-link,
body.cl-app-feed div.timeline-container div.timeline-navbar a.tab-link {
	font-size: var(--sf-text-base);
	padding: 14px 0;
}

/* Stories rail. */
body .cl-stories-rail {
	border-bottom: 1px solid var(--cl-primary-border-color);
	padding: 14px var(--cl-primary-offset-size);
}

body .cl-stories-rail__item .cl-avatar-story-ring--active {
	--cl-story-ring-gradient: var(--sf-accent-gradient);
}

/* Swift (short-form) composer + player. */
body .swift-pubbox,
body .swift-player,
body .swift-media {
	border-radius: var(--sf-radius-md);
}

body .swift-timebar > span {
	background: var(--sf-accent);
}

/* ---------------------------------------------------------------------------
   4. Profile
--------------------------------------------------------------------------- */

body.cl-app-profile div.user-profile div.user-profile__header div.cover,
body.cl-app-profile div.user-profile div.banner,
body .original-cover img {
	border-radius: 0;
}

/* Ring the avatar off the cover with a spread shadow on the holder rather than
   a border on the <img>. The post-media radius on `a.fbox-media img` used to
   leave a rounded tile inside this circle; avatar imgs are forced round in
   surafel-ui.css. Clip the photo to the circle when there is no frame. */
body.cl-app-profile div.user-profile div.user-profile__header-avatar div.profile-avatar {
	border-radius: 50%;
	overflow: hidden;
	background: var(--cl-primary-bg-color);
	box-shadow: 0 0 0 4px var(--cl-primary-bg-color), var(--sf-shadow-md);
}

body.cl-app-profile div.user-profile div.user-profile__header-avatar div.profile-avatar .cl-avatar-framed,
body.cl-app-profile div.user-profile div.user-profile__header-avatar div.profile-avatar .cl-avatar-framed__photo,
body.cl-app-profile div.user-profile div.user-profile__header-avatar div.profile-avatar .cl-avatar-framed__photo img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

/* An equipped frame is the decoration; clip nothing so the ring can sit on
   the photo, and drop the second white plate behind it. */
body.cl-app-profile div.user-profile div.user-profile__header-avatar div.profile-avatar:has(.cl-avatar-framed__frame) {
	overflow: visible;
	background: transparent;
	box-shadow: none;
}

body.cl-app-profile div.user-profile div.user-profile__header-avatar a.image-wrapper.fbox-media:not(.cl-profile-avatar-story__menu-item) {
	display: block !important;
	width: 120px;
	height: 120px;
	overflow: visible;
	background: transparent;
	border: 0;
	border-radius: 0;
	line-height: 0;
}

@media (max-width: 1199.98px) {
	body.cl-app-profile div.user-profile div.user-profile__header-avatar a.image-wrapper.fbox-media:not(.cl-profile-avatar-story__menu-item) {
		width: 100px;
		height: 100px;
	}
}

body.cl-app-profile div.profile-shortinfo h1,
body.cl-app-profile div.profile-shortinfo h2 {
	font-size: var(--sf-text-xl);
	font-weight: 800;
	letter-spacing: -0.02em;
}

body.cl-app-profile div.profile-socials a,
body.cl-app-profile .profile-shortinfo a {
	color: var(--sf-accent-text);
}

body.cl-app-profile div.counter-item,
body .user-connections .counter-item {
	transition: color var(--sf-dur-fast) var(--sf-ease);
}

body.cl-app-profile div.counter-item:hover {
	color: var(--sf-accent-text);
}

body.cl-app-profile div.counter-item .num,
body .user-connections .num {
	font-weight: 700;
	color: var(--cl-primary-text-color);
}

body.cl-app-profile .profile-common-follows,
body.cl-app-profile .common-follows {
	font-size: var(--sf-text-sm);
	color: var(--cl-secondary-text-color);
}

body.cl-app-profile .ctrl-single-btn {
	border-radius: var(--sf-radius-pill);
}

body .subscription-paid,
body .subscription-alert {
	border-radius: var(--sf-radius-md);
	border: 1px solid var(--sf-accent-line);
	background: var(--sf-accent-wash);
}

/* ---------------------------------------------------------------------------
   5. Explore, search, hot topics
--------------------------------------------------------------------------- */

body.cl-app-explore div.timeline-searchbar,
body.cl-app-search div.timeline-searchbar {
	padding: 10px var(--cl-primary-offset-size);
}

body .explore-unified-panel,
body .explore-unified-section {
	border-radius: var(--sf-radius-md);
	border: 1px solid var(--cl-primary-border-color);
	overflow: hidden;
}

body .explore-unified-section__title {
	font-size: var(--sf-text-lg);
	font-weight: 700;
	letter-spacing: -0.02em;
}

body .explore-unified-view-all,
body .sidebar-content__view-all {
	color: var(--sf-accent-text);
	font-weight: 600;
}

body .seach-query {
	color: var(--sf-accent-text);
	font-weight: 700;
}

/* Trend badges live in surafel-ui.css alongside the other shared components. */

body.cl-app-hot_topics .ht-country-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 4px 0 14px;
}

body.cl-app-hot_topics .ht-country-bar__label {
	font-size: var(--sf-text-sm);
	color: var(--cl-secondary-text-color);
}

body.cl-app-hot_topics .ht-country-bar select {
	min-width: min(100%, 220px);
	max-width: 100%;
	height: 40px;
	padding: 0 36px 0 14px;
	border: 1px solid var(--cl-primary-border-color);
	border-radius: var(--sf-radius-pill);
	background: var(--cl-primary-bg-color);
	color: var(--cl-primary-text-color);
	font-size: var(--sf-text-sm);
	font-weight: 600;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%238d9bad' d='M1.2 1.2L6 6l4.8-4.8'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

body.cl-app-hot_topics .ht-country-bar select:focus {
	outline: none;
	border-color: var(--sf-accent);
	box-shadow: var(--sf-accent-ring);
}

body.cl-app-hot_topics .timeline-hashtags-ls > .content__header {
	padding-top: 8px;
}

img.cl-flag-emoji {
	height: 1.15em;
	width: 1.15em;
	vertical-align: -0.2em;
	display: inline-block;
	object-fit: contain;
}

.timeline-header__botline > .rp > .nav-link-holder {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
}

a.cl-header-messages {
	position: relative;
	width: 35px;
	height: 35px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: inherit;
	flex: 0 0 35px;
	z-index: 1;
}

a.cl-header-messages::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 100%;
	background: var(--cl-secondary-bg-color);
	opacity: 0.7;
	z-index: -1;
}

a.cl-header-messages:hover::before,
a.cl-header-messages:active::before {
	opacity: 1;
}

a.cl-header-messages svg {
	width: 20px;
	height: 20px;
	position: relative;
	z-index: 1;
}

a.cl-header-messages svg path {
	fill: var(--cl-secondary-text-color);
}

a.cl-header-messages .info-indicators {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 10em;
	background: var(--cl-danger-color, #e0245e);
	color: #fff;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
	font-weight: 700;
}

a.cl-header-messages .info-indicators:empty {
	display: none;
}

@media (max-width: 1199.98px) {
	body main.main-content-container div.main-content-container-inner {
		padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
	}
}

body div.mobile-bottom-navbar {
	left: 16px;
	right: 16px;
	bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	width: auto;
	height: auto;
	padding: 0 !important;
	border: none;
	border-radius: 21px;
	background: color-mix(in srgb, var(--cl-secondary-bg-color, #fff) 90%, transparent);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
	overflow: visible !important;
}

body div.mobile-bottom-navbar div.mobile-bottom-navbar-inner {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	height: 62px;
	min-height: 62px;
	padding: 0 6px;
	border-radius: 21px;
	overflow: visible !important;
	align-items: center;
	justify-items: center;
	background: transparent;
}

body div.mobile-bottom-navbar div.mobile-bottom-navbar-inner button.navbar-ctrl {
	flex: none;
	width: 100%;
	height: 62px;
	min-width: 0;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #1a1a1a;
}

body div.mobile-bottom-navbar div.mobile-bottom-navbar-inner button.navbar-ctrl.active:after {
	display: none;
}

body div.mobile-bottom-navbar div.mobile-bottom-navbar-inner button.navbar-ctrl[data-anchor].active::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	background: var(--sf-accent-subtle, rgba(6, 122, 255, 0.12));
	transform: translate(-50%, -50%);
}

body div.mobile-bottom-navbar div.mobile-bottom-navbar-inner button.navbar-ctrl svg {
	position: relative;
	z-index: 1;
}

body div.mobile-bottom-navbar div.mobile-bottom-navbar-inner button.navbar-ctrl svg {
	width: 26px;
	height: 26px;
}

body div.mobile-bottom-navbar div.mobile-bottom-navbar-inner button.navbar-ctrl svg path {
	fill: #1a1a1a;
}

body div.mobile-bottom-navbar div.mobile-bottom-navbar-inner button.navbar-ctrl.navbar-ctrl--compose {
	flex: 0 0 45px;
	width: 45px;
	height: 45px;
	min-width: 45px;
	max-width: 45px;
	max-height: 45px;
	align-self: center;
	justify-self: center;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 16px;
	background: var(--sf-accent, var(--cl-primary-color));
	color: #fff;
	box-shadow: none;
	position: relative;
	z-index: 2;
	transform: none;
}

@media (max-width: 1199.98px) {
	body.cl-app-home button.homepage-pubbox-fab {
		display: none !important;
	}
}

body div.mobile-bottom-navbar div.mobile-bottom-navbar-inner button.navbar-ctrl.navbar-ctrl--compose svg {
	width: 26px;
	height: 26px;
}

body div.mobile-bottom-navbar div.mobile-bottom-navbar-inner button.navbar-ctrl.navbar-ctrl--compose svg path {
	fill: #fff;
}

body div.mobile-bottom-navbar button.navbar-ctrl-avatar .cl-avatar-framed,
body div.mobile-bottom-navbar button.navbar-ctrl-avatar .cl-avatar-framed__photo,
body div.mobile-bottom-navbar button.navbar-ctrl-avatar .cl-avatar-framed__photo img {
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	border-radius: 50%;
}

body div.mobile-bottom-navbar button.navbar-ctrl-avatar .cl-avatar-framed__frame {
	display: none;
}

.explore-topics {
	padding-top: 4px;
}

/* ---------------------------------------------------------------------------
   6. Notifications
--------------------------------------------------------------------------- */

body.cl-app-notifications [data-app="notifications"] .notifications,
body.cl-app-notifications [data-app="notifications"] .notifications-list,
body.cl-app-notifications [data-app="notifications"] .notifications-list__item,
body.cl-app-notifications [data-app="notifications"] .notif-data,
body.cl-app-notifications [data-app="notifications"] .notifications-list__item-data,
body.cl-app-notifications [data-app="notifications"] .notifications-data,
body.cl-app-notifications [data-app="notifications"] .notifications-data__body,
body.cl-app-notifications [data-app="notifications"] .notifications-data__body > a {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.cl-app-notifications [data-app="notifications"] .notifications-list__item {
	display: block;
	position: relative;
}

body.cl-app-notifications [data-app="notifications"] .notifications-data__body > a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

body.cl-app-notifications [data-app="notifications"] .notifications-list__item-avatar,
body.cl-app-notifications [data-app="notifications"] .notifications-list__item-avatar a,
body.cl-app-notifications [data-app="notifications"] .notif-controls {
	position: relative;
	z-index: 2;
}

body.cl-app-notifications [data-app="notifications"] .notif-data {
	display: flex;
	align-items: center;
}

body.cl-app-notifications [data-app="notifications"] .notifications-list__item-data {
	flex: 1 1 auto;
	min-width: 0;
}

body.cl-app-notifications [data-app="notifications"] .notifications-data__body > a {
	display: block;
}

body.cl-app-notifications [data-app="notifications"] .notifications-list__item-data {
	min-width: 0;
}

body.cl-app-notifications [data-app="notifications"] .notifications-data {
	width: 100%;
	position: relative;
	align-items: flex-start;
}

body.cl-app-notifications [data-app="notifications"] .notifications-data__body {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	margin-right: 0;
	padding-inline-end: 2.6rem;
}

body.cl-app-notifications [data-app="notifications"] .notifications-data__ctrls {
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	z-index: 3;
}

body.cl-app-notifications [data-app="notifications"] .notifications-data__topline,
body.cl-app-notifications [data-app="notifications"] .notifications-data__topline a {
	width: 100%;
}

body.cl-app-notifications [data-app="notifications"] .notifications-list__item {
	border-bottom: 1px solid var(--cl-primary-border-color);
	border-radius: 0;
	padding: 8px 14px;
	transition: background-color var(--sf-dur-fast) var(--sf-ease);
}

body.cl-app-notifications [data-app="notifications"] .notifications-data__topline {
	line-height: 1.3;
}

body.cl-app-notifications [data-app="notifications"] .notifications-data__midline {
	margin-top: 1px;
	line-height: 1.2;
}

body.cl-app-notifications [data-app="notifications"] .notifications-list__item:hover {
	background: var(--sf-accent-wash);
}

body.cl-app-notifications div.notifications-data.unseen {
	background: var(--sf-accent-subtle);
	border-left: 3px solid var(--sf-accent);
}

body.cl-app-notifications div.notif-text {
	font-size: var(--sf-text-sm);
	line-height: 1.5;
}

body.cl-app-notifications div.notif-time {
	font-size: var(--sf-text-xs);
	color: var(--cl-secondary-text-color);
}

body.cl-app-notifications div.notif-ctrls .btn-custom,
body.cl-app-notifications div.notif-controls .btn-custom {
	border-radius: var(--sf-radius-pill);
}

/* ---------------------------------------------------------------------------
   7. Thread
--------------------------------------------------------------------------- */

body.cl-app-thread div.thread-shell,
body .thread-conversation-card,
body .thread-comments-panel {
	border-radius: var(--sf-radius-md);
}

body .thread-topbar {
	border-bottom: 1px solid var(--cl-primary-border-color);
}

body .thread-chain-label,
body .thread-pcr-label {
	font-size: var(--sf-text-xs);
	font-weight: 600;
	color: var(--cl-secondary-text-color);
}

body .thread-load-more,
body .thread-group-load-more {
	color: var(--sf-accent-text);
	font-weight: 600;
	border-radius: var(--sf-radius-sm);
	transition: background-color var(--sf-dur-fast) var(--sf-ease);
}

body .thread-load-more:hover,
body .thread-group-load-more:hover {
	background: var(--sf-accent-subtle);
}

body .thread-reply-form-icon svg path {
	fill: var(--sf-accent);
}

body .cl-thread-preview-modal .modal-content {
	border-radius: var(--sf-radius-lg);
}

/* ---------------------------------------------------------------------------
   8. Messages (chats + conversation)
--------------------------------------------------------------------------- */

body.cl-app-chats div.contacts-list__item,
body .cl-msg-inbox__item {
	border-radius: var(--sf-radius-sm);
	transition: background-color var(--sf-dur-fast) var(--sf-ease);
}

body.cl-app-chats div.contacts-list__item:hover,
body .cl-msg-inbox__item:hover {
	background: var(--sf-accent-wash);
}

body.cl-app-chats div.contacts-list__item.is-active,
body .cl-msg-inbox__item.is-active {
	background: var(--sf-accent-subtle);
}

body.cl-app-chats div.unseen-message,
body .new-message {
	background: var(--sf-accent);
	color: var(--sf-on-accent);
	border-radius: var(--sf-radius-pill);
	font-weight: 700;
	font-size: 11px;
}

/* Own bubbles use the accent; incoming stay neutral. */
body {
	--cl-msg-accent: var(--sf-accent);
	--cl-conv-me-bg: var(--sf-accent);
	--cl-conv-me-text: var(--sf-on-accent);
	--cl-conv-me-border: var(--sf-accent);
	--cl-conv-bubble-me-bg: var(--sf-accent);
	--cl-conv-bubble-me-border: var(--sf-accent);
	--cl-conv-them-link: var(--sf-accent-text);
	--cl-conv-bubble-them-link: var(--sf-accent-text);
	--cl-conv-radius: 18px;
	--cl-conv-radius-tail: 6px;
	--cl-msg-radius: 18px;
}

body .conv-jump-bottom,
body .cl-quick-greet {
	border-radius: var(--sf-radius-pill);
	box-shadow: var(--sf-shadow-md);
}

body .conv-typing-dots span,
body .typing-dots span {
	background: var(--sf-accent);
}

body .conversation-header__status--typing,
body .conversation-header__status.is-typing {
	color: var(--sf-accent-text);
}

body .message-input,
body .conv-compose-stack {
	border-radius: var(--sf-radius-lg);
}

body.cl-app-conversation div.conversation.conversation--modern div.message-input button.message-input__ctrl--send:not(:disabled) {
	background: var(--sf-accent);
	color: var(--sf-on-accent);
}

body .cl-emoji-picker,
body .cl-cc-emoji-panel,
body .cl-cc-gif-panel,
body .cl-cc-pop {
	border-radius: var(--sf-radius-md);
	border: 1px solid var(--cl-primary-border-color);
	box-shadow: var(--sf-shadow-lg);
	background: var(--sf-surface-raised);
}

body .cl-emoji-btn:hover,
body .cl-cc-emoji-panel button:hover {
	background: var(--sf-accent-subtle);
	border-radius: var(--sf-radius-xs);
}

body .cl-msg-selection-toolbar {
	background: var(--sf-accent-subtle);
	border-bottom: 1px solid var(--sf-accent-line);
}

body .cl-sel-btn.is-checked,
body .cl-sel-btn:checked {
	background: var(--sf-accent);
	border-color: var(--sf-accent);
}

/* ---------------------------------------------------------------------------
   9. Bookmarks, connections, suggested, subscriptions
--------------------------------------------------------------------------- */

body .cl-bookmarks-images-grid .cl-bookmarks-image-tile {
	border-radius: var(--sf-radius-md);
	overflow: hidden;
	border: 1px solid var(--cl-primary-border-color);
	transition: border-color var(--sf-dur-fast) var(--sf-ease), transform var(--sf-dur-fast) var(--sf-ease);
}

body .cl-bookmarks-images-grid .cl-bookmarks-image-tile:hover {
	border-color: var(--sf-accent-line-strong);
	transform: translateY(-2px);
}

body .cl-bookmarks-images-add,
body .cl-bookmarks-upload-ring {
	border-color: var(--sf-accent-line);
	color: var(--sf-accent-text);
}

body .cl-bookmark-undo-btn {
	color: var(--sf-accent-text);
	font-weight: 600;
}

body.cl-app-subscriptions div.subs-page-card {
	border-radius: var(--sf-radius-md);
	border: 1px solid var(--cl-primary-border-color);
	transition: border-color var(--sf-dur-fast) var(--sf-ease);
}

body.cl-app-subscriptions div.subs-page-card:hover {
	border-color: var(--sf-accent-line);
}

body .subs-progress-track {
	background: var(--cl-input-bg-color);
	border-radius: var(--sf-radius-pill);
	overflow: hidden;
}

/* The steady-state subscription bar was pinned to a fixed blue gradient. */
body .subs-progress-fill,
body .subs-progress-fill.subs-progress-fill--steady {
	background: var(--sf-accent-gradient);
}

body .subs-progress-meta,
body .subs-cancel-action {
	font-size: var(--sf-text-xs);
	color: var(--cl-secondary-text-color);
}

body.cl-app-suggested .user-list-item,
body.cl-app-connections .user-list-item {
	border-bottom: 1px solid var(--cl-primary-border-color);
}

/* ---------------------------------------------------------------------------
   10. Settings + feed preferences
--------------------------------------------------------------------------- */

body.cl-app-settings div.settings-form,
body.cl-app-feed_preferences div.settings-form,
body.cl-app-premium_features div.settings-form {
	padding: var(--sf-space-5) var(--cl-primary-offset-size);
}

body.cl-app-settings div.profile-settings h3,
body .settings-form h3,
body .settings-form h4 {
	font-size: var(--sf-text-lg);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: var(--sf-space-2);
}

body.cl-app-settings div.timeline-navbar_border-top {
	border-top: 1px solid var(--cl-primary-border-color);
}

body .preview-label {
	font-size: var(--sf-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--cl-secondary-text-color);
}

body .preview-value {
	font-size: var(--sf-text-sm);
	color: var(--cl-primary-text-color);
}

/* Interest / category chips. */
body .feed-pref-modal .interest-chip,
body .interests-list .interest-item,
body .settings-form .select-box {
	border-radius: var(--sf-radius-pill);
	border: 1px solid var(--cl-primary-border-color);
	transition: border-color var(--sf-dur-fast) var(--sf-ease), background-color var(--sf-dur-fast) var(--sf-ease);
	cursor: pointer;
}

body .feed-pref-modal .interest-chip.is-selected,
body .interests-list .interest-item.is-selected,
body .interests-list .interest-item.active {
	background: var(--sf-accent-subtle);
	border-color: var(--sf-accent);
	color: var(--sf-accent-text);
	font-weight: 600;
}

body .srf-monet-form .srf-monet-title {
	font-size: var(--sf-text-lg);
	font-weight: 700;
	letter-spacing: -0.02em;
}

body .srf-monet-discount,
body .srf-monet-info {
	color: var(--sf-accent-text);
}

body .srf-monet-durations-group .srf-monet-duration-row.is-active {
	border-color: var(--sf-accent);
	background: var(--sf-accent-subtle);
}

/* ---------------------------------------------------------------------------
   11. Wallet family
--------------------------------------------------------------------------- */

/* The credit band is a full-bleed stripe between the card title and the footer,
   so it gets hairlines rather than a radius. It used to be a saturated accent
   slab, which dropped the amount and the muted "available funds" caption below
   readable contrast — a tint carries the accent without fighting the text. */
body[class*="cl-app-wallet"] div.account-wallet__card div.wallet-balance,
body .account-wallet div.account-wallet__card div.wallet-balance {
	background: var(--sf-accent-wash);
	border-top: 1px solid var(--sf-accent-line);
	border-bottom: 1px solid var(--sf-accent-line);
	border-radius: 0;
	color: var(--cl-primary-text-color);
	box-shadow: none;
}

body[class*="cl-app-wallet"] div.wallet-balance span.cl-wallet-balance-amount,
body[class*="cl-app-wallet"] div.wallet-balance div.wallet-balance__amount-scroll {
	color: var(--cl-primary-text-color);
}

body[class*="cl-app-wallet"] div.wallet-balance span.wallet-balance__label {
	color: var(--cl-secondary-text-color);
}

body[class*="cl-app-wallet"] div.wallet-balance div.wallet-balance__icon svg path {
	fill: var(--sf-accent);
}

body .wallet-balance-visibility-toggle {
	color: var(--cl-primary-text-color);
	background: color-mix(in srgb, var(--cl-primary-text-color) 10%, transparent);
	border: 1px solid var(--cl-primary-border-color);
}

body .wallet-balance-visibility-toggle:hover,
body .wallet-balance-visibility-toggle:active {
	background: var(--sf-accent-subtle);
	border-color: var(--sf-accent-line-strong);
	color: var(--sf-accent-text);
}

body .wallet-balance-visibility-toggle svg,
body .wallet-balance-visibility-toggle svg path:not([fill="none"]) {
	fill: currentColor !important;
	color: inherit;
}

body .wallet-tx-page,
body .wallet-tx-summary {
	border-radius: var(--sf-radius-md);
}

body .wallet-tx-amt.plus,
body .wallet-tx-amt[class*="success"] {
	color: var(--cl-success-color);
	font-weight: 700;
}

body .wallet-tx-amt.minus,
body .wallet-tx-amt[class*="danger"] {
	color: var(--cl-danger-color);
	font-weight: 700;
}

body .wallet-tx-icon-btn,
body .sf-hub-nav-btn {
	border-radius: var(--sf-radius-pill);
	border: 1px solid var(--cl-primary-border-color);
	transition: border-color var(--sf-dur-fast) var(--sf-ease), background-color var(--sf-dur-fast) var(--sf-ease);
}

body .wallet-tx-icon-btn:hover,
body .sf-hub-nav-btn:hover {
	border-color: var(--sf-accent-line-strong);
	background: var(--sf-accent-subtle);
}

body .wallet-tx-mono,
body .wallet-tx-ref,
body .cp-pro-code,
body .discover-manager-code-block,
body .ps-cron-url-block {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: var(--sf-text-xs);
	background: var(--cl-secondary-bg-color);
	border-radius: var(--sf-radius-xs);
	padding: 2px 6px;
}

body .paym-logo {
	border-radius: var(--sf-radius-sm);
}

body .paym-checkmark svg path {
	fill: var(--sf-accent);
}

body .wallet-passcode-hero,
body .wallet-passcode-section {
	border-radius: var(--sf-radius-md);
	border: 1px solid var(--cl-primary-border-color);
}

body .wallet-passcode-badge {
	background: var(--sf-accent-subtle);
	color: var(--sf-accent-text);
	border-radius: var(--sf-radius-pill);
	font-weight: 600;
}

body .bank-requisites .bank-info-item {
	border-bottom: 1px solid var(--cl-primary-border-color);
}

body .recipients-list .user-list-item.selected {
	background: var(--sf-accent-subtle);
}

/* ---------------------------------------------------------------------------
   12. Premium, frames, gifts, affiliates, ads

   These pages leaned on --cl-main-color, which the token layer now maps to the
   live accent, so most of the work here is shape and rhythm.
--------------------------------------------------------------------------- */

body .cl-premium-hub-card,
body .cl-premium-explore-hub {
	border-radius: var(--sf-radius-lg);
	background: var(--sf-accent-gradient-soft);
	border: 1px solid var(--sf-accent-line);
}

body .fs-detail-preview,
body .fs-sell-live-preview,
body .plk-modal-preview-pair {
	border-radius: var(--sf-radius-md);
	background: var(--sf-accent-wash);
	border: 1px solid var(--cl-primary-border-color);
}

/* ---------------------------------------------------------------------------
   12a. Profile frames shop

   frames_shop.css owns the layout and exposes --fs-* tokens on the page root,
   so the redesign starts by re-pointing those at the design system and then
   reshapes the four things that read as dated: the oversized centred hero,
   the low-contrast mode tabs, the loose filter panel and the flat catalog
   tiles.
--------------------------------------------------------------------------- */

body.cl-app-frames_shop div.timeline-body.fs-page {
	--fs-radius: var(--sf-radius-md);
	--fs-radius-sm: var(--sf-radius-sm);
	--fs-shadow: var(--sf-shadow-xs);
	--fs-shadow-hover: var(--sf-shadow-lg);
	max-width: 1180px;
	padding: 20px 20px 72px;
}

/* --- Hero: a compact left-aligned page header, not a centred billboard --- */

body.cl-app-frames_shop header.fs-hero {
	position: relative;
	overflow: hidden;
	max-width: none;
	margin: 0 0 20px;
	padding: 26px 28px 28px;
	text-align: left;
	border-radius: var(--sf-radius-lg);
	border: 1px solid var(--cl-primary-border-color);
	background: var(--cl-primary-bg-color);
	isolation: isolate;
}

body.cl-app-frames_shop header.fs-hero::after {
	display: none;
}

body.cl-app-frames_shop h1.fs-hero__title {
	position: relative;
	z-index: 1;
	margin: 0 0 8px;
	font-size: var(--sf-text-2xl);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--cl-primary-text-color);
}

body.cl-app-frames_shop p.fs-hero__lead {
	position: relative;
	z-index: 1;
	max-width: 54ch;
	font-size: var(--sf-text-sm);
	line-height: 1.6;
	color: var(--cl-secondary-text-color);
	background: none;
}

/* --- Mode tabs: a real segmented control ------------------------------- */

body.cl-app-frames_shop nav.fs-mode-tabs {
	display: flex;
	flex-wrap: nowrap;
	width: fit-content;
	gap: 4px;
	margin-bottom: 20px;
	padding: 4px;
	border-radius: var(--sf-radius-pill);
	border: 1px solid var(--cl-primary-border-color);
	background: var(--sf-surface-sunken);
	box-shadow: none;
}

/* The base sheet sets flex: 1 1 8rem, which wraps the pills onto two rows. */
body.cl-app-frames_shop button.fs-mode-tabs__btn {
	flex: 0 0 auto;
	border: none;
	background: transparent;
	border-radius: var(--sf-radius-pill);
	padding: 9px 22px;
	font-size: var(--sf-text-sm);
	font-weight: 600;
	color: var(--cl-secondary-text-color);
	transition: background-color var(--sf-dur-fast) var(--sf-ease), color var(--sf-dur-fast) var(--sf-ease);
}

body.cl-app-frames_shop button.fs-mode-tabs__btn:hover {
	color: var(--cl-primary-text-color);
	background: var(--sf-accent-subtle);
}

body.cl-app-frames_shop button.fs-mode-tabs__btn.is-active {
	background: var(--sf-accent);
	color: var(--sf-on-accent);
	box-shadow: var(--sf-accent-glow);
}

/* --- Filter panel ------------------------------------------------------ */

body.cl-app-frames_shop section.fs-controls {
	margin-bottom: 24px;
	padding: 18px;
	border-radius: var(--sf-radius-md);
	background: var(--sf-surface-raised);
	border: 1px solid var(--cl-primary-border-color);
	box-shadow: var(--sf-shadow-xs);
}

body.cl-app-frames_shop .fs-controls__search {
	margin-bottom: 18px;
}

body.cl-app-frames_shop input.fs-controls__input {
	padding: 12px 16px 12px 44px;
	border-radius: var(--sf-radius-sm);
	background: var(--cl-input-bg-color, var(--sf-surface-inset));
	font-size: var(--sf-text-sm);
}

body.cl-app-frames_shop .fs-field__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--cl-secondary-text-color);
}

body.cl-app-frames_shop select.fs-field__select {
	border-radius: var(--sf-radius-sm);
	background-color: var(--cl-input-bg-color, var(--sf-surface-inset));
	font-size: var(--sf-text-sm);
}

body.cl-app-frames_shop .fs-scope-switch {
	border-radius: var(--sf-radius-sm);
	overflow: hidden;
}

body.cl-app-frames_shop button.fs-scope-switch__btn {
	font-size: var(--sf-text-sm);
	font-weight: 600;
}

body.cl-app-frames_shop button.fs-scope-switch__btn.is-active {
	background: var(--sf-accent);
	color: var(--sf-on-accent);
	border-color: var(--sf-accent);
}

/* --- Catalog tiles ----------------------------------------------------- */

body.cl-app-frames_shop div.fs-grid {
	gap: 20px;
}

body.cl-app-frames_shop article.fs-card {
	background: var(--sf-surface-raised);
	border-radius: var(--sf-radius-md);
	transition: transform var(--sf-dur-fast) var(--sf-ease),
		box-shadow var(--sf-dur) var(--sf-ease),
		border-color var(--sf-dur-fast) var(--sf-ease);
}

body.cl-app-frames_shop article.fs-card:hover {
	transform: translateY(-4px);
	border-color: var(--sf-accent-line-strong);
	box-shadow: var(--sf-accent-glow-lg);
}

/* The frame art is the product: give it a neutral stage with an accent halo. */
body.cl-app-frames_shop .fs-card__media {
	background:
		radial-gradient(circle at 50% 42%, var(--sf-accent-subtle) 0%, transparent 62%),
		linear-gradient(165deg, var(--sf-surface-inset) 0%, var(--sf-surface-sunken) 100%);
}

/* Site-wide a framed avatar is a circular photo with the frame art drawn over
   the very same box (.cl-avatar-framed). The shop previews instead put a square
   photo at full size under a frame inset by 10-12%, so the picture spilled past
   the ring. Sharing one box and clipping the photo to a circle reproduces the
   profile geometry, which is what the preview is meant to be selling.
   Widths are explicit because `width: auto` on an absolutely positioned <img>
   resolves to the intrinsic size, not to the inset box. */
body img.fs-card__avatar,
body img.fs-card__frame,
body img.fs-detail-preview__avatar,
body img.fs-detail-preview__frame,
body img.fs-confirm-preview__avatar,
body img.fs-confirm-preview__frame {
	inset: 7% auto auto 7%;
	width: 86%;
	height: 86%;
	padding: 0;
}

body img.fs-card__avatar,
body img.fs-detail-preview__avatar,
body img.fs-confirm-preview__avatar {
	border-radius: 50%;
	object-fit: cover;
}

body.cl-app-frames_shop .fs-card__body {
	gap: 10px;
	padding: 14px 16px 16px;
}

body.cl-app-frames_shop h3.fs-card__name {
	font-size: var(--sf-text-base);
	font-weight: 700;
	letter-spacing: -0.02em;
}

body.cl-app-frames_shop .fs-chip {
	padding: 4px 9px;
	font-size: 10px;
	letter-spacing: 0.05em;
	background: var(--sf-surface-sunken);
	border-color: var(--cl-primary-border-color);
	color: var(--cl-secondary-text-color);
}

body.cl-app-frames_shop .fs-chip--accent,
body.cl-app-frames_shop .fs-chip--profile {
	background: var(--sf-accent-subtle);
	border-color: var(--sf-accent-line-strong);
	color: var(--sf-accent-text);
}

/* "On profile" is the one state worth spotting from across the grid. */
body.cl-app-frames_shop article.fs-card--current {
	border-color: var(--sf-accent);
	box-shadow: 0 0 0 1px var(--sf-accent) inset, var(--sf-shadow-sm);
}

body.cl-app-frames_shop .fs-card__meta {
	border-top: 1px solid var(--cl-primary-border-color);
	padding-top: 10px;
}

body.cl-app-frames_shop .fs-card__from {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 4px;
}

body.cl-app-frames_shop .fs-card__from-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cl-secondary-text-color);
}

body.cl-app-frames_shop .fs-card__from-price {
	font-size: var(--sf-text-lg);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--sf-accent-text);
}

body.cl-app-frames_shop .fs-card__pricing-lead {
	margin: 0;
	font-size: var(--sf-text-xs);
	line-height: 1.5;
	color: var(--cl-secondary-text-color);
}

/* --- Pager ------------------------------------------------------------- */

body.cl-app-frames_shop nav.fs-pager {
	margin-top: 28px;
	gap: 10px;
}

body.cl-app-frames_shop button.fs-pager__btn {
	border-radius: var(--sf-radius-pill);
	background: var(--sf-surface-raised);
	border: 1px solid var(--cl-primary-border-color);
	transition: background-color var(--sf-dur-fast) var(--sf-ease), border-color var(--sf-dur-fast) var(--sf-ease);
}

body.cl-app-frames_shop button.fs-pager__btn:not(:disabled):hover {
	background: var(--sf-accent-subtle);
	border-color: var(--sf-accent-line-strong);
	color: var(--sf-accent-text);
}

body.cl-app-frames_shop .fs-pager__meta {
	font-size: var(--sf-text-sm);
	color: var(--cl-secondary-text-color);
}

@media (max-width: 575.98px) {
	body.cl-app-frames_shop header.fs-hero {
		padding: 20px 18px 22px;
	}

	body.cl-app-frames_shop h1.fs-hero__title {
		font-size: var(--sf-text-xl);
	}

	body.cl-app-frames_shop nav.fs-mode-tabs {
		width: 100%;
	}

	body.cl-app-frames_shop button.fs-mode-tabs__btn {
		flex: 1 1 0;
		padding: 9px 12px;
	}
}

body .fs-sell-file-zone,
body .plk-upload-zone,
body .lim-preset-upload-zone {
	border-radius: var(--sf-radius-md);
	border: 2px dashed var(--sf-accent-line);
	background: var(--sf-accent-wash);
	transition: border-color var(--sf-dur-fast) var(--sf-ease), background-color var(--sf-dur-fast) var(--sf-ease);
}

body .fs-sell-file-zone:hover,
body .plk-upload-zone:hover,
body .fs-sell-file-zone.is-dragover {
	border-color: var(--sf-accent);
	background: var(--sf-accent-subtle);
}

body .srf-premium-progress-container,
body .plk-progress,
body .plk-main-progress {
	background: var(--cl-input-bg-color);
	border-radius: var(--sf-radius-pill);
	overflow: hidden;
}

body .cl-gift2 .modal-content.cl-gift2__shell,
body .cl-gift-pf-modal .modal-content {
	border-radius: var(--sf-radius-lg);
}

body .cl-gift2__tab,
body .plk-request-step {
	border-radius: var(--sf-radius-pill);
}

body .affiliates .affiliates-workflow-list li,
body .affiliates-workflow-list li {
	border-radius: var(--sf-radius-sm);
}

body .copy-link,
body .clip-board-copy,
body .target-url-btn {
	border-radius: var(--sf-radius-sm);
	border: 1px solid var(--cl-primary-border-color);
	background: var(--cl-secondary-bg-color);
	transition: border-color var(--sf-dur-fast) var(--sf-ease);
}

body .copy-link:hover,
body .clip-board-copy:hover {
	border-color: var(--sf-accent-line-strong);
}

body .social-link-btn {
	border-radius: var(--sf-radius-pill);
}

body.cl-app-ads div.ads-management div.ads-management__upsert div.form-group div.multiselect-toggle-all {
	border-radius: var(--sf-radius-sm);
}

body .post-list-advert,
body .cl-google-ads,
body .thread-inline-ad {
	border-radius: var(--sf-radius-md);
	border: 1px solid var(--cl-primary-border-color);
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
   13. Stories + video
--------------------------------------------------------------------------- */

body .cl-stories-page .cl-story-page__tile,
body .cl-stories-page-wrap .cl-story-page__tile {
	border-radius: var(--sf-radius-md);
	overflow: hidden;
}

body .cl-story-page__create-icon {
	background: var(--sf-accent-gradient);
}

body .cl-story-viewer__progress-fill,
body .cl-story-viewer__bar-fill {
	background: #ffffff;
}

body .cl-reel-viewer__rail-follow {
	background: var(--sf-accent);
	color: var(--sf-on-accent);
	border-radius: var(--sf-radius-pill);
}

body .cl-reel-viewer__rail-follow.is-following {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #ffffff;
}

body .cl-video-page .plyr,
body .cl-plyr-video,
body .cl-plyr-audio {
	border-radius: var(--sf-radius-md);
	overflow: hidden;
}

body .video-play-button,
body .video-icon {
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 50%;
}

/* ---------------------------------------------------------------------------
   14. Static / info / error pages
--------------------------------------------------------------------------- */

body div.stat-page-content {
	font-size: var(--sf-text-base);
	line-height: 1.7;
	color: var(--cl-tertiary-text-color);
	padding: var(--sf-space-5) var(--cl-primary-offset-size);
}

body div.stat-page-content h1,
body div.stat-page-content h2,
body div.stat-page-content h3 {
	color: var(--cl-primary-text-color);
	margin-top: var(--sf-space-6);
	margin-bottom: var(--sf-space-3);
}

body div.stat-page-content h1:first-child,
body div.stat-page-content h2:first-child {
	margin-top: 0;
}

body div.stat-page-content a {
	color: var(--sf-accent-text);
	font-weight: 500;
}

body div.stat-page-content blockquote {
	border-left: 3px solid var(--sf-accent);
	background: var(--sf-accent-wash);
	border-radius: 0 var(--sf-radius-sm) var(--sf-radius-sm) 0;
	padding: var(--sf-space-3) var(--sf-space-4);
	margin: var(--sf-space-4) 0;
}

body.cl-app-err404 div.timeline-placeholder,
body.cl-app-err500 div.timeline-placeholder {
	padding: var(--sf-space-7) var(--sf-space-5);
	text-align: center;
}

body.cl-app-err404 div.timeline-placeholder h1,
body.cl-app-err500 div.timeline-placeholder h1 {
	font-size: var(--sf-text-3xl);
	font-weight: 800;
	letter-spacing: -0.03em;
}

/* FAQ accordions. */
body.cl-app-faqs div.stat-page-content details,
body.cl-app-faqs .faq-item {
	border: 1px solid var(--cl-primary-border-color);
	border-radius: var(--sf-radius-md);
	padding: var(--sf-space-3) var(--sf-space-4);
	margin-bottom: var(--sf-space-3);
	transition: border-color var(--sf-dur-fast) var(--sf-ease);
}

body.cl-app-faqs div.stat-page-content details[open],
body.cl-app-faqs .faq-item:hover {
	border-color: var(--sf-accent-line);
}

/* ---------------------------------------------------------------------------
   15. Onboarding + confirmations
--------------------------------------------------------------------------- */

body.cl-app-start_up div.startup,
body div.confirm-email,
body div.confirm-registration {
	padding: var(--sf-space-6) var(--cl-primary-offset-size);
	text-align: center;
}

body.cl-app-start_up div.startup h1,
body div.confirm-email h1,
body div.confirm-registration h1 {
	font-size: var(--sf-text-2xl);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: var(--sf-space-3);
}

body.cl-app-start_up div.upload-avatar,
body.cl-app-start_up div.startup-avatar {
	border-radius: 50%;
	border: 2px dashed var(--sf-accent-line);
	transition: border-color var(--sf-dur-fast) var(--sf-ease);
}

body.cl-app-start_up div.upload-avatar:hover {
	border-color: var(--sf-accent);
	background: var(--sf-accent-wash);
}

/* ---------------------------------------------------------------------------
   16. Admin surfaces (cpanel, staff console, claim portal)

   These ship their own Bootstrap 5 bundle, so the goal here is only to keep
   accent, radii and elevation consistent with the rest of the product.
--------------------------------------------------------------------------- */

body .acp-card,
body .cp-pro-panel,
body .cp-claim-panel,
body .st-panel,
body .cad-settings-card,
body .lim-card,
body .discover-manager-card,
body .ps-panel,
body .um-stat-card,
body .acp-frames-card {
	border-radius: var(--sf-radius-md);
	border: 1px solid var(--cl-primary-border-color);
	background: var(--sf-surface-raised);
	box-shadow: var(--sf-shadow-xs);
}

body .acp-page-header,
body .cad-header,
body .st-topbar,
body .discover-manager-header,
body .ps-hero,
body .cad-dir-hero,
body .acp-frames-hero {
	border-bottom: 1px solid var(--cl-primary-border-color);
}

body .acp-page-header h1,
body .discover-manager-title,
body .um-section-title,
body .cad-dir-hero h1,
body .ps-hero h1 {
	font-size: var(--sf-text-xl);
	font-weight: 700;
	letter-spacing: -0.02em;
}

body .discover-manager-subtitle,
body .cad-dir-label,
body .ps-run-note,
body .discover-manager-field-help {
	font-size: var(--sf-text-xs);
	color: var(--cl-secondary-text-color);
	line-height: 1.55;
}

body .acp-main-left-sidebar .menu-list-item-link.active,
body .cad-sidebar a.is-active,
body .st-sidebar a.is-active {
	background: var(--sf-accent-subtle);
	color: var(--sf-accent-text);
	border-radius: var(--sf-radius-sm);
	font-weight: 600;
}

body .discover-admin-stat,
body .discover-stats-kpi,
body .cp-pro-kpi,
body .cp-claim-metric,
body .st-metric,
body .lim-card .num,
body .ps-stat-card,
body .fs-metric {
	border-radius: var(--sf-radius-md);
	border: 1px solid var(--cl-primary-border-color);
	background: var(--sf-accent-gradient-soft);
}

body .discover-stats-preset.is-active,
body .discover-manager-nav a.is-active,
body .lim-panes .lim-pane.is-active {
	background: var(--sf-accent);
	color: var(--sf-on-accent);
	border-color: var(--sf-accent);
}

body .popup-ticket-modal .modal-content,
body .discover-manager-modal .modal-content,
body .discover-manager-cron-modal .modal-content,
body .lim-preset-fee-modal .modal-content,
body .ops-hub-approve-modal .modal-content,
body .acp-fr-rec-modal-body {
	border-radius: var(--sf-radius-lg);
}

body .st-status,
body .ops-hub-status-chip,
body .acp-users-badge,
body .discover-manager-stat,
body .um-method-pill,
body .lim-badge {
	border-radius: var(--sf-radius-pill);
	font-size: var(--sf-text-xs);
	font-weight: 600;
	padding: 3px 10px;
}

body .fs-bar > span,
body .progress-bar {
	background: var(--sf-accent);
}

body .discover-stats-chart-card,
body .discover-stats-chart-wrap {
	border-radius: var(--sf-radius-md);
	border: 1px solid var(--cl-primary-border-color);
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader[data-spa-variant="conversation"] {
	top: 0;
	bottom: 0;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader[data-spa-variant="conversation"] div.spa-preloader-inner {
	padding: 0;
	overflow: hidden;
	height: 100%;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader[data-spa-variant="conversation"] .spa-skeleton-stack,
body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader[data-spa-variant="conversation"] .spa-skeleton-pane--conversation {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	width: 100%;
	box-sizing: border-box;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__header {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 60px;
	padding: 0 14px;
	flex: 0 0 60px;
	border-bottom: 1px solid var(--cl-primary-border-color);
	box-sizing: border-box;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__back {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	flex: 0 0 35px;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	flex: 0 0 42px;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__meta {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__name {
	width: 128px;
	height: 12px;
	border-radius: 999px;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__status {
	width: 78px;
	height: 10px;
	border-radius: 999px;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__thread {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 12px;
	padding: 18px 16px;
	min-height: 0;
	box-sizing: border-box;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__bar {
	flex: 0 0 auto;
	padding: 10px 14px calc(16px + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__row {
	display: flex;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__row--me {
	justify-content: flex-end;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__row span.spa-skeleton-shimmer {
	width: 58%;
	height: 42px;
	border-radius: 18px;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__row--me span.spa-skeleton-shimmer {
	width: 42%;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__row--wide span.spa-skeleton-shimmer {
	width: 72%;
	height: 96px;
}

body main.main-content-container div.main-content-container-inner div.timeline-container-wrapper div.spa-preloader .spa-skeleton-chat__composer {
	height: 52px;
	border-radius: 26px;
	margin-top: 8px;
}
