.kpi-inline-metrics-col {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
	min-width: 0;
	gap: 0.04rem;
}
:root {
	--bg-0: #060b14;
	--bg-1: #0b1322;
	--bg-2: #121d31;
	--surface: #0f1a2e;
	--surface-2: #14233d;
	--border: rgba(148, 163, 184, 0.22);
	--text-main: #e2e8f0;
	--text-muted: #94a3b8;
	--cyan: #22d3ee;
	--teal: #14b8a6;
	--amber: #f59e0b;
	--rose: #f43f5e;
	--green: #22c55e;
}

* {
	box-sizing: border-box;
}

body.app-shell {
	background:
		radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.16), transparent 32%),
		radial-gradient(circle at 95% 5%, rgba(34, 211, 238, 0.14), transparent 28%),
		radial-gradient(circle at 50% 120%, rgba(251, 191, 36, 0.09), transparent 38%),
		linear-gradient(145deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
	color: var(--text-main);
}

body.app-shell::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(15, 23, 42, 0.25) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, 0.25) 1px, transparent 1px);
	background-size: 38px 38px;
	opacity: 0.3;
}

.glass-panel {
	background: linear-gradient(180deg, rgba(15, 26, 46, 0.93), rgba(10, 16, 30, 0.9));
	border: 1px solid var(--border);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(4px);
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	border-radius: 999px;
	padding: 0.5rem 0.85rem;
	border: 1px solid rgba(34, 211, 238, 0.45);
	background: rgba(8, 26, 39, 0.9);
	font-size: 0.8rem;
	color: #cffafe;
	font-weight: 600;
}

.status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #22d3ee;
	animation: pulse 1.8s infinite;
}

.command-header {
	position: relative;
	overflow: hidden;
	background-image:
		linear-gradient(to right, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.88) 42%, rgba(2, 6, 23, 0.62) 100%),
		url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&q=80&auto=format&fit=crop') !important;
	background-size: cover !important;
	background-position: center center !important;
}

.command-header::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(125deg, rgba(34, 211, 238, 0.07), transparent 40%, rgba(20, 184, 166, 0.04));
}

.brand-mark {
	display: grid;
	grid-template-columns: repeat(3, 8px);
	gap: 4px;
	padding: 0.32rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(34, 211, 238, 0.45);
	background: rgba(3, 15, 26, 0.82);
}

.brand-mark span {
	display: block;
	width: 8px;
	height: 18px;
	border-radius: 999px;
	background: linear-gradient(180deg, #67e8f9, #0891b2);
	animation: markPulse 2s ease-in-out infinite;
}

.brand-mark span:nth-child(2) {
	animation-delay: 0.18s;
	height: 14px;
	margin-top: 2px;
}

.brand-mark span:nth-child(3) {
	animation-delay: 0.34s;
	height: 22px;
	margin-top: -2px;
}

.header-metrics-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

.header-metric-item {
	border: 1px solid rgba(148, 163, 184, 0.26);
	border-radius: 0.74rem;
	padding: 0.46rem 0.58rem;
	background: rgba(2, 6, 23, 0.55);
}

.header-metric-item p {
	margin: 0;
	font-size: 0.67rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
	font-weight: 600;
}

.header-metric-item h3 {
	margin: 0.2rem 0 0;
	font-size: 1rem;
	font-weight: 800;
	font-family: "Space Grotesk", "Inter", sans-serif;
	color: #e0f2fe;
	letter-spacing: 0.01em;
}

.header-pulse-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.45rem 0.62rem;
	font-size: 0.73rem;
	font-weight: 600;
	border: 1px solid rgba(34, 211, 238, 0.25);
	border-radius: 0.66rem;
	background: rgba(8, 22, 38, 0.65);
	color: #a5f3fc;
}

.header-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #2dd4bf;
	box-shadow: 0 0 12px rgba(45, 212, 191, 0.65);
	animation: pulse 1.6s infinite;
}

.event-ticker-wrap {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	align-items: center;
	gap: 0.5rem;
	border-radius: 0.7rem;
	padding: 0.42rem 0.48rem;
	border: 1px solid rgba(148, 163, 184, 0.24);
	background: rgba(2, 6, 23, 0.52);
}

.event-ticker-label {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7dd3fc;
}

.event-ticker-track {
	overflow: hidden;
	position: relative;
	white-space: nowrap;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.event-ticker-items {
	display: inline-flex;
	gap: 0.48rem;
	align-items: center;
	padding-right: 1rem;
	animation: tickerMove 44s linear infinite;
	min-width: max-content;
}

.event-chip {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 0.22rem 0.55rem;
	font-size: 0.67rem;
	font-weight: 600;
	color: #dbeafe;
	background: rgba(15, 23, 42, 0.86);
	border: 1px solid rgba(148, 163, 184, 0.25);
}

.ops-map-wrap {
	position: relative;
	height: 310px;
	border-radius: 0.9rem;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.24);
	background:
		radial-gradient(ellipse at 42% 39%, rgba(34, 211, 238, 0.14), transparent 28%),
		radial-gradient(ellipse at 78% 71%, rgba(45, 212, 191, 0.1), transparent 22%),
		radial-gradient(circle at 50% 50%, transparent 40%, rgba(2, 6, 23, 0.6)),
		linear-gradient(160deg, rgba(8, 22, 38, 0.88), rgba(2, 6, 23, 0.8));
}

.ops-map-grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
	background-size: 22px 22px;
	opacity: 0.6;
}

.ops-map-nodes {
	position: absolute;
	inset: 0;
}

.ops-node {
	position: absolute;
	transform: translate(-50%, -50%);
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	font: inherit;
	color: #e2e8f0;
}

.ops-node span {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 999px;
	border: 2px solid rgba(248, 250, 252, 0.92);
	box-shadow: 0 0 16px currentColor;
	animation: nodePulse 2.6s ease-in-out infinite;
}

.ops-node em {
	position: absolute;
	top: 15px;
	left: 50%;
	transform: translateX(-50%);
	font-style: normal;
	font-size: 0.61rem;
	font-weight: 700;
	padding: 0.1rem 0.36rem;
	border-radius: 999px;
	background: rgba(2, 6, 23, 0.74);
	border: 1px solid rgba(148, 163, 184, 0.28);
	white-space: nowrap;
}

.ops-node.stable {
	color: #22c55e;
}

.ops-node.warning {
	color: #f59e0b;
}

.ops-node.critical {
	color: #f43f5e;
}

.ops-map-legend {
	margin-top: 0.7rem;
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	font-size: 0.7rem;
	color: #cbd5e1;
}

.ops-map-legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
	border-radius: 999px;
	padding: 0.18rem 0.45rem;
	border: 1px solid rgba(148, 163, 184, 0.26);
	background: rgba(2, 6, 23, 0.44);
}

.ops-map-legend .dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	display: block;
}

