.tool-header-actions {
	display: none !important;
}

.sts-tool-header {
	margin-bottom: 24px;
}

.tool-top-ad-primary {
	margin: 16px 0 20px;
}

.tool-top-ad-secondary {
	margin: 20px 0;
}

.sts-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	padding: 10px 0 14px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--c-border);
}

.sts-toolbar .tool-toolbar-actions {
	flex-wrap: nowrap;
}

.sts-opt-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--c-text-2);
	margin: 0;
	cursor: pointer;
	white-space: nowrap;
}

.sts-opt-chip input {
	accent-color: var(--c-primary, #6366f1);
}

.sts-editor-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
	align-items: stretch;
	margin-bottom: 20px;
}

.sts-textarea {
	min-height: 360px;
}

.sts-input-emoji-bar,
.sts-input-template-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	padding: 8px 10px;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	background: var(--c-surface-2, #f9fafb);
	min-width: 0;
}

.sts-input-template-bar {
	flex-wrap: wrap;
}

.sts-input-template-label {
	flex-shrink: 0;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--c-text-2);
	white-space: nowrap;
}

.sts-input-template-bar .sts-template-btns {
	flex: 1 1 auto;
	min-width: 0;
}

.sts-emoji-open-btn {
	flex-shrink: 0;
	white-space: nowrap;
}

.sts-emoji-quick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	flex: 1 1 auto;
	min-width: 0;
}

.sts-emoji-modal-body {
	padding-top: 0.5rem;
}

.sts-emoji-modal-body .sts-emoji-panel {
	max-height: 42vh;
	overflow-y: auto;
	margin-bottom: 12px;
}

.sts-emoji-modal-body .sts-mood-row {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--c-border);
}

.sts-preview-panel {
	min-height: 0;
}

.sts-preview-hint {
	font-size: 0.78rem;
	color: var(--c-text-3);
	margin: 10px 0 0;
	line-height: 1.5;
}

.sts-preview-panel .sts-preview-tabs {
	margin-bottom: 14px;
}

.sts-preview-stack {
	position: relative;
	min-height: 120px;
}

.sts-mock[data-platform] {
	display: none;
}

.sts-mock[data-platform].is-active {
	display: block;
}

.sts-mock {
	border: 1px solid var(--c-border);
	border-radius: 14px;
	padding: 12px 14px;
	background: var(--c-surface, #fff);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sts-mock-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.sts-mock-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--c-surface-2, #e5e7eb);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-text-3);
	font-size: 1.1rem;
	flex-shrink: 0;
}

.sts-mock-name {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--c-text, #111);
	display: flex;
	align-items: center;
	gap: 6px;
}

.sts-mock-name .bi {
	font-size: 0.95rem;
}

.sts-mock-sub {
	font-size: 0.75rem;
	color: var(--c-text-3);
	margin-top: 2px;
}

.sts-mock-body-wrap {
	position: relative;
}

.sts-mock-body-wrap.is-clamped:not(.is-expanded) {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--sts-clamp, 4);
	overflow: hidden;
}

.sts-mock-body {
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--c-text, #1a1a1a);
	word-break: break-word;
	white-space: normal;
}

.sts-preview-placeholder {
	color: var(--c-text-3);
	font-style: italic;
}

.sts-preview-tag {
	font-weight: 600;
	cursor: default;
}

.sts-mock-fb {
	--sts-mock-accent: #1877f2;
	--sts-mock-link: #1877f2;
	--sts-mock-tag: #1877f2;
}

.sts-mock-ig {
	--sts-mock-accent: #e1306c;
	--sts-mock-link: #65676b;
	--sts-mock-tag: #c13584;
}

.sts-mock-threads {
	--sts-mock-accent: #101010;
	--sts-mock-link: #101010;
	--sts-mock-tag: #101010;
}

.sts-mock-x {
	--sts-mock-accent: #1d9bf0;
	--sts-mock-link: #1d9bf0;
	--sts-mock-tag: #1d9bf0;
}

.sts-mock-fb,
.sts-mock-ig,
.sts-mock-threads,
.sts-mock-x {
	border-left: 3px solid var(--sts-mock-accent);
}

.sts-mock-fb .sts-preview-tag,
.sts-mock-ig .sts-preview-tag,
.sts-mock-threads .sts-preview-tag,
.sts-mock-x .sts-preview-tag {
	color: var(--sts-mock-tag);
}

.sts-mock.is-over-limit {
	box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.sts-mock-more {
	border: 0;
	background: none;
	padding: 6px 0 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--sts-mock-link, var(--c-text-2));
	cursor: pointer;
}

.sts-mock-more:hover {
	opacity: 0.85;
}

:is([data-theme='dark'], [data-bs-theme='dark']) .sts-mock-fb {
	--sts-mock-accent: #2d88ff;
	--sts-mock-link: #2d88ff;
	--sts-mock-tag: #5b9eff;
}

