/**
 * Newsroom OS — admin / editor theme tokens + dark mode (WP 6.4+ compatible).
 */

body.wp-admin {
	--nros-surface: #ffffff;
	--nros-surface-raised: #fafbfc;
	--nros-bg-muted: #f6f7f7;
	--nros-bg-subtle: #f9fafb;
	--nros-border: #e2e4e7;
	--nros-border-subtle: #f0f0f1;
	--nros-text: #1d2327;
	--nros-text-muted: #50575e;
	--nros-text-subtle: #646970;
	--nros-accent: #6366f1;
	--nros-accent-hover: #4f46e5;
	--nros-accent-soft: #eef2ff;
	--nros-accent-border: #c7d2fe;
	--nros-sidebar-bg: #0f172a;
	--nros-sidebar-text: #cbd5e1;
	--nros-sidebar-text-active: #ffffff;
	--nros-sidebar-accent: #6366f1;
	--nros-sidebar-border: rgba(255, 255, 255, 0.08);
	--nros-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
	--nros-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.04);
	--nros-overlay: rgba(255, 255, 255, 0.85);
	--nros-skeleton-a: #f1f3f5;
	--nros-skeleton-b: #e6e9ec;
	--nros-gauge-track: #e5e7eb;
	--nros-gauge-hole: #ffffff;
	--nros-toast-bg: #1d2327;
	--nros-toast-fg: #ffffff;
	color-scheme: light;
}

/* OS dark preference */
@media (prefers-color-scheme: dark) {
	body.wp-admin {
		--nros-surface: #1e2130;
		--nros-surface-raised: #252836;
		--nros-bg-muted: #161824;
		--nros-bg-subtle: #1a1d2b;
		--nros-border: rgba(255, 255, 255, 0.12);
		--nros-border-subtle: rgba(255, 255, 255, 0.08);
		--nros-text: #e2e8f0;
		--nros-text-muted: #a8b4c4;
		--nros-text-subtle: #8b98ab;
		--nros-accent-soft: rgba(34, 113, 177, 0.18);
		--nros-accent-border: rgba(96, 165, 250, 0.35);
		--nros-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
		--nros-shadow-md: 0 2px 12px rgba(0, 0, 0, 0.4);
		--nros-overlay: rgba(22, 24, 36, 0.92);
		--nros-skeleton-a: #2a2f42;
		--nros-skeleton-b: #353b52;
		--nros-gauge-track: #3d4458;
		--nros-gauge-hole: #1e2130;
		--nros-toast-bg: #0f111a;
		--nros-toast-fg: #e2e8f0;
		color-scheme: dark;
	}
}

/* WP admin “Dashboard appearance: Dark” (6.7+) */
body.wp-admin.is-dark-theme {
	--nros-surface: #1e2130;
	--nros-surface-raised: #252836;
	--nros-bg-muted: #161824;
	--nros-bg-subtle: #1a1d2b;
	--nros-border: rgba(255, 255, 255, 0.12);
	--nros-border-subtle: rgba(255, 255, 255, 0.08);
	--nros-text: #e2e8f0;
	--nros-text-muted: #a8b4c4;
	--nros-text-subtle: #8b98ab;
	--nros-accent-soft: rgba(34, 113, 177, 0.18);
	--nros-accent-border: rgba(96, 165, 250, 0.35);
	--nros-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
	--nros-shadow-md: 0 2px 12px rgba(0, 0, 0, 0.4);
	--nros-overlay: rgba(22, 24, 36, 0.92);
	--nros-skeleton-a: #2a2f42;
	--nros-skeleton-b: #353b52;
	--nros-gauge-track: #3d4458;
	--nros-gauge-hole: #1e2130;
	--nros-toast-bg: #0f111a;
	--nros-toast-fg: #e2e8f0;
	color-scheme: dark;
}

