:root {
	--naveencodes-diagnostics-border: #d9e1ea;
	--naveencodes-diagnostics-border-strong: #bfcbd8;
	--naveencodes-diagnostics-text: #10233b;
	--naveencodes-diagnostics-muted: #5c6d80;
	--naveencodes-diagnostics-surface: #ffffff;
	--naveencodes-diagnostics-bg: #f4f7fb;
	--naveencodes-diagnostics-bg-soft: #edf4fb;
	--naveencodes-diagnostics-success: #00a32a;
	--naveencodes-diagnostics-warning: #dba617;
	--naveencodes-diagnostics-danger: #d63638;
	--naveencodes-diagnostics-info: #1d5ea8;
	--naveencodes-diagnostics-accent: #0f4c81;
	--naveencodes-diagnostics-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.naveencodes-diagnostics-wrap {
	max-width: 1380px;
	margin-top: 20px;
}

.naveencodes-diagnostics-page-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
	padding: 8px 0 6px;
}

.naveencodes-diagnostics-page-head-copy {
	max-width: 860px;
}

.naveencodes-diagnostics-page-kicker,
.naveencodes-diagnostics-card-kicker {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--naveencodes-diagnostics-info);
}

.naveencodes-diagnostics-page-head h1 {
	margin: 0 0 8px;
	font-size: 40px;
	line-height: 1.08;
	color: var(--naveencodes-diagnostics-text);
}

.naveencodes-diagnostics-page-head p {
	margin: 0;
	color: var(--naveencodes-diagnostics-muted);
	font-size: 16px;
}

.naveencodes-diagnostics-version,
.naveencodes-diagnostics-chip,
.naveencodes-diagnostics-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	background: var(--naveencodes-diagnostics-bg-soft);
	color: var(--naveencodes-diagnostics-accent);
}

.naveencodes-diagnostics-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
	border-bottom: 0;
	padding: 0;
}

.naveencodes-diagnostics-tabs .nav-tab {
	margin: 0;
	border: 1px solid var(--naveencodes-diagnostics-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.88);
	padding: 10px 14px;
	font-weight: 600;
	color: var(--naveencodes-diagnostics-text);
	box-shadow: none;
	transition: all 0.16s ease;
}

.naveencodes-diagnostics-tabs .nav-tab:hover,
.naveencodes-diagnostics-tabs .nav-tab:focus {
	background: var(--naveencodes-diagnostics-bg-soft);
	border-color: var(--naveencodes-diagnostics-border-strong);
	color: var(--naveencodes-diagnostics-accent);
}

.naveencodes-diagnostics-tabs .nav-tab-active,
.naveencodes-diagnostics-tabs .nav-tab-active:hover,
.naveencodes-diagnostics-tabs .nav-tab-active:focus {
	background: linear-gradient(180deg, #ffffff, #f2f8ff);
	border-color: #b6cbe2;
	color: var(--naveencodes-diagnostics-accent);
	box-shadow: inset 0 0 0 1px rgba(29, 94, 168, 0.05);
}

.naveencodes-diagnostics-panel {
	background: var(--naveencodes-diagnostics-surface);
	border: 1px solid var(--naveencodes-diagnostics-border);
	border-radius: 18px;
	padding: 28px;
	box-shadow: var(--naveencodes-diagnostics-shadow);
}

.naveencodes-diagnostics-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 20px;
}

.naveencodes-diagnostics-toolbar h2 {
	margin: 0 0 6px;
	color: var(--naveencodes-diagnostics-text);
}

.naveencodes-diagnostics-toolbar .description {
	margin: 0;
	color: var(--naveencodes-diagnostics-muted);
}

.naveencodes-diagnostics-toolbar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.naveencodes-diagnostics-toolbar-compact {
	margin: 12px 0;
}

