.bak-app {
	--bak-navy: #00205b;
	--bak-navy-dark: #001849;
	--bak-signal: #e7194f;
	--bak-ink: #111a35;
	--bak-text: #414852;
	--bak-muted: #66707b;
	--bak-surface: #fcf9f8;
	--bak-metallic: #f1f6fa;
	--bak-line: #d7dfe8;
	--bak-white: #fff;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 16px;
	box-sizing: border-box;
	color: var(--bak-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.55;
}

.bak-app *,
.bak-app *::before,
.bak-app *::after {
	box-sizing: border-box;
}

.bak-app button,
.bak-app input {
	font: inherit;
}

.bak-app svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bak-app [hidden] {
	display: none !important;
}

.bak-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto 48px;
	text-align: center;
}

.bak-app.is-detail .bak-filter-grid,
.bak-app.is-detail .bak-results-section {
	display: none;
}

.bak-app.is-detail .bak-hero {
	margin-bottom: 48px;
}

.bak-main-title {
	margin: 0 0 26px !important;
	color: #000d2f !important;
	font-family: "Hanken Grotesk", Inter, sans-serif;
	font-size: clamp(28px, 3.2vw, 40px) !important;
	font-weight: 700 !important;
	letter-spacing: -.02em;
	line-height: 1.2 !important;
}

.bak-search-form {
	position: relative;
	display: flex;
	align-items: stretch;
	width: min(100%, 640px);
	min-height: 56px;
	margin: 0;
	overflow: hidden;
	background: var(--bak-white);
	border: 2px solid var(--bak-navy);
	border-radius: 5px;
	box-shadow: 0 4px 12px rgba(0, 32, 91, .04);
}

.bak-search-form:focus-within {
	box-shadow: 0 0 0 3px rgba(0, 32, 91, .16);
}

.bak-search-icon {
	display: grid;
	flex: 0 0 56px;
	place-items: center;
	color: var(--bak-navy);
}

.bak-search-icon svg {
	width: 27px;
	height: 27px;
	stroke-width: 2;
}

.bak-search-input {
	flex: 1;
	min-width: 0;
	height: auto !important;
	margin: 0 !important;
	padding: 10px 12px !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #000d2f !important;
	font-family: "JetBrains Mono", Consolas, monospace !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	letter-spacing: .04em;
	outline: none !important;
	text-transform: uppercase;
}

.bak-search-input::placeholder {
	color: #8a8e96;
	opacity: .72;
}

.bak-search-input::-webkit-search-cancel-button {
	cursor: pointer;
}

.bak-search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 160px;
	margin: 0 !important;
	padding: 0 24px !important;
	background: var(--bak-navy) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	transition: background-color .2s ease;
}

.bak-search-submit:hover,
.bak-search-submit:focus {
	background: #173b76 !important;
}

.bak-search-submit svg {
	width: 19px;
	height: 19px;
}

.bak-subtitle {
	margin: 10px 0 0 !important;
	color: var(--bak-muted);
	font-size: 14px;
}

.bak-filter-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 48px;
}

.bak-filter-card {
	min-width: 0;
	padding: 26px;
	background: var(--bak-white);
	border: 1px solid var(--bak-line);
	border-radius: 8px;
}

.bak-filter-card h3,
.bak-results-heading h3,
.bak-detail-section h3,
.bak-service-section h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	color: #050c22 !important;
	font-family: Inter, sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

.bak-filter-card h3 {
	margin-bottom: 18px !important;
}

.bak-filter-card h3 svg,
.bak-detail-section h3 svg,
.bak-service-section h3 svg {
	color: var(--bak-navy);
}

.bak-filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.bak-chip,
.bak-category-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	margin: 0 !important;
	padding: 8px 17px !important;
	background: var(--bak-metallic) !important;
	border: 1px solid #ccd8e5 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	color: var(--bak-navy) !important;
	cursor: pointer;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.bak-chip:hover,
.bak-chip:focus,
.bak-chip.is-active,
.bak-category-button:hover,
.bak-category-button:focus,
.bak-category-button.is-active {
	background: var(--bak-navy) !important;
	border-color: var(--bak-navy) !important;
	color: #fff !important;
}

.bak-category-button {
	border-radius: 3px !important;
	background: #fff !important;
}

.bak-category-button svg {
	width: 18px;
	height: 18px;
}

.bak-results-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 24px;
	padding-bottom: 11px;
	border-bottom: 1px solid #c9ced6;
}

.bak-result-count {
	color: var(--bak-muted);
	font-size: 14px;
}

.bak-results {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bak-result-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 124px;
	padding: 24px 26px 24px 30px;
	overflow: hidden;
	background: var(--bak-white);
	border: 1px solid var(--bak-line);
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0, 32, 91, .05);
}

.bak-result-card::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 7px;
	background: var(--bak-navy);
	content: "";
}

.bak-level-critical::before,
.bak-level-high::before {
	background: var(--bak-signal);
}