/* Author Performance panel tokens */
.nros-author-perf {
	--ap-bg: var(--nros-bg-muted, #f6f7f9);
	--ap-surface: var(--nros-surface, #fff);
	--ap-border: var(--nros-border, #e5e7eb);
	--ap-text: var(--nros-text, #111827);
	--ap-muted: var(--nros-text-muted, #6b7280);
	--ap-kpi-bg: var(--nros-bg-subtle, #f9fafb);
	--ap-seg-bg: #f3f4f6;
	--ap-foot-bg: #fafbfc;
	--ap-expand-bg: var(--nros-bg-subtle, #f9fafb);
	--ap-row-bg: var(--nros-surface-raised, #fafbfc);
	--ap-chip-bg: var(--nros-bg-subtle, #f9fafb);
	--ap-input-bg: var(--nros-surface, #fff);
	--ap-tab-on: var(--nros-surface, #fff);
	--ap-self-gradient: linear-gradient(165deg, #fff 0%, #f5f7ff 50%, #fdf4ff 100%);
	--ap-header-gradient: linear-gradient(180deg, #fafbfc, #fff);
	--ap-icon-gradient: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

@media (prefers-color-scheme: dark) {
	.nros-author-perf {
		--ap-bg: #161824;
		--ap-surface: #1e2130;
		--ap-border: rgba(255, 255, 255, 0.1);
		--ap-text: #e2e8f0;
		--ap-muted: #94a3b8;
		--ap-kpi-bg: #252836;
		--ap-seg-bg: #1a1d2b;
		--ap-foot-bg: #1a1d2b;
		--ap-expand-bg: #1a1d2b;
		--ap-row-bg: #252836;
		--ap-chip-bg: #252836;
		--ap-input-bg: #1e2130;
		--ap-tab-on: #2a3044;
		--ap-self-gradient: linear-gradient(165deg, #1e2130 0%, #252836 50%, #2a2238 100%);
		--ap-header-gradient: linear-gradient(180deg, #252836, #1e2130);
		--ap-icon-gradient: linear-gradient(135deg, #1e3a5f, #312e81);
	}
}

body.wp-admin.is-dark-theme .nros-author-perf {
	--ap-bg: #161824;
	--ap-surface: #1e2130;
	--ap-border: rgba(255, 255, 255, 0.1);
	--ap-text: #e2e8f0;
	--ap-muted: #94a3b8;
	--ap-kpi-bg: #252836;
	--ap-seg-bg: #1a1d2b;
	--ap-foot-bg: #1a1d2b;
	--ap-expand-bg: #1a1d2b;
	--ap-row-bg: #252836;
	--ap-chip-bg: #252836;
	--ap-input-bg: #1e2130;
	--ap-tab-on: #2a3044;
	--ap-self-gradient: linear-gradient(165deg, #1e2130 0%, #252836 50%, #2a2238 100%);
	--ap-header-gradient: linear-gradient(180deg, #252836, #1e2130);
	--ap-icon-gradient: linear-gradient(135deg, #1e3a5f, #312e81);
}

/* Stale / notice banners (Trends & News) */
.nros-trends-stale-notice,
.nros-news-stale-notice {
	color: #9a3412 !important;
	background: #fff7ed !important;
	border-color: #fed7aa !important;
}

@media (prefers-color-scheme: dark) {
	.nros-trends-stale-notice,
	.nros-news-stale-notice {
		color: #fcd34d !important;
		background: rgba(146, 64, 14, 0.25) !important;
		border-color: rgba(251, 191, 36, 0.35) !important;
	}
}

body.wp-admin.is-dark-theme .nros-trends-stale-notice,
body.wp-admin.is-dark-theme .nros-news-stale-notice {
	color: #fcd34d !important;
	background: rgba(146, 64, 14, 0.25) !important;
	border-color: rgba(251, 191, 36, 0.35) !important;
}

/* Readiness sub-tabs (Editorial / Discover) — blue pill active state */
.nros-readiness-tab.nros-readiness-tab--active {
	color: #fff !important;
}

/* Radar tabs (TRENDS / NEWS) — fixed accent; never inherit wp-admin-theme-color (can be white) */
#newsai_sidebar .newsai-tab {
	color: #50575e !important;
	border-bottom: 2px solid transparent;
}
#newsai_sidebar .newsai-tab.active {
	color: #2271b1 !important;
	border-bottom-color: #2271b1 !important;
}
@media (prefers-color-scheme: dark) {
	#newsai_sidebar .newsai-tab {
		color: #94a3b8 !important;
	}
	#newsai_sidebar .newsai-tab.active {
		color: #60a5fa !important;
		border-bottom-color: #60a5fa !important;
	}
}
body.wp-admin.is-dark-theme #newsai_sidebar .newsai-tab {
	color: #94a3b8 !important;
}
body.wp-admin.is-dark-theme #newsai_sidebar .newsai-tab.active {
	color: #60a5fa !important;
	border-bottom-color: #60a5fa !important;
}

/* Radar / trends list items injected via AJAX (inline styles in HTML) */
@media (prefers-color-scheme: dark) {
	#newsai_sidebar a[style*="color:#1d2327"],
	#newsai_sidebar a[style*="color: #1d2327"],
	.nros-admin-wrap a[style*="color:#1d2327"],
	.nros-admin-wrap a[style*="color: #1d2327"] {
		color: var(--nros-text) !important;
	}
	#nros-pane-trends div[style*="border-bottom:1px solid #f0f0f1"],
	#nros-pane-news div[style*="border-bottom:1px solid #f0f0f1"],
	#newsai-trends-list div[style*="border-bottom:1px solid #f0f0f1"],
	#newsai-news-list div[style*="border-bottom:1px solid #f0f0f1"] {
		border-bottom-color: var(--nros-border-subtle) !important;
	}
}

/* Radar list rows (editor sidebar + dashboard; AJAX-injected HTML) */
.nros-radar-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 10px;
	margin: 0 -10px;
	border-bottom: 1px solid var(--nros-border-subtle);
	border-radius: 10px;
	transition: background 0.15s ease;
}

.nros-radar-row:last-child {
	border-bottom: none;
}

@media (hover: hover) {
	.nros-radar-row:hover {
		background: var(--nros-bg-muted, #f8fafc);
	}
}

.nros-radar-row__body {
	flex: 1;
	min-width: 0;
	line-height: 1.35;
	padding-right: 4px;
}

.nros-radar-row__link {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--nros-text);
	text-decoration: none;
	margin-top: 4px;
}

@media (hover: hover) {
	.nros-radar-row__link:hover {
		color: #4338ca;
	}
}

.nros-radar-badge {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 6px;
	line-height: 1.4;
}

.nros-radar-badge--default {
	background: var(--nros-accent-soft, #eef2ff);
	color: #4338ca;
	border: 1px solid var(--nros-accent-border, #c7d2fe);
}

.nros-radar-badge--hot {
	background: #fff7ed;
	color: #c2410c;
	border: 1px solid #fed7aa;
}

.nros-radar-badge--mega {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	animation: nros-radar-pulse 1.5s ease-in-out infinite;
}

.nros-radar-badge--fresh {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.nros-radar-badge--muted {
	background: transparent;
	color: var(--nros-text-muted);
	border: none;
	font-weight: 600;
	padding-left: 0;
}

@keyframes nros-radar-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.72; }
}

.nros-radar-row__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	flex-shrink: 0;
	border: 1px solid var(--nros-border);
	background: var(--nros-surface);
	border-radius: 8px;
	color: #4338ca;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	opacity: 0;
	transform: translateX(4px);
	transition:
		opacity 0.15s ease,
		transform 0.15s ease,
		background 0.15s ease,
		border-color 0.15s ease;
}

.nros-radar-row__action-label {
	display: none;
}

@media (hover: hover) {
	.nros-radar-row:hover .nros-radar-row__action {
		opacity: 1;
		transform: translateX(0);
	}

	.nros-radar-row__action:hover {
		background: #eef2ff;
		border-color: #c7d2fe;
	}

	.nros-radar-row__action:hover .nros-radar-row__action-label {
		display: inline;
	}

	.nros-radar-row__action:hover .nros-radar-row__action-icon {
		display: none;
	}
}

@media (hover: none) {
	.nros-radar-row__action {
		opacity: 1;
		transform: none;
	}
}

.nros-radar-news-beat {
	font-size: 10px;
	font-weight: 700;
	color: #4338ca;
	margin: 0 0 8px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nros-radar-stale-notice {
	font-size: 11px;
	color: #9a3412;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	padding: 8px 10px;
	margin: 0 0 12px;
	line-height: 1.4;
}

/* Editor sidebar: compact rows, always-visible + button, brief bar below scroll */
#newsai_sidebar .nros-radar-panel {
	display: flex;
	flex-direction: column;
}

#newsai_sidebar #nros-pane-trends,
#newsai_sidebar #nros-pane-news {
	flex: 0 1 auto;
	min-height: 0;
}

#newsai_sidebar .nros-radar-row {
	padding: 10px 0;
	margin: 0;
	gap: 8px;
}

#newsai_sidebar .nros-radar-row__action {
	opacity: 1;
	transform: none;
}

#newsai_sidebar .nros-radar-copy-btn:hover .nros-radar-row__action-label {
	display: inline;
}

#newsai_sidebar .nros-radar-copy-btn:hover .nros-radar-row__action-icon {
	display: none;
}

#newsai_sidebar .nros-radar-tabrow {
	margin-bottom: 10px;
}

#newsai_sidebar #nros-pane-trends,
#newsai_sidebar #nros-pane-news {
	padding-top: 6px;
}

body.wp-admin.is-dark-theme #newsai_sidebar a[style*="color:#1d2327"],
body.wp-admin.is-dark-theme #newsai_sidebar a[style*="color: #1d2327"],
body.wp-admin.is-dark-theme .nros-admin-wrap a[style*="color:#1d2327"],
body.wp-admin.is-dark-theme .nros-admin-wrap a[style*="color: #1d2327"] {
	color: var(--nros-text) !important;
}

/* Admin wrap muted text with legacy inline colors */
@media (prefers-color-scheme: dark) {
	.nros-admin-wrap p[style*="color:#50575e"],
	.nros-admin-wrap p[style*="color: #50575e"],
	.nros-admin-wrap .description[style*="color:#50575e"] {
		color: var(--nros-text-muted) !important;
	}
}

body.wp-admin.is-dark-theme .nros-admin-wrap p[style*="color:#50575e"],
body.wp-admin.is-dark-theme .nros-admin-wrap p[style*="color: #50575e"] {
	color: var(--nros-text-muted) !important;
}

/* ==========================================================================
   Dark mode — contrast pass (WP 6.4+ admin dark + prefers-color-scheme)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
	.nros-admin-wrap,
	.nros-admin-wrap .nros-settings-pane {
		color: var(--nros-text);
	}

	.nros-admin-wrap .form-table th,
	.nros-admin-wrap .form-table td,
	.nros-admin-wrap label {
		color: var(--nros-text);
	}

	.nros-admin-wrap .description,
	.nros-admin-wrap p.description,
	.nros-admin-wrap .nros-select-detail,
	.nros-admin-wrap .nros-card-desc {
		color: var(--nros-text-muted) !important;
	}

	.nros-admin-wrap hr {
		border-top-color: var(--nros-border) !important;
	}

	.nros-admin-wrap input[type="text"],
	.nros-admin-wrap input[type="url"],
	.nros-admin-wrap input[type="email"],
	.nros-admin-wrap input[type="password"],
	.nros-admin-wrap input[type="number"],
	.nros-admin-wrap input[type="search"],
	.nros-admin-wrap input[type="tel"],
	.nros-admin-wrap input[type="file"],
	.nros-admin-wrap select,
	.nros-admin-wrap textarea {
		background-color: var(--nros-surface-raised) !important;
		color: var(--nros-text) !important;
		border-color: var(--nros-border) !important;
	}

	.nros-admin-wrap ::placeholder {
		color: var(--nros-text-subtle) !important;
		opacity: 1;
	}

	.nros-admin-wrap code {
		background: var(--nros-bg-muted);
		color: var(--nros-text);
		border: 1px solid var(--nros-border);
	}

	/* Legacy inline greys from PHP templates */
	.nros-admin-wrap [style*="color:#50575e"],
	.nros-admin-wrap [style*="color: #50575e"],
	.nros-admin-wrap [style*="color:#646970"],
	.nros-admin-wrap [style*="color: #646970"],
	.nros-admin-wrap [style*="color:#3c434a"],
	.nros-admin-wrap [style*="color: #3c434a"],
	.nros-admin-wrap [style*="color:#1d2327"],
	.nros-admin-wrap [style*="color: #1d2327"],
	.nros-admin-wrap [style*="color:#334155"],
	.nros-admin-wrap [style*="color: #334155"],
	.nros-admin-wrap [style*="color:#64748b"],
	.nros-admin-wrap [style*="color: #64748b"],
	.nros-admin-wrap [style*="color:#4b5563"],
	.nros-admin-wrap [style*="color: #4b5563"],
	.nros-admin-wrap [style*="color:#555"],
	.nros-admin-wrap [style*="color: #555"] {
		color: var(--nros-text-muted) !important;
	}

	.nros-admin-wrap [style*="color:#1f2937"],
	.nros-admin-wrap [style*="color: #1f2937"] {
		color: var(--nros-text) !important;
	}

	/* Light notice / callout boxes */
	.nros-admin-wrap [style*="background:#fff8e5"],
	.nros-admin-wrap [style*="background: #fff8e5"],
	.nros-admin-wrap [style*="background:#f8f9fa"],
	.nros-admin-wrap [style*="background: #f8f9fa"],
	.nros-admin-wrap [style*="background:#f9fafb"],
	.nros-admin-wrap [style*="background: #f9fafb"],
	.nros-admin-wrap [style*="background:#fff"],
	.nros-admin-wrap [style*="background: #fff"],
	.nros-admin-wrap [style*="background:#ffffff"],
	.nros-admin-wrap [style*="background: #ffffff"] {
		background: var(--nros-surface-raised) !important;
		border-color: var(--nros-border) !important;
		color: var(--nros-text) !important;
	}

	.nros-admin-wrap [style*="background:#e0e7ff"] {
		background: rgba(99, 102, 241, 0.22) !important;
		color: #c7d2fe !important;
	}

	.nros-admin-wrap [style*="background:#ecfdf5"] {
		background: rgba(6, 78, 59, 0.35) !important;
		color: #6ee7b7 !important;
		border-color: rgba(52, 211, 153, 0.35) !important;
	}
}

body.wp-admin.is-dark-theme .nros-admin-wrap,
body.wp-admin.is-dark-theme .nros-admin-wrap .nros-settings-pane {
	color: var(--nros-text);
}

body.wp-admin.is-dark-theme .nros-admin-wrap .form-table th,
body.wp-admin.is-dark-theme .nros-admin-wrap .form-table td,
body.wp-admin.is-dark-theme .nros-admin-wrap label {
	color: var(--nros-text);
}

body.wp-admin.is-dark-theme .nros-admin-wrap .description,
body.wp-admin.is-dark-theme .nros-admin-wrap p.description,
body.wp-admin.is-dark-theme .nros-admin-wrap .nros-select-detail,
body.wp-admin.is-dark-theme .nros-admin-wrap .nros-card-desc {
	color: var(--nros-text-muted) !important;
}

body.wp-admin.is-dark-theme .nros-admin-wrap hr {
	border-top-color: var(--nros-border) !important;
}

body.wp-admin.is-dark-theme .nros-admin-wrap input[type="text"],
body.wp-admin.is-dark-theme .nros-admin-wrap input[type="url"],
body.wp-admin.is-dark-theme .nros-admin-wrap input[type="email"],
body.wp-admin.is-dark-theme .nros-admin-wrap input[type="password"],
body.wp-admin.is-dark-theme .nros-admin-wrap input[type="number"],
body.wp-admin.is-dark-theme .nros-admin-wrap input[type="search"],
body.wp-admin.is-dark-theme .nros-admin-wrap input[type="tel"],
body.wp-admin.is-dark-theme .nros-admin-wrap input[type="file"],
body.wp-admin.is-dark-theme .nros-admin-wrap select,
body.wp-admin.is-dark-theme .nros-admin-wrap textarea {
	background-color: var(--nros-surface-raised) !important;
	color: var(--nros-text) !important;
	border-color: var(--nros-border) !important;
}

body.wp-admin.is-dark-theme .nros-admin-wrap ::placeholder {
	color: var(--nros-text-subtle) !important;
	opacity: 1;
}

body.wp-admin.is-dark-theme .nros-admin-wrap code {
	background: var(--nros-bg-muted);
	color: var(--nros-text);
	border: 1px solid var(--nros-border);
}

body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color:#50575e"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color: #50575e"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color:#646970"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color: #646970"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color:#3c434a"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color: #3c434a"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color:#1d2327"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color: #1d2327"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color:#334155"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color: #334155"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color:#64748b"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color: #64748b"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color:#4b5563"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color: #4b5563"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color:#555"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color: #555"] {
	color: var(--nros-text-muted) !important;
}

body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color:#1f2937"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="color: #1f2937"] {
	color: var(--nros-text) !important;
}

body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background:#fff8e5"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background: #fff8e5"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background:#f8f9fa"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background: #f8f9fa"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background:#f9fafb"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background: #f9fafb"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background:#fff"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background: #fff"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background:#ffffff"],
body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background: #ffffff"] {
	background: var(--nros-surface-raised) !important;
	border-color: var(--nros-border) !important;
	color: var(--nros-text) !important;
}

body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background:#e0e7ff"] {
	background: rgba(99, 102, 241, 0.22) !important;
	color: #c7d2fe !important;
}

