/* thui-social-build: 321a3d7 2026-10-09T02:48:10Z */
:root {
	--top-h: 84px;
	--tab-h: 0px;
	--radius: 36px;
	--nav-radius: 999px;
	--feed-w: 650px;
	--font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang TC",
		"Microsoft JhengHei", sans-serif;
}

:root,
html[data-theme="classic"] {
	--bg: #f7f8fa;
	--feed: #ffffff;
	--ink: #0f1419;
	--mute: #8b98a5;
	--line: #e8ecf0;
	--blue: #1da1f2;
	--push: #1a8cff;
	--cta-fg: #ffffff;
	--hover: rgba(15, 20, 25, 0.05);
	--surface: #ffffff;
	--surface-2: #f4f6f8;
	--border: rgba(15, 20, 25, 0.08);
	--shadow: rgba(15, 20, 25, 0.08);
	--btn-bg: #ffffff;
	--btn-fg: #0f1419;
	--btn-border: rgba(15, 20, 25, 0.18);
	--btn-primary-bg: #0f1419;
	--btn-primary-fg: #ffffff;
	--fade-to-feed: #ffffff;
}

/* White + black (brand blue → black) */
html[data-theme="light"] {
	--bg: #fafafa;
	--feed: #ffffff;
	--ink: #0f1419;
	--mute: #737373;
	--line: #efefef;
	--blue: #0f1419;
	--push: #0f1419;
	--cta-fg: #ffffff;
	--hover: rgba(15, 20, 25, 0.05);
	--surface: #ffffff;
	--surface-2: #f5f5f5;
	--border: rgba(15, 20, 25, 0.1);
	--shadow: rgba(15, 20, 25, 0.08);
	--btn-bg: #ffffff;
	--btn-fg: #0f1419;
	--btn-border: rgba(15, 20, 25, 0.22);
	--btn-primary-bg: #0f1419;
	--btn-primary-fg: #ffffff;
	--fade-to-feed: #ffffff;
}

/* Threads charcoal base + brand blue accents */
html[data-theme="dark-classic"] {
	--bg: #0a0a0a;
	--feed: #121212;
	--ink: #f5f5f5;
	--mute: #9a9a9a;
	--line: rgba(255, 255, 255, 0.12);
	--blue: #1da1f2;
	--push: #1a8cff;
	--cta-fg: #ffffff;
	--hover: rgba(255, 255, 255, 0.08);
	--surface: #121212;
	--surface-2: #1a1a1a;
	--border: rgba(255, 255, 255, 0.12);
	--shadow: rgba(0, 0, 0, 0.45);
	--btn-bg: #1a1a1a;
	--btn-fg: #f5f5f5;
	--btn-border: rgba(255, 255, 255, 0.18);
	--btn-primary-bg: #1da1f2;
	--btn-primary-fg: #ffffff;
	--fade-to-feed: #121212;
}

/* Threads-like charcoal (not pure black) + white accents */
html[data-theme="dark"] {
	--bg: #101010;
	--feed: #181818;
	--ink: #f5f5f5;
	--mute: #9a9a9a;
	--line: rgba(255, 255, 255, 0.12);
	--blue: #f5f5f5;
	--push: #f5f5f5;
	--cta-fg: #101010;
	--hover: rgba(255, 255, 255, 0.08);
	--surface: #181818;
	--surface-2: #222222;
	--border: rgba(255, 255, 255, 0.12);
	--shadow: rgba(0, 0, 0, 0.45);
	--btn-bg: #222222;
	--btn-fg: #f5f5f5;
	--btn-border: rgba(255, 255, 255, 0.18);
	--btn-primary-bg: #f5f5f5;
	--btn-primary-fg: #101010;
	--fade-to-feed: #181818;
}

html[data-theme="dark"] .thui-mark img,
html[data-theme="dark"] .thui-head-mark img,
html[data-theme="dark"] .thui-soon-mark {
	filter: brightness(0) invert(1);
}

/* dark-classic keeps brand-blue mark (no invert) */

html[data-theme="light"] .thui-mark img,
html[data-theme="light"] .thui-head-mark img,
html[data-theme="light"] .thui-soon-mark {
	filter: brightness(0);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	-webkit-font-smoothing: antialiased;
}

/* Feed pages: lock document scroll; pan inside the feed column */
html:has(#feed-list),
html:has(#feed-list) body {
	height: 100%;
	overflow: hidden;
}

html:has(#feed-list) .thui-app {
	height: 100dvh;
	max-height: 100dvh;
	overflow: hidden;
}

button,
textarea,
a {
	font: inherit;
	color: inherit;
}

a {
	text-decoration: none;
}

.thui-app {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
}

.thui-head {
	display: none;
}

.thui-top {
	position: relative;
	z-index: 20;
	flex: 0 0 auto;
	width: 100%;
	height: 64px;
	margin: 12px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.thui-mark {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	z-index: 1;
}

.thui-mark img {
	width: 50px;
	height: 50px;
	object-fit: contain;
}

.thui-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(16px, 3.5vw, 36px);
	width: min(860px, calc(100% - 200px));
	height: 56px;
	padding: 0 18px;
	background: var(--feed);
	border-radius: var(--nav-radius);
	box-shadow:
		0 1px 2px rgba(15, 20, 25, 0.04),
		0 8px 24px rgba(15, 20, 25, 0.04);
	transition: gap 0.45s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.thui-nav-item {
	width: 50px;
	height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--mute);
	border-radius: 14px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease, background 0.15s ease;
}

.thui-nav-item svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.thui-nav-item.is-active,
.thui-nav-item:hover {
	color: var(--blue);
}

/* Desktop expandable search: icon → pill field */
.thui-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	width: 50px;
	height: 50px;
	border-radius: 999px;
	isolation: isolate;
	transition:
		width 0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
		background-color 0.28s ease,
		box-shadow 0.32s ease;
}

.thui-search.is-open {
	width: min(268px, 28vw);
	background: var(--surface-2);
	box-shadow: inset 0 0 0 1px var(--border);
}

.thui-search-toggle {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	width: 50px;
	height: 50px;
	flex: none;
}

.thui-search.is-open .thui-search-toggle {
	color: var(--ink);
	pointer-events: none;
}

.thui-search.is-open .thui-search-toggle.is-active,
body.is-searching #nav-search.is-active {
	color: var(--blue);
}