.bak-level-low::before {
	background: #238451;
}

.bak-result-main {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 24px;
}

.bak-result-code,
.bak-code-large {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	min-width: 90px;
	min-height: 44px;
	padding: 8px 14px;
	background: var(--bak-metallic);
	border: 1px solid var(--bak-line);
	border-radius: 2px;
	color: #050c22;
	font-family: "JetBrains Mono", Consolas, monospace;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.1;
}

.bak-result-copy {
	min-width: 0;
}

.bak-result-copy h4 {
	margin: 0 0 4px !important;
	color: #050c22 !important;
	font-family: Inter, sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

.bak-result-copy p {
	margin: 0 !important;
	color: var(--bak-text);
	font-size: 14px;
	line-height: 1.55;
}

.bak-result-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 5px;
}

.bak-result-meta span {
	color: #5b6776;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.bak-result-meta span + span::before {
	margin-right: 6px;
	content: "•";
}

.bak-detail-button,
.bak-load-more {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 13px;
	min-height: 52px;
	margin: 0 !important;
	padding: 12px 24px !important;
	background: var(--bak-navy) !important;
	border: 1px solid var(--bak-navy) !important;
	border-radius: 2px !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	transition: background-color .18s ease;
}

.bak-detail-button:hover,
.bak-detail-button:focus,
.bak-load-more:hover,
.bak-load-more:focus {
	background: #173b76 !important;
}

.bak-detail-button svg {
	width: 17px;
	height: 17px;
}

.bak-load-more {
	display: flex;
	margin: 24px auto 0 !important;
}

.bak-loading,
.bak-detail-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 150px;
	color: var(--bak-muted);
}

.bak-spinner {
	width: 24px;
	height: 24px;
	border: 3px solid #d9e3ec;
	border-top-color: var(--bak-navy);
	border-radius: 50%;
	animation: bak-spin .7s linear infinite;
}

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

.bak-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 180px;
	padding: 28px;
	background: var(--bak-metallic);
	border: 1px solid var(--bak-line);
	border-radius: 5px;
	color: var(--bak-muted);
	text-align: center;
}

.bak-empty p {
	margin: 0 !important;
}

.bak-empty.is-error {
	background: #fff4f6;
	color: #8d1535;
}

.bak-detail-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
	padding: 0 8px 14px;
	border-bottom: 1px solid #c9ced6;
}

.bak-back-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 7px 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #08132f !important;
	cursor: pointer;
	font-size: 16px !important;
	font-weight: 700 !important;
}

.bak-back-button:hover,
.bak-back-button:focus {
	color: #20477f !important;
}

.bak-severity {
	display: inline-flex;
	min-width: 92px;
	justify-content: center;
	padding: 4px 12px;
	border-radius: 2px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.bak-severity-critical {
	background: var(--bak-signal);
	color: #fff;
}

.bak-severity-high {
	background: #fff0d5;
	color: #865500;
}

.bak-severity-medium {
	background: #e7effa;
	color: #1d4c83;
}

.bak-severity-low {
	background: #e7f6ec;
	color: #19643a;
}

.bak-detail-card {
	padding: 48px;
	background: #fff;
	border: 1px solid var(--bak-line);
	border-radius: 7px;
}

.bak-detail-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 246px;
	gap: 52px;
	align-items: start;
}

.bak-code-large {
	min-width: 100px;
	min-height: 60px;
	margin-bottom: 17px;
	font-size: 25px;
}

.bak-detail-taxonomy {
	margin: 0 0 7px !important;
	color: var(--bak-muted);
	font-size: 12px;
	font-weight: 600;
}

.bak-detail-summary h2 {
	margin: 0 0 9px !important;
	color: #07112d !important;
	font-family: Inter, sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

.bak-detail-description {
	max-width: 760px;
	margin: 0 !important;
	color: var(--bak-text);
	font-size: 15px;
}

.bak-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 15px;
}

.bak-tags span {
	padding: 3px 9px;
	background: var(--bak-metallic);
	border-radius: 999px;
	color: var(--bak-navy);
	font-size: 10px;
	font-weight: 600;
}

.bak-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bak-action-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	margin: 0 !important;
	padding: 12px 15px !important;
	background: #fff !important;
	border: 1px solid var(--bak-navy) !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	color: var(--bak-navy) !important;
	cursor: pointer;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
}

.bak-action-button:hover,
.bak-action-button:focus {
	background: var(--bak-metallic) !important;
	color: var(--bak-navy) !important;
}

.bak-action-button.is-primary {
	background: var(--bak-navy) !important;
	color: #fff !important;
}

.bak-action-button.is-primary:hover,
.bak-action-button.is-primary:focus {
	background: #173b76 !important;
	color: #fff !important;
}

.bak-action-button svg {
	width: 21px;
	height: 21px;
}

.bak-warning {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 30px;
	padding: 15px 17px;
	background: #fff0f3;
	border-left: 4px solid var(--bak-signal);
	color: #77122e;
}