body.wp-admin.is-dark-theme .nros-admin-wrap [style*="background:#ecfdf5"] {
	background: rgba(6, 78, 59, 0.35) !important;
	color: #6ee7b7 !important;
	border-color: rgba(52, 211, 153, 0.35) !important;
}

/* Editor sidebar — legacy inline colors */
@media (prefers-color-scheme: dark) {
	#newsai_sidebar [style*="color:#50575e"],
	#newsai_sidebar [style*="color: #50575e"],
	#newsai_sidebar [style*="color:#646970"],
	#newsai_sidebar [style*="color: #646970"],
	#newsai_sidebar [style*="color:#1d2327"],
	#newsai_sidebar [style*="color: #1d2327"],
	#newsai_sidebar [style*="color:#555"],
	#newsai_sidebar [style*="color: #555"],
	#newsai_sidebar [style*="color:#3c434a"],
	#newsai_sidebar [style*="color: #3c434a"] {
		color: var(--nros-text-muted) !important;
	}
	#newsai_sidebar [style*="background:#f8f9fa"],
	#newsai_sidebar [style*="background: #f8f9fa"],
	#newsai_sidebar [style*="background:#f9fafb"],
	#newsai_sidebar [style*="background: #f9fafb"] {
		background: var(--nros-surface-raised) !important;
		border-color: var(--nros-border) !important;
		color: var(--nros-text) !important;
	}
	#newsai_sidebar .description {
		color: var(--nros-text-muted) !important;
	}
}

body.wp-admin.is-dark-theme #newsai_sidebar [style*="color:#50575e"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="color: #50575e"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="color:#646970"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="color: #646970"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="color:#1d2327"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="color: #1d2327"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="color:#555"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="color: #555"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="color:#3c434a"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="color: #3c434a"] {
	color: var(--nros-text-muted) !important;
}

body.wp-admin.is-dark-theme #newsai_sidebar [style*="background:#f8f9fa"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="background: #f8f9fa"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="background:#f9fafb"],
body.wp-admin.is-dark-theme #newsai_sidebar [style*="background: #f9fafb"] {
	background: var(--nros-surface-raised) !important;
	border-color: var(--nros-border) !important;
	color: var(--nros-text) !important;
}

body.wp-admin.is-dark-theme #newsai_sidebar .description {
	color: var(--nros-text-muted) !important;
}