.thui-search-glyph {
	transition: transform 0.42s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.thui-search.is-open .thui-search-glyph {
	transform: scale(0.88) rotate(-8deg);
}

.thui-search-input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0 18px 0 46px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	letter-spacing: 0.01em;
	opacity: 0;
	pointer-events: none;
	transform: translateX(12px);
	transition:
		opacity 0.26s ease 0.06s,
		transform 0.46s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.thui-search-input::placeholder {
	color: var(--mute);
	opacity: 0.9;
}

.thui-search-input::-webkit-search-decoration,
.thui-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.thui-search.is-open .thui-search-input {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.thui-nav:has(.thui-search.is-open) {
	gap: clamp(10px, 2.2vw, 26px);
}

@media (prefers-reduced-motion: reduce) {
	.thui-search,
	.thui-search-glyph,
	.thui-search-input,
	.thui-nav:has(.thui-search.is-open) {
		transition: none !important;
		animation: none !important;
	}

	.thui-search.is-open .thui-search-glyph {
		transform: none;
	}

	.thui-search.is-open .thui-search-input {
		transform: none;
	}
}

.thui-top-spacer {
	display: none;
}

.thui-top-actions {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.thui-icon-btn {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: #8b98a5;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease, background 0.15s ease;
}

.thui-icon-btn:hover {
	color: var(--blue);
	background: var(--hover);
}

.thui-icon-btn svg {
	width: 24px;
	height: 24px;
}

.thui-settings-btn {
	position: static;
	right: auto;
	top: auto;
	transform: none;
	z-index: 1;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: #8b98a5;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease, background 0.15s ease;
}

.thui-settings-btn:hover {
	color: var(--blue);
	background: var(--hover);
}

.thui-settings-btn svg {
	width: 24px;
	height: 24px;
}

.thui-settings {
	position: fixed;
	inset: 0;
	z-index: 70;
	pointer-events: none;
}

.thui-settings.is-open {
	pointer-events: auto;
}

.thui-settings-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(15, 20, 25, 0.2);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.thui-settings.is-open .thui-settings-backdrop {
	opacity: 1;
}

.thui-settings-card {
	position: absolute;
	top: 84px;
	right: 16px;
	left: auto;
	width: min(280px, calc(100vw - 32px));
	background: var(--surface);
	border-radius: 16px;
	border: 1px solid var(--border);
	box-shadow: 0 14px 40px var(--shadow);
	overflow: hidden;
	opacity: 0;
	transform: translateY(-6px) scale(0.98);
	transform-origin: top right;
	transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.thui-settings.is-open .thui-settings-card {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.thui-settings-title {
	padding: 14px 16px 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--mute);
}

.thui-settings-item {
	display: block;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
	width: 100%;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.thui-settings-item--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.thui-settings-chev {
	flex: 0 0 auto;
	color: var(--mute);
}

.thui-settings-item:hover,
.thui-settings-item:focus-visible {
	background: var(--hover);
}

.thui-settings-item.is-danger {
	color: #c0154b;
}

.thui-settings-sep {
	height: 1px;
	margin: 4px 16px;
	background: var(--line);
}

.thui-settings-body {
	padding: 4px 0;
}

.thui-appear-head {
	display: grid;
	grid-template-columns: 40px 1fr 40px;
	align-items: center;
	padding: 8px 8px 4px;
}

.thui-appear-back {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.thui-appear-back:hover {
	background: var(--hover);
}

.thui-appear-title {
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}

.thui-appear-spacer {
	width: 40px;
	height: 40px;
}

.thui-appear-segbar {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 4px;
	margin: 8px 14px 16px;
	padding: 4px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--ink) 7%, var(--surface));
	border: 1px solid var(--line);
}

.thui-appear-segbar--themes {
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 6px;
}

.thui-appear-seg {
	min-height: 40px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--mute);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.thui-appear-seg--theme {
	min-height: 48px;
	flex-direction: column;
	gap: 6px;
	padding: 10px 8px;
	font-size: 13px;
}

.thui-appear-seg:hover {
	color: var(--ink);
}

.thui-appear-seg.is-on {
	background: var(--surface);
	color: var(--ink);
	box-shadow: 0 1px 3px var(--shadow);
}

.thui-appear-seg svg {
	display: block;
}

.thui-appear-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--theme-bg, var(--feed));
	box-shadow: inset -5px 0 0 0 var(--theme-accent, var(--ink));
}

.thui-settings-theme-swatch--classic {
	--theme-bg: #f7f8fa;
	--theme-accent: #1da1f2;
}

.thui-settings-theme-swatch--light {
	--theme-bg: #fafafa;
	--theme-accent: #0f1419;
}

.thui-settings-theme-swatch--dark-classic {
	--theme-bg: #121212;
	--theme-accent: #1da1f2;
}

.thui-settings-theme-swatch--dark {
	--theme-bg: #181818;
	--theme-accent: #f5f5f5;
}

.thui-stage {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	padding: 12px 10px 24px;
	min-height: 0;
	position: relative;
	z-index: 1;
	background: var(--bg);
	overflow: hidden;
	overflow-anchor: none;
}

html:has(#feed-list) .thui-stage,
html:has(#post-root) .thui-stage {
	padding-bottom: 0;
}

.thui-stage-inner {
	width: min(var(--feed-w), 100%);
	min-height: 0;
	align-self: stretch;
	background: var(--feed);
	border-radius: var(--radius) var(--radius) 0 0;
	padding: 0;
	border: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	box-shadow: 0 1px 2px rgba(15, 20, 25, 0.03);
	overflow-anchor: none;
	position: relative;
	display: flex;
	flex-direction: column;
}

.thui-stage-inner::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

html:not(:has(#feed-list)):not(:has(#post-root)):not(:has(.is-dms)):not(:has(.is-profile)) .thui-stage-inner {
	min-height: calc(100dvh - var(--top-h) - 12px);
	height: auto;
	align-self: auto;
	display: block;
	padding: 0 0 48px;
	overflow: hidden;
	overscroll-behavior: auto;
}

.thui-composer {
	flex: 0 0 auto;
	background: var(--feed);
	border-radius: var(--radius);
	padding: 14px 16px;
	margin: 12px 12px 0;
	border: 1px solid var(--border);
	box-shadow: 0 1px 2px var(--shadow);
	cursor: text;
	transition: box-shadow 0.28s ease;
	/* Keep scroll from re-anchoring the card when height animates */
	overflow-anchor: none;
}

.thui-composer.is-expanded {
	box-shadow: 0 8px 24px rgba(15, 20, 25, 0.05);
}

.thui-composer-row {
	position: relative;
	/* Avatar is absolutely pinned; main column fills the row */
	padding-left: 58px; /* 46px avatar + 12px gap */
}

.thui-composer-avatar {
	position: absolute;
	top: 0;
	left: 0;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	background: #e8eef3;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 15px;
	color: var(--blue);
	overflow: hidden;
	/* Out of flow — expand/collapse cannot move it */
	pointer-events: none;
}

.thui-composer-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.thui-composer-main {
	min-width: 0;
}

.thui-composer-field {
	position: relative;
	/* Match avatar height so first text line stays optically centered without moving the avatar */
	min-height: 46px;
	padding-top: 11px;
	box-sizing: border-box;
}

.thui-composer.is-expanded .thui-composer-field {
	/* Keep the same top padding when expanded — only textarea/actions animate */
	min-height: 46px;
	padding-top: 11px;
}

.thui-composer-hint {
	position: absolute;
	left: 0;
	top: 11px;
	right: 0;
	height: 24px;
	display: flex;
	align-items: center;
	pointer-events: none;
	color: var(--mute);
	font-size: 15px;
	line-height: 1.5;
	overflow: hidden;
	transition: opacity 0.22s ease;
}

.thui-composer.is-expanded .thui-composer-hint,
.thui-composer.has-text .thui-composer-hint {
	opacity: 0;
}

.thui-composer-hint-text {
	display: inline-block;
	will-change: transform, opacity;
	transition: opacity 0.32s ease, transform 0.32s ease;
}

.thui-composer-hint-text.is-leave {
	opacity: 0;
	transform: translateY(-8px);
}

.thui-composer-hint-text.is-enter {
	opacity: 0;
	transform: translateY(8px);
}

.thui-composer textarea {
	display: block;
	width: 100%;
	border: 0;
	resize: none;
	outline: none;
	background: transparent;
	height: 24px;
	line-height: 1.5;
	font-size: 15px;
	overflow: hidden;
	transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.thui-composer.is-expanded textarea {
	height: 48px;
	overflow: auto;
}

.thui-composer-actions {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.thui-composer.is-expanded .thui-composer-actions {
	grid-template-rows: 1fr;
}

.thui-composer-actions-inner {
	overflow: hidden;
	min-height: 0;
}

.thui-composer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	opacity: 0;
	transform: translateY(-4px);
	padding-top: 0;
	transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), padding-top 0.32s ease;
}

.thui-composer.is-expanded .thui-composer-bar {
	opacity: 1;
	transform: translateY(0);
	padding-top: 8px;
}

.thui-composer-tools {
	display: flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
}

.thui-tool {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #c4ccd4;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease, color 0.15s ease;
}

.thui-tool svg {
	width: 22px;
	height: 22px;
}

.thui-tool-gif {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 3px 5px;
	border: 1.6px solid currentColor;
	border-radius: 6px;
}

.thui-tool:hover,
.thui-tool.is-on {
	color: var(--blue);
	background: transparent;
}

.thui-composer-end {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.thui-composer-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 12px;
}

.thui-preview {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: var(--surface-2);
	height: 112px;
	flex: 0 0 auto;
}

.thui-preview--landscape {
	aspect-ratio: 4 / 3;
	width: calc(112px * 4 / 3);
}

.thui-preview--portrait {
	aspect-ratio: 3 / 4;
	width: calc(112px * 3 / 4);
}

.thui-preview img,
.thui-preview video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.thui-preview.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.45);
}

.thui-preview-x {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 20, 25, 0.72);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.thui-composer-place {
	padding-top: 10px;
}

.thui-place-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(29, 161, 242, 0.1);
	color: var(--blue);
	font-size: 13px;
	font-weight: 650;
}

.thui-place-chip svg {
	flex: 0 0 auto;
}

.thui-place-x {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0 0 0 2px;
}

.thui-pop {
	position: fixed;
	z-index: 60;
	width: min(320px, calc(100vw - 24px));
}

.thui-pop-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: 0 12px 40px var(--shadow);
	overflow: hidden;
	animation: thui-pop-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes thui-pop-in {
	from {
		opacity: 0;
		transform: translateY(6px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.thui-pop-head {
	display: grid;
	gap: 8px;
	padding: 12px 12px 8px;
}

.thui-pop-head strong {
	font-size: 14px;
}

.thui-pop-search {
	width: 100%;
	box-sizing: border-box;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--surface-2);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	outline: none;
}

.thui-pop-search:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.15);
}

.thui-pop-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	padding: 0 10px 10px;
	max-height: 260px;
	overflow: auto;
}

.thui-gif-item {
	border: 0;
	padding: 0;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 1;
	cursor: pointer;
	background: #eef2f6;
}

.thui-gif-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.thui-pop-foot,
.thui-pop-empty {
	margin: 0;
	padding: 8px 12px 12px;
	font-size: 12px;
	color: var(--mute);
	text-align: center;
}

.thui-emoji-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 2px;
	padding: 4px 8px 12px;
	max-height: 240px;
	overflow: auto;
}

.thui-emoji-btn {
	border: 0;
	background: transparent;
	border-radius: 10px;
	font-size: 22px;
	line-height: 1.4;
	cursor: pointer;
	padding: 4px;
}

.thui-emoji-btn:hover {
	background: var(--hover);
}

.thui-pop-card--soon {
	padding: 22px 18px;
	text-align: center;
}

.thui-soon-ico {
	font-size: 28px;
	margin-bottom: 8px;
}

.thui-pop-card--soon strong {
	display: block;
	font-size: 15px;
	margin-bottom: 6px;
}

.thui-pop-card--soon p {
	margin: 0;
	font-size: 13px;
	color: var(--mute);
	line-height: 1.45;
}

.thui-place-list {
	max-height: 260px;
	overflow: auto;
	padding: 0 6px 8px;
}

.thui-place-item {
	width: 100%;
	display: grid;
	gap: 2px;
	text-align: left;
	border: 0;
	background: transparent;
	border-radius: 12px;
	padding: 10px 10px;
	cursor: pointer;
}

.thui-place-item:hover {
	background: rgba(29, 161, 242, 0.08);
}

.thui-place-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
}

.thui-place-label {
	font-size: 12px;
	color: var(--mute);
	line-height: 1.35;
}

.thui-place-item--custom .thui-place-name {
	color: var(--blue);
}

.thui-place-item--custom .thui-place-label {
	color: color-mix(in srgb, var(--blue) 70%, var(--mute));
}

.post-media {
	position: relative;
	margin: 10px 0 4px;
	background: transparent;
	--media-h: min(420px, 70vw);
}

.post-media-rail {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	touch-action: pan-x;
}

.post-media-rail::-webkit-scrollbar {
	display: none;
}

.post-media-item {
	position: relative;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--surface-2);
	scroll-snap-align: start;
	cursor: zoom-in;
	color: inherit;
	font: inherit;
	text-align: left;
	-webkit-tap-highlight-color: transparent;
	transition: opacity 0.15s ease;
	/* Unknown orientation: treat as landscape until dims resolve */
	width: min(100%, calc(var(--media-h) * 4 / 3));
	height: auto;
	aspect-ratio: 4 / 3;
	max-height: var(--media-h);
}

.post-media-item--landscape {
	aspect-ratio: 4 / 3;
	width: min(100%, calc(var(--media-h) * 4 / 3));
	max-height: var(--media-h);
}

.post-media-item--portrait {
	aspect-ratio: 3 / 4;
	width: min(72%, calc(var(--media-h) * 3 / 4));
	max-height: var(--media-h);
}

.post-media--1 .post-media-item--landscape {
	width: 100%;
	max-width: 100%;
	max-height: min(360px, 52vw);
}

.post-media--1 .post-media-item--portrait {
	width: min(72%, calc(var(--media-h) * 3 / 4));
	max-height: var(--media-h);
}

/* Multi: shared fixed height so every slide matches; width follows orientation */
.post-media--multi {
	--media-h: min(400px, 68vw);
}

.post-media--multi .post-media-rail {
	align-items: stretch;
	height: var(--media-h);
	cursor: grab;
}

.post-media--multi .post-media-rail.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.post-media--multi .post-media-item,
.post-media--multi .post-media-item--landscape,
.post-media--multi .post-media-item--portrait {
	height: 100%;
	max-height: none;
	width: auto;
	max-width: none;
}

.post-media--multi .post-media-item,
.post-media--multi .post-media-item--landscape {
	aspect-ratio: 4 / 3;
	/* Leave a peek of the next slide */
	width: min(calc(100% - 36px), calc(var(--media-h) * 4 / 3));
}

.post-media--multi .post-media-item--portrait {
	aspect-ratio: 3 / 4;
	width: calc(var(--media-h) * 3 / 4);
}

.post-media-item:hover {
	opacity: 0.96;
}