.naveencodes-diagnostics-hero {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 24px;
	padding: 28px;
	border: 1px solid var(--naveencodes-diagnostics-border);
	border-radius: 22px;
	margin-bottom: 24px;
	background:
		radial-gradient(circle at top right, rgba(29, 94, 168, 0.08), transparent 32%),
		linear-gradient(135deg, #f7fbff, #ffffff 58%);
	box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.naveencodes-diagnostics-hero h3 {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.18;
	color: var(--naveencodes-diagnostics-text);
}

.naveencodes-diagnostics-hero-score {
	font-size: 46px !important;
	line-height: 0.95 !important;
	letter-spacing: -0.03em;
}

.naveencodes-diagnostics-hero p {
	margin: 0;
	color: var(--naveencodes-diagnostics-muted);
}

.naveencodes-diagnostics-hero-kicker {
	margin-bottom: 10px !important;
}

.naveencodes-diagnostics-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
}

.naveencodes-diagnostics-hero-meta .button {
	min-height: 40px;
	padding-inline: 16px;
	border-radius: 10px;
}

.naveencodes-diagnostics-about-hero {
	display: flex;
	align-items: center;
	gap: 20px;
}

.naveencodes-diagnostics-about-stack {
	display: grid;
	gap: 14px;
	width: 100%;
}

.naveencodes-diagnostics-about-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(29, 94, 168, 0.12), rgba(15, 118, 110, 0.1));
	box-shadow: inset 0 0 0 1px rgba(29, 94, 168, 0.14);
}

.naveencodes-diagnostics-about-icon {
	width: 52px;
	height: 52px;
	max-width: 52px;
	max-height: 52px;
	object-fit: contain;
	display: block;
	flex: 0 0 52px;
}

.naveencodes-diagnostics-about-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.naveencodes-diagnostics-about-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 2px;
}

.naveencodes-diagnostics-status-success {
	border-left: 4px solid var(--naveencodes-diagnostics-success);
}

.naveencodes-diagnostics-status-warning {
	border-left: 4px solid var(--naveencodes-diagnostics-warning);
}

.naveencodes-diagnostics-status-danger {
	border-left: 4px solid var(--naveencodes-diagnostics-danger);
}

.naveencodes-diagnostics-status-info {
	border-left: 4px solid var(--naveencodes-diagnostics-info);
}

.naveencodes-diagnostics-card-grid {
	display: grid;
	gap: 16px;
	margin-bottom: 20px;
}

.naveencodes-diagnostics-card-grid > .naveencodes-diagnostics-card {
	margin-bottom: 0;
}

.naveencodes-diagnostics-card-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.naveencodes-diagnostics-card-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.naveencodes-diagnostics-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.naveencodes-diagnostics-card {
	background: var(--naveencodes-diagnostics-surface);
	border: 1px solid var(--naveencodes-diagnostics-border);
	margin-bottom: 20px;
	border-radius: 18px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

.naveencodes-diagnostics-card-nested {
	margin-bottom: 0;
}

.naveencodes-diagnostics-card-warning {
	border-left: 4px solid var(--naveencodes-diagnostics-warning);
}

.naveencodes-diagnostics-card-danger {
	border-left: 4px solid var(--naveencodes-diagnostics-danger);
}

.naveencodes-diagnostics-card-header,
.naveencodes-diagnostics-card-body,
.naveencodes-diagnostics-form-grid {
	padding: 20px 22px;
}

.naveencodes-diagnostics-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: linear-gradient(180deg, #fbfdff, #f4f8fc);
	border-bottom: 1px solid var(--naveencodes-diagnostics-border);
}

.naveencodes-diagnostics-card-header h3 {
	margin: 0;
	color: var(--naveencodes-diagnostics-text);
}

.naveencodes-diagnostics-card-body h3,
.naveencodes-diagnostics-card > h3 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.3;
	color: var(--naveencodes-diagnostics-text);
}

.naveencodes-diagnostics-feature-title {
	font-size: 22px !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em;
}

.naveencodes-diagnostics-section-title {
	margin: 28px 0 14px;
	font-size: 20px;
	line-height: 1.2;
	color: var(--naveencodes-diagnostics-text);
}

