.lgs-wrap {
	max-width: 1180px;
}

.lgs-main {
	padding-top: 24px;
}

.lgs-lead {
	max-width: 860px;
	margin: 0 0 20px;
	color: #3c434a;
	font-size: 16px;
	line-height: 1.55;
}

.lgs-muted {
	color: #646970;
}

.lgs-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 42px;
	margin: 22px 0 30px;
	padding-bottom: 22px;
	border-bottom: 1px solid #dcdcde;
}

.lgs-summary p {
	min-width: 88px;
	margin: 0;
	font-size: 15px;
}

.lgs-count {
	display: block;
	font-size: 36px;
	line-height: 1.1;
}

.lgs-critical {
	color: #8a2424;
}

.lgs-high,
.lgs-partial {
	color: #8a3b00;
}

.lgs-medium {
	color: #684e00;
}

.lgs-low {
	color: #0a4b78;
}

.lgs-info {
	color: #3c434a;
}

.lgs-completed {
	color: #0a5c2d;
}

.lgs-failed {
	color: #8a2424;
}

.lgs-status,
.lgs-risk-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border-radius: 999px;
	background: #f0f0f1;
	font-weight: 650;
	line-height: 1.3;
}

.lgs-callout {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 900px;
	margin: 18px 0;
	padding: 11px 14px;
	border-left: 4px solid #2271b1;
	background: #fff;
}

.lgs-callout p {
	margin: 0;
	line-height: 1.5;
}

.lgs-callout .dashicons {
	flex: 0 0 auto;
	margin-top: 1px;
}

.lgs-callout-danger {
	border-color: #b32d2e;
	background: #fcf0f1;
}

.lgs-callout-warning {
	border-color: #dba617;
	background: #fffaf0;
}

.lgs-callout-success {
	border-color: #168143;
	background: #edfaef;
}

.lgs-callout-info {
	border-color: #2271b1;
	background: #f0f6fc;
}

.lgs-actions {
	margin: 22px 0;
}

.lgs-attribution {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 860px;
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

.lgs-attribution .dashicons {
	flex: 0 0 auto;
	margin-top: 2px;
	color: #50575e;
}

.lgs-attribution h2 {
	margin: 0 0 6px;
	font-size: 16px;
}

.lgs-attribution p {
	max-width: 760px;
	margin: 0 0 7px;
	color: #50575e;
	line-height: 1.55;
}

.lgs-attribution a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	font-weight: 600;
}

.lgs-attribution a:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.lgs-actions .button {
	margin: 0 6px 6px 0;
}

.lgs-progress {
	max-width: 900px;
	margin-top: 24px;
}

.lgs-progress progress {
	display: block;
	width: 100%;
	height: 16px;
	margin-bottom: 10px;
	accent-color: #2271b1;
}

.lgs-progress-panel.is-failed progress {
	accent-color: #b32d2e;
}

.lgs-progress-eyebrow {
	margin: 0 0 5px;
	color: #50575e;
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.lgs-progress-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.lgs-progress-heading h2 {
	margin: 0 0 12px;
	font-size: 22px;
}

.lgs-progress-percent {
	margin-bottom: 12px;
	color: #2271b1;
	font-size: 21px;
}

.is-failed .lgs-progress-percent,
.lgs-progress-alert {
	color: #b32d2e;
}

.lgs-progress-meta,
.lgs-progress-area {
	margin: 8px 0 16px;
	color: #50575e;
	font-size: 14px;
}

.lgs-progress-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(130px, 1fr));
	gap: 14px 24px;
	margin: 22px 0;
}

.lgs-progress-metric strong,
.lgs-progress-metric span {
	display: block;
}

.lgs-progress-metric strong {
	font-size: 24px;
	line-height: 1.15;
}

.lgs-progress-metric span {
	margin-top: 3px;
	color: #50575e;
	font-size: 14px;
}

.lgs-progress-stages {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 20px 0 12px;
	padding: 15px 0 0;
	border-top: 1px solid #dcdcde;
	list-style: none;
}

.lgs-progress-stages li {
	color: #646970;
	font-size: 14px;
}

.lgs-progress-stages li::before {
	content: "○";
	margin-right: 6px;
}

.lgs-progress-stages .is-complete {
	color: #0a5c2d;
}

.lgs-progress-stages .is-complete::before {
	content: "✓";
}

.lgs-progress-stages .is-current {
	color: #0a4b78;
	font-weight: 650;
}

.lgs-progress-stages .is-current::before {
	content: "●";
}