.post-media-item img,
.post-media-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	pointer-events: none;
}

.post-media-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
	pointer-events: none;
}

.post-media-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 14px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-50%, -50%);
}

.post-media-count {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	min-width: 34px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.3;
	text-align: center;
	pointer-events: none;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

body.thui-lightbox-open {
	overflow: hidden;
}

.thui-lightbox {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease;
}

.thui-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.thui-lightbox-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.88);
	cursor: zoom-out;
}

.thui-lightbox-stage {
	position: relative;
	z-index: 1;
	max-width: min(960px, calc(100vw - 48px));
	max-height: calc(100dvh - 72px);
	display: grid;
	place-items: center;
}

.thui-lightbox-media {
	max-width: 100%;
	max-height: calc(100dvh - 72px);
	width: auto;
	height: auto;
	border-radius: 10px;
	object-fit: contain;
	background: #000;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.thui-lightbox-close,
.thui-lightbox-nav {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background 0.15s ease;
}

.thui-lightbox-close:hover,
.thui-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.22);
}

.thui-lightbox-close {
	top: 16px;
	right: 16px;
	width: 42px;
	height: 42px;
}

.thui-lightbox-nav {
	top: 50%;
	width: 44px;
	height: 44px;
	transform: translateY(-50%);
}

.thui-lightbox-prev {
	left: 12px;
}

.thui-lightbox-next {
	right: 12px;
}

.thui-lightbox-count {
	position: absolute;
	z-index: 2;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	font-weight: 650;
}

@media (max-width: 640px) {
	.post-media {
		--media-h: min(380px, 78vw);
	}

	.post-media--multi {
		--media-h: min(360px, 74vw);
	}

	.post-media-item {
		border-radius: 12px;
	}

	.post-media--1 .post-media-item--landscape {
		max-height: min(320px, 58vw);
	}

	.thui-lightbox-stage {
		max-width: calc(100vw - 16px);
	}

	.thui-lightbox-nav {
		display: none;
	}
}

.post-place {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 6px 0 2px;
	color: var(--blue);
	font-size: 13px;
	font-weight: 650;
}

.thui-count {
	font-size: 12px;
	color: var(--mute);
}

.thui-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--blue);
	color: var(--cta-fg);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}

.thui-btn:disabled {
	opacity: 0.45;
	cursor: default;
}

.thui-btn-wide {
	min-width: 220px;
	min-height: 44px;
	text-decoration: none;
}

.thui-msg {
	margin: 8px 0 0;
	font-size: 13px;
	color: #c0154b;
}

.thui-feed {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	min-height: 0;
	margin-top: 12px;
	border-top: 1px solid var(--line);
	overflow: visible;
	padding-bottom: 0;
}

.thui-feed-skel {
	display: flex;
	flex-direction: column;
}

.thui-feed-skel-row {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 12px;
	padding: 14px 16px 16px;
	border-bottom: 1px solid var(--line);
}

.thui-feed-skel-avatar,
.thui-feed-skel-line {
	background: color-mix(in srgb, var(--mute) 18%, var(--feed));
	border-radius: 999px;
}

.thui-feed-skel-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
}

.thui-feed-skel-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 4px;
}

.thui-feed-skel-line {
	height: 11px;
	width: 100%;
}

.thui-feed-skel-line--sm {
	width: 42%;
}

.thui-feed-skel-line--md {
	width: 68%;
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes thui-feed-shimmer {
		0% {
			opacity: 0.55;
		}
		50% {
			opacity: 1;
		}
		100% {
			opacity: 0.55;
		}
	}

	@keyframes thui-feed-in {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}

	.thui-feed-skel-avatar,
	.thui-feed-skel-line {
		animation: thui-feed-shimmer 1.1s ease-in-out infinite;
	}

	.post.is-enter {
		animation: thui-feed-in 0.28s ease both;
	}
}

.thui-empty {
	margin: 40px 16px;
	text-align: center;
	color: var(--mute);
	font-size: 14px;
}

.thui-empty--soft {
	margin: 24px 16px 32px;
}

.thui-explore-chrome {
	padding: 14px 16px 8px;
	border-bottom: 1px solid var(--line);
}

.thui-explore-search-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.thui-explore-field {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 14px;
	border-radius: 14px;
	background: var(--surface-2);
	color: var(--mute);
	cursor: text;
}

.thui-explore-field:focus-within {
	color: var(--ink);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 35%, transparent);
}

.thui-explore-field-ico {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.thui-explore-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	letter-spacing: 0.01em;
}

.thui-explore-input::placeholder {
	color: var(--mute);
}

.thui-explore-input::-webkit-search-decoration,
.thui-explore-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.thui-explore-close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--surface-2);
	color: var(--ink);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.thui-explore-close:hover {
	color: var(--blue);
}

.thui-explore-chips {
	display: flex;
	gap: 8px;
	padding: 12px 16px 4px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.thui-explore-chips::-webkit-scrollbar {
	display: none;
}

.thui-explore-chip {
	flex: 0 0 auto;
	border: 0;
	border-radius: 12px;
	padding: 8px 12px;
	background: var(--surface-2);
	color: var(--ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	opacity: 0;
	animation: thui-chip-in 0.28s ease forwards;
	transition: background 0.15s ease, color 0.15s ease;
}

.thui-explore-chip:hover {
	background: color-mix(in srgb, var(--blue) 12%, var(--surface-2));
	color: var(--blue);
}

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

.thui-explore-topics {
	padding: 8px 0 20px;
}

.thui-explore-topics-head {
	padding: 16px 16px 10px;
	border-left: 3px solid var(--blue);
	margin: 8px 16px 4px;
	padding-left: 12px;
}

.thui-explore-topics-title {
	margin: 0;
	font-size: 18px;
	font-weight: 750;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.thui-explore-topics-sub {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--mute);
	line-height: 1.4;
}

.thui-explore-topic {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 72px;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: transparent;
	color: inherit;
	text-align: left;
	font: inherit;
	cursor: pointer;
	opacity: 0;
	animation: thui-topic-in 0.32s ease forwards;
	transition: background 0.15s ease;
}

.thui-explore-topic:hover {
	background: color-mix(in srgb, var(--blue) 5%, transparent);
}

.thui-explore-topic-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.thui-explore-topic-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.35;
}

.thui-explore-topic-blurb,
.thui-explore-topic-meta {
	font-size: 13px;
	color: var(--mute);
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.thui-explore-topic-thumb {
	width: 72px;
	height: 72px;
	border-radius: 12px;
	object-fit: cover;
	background: var(--surface-2);
	display: block;
}

.thui-explore-topic-thumb--empty {
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--blue) 18%, var(--surface-2)), var(--surface-2));
}

@keyframes thui-topic-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.thui-explore-skel {
	padding: 16px;
	display: grid;
	gap: 12px;
}

.thui-explore-skel i {
	display: block;
	height: 64px;
	border-radius: 12px;
	background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 60%, #fff), var(--surface-2));
	background-size: 200% 100%;
	animation: thui-feed-shimmer 1.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.thui-explore-chip,
	.thui-explore-topic {
		animation: none;
		opacity: 1;
	}
}

.thui-search-people {
	padding: 12px 0 4px;
	border-bottom: 1px solid var(--line);
}

.thui-search-people-title {
	margin: 0 16px 8px;
	font-size: 13px;
	font-weight: 650;
	color: var(--mute);
	letter-spacing: 0.02em;
}

.thui-search-person {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px 16px;
	color: inherit;
	text-decoration: none;
	transition: background 0.15s ease;
}

.thui-search-person:hover {
	background: color-mix(in srgb, var(--brand, #2563eb) 6%, transparent);
}

.thui-search-person-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--surface-2, #eceff3);
	display: grid;
	place-items: center;
	font-weight: 650;
	color: var(--ink);
}

.thui-search-person-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.thui-search-person-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.thui-search-person-name {
	font-size: 15px;
	font-weight: 650;
	color: var(--ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.thui-search-person-handle {
	font-size: 13px;
	color: var(--mute);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.is-searching #composer-wrap,
body.is-searching #composer-pop {
	display: none !important;
}

body.is-searching #nav-search.is-active {
	color: var(--blue);
}

.post {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 12px;
	padding: 14px 16px 10px;
	background: transparent;
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid var(--line);
}

.post--openable {
	cursor: pointer;
	transition: background 0.12s ease;
}

.post--openable:hover {
	background: color-mix(in srgb, var(--ink) 3.5%, transparent);
}

.post--openable:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--blue) 55%, transparent);
	outline-offset: -2px;
}

.post--detail {
	border-bottom: 0;
	padding-bottom: 14px;
}

.post--detail .post-menu {
	display: none;
}

.post-avatar-link {
	display: block;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.post-avatar-link .post-avatar {
	display: block;
}

.post-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	background: #e8eef3;
}

.post-avatar--fallback {
	display: grid;
	place-items: center;
	font-weight: 800;
	color: var(--blue);
}

.post-main {
	min-width: 0;
}

.post-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 20px;
}

.post-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	min-width: 0;
	line-height: 1.25;
	font-size: 14px;
}

.post-user-link {
	font-weight: 700;
	color: var(--ink);
}

.post-user-link:hover {
	color: var(--blue);
}

.post-handle,
.post-dot,
.post-time {
	color: var(--mute);
	font-weight: 400;
	font-size: 13px;
}

.post-handle:hover,
.post-time:hover {
	color: var(--blue);
}

.post-text {
	margin: 2px 0 0;
	font-size: 15px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

.post-text a {
	color: var(--blue);
}

.post-actions {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 8px 0 0;
	margin-left: -10px;
	max-width: 520px;
}

.post-act {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--mute);
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease, background 0.15s ease;
}

.post-act:hover {
	background: rgba(15, 20, 25, 0.04);
	color: #5b6b7c;
}

