.cpanalyzer-il-page {
	--cpa-il-border: #dcdcde;
	--cpa-il-panel: #ffffff;
	--cpa-il-panel-alt: #f6f7fb;
	--cpa-il-ink: #1d2327;
	--cpa-il-muted: #5c6770;
	--cpa-il-accent: #135e96;
	--cpa-il-accent-soft: #edf5fb;
	--cpa-il-good: #008a20;
	--cpa-il-warn: #b45309;
	--cpa-il-danger: #b42318;
}

.cpanalyzer-il-hero {
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	margin: 18px 0 20px;
}

.cpanalyzer-il-subtitle {
	max-width: 72ch;
	color: var(--cpa-il-muted);
	font-size: 15px;
	line-height: 1.6;
}

.cpanalyzer-il-guardrails,
.cpanalyzer-il-panel,
.cpanalyzer-il-stat-card {
	background: var(--cpa-il-panel);
	border: 1px solid var(--cpa-il-border);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cpanalyzer-il-guardrails {
	padding: 18px 20px;
}

.cpanalyzer-il-guardrails h2,
.cpanalyzer-il-panel h2 {
	margin: 0 0 10px;
	font-size: 17px;
}

.cpanalyzer-il-guardrails ul {
	margin: 0;
	padding-left: 18px;
	color: var(--cpa-il-muted);
}

.cpanalyzer-il-guardrails li + li {
	margin-top: 8px;
}

.cpanalyzer-il-overview-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-bottom: 20px;
}

.cpanalyzer-il-stat-card {
	padding: 18px 20px;
}

.cpanalyzer-il-stat-label {
	display: block;
	color: var(--cpa-il-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cpanalyzer-il-stat-value {
	display: block;
	margin-top: 8px;
	color: var(--cpa-il-ink);
	font-size: 28px;
	line-height: 1.15;
}

.cpanalyzer-il-stat-value.is-good {
	color: var(--cpa-il-good);
}

.cpanalyzer-il-stat-value.is-warning {
	color: var(--cpa-il-warn);
}

.cpanalyzer-il-stat-meta {
	display: block;
	margin-top: 8px;
	color: var(--cpa-il-muted);
	font-size: 13px;
	line-height: 1.5;
}

.cpanalyzer-il-panel {
	margin-bottom: 20px;
	padding: 20px 22px;
}

.cpanalyzer-il-panel-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.cpanalyzer-il-panel-header p {
	margin: 0;
	color: var(--cpa-il-muted);
}

.cpanalyzer-il-status-pill {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.cpanalyzer-il-status-pill.status-analyzing {
	background: #eaf2ff;
	color: var(--cpa-il-accent);
}

.cpanalyzer-il-status-pill.status-completed {
	background: #e8f8ec;
	color: var(--cpa-il-good);
}

.cpanalyzer-il-status-pill.status-error {
	background: #fff2f0;
	color: var(--cpa-il-danger);
}

.cpanalyzer-il-status-pill.status-idle {
	background: #f3f4f6;
	color: var(--cpa-il-muted);
}

.cpanalyzer-il-action-row,
.cpanalyzer-il-troubleshooting-actions,
.cpanalyzer-action-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.button.button-hero {
	min-height: 40px;
	padding-inline: 16px;
}

.cpanalyzer-il-helper,
.cpanalyzer-il-inline-status {
	color: var(--cpa-il-muted);
	font-size: 13px;
}

.cpanalyzer-il-inline-status {
	min-height: 18px;
	margin-top: 10px;
}

.cpanalyzer-il-troubleshooting {
	margin-top: 18px;
	border-top: 1px solid var(--cpa-il-border);
	padding-top: 14px;
}

.cpanalyzer-il-troubleshooting summary {
	cursor: pointer;
	font-weight: 600;
}

.cpanalyzer-il-troubleshooting-body {
	margin-top: 14px;
}

.cpanalyzer-il-debug-output {
	margin-top: 12px;
	padding: 12px;
	border: 1px solid var(--cpa-il-border);
	border-radius: 10px;
	background: #0f172a;
	color: #e2e8f0;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	line-height: 1.5;
	white-space: pre-wrap;
}

.cpanalyzer-il-progress-head,
.cpanalyzer-il-progress-meta,
.cpanalyzer-post-header,
.cpanalyzer-il-results-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	justify-content: space-between;
}

.cpanalyzer-il-progress-bar {
	overflow: hidden;
	height: 10px;
	border-radius: 999px;
	background: #e5e7eb;
	margin: 14px 0;
}

.cpanalyzer-il-progress-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #2271b1 0%, #7cc7ff 100%);
}

.cpanalyzer-il-progress-meta {
	flex-wrap: wrap;
	color: var(--cpa-il-muted);
	font-size: 13px;
}

.cpanalyzer-il-overtime {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff7ed;
	color: var(--cpa-il-warn);
}

.cpanalyzer-il-results-meta {
	text-align: right;
}

.cpanalyzer-il-results-meta strong {
	display: block;
	font-size: 24px;
	line-height: 1;
}

.cpanalyzer-il-results-meta span,
.cpanalyzer-il-results-meta small {
	display: block;
	color: var(--cpa-il-muted);
}

.cpanalyzer-il-review-note {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fffbeb;
	color: #8a6116;
}

.cpanalyzer-il-results-toolbar {
	margin-bottom: 18px;
}

.cpanalyzer-suggestions-list {
	display: grid;
	gap: 18px;
}

.cpanalyzer-post-suggestions {
	overflow: hidden;
}

.cpanalyzer-post-header {
	padding: 18px 20px;
	background: var(--cpa-il-panel-alt);
	border-bottom: 1px solid var(--cpa-il-border);
}

.cpanalyzer-post-header h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.cpanalyzer-post-header h3 a {
	color: var(--cpa-il-ink);
	text-decoration: none;
}

.cpanalyzer-post-header h3 a:hover {
	color: var(--cpa-il-accent);
}

.cpanalyzer-post-meta,
.cpanalyzer-target-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	color: var(--cpa-il-muted);
	font-size: 13px;
}