.lgs-failure-details {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 14px;
	max-width: 720px;
	font-size: 14px;
}

.lgs-failure-details dt {
	font-weight: 650;
}

.lgs-failure-details dd {
	margin: 0;
}

.lgs-scan-help {
	max-width: 900px;
}

.lgs-findings {
	max-width: 1050px;
	margin-top: 22px;
}

.lgs-finding {
	margin: 0 0 12px;
	border: 1px solid #dcdcde;
	border-left-width: 6px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lgs-finding-critical {
	border-left-color: #b32d2e;
}

.lgs-finding-high {
	border-left-color: #d05a00;
}

.lgs-finding-medium {
	border-left-color: #dba617;
}

.lgs-finding-low {
	border-left-color: #2271b1;
}

.lgs-finding-info {
	border-left-color: #787c82;
}

.lgs-finding summary {
	position: relative;
	min-height: 44px;
	padding: 13px 48px 13px 15px;
	cursor: pointer;
	list-style: none;
}

.lgs-finding summary::-webkit-details-marker {
	display: none;
}

.lgs-finding summary::after {
	position: absolute;
	top: 50%;
	right: 18px;
	content: "＋";
	font-size: 20px;
	line-height: 1;
	transform: translateY(-50%);
}

.lgs-finding[open] summary::after {
	content: "−";
}

.lgs-finding summary:hover {
	background: #f6f7f7;
}

.lgs-finding summary:focus-visible,
.lgs-copy-value:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.lgs-finding-summary {
	display: grid;
	grid-template-columns: max-content minmax(220px, 1fr) minmax(220px, 1.3fr) max-content;
	align-items: center;
	gap: 10px 16px;
}

.lgs-finding-badges {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 6px;
}

.lgs-source-badge {
	display: inline-block;
	padding: 2px 7px;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	color: #3c434a;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.5;
}

.lgs-risk-badge {
	white-space: nowrap;
}

.lgs-risk-badge.lgs-critical {
	background: #fbeaea;
}

.lgs-risk-badge.lgs-high {
	background: #fff0e5;
}

.lgs-risk-badge.lgs-medium {
	background: #fff6cc;
}

.lgs-risk-badge.lgs-low {
	background: #e7f3fb;
}

.lgs-risk-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 750;
}

.lgs-finding-title {
	font-size: 14px;
	line-height: 1.4;
}

.lgs-finding-locator {
	font-size: 12px;
	line-height: 1.45;
	word-break: break-word;
}

.lgs-finding-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 5px 12px;
	color: #50575e;
	font-size: 12px;
}

.lgs-finding-body {
	padding: 18px 20px 16px;
	border-top: 1px solid #dcdcde;
}

.lgs-explanation {
	max-width: 850px;
}