.post-act-ico {
	display: inline-flex;
	width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.post-act-ico svg {
	width: 24px;
	height: 24px;
	display: block;
}

.post-act-n {
	display: inline-block;
	font-variant-numeric: tabular-nums;
	overflow: hidden;
	white-space: nowrap;
	vertical-align: middle;
}

.post-act-n:empty {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes thui-react-bump {
		0% {
			transform: scale(1);
		}
		35% {
			transform: scale(1.28);
		}
		70% {
			transform: scale(0.92);
		}
		100% {
			transform: scale(1);
		}
	}

	.post-act-ico.is-bump {
		animation: thui-react-bump 0.42s cubic-bezier(0.22, 1, 0.36, 1);
	}
}

.post-act-label {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.post-act--push {
	font-weight: 600;
}

.post-act--push:hover,
.post-act--push.is-on {
	color: var(--push);
	background: rgba(26, 140, 255, 0.08);
}

.post-act--push.is-on .post-act-ico svg {
	stroke-width: 2.35;
}

.post-act--like:hover,
.post-act--like.is-on {
	color: #e0245e;
	background: rgba(224, 36, 94, 0.08);
}

.post-act--like.is-on .post-act-ico svg {
	fill: currentColor;
	stroke: currentColor;
}

.post-act.is-on:not(.post-act--push):not(.post-act--like) {
	color: var(--ink);
}

.post-act.is-on:not(.post-act--push):not(.post-act--like) .post-act-ico svg {
	fill: currentColor;
	stroke: currentColor;
}

.post-more {
	border: 0;
	background: transparent;
	color: var(--mute);
	padding: 2px;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 8px;
	flex-shrink: 0;
	line-height: 0;
}

.post-more:hover {
	background: rgba(15, 20, 25, 0.05);
}

.post-menu {
	position: relative;
}

.post-sheet {
	position: fixed;
	inset: 0;
	z-index: 80;
	pointer-events: none;
}

.post-sheet-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: transparent;
	pointer-events: auto;
	opacity: 1;
}

.post-sheet-card {
	position: fixed;
	z-index: 1;
	pointer-events: auto;
	overflow: hidden;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: 0 12px 36px var(--shadow);
	transform: translateY(-4px) scale(0.98);
	opacity: 0;
	transform-origin: top right;
	transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
	-webkit-mask-image: -webkit-radial-gradient(white, black);
}

.post-sheet.is-open .post-sheet-card {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.post-sheet-panel {
	background: transparent;
	color: var(--ink);
	border-radius: 0;
	overflow: visible;
	border: 0;
	box-shadow: none;
	max-height: inherit;
	overflow-y: auto;
}

.post-sheet-item {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	min-height: 48px;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
}

.post-sheet-item:first-child:hover,
.post-sheet-item:first-child:focus-visible {
	border-radius: 17px 17px 0 0;
}

.post-sheet-item:last-child:hover,
.post-sheet-item:last-child:focus-visible {
	border-radius: 0 0 17px 17px;
}

.post-sheet-item:hover,
.post-sheet-item:focus-visible {
	background: rgba(29, 161, 242, 0.08);
}

.post-sheet-item.is-active {
	color: var(--blue);
}

.post-sheet-item.is-danger {
	color: #c0154b;
}

.post-sheet-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: currentColor;
	opacity: 0.88;
}

.post-sheet-ico svg {
	width: 22px;
	height: 22px;
}

.post-sheet-sep {
	height: 1px;
	background: var(--line);
	margin: 4px 10px;
}

.post-sheet-embed {
	padding: 8px 14px 14px;
}

.post-sheet-embed-code {
	width: 100%;
	min-height: 88px;
	resize: none;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px;
	background: var(--bg);
	color: var(--ink);
	font-size: 12px;
	line-height: 1.45;
	margin-bottom: 8px;
}

.thui-toast {
	position: fixed;
	left: 50%;
	bottom: calc(28px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%) translateY(12px);
	z-index: 90;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(15, 20, 25, 0.92);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.thui-toast.is-on {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.thui-login-fab {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 40;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 10px 28px rgba(15, 20, 25, 0.18);
}

.thui-soon-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 10px;
	padding: 48px 24px;
}

.thui-soon-card h1 {
	margin: 8px 0 0;
	font-size: 28px;
	letter-spacing: -0.03em;
}

.thui-soon-card p {
	margin: 0;
	max-width: 36ch;
	color: var(--mute);
	line-height: 1.5;
}

.thui-soon-card a {
	color: var(--blue);
	font-weight: 600;
}

.thui-profile {
	flex: 0 0 auto;
	width: 100%;
	background: transparent;
	border-radius: 0;
	padding: 0;
	margin: 0;
	border: 0;
	overflow: visible;
}

.pf-skel {
	display: block;
}

.pf-skel-banner {
	height: 168px;
	background: color-mix(in srgb, var(--mute) 16%, var(--feed));
}

.pf-skel-body {
	padding: 0 16px 14px;
}

.pf-skel-identity {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	margin-top: -36px;
}

.pf-skel-avatar {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	border: 4px solid var(--feed);
	background: color-mix(in srgb, var(--mute) 20%, var(--feed));
	flex: 0 0 auto;
}

.pf-skel-idtext {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 6px;
}

.pf-skel-actions {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

.pf-skel-btn {
	height: 36px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--mute) 16%, var(--feed));
	flex: 1;
}

.pf-skel-ico {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--mute) 16%, var(--feed));
	flex: 0 0 auto;
}

.pf-skel-bio {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pf-skel-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	padding: 12px 16px 0;
	border-top: 1px solid var(--line);
	margin-top: 8px;
}

.pf-skel-tab {
	height: 28px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--mute) 14%, var(--feed));
}

@media (prefers-reduced-motion: no-preference) {
	.pf-skel-banner,
	.pf-skel-avatar,
	.pf-skel-idtext .thui-feed-skel-line,
	.pf-skel-btn,
	.pf-skel-ico,
	.pf-skel-bio .thui-feed-skel-line,
	.pf-skel-tab {
		animation: thui-feed-shimmer 1.1s ease-in-out infinite;
	}

	.thui-profile.is-enter {
		animation: thui-feed-in 0.28s ease both;
	}
}

.thui-profile-head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.thui-profile-avatar {
	width: 64px;
	height: 64px;
	font-size: 24px;
}

.thui-profile-name {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.thui-profile-handle {
	margin-top: 2px;
	color: var(--mute);
	font-size: 14px;
}

/* ── Profile page (reference layout) ── */
.is-profile .thui-stage {
	overflow: hidden;
}

.is-profile .thui-stage-inner {
	padding-top: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

/* Corner back control on other people's profiles */
.pf-back {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 8;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--feed) 72%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 12%, transparent);
	color: var(--ink);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.pf-back[hidden] {
	display: none !important;
}

.pf-back svg {
	width: 22px;
	height: 22px;
	display: block;
}

.pf-back:hover {
	background: color-mix(in srgb, var(--feed) 88%, transparent);
}

.pf-back:active {
	transform: scale(0.94);
}

@keyframes pf-back-in {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.pf-back:not([hidden]) {
		animation: pf-back-in 0.22s ease both;
	}
}

.pf-banner {
	position: relative;
	margin: 0;
	flex: 0 0 auto;
	flex-shrink: 0;
	width: 100%;
	height: 168px;
	min-height: 168px;
	border-radius: 0;
	overflow: hidden;
	background: linear-gradient(135deg, #d7e8f5 0%, #eef3f8 45%, #f7f1ea 100%);
}

.pf-banner-img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 168px;
	object-fit: cover;
}

.pf-banner-fallback {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, 0.7), transparent 55%),
		linear-gradient(135deg, #c9daf0 0%, #e8eef6 42%, #f3ebe3 100%);
}

.pf-banner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48%;
	background: linear-gradient(to bottom, transparent, var(--fade-to-feed));
	pointer-events: none;
}

.pf-body {
	padding: 0 18px 8px;
	margin-top: -34px;
	position: relative;
	z-index: 1;
}

.pf-identity {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 14px;
	align-items: end;
}

.pf-avatar {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--feed);
	background: var(--surface-2);
	box-shadow: 0 2px 10px var(--shadow);
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 28px;
	color: var(--blue);
	overflow: hidden;
}

.pf-avatar--fallback {
	display: grid;
}

.pf-idtext {
	min-width: 0;
	padding-bottom: 4px;
}

.pf-name {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.pf-handle {
	margin-top: 2px;
	color: var(--mute);
	font-size: 14px;
}

.pf-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 8px;
	font-size: 13px;
	color: #5b6b7c;
}

.pf-stat strong {
	color: var(--ink);
	font-weight: 800;
	margin-right: 2px;
}

.pf-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
}

.pf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1.5px solid var(--btn-border);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	flex: 1;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pf-btn:hover {
	background: var(--surface-2);
}

/* Classic: outline only (match icon buttons). Dark themes: filled primary. */
.pf-btn--primary {
	border-color: var(--ink);
	background: var(--btn-bg);
	color: var(--btn-fg);
}

.pf-btn--primary:hover {
	background: var(--surface-2);
}

html[data-theme="dark"] .pf-btn--primary,
html[data-theme="dark-classic"] .pf-btn--primary {
	border-color: transparent;
	background: var(--btn-primary-bg);
	color: var(--btn-primary-fg);
}

html[data-theme="dark"] .pf-btn--primary:hover,
html[data-theme="dark-classic"] .pf-btn--primary:hover {
	filter: brightness(0.94);
	background: var(--btn-primary-bg);
}

.pf-btn[aria-pressed="true"] {
	border-color: var(--btn-border);
	background: transparent;
	color: var(--btn-fg);
}

.pf-btn[aria-pressed="true"]:hover {
	background: var(--hover);
}

.pf-icon-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid var(--btn-border);
	background: var(--btn-bg);
	color: var(--btn-fg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease;
}

.pf-icon-btn:hover {
	background: var(--surface-2);
}

.pf-bio {
	margin: 16px 0 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ink);
	white-space: pre-wrap;
	word-break: break-word;
}

.pf-bio--empty {
	color: var(--mute);
	cursor: pointer;
}

.pf-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.pf-tag {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--mute);
	font-size: 13px;
	font-weight: 600;
}

.pf-tabs {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin: 18px 0 0;
	padding: 0 12px;
	border-bottom: 1px solid var(--line);
}

.pf-tab {
	position: relative;
	border: 0;
	background: transparent;
	color: var(--mute);
	font-size: 15px;
	font-weight: 700;
	padding: 12px 4px 14px;
	cursor: pointer;
}

.pf-tab.is-on {
	color: var(--ink);
}

.pf-tab.is-on::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	border-radius: 999px 999px 0 0;
	background: var(--blue);
}

.is-profile .thui-feed {
	padding: 12px 12px 0;
	margin-top: 0;
	border-top: 0;
}

.is-profile .thui-feed .post {
	border: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	border-radius: 20px;
	padding: 14px;
	margin: 0 0 10px;
	background: var(--surface);
}