.bak-warning svg {
	flex: 0 0 auto;
	margin-top: 1px;
}

.bak-warning p {
	margin: 0 !important;
}

.bak-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px 40px;
	margin-top: 42px;
}

.bak-detail-section {
	min-width: 0;
}

.bak-detail-section:first-child {
	grid-column: 1 / -1;
}

.bak-detail-section h3 {
	margin-bottom: 14px !important;
	font-size: 16px !important;
}

.bak-info-box,
.bak-solution-box {
	height: 100%;
	padding: 21px 24px;
	background: var(--bak-metallic);
	border: 1px solid var(--bak-line);
	border-radius: 3px;
	color: #303846;
}

.bak-info-box ul,
.bak-solution-box ol {
	margin: 0 !important;
	padding-left: 21px !important;
}

.bak-info-box li,
.bak-solution-box li {
	margin: 0 0 12px !important;
	padding-left: 4px;
}

.bak-info-box li:last-child,
.bak-solution-box li:last-child {
	margin-bottom: 0 !important;
}

.bak-documents {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.bak-document {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 74px;
	padding: 13px 16px;
	background: #fcfbfb;
	border: 1px solid #e1e1e1;
	border-radius: 3px;
	color: #091431 !important;
	text-decoration: none !important;
}

.bak-document:hover,
.bak-document:focus {
	background: var(--bak-metallic);
	border-color: #b8c8d8;
}

.bak-document-icon {
	color: var(--bak-signal);
}

.bak-document-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.bak-document-copy strong {
	font-size: 14px;
}

.bak-document-copy small {
	overflow: hidden;
	color: var(--bak-muted);
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bak-document-download {
	color: var(--bak-text);
}

.bak-detail-empty {
	margin: 0 !important;
	color: var(--bak-muted);
	font-size: 13px;
}

.bak-service-section {
	margin-top: 42px;
	padding-top: 32px;
	border-top: 1px solid var(--bak-line);
}

.bak-service-section h3 {
	margin-bottom: 14px !important;
	font-size: 16px !important;
}

.bak-service-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--bak-line);
	border-radius: 3px;
}

.bak-service-table {
	width: 100%;
	min-width: 700px;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse;
}

.bak-service-table th {
	padding: 10px 12px !important;
	background: var(--bak-navy);
	border: 0 !important;
	color: #fff;
	font-size: 11px;
	text-align: left;
	text-transform: uppercase;
}

.bak-service-table td {
	padding: 10px 12px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--bak-line) !important;
	color: var(--bak-text);
	font-size: 12px;
	vertical-align: top;
}

.bak-service-table tr:nth-child(even) td {
	background: var(--bak-metallic);
}

.bak-service-table tr:last-child td {
	border-bottom: 0 !important;
}

.bak-service-table code {
	color: var(--bak-navy);
	font-family: "JetBrains Mono", Consolas, monospace;
	font-weight: 700;
}

.bak-service-table small {
	display: block;
	margin-top: 4px;
	color: var(--bak-muted);
}

.bak-inline-back {
	margin-top: 8px !important;
}

@media (max-width: 850px) {
	.bak-filter-grid {
		grid-template-columns: 1fr;
	}

	.bak-detail-card {
		padding: 28px;
	}

	.bak-detail-top {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.bak-actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

	.bak-detail-section:first-child {
		grid-column: auto;
	}
}

@media (max-width: 650px) {
	.bak-app {
		padding: 28px 12px;
	}

	.bak-hero {
		margin-bottom: 34px;
	}

	.bak-main-title {
		margin-bottom: 18px !important;
		font-size: 25px !important;
	}

	.bak-search-form {
		flex-wrap: wrap;
	}

	.bak-search-icon {
		flex-basis: 48px;
	}

	.bak-search-input {
		width: calc(100% - 48px);
		min-height: 54px !important;
		font-size: 15px !important;
	}

	.bak-search-submit {
		width: 100%;
		min-height: 48px;
	}

	.bak-filter-card {
		padding: 20px;
	}

	.bak-filter-grid {
		gap: 16px;
		margin-bottom: 34px;
	}

	.bak-results-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}

	.bak-result-card {
		align-items: stretch;
		flex-direction: column;
		gap: 18px;
		padding: 22px 18px 20px 24px;
	}

	.bak-result-main {
		align-items: flex-start;
		flex-direction: column;
		gap: 13px;
	}

	.bak-result-code {
		min-width: 76px;
	}

	.bak-detail-button {
		width: 100%;
	}

	.bak-detail-toolbar {
		align-items: flex-start;
	}

	.bak-back-button {
		text-align: left;
	}

	.bak-detail-card {
		padding: 20px;
	}

	.bak-actions {
		display: flex;
	}

	.bak-detail-grid {
		gap: 24px;
		margin-top: 32px;
	}

	.bak-info-box,
	.bak-solution-box {
		padding: 18px;
	}
}