.ops-map-legend .dot.stable {
	background: #22c55e;
}

.ops-map-legend .dot.warning {
	background: #f59e0b;
}

.ops-map-legend .dot.critical {
	background: #f43f5e;
}

.event-feed-list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.event-feed-list li {
	border-radius: 0.74rem;
	padding: 0.56rem 0.62rem;
	border-left: 3px solid rgba(34, 211, 238, 0.6);
	border: 1px solid rgba(148, 163, 184, 0.2);
	background: rgba(15, 23, 42, 0.74);
}

.event-feed-list span {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: #7dd3fc;
}

.event-feed-list p {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	color: #dbeafe;
	line-height: 1.46;
}

.kpi-card {
	position: relative;
	overflow: hidden;
	border-radius: 1rem;
	padding: 1rem;
	background: linear-gradient(160deg, rgba(20, 35, 61, 0.95), rgba(11, 19, 34, 0.92));
	border: 1px solid var(--border);
	transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.kpi-card:hover {
	transform: translateY(-4px);
	border-color: rgba(56, 189, 248, 0.6);
	box-shadow: 0 12px 32px rgba(2, 132, 199, 0.18);
}

.kpi-card::after {
	content: "";
	position: absolute;
	top: -40%;
	right: -25%;
	width: 130px;
	height: 130px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 60%);
}

.kpi-label {
	font-size: 0.73rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
	font-weight: 600;
}

.kpi-trend-desc {
	margin: 0 0 0.04rem 0;
	font-size: 0.68rem;
	color: #7dd3fc;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-align: right;
}


.kpi-value {
	font-size: 1.25rem;
	font-weight: 800;
	font-family: "Space Grotesk", "Inter", sans-serif;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
}


.kpi-top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	margin-top: 0.5rem;
	min-width: 0;
}

.kpi-inline-metrics {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	min-width: 0;
	flex: 1;
}

.kpi-trend {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 0.22rem 0.5rem;
	border: 1px solid rgba(148, 163, 184, 0.26);
	background: rgba(2, 6, 23, 0.5);
	font-size: 0.67rem;
	font-weight: 700;
	white-space: nowrap;
	flex: 0 0 auto;
}

.kpi-trend.up {
	color: #fecdd3;
	border-color: rgba(244, 63, 94, 0.36);
	background: rgba(120, 20, 40, 0.35);
}

.kpi-trend.down {
	color: #bbf7d0;
	border-color: rgba(34, 197, 94, 0.4);
	background: rgba(22, 101, 52, 0.3);
}

.kpi-trend.flat {
	color: #bae6fd;
	border-color: rgba(34, 211, 238, 0.35);
	background: rgba(8, 47, 73, 0.36);
}

.kpi-sparkline {
	position: relative;
	width: 96px;
	flex: 0 0 96px;
	height: 18px;
	margin-top: 0;
	border-radius: 0.55rem;
	overflow: hidden;
	border: 1px solid rgba(103, 232, 249, 0.34);
	background: rgba(2, 6, 23, 0.72);
	box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.1);
}

.kpi-sparkline span {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		120deg,
		rgba(34, 197, 94, 0.18) 0%,
		rgba(34, 211, 238, 0.92) var(--offset),
		rgba(244, 63, 94, 0.76) 100%
	);
	mask-image: linear-gradient(
		90deg,
		transparent 0%,
		#000 5%,
		#000 95%,
		transparent 100%
	);
	filter: saturate(1.28) brightness(1.18);
	box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.06), inset 0 0 18px rgba(34, 211, 238, 0.14);
}

.kpi-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.38rem;
	min-width: 0;
}

.kpi-details-btn {
	flex: 0 0 auto;
	white-space: nowrap;
	margin-left: auto;
}

@media (max-width: 640px) {
	.kpi-top-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.45rem;
	}

	.kpi-inline-metrics {
		width: 100%;
		justify-content: space-between;
	}

	.kpi-sparkline {
		width: 100%;
		flex-basis: auto;
	}

	.kpi-footer-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.kpi-details-btn {
		margin-left: 0;
	}
}

.kpi-foot {
	margin: 0;
	min-width: 0;
	font-size: 0.78rem;
	color: #cbd5e1;
	line-height: 1.45;
}

.panel-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.panel-title-row {
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.panel-title {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 700;
	font-size: 0.96rem;
	color: #e2e8f0;
}

.panel-title .lucide {
	width: 15px;
	height: 15px;
	color: #67e8f9;
}

.panel-subtitle {
	color: var(--text-muted);
	font-size: 0.78rem;
}

.chart-panel {
	min-height: 315px;
}

.chart-wrap {
	position: relative;
	height: 255px;
	margin-top: 0.75rem;
}

.table-wrap {
	overflow-x: auto;
	border-radius: 0.8rem;
	border: 1px solid rgba(148, 163, 184, 0.2);
}

table {
	border-collapse: collapse;
}

thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #15253f;
	font-size: 0.73rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #cbd5e1;
	text-align: left;
	padding: 0.75rem;
}

tbody td {
	padding: 0.75rem;
	border-top: 1px solid rgba(148, 163, 184, 0.12);
	color: #dbeafe;
	font-size: 0.84rem;
}

tbody tr {
	transition: background-color 180ms ease;
}

tbody tr:hover {
	background-color: rgba(34, 211, 238, 0.06);
}

.risk-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 0.18rem 0.55rem;
	font-size: 0.73rem;
	font-weight: 700;
}

.risk-low {
	color: #bbf7d0;
	background: rgba(34, 197, 94, 0.16);
	border: 1px solid rgba(34, 197, 94, 0.35);
}

.risk-medium {
	color: #fde68a;
	background: rgba(245, 158, 11, 0.15);
	border: 1px solid rgba(245, 158, 11, 0.35);
}

.risk-high {
	color: #fecdd3;
	background: rgba(244, 63, 94, 0.16);
	border: 1px solid rgba(244, 63, 94, 0.4);
}

.alerts-item {
	border-left: 3px solid var(--cyan);
	background: rgba(15, 23, 42, 0.75);
	border-radius: 0.7rem;
	padding: 0.65rem 0.75rem;
	font-family: "Inter", "Space Grotesk", sans-serif;
	transition: transform 180ms ease, border-color 180ms ease;
}

.alerts-item:hover {
	transform: translateX(4px);
}

.alerts-item.high {
	border-left-color: var(--rose);
	box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.26);
}

.alerts-item.medium {
	border-left-color: var(--amber);
}

.alert-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	font-family: inherit;
	font-size: 0.67rem;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-weight: 700;
}

.alert-severity-label {
	font-family: inherit;
	line-height: 1;
}

.alerts-item.high .alert-pill {
	color: #fda4af;
}

.alerts-item.medium .alert-pill {
	color: #fcd34d;
}

.alert-message {
	margin: 0.3rem 0 0;
	font-family: inherit;
	font-size: 0.78rem;
	line-height: 1.5;
	color: #e2e8f0;
	font-weight: 500;
}