.cpanalyzer-il-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--cpa-il-accent-soft);
	color: var(--cpa-il-accent);
	font-size: 12px;
	font-weight: 600;
}

.cpanalyzer-il-badge.subtle {
	background: #eef2f6;
	color: #52606d;
}

.cpanalyzer-suggestions-table {
	padding: 18px 20px;
}

.cpanalyzer-suggestions-table table {
	margin: 0;
}

.cpanalyzer-suggestions-table th,
.cpanalyzer-suggestions-table td {
	padding: 12px;
	vertical-align: top;
}

.cpanalyzer-anchor-chip {
	display: inline-flex;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef5ff;
	color: #0f4c81;
	font-weight: 600;
}

.cpanalyzer-context-text,
.cpanalyzer-reason-text {
	max-width: 42ch;
	color: var(--cpa-il-ink);
	line-height: 1.55;
}

.cpanalyzer-context-text mark {
	padding: 0 2px;
	background: #fff3bf;
	color: inherit;
}

.cpanalyzer-action-stack .button {
	min-width: 84px;
	justify-content: center;
}

.cpanalyzer-il-empty-state {
	text-align: center;
}

.cpanalyzer-il-message-slot {
	margin-top: 18px;
}

@media (max-width: 960px) {
	.cpanalyzer-il-hero {
		grid-template-columns: 1fr;
	}

	.cpanalyzer-il-progress-head,
	.cpanalyzer-il-progress-meta,
	.cpanalyzer-il-panel-header,
	.cpanalyzer-post-header,
	.cpanalyzer-il-results-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.cpanalyzer-suggestions-table {
		overflow-x: auto;
	}
}