:is([data-theme='dark'], [data-bs-theme='dark']) .sts-mock-ig {
	--sts-mock-accent: #f56040;
	--sts-mock-link: #a8a8a8;
	--sts-mock-tag: #f77737;
}

:is([data-theme='dark'], [data-bs-theme='dark']) .sts-mock-threads {
	--sts-mock-accent: #e7e9ea;
	--sts-mock-link: #e7e9ea;
	--sts-mock-tag: #e7e9ea;
}

:is([data-theme='dark'], [data-bs-theme='dark']) .sts-mock-x {
	--sts-mock-accent: #1d9bf0;
	--sts-mock-link: #1d9bf0;
	--sts-mock-tag: #58b4f7;
}

.sts-section-title {
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

.sts-platform-section {
	margin-bottom: 22px;
}

.sts-summary-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	font-size: 0.88rem;
	color: var(--c-text-2);
	margin-bottom: 10px;
}

.sts-hashtag-warn {
	display: none;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--c-warning, #d97706);
	margin: 0 0 12px;
}

.sts-hashtag-warn.is-visible {
	display: block;
}

.sts-platform-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sts-platform-row {
	display: grid;
	grid-template-columns: 88px 1fr auto;
	gap: 10px;
	align-items: center;
}

.sts-platform-label {
	font-size: 0.84rem;
	font-weight: 700;
}

.sts-platform-bar-wrap {
	height: 8px;
	border-radius: 999px;
	background: var(--c-surface-2, #f3f4f6);
	overflow: hidden;
}

.sts-platform-bar {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #6366f1, #8b5cf6);
	transition: width 0.15s ease;
}

.sts-platform-bar.is-warn {
	background: linear-gradient(90deg, #f59e0b, #f97316);
}

.sts-platform-bar.is-over {
	background: linear-gradient(90deg, #ef4444, #dc2626);
}

.sts-platform-count {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--c-text-2);
	white-space: nowrap;
}

.sts-emoji-search-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 10px;
}

.sts-emoji-search-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--c-text-2);
}

.sts-emoji-search-input {
	max-width: 360px;
}

.sts-emoji-suggest,
.sts-emoji-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.sts-emoji-panel {
	margin-bottom: 12px;
}

.sts-emoji-group {
	margin-bottom: 12px;
}

.sts-emoji-group-label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--c-text-3);
	margin-bottom: 6px;
}

.sts-emoji-btn {
	border: 1px solid var(--c-border);
	background: var(--c-surface-2, #f9fafb);
	border-radius: 8px;
	width: 36px;
	height: 36px;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: transform 0.1s ease, background 0.15s ease;
}

.sts-emoji-btn:hover {
	transform: scale(1.08);
	background: var(--c-surface, #fff);
}

.sts-mood-row,
.sts-template-btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sts-mood-label {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--c-text-2);
}

.sts-info-section {
	margin-top: 34px !important;
	padding-top: 28px !important;
}

#sts-app .tool-info-tabs .tab-btn.active::after {
	display: none;
}

.sts-tab-content {
	display: none;
}

.sts-tab-content.active {
	display: block;
}

.sts-faq-list .faq-item {
	margin-bottom: 12px;
	border-radius: 16px;
}

.sts-faq-list .faq-q {
	font-size: 0.9rem;
	padding: 14px 18px;
}

.sts-faq-list .faq-a {
	display: none;
	font-size: 0.86rem;
	line-height: 1.7;
	padding-top: 12px;
}

.sts-faq-list .faq-item.is-open .faq-a {
	display: block;
}

.sts-faq-list .faq-item .faq-q i {
	transition: transform 0.2s ease;
}

.sts-faq-list .faq-item.is-open .faq-q i {
	transform: rotate(180deg);
}

.sts-info-section .rk-item {
	padding: 18px 0;
	margin: 0;
	border-radius: 0;
	background: transparent !important;
}

.sts-info-section .rk-thumb {
	width: 84px;
	height: 84px;
	min-width: 84px;
	border-radius: 14px;
}

.related-section {
	margin-top: 36px;
	padding-top: 34px;
}

@media (max-width: 991.98px) {
	.sts-editor-wrap {
		grid-template-columns: 1fr;
	}

	.sts-preview-panel .sts-preview-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
	}

	.sts-platform-row {
		grid-template-columns: 72px 1fr;
		grid-template-rows: auto auto;
	}

	.sts-platform-count {
		grid-column: 1 / -1;
	}
}

@media (max-width: 575.98px) {
	.sts-toolbar .ms-auto {
		margin-left: 0 !important;
		width: 100%;
	}

	.sts-toolbar .tool-toolbar-actions {
		width: 100%;
		justify-content: flex-end;
	}

	.sts-emoji-quick {
		display: none;
	}

	.sts-emoji-open-btn {
		flex: 1 1 auto;
	}
}