.alert-source {
	margin: 0.25rem 0 0;
	font-family: inherit;
	font-size: 0.71rem;
	color: #94a3b8;
	letter-spacing: 0.01em;
}

.alert-actions {
	display: flex;
	gap: 0.42rem;
	margin-top: 0.5rem;
}

.alert-pulse {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #f43f5e;
	animation: pulse 1.4s infinite;
	flexShrink: 0;
}

.insight-item {
	border: 1px solid rgba(56, 189, 248, 0.26);
	background: rgba(8, 47, 73, 0.22);
	border-radius: 0.8rem;
	padding: 0.65rem 0.75rem;
	font-size: 0.84rem;
	color: #dbeafe;
}

.chat-window {
	min-height: 180px;
	max-height: 260px;
	overflow-y: auto;
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 0.9rem;
	padding: 0.6rem;
	background: rgba(2, 6, 23, 0.45);
}

.chat-window-drawer {
	flex: 1;
	min-height: 0;
	max-height: none;
	height: auto;
	margin-bottom: 0.35rem;
}

.chat-row {
	margin-bottom: 0.6rem;
	display: flex;
}

.chat-row.user {
	justify-content: flex-end;
}

.chat-bubble {
	max-width: 92%;
	border-radius: 0.75rem;
	padding: 0.45rem 0.6rem;
	font-size: 0.82rem;
	line-height: 1.45;
	white-space: pre-wrap;
}

.chat-row.user .chat-bubble {
	background: #164e63;
	color: #ecfeff;
}

.chat-row.ai .chat-bubble {
	background: #1e293b;
	color: #e2e8f0;
	border: 1px solid rgba(148, 163, 184, 0.3);
}

.quick-prompt {
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.4);
	background: rgba(30, 41, 59, 0.65);
	padding: 0.3rem 0.65rem;
	font-size: 0.7rem;
	color: #e2e8f0;
	transition: all 180ms ease;
}

.quick-prompt:hover {
	border-color: rgba(34, 211, 238, 0.65);
	color: #67e8f9;
}

.copilot-launch-card {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(103, 232, 249, 0.2);
	background:
		radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 32%),
		linear-gradient(180deg, rgba(15, 26, 46, 0.96), rgba(10, 16, 30, 0.94));
}

.copilot-eyebrow {
	margin: 0 0 0.1rem;
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #67e8f9;
}

.copilot-launcher {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 999px;
	border: 1px solid rgba(34, 211, 238, 0.4);
	background: radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.2), rgba(8, 47, 73, 0.92));
	color: #cffafe;
	box-shadow: 0 10px 24px rgba(8, 47, 73, 0.28);
	transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.copilot-launcher:hover {
	transform: translateY(-1px) scale(1.03);
	border-color: rgba(34, 211, 238, 0.7);
	filter: brightness(1.08);
}

.copilot-launcher i {
	width: 1.2rem;
	height: 1.2rem;
}

.copilot-launch-preview {
	border-radius: 0.92rem;
	padding: 0.8rem 0.85rem;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(2, 6, 23, 0.46);
	color: #dbeafe;
}

.copilot-launch-preview p {
	margin: 0.55rem 0 0;
	font-size: 0.83rem;
	line-height: 1.55;
	color: #cbd5e1;
}

.copilot-float-launcher {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.72rem 0.95rem 0.72rem 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(34, 211, 238, 0.4);
	background: linear-gradient(120deg, rgba(8, 47, 73, 0.96), rgba(15, 118, 110, 0.9));
	box-shadow: 0 16px 38px rgba(2, 6, 23, 0.46);
	color: #ecfeff;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.copilot-float-launcher:hover {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.08);
	border-color: rgba(34, 211, 238, 0.7);
}

.copilot-float-launcher i {
	width: 1.05rem;
	height: 1.05rem;
	flex: 0 0 auto;
}

@media (max-width: 640px) {
	.copilot-float-launcher {
		right: 0.75rem;
		bottom: 0.75rem;
		padding: 0.68rem 0.82rem;
	}

	.copilot-float-launcher span {
		display: none;
	}
}

.copilot-launch-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.28rem 0.62rem;
	border-radius: 999px;
	border: 1px solid rgba(34, 211, 238, 0.2);
	background: rgba(8, 22, 38, 0.74);
	font-size: 0.7rem;
	font-weight: 700;
	color: #a5f3fc;
}

.copilot-backdrop {
	position: fixed;
	inset: 0;
	z-index: 70;
	background: rgba(2, 6, 23, 0.62);
	backdrop-filter: blur(9px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease;
}

.copilot-backdrop.open {
	opacity: 1;
	pointer-events: auto;
}

.copilot-drawer {
	position: fixed;
	top: 1rem;
	right: 1rem;
	bottom: 1rem;
	width: min(460px, calc(100vw - 2rem));
	z-index: 80;
	border-radius: 1.2rem;
	border: 1px solid rgba(34, 211, 238, 0.24);
	background:
		linear-gradient(180deg, rgba(8, 15, 29, 0.98), rgba(6, 11, 22, 0.98));
	box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transform: translateX(112%);
	opacity: 0;
	pointer-events: none;
	transition: transform 240ms ease, opacity 240ms ease;
}

.copilot-drawer.open {
	transform: translateX(0);
	opacity: 1;
	pointer-events: auto;
}

.copilot-drawer::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: 1.2rem;
	background:
		radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.16), transparent 24%),
		radial-gradient(circle at 92% 10%, rgba(20, 184, 166, 0.12), transparent 28%);
	opacity: 0.9;
}

.copilot-drawer-head,
.copilot-drawer-meta,
.copilot-form {
	position: relative;
	z-index: 1;
}

.copilot-drawer-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.copilot-drawer-kicker {
	margin: 0 0 0.2rem;
	font-size: 0.67rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #7dd3fc;
}

.copilot-drawer-title {
	margin: 0;
	font-family: "Space Grotesk", "Inter", sans-serif;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #f1f5f9;
}

.copilot-drawer-subtitle {
	margin: 0.35rem 0 0;
	max-width: 340px;
	font-size: 0.83rem;
	line-height: 1.5;
	color: #94a3b8;
}

.copilot-close {
	border-radius: 999px;
	padding: 0.45rem 0.8rem;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(15, 23, 42, 0.8);
	color: #e2e8f0;
	font-size: 0.76rem;
	font-weight: 700;
	transition: all 180ms ease;
}

.copilot-close:hover {
	border-color: rgba(34, 211, 238, 0.65);
	background: rgba(8, 47, 73, 0.72);
}

.copilot-drawer-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.copilot-status-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	border-radius: 999px;
	padding: 0.34rem 0.7rem;
	border: 1px solid rgba(148, 163, 184, 0.24);
	background: rgba(2, 6, 23, 0.56);
	font-size: 0.72rem;
	font-weight: 700;
	color: #dbeafe;
}

