:root {
	--bg: #060e18;
	--bg-alt: #0a1625;
	--panel: rgba(8, 18, 31, 0.92);
	--panel-strong: rgba(10, 22, 37, 0.97);
	--border: rgba(120, 150, 180, 0.13);
	--border-strong: rgba(74, 168, 255, 0.22);
	--text: #e8eef8;
	--text-muted: #7a96b4;
	--text-soft: #aabdd4;
	--accent: #4aa8ff;
	--accent-glow: rgba(74, 168, 255, 0.18);
	--success: #3bbf84;
	--warning: #f2b646;
	--danger: #f26d76;
	--radius-xl: 24px;
	--radius-lg: 18px;
	--radius-md: 14px;
	--radius-sm: 10px;
	--shadow-panel: 0 24px 56px rgba(0, 0, 0, 0.38), 0 4px 12px rgba(0, 0, 0, 0.22);
	--shadow-card: 0 10px 28px rgba(0, 0, 0, 0.24);
	--transition: 180ms ease;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	font-family: 'Space Grotesk', sans-serif;
	color: var(--text);
	background:
		radial-gradient(ellipse 80% 40% at 10% 0%, rgba(74, 168, 255, 0.11), transparent),
		radial-gradient(ellipse 60% 30% at 90% 0%, rgba(242, 109, 118, 0.07), transparent),
		linear-gradient(180deg, #07101d 0%, #040a13 100%);
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(50, 75, 100, 0.1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(50, 75, 100, 0.1) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 88%);
}

button, input, select, textarea { font: inherit; }
h1, h2, p { margin: 0; }
ul { margin: 0; padding-left: 18px; }

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(8, 18, 31, 0.6); }
::-webkit-scrollbar-thumb { background: rgba(74, 168, 255, 0.2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(74, 168, 255, 0.35); }

/* ─── Layout ─────────────────────────────────────────────────────────── */

.app-shell {
	max-width: 1860px;
	margin: 0 auto;
	padding: 20px 24px;
}

/* ─── Topbar ─────────────────────────────────────────────────────────── */

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--border);
}

.brand {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.brand h1 {
	font-size: clamp(2.2rem, 4vw, 3.6rem);
	letter-spacing: -0.07em;
	font-weight: 700;
	background: linear-gradient(135deg, #ffffff 0%, #b8d8ff 55%, #6ab4ff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.1;
}

.eyebrow,
.panel__eyebrow,
.caption,
.detail-label,
.metric-label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-muted);
}

.topbar__meta {
	display: grid;
	gap: 10px;
	justify-items: end;
}

.meta-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* Status pills */
.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--border-strong);
	background: rgba(10, 28, 50, 0.86);
	color: #c8deff;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.76rem;
	letter-spacing: 0.02em;
}

.status-pill::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
	box-shadow: 0 0 6px var(--accent);
}

.status-pill--quiet {
	border-color: var(--border);
	background: rgba(12, 22, 34, 0.8);
	color: var(--text-muted);
}

.status-pill--quiet::before {
	background: rgba(120, 150, 180, 0.4);
	box-shadow: none;
}

.status-pill--warning {
	border-color: rgba(242, 182, 70, 0.26);
	background: rgba(60, 38, 8, 0.7);
	color: #ffd98a;
}

.status-pill--warning::before {
	background: var(--warning);
	box-shadow: 0 0 6px var(--warning);
}

.status-pill--live {
	border-color: rgba(59, 191, 132, 0.3);
	background: rgba(8, 44, 30, 0.8);
	color: #a8f5d4;
}

.status-pill--live::before {
	background: var(--success);
	box-shadow: 0 0 6px var(--success);
	animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.55; transform: scale(0.88); }
}

.status-line {
	color: var(--text-muted);
	font-size: 0.92rem;
	transition: color 400ms ease;
}

.status-line--active {
	color: var(--accent);
}