.naveencodes-diagnostics-card-body p:first-child {
	margin-top: 0;
}

.naveencodes-diagnostics-card-body p:last-child {
	margin-bottom: 0;
}

.naveencodes-diagnostics-form-grid {
	display: grid;
	gap: 14px;
}

.naveencodes-diagnostics-form-grid label {
	display: grid;
	gap: 8px;
	font-weight: 600;
}

.naveencodes-diagnostics-settings-grid {
	max-width: 760px;
}

.naveencodes-diagnostics-setting-row,
.naveencodes-diagnostics-setting-field {
	padding: 18px 20px;
	border: 1px solid var(--naveencodes-diagnostics-border);
	border-radius: 14px;
	background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.naveencodes-diagnostics-setting-toggle {
	display: flex !important;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.naveencodes-diagnostics-setting-toggle input[type="checkbox"] {
	margin: 0;
}

.naveencodes-diagnostics-setting-row .description,
.naveencodes-diagnostics-setting-field .description {
	margin: 10px 0 0;
	color: var(--naveencodes-diagnostics-muted);
}

.naveencodes-diagnostics-setting-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--naveencodes-diagnostics-text);
}

.naveencodes-diagnostics-setting-field input[type="number"] {
	width: 120px;
}

.naveencodes-diagnostics-form-grid input[type="number"] {
	max-width: 120px;
}

.naveencodes-diagnostics-list {
	padding: 8px 22px 14px;
}

.naveencodes-diagnostics-list-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--naveencodes-diagnostics-border);
}

.naveencodes-diagnostics-list-row:last-child {
	border-bottom: 0;
}

.naveencodes-diagnostics-list-row p {
	margin: 6px 0 0;
	color: var(--naveencodes-diagnostics-muted);
}

.naveencodes-diagnostics-stat {
	font-size: 34px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1;
	color: var(--naveencodes-diagnostics-text);
}

.naveencodes-diagnostics-metric-card {
	padding: 18px 20px;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.naveencodes-diagnostics-metric-card h3 {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--naveencodes-diagnostics-muted);
}

.naveencodes-diagnostics-metric-card .naveencodes-diagnostics-stat {
	font-size: 24px;
	margin-bottom: 8px;
}

.naveencodes-diagnostics-metric-card .description,
.naveencodes-diagnostics-metric-card p {
	margin: 0;
	color: var(--naveencodes-diagnostics-muted);
}

.naveencodes-diagnostics-metric-card .naveencodes-diagnostics-inline-list {
	margin: 0 0 0 18px;
}

.naveencodes-diagnostics-badge-success {
	background: #d1e7dd;
	color: #0a3622;
}

.naveencodes-diagnostics-badge-warning {
	background: #fff3cd;
	color: #664d03;
}

.naveencodes-diagnostics-badge-danger {
	background: #f8d7da;
	color: #58151c;
}

.naveencodes-diagnostics-badge-info {
	background: #dbeafe;
	color: #1d4ed8;
}

.naveencodes-diagnostics-inline-list {
	margin: 8px 0 0 18px;
	color: var(--naveencodes-diagnostics-muted);
}

.naveencodes-diagnostics-link-list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.naveencodes-diagnostics-link-list li + li {
	margin-top: 10px;
}

.naveencodes-diagnostics-link-list a {
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	text-decoration: none;
}

.naveencodes-diagnostics-link-list a:hover,
.naveencodes-diagnostics-link-list a:focus {
	text-decoration: underline;
}

.naveencodes-diagnostics-inline-list li {
	margin-bottom: 6px;
}

.naveencodes-diagnostics-empty-state {
	padding: 28px 18px;
	text-align: center;
	color: var(--naveencodes-diagnostics-muted);
}

.naveencodes-diagnostics-table code {
	white-space: normal;
	word-break: break-word;
}

.naveencodes-diagnostics-table {
	width: 100%;
}