.lgs-explanation + .lgs-explanation {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

.lgs-action-plan {
	max-width: 850px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

.lgs-evidence-item + .lgs-evidence-item {
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid #f0f0f1;
}

.lgs-evidence-item h4 {
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}

.lgs-sql-query {
	max-width: 100%;
	padding: 14px;
	overflow-x: auto;
	border-left: 4px solid #2271b1;
	background: #f6f7f7;
	white-space: pre;
}

.lgs-sql-query code {
	padding: 0;
	background: transparent;
	font-size: 12px;
}

.lgs-context-list {
	list-style: disc;
	padding-left: 20px;
}

.lgs-explanation h3 {
	margin: 0 0 16px;
	font-size: 17px;
}

.lgs-explanation h4 {
	margin: 15px 0 4px;
	color: #3c434a;
	font-size: 12px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.lgs-explanation p,
.lgs-explanation li {
	font-size: 14px;
	line-height: 1.55;
}

.lgs-explanation ol {
	margin: 6px 0 0 22px;
}

.lgs-context {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 760px;
	padding: 9px 11px;
	background: #f6f7f7;
}

.lgs-copy-row {
	margin: 18px 0 0;
}

.lgs-copy-status {
	margin-left: 7px;
	color: #3c434a;
}

.lgs-finding-tabs {
	margin: 22px 0 18px;
}

.lgs-source-tabs {
	margin: -8px 0 22px;
	border-bottom-color: #c3c4c7;
}

.lgs-source-tabs .nav-tab {
	min-height: 40px;
	padding: 8px 14px;
	font-size: 14px;
}

.lgs-finding-tabs .nav-tab {
	min-height: 44px;
	padding: 10px 16px;
	font-size: 15px;
}

.lgs-tab-count {
	display: inline-block;
	min-width: 22px;
	margin-left: 5px;
	padding: 0 6px;
	border-radius: 11px;
	background: #dcdcde;
	font-size: 12px;
	line-height: 22px;
	text-align: center;
}

.nav-tab-active .lgs-tab-count {
	background: #2271b1;
	color: #fff;
}

.lgs-progress-coverage {
	max-width: 900px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid #dcdcde;
}

.lgs-coverage-scopes > li {
	margin-bottom: 14px;
}

.lgs-coverage-scopes ul {
	margin: 6px 0 0 22px;
}

.lgs-empty-state {
	max-width: 680px;
	margin: 32px 0;
	padding: 24px 0;
	border-top: 1px solid #dcdcde;
	border-bottom: 1px solid #dcdcde;
	text-align: center;
}

.lgs-empty-state .dashicons {
	width: 42px;
	height: 42px;
	color: #168143;
	font-size: 42px;
}

.lgs-diagnostics {
	max-width: 900px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #dcdcde;
}

.lgs-diagnostics ul,
.lgs-coverage {
	margin: 16px 0 0;
}

.lgs-diagnostics li,
.lgs-coverage li {
	margin: 10px 0;
	line-height: 1.45;
}

.lgs-check {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 8px;
	border-radius: 50%;
	background: #787c82;
}

.lgs-check-good {
	background: #168143;
}

.lgs-check-warning {
	background: #b26200;
}

.lgs-check-error {
	background: #b32d2e;
}

.lgs-pagination {
	margin: 24px 0;
	font-size: 16px;
}

.lgs-pagination .page-numbers {
	display: inline-block;
	min-width: 32px;
	padding: 7px;
	text-align: center;
}

.lgs-wrap .form-table .description {
	max-width: 720px;
	margin-top: 7px;
	line-height: 1.5;
}

@media (max-width: 1050px) {
	.lgs-finding-summary {
		grid-template-columns: max-content 1fr;
	}

	.lgs-finding-locator,
	.lgs-finding-meta {
		grid-column: 1 / -1;
	}

	.lgs-finding-meta {
		justify-content: flex-start;
	}
}

@media (max-width: 782px) {
	.lgs-wrap h1 {
		font-size: 25px;
	}

	.lgs-wrap .nav-tab-wrapper {
		display: flex;
		overflow-x: auto;
		white-space: nowrap;
	}

	.lgs-wrap .nav-tab {
		min-height: 44px;
		box-sizing: border-box;
	}

	.lgs-main,
	.lgs-main p,
	.lgs-main li,
	.lgs-main td,
	.lgs-main input,
	.lgs-main textarea,
	.lgs-main button,
	.lgs-main .button {
		font-size: 16px;
	}

	.lgs-summary {
		gap: 18px 28px;
	}

	.lgs-attribution {
		gap: 10px;
	}

	.lgs-attribution a {
		min-height: 44px;
	}

	.lgs-progress-heading {
		align-items: flex-start;
	}

	.lgs-progress-heading h2 {
		font-size: 21px;
	}

	.lgs-progress-metrics {
		grid-template-columns: repeat(2, minmax(120px, 1fr));
		gap: 18px;
	}

	.lgs-progress-metric span,
	.lgs-progress-meta,
	.lgs-progress-area,
	.lgs-progress-stages li,
	.lgs-failure-details {
		font-size: 15px;
	}

	.lgs-failure-details {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.lgs-failure-details dd {
		margin: 0 0 9px;
	}

	.lgs-finding summary {
		min-height: 44px;
		padding: 14px 42px 14px 12px;
	}

	.lgs-finding-summary {
		display: flex;
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.lgs-finding-title,
	.lgs-finding-locator,
	.lgs-finding-meta {
		width: 100%;
	}

	.lgs-finding-title,
	.lgs-explanation p,
	.lgs-explanation li {
		font-size: 16px;
	}

	.lgs-finding-locator,
	.lgs-finding-meta,
	.lgs-explanation h4 {
		font-size: 14px;
	}

	.lgs-finding-body {
		padding: 16px 14px;
	}

	.lgs-copy-value,
	.lgs-actions .button,
	#lgs-start-scan,
	#lgs-cancel-scan {
		min-height: 44px;
	}

	.lgs-wrap .form-table input:not([type="checkbox"]),
	.lgs-wrap .form-table textarea {
		min-height: 44px;
	}

	.lgs-wrap .form-table th,
	.lgs-wrap .form-table td {
		display: block;
		width: 100%;
		padding-right: 0;
	}
}