.is-profile .thui-feed .post:last-child {
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.is-profile .thui-stage {
		padding-top: max(52px, calc(env(safe-area-inset-top, 0px) + 44px));
		padding-left: 0;
		padding-right: 0;
		background: var(--bg);
		overflow: hidden;
	}

	.is-profile .thui-stage-inner {
		min-height: 0;
		align-self: stretch;
		border-radius: 32px 32px 0 0;
		box-shadow: 0 -1px 0 rgba(15, 20, 25, 0.04);
	}

	.is-profile .thui-head {
		display: none !important;
	}

	/* Top-right actions above the rounded profile card */
	.is-profile .thui-top-actions {
		display: inline-flex !important;
		position: fixed;
		top: max(4px, env(safe-area-inset-top, 0px));
		right: 6px;
		left: auto;
		transform: none;
		z-index: 60;
		gap: 0;
		pointer-events: auto;
	}

	.is-profile .thui-top-actions .thui-icon-btn,
	.is-profile .thui-top-actions .thui-settings-btn {
		display: inline-flex !important;
		position: static;
		width: 44px;
		height: 44px;
		border-radius: 12px;
		color: var(--ink);
		background: transparent;
		pointer-events: auto;
	}

	.is-profile .thui-top-actions .thui-icon-btn:hover,
	.is-profile .thui-top-actions .thui-icon-btn:active,
	.is-profile .thui-top-actions .thui-settings-btn:hover,
	.is-profile .thui-top-actions .thui-settings-btn:active {
		background: var(--hover);
	}

	.is-profile .thui-settings-card {
		top: calc(max(4px, env(safe-area-inset-top, 0px)) + 48px);
		left: auto;
		right: 12px;
		transform-origin: top right;
	}

	.pf-banner {
		height: 168px;
		/* Bottom arc finish; top is clipped by stage-inner radius */
		border-radius: 0 0 50% 50% / 0 0 48px 48px;
	}

	.pf-banner::after {
		height: 56%;
		background: linear-gradient(to bottom, transparent 10%, var(--fade-to-feed));
	}

	.pf-body {
		padding: 0 14px 8px;
	}

	.pf-identity {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 12px;
	}

	.pf-avatar {
		width: 76px;
		height: 76px;
	}

	.pf-tabs {
		gap: 20px;
	}

	.is-profile .thui-feed {
		padding: 10px 10px 0;
	}
}

/* ── Profile edit sheet (X-like modal) ── */
.pf-edit-open {
	overflow: hidden;
	position: fixed;
	inset: 0 auto 0 0;
	width: 100%;
}

.pf-edit {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: grid;
	place-items: center;
	padding: 16px;
}

.pf-edit-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(15, 20, 25, 0.45);
	cursor: pointer;
	animation: pf-edit-fade-in 0.24s ease both;
}

.pf-edit-card {
	position: relative;
	z-index: 1;
	width: min(600px, 100%);
	max-height: min(90dvh, 720px);
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border-radius: 16px;
	box-shadow: 0 12px 48px var(--shadow);
	overflow: hidden;
	animation: pf-edit-up 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pf-edit.is-closing .pf-edit-backdrop {
	animation: pf-edit-fade-out 0.24s ease both;
}

.pf-edit.is-closing .pf-edit-card {
	animation: pf-edit-down 0.26s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes pf-edit-up {
	from {
		transform: translateY(18px) scale(0.98);
		opacity: 0.55;
	}
	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

@keyframes pf-edit-down {
	from {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
	to {
		transform: translateY(22px) scale(0.98);
		opacity: 0;
	}
}

@keyframes pf-edit-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes pf-edit-fade-out {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

.pf-edit-head {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	display: grid;
	grid-template-columns: 40px 1fr auto;
	align-items: center;
	gap: 8px;
	min-height: 53px;
	padding: 8px 12px 0;
	border-bottom: 0;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 55%, transparent 100%);
	pointer-events: none;
}

.pf-edit-head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-align: left;
	justify-self: start;
	color: var(--ink);
}

.pf-edit-close {
	pointer-events: auto;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 20, 25, 0.08);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(6px);
}

.pf-edit-close:hover {
	background: rgba(15, 20, 25, 0.14);
}

.pf-edit-save {
	pointer-events: auto;
	min-height: 32px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--btn-primary-bg);
	color: var(--btn-primary-fg);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	justify-self: end;
}

.pf-edit-save:hover {
	filter: brightness(0.94);
}

.pf-edit-save:disabled {
	opacity: 0.5;
	cursor: default;
}

.pf-edit-scroll {
	overflow: auto;
	flex: 1;
	min-height: 0;
}

.pf-edit-media {
	position: relative;
	margin: 0 0 64px;
}

.pf-edit-banner {
	position: relative;
	height: 220px;
	margin: 0;
	overflow: hidden;
	background: #cfd9de;
	border-radius: 0;
}

.pf-edit-banner img,
.pf-edit-banner .pf-banner-fallback {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pf-edit-banner .pf-banner-fallback {
	background: linear-gradient(135deg, #cfd9de 0%, #aab8c2 100%);
}

.pf-edit-media-actions {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	pointer-events: none;
}

.pf-edit-cam {
	pointer-events: auto;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 20, 25, 0.72);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(2px);
}

.pf-edit-cam:hover {
	background: rgba(15, 20, 25, 0.86);
}

.pf-edit-cam--clear {
	background: rgba(15, 20, 25, 0.55);
}

.pf-edit-avatar {
	position: absolute;
	left: 16px;
	bottom: -52px;
	width: 104px;
	height: 104px;
	border: 0;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	z-index: 2;
}

.pf-edit-avatar-img {
	width: 104px;
	height: 104px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--surface-2);
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 36px;
	color: var(--blue);
	overflow: hidden;
	box-shadow: 0 0 0 4px var(--surface);
}

.pf-edit-avatar-cam {
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: rgba(15, 20, 25, 0.55);
	color: #fff;
	display: grid;
	place-items: center;
	opacity: 0;
	transition: opacity 0.15s ease, background 0.15s ease;
	pointer-events: none;
}

.pf-edit-avatar:hover .pf-edit-avatar-cam,
.pf-edit-avatar:focus-visible .pf-edit-avatar-cam {
	opacity: 1;
	background: rgba(15, 20, 25, 0.7);
}

@media (hover: none) {
	.pf-edit-avatar-cam {
		opacity: 1;
	}
}

.pf-edit-fields {
	padding: 12px 16px 24px;
	display: grid;
	gap: 18px;
}

.pf-edit-field {
	position: relative;
	display: block;
}

.pf-edit-label {
	position: absolute;
	left: 14px;
	top: 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--mute);
	pointer-events: none;
	line-height: 1;
}

.pf-edit-field input,
.pf-edit-field textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 28px 14px 12px;
	font: inherit;
	font-size: 17px;
	color: var(--ink);
	background: var(--surface);
	outline: none;
	resize: vertical;
	box-sizing: border-box;
	min-height: 56px;
}

.pf-edit-field textarea {
	min-height: 96px;
	line-height: 1.4;
}

.pf-edit-field input:focus,
.pf-edit-field textarea:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 1px var(--blue);
}

.pf-edit-field:focus-within .pf-edit-label {
	color: var(--blue);
}

.pf-edit-count {
	display: block;
	margin-top: 6px;
	text-align: right;
	font-size: 12px;
	color: var(--mute);
}

.pf-edit-msg {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
}

.pf-edit-msg.is-ok {
	color: #0a7a3e;
}

.pf-edit-msg.is-err {
	color: #c0154b;
}

@media (max-width: 640px) {
	.pf-edit {
		padding: 0;
		place-items: end center;
	}

	.pf-edit-card {
		width: 100%;
		max-height: min(96dvh, 100%);
		border-radius: 16px 16px 0 0;
	}

	.pf-edit-banner {
		height: 140px;
	}

	.pf-edit-avatar {
		width: 92px;
		height: 92px;
		bottom: -46px;
	}

	.pf-edit-avatar-img {
		width: 92px;
		height: 92px;
		font-size: 32px;
	}

	.pf-edit-media {
		margin-bottom: 56px;
	}
}

.thui-login-page {
	min-height: 100dvh;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 12px;
	padding: 24px;
	text-align: center;
}

.thui-login-page h1 {
	margin: 8px 0 0;
	font-size: 28px;
}

.thui-login-page p {
	margin: 0;
	color: var(--mute);
}

.thui-login-note {
	color: #c0154b !important;
}

.thui-back {
	margin-top: 8px;
	color: var(--mute);
	font-size: 14px;
}

/* ── Auth / register page (brand clouds, light+dark) ── */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.is-auth {
	--auth-bg: #ffffff;
	--auth-ink: #0f1419;
	--auth-mute: #536471;
	--auth-line: rgba(15, 20, 25, 0.1);
	--auth-field-bg: #ffffff;
	--auth-field-border: rgba(29, 161, 242, 0.22);
	--auth-cta-bg: var(--blue);
	--auth-cta-fg: #ffffff;
	--auth-cloud: #8ecfff;
	--auth-focus: rgba(29, 161, 242, 0.18);
	--auth-logo-color: #1da1f2;

	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--auth-bg);
	color: var(--auth-ink);
	position: relative;
	overflow-x: hidden;
}

html[data-theme="dark"] .is-auth,
.is-auth.theme-dark {
	--auth-bg: #0a0a0a;
	--auth-ink: #f5f5f5;
	--auth-mute: #9a9a9a;
	--auth-line: rgba(255, 255, 255, 0.12);
	--auth-field-bg: #0a0a0a;
	--auth-field-border: rgba(255, 255, 255, 0.22);
	--auth-cta-bg: var(--blue);
	--auth-cta-fg: var(--cta-fg);
	--auth-cloud: color-mix(in srgb, var(--blue) 42%, transparent);
	--auth-focus: rgba(255, 255, 255, 0.14);
	--auth-logo-color: #f5f5f5;
}

html[data-theme="dark-classic"] .is-auth {
	--auth-bg: #0a0a0a;
	--auth-ink: #f5f5f5;
	--auth-mute: #9a9a9a;
	--auth-line: rgba(255, 255, 255, 0.12);
	--auth-field-bg: #0a0a0a;
	--auth-field-border: rgba(255, 255, 255, 0.22);
	--auth-cta-bg: var(--blue);
	--auth-cta-fg: #ffffff;
	--auth-cloud: #4a9fd8;
	--auth-focus: rgba(29, 161, 242, 0.22);
	--auth-logo-color: #1da1f2;
}

html[data-theme="light"] .is-auth,
.is-auth.theme-light {
	--auth-bg: #ffffff;
	--auth-ink: #0f1419;
	--auth-mute: #536471;
	--auth-line: rgba(15, 20, 25, 0.1);
	--auth-field-bg: #ffffff;
	--auth-field-border: rgba(15, 20, 25, 0.22);
	--auth-cta-bg: var(--blue);
	--auth-cta-fg: #ffffff;
	--auth-cloud: #cfcfcf;
	--auth-focus: rgba(15, 20, 25, 0.12);
	--auth-logo-color: #0f1419;
}