.naveencodes-diagnostics-table th,
.naveencodes-diagnostics-table td {
	vertical-align: top;
	overflow-wrap: anywhere;
}

.naveencodes-diagnostics-table .button {
	white-space: nowrap;
}

.naveencodes-diagnostics-table-errors {
	table-layout: fixed;
}

.naveencodes-diagnostics-table-errors th:first-child,
.naveencodes-diagnostics-table-errors td:first-child {
	width: 90px;
}

.naveencodes-diagnostics-table-errors th:last-child,
.naveencodes-diagnostics-table-errors td:last-child {
	width: 26%;
}

.naveencodes-diagnostics-table-safe-mode th:nth-child(1),
.naveencodes-diagnostics-table-safe-mode td:nth-child(1) {
	width: 40%;
}

.naveencodes-diagnostics-table-safe-mode th:nth-child(2),
.naveencodes-diagnostics-table-safe-mode td:nth-child(2) {
	width: 10%;
}

.naveencodes-diagnostics-table-safe-mode th:nth-child(3),
.naveencodes-diagnostics-table-safe-mode td:nth-child(3) {
	width: 14%;
}

.naveencodes-diagnostics-table-safe-mode th:nth-child(4),
.naveencodes-diagnostics-table-safe-mode td:nth-child(4) {
	width: 24%;
}

.naveencodes-diagnostics-table-hooks {
	table-layout: fixed;
}

.naveencodes-diagnostics-table-hooks th,
.naveencodes-diagnostics-table-hooks td {
	overflow-wrap: normal;
	word-break: normal;
}

.naveencodes-diagnostics-table-hooks th:nth-child(1),
.naveencodes-diagnostics-table-hooks td:nth-child(1) {
	width: 18%;
}

.naveencodes-diagnostics-table-hooks th:nth-child(2),
.naveencodes-diagnostics-table-hooks td:nth-child(2) {
	width: 84px;
	white-space: nowrap;
	text-align: center;
}

.naveencodes-diagnostics-table-hooks th:nth-child(3),
.naveencodes-diagnostics-table-hooks td:nth-child(3) {
	width: 18%;
}

.naveencodes-diagnostics-table-hooks code {
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.naveencodes-diagnostics-textarea {
	width: 100%;
	font-family: Consolas, Monaco, monospace;
	min-height: 180px;
}

.naveencodes-diagnostics-timeline {
	padding: 18px 22px 22px;
}

.naveencodes-diagnostics-timeline-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--naveencodes-diagnostics-border);
}

.naveencodes-diagnostics-timeline-item:last-child {
	border-bottom: 0;
}

.naveencodes-diagnostics-timeline-marker {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-top: 6px;
	flex: 0 0 12px;
}

#naveencodes-diagnostics-notice-area {
	margin: 16px 0;
}

.notice.naveencodes-diagnostics-inline-notice {
	margin: 0 0 16px;
}

@media (max-width: 1024px) {
	.naveencodes-diagnostics-card-grid-4,
	.naveencodes-diagnostics-card-grid-3,
	.naveencodes-diagnostics-split {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 782px) {
	.naveencodes-diagnostics-page-head,
	.naveencodes-diagnostics-toolbar,
	.naveencodes-diagnostics-list-row,
	.naveencodes-diagnostics-card-header,
	.naveencodes-diagnostics-hero {
		flex-direction: column;
	}

	.naveencodes-diagnostics-about-hero {
		align-items: flex-start;
	}

	.naveencodes-diagnostics-page-head h1 {
		font-size: 32px;
	}

	.naveencodes-diagnostics-hero-score {
		font-size: 36px !important;
	}

	.naveencodes-diagnostics-card-grid-4,
	.naveencodes-diagnostics-card-grid-3,
	.naveencodes-diagnostics-split {
		grid-template-columns: 1fr;
	}

	.naveencodes-diagnostics-panel {
		padding: 16px;
	}
}