@keyframes ellipsis {
	0%   { content: ''; }
	33%  { content: '.'; }
	66%  { content: '..'; }
	100% { content: '...'; }
}

.button--loading::after {
	content: '';
	animation: ellipsis 1.2s steps(1) infinite;
}

/* ─── Dashboard strip ─────────────────────────────────────────────────── */

.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.dashboard-card,
.panel,
.metric-card,
.panel-card,
.signal-card,
.artifact-card,
.fact-card,
.screenshot-card,
.case-row {
	border: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(10, 22, 38, 0.96), rgba(6, 14, 24, 0.92));
	box-shadow: var(--shadow-card);
}

.dashboard-card {
	padding: 18px 20px;
	border-radius: var(--radius-lg);
	position: relative;
	overflow: hidden;
}

.dashboard-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	opacity: 0.5;
}

.dashboard-card:nth-child(2)::after { background: linear-gradient(90deg, transparent, var(--warning), transparent); }
.dashboard-card:nth-child(3)::after { background: linear-gradient(90deg, transparent, var(--danger), transparent); }
.dashboard-card:nth-child(4)::after { background: linear-gradient(90deg, transparent, var(--text-muted), transparent); }

.metric-value {
	margin-top: 10px;
	font-size: 2.2rem;
	font-weight: 700;
	letter-spacing: -0.06em;
	line-height: 1.1;
}

.metric-value--small {
	font-size: 1rem;
	line-height: 1.5;
	word-break: break-word;
	font-weight: 600;
}

/* ─── Console grid ───────────────────────────────────────────────────── */

.console-grid {
	display: grid;
	grid-template-columns: 350px minmax(0, 1fr) 360px;
	gap: 18px;
	align-items: start;
}

.left-rail,
.right-rail,
.workspace {
	display: grid;
	gap: 18px;
}

.panel {
	padding: 20px;
	border-radius: var(--radius-xl);
	backdrop-filter: blur(12px);
}

.panel__heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}

.panel__heading--tight { margin-bottom: 12px; }

.panel h2 {
	font-size: 1.18rem;
	letter-spacing: -0.04em;
	font-weight: 700;
	margin-top: 3px;
}

/* ─── Form controls ──────────────────────────────────────────────────── */

.stack { display: grid; gap: 14px; }

.field { display: grid; gap: 7px; }

.field span {
	color: var(--text-muted);
	font-size: 0.9rem;
}

.field--compact span { font-size: 0.78rem; }

input,
select,
textarea {
	width: 100%;
	border: 1px solid rgba(74, 168, 255, 0.14);
	border-radius: var(--radius-md);
	background: rgba(4, 10, 18, 0.94);
	color: var(--text);
	padding: 12px 14px;
	line-height: 1.55;
	transition: border-color var(--transition), box-shadow var(--transition);
}

textarea { resize: vertical; }

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: rgba(74, 168, 255, 0.34);
	box-shadow: 0 0 0 3px rgba(74, 168, 255, 0.1);
}

.hint {
	color: var(--text-muted);
	line-height: 1.5;
	font-size: 0.86rem;
}

/* ─── Buttons ────────────────────────────────────────────────────────── */

.button-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.button-row--compact { justify-content: flex-end; }

.button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 999px;
	border: 1px solid rgba(120, 150, 180, 0.2);
	background: linear-gradient(180deg, rgba(18, 30, 48, 0.97), rgba(8, 16, 28, 0.97));
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	color: var(--text);
	cursor: pointer;
	font-weight: 600;
	letter-spacing: -0.01em;
	transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
	overflow: hidden;
	white-space: nowrap;
}

.button::after {
	content: '';
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 44%);
	pointer-events: none;
}