.copilot-form {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.copilot-form .chat-input {
	flex: 1;
}

.copilot-form .chat-btn {
	flex: 0 0 auto;
}

@media (max-width: 1024px) {
	.copilot-drawer {
		top: auto;
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		width: auto;
		height: min(82vh, 720px);
	}
}

.detail-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(103, 232, 249, 0.35);
	background: rgba(8, 47, 73, 0.46);
	color: #a5f3fc;
	border-radius: 999px;
	padding: 0.22rem 0.58rem;
	font-size: 0.68rem;
	font-weight: 700;
	transition: all 180ms ease;
}

.detail-link:hover {
	border-color: rgba(34, 211, 238, 0.65);
	background: rgba(8, 47, 73, 0.72);
	transform: translateY(-1px);
}

.detail-trigger {
	cursor: pointer;
}

.chat-input {
	width: 100%;
	border-radius: 0.7rem;
	border: 1px solid rgba(148, 163, 184, 0.42);
	background: rgba(15, 23, 42, 0.9);
	color: #f8fafc;
	padding: 0.55rem 0.7rem;
	font-size: 0.82rem;
}

.chat-input:focus {
	outline: none;
	border-color: rgba(34, 211, 238, 0.7);
	box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.chat-btn {
	border-radius: 0.7rem;
	padding: 0.55rem 0.88rem;
	background: linear-gradient(120deg, #0891b2, #0f766e);
	color: white;
	font-size: 0.82rem;
	font-weight: 700;
	transition: filter 180ms ease, transform 180ms ease;
}

.chat-btn:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.help-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.72rem;
	padding: 0.48rem 0.86rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: #e2f7ff;
	border: 1px solid rgba(34, 211, 238, 0.45);
	background: linear-gradient(120deg, rgba(14, 116, 144, 0.85), rgba(15, 118, 110, 0.86));
	transition: transform 180ms ease, filter 180ms ease;
}

.help-nav-btn:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.brief-output {
	min-height: 170px;
	border-radius: 0.85rem;
	border: 1px solid rgba(148, 163, 184, 0.23);
	background: rgba(2, 6, 23, 0.52);
	padding: 0.8rem;
	font-size: 0.84rem;
	line-height: 1.52;
	color: #dbeafe;
	white-space: pre-wrap;
}

.help-section {
	animation: sectionIn 320ms ease;
}

.help-title {
	font-size: 1.02rem;
	font-weight: 800;
	color: #c7f9ff;
	margin-bottom: 0.7rem;
	letter-spacing: 0.01em;
}

.help-section p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #d8e4f3;
	margin-bottom: 0.65rem;
}

.help-banner {
	border-radius: 0.85rem;
	padding: 0.8rem 0.9rem;
	background: linear-gradient(120deg, rgba(8, 47, 73, 0.55), rgba(15, 118, 110, 0.38));
	border: 1px solid rgba(34, 211, 238, 0.35);
	font-size: 0.84rem;
	color: #dff7ff;
}

.help-card {
	border-radius: 0.85rem;
	padding: 0.85rem;
	border: 1px solid rgba(148, 163, 184, 0.26);
	background: rgba(15, 23, 42, 0.54);
	transition: border-color 180ms ease, transform 180ms ease;
}

.help-card:hover {
	border-color: rgba(34, 211, 238, 0.48);
	transform: translateY(-2px);
}

.help-card h3 {
	font-size: 0.88rem;
	font-weight: 700;
	color: #eff6ff;
	margin-bottom: 0.42rem;
}

.help-card p {
	font-size: 0.83rem;
	line-height: 1.56;
	color: #d1dded;
	margin-bottom: 0.32rem;
}

.help-steps {
	list-style: decimal;
	padding-left: 1.25rem;
	margin: 0;
	display: grid;
	gap: 0.5rem;
}

.help-steps li {
	font-size: 0.88rem;
	line-height: 1.56;
	color: #d9e8fb;
}

.script-block {
	border-left: 3px solid #0ea5e9;
	border-radius: 0.45rem;
	padding: 0.7rem 0.8rem;
	margin-bottom: 0.65rem;
	background: rgba(2, 6, 23, 0.44);
}

.script-block p {
	margin-bottom: 0.45rem;
	font-size: 0.86rem;
}

.help-list {
	list-style: disc;
	padding-left: 1.2rem;
	display: grid;
	gap: 0.48rem;
	margin: 0;
}

.help-list li {
	font-size: 0.88rem;
	line-height: 1.56;
	color: #dbeafe;
}

.loading-overlay {
	position: fixed;
	inset: 0;
	display: grid;
	place-content: center;
	background: rgba(2, 6, 23, 0.82);
	backdrop-filter: blur(4px);
	z-index: 90;
	transition: opacity 280ms ease, visibility 280ms ease;
}

.loading-overlay.hidden {
	opacity: 0;
	visibility: hidden;
}

.detail-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(2, 6, 23, 0.48);
	backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease;
	z-index: 95;
}

.detail-backdrop.open {
	opacity: 1;
	pointer-events: auto;
}

.detail-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: min(860px, 96vw);
	height: 100vh;
	background: linear-gradient(180deg, rgba(5, 10, 22, 0.98), rgba(8, 16, 29, 0.98));
	border-left: 1px solid rgba(148, 163, 184, 0.32);
	box-shadow: -18px 0 44px rgba(0, 0, 0, 0.5);
	padding: 1rem;
	overflow-y: auto;
	transform: translateX(102%);
	transition: transform 260ms ease;
	z-index: 100;
}

.detail-drawer.open {
	transform: translateX(0);
}

.detail-drawer.detail-drawer-wide {
	width: min(1220px, 100vw);
}

.detail-drawer-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.8rem;
	padding-bottom: 0.9rem;
	margin-bottom: 0.85rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.detail-kicker {
	font-size: 0.71rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: #67e8f9;
}

.detail-title {
	margin-top: 0.25rem;
	font-size: 1.12rem;
	font-weight: 800;
	color: #e2e8f0;
	line-height: 1.4;
}

.detail-close {
	border-radius: 0.65rem;
	border: 1px solid rgba(148, 163, 184, 0.4);
	background: rgba(15, 23, 42, 0.9);
	color: #dbeafe;
	padding: 0.4rem 0.7rem;
	font-size: 0.76rem;
	font-weight: 700;
}

.mode-toggle {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.8rem;
}

.mode-btn {
	border-radius: 999px;
	padding: 0.34rem 0.7rem;
	border: 1px solid rgba(148, 163, 184, 0.42);
	background: rgba(15, 23, 42, 0.78);
	color: #cbd5e1;
	font-size: 0.73rem;
	font-weight: 700;
	transition: all 180ms ease;
}

