/**
 * Chief Insights command center layout.
 */

.nros-chief-command {
	margin-bottom: 20px;
	padding: 18px 20px;
	background: var(--nros-surface);
	border: 1px solid var(--nros-border);
	border-radius: 12px;
	box-shadow: var(--nros-shadow-sm);
}

.nros-chief-command__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.nros-chief-command__title-wrap h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--nros-text);
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.nros-chief-command__sub {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--nros-text-muted);
	max-width: 42em;
	line-height: 1.45;
}

.nros-insights-cache-hint {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	color: var(--nros-text-muted, #6b7280);
	opacity: 0.9;
}

.nros-insights-refresh-link {
	margin-left: 8px;
	font-weight: 600;
	text-decoration: none;
}

.nros-insights-refresh-link:hover {
	text-decoration: underline;
}

.nros-chief-command__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.nros-chief-command__window {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nros-chief-command__window label {
	font-size: 12px;
	font-weight: 600;
	color: var(--nros-text-muted);
}

.nros-chief-command__window select {
	min-height: 32px;
	border-radius: 6px;
}

.nros-chief-live-badge {
	font-size: 9px;
	background: #fee2e2;
	color: #dc2626;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

@media (prefers-color-scheme: dark) {
	.nros-chief-live-badge {
		background: rgba(127, 29, 29, 0.45);
		color: #fca5a5;
	}
}

body.wp-admin.is-dark-theme .nros-chief-live-badge {
	background: rgba(127, 29, 29, 0.45);
	color: #fca5a5;
}

.nros-chief-ai-result {
	display: none;
	margin-top: 14px;
	background: var(--nros-accent-soft);
	border: 1px solid var(--nros-accent-border, #dbeafe);
	border-radius: 8px;
	padding: 14px;
	font-size: 13px;
	color: var(--nros-text);
}

.nros-chief-ai-result.is-visible {
	display: block;
}

.nros-kpi-row-insights .nros-kpi {
	transition: box-shadow 0.15s ease;
}

.nros-kpi-row-insights .nros-kpi:hover {
	box-shadow: var(--nros-shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.nros-chief-delta--up {
	color: #047857;
}

.nros-chief-delta--down {
	color: #b91c1c;
}

.nros-chief-delta--flat {
	color: var(--nros-text-subtle);
}

@media (prefers-color-scheme: dark) {
	.nros-chief-delta--up { color: #6ee7b7; }
	.nros-chief-delta--down { color: #fca5a5; }
}

body.wp-admin.is-dark-theme .nros-chief-delta--up { color: #6ee7b7; }
body.wp-admin.is-dark-theme .nros-chief-delta--down { color: #fca5a5; }

.nros-chief-kbd-hint {
	font-size: 11px;
	color: var(--nros-text-subtle);
	margin-left: 4px;
}

.nros-chief-kbd-hint kbd {
	display: inline-block;
	padding: 1px 5px;
	border: 1px solid var(--nros-border);
	border-radius: 4px;
	font-size: 10px;
	background: var(--nros-bg-muted);
	font-family: inherit;
}

/* Phase B — GSC charts */
.nros-chief-chart {
	margin-top: 4px;
}

.nros-chief-chart__svg {
	width: 100%;
	height: auto;
	display: block;
}

.nros-chief-chart__axis {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: var(--nros-text-subtle);
	margin-top: 4px;
}

.nros-chief-chart--by-channel {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nros-chief-channel-row {
	display: grid;
	grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr);
	gap: 8px 12px;
	align-items: center;
}

.nros-chief-channel-row__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--nros-text);
	min-width: 0;
}

.nros-chief-channel-row__name {
	flex: 1;
	min-width: 0;
}

.nros-chief-channel-row__total {
	font-size: 14px;
	font-weight: 700;
	color: var(--nros-text);
	white-space: nowrap;
}

.nros-chief-channel-row__svg {
	width: 100%;
	height: 36px;
	display: block;
}

.nros-chief-chart__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin: 10px 0 0;
	padding: 12px 0 0;
	list-style: none;
	font-size: 13px;
	color: var(--nros-text-muted);
	border-top: 1px solid var(--nros-border-subtle, #e2e4e7);
}

.nros-chief-chart__legend--totals li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nros-chief-chart__legend-val {
	font-size: 14px;
	font-weight: 700;
	color: var(--nros-text);
	margin-left: 2px;
}

.nros-chief-chart__swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	margin-right: 6px;
	vertical-align: middle;
}

.nros-chief-chart__meta {
	margin: 8px 0 0;
	font-size: 11px;
	color: var(--nros-text-subtle);
}

.nros-chief-chart-empty {
	font-size: 13px;
	color: var(--nros-text-muted);
	line-height: 1.5;
	margin: 0;
}

.nros-chief-chart--donut {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
}

.nros-chief-donut-wrap {
	flex: 0 0 120px;
}

.nros-chief-donut__svg {
	width: 120px;
	height: 120px;
	display: block;
}

.nros-chief-donut__legend {
	flex: 1;
	min-width: 160px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.nros-chief-donut__legend li {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	gap: 4px 8px;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid var(--nros-border-subtle, #e2e4e7);
}

.nros-chief-donut__legend li:last-child {
	border-bottom: none;
}

.nros-chief-donut__pct {
	font-size: 11px;
	color: var(--nros-text-subtle);
}

/* Device channel toggle */
.nros-chief-seg {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 12px;
	padding: 3px;
	background: var(--nros-bg-muted, #f6f7f7);
	border: 1px solid var(--nros-border-subtle, #e2e4e7);
	border-radius: 999px;
}

.nros-chief-seg__btn {
	border: none;
	background: transparent;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	color: var(--nros-text-muted);
	cursor: pointer;
}

.nros-chief-seg__btn.is-on {
	background: var(--nros-surface, #fff);
	color: var(--nros-accent, #2271b1);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

#nros-chief-device-donut.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

/* War room */
.nros-war-room {
	margin: 0 0 20px;
	padding: 16px 18px;
	background: var(--nros-surface);
	border: 1px solid var(--nros-border);
	border-radius: 12px;
}

.nros-war-room__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.nros-war-room__head h3 {
	margin: 0;
	font-size: 16px;
}

.nros-war-room__sub {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--nros-text-muted);
}

.nros-war-room__status {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--nros-text-muted);
}

.nros-war-room__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #94a3b8;
}

.nros-war-room__dot.is-live {
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
	animation: nros-war-room-pulse 2s ease-in-out infinite;
}

@keyframes nros-war-room-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

.nros-war-room__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.nros-war-room__kpi {
	padding: 12px;
	border: 1px solid var(--nros-border-subtle, #e2e4e7);
	border-radius: 8px;
	background: var(--nros-surface-raised, #fff);
}

.nros-war-room__kpi-val {
	font-size: 22px;
	font-weight: 700;
	color: var(--nros-text);
}

.nros-war-room__kpi-val.is-warn {
	color: #b91c1c;
}

.nros-war-room__kpi-lbl {
	font-size: 11px;
	color: var(--nros-text-muted);
	margin-top: 4px;
}

.nros-war-room__feed {
	grid-column: 1 / -1;
	margin-top: 4px;
}

.nros-war-room__list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.nros-war-room__list li {
	padding: 6px 0;
	border-bottom: 1px solid var(--nros-border-subtle, #e2e4e7);
}

.nros-war-room__list li span {
	float: right;
	font-size: 11px;
	color: var(--nros-text-subtle);
}

/* CrUX panel */
.nros-crux-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.nros-crux-panel__head h3 {
	margin: 0;
}

.nros-crux-panel__sub,
.nros-crux-panel__hint,
.nros-crux-panel__meta,
.nros-crux-panel__empty {
	font-size: 12px;
	color: var(--nros-text-muted);
}

.nros-crux-panel__metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}

.nros-crux-panel__metrics.is-loading {
	opacity: 0.55;
}

.nros-crux-metric {
	min-width: 88px;
	padding: 10px 12px;
	border: 1px solid var(--nros-border-subtle, #e2e4e7);
	border-radius: 8px;
}

.nros-crux-metric__lbl {
	font-size: 11px;
	font-weight: 700;
	color: var(--nros-text-muted);
}

.nros-crux-metric__val {
	font-size: 18px;
	font-weight: 700;
	margin-top: 4px;
}

.nros-crux-metric__val.is-good { color: #047857; }
.nros-crux-metric__val.is-warn { color: #b45309; }
.nros-crux-metric__val.is-bad { color: #b91c1c; }

@media (max-width: 782px) {
	.nros-war-room__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Chief Insights v2 — premium bento layout */
.nros-insights-wrap--v2 {
	margin-top: 4px;
}

.nros-chief-kpi-strip {
	display: grid;
	gap: 12px;
	margin-bottom: 12px;
}

.nros-chief-kpi-strip--primary {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nros-chief-kpi-strip--secondary {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 8px;
}

.nros-chief-kpi-strip--secondary .nros-chief-kpi-card {
	min-height: 80px;
	padding: 10px 12px;
}

.nros-chief-kpi-strip--secondary .nros-chief-kpi-card__val {
	font-size: 18px;
}

.nros-chief-legend-hint {
	margin: 0 0 20px;
	padding: 8px 12px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--nros-text-muted, #646970);
	background: var(--nros-surface-muted, #f6f7f7);
	border: 1px solid var(--nros-border-subtle, #e2e4e7);
	border-radius: 8px;
}

.nros-chief-kpi-card {
	background: var(--nros-surface, #fff);
	border: 1px solid var(--nros-border, #e2e4e7);
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	min-height: 100px;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.nros-chief-kpi-card:hover {
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	border-color: var(--nros-border, #dcdcde);
}

.nros-chief-kpi-card--hero {
	background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
	border-color: rgba(99, 102, 241, 0.35);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.nros-chief-kpi-card--hero .nros-chief-kpi-card__label {
	color: #94a3b8;
}

.nros-chief-kpi-card--hero .nros-chief-kpi-card__val {
	color: #ffffff;
}

.nros-chief-kpi-card--hero .nros-chief-kpi-card__hint {
	color: #64748b;
}

.nros-chief-kpi-card--hero .nros-chief-kpi-card__delta.nros-chief-delta--up {
	background: rgba(16, 185, 129, 0.2);
	color: #6ee7b7;
}

.nros-chief-kpi-card--hero .nros-chief-kpi-card__delta.nros-chief-delta--down {
	background: rgba(248, 113, 113, 0.2);
	color: #fca5a5;
}

.nros-chief-kpi-card--alert {
	background: linear-gradient(145deg, #450a0a, #7f1d1d);
	border-color: rgba(248, 113, 113, 0.4);
}

.nros-chief-kpi-card--success {
	background: linear-gradient(145deg, #ecfdf5, #d1fae5);
	border-color: #6ee7b7;
}

.nros-chief-kpi-card__label {
	font-size: 11px;
	font-weight: 600;
	color: var(--nros-text-muted, #646970);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.nros-chief-kpi-card__row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.nros-chief-kpi-card__val {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--nros-text, #1d2327);
	letter-spacing: -0.02em;
}

.nros-chief-kpi-card__delta {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	padding: 3px 8px;
	border-radius: 999px;
	line-height: 1.3;
}

.nros-chief-kpi-card__delta.nros-chief-delta--up {
	background: #ecfdf5;
	color: #047857;
}

.nros-chief-kpi-card__delta.nros-chief-delta--down {
	background: #fef2f2;
	color: #b91c1c;
}

.nros-chief-kpi-card__delta.nros-chief-delta--flat {
	background: var(--nros-bg-muted, #f3f4f6);
	color: var(--nros-text-subtle, #6b7280);
}

@media (prefers-color-scheme: dark) {
	.nros-chief-kpi-card__delta.nros-chief-delta--up {
		background: rgba(6, 78, 59, 0.35);
		color: #6ee7b7;
	}
	.nros-chief-kpi-card__delta.nros-chief-delta--down {
		background: rgba(127, 29, 29, 0.35);
		color: #fca5a5;
	}
}

body.wp-admin.is-dark-theme .nros-chief-kpi-card__delta.nros-chief-delta--up {
	background: rgba(6, 78, 59, 0.35);
	color: #6ee7b7;
}

body.wp-admin.is-dark-theme .nros-chief-kpi-card__delta.nros-chief-delta--down {
	background: rgba(127, 29, 29, 0.35);
	color: #fca5a5;
}

.nros-chief-kpi-card__spark {
	margin-top: auto;
	padding-top: 8px;
	opacity: 0.9;
}

.nros-chief-kpi-card__hint {
	font-size: 10px;
	color: var(--nros-text-subtle, #8c8f94);
	margin-top: 4px;
}

.nros-chief-mini-spark {
	display: block;
	max-width: 100%;
}

/* Bento grid */
.nros-chief-bento {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 8px;
}

.nros-chief-bento .nros-card {
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.nros-chief-bento .nros-card h3 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	border-bottom: none;
	padding-bottom: 0;
	color: var(--nros-text, #1d2327);
	letter-spacing: -0.01em;
}

.nros-chief-card-head {
	margin-bottom: 12px;
}

.nros-chief-card-head h3 {
	margin-bottom: 4px !important;
}

.nros-chief-card-head .nros-insights-table-hint {
	margin: 0;
	font-size: 12px;
}

.nros-chief-bento__chart {
	grid-column: span 8;
}

.nros-chief-bento__movers {
	grid-column: span 4;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nros-chief-bento__movers .nros-card {
	flex: 1;
	margin: 0;
}

.nros-chief-bento__device {
	grid-column: span 4;
}

.nros-chief-bento__channels {
	grid-column: span 4;
}

.nros-chief-bento__seasonal {
	grid-column: span 4;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	overflow: visible;
}

.nros-chief-bento__seasonal .nros-chief-seasonal-card {
	height: 100%;
}

/* When no GSC chart (demo / no sync), movers take full width */
.nros-chief-bento:not(:has(.nros-chief-bento__chart)) .nros-chief-bento__movers {
	grid-column: span 12;
	flex-direction: row;
}

.nros-chief-bento:not(:has(.nros-chief-bento__chart)) .nros-chief-bento__movers .nros-card {
	flex: 1;
	min-width: 0;
}

/* Post movers list */
.nros-chief-movers-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nros-chief-movers-list__empty {
	font-size: 12px;
	color: var(--nros-text-muted);
	padding: 8px 0;
	line-height: 1.45;
}

.nros-chief-movers-list__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--nros-border-subtle, #f0f0f1);
}

.nros-chief-movers-list__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.nros-chief-movers-list__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nros-chief-movers-list__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--nros-text);
	text-decoration: none;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

a.nros-chief-movers-list__title:hover {
	color: var(--nros-accent, #2271b1);
	text-decoration: underline;
}

.nros-chief-movers-list__clicks {
	font-size: 11px;
	color: var(--nros-text-muted);
}

.nros-chief-movers-list__badge {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
	white-space: nowrap;
	line-height: 1.3;
}

.nros-chief-movers-list__badge.is-up {
	background: #ecfdf5;
	color: #047857;
}

.nros-chief-movers-list__badge.is-down {
	background: #fef2f2;
	color: #b91c1c;
}

.nros-chief-movers-list__badge.is-flat {
	background: var(--nros-bg-muted, #f3f4f6);
	color: var(--nros-text-subtle);
}

@media (prefers-color-scheme: dark) {
	.nros-chief-movers-list__badge.is-up {
		background: rgba(6, 78, 59, 0.35);
		color: #6ee7b7;
	}
	.nros-chief-movers-list__badge.is-down {
		background: rgba(127, 29, 29, 0.35);
		color: #fca5a5;
	}
}

body.wp-admin.is-dark-theme .nros-chief-movers-list__badge.is-up {
	background: rgba(6, 78, 59, 0.35);
	color: #6ee7b7;
}

body.wp-admin.is-dark-theme .nros-chief-movers-list__badge.is-down {
	background: rgba(127, 29, 29, 0.35);
	color: #fca5a5;
}

/* Channel click bars */
.nros-chief-channel-bars {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 4px;
}

.nros-chief-channel-bars__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}

.nros-chief-channel-bars__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.nros-chief-channel-bars__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--nros-text);
}

.nros-chief-channel-bars__val {
	font-size: 14px;
	font-weight: 700;
	color: var(--nros-text);
}

.nros-chief-channel-bars__track {
	height: 8px;
	border-radius: 999px;
	background: var(--nros-bg-muted, #f3f4f6);
	overflow: hidden;
}

.nros-chief-channel-bars__fill {
	height: 100%;
	border-radius: 999px;
	min-width: 4px;
	transition: width 0.4s ease;
}

.nros-chief-channel-bars__ctr {
	font-size: 11px;
	color: var(--nros-text-muted);
}

/* Seasonal highlight card */
.nros-chief-seasonal-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px;
	border-radius: 16px;
	background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 50%, #eef2ff 100%);
	border: 1px solid #e9d5ff;
	box-shadow: 0 1px 3px rgba(99, 102, 241, 0.08);
	min-height: 100%;
}

.nros-chief-seasonal-card__icon {
	font-size: 20px;
	line-height: 1;
}

.nros-chief-seasonal-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #5b21b6;
}

.nros-chief-seasonal-card__body {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--nros-text, #374151);
}

.nros-chief-seasonal-card__body strong {
	color: #6d28d9;
}

.nros-chief-seasonal-card__stat {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #7c3aed;
}

.nros-chief-seasonal-card__cta {
	display: inline-flex;
	align-items: center;
	margin-top: auto;
	padding-top: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #6366f1;
	text-decoration: none;
}

.nros-chief-seasonal-card__cta:hover {
	color: #4f46e5;
	text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
	.nros-chief-seasonal-card {
		background: linear-gradient(135deg, rgba(91, 33, 182, 0.2) 0%, rgba(99, 102, 241, 0.12) 100%);
		border-color: rgba(167, 139, 250, 0.25);
	}
	.nros-chief-seasonal-card__title { color: #c4b5fd; }
	.nros-chief-seasonal-card__body strong { color: #ddd6fe; }
}

body.wp-admin.is-dark-theme .nros-chief-seasonal-card {
	background: linear-gradient(135deg, rgba(91, 33, 182, 0.2) 0%, rgba(99, 102, 241, 0.12) 100%);
	border-color: rgba(167, 139, 250, 0.25);
}

body.wp-admin.is-dark-theme .nros-chief-seasonal-card__title { color: #c4b5fd; }

/* Area chart polish */
.nros-chief-chart--area .nros-chief-chart__svg--line {
	min-height: 180px;
}

.nros-chief-bento .nros-chief-chart--donut {
	margin-top: 4px;
}

.nros-chief-movers-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 13px;
	display: table;
}

.nros-chief-movers-table th,
.nros-chief-movers-table td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--nros-border-subtle, #e2e4e7);
	text-align: left;
	vertical-align: middle;
}

.nros-chief-movers-table th {
	font-size: 11px;
	font-weight: 600;
	color: var(--nros-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.nros-chief-movers-table__title a {
	font-weight: 600;
	text-decoration: none;
}

.nros-chief-movers-table__title a:hover {
	text-decoration: underline;
}

.nros-chief-mover-delta {
	font-size: 11px;
	font-weight: 600;
	margin-left: 4px;
	white-space: nowrap;
}

.nros-chief-chart__svg--line {
	min-height: 140px;
}

.nros-card--war-room {
	padding-bottom: 8px;
}

.nros-card--war-room .nros-war-room--compact {
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
	background: transparent;
}

.nros-war-room--compact .nros-war-room__head {
	margin-bottom: 8px;
}

.nros-war-room--compact .nros-war-room__head h3 {
	font-size: 15px;
	margin: 0;
}

.nros-war-room__compact-stats {
	font-size: 12px;
	color: var(--nros-text-muted);
	margin-bottom: 10px;
}

.nros-war-room__compact-stats .is-warn {
	color: #b91c1c;
	font-weight: 600;
}

.nros-war-room__compact-sep {
	margin: 0 4px;
	opacity: 0.5;
}

.nros-war-room--compact .nros-war-room__list li {
	padding: 4px 0;
	font-size: 12px;
}

.nros-chief-accordions {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nros-chief-accordion {
	border: 1px solid var(--nros-border, #e2e4e7);
	border-radius: 12px;
	background: var(--nros-surface, #fff);
	overflow: hidden;
}

.nros-chief-accordion summary {
	cursor: pointer;
	padding: 12px 16px;
	font-weight: 600;
	font-size: 14px;
	list-style: none;
}

.nros-chief-accordion summary::-webkit-details-marker {
	display: none;
}

.nros-chief-accordion__body {
	padding: 0 16px 16px;
	border-top: 1px solid var(--nros-border-subtle, #e2e4e7);
}

.nros-chief-accordion__body .nros-war-room,
.nros-chief-accordion__body > div:first-child {
	margin-top: 12px;
}

/* Header action polish */
.nros-chief-command__actions .button-primary#nros-insights-ai-brief {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	border-color: #6366f1;
	box-shadow: 0 1px 2px rgba(99, 102, 241, 0.25);
}

.nros-chief-command__actions .button-primary#nros-insights-ai-brief:hover {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	border-color: #4f46e5;
}

.nros-chief-command__actions #nros-insights-print {
	border-radius: 6px;
}

@media (max-width: 1200px) {
	.nros-chief-kpi-strip--primary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nros-chief-kpi-strip--secondary {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nros-chief-bento__chart,
	.nros-chief-bento__movers,
	.nros-chief-bento__device,
	.nros-chief-bento__channels,
	.nros-chief-bento__seasonal {
		grid-column: span 12;
	}

	.nros-chief-bento:not(:has(.nros-chief-bento__chart)) .nros-chief-bento__movers {
		flex-direction: column;
	}
}

@media (max-width: 782px) {
	.nros-chief-kpi-strip--primary,
	.nros-chief-kpi-strip--secondary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nros-chief-kpi-card__val {
		font-size: 22px;
	}
}