.auth-hero {
	position: absolute;
	inset: 0 0 auto;
	height: min(42vh, 380px);
	pointer-events: none;
	overflow: hidden;
	mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.auth-cloud {
	position: absolute;
	fill: var(--auth-cloud);
	animation: auth-cloud-drift 14s ease-in-out infinite alternate;
}

.auth-cloud--a {
	width: min(42vw, 280px);
	top: 6%;
	left: -4%;
	opacity: 0.22;
	animation-duration: 16s;
}

.auth-cloud--b {
	width: min(36vw, 240px);
	top: 2%;
	right: -2%;
	opacity: 0.3;
	animation-delay: -3s;
	animation-duration: 18s;
}

.auth-cloud--c {
	width: min(28vw, 190px);
	top: 22%;
	left: 18%;
	opacity: 0.16;
	animation-delay: -6s;
}

.auth-cloud--d {
	width: min(34vw, 220px);
	top: 14%;
	right: 16%;
	opacity: 0.2;
	animation-delay: -8s;
	animation-duration: 15s;
}

.auth-cloud--e {
	width: min(48vw, 320px);
	top: 28%;
	left: 38%;
	opacity: 0.14;
	animation-delay: -2s;
	animation-duration: 20s;
}

@keyframes auth-cloud-drift {
	from {
		transform: translate(0, 0);
	}
	to {
		transform: translate(18px, -10px);
	}
}

.auth-main {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: clamp(160px, 26vh, 240px) 20px 36px;
	/* Prevent scroll anchoring from yanking the panel upward when fields expand */
	overflow-anchor: none;
}

.auth-panel {
	width: min(370px, 100%);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	overflow-anchor: none;
}

.auth-logo {
	display: block;
	width: min(280px, 78%);
	aspect-ratio: 1940 / 475;
	margin: 0 auto 26px;
	/* Exact sRGB paint via mask — Safari CSS filters oversaturate blue on iPhone */
	background-color: var(--auth-logo-color, #1da1f2);
	-webkit-mask: url("/brand/logo-thui.png") center / contain no-repeat;
	mask: url("/brand/logo-thui.png") center / contain no-repeat;
}

.auth-kicker {
	margin: 0 0 18px;
	font-size: 14px;
	font-weight: 650;
	color: var(--auth-ink);
}

.auth-panel--google .auth-kicker {
	margin-bottom: 28px;
}

.auth-panel--google .auth-google {
	margin-top: 0;
}

.auth-panel--google .auth-hint {
	margin-top: 20px;
}

.auth-modes {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin: 0 0 16px;
	border-bottom: 1px solid var(--auth-line);
}

.auth-modes::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 50%;
	height: 2px;
	border-radius: 2px 2px 0 0;
	background: var(--blue);
	transform: translateX(0);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-panel.is-register .auth-modes::after {
	transform: translateX(100%);
}

.auth-mode {
	min-height: 40px;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	background: transparent;
	color: var(--auth-mute);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: color 0.2s ease;
}

.auth-mode.is-active {
	color: var(--blue);
	border-bottom-color: transparent;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow-anchor: none;
}

.auth-field {
	display: block;
	margin: 0 0 12px;
}

.auth-field--extra {
	display: block;
	height: 0;
	opacity: 0;
	margin-bottom: 0 !important;
	overflow: hidden;
	pointer-events: none;
	overflow-anchor: none;
}

.auth-field--extra.is-open {
	pointer-events: auto;
}

.auth-field-clip {
	display: block;
}

.auth-field input {
	width: 100%;
	box-sizing: border-box;
	min-height: 54px;
	padding: 0 18px;
	border-radius: 16px;
	border: 1px solid var(--auth-field-border);
	background: var(--auth-field-bg);
	color: var(--auth-ink);
	font: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input::placeholder {
	color: var(--auth-mute);
}

.auth-field input:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px var(--auth-focus);
}

.auth-submit {
	margin-top: 4px;
	min-height: 52px;
	border: 0;
	border-radius: 16px;
	background: var(--auth-cta-bg);
	color: var(--auth-cta-fg);
	font: inherit;
	font-size: 15px;
	font-weight: 750;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.auth-submit:hover {
	opacity: 0.94;
}

.auth-submit:active {
	transform: scale(0.985);
}

.auth-submit:disabled {
	opacity: 0.55;
	cursor: default;
}

.auth-forgot {
	display: inline-block;
	margin: 14px auto 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--blue);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.auth-forgot:hover {
	text-decoration: underline;
}

.auth-hint {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--auth-mute);
}

.auth-or {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin: 22px 0;
	color: var(--auth-mute);
	font-size: 13px;
	font-weight: 600;
}

.auth-or::before,
.auth-or::after {
	content: "";
	height: 1px;
	background: var(--auth-line);
}

.auth-google {
	display: grid;
	grid-template-columns: 28px 1fr 18px;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 16px;
	border-radius: 16px;
	border: 1px solid var(--auth-field-border);
	background: var(--auth-field-bg);
	color: var(--auth-ink);
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-google:hover {
	border-color: var(--blue);
	background: rgba(29, 161, 242, 0.04);
}

.auth-google-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.auth-google-text {
	text-align: center;
}

.auth-google-chev {
	display: inline-flex;
	color: var(--auth-mute);
}

.auth-error,
.auth-success {
	margin: 14px 0 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
}

.auth-error {
	color: #c0154b;
}

.auth-error a {
	color: var(--blue);
	font-weight: 700;
}

.auth-success {
	color: #0a7a3e;
}

html[data-theme="dark"] .auth-error,
.is-auth.theme-dark .auth-error {
	color: #ff7a9c;
}

html[data-theme="dark"] .auth-success,
.is-auth.theme-dark .auth-success {
	color: #5ad18a;
}

html[data-theme="dark"] .auth-google:hover,
.is-auth.theme-dark .auth-google:hover {
	background: rgba(29, 161, 242, 0.08);
}

.auth-foot {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 14px;
	padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
	color: var(--auth-mute);
	font-size: 12px;
}

.auth-foot a {
	color: inherit;
	text-decoration: none;
}

.auth-foot a:hover {
	color: var(--blue);
}

@media (max-width: 640px) {
	.auth-main {
		padding-top: clamp(140px, 24vh, 200px);
		padding-left: 18px;
		padding-right: 18px;
	}

	.auth-logo {
		width: min(220px, 74%);
		margin-bottom: 20px;
	}

	.auth-hero {
		height: min(36vh, 300px);
	}

	.auth-cloud--a {
		width: 46vw;
	}

	.auth-cloud--b {
		width: 40vw;
	}

	.auth-cloud--e {
		width: 56vw;
		left: 28%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.auth-cloud,
	.auth-submit,
	.auth-google,
	.auth-modes::after,
	.auth-mode,
	.auth-field--extra {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 640px) {
	:root {
		--top-h: 0px;
		--head-h: 58px;
		--tab-h: 64px;
	}

	.thui-head {
		position: sticky;
		top: 0;
		z-index: 40;
		display: grid;
		grid-template-columns: 48px 1fr auto;
		align-items: center;
		height: calc(var(--head-h) + env(safe-area-inset-top, 0px));
		padding: env(safe-area-inset-top, 0px) 6px 0;
		background: rgba(255, 255, 255, 0.86);
		-webkit-backdrop-filter: saturate(180%) blur(16px);
		backdrop-filter: saturate(180%) blur(16px);
		border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
	}

	.thui-head-btn {
		width: 44px;
		height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0;
		background: transparent;
		color: var(--ink);
		border-radius: 12px;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.thui-head-btn svg {
		width: 22px;
		height: 22px;
	}

	.thui-head-mark {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		justify-self: center;
	}

	.thui-head-mark img {
		width: 44px;
		height: 44px;
		object-fit: contain;
	}

	.thui-head-actions {
		display: inline-flex;
		align-items: center;
		justify-self: end;
		gap: 0;
	}

	.thui-head-spacer {
		width: 44px;
		height: 44px;
		justify-self: end;
	}

	.thui-top {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 55;
		flex: none;
		height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
		display: flex;
		align-items: flex-start;
		justify-content: center;
		padding: 8px 18px 0;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: transparent;
		border-top: 0;
		pointer-events: none;
	}

	.thui-mark,
	.thui-top-spacer,
	.thui-top-actions {
		display: none !important;
	}

	.thui-nav {
		pointer-events: auto;
		width: min(420px, 100%);
		height: 62px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 2px;
		padding: 6px 8px;
		border-radius: 999px;
		background: rgba(28, 28, 30, 0.55);
		-webkit-backdrop-filter: saturate(180%) blur(24px);
		backdrop-filter: saturate(180%) blur(24px);
		border: 0.5px solid rgba(255, 255, 255, 0.18);
		box-shadow:
			0 10px 28px rgba(0, 0, 0, 0.22),
			inset 0 1px 0 rgba(255, 255, 255, 0.12);
	}

	@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
		.thui-nav {
			background: rgba(28, 28, 30, 0.88);
		}
	}

	.thui-nav-item {
		flex: 1 1 0;
		width: auto;
		height: 50px;
		min-height: 50px;
		border-radius: 999px;
		color: rgba(255, 255, 255, 0.78);
		background: transparent;
	}

	.thui-search {
		flex: 1 1 0;
		width: auto;
		height: 50px;
		min-height: 50px;
		overflow: visible;
		background: transparent !important;
		box-shadow: none !important;
	}

	.thui-search.is-open {
		width: auto;
	}

	.thui-search-toggle {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		height: 100%;
		pointer-events: auto !important;
	}

	.thui-search-input {
		display: none !important;
	}

	.thui-search-glyph {
		transform: none !important;
	}

	.thui-nav-item svg {
		width: 28px;
		height: 28px;
		stroke-width: 1.7;
	}

	.thui-nav-item:hover {
		color: #fff;
		background: transparent;
	}

	.thui-nav-item.is-active {
		color: #fff;
		background: rgba(255, 255, 255, 0.18);
		box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
	}

	.thui-stage {
		padding: 0 0 calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 8px);
		overflow: hidden;
	}

	html:has(#feed-list) .thui-stage,
	html:has(#post-root) .thui-stage {
		/* Keep clearance for the floating tab dock only */
		padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 8px);
	}

	.thui-stage-inner {
		width: 100%;
		min-height: 0;
		align-self: stretch;
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}

	html:not(:has(#feed-list)):not(:has(#post-root)):not(:has(.is-dms)):not(:has(.is-profile)) .thui-stage-inner {
		min-height: calc(100dvh - var(--head-h) - var(--tab-h) - env(safe-area-inset-bottom, 0px));
		height: auto;
		align-self: auto;
	}

	.thui-login-fab {
		display: none !important;
	}

	.thui-toast {
		bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom, 0px));
	}

	.thui-settings-card {
		top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 6px);
		left: 12px;
		right: auto;
		transform-origin: top left;
	}
}

/* ── Direct messages (Threads / IG minimal) ── */
html:has(.is-dms),
html:has(.is-dms) body {
	height: 100%;
	overflow: hidden;
}

html:has(.is-dms) .thui-app {
	height: 100dvh;
	max-height: 100dvh;
	overflow: hidden;
}

.is-dms .thui-stage {
	padding: 12px 16px 0;
}

.thui-stage-inner--dms {
	width: min(1480px, 100%);
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius) var(--radius) 0 0;
	background: var(--feed);
	border: 1px solid var(--line);
	border-bottom: 0;
}

.dm-shell {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	position: relative;
}

.dm-side,
.dm-inbox,
.dm-thread,
.dm-profile,
.dm-activity {
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: var(--feed);
}

.dm-side {
	flex: 1 1 auto;
}

.dm-activity {
	flex: 0 0 auto;
	padding: 12px 12px 8px;
	border-bottom: 1px solid var(--line);
}

.dm-activity-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
	padding: 0 4px;
}