.mode-btn.active,
.mode-btn:hover {
	color: #cffafe;
	border-color: rgba(34, 211, 238, 0.62);
	background: rgba(8, 47, 73, 0.72);
}

.detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
	margin-bottom: 0.8rem;
}

.meta-chip {
	border-radius: 999px;
	padding: 0.22rem 0.55rem;
	font-size: 0.68rem;
	font-weight: 700;
	color: #dbeafe;
	background: rgba(15, 23, 42, 0.86);
	border: 1px solid rgba(148, 163, 184, 0.34);
}

.detail-body {
	display: grid;
	gap: 0.72rem;
	padding-bottom: 1.2rem;
}

.detail-section {
	border: 1px solid rgba(148, 163, 184, 0.24);
	background: rgba(15, 23, 42, 0.52);
	border-radius: 0.86rem;
	padding: 0.75rem;
	animation: sectionIn 240ms ease;
}

.detail-section h3 {
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #67e8f9;
	margin-bottom: 0.42rem;
}

.detail-section p,
.detail-section li {
	font-size: 0.82rem;
	line-height: 1.52;
	color: #dbeafe;
}

.detail-section ul {
	padding-left: 1rem;
	display: grid;
	gap: 0.3rem;
	margin: 0;
}

.role-header {
	overflow: hidden;
	position: relative;
}

.role-header::after {
	content: "";
	position: absolute;
	inset: auto -18% -65% auto;
	width: 260px;
	height: 180px;
	border-radius: 50%;
	opacity: 0.4;
	pointer-events: none;
}

/* Role-header real photo backgrounds */
.role-header.business {
	border-color: rgba(34, 197, 94, 0.32);
	background-image:
		linear-gradient(to right, rgba(4, 18, 10, 0.93) 0%, rgba(6, 22, 14, 0.85) 50%, rgba(2, 12, 8, 0.68) 100%),
		url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?w=1280&q=80&auto=format&fit=crop');
	background-size: cover;
	background-position: center;
}

.role-header.technical {
	border-color: rgba(34, 211, 238, 0.36);
	background-image:
		linear-gradient(to right, rgba(2, 10, 22, 0.93) 0%, rgba(4, 16, 30, 0.85) 50%, rgba(2, 8, 18, 0.68) 100%),
		url('https://images.unsplash.com/photo-1580273916550-e323be2ae537?w=1280&q=80&auto=format&fit=crop');
	background-size: cover;
	background-position: center;
}

.role-header.executive {
	border-color: rgba(245, 158, 11, 0.36);
	background-image:
		linear-gradient(to right, rgba(18, 10, 2, 0.93) 0%, rgba(26, 14, 4, 0.85) 50%, rgba(14, 8, 2, 0.68) 100%),
		url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1280&q=80&auto=format&fit=crop');
	background-size: cover;
	background-position: center;
}

.persona-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.55rem;
}

.persona-kpi-card {
	border-radius: 0.7rem;
	padding: 0.64rem;
	border: 1px solid rgba(148, 163, 184, 0.24);
	background: rgba(2, 6, 23, 0.5);
}

.persona-kpi-card h4 {
	font-size: 0.69rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin: 0 0 0.3rem;
	color: #cbd5e1;
}

.persona-kpi-card p {
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 0.2rem;
	color: #f8fafc;
}

.persona-kpi-card span {
	font-size: 0.71rem;
	color: #94a3b8;
}

.persona-kpi-card.business {
	border-color: rgba(34, 197, 94, 0.34);
	background: linear-gradient(150deg, rgba(22, 101, 52, 0.28), rgba(2, 6, 23, 0.52));
}

.persona-kpi-card.technical {
	border-color: rgba(34, 211, 238, 0.34);
	background: linear-gradient(150deg, rgba(8, 47, 73, 0.36), rgba(2, 6, 23, 0.52));
}

.persona-kpi-card.executive {
	border-color: rgba(245, 158, 11, 0.36);
	background: linear-gradient(150deg, rgba(146, 64, 14, 0.3), rgba(2, 6, 23, 0.52));
}

.persona-flow-chain {
	display: grid;
	grid-template-columns: repeat(11, minmax(0, auto));
	gap: 0.35rem;
	align-items: center;
	overflow-x: auto;
	padding: 0.18rem 0.08rem;
}

.tech-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.45rem;
}

.tech-tab-btn {
	border-radius: 999px;
	padding: 0.28rem 0.64rem;
	font-size: 0.7rem;
	font-weight: 700;
	color: #cbd5e1;
	border: 1px solid rgba(148, 163, 184, 0.34);
	background: rgba(15, 23, 42, 0.7);
	transition: all 180ms ease;
}

.tech-tab-btn.active,
.tech-tab-btn:hover {
	color: #cffafe;
	border-color: rgba(34, 211, 238, 0.58);
	background: rgba(8, 47, 73, 0.72);
}

.tech-panel {
	display: none;
}

.tech-panel.active {
	display: block;
}

.drill-breadcrumb {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
}

.drill-path {
	display: flex;
	gap: 0.35rem;
	flex-wrap: wrap;
	font-size: 0.72rem;
	font-weight: 700;
	color: #bae6fd;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.drill-path .sep {
	color: #64748b;
}

.drill-back-btn {
	border-radius: 0.62rem;
	border: 1px solid rgba(56, 189, 248, 0.42);
	background: rgba(8, 47, 73, 0.72);
	color: #cffafe;
	padding: 0.34rem 0.64rem;
	font-size: 0.72rem;
	font-weight: 700;
}

.drill-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
	margin-bottom: 0.65rem;
}

.drill-tab-btn {
	border-radius: 999px;
	padding: 0.3rem 0.66rem;
	border: 1px solid rgba(148, 163, 184, 0.34);
	background: rgba(15, 23, 42, 0.76);
	color: #cbd5e1;
	font-size: 0.71rem;
	font-weight: 700;
	transition: all 170ms ease;
}

.drill-tab-btn.active,
.drill-tab-btn:hover {
	color: #cffafe;
	border-color: rgba(34, 211, 238, 0.58);
	background: rgba(8, 47, 73, 0.72);
}

.drill-panel {
	display: none;
	animation: sectionIn 220ms ease;
}

.drill-panel.active {
	display: block;
}

.filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.15rem 0 0.55rem;
}

.filter-chip,
.sort-btn {
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(2, 6, 23, 0.58);
	color: #cbd5e1;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 0.2rem 0.5rem;
	transition: all 150ms ease;
}

.filter-chip.active,
.filter-chip:hover,
.sort-btn:hover {
	border-color: rgba(34, 211, 238, 0.6);
	color: #cffafe;
	background: rgba(8, 47, 73, 0.7);
}

.inline-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.mini-action {
	border-radius: 999px;
	border: 1px solid rgba(103, 232, 249, 0.35);
	background: rgba(8, 47, 73, 0.46);
	color: #a5f3fc;
	font-size: 0.62rem;
	font-weight: 700;
	padding: 0.13rem 0.42rem;
	transition: all 150ms ease;
}