.button:hover:not(:disabled) {
	transform: translateY(-1px);
	border-color: rgba(74, 168, 255, 0.3);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.button:active:not(:disabled) { transform: translateY(0); }

.button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.button--compact {
	min-height: 40px;
	padding: 0 14px;
	font-size: 0.9rem;
}

.button--primary {
	border-color: rgba(74, 168, 255, 0.38);
	background: linear-gradient(135deg, #2f96ff 0%, #2472f0 55%, #1a5cd8 100%);
	color: #fff;
	box-shadow: 0 14px 32px rgba(30, 88, 200, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button--primary:hover:not(:disabled) {
	box-shadow: 0 18px 38px rgba(30, 88, 200, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	border-color: rgba(74, 168, 255, 0.55);
}

.button--secondary {
	border-color: rgba(74, 168, 255, 0.22);
	background: linear-gradient(180deg, rgba(20, 60, 108, 0.94), rgba(12, 38, 70, 0.97));
	color: #cde4ff;
	box-shadow: 0 10px 24px rgba(8, 28, 56, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.button--ghost {
	background: linear-gradient(180deg, rgba(10, 18, 30, 0.9), rgba(6, 12, 20, 0.92));
	border-color: var(--border);
	color: var(--text-soft);
}

/* ─── Turnstile ──────────────────────────────────────────────────────── */

.turnstile-section {
	padding: 14px;
	border-radius: var(--radius-md);
	border: 1px dashed rgba(74, 168, 255, 0.2);
	background: rgba(10, 24, 42, 0.5);
}

.turnstile-slot { min-height: 70px; margin-top: 10px; }

/* ─── Case filter ────────────────────────────────────────────────────── */

.filter-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 10px;
}

.filter-grid .field:last-child { grid-column: 1 / -1; }

.filter-stack { display: grid; gap: 12px; }

.filter-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 2px;
}

/* ─── Case list ──────────────────────────────────────────────────────── */

.case-list {
	display: grid;
	gap: 8px;
	max-height: 680px;
	overflow: auto;
	padding-right: 2px;
}

.case-row {
	padding: 14px 16px;
	border-radius: var(--radius-lg);
	cursor: pointer;
	display: grid;
	gap: 9px;
	width: 100%;
	text-align: left;
	font: inherit;
	color: inherit;
	transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.case-row:hover { transform: translateX(2px); border-color: rgba(74, 168, 255, 0.2); }

.case-row.is-active {
	border-color: rgba(74, 168, 255, 0.34);
	background: linear-gradient(180deg, rgba(14, 36, 62, 0.97), rgba(8, 20, 36, 0.94));
	box-shadow: 0 0 0 1px rgba(74, 168, 255, 0.12) inset;
}

.case-row__top,
.case-row__bottom {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: flex-start;
}

.case-row__title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}

.case-row__url {
	color: var(--text-muted);
	font-size: 0.82rem;
	line-height: 1.45;
	word-break: break-word;
	font-family: 'IBM Plex Mono', monospace;
}

.case-row__meta {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
}

/* ─── Pills & tags ───────────────────────────────────────────────────── */

.mini-pill,
.tag {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 3px 10px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.7rem;
	border: 1px solid var(--border);
	color: var(--text-soft);
	background: rgba(14, 26, 40, 0.88);
	letter-spacing: 0.02em;
}

.mini-pill--malicious, .verdict-pill--malicious {
	border-color: rgba(242, 109, 118, 0.36);
	color: #ffcdd2;
	background: rgba(90, 16, 26, 0.62);
}

.mini-pill--suspicious, .verdict-pill--suspicious {
	border-color: rgba(242, 182, 70, 0.34);
	color: #ffe4aa;
	background: rgba(80, 48, 8, 0.6);
}

.mini-pill--inconclusive,
.verdict-pill--inconclusive,
.verdict-pill--neutral {
	border-color: var(--border);
	color: var(--text-soft);
	background: rgba(14, 26, 40, 0.88);
}

.mini-pill--benign, .verdict-pill--benign {
	border-color: rgba(59, 191, 132, 0.34);
	color: #c8ffe2;
	background: rgba(10, 56, 38, 0.6);
}

/* ─── Workspace header ───────────────────────────────────────────────── */

.workspace-header {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 18px;
}

.workspace-host {
	margin-top: 6px;
	color: var(--text-muted);
	font-size: 0.94rem;
	font-family: 'IBM Plex Mono', monospace;
}

.workspace-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
}

.verdict-pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border-radius: 999px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 1px solid var(--border);
}

.schedule-inline {
	display: flex;
	gap: 6px;
	align-items: center;
	padding: 3px 3px 3px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: rgba(6, 12, 22, 0.7);
}

.schedule-inline select {
	width: auto;
	min-width: 130px;
	min-height: 38px;
	padding-block: 6px;
	border-radius: 999px;
	background: transparent;
	border: none;
	color: var(--text-soft);
	font-size: 0.88rem;
}

.schedule-inline select:focus { box-shadow: none; }

/* ─── Workspace metrics ──────────────────────────────────────────────── */

.workspace-metrics {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.metric-card {
	border-radius: var(--radius-md);
	padding: 14px 16px;
	position: relative;
	overflow: hidden;
}

.metric-card::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(74, 168, 255, 0.2), transparent);
}

/* ─── Tabs ───────────────────────────────────────────────────────────── */

.tab-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
}

.tab-button {
	border: 1px solid rgba(120, 150, 180, 0.15);
	background: linear-gradient(180deg, rgba(10, 20, 33, 0.88), rgba(6, 13, 23, 0.92));
	color: var(--text-muted);
	padding: 9px 16px;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 500;
	font-size: 0.92rem;
	transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.tab-button:hover {
	transform: translateY(-1px);
	border-color: rgba(74, 168, 255, 0.24);
	color: var(--text-soft);
}

.tab-button.is-active {
	border-color: rgba(74, 168, 255, 0.38);
	background: linear-gradient(180deg, rgba(28, 72, 126, 0.96), rgba(16, 48, 90, 0.98));
	color: #ddf0ff;
	box-shadow: 0 10px 24px rgba(6, 24, 50, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ─── Content grids ──────────────────────────────────────────────────── */

.overview-grid,
.history-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.panel-card,
.signal-card,
.artifact-card,
.fact-card,
.screenshot-card {
	border-radius: var(--radius-lg);
	padding: 16px 18px;
}

.panel-card--wide { grid-column: 1 / -1; }
.signal-card--wide { grid-column: 1 / -1; }

.summary-text {
	margin-top: 10px;
	color: var(--text-soft);
	line-height: 1.7;
}

.detail-text {
	margin-top: 8px;
	color: var(--text-soft);
	line-height: 1.65;
}

.detail-text--mono {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.82rem;
	word-break: break-word;
	color: var(--accent);
}

.detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.detail-grid--single { grid-template-columns: 1fr; }

/* ─── Risk meter ──────────────────────────────────────────────────────── */

.risk-meter {
	height: 8px;
	margin-top: 14px;
	border-radius: 999px;
	background: rgba(120, 150, 180, 0.12);
	overflow: hidden;
	position: relative;
}

.risk-meter__fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #35b97e 0%, #f2b646 52%, #f26d76 86%, #d42e3c 100%);
	transition: width 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
	border-radius: 999px;
}

/* ─── Signal grids ───────────────────────────────────────────────────── */

.signal-grid,
.artifact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.signal-card ul {
	display: grid;
	gap: 8px;
	margin-top: 10px;
	line-height: 1.6;
	color: var(--text-soft);
}

.signal-card--danger {
	background: linear-gradient(180deg, rgba(58, 12, 20, 0.7), rgba(6, 14, 24, 0.94));
	border-color: rgba(242, 109, 118, 0.16);
}

.signal-card--calm {
	background: linear-gradient(180deg, rgba(8, 58, 40, 0.5), rgba(6, 14, 24, 0.94));
	border-color: rgba(59, 191, 132, 0.16);
}

/* ─── Tags, provenance, drivers ──────────────────────────────────────── */

.tag-list,
.provenance-list,
.driver-list,
.intel-findings,
.related-list,
.timeline-list {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.tag-list { grid-template-columns: repeat(auto-fit, minmax(100px, max-content)); }
.tag { width: fit-content; }

.provenance-row,
.driver-row,
.related-row,
.intel-finding,
.timeline-row,
.artifact-row {
	border-radius: var(--radius-md);
	padding: 12px 14px;
	border: 1px solid var(--border);
	background: rgba(4, 10, 18, 0.84);
	display: grid;
	gap: 6px;
	transition: border-color var(--transition);
}

.related-row {
	width: 100%;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.related-row:hover { border-color: rgba(74, 168, 255, 0.24); }

.related-row__top,
.driver-row__top,
.timeline-row__top {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: flex-start;
}

.driver-row { background: rgba(5, 12, 22, 0.9); }

.driver-row--positive { border-color: rgba(242, 182, 70, 0.22); }
.driver-row--negative { border-color: rgba(59, 191, 132, 0.2); }

.driver-impact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	padding: 4px 10px;
	border-radius: 999px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.72rem;
	border: 1px solid var(--border);
	font-weight: 600;
}

.driver-impact--positive {
	border-color: rgba(242, 182, 70, 0.28);
	color: #ffe4a8;
	background: rgba(80, 46, 8, 0.5);
}

.driver-impact--negative {
	border-color: rgba(59, 191, 132, 0.26);
	color: #c8ffe2;
	background: rgba(10, 56, 38, 0.46);
}

.timeline-row__summary,
.related-row__summary {
	line-height: 1.55;
	color: var(--text-soft);
	font-size: 0.9rem;
}

/* ─── Artifact lists ──────────────────────────────────────────────────── */

.artifact-list { display: grid; gap: 10px; }

.artifact-row p {
	color: var(--text-soft);
	line-height: 1.5;
}

.artifact-row__mono {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.8rem;
	word-break: break-word;
}

.artifact-chip {
	display: inline-flex;
	width: fit-content;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: rgba(16, 30, 48, 0.88);
	padding: 4px 10px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.72rem;
	color: var(--text-soft);
}

/* ─── Intel findings ─────────────────────────────────────────────────── */

.intel-findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.intel-finding { min-height: 88px; }

.intel-finding--critical {
	border-color: rgba(242, 109, 118, 0.3);
	background: linear-gradient(180deg, rgba(70, 16, 24, 0.48), rgba(4, 10, 18, 0.86));
}

.intel-finding--warning {
	border-color: rgba(242, 182, 70, 0.28);
	background: linear-gradient(180deg, rgba(80, 48, 8, 0.4), rgba(4, 10, 18, 0.86));
}

.intel-finding--positive {
	border-color: rgba(59, 191, 132, 0.26);
	background: linear-gradient(180deg, rgba(8, 56, 38, 0.3), rgba(4, 10, 18, 0.86));
}

/* ─── Code block ─────────────────────────────────────────────────────── */

.code-block {
	margin: 12px 0 0;
	padding: 16px 18px;
	border-radius: var(--radius-md);
	border: 1px solid rgba(74, 168, 255, 0.16);
	background: rgba(3, 8, 16, 0.95);
	color: #9dd6ff;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.82rem;
	line-height: 1.75;
	white-space: pre-wrap;
	word-break: break-word;
}

/* ─── Step lists ─────────────────────────────────────────────────────── */

.step-list {
	display: grid;
	gap: 10px;
	margin-top: 12px;
	padding-left: 18px;
	color: var(--text-soft);
	line-height: 1.65;
}

.step-list li::marker { color: var(--accent); }

/* ─── Evidence tab ───────────────────────────────────────────────────── */

.evidence-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
	gap: 14px;
}

.screenshot-card {
	overflow: hidden;
	padding: 12px;
}

.screenshot-card img {
	display: block;
	width: 100%;
	min-height: 360px;
	border-radius: var(--radius-md);
	background: rgba(10, 24, 40, 0.9);
	object-fit: cover;
}

.fact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.fact-card--wide { grid-column: 1 / -1; }

/* ─── Network tab pipeline ───────────────────────────────────────────── */

.pipeline-list { display: grid; gap: 10px; margin-top: 10px; }

.pipeline-row {
	border-radius: var(--radius-md);
	padding: 12px 14px;
	border: 1px solid var(--border);
	background: rgba(4, 10, 18, 0.72);
	border-left: 2px solid rgba(74, 168, 255, 0.3);
}

/* ─── Chat ───────────────────────────────────────────────────────────── */

.panel--chat { display: grid; gap: 14px; }

.follow-up__list { display: grid; gap: 8px; }

.follow-up__button {
	width: 100%;
	text-align: left;
	border-radius: var(--radius-md);
	border: 1px solid rgba(120, 150, 180, 0.16);
	background: linear-gradient(180deg, rgba(10, 22, 38, 0.92), rgba(6, 14, 26, 0.96));
	color: var(--text-soft);
	padding: 12px 14px;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.55;
	transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.follow-up__button:hover {
	transform: translateX(2px);
	border-color: rgba(74, 168, 255, 0.28);
	color: var(--text);
	background: linear-gradient(180deg, rgba(14, 30, 52, 0.96), rgba(8, 18, 34, 0.98));
}

.messages {
	display: grid;
	gap: 10px;
	min-height: 240px;
	max-height: 480px;
	overflow: auto;
	padding-right: 2px;
}

.message {
	max-width: 100%;
	padding: 13px 16px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	background: rgba(5, 11, 20, 0.9);
}

.message--assistant {
	border-bottom-left-radius: 6px;
	border-left: 2px solid rgba(74, 168, 255, 0.3);
}

.message--user {
	border-bottom-right-radius: 6px;
	background: linear-gradient(180deg, rgba(30, 84, 168, 0.96), rgba(18, 58, 118, 0.96));
	border-color: rgba(74, 168, 255, 0.24);
}

.message__meta {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.72rem;
	color: rgba(220, 230, 246, 0.6);
	margin-bottom: 8px;
}

.message__body {
	white-space: pre-wrap;
	line-height: 1.72;
	font-size: 0.95rem;
}

.activity-note,
.empty-text {
	color: var(--text-muted);
	font-size: 0.88rem;
	line-height: 1.55;
}

.activity-note {
	padding: 12px 14px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border);
	background: rgba(8, 20, 36, 0.5);
	font-family: 'IBM Plex Mono', monospace;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1560px) {
	.console-grid {
		grid-template-columns: 320px minmax(0, 1fr);
	}

	.right-rail {
		grid-column: 1 / -1;
		grid-template-columns: 1fr 1fr;
	}

	.workspace-metrics {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1120px) {
	.dashboard-grid,
	.console-grid,
	.signal-grid,
	.artifact-grid,
	.intel-findings,
	.overview-grid,
	.history-grid,
	.evidence-grid,
	.fact-grid,
	.detail-grid,
	.workspace-metrics,
	.right-rail {
		grid-template-columns: 1fr;
	}

	.topbar,
	.workspace-header {
		flex-direction: column;
	}

	.topbar__meta,
	.workspace-actions {
		justify-items: start;
		justify-content: flex-start;
	}
}

@media (max-width: 720px) {
	.app-shell { padding: 14px 16px; }

	.filter-grid { grid-template-columns: 1fr; }

	.filter-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.button-row--compact { justify-content: stretch; }

	.button-row--compact .button { flex: 1 1 0; }

	.schedule-inline {
		width: 100%;
		flex-wrap: wrap;
		border-radius: var(--radius-md);
		padding: 8px;
	}

	.schedule-inline select,
	.schedule-inline button {
		width: 100%;
	}
}
