/* Member timeline */

.timeline-section {
	margin-top: 16px;
	padding: 18px;
}

.tl-section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.tl-section-head h2 {
	margin: 0 0 3px;
	color: #ffffff !important;
	font-size: 17px;
}

.tl-section-head .member-muted {
	margin: 0;
}

.tl-composer {
	margin-bottom: 16px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.025);
}

.tl-composer textarea {
	display: block;
	width: 100%;
	min-height: 78px;
	padding: 10px 11px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.18);
	color: #eaf2fb;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.55;
	resize: vertical;
}

.tl-composer textarea:focus {
	border-color: rgba(53, 240, 169, 0.55);
	outline: 0;
}

.tl-composer-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-top: 10px;
}

.tl-photo-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.03);
	color: #b7c7da !important;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
}

.tl-photo-btn:hover {
	border-color: rgba(53, 240, 169, 0.4);
	color: #35f0a9 !important;
}

.tl-photo-btn svg {
	width: 15px;
	height: 15px;
}

.tl-photo-btn input {
	display: none;
}

.tl-file-name {
	color: #8ea1b7 !important;
	font-size: 10px;
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tl-composer-actions .member-btn {
	margin-left: auto;
}

.tl-feed {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tl-empty {
	padding: 14px;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	color: #8ea1b7 !important;
	font-size: 12px;
	text-align: center;
}

.tl-post {
	padding: 15px;
	border: 1px solid rgba(255, 255, 255, 0.085);
	border-radius: 13px;
	background: linear-gradient(160deg, rgba(22, 35, 49, 0.9), rgba(13, 24, 36, 0.88));
}

.tl-post-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tl-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.055);
	overflow: hidden;
	flex: 0 0 auto;
	color: #35f0a9 !important;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	font-weight: 700;
	text-decoration: none !important;
}

.tl-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.tl-avatar-sm {
	width: 28px;
	height: 28px;
	font-size: 8px;
}

.tl-post-id {
	min-width: 0;
}

.tl-post-id a {
	text-decoration: none !important;
}

.tl-post-id strong {
	display: block;
	color: #ffffff !important;
	font-size: 12.5px;
	font-weight: 700;
}

.tl-post-id time {
	display: block;
	margin-top: 1px;
	color: #8ea1b7 !important;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9.5px;
}

.tl-post-body {
	margin-top: 10px;
	color: #dfe9f4 !important;
	font-size: 13px;
	line-height: 1.6;
	white-space: normal;
}

.tl-post-image {
	margin-top: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: #0b1119;
}

.tl-post-image img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: contain;
}

.tl-post-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	color: #8ea1b7 !important;
	font-size: 10px;
}

.tl-follow-note {
	color: #8ea1b7 !important;
	font-size: 10px;
}

.tl-reactions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.tl-react {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 9px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.025);
	color: #b7c7da;
	font-size: 12px;
	cursor: pointer;
}

.tl-react:hover:not(:disabled) {
	border-color: rgba(53, 240, 169, 0.4);
	background: rgba(53, 240, 169, 0.06);
}

.tl-react.is-active {
	border-color: rgba(53, 240, 169, 0.5);
	background: rgba(53, 240, 169, 0.1);
}

.tl-react:disabled {
	cursor: default;
	opacity: 0.62;
}

.tl-react b {
	color: #dfe9f4;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	font-weight: 700;
}