.dm-activity-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--mute);
}

.dm-head,
.dm-thread-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 60px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
}

.dm-head {
	justify-content: space-between;
}

.dm-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.dm-thread-placeholder-title {
	font-size: 15px;
	font-weight: 500;
	color: var(--mute);
}

.dm-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.dm-list::-webkit-scrollbar {
	display: none;
}

.dm-row {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	margin: 0 8px;
	padding: 12px 12px;
	border: 0;
	border-radius: 16px;
	color: inherit;
	text-decoration: none;
}

.dm-row:hover,
.dm-row.is-active {
	background: var(--hover);
}

.dm-row.is-unread strong {
	font-weight: 700;
}

.dm-row-avatar,
.dm-peer-avatar-img,
.dm-row-avatar--fallback,
.dm-peer-avatar-img--fallback,
.dm-profile-avatar,
.dm-profile-avatar--fallback,
.dm-note-avatar,
.dm-note-avatar--fallback {
	border-radius: 50%;
	object-fit: cover;
	background: var(--surface-2);
	display: grid;
	place-items: center;
	font-weight: 650;
	color: var(--mute);
}

.dm-row-avatar,
.dm-row-avatar--fallback {
	width: 52px;
	height: 52px;
}

.dm-row-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dm-row-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.dm-row-top strong {
	font-size: 15px;
	font-weight: 600;
}

.dm-row-top time,
.dm-row-preview {
	color: var(--mute);
	font-size: 13px;
	font-weight: 400;
}

.dm-row-preview {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dm-row.is-unread .dm-row-preview {
	color: var(--ink);
}

.dm-back,
.dm-rail-toggle,
.dm-profile-close {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	flex: 0 0 auto;
}

.dm-rail-toggle {
	margin-left: auto;
}

.dm-back:hover,
.dm-rail-toggle:hover,
.dm-rail-toggle[aria-expanded="true"],
.dm-profile-close:hover {
	background: var(--hover);
}

.dm-profile-close {
	display: none;
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	color: var(--mute);
}

.dm-peer {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.dm-peer-avatar {
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
}

.dm-peer-avatar .dm-peer-avatar-img,
.dm-peer-avatar .dm-peer-avatar-img--fallback {
	width: 36px;
	height: 36px;
	font-size: 13px;
}

.dm-peer-meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.dm-peer-meta strong {
	font-size: 15px;
	font-weight: 600;
}

.dm-peer-meta span {
	color: var(--mute);
	font-size: 13px;
	font-weight: 400;
}

.dm-thread {
	flex: 1 1 auto;
	min-width: 0;
}

.dm-thread-empty,
.dm-profile-empty {
	flex: 1 1 auto;
	display: grid;
	place-items: center;
	padding: 32px 24px;
	color: var(--mute);
	font-size: 15px;
	text-align: center;
}

.dm-messages {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
	padding: 20px 20px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--feed);
}

.dm-messages::-webkit-scrollbar {
	display: none;
}

.dm-bubble {
	max-width: min(72%, 520px);
	align-self: flex-start;
	padding: 10px 14px;
	border-radius: 20px 20px 20px 6px;
	background: var(--surface-2);
	color: var(--ink);
}

.dm-bubble.is-mine {
	align-self: flex-end;
	border-radius: 20px 20px 6px 20px;
	background: var(--blue);
	color: var(--cta-fg);
}

.dm-bubble p {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 400;
	white-space: pre-wrap;
	word-break: break-word;
}

.dm-bubble time {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	opacity: 0.55;
	font-weight: 400;
}

.dm-composer {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: end;
	padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--line);
	background: var(--feed);
}

.dm-composer textarea {
	width: 100%;
	min-height: 42px;
	max-height: 120px;
	resize: none;
	border: 0;
	border-radius: 22px;
	padding: 11px 16px;
	background: var(--surface-2);
	color: var(--ink);
	outline: 0;
	overflow-y: auto;
	scrollbar-width: none;
	font-size: 15px;
}

.dm-composer textarea::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.dm-send {
	min-height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--blue);
	color: var(--cta-fg);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.dm-send:disabled {
	opacity: 0.35;
	cursor: default;
}

.thui-icon-btn.is-on,
.thui-head-btn.is-on {
	color: var(--blue);
}

.dm-note-leave {
	border: 0;
	background: transparent;
	color: var(--blue);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

.dm-note-leave:hover {
	opacity: 0.75;
}

.dm-notes {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 18px 4px 6px;
	scrollbar-width: none;
}

.dm-notes::-webkit-scrollbar {
	display: none;
}

.dm-note {
	flex: 0 0 auto;
	width: 68px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	position: relative;
}

.dm-note-avatar-wrap {
	position: relative;
	width: 56px;
	height: 56px;
	margin-top: 26px;
}

.dm-note-avatar,
.dm-note-avatar--fallback {
	width: 56px;
	height: 56px;
	font-size: 18px;
}

.dm-note-bubble {
	position: absolute;
	left: 50%;
	top: -26px;
	transform: translateX(-50%);
	z-index: 2;
	max-width: 78px;
	padding: 6px 10px;
	border-radius: 16px;
	background: #262626;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

html[data-theme="dark"] .dm-note-bubble,
html[data-theme="dark-classic"] .dm-note-bubble {
	background: #3a3a3a;
	color: #f5f5f5;
}

.dm-note-bubble::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -4px;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	background: inherit;
	transform: rotate(45deg);
}

.dm-note-dot {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--mute);
	border: 2px solid var(--feed);
}

.dm-note.is-online .dm-note-dot {
	background: #22c55e;
}

.dm-note-name {
	max-width: 68px;
	font-size: 11px;
	font-weight: 400;
	color: var(--ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: center;
}

.dm-note-del {
	position: absolute;
	right: -4px;
	top: 10px;
	z-index: 3;
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--mute);
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
}

.dm-note:hover .dm-note-del,
.dm-note:focus-within .dm-note-del {
	opacity: 1;
}

.dm-note-form {
	margin: 6px 4px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dm-note-form[hidden] {
	display: none !important;
}

.dm-note-form input {
	width: 100%;
	border: 0;
	border-radius: 16px;
	padding: 12px 14px;
	background: var(--surface-2);
	color: var(--ink);
	outline: 0;
	font-size: 14px;
}

.dm-note-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.dm-note-cancel {
	border: 0;
	background: transparent;
	color: var(--mute);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	padding: 6px 0;
}

.dm-note-save {
	border: 0;
	border-radius: 999px;
	background: var(--blue);
	color: var(--cta-fg);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 7px 14px;
}

.dm-friends[hidden] {
	display: none !important;
}

.dm-rail-empty {
	margin: 0;
	padding: 8px 4px;
	color: var(--mute);
	font-size: 13px;
}

/* Discord-like peer profile */
.dm-profile {
	display: none;
	position: relative;
	flex: 0 0 auto;
	border-left: 1px solid var(--line);
	background: var(--surface-2);
	padding: 12px;
	overflow: hidden;
}

.dm-profile-card {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1 1 auto;
	border-radius: 18px;
	overflow: hidden;
	background: var(--feed);
	border: 1px solid var(--line);
}

.dm-profile-banner {
	height: 88px;
	min-height: 88px;
	width: 100%;
	flex: 0 0 auto;
	flex-shrink: 0;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--blue) 28%, var(--surface-2)), var(--surface-2));
}

.dm-profile-banner.has-image {
	background: transparent;
}

.dm-profile-banner-img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 88px;
	object-fit: cover;
}

.dm-profile-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 0 14px;
	margin-top: -34px;
	gap: 10px;
}

.dm-profile-avatar-wrap {
	position: relative;
	width: 72px;
	height: 72px;
	flex: 0 0 auto;
}

.dm-profile-avatar,
.dm-profile-avatar--fallback {
	width: 72px;
	height: 72px;
	border: 4px solid var(--feed);
	font-size: 24px;
	box-sizing: border-box;
}

.dm-profile-status {
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--mute);
	border: 3px solid var(--feed);
}

.dm-profile-status.is-online {
	background: #22c55e;
}

.dm-profile-tools {
	display: flex;
	gap: 8px;
	padding-bottom: 4px;
}

.dm-profile-tool {
	border: 0;
	border-radius: 999px;
	padding: 8px 12px;
	background: var(--surface-2);
	color: var(--ink);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.dm-profile-tool.is-following {
	color: var(--mute);
}

.dm-profile-identity {
	padding: 12px 16px 4px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dm-profile-name {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.dm-profile-handle {
	font-size: 13px;
	color: var(--mute);
}

.dm-profile-mutual {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--mute);
}

.dm-profile-body {
	padding: 10px 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	overflow-y: auto;
	scrollbar-width: none;
}

.dm-profile-bio {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--ink);
	white-space: pre-wrap;
	word-break: break-word;
}

.dm-profile-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dm-profile-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--mute);
}

.dm-profile-value,
.dm-profile-place {
	font-size: 14px;
	color: var(--ink);
	text-decoration: none;
}

.dm-profile-place:hover {
	color: var(--blue);
}

.dm-profile-full {
	margin: 0 12px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--ink);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.dm-profile-full:hover {
	background: var(--hover);
}

@media (min-width: 861px) {
	.is-dms .thui-stage {
		padding: 12px 20px 0;
	}

	.thui-stage-inner--dms {
		width: min(1480px, calc(100vw - 40px));
	}

	.dm-shell {
		flex-direction: row;
		align-items: stretch;
	}

	.dm-side {
		flex: 0 0 300px;
		max-width: 320px;
		border-right: 1px solid var(--line);
	}

	.dm-inbox {
		flex: 1 1 auto;
		min-height: 0;
	}

	.dm-thread {
		flex: 1 1 auto;
		min-width: 0;
	}

	.dm-back {
		display: none;
	}

	.dm-inbox[hidden],
	.dm-thread[hidden] {
		display: flex !important;
	}

	.dm-profile {
		display: flex;
		flex: 0 0 300px;
		max-width: 320px;
	}

	.dm-rail-toggle {
		display: none;
	}
}

@media (min-width: 1200px) {
	.dm-side {
		flex-basis: 320px;
		max-width: 340px;
	}

	.dm-profile {
		flex-basis: 320px;
		max-width: 340px;
	}
}