.mini-action:hover {
	border-color: rgba(34, 211, 238, 0.66);
	background: rgba(8, 47, 73, 0.72);
}

.expander-box {
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 0.5rem;
	padding: 0.45rem 0.55rem;
	background: rgba(2, 6, 23, 0.38);
	font-size: 0.74rem;
	color: #cbd5e1;
	margin: 0.2rem 0;
}

.impact-heatmap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.55rem;
}

.heat-cell {
	border-radius: 0.72rem;
	padding: 0.65rem;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: linear-gradient(
		160deg,
		rgba(2, 6, 23, 0.58),
		rgba(15, 23, 42, 0.75) calc(100% - var(--heat) * 0.5%),
		rgba(244, 63, 94, 0.38)
	);
}

.heat-cell h4 {
	font-size: 0.78rem;
	font-weight: 700;
	color: #e2e8f0;
	margin: 0 0 0.25rem;
}

.heat-cell p {
	margin: 0;
	font-size: 0.73rem;
	color: #cbd5e1;
}

.capacity-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.55rem;
	margin-bottom: 0.55rem;
}

.capacity-card {
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 0.68rem;
	padding: 0.58rem;
	background: rgba(2, 6, 23, 0.46);
}

.capacity-card h4 {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #7dd3fc;
	margin-bottom: 0.35rem;
}

.capacity-card p {
	font-size: 1.22rem;
	font-weight: 800;
	line-height: 1;
	margin: 0 0 0.3rem;
	color: #f8fafc;
}

.capacity-card span {
	font-size: 0.72rem;
	color: #94a3b8;
}

.supply-chain-flow {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, auto));
	gap: 0.4rem;
	align-items: center;
	overflow-x: auto;
	padding: 0.15rem 0.1rem;
}

.flow-step {
	border: 1px solid rgba(34, 211, 238, 0.4);
	background: rgba(8, 47, 73, 0.45);
	border-radius: 0.55rem;
	padding: 0.52rem 0.65rem;
	font-size: 0.76rem;
	font-weight: 700;
	white-space: nowrap;
	color: #cffafe;
}

.flow-arrow {
	font-size: 0.85rem;
	color: #67e8f9;
	text-align: center;
	font-weight: 800;
}

.detail-table-wrap {
	overflow-x: auto;
	border-radius: 0.7rem;
	border: 1px solid rgba(148, 163, 184, 0.24);
}

.detail-table {
	width: 100%;
	min-width: 1000px;
	border-collapse: collapse;
}

.detail-table th,
.detail-table td {
	padding: 0.55rem;
	text-align: left;
	border-top: 1px solid rgba(148, 163, 184, 0.14);
	font-size: 0.77rem;
	color: #dbeafe;
	white-space: nowrap;
}

.detail-table thead th {
	background: #12253f;
	border-top: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.67rem;
	color: #cbd5e1;
}

.lineage-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 0.55rem;
}

.lineage-grid > div {
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 0.66rem;
	padding: 0.6rem;
	background: rgba(2, 6, 23, 0.42);
}

.lineage-grid h4,
.explain-grid h4 {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #93c5fd;
	margin: 0 0 0.35rem;
}

.flow-diagram {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.45rem;
}

.flow-node {
	border-radius: 0.66rem;
	padding: 0.62rem;
	border: 1px solid rgba(34, 211, 238, 0.35);
	background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), rgba(2, 6, 23, 0.44));
	box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.12), 0 0 18px rgba(34, 211, 238, 0.08);
	animation: glowPulse 2.4s ease-in-out infinite;
	animation-delay: var(--delay);
}

.flow-node h4 {
	font-size: 0.77rem;
	font-weight: 700;
	color: #cffafe;
	margin-bottom: 0.22rem;
}

.flow-node p {
	font-size: 0.75rem;
	color: #cbd5e1;
	margin: 0;
}

.flow-link {
	display: grid;
	place-items: center;
	height: 20px;
	position: relative;
}

.flow-link span {
	width: 3px;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(34, 211, 238, 0.1), rgba(34, 211, 238, 0.88), rgba(34, 211, 238, 0.1));
	position: relative;
	overflow: hidden;
}

.flow-link span::after {
	content: "";
	position: absolute;
	left: 0;
	top: -12px;
	width: 100%;
	height: 12px;
	background: white;
	filter: blur(3px);
	animation: dataFlow 1.45s linear infinite;
}

.timeline-wrap {
	display: grid;
	gap: 0.48rem;
	margin-top: 0.42rem;
}

.timeline-item {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 0.55rem;
}

.timeline-rail {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 0.36rem;
}

.timeline-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #22d3ee;
	box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

.timeline-line {
	margin-top: 3px;
	width: 2px;
	flex: 1;
	background: linear-gradient(180deg, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0.08));
}

.timeline-item.watch .timeline-dot {
	background: #f59e0b;
	box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
}

.timeline-item.watch .timeline-line {
	background: linear-gradient(180deg, rgba(245, 158, 11, 0.5), rgba(245, 158, 11, 0.08));
}

.timeline-card {
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(2, 6, 23, 0.44);
	border-radius: 0.66rem;
	padding: 0.55rem;
}

.timeline-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.2rem;
}

.timeline-row h4 {
	font-size: 0.75rem;
	font-weight: 700;
	color: #dbeafe;
	margin: 0;
}

.timeline-chip {
	border-radius: 999px;
	padding: 0.16rem 0.48rem;
	font-size: 0.65rem;
	font-weight: 700;
	border: 1px solid rgba(56, 189, 248, 0.38);
	color: #bae6fd;
	background: rgba(8, 47, 73, 0.48);
}

.timeline-meta {
	margin-top: 0.25rem;
	display: flex;
	justify-content: space-between;
	font-size: 0.68rem;
	color: #94a3b8;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.timeline-state {
	border-radius: 999px;
	padding: 0.1rem 0.44rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.6rem;
	border: 1px solid rgba(148, 163, 184, 0.35);
	color: #dbeafe;
	background: rgba(15, 23, 42, 0.72);
}

.timeline-state.watch {
	border-color: rgba(245, 158, 11, 0.42);
	color: #fde68a;
	background: rgba(120, 53, 15, 0.32);
}

.complexity-list {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.42rem;
}

.complexity-list li {
	border-radius: 0.54rem;
	padding: 0.5rem 0.6rem;
	border-left: 3px solid #22d3ee;
	background: rgba(15, 23, 42, 0.76);
}

.complexity-list li.warning {
	border-left-color: #f59e0b;
}

.complexity-list li.critical {
	border-left-color: #f43f5e;
}

.complexity-list li.info {
	border-left-color: #22d3ee;
}

.explain-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.55rem;
	margin-top: 0.45rem;
}

.explain-grid > div {
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 0.66rem;
	padding: 0.58rem;
	background: rgba(2, 6, 23, 0.42);
}