.tl-comment-area {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tl-comment-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tl-comment {
	display: flex;
	gap: 8px;
}

.tl-comment-body {
	flex: 1;
	min-width: 0;
	padding: 7px 9px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
}

.tl-comment-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.tl-comment-head strong {
	color: #ffffff !important;
	font-size: 11.5px;
	font-weight: 600;
}

.tl-comment-head time {
	color: #7f93a9 !important;
	font-family: 'JetBrains Mono', monospace;
	font-size: 8.5px;
}

.tl-comment-body p {
	margin: 3px 0 0;
	color: #d3dfec !important;
	font-size: 11.5px;
	line-height: 1.5;
}

.tl-comment-form {
	display: flex;
	gap: 6px;
	margin-top: 9px;
}

.tl-comment-form input {
	flex: 1;
	min-width: 0;
	height: 34px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 7px;
	background: rgba(0, 0, 0, 0.17);
	color: #eaf2fb;
	font-family: inherit;
	font-size: 12px;
}

.tl-comment-form input:focus {
	border-color: rgba(53, 240, 169, 0.5);
	outline: 0;
}

.tl-comment-form button {
	height: 34px;
	padding: 0 11px;
	border: 1px solid rgba(53, 240, 169, 0.3);
	border-radius: 7px;
	background: rgba(53, 240, 169, 0.1);
	color: #35f0a9;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 640px) {
	.timeline-section {
		padding: 13px;
	}

	.tl-composer-actions .member-btn {
		margin-left: 0;
	}

	.tl-post {
		padding: 12px;
	}

	.tl-post-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}
}
.tl-avatar > span.tl-avatar-img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: inherit;
	font: inherit;
}
/* My Space tabs */
.space-tabs {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0 16px;
	padding-bottom: 9px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.space-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent;
	color: #8ea1b7;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.space-tab svg {
	width: 15px;
	height: 15px;
}

.space-tab span {
	padding: 1px 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: #aebdd0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9px;
}

.space-tab:hover {
	color: #eaf2fb;
	background: rgba(255, 255, 255, 0.035);
}

.space-tab.is-active {
	border-color: rgba(53, 240, 169, 0.3);
	background: rgba(53, 240, 169, 0.09);
	color: #35f0a9;
}

.space-tab.is-active span {
	background: rgba(53, 240, 169, 0.14);
	color: #35f0a9;
}

.space-panel[hidden] {
	display: none !important;
}

.space-panel[data-space-panel="timeline"] .timeline-section {
	width: 100%;
	max-width: none;
	margin: 0;
}

/* Facebook-style timeline */
.space-panel[data-space-panel="timeline"] .timeline-section {
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.095);
	border-top: 3px solid #60a5fa;
	border-radius: 14px;
	background: linear-gradient(160deg, rgba(22, 35, 49, 0.94) 0%, rgba(13, 24, 36, 0.92) 100%);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.tl-composer {
	padding: 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.035);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tl-composer-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.tl-composer-row .tl-avatar {
	width: 42px;
	height: 42px;
	font-size: 11px;
}

.tl-composer textarea {
	flex: 1;
	min-height: 72px;
	border: 0;
	background: rgba(0, 0, 0, 0.12);
	font-size: 13.5px;
	padding: 12px;
}

.tl-composer-actions {
	padding-top: 9px;
	margin-top: 9px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tl-post {
	padding: 16px;
	border-radius: 12px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.13);
}

.tl-post-head {
	gap: 11px;
}

.tl-post .tl-avatar {
	width: 44px;
	height: 44px;
	font-size: 11px;
}

.tl-post-id strong {
	font-size: 13.5px;
}

.tl-post-id time {
	font-size: 10px;
}

.tl-post-body {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.65;
}

.tl-post-meta {
	margin-top: 11px;
	padding-bottom: 2px;
	font-size: 10.5px;
}

.tl-reactions {
	gap: 4px;
	margin-top: 6px;
	padding: 6px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tl-react {
	gap: 5px;
	padding: 6px 9px;
	border-color: transparent;
	background: transparent;
	font-size: 11px;
}

.tl-react-emoji {
	font-size: 15px;
	line-height: 1;
}

.tl-react-label {
	color: #a9b9ca;
	font-size: 10.5px;
	font-weight: 600;
}

.tl-react.is-active .tl-react-label {
	color: #35f0a9;
}

.tl-react b {
	margin-left: 1px;
}

.tl-comment-area {
	margin-top: 8px;
	padding-top: 9px;
	border-top: 0;
}

.tl-comment-form input {
	height: 36px;
	border-radius: 999px;
	padding: 0 13px;
	font-size: 12px;
}

.tl-comment-form button {
	height: 36px;
	border-radius: 999px;
}

@media (max-width: 640px) {
	.space-tabs {
		overflow-x: auto;
	}

	.space-tab {
		white-space: nowrap;
	}

	.tl-composer {
		padding: 12px;
	}

	.tl-react-label {
		display: none;
	}
}
/* Full-width Your Posts layout */
.your-posts-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 16px;
	align-items: start;
	width: 100%;
}