@media (max-width: 1099px) and (min-width: 861px) {
	.dm-profile {
		display: none;
	}

	.dm-rail-toggle {
		display: inline-flex;
	}

	.dm-shell.profile-open .dm-profile {
		display: flex;
		position: absolute;
		inset: 0 0 0 auto;
		width: min(340px, 92vw);
		z-index: 8;
		box-shadow: -12px 0 32px rgba(0, 0, 0, 0.08);
	}

	.dm-shell.profile-open .dm-profile-close {
		display: inline-flex;
	}
}

@media (max-width: 860px) {
	.dm-thread-placeholder-title {
		display: none;
	}

	.dm-thread-empty {
		display: none;
	}

	.is-dms .thui-stage {
		padding: 0 0 calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 8px);
	}

	.thui-stage-inner--dms {
		width: 100%;
		border: 0;
		border-radius: 0;
	}

	.dm-activity {
		display: none;
	}

	.dm-shell.has-thread .dm-activity {
		display: none;
	}

	.dm-shell.profile-open .dm-profile {
		display: flex;
		position: absolute;
		inset: 0;
		z-index: 8;
		width: 100%;
	}

	.dm-shell.profile-open .dm-profile-close {
		display: inline-flex;
	}
}


/* ── Post detail page ── */
.is-post .thui-stage-inner {
	padding-bottom: 28px;
}

.pd-bar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 4px;
	min-height: 56px;
	padding: 6px 10px;
	background: color-mix(in srgb, var(--feed) 88%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.pd-bar-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.pd-bar-btn svg {
	width: 22px;
	height: 22px;
	display: block;
}

.pd-bar-btn:hover {
	background: var(--hover);
}

.pd-bar-btn:active {
	transform: scale(0.94);
}

.pd-bar-btn:disabled {
	opacity: 0.35;
	cursor: default;
	transform: none;
}

.pd-bar-btn--more {
	border: 1px solid var(--line);
	background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.pd-bar-center {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1px;
	padding-inline: 2px;
}

.pd-bar-title {
	margin: 0;
	font-size: 17px;
	font-weight: 750;
	letter-spacing: -0.01em;
	color: var(--ink);
	line-height: 1.2;
}

.pd-bar-sub {
	margin: 0;
	font-size: 12.5px;
	color: var(--mute);
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pd-post {
	position: relative;
}

.pd-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.pd-sort,
.pd-activity {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mute);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s ease;
}

.pd-sort:hover,
.pd-activity:hover {
	color: var(--ink);
}

.pd-sort svg,
.pd-activity svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.pd-activity svg {
	width: 14px;
	height: 14px;
	opacity: 0.75;
}

.pd-reply {
	padding: 12px 14px 4px;
}

.pd-reply-shell {
	--pd-ease: cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	min-height: 48px;
	padding: 7px 12px 7px 8px;
	border-radius: 16px;
	background: var(--surface-2);
	border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
	box-shadow: 0 0 0 0 transparent;
	overflow: hidden;
	overflow-anchor: none;
	transform: translateZ(0);
	transition:
		border-color 0.28s var(--pd-ease),
		background 0.28s var(--pd-ease),
		box-shadow 0.36s var(--pd-ease),
		padding 0.36s var(--pd-ease);
}

.pd-reply-shell.is-composing {
	padding: 10px 12px 10px 8px;
	box-shadow:
		0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent),
		0 10px 28px color-mix(in srgb, var(--ink) 7%, transparent),
		0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent);
}

.pd-reply-shell:hover:not(.is-composing) {
	border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
	background: color-mix(in srgb, var(--surface-2) 88%, var(--feed));
}

.pd-reply-shell:focus-within,
.pd-reply-shell.is-composing {
	border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
	background: color-mix(in srgb, var(--surface-2) 82%, var(--feed));
}

.pd-reply-shell:focus-within:not(.is-composing) {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent);
}

.pd-reply-avatar {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 750;
	color: var(--blue);
	background: color-mix(in srgb, var(--blue) 12%, var(--feed));
	margin-top: 0;
	align-self: center;
	transition: margin-top 0.42s var(--pd-ease);
}

.pd-reply-shell.is-composing .pd-reply-avatar {
	align-self: flex-start;
	margin-top: 2px;
}

.pd-reply-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pd-reply-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.pd-reply-top {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.pd-reply-shell.is-composing .pd-reply-top {
	align-items: flex-start;
}

.pd-reply-field-wrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 34px;
	display: flex;
	align-items: center;
	cursor: text;
}

.pd-reply-hint {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	pointer-events: none;
	color: var(--mute);
	font-size: 14.5px;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.16s ease, transform 0.28s var(--pd-ease);
}

.pd-reply-shell.is-composing .pd-reply-hint,
.pd-reply-shell.has-text .pd-reply-hint {
	opacity: 0;
	transform: translateY(-5px);
}

.pd-reply-field-wrap textarea {
	display: block;
	width: 100%;
	min-height: 24px;
	max-height: 140px;
	margin: 0;
	padding: 5px 0;
	border: 0;
	resize: none;
	outline: none;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	line-height: 1.45;
	overflow: hidden;
	height: 24px;
	transition: height 0.34s var(--pd-ease);
}

.pd-reply-shell.is-composing .pd-reply-field-wrap {
	align-items: flex-start;
}

.pd-reply-shell.is-composing .pd-reply-field-wrap textarea {
	overflow: auto;
}

.pd-reply-tools {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 0 0 auto;
	color: var(--mute);
	align-self: center;
	opacity: 0.88;
	transition: opacity 0.28s var(--pd-ease), transform 0.36s var(--pd-ease);
}

.pd-reply-shell.is-composing .pd-reply-tools {
	opacity: 0.7;
	transform: translateY(1px);
}

.pd-reply-tool {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

.pd-reply-tool svg {
	width: 18px;
	height: 18px;
	display: block;
}

.pd-reply-actions {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateY(-6px);
	filter: blur(2px);
	transition:
		max-height 0.42s var(--pd-ease),
		opacity 0.28s ease 0.04s,
		transform 0.42s var(--pd-ease),
		filter 0.32s ease;
}

.pd-reply-shell.is-composing .pd-reply-actions {
	max-height: 52px;
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

.pd-reply-actions-inner {
	min-height: 0;
}

.pd-reply-form-bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding-top: 8px;
}

.pd-reply-count {
	font-size: 12px;
	color: var(--mute);
	margin-right: auto;
	opacity: 0.85;
}

.pd-reply-form-bar .thui-btn {
	min-height: 32px;
	padding: 0 14px;
	font-size: 13px;
	transform: scale(0.92);
	opacity: 0.65;
	transition:
		transform 0.4s var(--pd-ease) 0.06s,
		opacity 0.28s ease 0.06s,
		background 0.18s ease;
}

.pd-reply-shell.is-composing .pd-reply-form-bar .thui-btn {
	transform: scale(1);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.pd-reply-shell,
	.pd-reply-hint,
	.pd-reply-field-wrap textarea,
	.pd-reply-tools,
	.pd-reply-actions,
	.pd-reply-form-bar .thui-btn {
		transition: none !important;
		filter: none !important;
		transform: none !important;
	}
}

.pd-replies {
	padding: 4px 0 20px;
	min-height: 120px;
}

.pd-replies .thui-empty {
	padding: 28px 20px;
}

.pd-reply-item {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
}

.pd-reply-item-avatar-link {
	display: block;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	text-decoration: none;
}

.pd-reply-item-avatar,
.pd-reply-item-avatar--fallback {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--mute) 16%, transparent);
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.pd-reply-item-main {
	min-width: 0;
}

.pd-reply-item-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin-bottom: 4px;
}

.pd-reply-item-name {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.pd-reply-item-name:hover {
	text-decoration: underline;
}

.pd-reply-item-handle,
.pd-reply-item-head time {
	font-size: 13px;
	color: var(--mute);
}

.pd-reply-item-del {
	margin-left: auto;
	border: 0;
	background: transparent;
	color: var(--mute);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 2px 4px;
}

.pd-reply-item-del:hover {
	color: #e11d48;
}

.pd-reply-item-body {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ink);
	white-space: pre-wrap;
	word-break: break-word;
}

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

@keyframes pd-reply-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.pd-bar {
		animation: pd-bar-in 0.28s ease both;
	}

	.pd-reply[hidden],
	.pd-toolbar[hidden] {
		animation: none;
	}

	.pd-reply:not([hidden]) {
		animation: pd-reply-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
		animation-delay: 0.05s;
	}

	.pd-toolbar:not([hidden]) {
		animation: pd-bar-in 0.28s ease both;
		animation-delay: 0.03s;
	}
}

@media (max-width: 640px) {
	.pd-bar {
		min-height: 52px;
		padding: 4px 8px;
	}

	.pd-bar-title {
		font-size: 16px;
	}
}

/* ── Notifications (in-feed page) ── */
.thui-nav-item--badged {
	position: relative;
}

.thui-nav-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--blue);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	pointer-events: none;
	box-shadow: 0 0 0 2px var(--bg);
}

body.is-notifying #composer-wrap,
body.is-notifying #composer-pop {
	display: none !important;
}

body.is-notifying #nav-bell.is-active {
	color: var(--blue);
}

.thui-notif-page {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.thui-notif-page-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 10px;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 2;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: blur(10px);
}

.thui-notif-page-title {
	margin: 0;
	font-size: 18px;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.thui-notif-mark {
	border: 0;
	background: transparent;
	color: var(--blue);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 2px;
}

.thui-notif-mark:hover {
	text-decoration: underline;
}

.thui-notif-list {
	display: flex;
	flex-direction: column;
}

.thui-notif-empty {
	margin: 0;
	padding: 48px 20px;
	text-align: center;
	color: var(--mute);
	font-size: 14px;
}

.thui-notif-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--line);
	transition: background 0.12s ease;
}

.thui-notif-row:hover,
.thui-notif-row:focus-visible {
	background: color-mix(in srgb, var(--ink) 3.5%, transparent);
}

.thui-notif-row.is-unread {
	background: color-mix(in srgb, var(--blue) 8%, transparent);
}

.thui-notif-row.is-unread .thui-notif-text strong {
	font-weight: 800;
}

.thui-notif-avatar,
.thui-notif-avatar--fallback {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	flex: 0 0 auto;
	object-fit: cover;
	background: color-mix(in srgb, var(--mute) 18%, transparent);
}

.thui-notif-avatar--fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.thui-notif-body {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.thui-notif-text {
	font-size: 15px;
	line-height: 1.4;
	color: var(--ink);
}

.thui-notif-text strong {
	font-weight: 700;
}

.thui-notif-preview {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--mute);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.thui-notif-body time {
	font-size: 12px;
	color: var(--mute);
	margin-top: 2px;
}