.confidence-chip {
	margin-top: 0.5rem;
	border-radius: 999px;
	display: inline-flex;
	padding: 0.25rem 0.62rem;
	font-size: 0.71rem;
	font-weight: 700;
	color: #cffafe;
	background: rgba(8, 47, 73, 0.62);
	border: 1px solid rgba(34, 211, 238, 0.42);
}

.loader-ring {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 4px solid rgba(34, 211, 238, 0.25);
	border-top-color: #22d3ee;
	margin: 0 auto;
	animation: spin 0.85s linear infinite;
}

#bootSequence {
	font-family: "Space Grotesk", "Inter", sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.72rem;
}

/* ── Dashboard Hero Banner ─────────────────────────────────── */
.dashboard-hero-banner {
	position: relative;
	overflow: hidden;
	border-radius: 1.25rem;
	margin-bottom: 1rem;
	padding: 2.4rem 2.8rem;
	min-height: 168px;
	display: flex;
	align-items: center;
	background:
		linear-gradient(125deg, rgba(0, 10, 28, 0.96) 0%, rgba(4, 22, 44, 0.92) 55%, rgba(2, 12, 32, 0.96) 100%),
		radial-gradient(ellipse at 20% 50%, rgba(34, 211, 238, 0.22), transparent 45%),
		radial-gradient(ellipse at 80% 30%, rgba(20, 184, 166, 0.18), transparent 40%);
	border: 1px solid rgba(34, 211, 238, 0.28);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(34, 211, 238, 0.14);
}

.dashboard-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.dashboard-hero-car {
	position: absolute;
	right: -2%;
	bottom: -8%;
	width: 62%;
	opacity: 0.55;
}

.dashboard-hero-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
	background-size: 56px 56px;
}

.dashboard-hero-content {
	position: relative;
	z-index: 1;
	max-width: 600px;
}

.dashboard-hero-eyebrow {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #67e8f9;
	margin: 0 0 0.5rem;
}

.dashboard-hero-headline {
	font-family: "Space Grotesk", "Inter", sans-serif;
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.25;
	color: #f1f5f9;
	margin: 0 0 0.7rem;
	letter-spacing: -0.01em;
}

.dashboard-hero-headline span {
	background: linear-gradient(90deg, #22d3ee, #2dd4bf);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.dashboard-hero-sub {
	font-size: 0.87rem;
	line-height: 1.6;
	color: #94a3b8;
	margin: 0;
	max-width: 480px;
}

/* ── Detail Hero Banner ────────────────────────────────────── */
.detail-hero-banner {
	position: relative;
	overflow: hidden;
	border-radius: 1.2rem;
	margin-bottom: 1rem;
	padding: 1.9rem 2rem;
	min-height: 168px;
	display: flex;
	align-items: stretch;
	background:
		linear-gradient(125deg, rgba(0, 10, 28, 0.96) 0%, rgba(4, 22, 44, 0.9) 56%, rgba(2, 12, 32, 0.96) 100%),
		radial-gradient(ellipse at 20% 50%, rgba(34, 211, 238, 0.22), transparent 45%),
		radial-gradient(ellipse at 80% 30%, rgba(20, 184, 166, 0.16), transparent 40%),
		url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1280&q=80&auto=format&fit=crop');
	background-size: cover;
	background-position: center center;
	border: 1px solid rgba(34, 211, 238, 0.28);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(34, 211, 238, 0.14);
}

.detail-hero-banner.business {
	background:
		linear-gradient(125deg, rgba(0, 10, 28, 0.96) 0%, rgba(4, 22, 44, 0.9) 56%, rgba(2, 12, 32, 0.96) 100%),
		radial-gradient(ellipse at 20% 50%, rgba(34, 211, 238, 0.22), transparent 45%),
		radial-gradient(ellipse at 80% 30%, rgba(20, 184, 166, 0.16), transparent 40%),
		url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1280&q=80&auto=format&fit=crop');
}

.detail-hero-banner.technical {
	border-color: rgba(56, 189, 248, 0.3);
	background:
		linear-gradient(125deg, rgba(2, 10, 30, 0.96) 0%, rgba(7, 28, 54, 0.92) 56%, rgba(2, 14, 34, 0.96) 100%),
		radial-gradient(ellipse at 20% 50%, rgba(56, 189, 248, 0.22), transparent 45%),
		radial-gradient(ellipse at 80% 30%, rgba(34, 211, 238, 0.16), transparent 40%),
		url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1280&q=80&auto=format&fit=crop');
}

.detail-hero-banner.executive {
	border-color: rgba(245, 158, 11, 0.28);
	background:
		linear-gradient(125deg, rgba(23, 12, 2, 0.96) 0%, rgba(52, 26, 6, 0.92) 56%, rgba(24, 14, 2, 0.96) 100%),
		radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.2), transparent 45%),
		radial-gradient(ellipse at 80% 30%, rgba(251, 191, 36, 0.14), transparent 40%),
		url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1280&q=80&auto=format&fit=crop');
}

.detail-hero-banner.critical {
	border-color: rgba(244, 63, 94, 0.34);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(244, 63, 94, 0.14);
}

.detail-hero-banner.watch {
	border-color: rgba(245, 158, 11, 0.3);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(245, 158, 11, 0.12);
}

.detail-hero-banner.stable {
	border-color: rgba(34, 211, 238, 0.28);
}

.detail-hero-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(125deg, rgba(34, 211, 238, 0.08), transparent 38%, rgba(20, 184, 166, 0.04));
}

.detail-hero-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
	background-size: 52px 52px;
	opacity: 0.42;
}

.detail-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.detail-hero-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
	background-size: 56px 56px;
}

.detail-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(270px, 380px);
	gap: 1rem 1.25rem;
	width: 100%;
	align-items: end;
}

.detail-hero-copy {
	max-width: 680px;
}

.detail-hero-eyebrow {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #67e8f9;
	margin: 0 0 0.5rem;
}

.detail-hero-title {
	font-family: "Space Grotesk", "Inter", sans-serif;
	font-size: 1.62rem;
	font-weight: 800;
	line-height: 1.22;
	color: #f1f5f9;
	margin: 0 0 0.72rem;
	letter-spacing: -0.01em;
}

.detail-hero-sub {
	font-size: 0.88rem;
	line-height: 1.58;
	color: #cbd5e1;
	margin: 0;
	max-width: 560px;
}

.detail-hero-side {
	display: grid;
	gap: 0.65rem;
	justify-items: stretch;
}

.detail-hero-status {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	justify-self: start;
	border-radius: 999px;
	padding: 0.5rem 0.82rem;
	border: 1px solid rgba(34, 211, 238, 0.42);
	background: rgba(8, 26, 39, 0.88);
	font-size: 0.76rem;
	font-weight: 700;
	color: #cffafe;
}