.your-posts-main {
	min-width: 0;
}

.your-posts-side {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.yp-card {
	padding: 16px;
}

.yp-card h3 {
	margin: 0 0 10px;
	color: #ffffff !important;
	font-size: 15px;
}

.yp-stats {
	display: flex;
	gap: 24px;
	margin-bottom: 12px;
}

.yp-stats strong {
	display: block;
	color: #ffffff !important;
	font-family: 'JetBrains Mono', monospace;
	font-size: 22px;
	line-height: 1;
}

.yp-stats span {
	display: block;
	margin-top: 3px;
	color: #8ea1b7 !important;
	font-size: 9.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.yp-profile-link {
	width: 100%;
}

.yp-tips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.yp-tips li {
	position: relative;
	padding-left: 14px;
	color: #a9b9ca !important;
	font-size: 11.5px;
	line-height: 1.5;
}

.yp-tips li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #35f0a9;
}

@media (max-width: 1100px) {
	.your-posts-layout {
		grid-template-columns: 1fr;
	}

	.your-posts-side {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.your-posts-side {
		grid-template-columns: 1fr;
	}
}
/* Post and comment editing */
.tl-post-head {
	position: relative;
}

.tl-post-actions {
	position: relative;
	margin-left: auto;
}

.tl-post-options {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: #8ea1b7;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.tl-post-options:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
}

.tl-post-menu {
	position: absolute;
	top: 34px;
	right: 0;
	z-index: 10;
	min-width: 142px;
	padding: 5px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 9px;
	background: #101b27;
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.tl-post-menu button {
	display: block;
	width: 100%;
	padding: 8px 9px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #dbe7f4;
	font-family: inherit;
	font-size: 11px;
	text-align: left;
	cursor: pointer;
}

.tl-post-menu button:hover {
	background: rgba(255, 255, 255, 0.06);
}

.tl-post-menu button.is-danger {
	color: #ff8a8a;
}

.tl-comment-actions {
	display: flex;
	gap: 9px;
	margin-top: 4px;
}

.tl-comment-actions button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #8ea1b7;
	font-family: inherit;
	font-size: 9.5px;
	cursor: pointer;
}

.tl-comment-actions button:hover {
	color: #ffffff;
}

.tl-inline-edit textarea {
	width: 100%;
	min-height: 64px;
	padding: 9px 10px;
	border: 1px solid rgba(53, 240, 169, 0.35);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.16);
	color: #eaf2fb;
	font-family: inherit;
	font-size: 13px;
	resize: vertical;
}

.tl-inline-actions {
	display: flex;
	gap: 7px;
	margin-top: 7px;
}

.tl-inline-actions button {
	padding: 5px 9px;
	border-radius: 6px;
	font-size: 10.5px;
	font-weight: 700;
	cursor: pointer;
}

.tl-save-edit {
	border: 1px solid rgba(53, 240, 169, 0.35);
	background: rgba(53, 240, 169, 0.12);
	color: #35f0a9;
}

.tl-cancel-edit {
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: transparent;
	color: #b7c7da;
}

.tl-inline-comment {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.tl-inline-comment input {
	flex: 1;
	min-width: 120px;
	height: 28px;
	padding: 0 8px;
	border: 1px solid rgba(53, 240, 169, 0.35);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.15);
	color: #eaf2fb;
	font: inherit;
}

.tl-inline-comment button {
	padding: 0 7px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 5px;
	background: transparent;
	color: #b7c7da;
	font-size: 9.5px;
	cursor: pointer;
}
/* Your Posts side sections use the watchlist outline */
.yp-card {
	border-top: 3px solid #60a5fa;
	border-radius: 14px;
	background: linear-gradient(160deg, rgba(22, 35, 49, 0.94) 0%, rgba(13, 24, 36, 0.92) 100%);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}
.member-card.timeline-section {
	border-top: 3px solid #60a5fa;
}