.detail-hero-status.critical {
	border-color: rgba(244, 63, 94, 0.4);
	background: rgba(35, 8, 16, 0.88);
	color: #fecdd3;
}

.detail-hero-status.watch {
	border-color: rgba(245, 158, 11, 0.4);
	background: rgba(40, 22, 4, 0.88);
	color: #fde68a;
}

.detail-hero-status.executive {
	border-color: rgba(245, 158, 11, 0.34);
	background: rgba(41, 20, 4, 0.86);
	color: #fde68a;
}

.detail-hero-status.technical {
	border-color: rgba(56, 189, 248, 0.42);
	background: rgba(6, 20, 34, 0.88);
	color: #bae6fd;
}

.detail-hero-status.stable {
	border-color: rgba(34, 211, 238, 0.42);
	background: rgba(8, 26, 39, 0.88);
	color: #cffafe;
}

.detail-hero-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #22d3ee;
	box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
	animation: pulse 1.8s infinite;
}

.detail-hero-status.critical .detail-hero-dot {
	background: #fb7185;
	box-shadow: 0 0 12px rgba(244, 63, 94, 0.7);
}

.detail-hero-status.watch .detail-hero-dot,
.detail-hero-status.executive .detail-hero-dot {
	background: #f59e0b;
	box-shadow: 0 0 12px rgba(245, 158, 11, 0.68);
}

.detail-hero-status.technical .detail-hero-dot {
	background: #38bdf8;
	box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.detail-hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.55rem;
}

.detail-hero-stat {
	display: flex;
	flex-direction: column;
	gap: 0.14rem;
	padding: 0.46rem 0.62rem;
	border-radius: 0.68rem;
	border: 1px solid rgba(148, 163, 184, 0.24);
	background: rgba(2, 6, 23, 0.56);
}

.detail-hero-stat span {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: #94a3b8;
}

.detail-hero-stat strong {
	font-size: 0.95rem;
	font-weight: 800;
	font-family: "Space Grotesk", "Inter", sans-serif;
	color: #e0f2fe;
	letter-spacing: 0.01em;
}

/* ── Store Detail Hero Banner ──────────────────────────────── */
/* Store hero banner — real photo backgrounds */
.store-hero-banner {
	position: relative;
	overflow: hidden;
	border-radius: 1rem;
	margin-bottom: 1rem;
	padding: 1.75rem 1.8rem 1.6rem;
	background-image:
		linear-gradient(to right, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.86) 45%, rgba(2, 6, 23, 0.62) 100%),
		url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1280&q=80&auto=format&fit=crop');
	background-size: cover;
	background-position: center center;
	border: 1px solid rgba(34, 211, 238, 0.26);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(34, 211, 238, 0.12);
}

.store-hero-banner.critical {
	border-color: rgba(244, 63, 94, 0.38);
	background-image:
		linear-gradient(to right, rgba(18, 2, 6, 0.95) 0%, rgba(26, 4, 10, 0.88) 45%, rgba(14, 2, 5, 0.68) 100%),
		url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1280&q=80&auto=format&fit=crop');
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(244, 63, 94, 0.14);
}

.store-hero-banner.watch {
	border-color: rgba(245, 158, 11, 0.32);
	background-image:
		linear-gradient(to right, rgba(14, 9, 0, 0.95) 0%, rgba(24, 14, 2, 0.88) 45%, rgba(10, 6, 0, 0.68) 100%),
		url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1280&q=80&auto=format&fit=crop');
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(245, 158, 11, 0.1);
}

.store-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.store-hero-car {
	position: absolute;
	right: -1%;
	bottom: -12%;
	width: 58%;
	opacity: 0.45;
}

.store-hero-content {
	position: relative;
	z-index: 1;
}

.store-hero-eyebrow {
	font-size: 0.67rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #7dd3fc;
	margin: 0 0 0.42rem;
}

.store-hero-banner.critical .store-hero-eyebrow {
	color: #fca5a5;
}

.store-hero-banner.watch .store-hero-eyebrow {
	color: #fcd34d;
}

.store-hero-name {
	font-family: "Space Grotesk", "Inter", sans-serif;
	font-size: 1.38rem;
	font-weight: 800;
	color: #f1f5f9;
	margin: 0 0 1rem;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.store-hero-stats {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.store-hero-stat {
	display: flex;
	flex-direction: column;
	gap: 0.14rem;
	padding: 0.44rem 0.68rem;
	border-radius: 0.6rem;
	border: 1px solid rgba(148, 163, 184, 0.24);
	background: rgba(2, 6, 23, 0.52);
	min-width: 88px;
}

.store-hero-stat span {
	font-size: 0.63rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
	font-weight: 600;
}

.store-hero-stat strong {
	font-family: "Space Grotesk", "Inter", sans-serif;
	font-size: 1.06rem;
	font-weight: 800;
	color: #e2e8f0;
}

.store-hero-status-badge {
	position: absolute;
	top: 1.2rem;
	right: 1.4rem;
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	border-radius: 999px;
	padding: 0.3rem 0.65rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 1px solid rgba(34, 211, 238, 0.42);
	background: rgba(8, 22, 38, 0.75);
	color: #a5f3fc;
}

.store-hero-status-badge.critical {
	border-color: rgba(244, 63, 94, 0.48);
	color: #fca5a5;
	background: rgba(38, 8, 16, 0.82);
}

.store-hero-status-badge.watch {
	border-color: rgba(245, 158, 11, 0.44);
	color: #fcd34d;
	background: rgba(38, 24, 4, 0.78);
}

.store-hero-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: currentColor;
	animation: pulse 1.7s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.25);
		opacity: 0.55;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes tickerMove {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@keyframes nodePulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.22);
	}
}

@keyframes markPulse {
	0%,
	100% {
		opacity: 0.74;
	}
	50% {
		opacity: 1;
	}
}

@keyframes dataFlow {
	0% {
		top: -12px;
		opacity: 0;
	}
	40% {
		opacity: 1;
	}
	100% {
		top: calc(100% + 12px);
		opacity: 0;
	}
}

@keyframes glowPulse {
	0%,
	100% {
		box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.12), 0 0 16px rgba(34, 211, 238, 0.06);
	}
	50% {
		box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.2), 0 0 22px rgba(34, 211, 238, 0.14);
	}
}

@keyframes sectionIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1280px) {
	.chart-panel {
		min-height: 300px;
	}
}

@media (max-width: 768px) {
	.event-ticker-wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	.header-pulse-row {
		font-size: 0.67rem;
	}

	.ops-map-wrap {
		height: 240px;
	}

	.kpi-value {
		font-size: 1.25rem;
	}

	.chart-wrap {
		height: 230px;
	}

	.detail-drawer {
		width: 100vw;
	}
}

@media (min-width: 980px) {
	.lineage-grid,
	.explain-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.flow-diagram {
		grid-template-columns: minmax(0, 1fr);
	}
}
