/* ===== BusiBridge design tokens ===== */
:root {
	--bb-navy: #12213D;
	--bb-brass: #C99A44;
	--bb-paper: #FAF9F6;
	--bb-ink: #2B2F36;
	--bb-teal: #3F7A72;
	--bb-line: #E4E0D6;
	--bb-ink-soft: #6B7280;

	--bb-font-display: 'Space Grotesk', sans-serif;
	--bb-font-body: 'Inter', sans-serif;
	--bb-font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

body.busibridge-home,
body.busibridge-page {
	margin: 0;
	background: var(--bb-paper);
	color: var(--bb-ink);
	font-family: var(--bb-font-body);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.bb-banner {
	background: var(--bb-teal);
	color: #fff;
	text-align: center;
	padding: 10px;
	font-size: 14px;
}

/* ===== Header ===== */
.bb-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 32px;
	flex-wrap: wrap;
	gap: 12px;
}

.bb-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 0;
}
.bb-logo-img {
	height: 46px;
	width: auto;
	display: block;
}
.bb-logo-fallback {
	font-family: var(--bb-font-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--bb-navy);
	line-height: 1.4;
}

.bb-header-nav,
.bb-header-nav--full {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/*
 * Role button hover/focus.
 * Uses a navy-tinted transparent fill (not a near-white swatch) so the
 * hover is visible regardless of what the page background actually
 * renders as in a given theme — a solid near-white color was the bug
 * here, since it barely differed from the paper background.
 */
.bb-role-btn {
	font-family: var(--bb-font-body);
	font-size: 14px;
	font-weight: 500;
	color: var(--bb-navy);
	background-color: transparent;
	border: 1px solid transparent;
	padding: 8px 14px;
	border-radius: 20px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bb-role-btn:hover,
.bb-role-btn:focus-visible {
	background-color: rgba(18, 33, 61, 0.08) !important;
	border-color: rgba(18, 33, 61, 0.18) !important;
	color: var(--bb-navy) !important;
}
.bb-role-btn:focus-visible {
	outline: 2px solid var(--bb-teal);
	outline-offset: 2px;
}
.bb-role-btn:active {
	background-color: rgba(18, 33, 61, 0.14) !important;
}

/* ===== Main / hero ===== */
.bb-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px 60px;
	text-align: center;
}

.bb-eyebrow {
	font-family: var(--bb-font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bb-ink-soft);
	margin-bottom: 28px;
}

.bb-hero-buttons {
	display: flex;
	gap: 14px;
	margin-bottom: 28px;
}

.bb-hero-btn {
	font-family: var(--bb-font-body);
	font-weight: 600;
	font-size: 15px;
	padding: 11px 22px;
	border-radius: 24px;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.bb-hero-btn:hover { transform: translateY(-1px); }
.bb-hero-btn:focus-visible { outline: 2px solid var(--bb-teal); outline-offset: 2px; }

.bb-hero-btn--seeker {
	background-color: var(--bb-navy);
	color: var(--bb-paper);
}
.bb-hero-btn--seeker:hover { background-color: #1a2f52; }

.bb-hero-btn--investor {
	background-color: transparent;
	color: var(--bb-navy);
	border-color: var(--bb-navy);
}
.bb-hero-btn--investor:hover { background-color: rgba(18, 33, 61, 0.06); }

/* ===== Search bar ===== */
.bb-search-form {
	width: min(600px, 92vw);
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 999px;
	padding: 12px 20px;
	box-shadow: 0 1px 3px rgba(18, 33, 61, 0.06);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.bb-search-form:focus-within {
	border-color: var(--bb-brass);
	box-shadow: 0 2px 10px rgba(201, 154, 68, 0.18);
}

#bb-search-input {
	flex: 1;
	border: none;
	outline: none;
	font-family: var(--bb-font-body);
	font-size: 15px;
	background: transparent;
	color: var(--bb-ink);
}
#bb-search-input::placeholder { color: #A7ABB3; }

/*
 * Search submit button + arrow.
 * currentColor on the SVG stroke + an explicit `color` on the button
 * (rather than a hardcoded hex on the <path>) means the arrow can't
 * silently disappear if a theme's global CSS resets stroke/fill on
 * bare <path> elements — a common cause of "invisible icon" bugs.
 * The !important pins it as the final word against any such reset.
 */
.bb-search-submit {
	background-color: var(--bb-navy) !important;
	color: var(--bb-paper) !important;
	border: none;
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.12s ease;
}
.bb-search-submit:hover { background-color: #1a2f52 !important; }
.bb-search-submit:focus-visible { outline: 2px solid var(--bb-teal); outline-offset: 2px; }

.bb-search-submit svg,
.bb-search-submit .bb-search-arrow {
	display: block !important;
	overflow: visible;
}
.bb-search-submit svg path,
.bb-search-arrow path {
	stroke: currentColor !important;
	fill: none !important;
	stroke-width: 2.2 !important;
}

/* ===== Bridge signature graphic ===== */
.bb-bridge-arc {
	width: min(480px, 88vw);
	height: auto;
	margin-top: 22px;
}
.bb-arc-label {
	font-family: var(--bb-font-mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	fill: var(--bb-ink-soft);
}
#bb-arc-path {
	stroke-dasharray: 620;
	stroke-dashoffset: 620;
	animation: bb-draw 1.1s ease-out 0.15s forwards;
}
@media (prefers-reduced-motion: reduce) {
	#bb-arc-path { stroke-dashoffset: 0; animation: none; }
}
@keyframes bb-draw { to { stroke-dashoffset: 0; } }

/* ===== Search result card ===== */
.bb-search-result {
	width: min(600px, 92vw);
	margin-top: 26px;
	text-align: left;
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 14px;
	padding: 20px 22px;
}
.bb-search-result.is-loading { color: var(--bb-ink-soft); font-style: italic; }
.bb-result-source {
	display: inline-block;
	font-family: var(--bb-font-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bb-teal);
	background: #EAF2F0;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.bb-result-text { font-size: 15px; line-height: 1.6; white-space: pre-wrap; }
.bb-result-reason { margin-top: 10px; font-size: 12.5px; color: var(--bb-ink-soft); }
.bb-result-error { color: #A1423A; font-size: 14px; }

/* ===== Modal ===== */
.bb-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(18, 33, 61, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	padding: 20px;
}
.bb-modal {
	background: #fff;
	width: min(400px, 100%);
	border-radius: 16px;
	padding: 28px;
	position: relative;
}
.bb-modal-close {
	position: absolute;
	top: 14px; right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--bb-ink-soft);
}
.bb-modal-close:focus-visible { outline: 2px solid var(--bb-teal); }

.bb-modal-role-label {
	font-family: var(--bb-font-display);
	font-size: 18px;
	margin: 0 0 16px;
	color: var(--bb-navy);
}

.bb-modal-tabs {
	display: flex;
	gap: 4px;
	background: #F0EDE4;
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 20px;
}
.bb-modal-tab {
	flex: 1;
	border: none;
	background: transparent;
	padding: 8px;
	border-radius: 999px;
	font-family: var(--bb-font-body);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	color: var(--bb-ink-soft);
}
.bb-modal-tab.is-active { background: #fff; color: var(--bb-navy); }

.bb-modal-form { display: flex; flex-direction: column; gap: 14px; }
.bb-modal-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--bb-ink-soft);
}
.bb-modal-form input {
	font-family: var(--bb-font-body);
	font-size: 15px;
	padding: 10px 12px;
	border: 1px solid var(--bb-line);
	border-radius: 8px;
	color: var(--bb-ink);
}
.bb-modal-form input:focus-visible { outline: 2px solid var(--bb-teal); outline-offset: 1px; }

.bb-modal-hint { font-size: 12.5px; color: var(--bb-ink-soft); margin: 0; }
.bb-modal-error { color: #A1423A; font-size: 13px; margin: 0; }
.bb-modal-error.is-success { color: var(--bb-teal); }

.bb-modal-submit {
	background-color: var(--bb-navy) !important;
	color: var(--bb-paper) !important;
	border: none;
	padding: 12px;
	border-radius: 8px;
	font-family: var(--bb-font-body);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	margin-top: 4px;
}
.bb-modal-submit:hover { background-color: #1a2f52 !important; }
.bb-modal-submit:disabled { opacity: 0.6; cursor: default; }

/* ===== Content pages (About / Disclaimer / Privacy / Terms / Contact) ===== */
.bb-page-main {
	flex: 1;
	display: flex;
	justify-content: center;
	padding: 20px 20px 60px;
}

.bb-page-content { width: min(680px, 100%); }

.bb-page-content h1 {
	font-family: var(--bb-font-display);
	font-size: 32px;
	color: var(--bb-navy);
	margin: 10px 0 28px;
	letter-spacing: -0.01em;
}
.bb-page-content h2 {
	font-family: var(--bb-font-display);
	font-size: 19px;
	color: var(--bb-navy);
	margin: 32px 0 10px;
}
.bb-page-content p,
.bb-page-content li {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--bb-ink);
}
.bb-page-content ul { padding-left: 20px; }
.bb-page-content li { margin-bottom: 8px; }
.bb-page-content em {
	display: block;
	background: #FBF3E4;
	border: 1px solid #EEDDB8;
	border-radius: 8px;
	padding: 12px 14px;
	font-style: normal;
	font-size: 13.5px;
	color: #7A5C1E;
	margin-bottom: 24px;
}

/* ===== Contact form ===== */
.bb-contact-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 24px;
	max-width: 480px;
}
.bb-contact-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--bb-ink-soft);
}
.bb-contact-form input,
.bb-contact-form textarea {
	font-family: var(--bb-font-body);
	font-size: 15px;
	padding: 10px 12px;
	border: 1px solid var(--bb-line);
	border-radius: 8px;
	color: var(--bb-ink);
	resize: vertical;
}
.bb-contact-form input:focus-visible,
.bb-contact-form textarea:focus-visible {
	outline: 2px solid var(--bb-teal);
	outline-offset: 1px;
}
.bb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== Footer ===== */
.bb-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 20px 32px;
	border-top: 1px solid var(--bb-line);
	font-size: 13px;
}
.bb-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.bb-footer-links a { color: var(--bb-ink-soft); text-decoration: none; }
.bb-footer-links a:hover { color: var(--bb-navy); }
.bb-footer-rights { color: var(--bb-ink-soft); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
	.bb-header { padding: 14px 18px; }
	.bb-logo-img { height: 38px; }
	.bb-header-nav, .bb-header-nav--full { gap: 2px; }
	.bb-role-btn { padding: 7px 10px; font-size: 13px; }
	.bb-hero-buttons { flex-direction: column; width: 100%; max-width: 280px; }
	.bb-footer { flex-direction: column; align-items: flex-start; }
}

/* ===== Profile wizard (Registration Steps) ===== */
.bb-wizard-main {
	flex: 1;
	display: flex;
	justify-content: center;
	padding: 28px 20px 60px;
}
.bb-wizard-shell {
	width: min(960px, 100%);
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 32px;
	align-items: start;
}

.bb-wizard-nav {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 1px 3px rgba(18, 33, 61, 0.05);
}
.bb-wizard-role-label {
	font-family: var(--bb-font-mono);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bb-ink-soft);
	margin-bottom: 10px;
}
.bb-wizard-nav-item {
	text-align: left;
	background: transparent;
	border: none;
	border-radius: 8px;
	padding: 10px 12px;
	font-family: var(--bb-font-display);
	font-size: 14px;
	font-weight: 600;
	color: var(--bb-navy);
	cursor: pointer;
}
.bb-wizard-nav-item:hover { background: rgba(18, 33, 61, 0.06); }
.bb-wizard-nav-item.is-active { background: var(--bb-navy); color: var(--bb-paper); }

.bb-wizard-subnav {
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin: 4px 0 12px 8px;
	padding-left: 12px;
	border-left: 2px solid var(--bb-line);
}
.bb-wizard-subnav-item {
	font-size: 12.5px;
	color: var(--bb-ink-soft);
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 6px;
}
.bb-wizard-subnav-item:hover { background: var(--bb-paper); color: var(--bb-navy); }
.bb-wizard-subnav-item.is-active { color: var(--bb-teal); font-weight: 600; background: #EAF2F0; }

.bb-wizard-body {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 1px 3px rgba(18, 33, 61, 0.05);
}

.bb-wizard-progress-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 8px;
}
.bb-wizard-step h1 {
	font-family: var(--bb-font-display);
	font-size: 28px;
	color: var(--bb-navy);
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}
.bb-wizard-sub { color: var(--bb-ink-soft); font-size: 14px; margin: 0; max-width: 480px; }

.bb-wizard-progress-ring {
	position: relative;
	width: 56px; height: 56px;
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
}
.bb-wizard-progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bb-progress-track { fill: none; stroke: var(--bb-line); stroke-width: 3; }
.bb-progress-fill {
	fill: none; stroke: var(--bb-teal); stroke-width: 3; stroke-linecap: round;
	transition: stroke-dashoffset 0.3s ease;
}
.bb-wizard-progress-ring span {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--bb-font-mono); font-size: 11px; font-weight: 700; color: var(--bb-navy);
}

.bb-wizard-section {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--bb-line);
	scroll-margin-top: 24px;
}
.bb-wizard-step > .bb-wizard-section:first-of-type { margin-top: 28px; }
.bb-wizard-section-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 20px;
}
.bb-wizard-section-num {
	flex-shrink: 0;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--bb-navy);
	color: #fff;
	font-family: var(--bb-font-display);
	font-weight: 700;
	font-size: 13px;
	display: flex; align-items: center; justify-content: center;
}
.bb-wizard-section h2 {
	font-family: var(--bb-font-display);
	font-size: 17px;
	color: var(--bb-navy);
	margin: 0 0 2px;
}
.bb-wizard-section-sub { font-size: 12.5px; color: var(--bb-ink-soft); margin: 0; }
.bb-wizard-subhead {
	font-family: var(--bb-font-display);
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bb-ink-soft);
	margin: 20px 0 10px;
}
.bb-wizard-subhead:first-of-type { margin-top: 0; }

.bb-wizard-photo-row {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 26px;
}
.bb-wizard-photo-preview {
	width: 76px; height: 76px;
	border-radius: 50%;
	overflow: hidden;
	background: #F0EDE4;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px var(--bb-line);
}
.bb-wizard-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.bb-photo-placeholder { font-size: 10px; color: var(--bb-ink-soft); text-align: center; }
.bb-file-btn {
	display: inline-block;
	background: var(--bb-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 8px;
	cursor: pointer;
}
.bb-file-btn:hover { background: #1a2f52; }
.bb-field-hint { font-size: 12px; color: var(--bb-ink-soft); margin: 8px 0 0; }

.bb-field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}
.bb-field-grid label,
.bb-field-full,
.bb-repeater-row label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--bb-ink-soft);
}
.bb-field-full { margin-bottom: 20px; }
.bb-field-grid input,
.bb-field-grid select,
.bb-field-full textarea,
.bb-field-full input,
.bb-repeater-row input,
.bb-repeater-row select,
.bb-repeater-row textarea {
	font-family: var(--bb-font-body);
	font-size: 14px;
	font-weight: 400;
	padding: 10px 12px;
	border: 1px solid var(--bb-line);
	border-radius: 8px;
	color: var(--bb-ink);
	background: #fff;
	width: 100%;
}
.bb-field-grid input:focus-visible, .bb-field-grid select:focus-visible,
.bb-repeater-row input:focus-visible, .bb-repeater-row select:focus-visible, .bb-repeater-row textarea:focus-visible {
	outline: 2px solid var(--bb-teal); outline-offset: 1px; border-color: var(--bb-teal);
}

.bb-repeater { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.bb-repeater-row {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	background: var(--bb-paper);
	border: 1px solid var(--bb-line);
	border-radius: 12px;
	padding: 18px 44px 18px 18px;
}
.bb-repeater-row--slim { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.bb-repeater-full { grid-column: 1 / -1; }
.bb-remove-row {
	position: absolute;
	top: 12px; right: 12px;
	background: transparent;
	border: none;
	color: var(--bb-ink-soft);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	width: 24px; height: 24px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.bb-remove-row:hover { color: #A1423A; background: #FBEAEA; }

.bb-add-row {
	background: transparent;
	border: 1.5px dashed var(--bb-line);
	color: var(--bb-navy);
	font-size: 13px;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 8px;
	cursor: pointer;
	margin-bottom: 6px;
}
.bb-add-row:hover { background: rgba(18, 33, 61, 0.04); border-color: var(--bb-navy); }

.bb-tag-input {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	border: 1px solid var(--bb-line);
	border-radius: 8px;
	padding: 9px;
	min-height: 46px;
	background: #fff;
}
.bb-tag-input:focus-within { border-color: var(--bb-teal); outline: 2px solid var(--bb-teal); outline-offset: 1px; }
.bb-tag-input input {
	border: none;
	outline: none;
	flex: 1;
	min-width: 120px;
	font-family: var(--bb-font-body);
	font-size: 13.5px;
	padding: 4px;
}
.bb-tag-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #EAF2F0;
	color: var(--bb-teal);
	font-size: 12.5px;
	font-weight: 600;
	padding: 4px 6px 4px 10px;
	border-radius: 999px;
}
.bb-tag-chip button {
	background: none;
	border: none;
	color: var(--bb-teal);
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

.bb-wizard-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--bb-line);
}
.bb-wizard-actions--final { border-top: none; padding-top: 0; margin-top: 10px; }
.bb-wizard-save-status { font-size: 12.5px; color: var(--bb-ink-soft); }
.bb-wizard-actions .bb-modal-submit { width: auto; padding: 11px 26px; margin-top: 0; }

@media (max-width: 720px) {
	.bb-wizard-shell { grid-template-columns: 1fr; }
	.bb-wizard-nav { position: static; }
	.bb-wizard-subnav { flex-direction: row; overflow-x: auto; border-left: none; padding-left: 0; gap: 4px; }
	.bb-wizard-subnav-item { white-space: nowrap; }
	.bb-wizard-body { padding: 24px 20px; }
	.bb-repeater-row { grid-template-columns: 1fr; padding: 16px 40px 16px 16px; }
	.bb-field-grid { grid-template-columns: 1fr; }
	.bb-wizard-progress-row { flex-direction: column; }
}

/* ===== Dashboards ===== */
.bb-dash-main {
	flex: 1;
	display: flex;
	justify-content: center;
	padding: 20px 20px 60px;
}
.bb-dash-shell {
	width: min(980px, 100%);
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 28px;
	align-items: start;
}

.bb-dash-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; }

.bb-dash-profile-card {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 14px;
	padding: 20px;
	text-align: center;
}
.bb-dash-avatar {
	width: 64px; height: 64px;
	border-radius: 50%;
	margin: 0 auto 12px;
	overflow: hidden;
	background: var(--bb-navy);
	color: var(--bb-paper);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--bb-font-display);
	font-size: 24px; font-weight: 700;
}
.bb-dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bb-dash-profile-name { font-family: var(--bb-font-display); font-size: 15px; color: var(--bb-navy); }
.bb-dash-profile-role { font-size: 12.5px; color: var(--bb-ink-soft); margin: 4px 0 12px; }
.bb-dash-edit-link { font-size: 12.5px; color: var(--bb-teal); font-weight: 600; text-decoration: none; }
.bb-dash-edit-link:hover { text-decoration: underline; }

.bb-dash-roles-card {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 14px;
	padding: 16px;
}
.bb-dash-roles-title {
	font-family: var(--bb-font-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bb-ink-soft);
	margin-bottom: 10px;
}
.bb-dash-role-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 13px;
	border-top: 1px solid var(--bb-line);
}
.bb-dash-role-row:first-of-type { border-top: none; }
.bb-dash-role-row--disabled { color: var(--bb-ink-soft); }
.bb-dash-role-active {
	font-size: 11px; font-weight: 700; color: var(--bb-teal);
	background: #EAF2F0; padding: 3px 9px; border-radius: 999px;
}
.bb-dash-role-soon {
	font-size: 11px; color: var(--bb-ink-soft);
	background: #F0EDE4; padding: 3px 9px; border-radius: 999px;
	cursor: help;
}
.bb-dash-role-add {
	font-size: 11.5px; font-weight: 700; color: var(--bb-navy);
	background: rgba(18, 33, 61, 0.08);
	border: none; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.bb-dash-role-add:hover { background: rgba(18, 33, 61, 0.15); }
.bb-dash-role-add:disabled { opacity: 0.6; cursor: default; }

.bb-dash-content { display: flex; flex-direction: column; gap: 18px; }
.bb-dash-heading {
	font-family: var(--bb-font-display);
	font-size: 24px;
	color: var(--bb-navy);
	margin: 4px 0 0;
}

.bb-card {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 14px;
	padding: 22px;
}
.bb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bb-card-head h2 { font-family: var(--bb-font-display); font-size: 16px; color: var(--bb-navy); margin: 0; }
.bb-card-desc { font-size: 13.5px; color: var(--bb-ink-soft); line-height: 1.6; margin: 4px 0 0; }
.bb-card-edit { font-size: 12.5px; font-weight: 600; color: var(--bb-teal); text-decoration: none; }
.bb-card-edit:hover { text-decoration: underline; }

.bb-coming-soon-badge {
	font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
	color: var(--bb-ink-soft); background: #F0EDE4; padding: 4px 10px; border-radius: 999px;
	flex-shrink: 0;
}

.bb-empty-state { text-align: center; padding: 24px 10px; }
.bb-empty-state p { font-size: 13.5px; color: var(--bb-ink-soft); max-width: 420px; margin: 0 auto 16px; }
.bb-empty-state .bb-modal-submit { width: auto; padding: 10px 20px; margin: 0 auto; }

.bb-summary-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 6px;
}
.bb-summary-label { display: block; font-size: 11px; color: var(--bb-ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.bb-summary-grid div span:last-child { font-size: 14px; color: var(--bb-ink); }

/* Department browser */
.bb-dept-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	margin-top: 14px;
}
.bb-dept-card {
	text-align: left;
	background: var(--bb-paper);
	border: 1px solid var(--bb-line);
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bb-dept-card:hover { border-color: var(--bb-brass); }
.bb-dept-name { font-size: 13.5px; font-weight: 600; color: var(--bb-navy); }
.bb-dept-count { font-size: 11.5px; color: var(--bb-ink-soft); }

.bb-dept-modal { width: min(560px, 100%); max-height: 80vh; display: flex; flex-direction: column; }
.bb-dept-modal h2 { font-family: var(--bb-font-display); font-size: 18px; color: var(--bb-navy); margin: 0 0 14px; padding-right: 24px; }
.bb-dept-subject-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.bb-dept-subject-row {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 9px 10px; border-radius: 8px; background: var(--bb-paper);
	font-size: 13px; color: var(--bb-ink);
}
.bb-dept-apply-btn {
	font-size: 11px; font-weight: 700; color: var(--bb-ink-soft);
	background: #F0EDE4; border: none; padding: 5px 10px; border-radius: 999px;
	cursor: pointer; flex-shrink: 0;
}
.bb-dept-apply-btn:hover { background: #E4E0D6; }

@media (max-width: 720px) {
	.bb-dash-shell { grid-template-columns: 1fr; }
	.bb-dash-sidebar { position: static; }
	.bb-summary-grid { grid-template-columns: 1fr; }
}

.bb-header-role-pill {
	font-family: var(--bb-font-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bb-teal);
	background: #EAF2F0;
	padding: 6px 12px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
}

/* ===== Hiring an Analyst ===== */
.bb-analyst-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	margin-top: 14px;
}
.bb-analyst-card {
	background: var(--bb-paper);
	border: 1px solid var(--bb-line);
	border-radius: 12px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bb-analyst-card-top { display: flex; align-items: center; gap: 10px; }
.bb-analyst-avatar { width: 40px; height: 40px; font-size: 16px; margin: 0; flex-shrink: 0; }
.bb-analyst-name { font-family: var(--bb-font-display); font-size: 14px; color: var(--bb-navy); }
.bb-analyst-country { font-size: 11.5px; color: var(--bb-ink-soft); }
.bb-analyst-bio { font-size: 12.5px; color: var(--bb-ink-soft); line-height: 1.5; margin: 0; }
.bb-analyst-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-analyst-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 8px;
	border-top: 1px solid var(--bb-line);
}
.bb-analyst-rate { font-size: 12.5px; font-weight: 700; color: var(--bb-navy); display: block; }
.bb-analyst-rate--muted { color: var(--bb-ink-soft); font-weight: 500; }
.bb-analyst-rating { font-size: 11.5px; color: var(--bb-brass); display: block; margin-top: 2px; }
.bb-hire-btn {
	background: var(--bb-navy); color: var(--bb-paper); border: none;
	font-size: 12.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer;
	flex-shrink: 0;
}
.bb-hire-btn:hover { background: #1a2f52; }

.bb-tag-chip-static {
	display: inline-block;
	background: #EAF2F0;
	color: var(--bb-teal);
	font-size: 11px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 999px;
}

.bb-engagement-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bb-engagement-row {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	background: var(--bb-paper);
	border: 1px solid var(--bb-line);
	border-radius: 10px;
	padding: 14px 16px;
	flex-wrap: wrap;
}
.bb-engagement-main { flex: 1; min-width: 200px; }
.bb-engagement-name { font-weight: 600; font-size: 13.5px; color: var(--bb-navy); }
.bb-engagement-message { font-size: 12.5px; color: var(--bb-ink); margin: 4px 0; }
.bb-engagement-meta { font-size: 11px; color: var(--bb-ink-soft); }
.bb-engagement-rating { font-size: 12px; color: var(--bb-brass); margin-top: 6px; }
.bb-engagement-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

.bb-engagement-status {
	font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
	padding: 3px 10px; border-radius: 999px;
}
.bb-status-requested { background: #F0EDE4; color: var(--bb-ink-soft); }
.bb-status-accepted  { background: #EAF2F0; color: var(--bb-teal); }
.bb-status-declined  { background: #FBEAEA; color: #A1423A; }
.bb-status-completed { background: #12213D; color: var(--bb-paper); }

.bb-engagement-btn {
	font-size: 11.5px; font-weight: 700; border: none; border-radius: 999px;
	padding: 6px 14px; cursor: pointer;
}
.bb-eng-accept   { background: var(--bb-teal); color: #fff; }
.bb-eng-decline  { background: #F0EDE4; color: var(--bb-ink-soft); }
.bb-eng-complete { background: var(--bb-navy); color: #fff; }
.bb-eng-rate     { background: var(--bb-brass); color: #fff; }
.bb-engagement-btn:disabled { opacity: 0.5; cursor: default; }

.bb-star-input { display: flex; gap: 4px; font-size: 26px; margin-bottom: 6px; }
.bb-star { background: none; border: none; color: var(--bb-line); cursor: pointer; padding: 0; line-height: 1; }
.bb-star.is-filled { color: var(--bb-brass); }

/* ===== Role conversion (approval-based) ===== */
.bb-dash-role-request {
	font-size: 11.5px; font-weight: 700; color: var(--bb-teal);
	background: #EAF2F0;
	border: none; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.bb-dash-role-request:hover { background: #DCEAE7; }
.bb-dash-role-declined-note {
	font-size: 11px;
	color: var(--bb-ink-soft);
	background: #FBEAEA;
	border-radius: 8px;
	padding: 8px 10px;
	margin: -4px 0 8px;
}

/* ===== Exam engine ===== */
.bb-dept-subject-row--plain { cursor: default; justify-content: flex-start; }

.bb-exam-dept-list { display: flex; flex-direction: column; gap: 8px; }
.bb-exam-dept-row {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 12px 4px; border-top: 1px solid var(--bb-line);
}
.bb-exam-dept-row:first-child { border-top: none; }
.bb-exam-dept-name { font-weight: 600; font-size: 14px; color: var(--bb-navy); }
.bb-exam-dept-meta { font-size: 12px; color: var(--bb-ink-soft); margin-top: 2px; }
.bb-exam-unavailable { color: #A1423A; }
.bb-exam-take-btn {
	width: auto !important; padding: 8px 18px !important; margin: 0 !important;
	font-size: 13px; text-decoration: none; flex-shrink: 0;
}
.bb-exam-take-btn--disabled {
	background: #F0EDE4; color: var(--bb-ink-soft); padding: 8px 18px; border-radius: 8px; font-size: 12.5px;
}

.bb-exam-question {
	padding: 16px 0; border-top: 1px solid var(--bb-line);
	position: relative; z-index: 2;
	-webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
.bb-exam-question:first-child { border-top: none; padding-top: 0; }
.bb-exam-stimulus {
	font-size: 13.5px; color: var(--bb-ink-soft); line-height: 1.6;
	background: var(--bb-paper); border-left: 3px solid var(--bb-brass);
	padding: 10px 14px; border-radius: 6px; margin-bottom: 12px;
}
.bb-exam-question-text { font-size: 14.5px; font-weight: 600; color: var(--bb-ink); margin-bottom: 10px; }
.bb-exam-option {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer;
}
.bb-exam-option:hover { background: var(--bb-paper); }

.bb-exam-review-row {
	padding: 12px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; line-height: 1.6;
}
.bb-exam-review-row.is-correct { background: #EAF2F0; }
.bb-exam-review-row.is-wrong { background: #FBEAEA; }
.bb-exam-explanation { margin-top: 6px; font-size: 12px; color: var(--bb-ink-soft); font-style: italic; }

/* ===== Payments & Commissions ===== */
.bb-engagement-billing { font-size: 11.5px; color: var(--bb-ink-soft); margin-top: 6px; }
.bb-payment-status { font-weight: 700; }
.bb-payment-unpaid { color: #A1423A; }
.bb-payment-paid { color: var(--bb-teal); }

/* ===== Analyst public profile & comments ===== */
.bb-analyst-profile-header { display: flex; align-items: center; gap: 18px; }

.bb-comment-row {
	background: var(--bb-paper);
	border: 1px solid var(--bb-line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 10px;
}
.bb-comment-reply {
	margin-left: 24px;
	margin-top: 8px;
	margin-bottom: 0;
	background: #fff;
}
.bb-comment-meta { font-size: 11.5px; color: var(--bb-ink-soft); margin-bottom: 4px; }
.bb-comment-text { font-size: 13.5px; color: var(--bb-ink); line-height: 1.5; }
.bb-comment-reply-toggle {
	background: none; border: none; color: var(--bb-teal);
	font-size: 12px; font-weight: 600; cursor: pointer; padding: 6px 0 0;
}
.bb-comment-reply-slot form { margin-top: 8px; margin-left: 0; }
.bb-comment-reply-slot textarea {
	width: 100%; font-family: var(--bb-font-body); font-size: 13px;
	padding: 8px; border: 1px solid var(--bb-line); border-radius: 8px; margin-bottom: 8px;
}

/* ===== Document access control ===== */
.bb-doc-list { display: flex; flex-direction: column; gap: 8px; }
.bb-doc-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: var(--bb-paper); border: 1px solid var(--bb-line); border-radius: 10px;
	padding: 10px 14px;
}
.bb-doc-label { font-size: 13.5px; font-weight: 600; color: var(--bb-navy); }
.bb-doc-meta { font-size: 11.5px; color: var(--bb-ink-soft); margin-top: 2px; }
.bb-doc-visibility--public { color: var(--bb-teal); font-weight: 700; }
.bb-doc-visibility--sensitive { color: #A1423A; font-weight: 700; }
.bb-doc-delete {
	background: none; border: none; color: var(--bb-ink-soft);
	font-size: 18px; cursor: pointer; line-height: 1;
}
.bb-doc-delete:hover { color: #A1423A; }
.bb-doc-request-btn {
	font-size: 11.5px; font-weight: 700; color: var(--bb-navy);
	background: rgba(18, 33, 61, 0.08); border: none; padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.bb-doc-request-btn:hover { background: rgba(18, 33, 61, 0.15); }
.bb-nda-box {
	background: var(--bb-paper); border: 1px solid var(--bb-line); border-radius: 8px;
	padding: 12px; font-size: 12.5px; color: var(--bb-ink); line-height: 1.6; margin-bottom: 4px;
}

/* ===== Notifications ===== */
.bb-notif-wrap { position: relative; }
.bb-notif-bell {
	position: relative;
	background: transparent; border: 1px solid transparent; border-radius: 50%;
	width: 36px; height: 36px; display: grid; place-items: center;
	color: var(--bb-navy); cursor: pointer;
}
.bb-notif-bell:hover { background: rgba(18, 33, 61, 0.08); }
.bb-notif-badge {
	position: absolute; top: 2px; right: 2px;
	background: #A1423A; color: #fff; font-size: 10px; font-weight: 700;
	min-width: 16px; height: 16px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.bb-notif-panel {
	position: absolute; top: 44px; right: 0; z-index: 50;
	width: 320px; max-height: 420px; overflow-y: auto;
	background: #fff; border: 1px solid var(--bb-line); border-radius: 12px;
	box-shadow: 0 8px 24px rgba(18, 33, 61, 0.15);
}
.bb-notif-panel-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 14px; border-bottom: 1px solid var(--bb-line);
	font-family: var(--bb-font-display); font-size: 13px; color: var(--bb-navy);
}
.bb-notif-mark-all {
	background: none; border: none; color: var(--bb-teal);
	font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.bb-notif-empty { padding: 20px 14px; font-size: 12.5px; color: var(--bb-ink-soft); }
.bb-notif-row {
	display: block; padding: 10px 14px; text-decoration: none; color: var(--bb-ink);
	border-bottom: 1px solid var(--bb-line);
}
.bb-notif-row:last-child { border-bottom: none; }
.bb-notif-row:hover { background: var(--bb-paper); }
.bb-notif-row.is-unread { background: #EAF2F0; }
.bb-notif-message { display: block; font-size: 12.5px; line-height: 1.5; }
.bb-notif-row.is-unread .bb-notif-message { font-weight: 600; }
.bb-notif-date { display: block; font-size: 10.5px; color: var(--bb-ink-soft); margin-top: 3px; }

@media (max-width: 640px) {
	.bb-notif-panel { position: fixed; top: 60px; right: 10px; left: 10px; width: auto; }
}

/* ===== Search / filter / discovery ===== */
.bb-discovery-bar {
	display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
	margin: 14px 0 16px;
}
.bb-discovery-input {
	flex: 1; min-width: 180px;
	font-family: var(--bb-font-body); font-size: 13.5px;
	padding: 8px 12px; border: 1px solid var(--bb-line); border-radius: 8px; color: var(--bb-ink);
}
.bb-discovery-select {
	font-family: var(--bb-font-body); font-size: 13px;
	padding: 8px 10px; border: 1px solid var(--bb-line); border-radius: 8px; color: var(--bb-ink);
	background: #fff;
}
.bb-discovery-save-btn {
	font-size: 12.5px; font-weight: 700; color: var(--bb-navy);
	background: rgba(18, 33, 61, 0.08); border: none; padding: 8px 16px; border-radius: 999px; cursor: pointer;
	white-space: nowrap;
}
.bb-discovery-save-btn:hover { background: rgba(18, 33, 61, 0.15); }
.bb-discovery-empty { font-size: 13px; color: var(--bb-ink-soft); padding: 20px 0; text-align: center; }

.bb-saved-search-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bb-saved-search-row {
	display: flex; align-items: center; justify-content: space-between;
	background: var(--bb-paper); border: 1px solid var(--bb-line); border-radius: 8px;
	padding: 8px 12px; font-size: 13px; color: var(--bb-ink);
}
.bb-saved-search-delete {
	background: none; border: none; color: var(--bb-ink-soft);
	font-size: 16px; cursor: pointer; line-height: 1;
}
.bb-saved-search-delete:hover { color: #A1423A; }

/* ===== Certificates & Leaderboard ===== */
.bb-cert-list { display: flex; flex-direction: column; gap: 6px; }
.bb-cert-list-row {
	display: flex; align-items: center; justify-content: space-between;
	background: var(--bb-paper); border: 1px solid var(--bb-line); border-radius: 8px;
	padding: 9px 12px; font-size: 13px; color: var(--bb-ink); text-decoration: none;
}
.bb-cert-list-row:hover { border-color: var(--bb-brass); }
.bb-cert-list-score { font-weight: 700; color: var(--bb-teal); }

.bb-certificate {
	background: #fff; border: 3px double var(--bb-brass); border-radius: 4px;
	padding: 48px 40px; text-align: center; margin-top: 20px;
}
.bb-cert-brand {
	font-family: var(--bb-font-display); font-weight: 700; font-size: 18px;
	color: var(--bb-navy); letter-spacing: 0.02em;
}
.bb-cert-label {
	font-family: var(--bb-font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--bb-ink-soft); margin-top: 14px;
}
.bb-cert-name {
	font-family: var(--bb-font-display); font-size: 30px; color: var(--bb-navy);
	margin: 16px 0; border-bottom: 1px solid var(--bb-line); display: inline-block; padding-bottom: 8px;
}
.bb-cert-body { font-size: 15px; color: var(--bb-ink); line-height: 1.8; margin: 16px 0; }
.bb-cert-meta {
	display: flex; justify-content: center; gap: 24px; margin-top: 20px;
	font-family: var(--bb-font-mono); font-size: 11px; color: var(--bb-ink-soft);
}
.bb-cert-actions { text-align: center; margin-top: 22px; }

.bb-leaderboard-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.bb-leaderboard-table th {
	text-align: left; font-family: var(--bb-font-mono); font-size: 11px; text-transform: uppercase;
	letter-spacing: 0.04em; color: var(--bb-ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--bb-line);
}
.bb-leaderboard-table td { padding: 10px; font-size: 13.5px; border-bottom: 1px solid var(--bb-line); }
.bb-leaderboard-table tr.is-you { background: #EAF2F0; }
.bb-leaderboard-you-tag {
	font-family: var(--bb-font-mono); font-size: 10px; background: var(--bb-teal); color: #fff;
	padding: 2px 6px; border-radius: 999px; margin-left: 6px;
}

/* ===== Community forum ===== */
.bb-forum-dept-list, .bb-forum-topic-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.bb-forum-dept-row, .bb-forum-topic-row {
	display: flex; justify-content: space-between; align-items: center;
	background: var(--bb-paper); border: 1px solid var(--bb-line); border-radius: 10px;
	padding: 12px 16px; text-decoration: none; color: var(--bb-ink);
}
.bb-forum-dept-row:hover, .bb-forum-topic-row:hover { border-color: var(--bb-brass); }
.bb-forum-dept-count { font-size: 12px; color: var(--bb-ink-soft); }
.bb-forum-topic-row { flex-direction: column; align-items: flex-start; gap: 4px; }
.bb-forum-topic-title { font-weight: 600; font-size: 14px; color: var(--bb-navy); }
.bb-forum-topic-meta { font-size: 11.5px; color: var(--bb-ink-soft); }

/* ===== Calendar / booking ===== */
.bb-slot-list { display: flex; flex-direction: column; gap: 8px; }
.bb-slot-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: var(--bb-paper); border: 1px solid var(--bb-line); border-radius: 10px;
	padding: 12px 14px;
}
.bb-slot-when { font-size: 13.5px; font-weight: 600; color: var(--bb-navy); }
.bb-slot-meta { font-size: 12px; color: var(--bb-ink-soft); margin-top: 3px; }
.bb-slot-delete, .bb-slot-cancel {
	background: none; border: 1px solid var(--bb-line); color: var(--bb-ink-soft);
	font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; flex-shrink: 0;
}
.bb-slot-delete:hover, .bb-slot-cancel:hover { border-color: #A1423A; color: #A1423A; }
.bb-slot-link-row { display: flex; gap: 6px; margin-top: 6px; }
.bb-slot-link-input {
	flex: 1; font-size: 12px; padding: 6px 8px; border: 1px solid var(--bb-line); border-radius: 6px;
}
.bb-slot-link-save {
	font-size: 11px; font-weight: 700; color: var(--bb-teal);
	background: #EAF2F0; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer;
}

/* ===== Course/LMS ===== */
.bb-module-outline { margin-top: 14px; }
.bb-module-outline-title { font-family: var(--bb-font-display); font-size: 14px; color: var(--bb-navy); margin-bottom: 6px; }
.bb-lesson-outline-list { list-style: none; padding: 0; margin: 0; }
.bb-lesson-outline-list li {
	font-size: 13px; color: var(--bb-ink); padding: 7px 0; border-bottom: 1px solid var(--bb-line);
}
.bb-lesson-type-tag { font-size: 11px; color: var(--bb-ink-soft); margin-left: 6px; }

.bb-module-builder {
	background: var(--bb-paper); border: 1px solid var(--bb-line); border-radius: 10px;
	padding: 14px 16px; margin-bottom: 12px;
}
.bb-module-builder-head {
	display: flex; justify-content: space-between; align-items: center;
	font-family: var(--bb-font-display); font-size: 14px; color: var(--bb-navy); margin-bottom: 10px;
}
.bb-module-delete { background: none; border: none; color: var(--bb-ink-soft); font-size: 11.5px; cursor: pointer; }
.bb-module-delete:hover { color: #A1423A; }
.bb-lesson-builder-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.bb-lesson-builder-row {
	display: flex; justify-content: space-between; align-items: center;
	background: #fff; border: 1px solid var(--bb-line); border-radius: 6px; padding: 7px 10px; font-size: 13px;
}
.bb-lesson-delete { background: none; border: none; color: var(--bb-ink-soft); font-size: 16px; cursor: pointer; line-height: 1; }
.bb-add-lesson-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bb-add-lesson-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--bb-ink-soft); }
.bb-add-lesson-form input, .bb-add-lesson-form select, .bb-add-lesson-form textarea {
	font-family: var(--bb-font-body); font-size: 13px; padding: 7px 9px; border: 1px solid var(--bb-line); border-radius: 6px;
}

.bb-video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; margin-bottom: 16px; }
.bb-video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.bb-lesson-progress-bar { background: var(--bb-line); border-radius: 999px; height: 6px; overflow: hidden; margin: 8px 0 4px; }
.bb-lesson-progress-fill { background: var(--bb-teal); height: 100%; }
.bb-lesson-progress-label { font-size: 11px; color: var(--bb-ink-soft); }
.bb-lesson-nav-row {
	display: flex; align-items: center; gap: 8px;
	padding: 7px 4px; font-size: 12.5px; color: var(--bb-ink); text-decoration: none;
}
.bb-lesson-nav-row:hover { color: var(--bb-navy); }
.bb-lesson-nav-row.is-current { font-weight: 700; color: var(--bb-navy); }
.bb-lesson-nav-check { color: var(--bb-teal); flex-shrink: 0; }

/* ===== Disputes ===== */
.bb-eng-dispute { background: #FBEAEA; color: #A1423A; }

/* ===== Moderation (front-end report link) ===== */
.bb-report-link {
	background: none; border: none; color: var(--bb-ink-soft);
	font-size: 11px; text-decoration: underline; cursor: pointer; padding: 0;
}
.bb-report-link:hover { color: #A1423A; }

/* ===== AdSense placement ===== */
.bb-ad-slot {
	margin: 24px 0;
	text-align: center;
	overflow: hidden;
}

/* ===== Exam attempt state machine (Layer 2) ===== */
.bb-stage-badge {
	display: inline-block;
	font-family: var(--bb-font-mono);
	font-size: 10.5px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.bb-stage-badge--general { background: #EAF2F0; color: var(--bb-teal); }
.bb-stage-badge--intermediate { background: #FBF3E4; color: #7A5C1E; }
.bb-stage-badge--expert { background: #FCEAE0; color: #A15A2A; }
.bb-stage-badge--final { background: #FBEAEA; color: #A1423A; }
.bb-stage-badge--admin_final { background: #F0EDE4; color: var(--bb-ink-soft); }
.bb-stage-badge--awaiting_admin { background: #FBEAEA; color: #A1423A; }
.bb-stage-badge--cooldown { background: #F0EDE4; color: var(--bb-ink-soft); }
.bb-stage-badge--passed { background: #12213D; color: #fff; }
.bb-stage-badge--locked { background: #2B2F36; color: #fff; }

.bb-exam-attempt-history { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.bb-attempt-pill {
	font-family: var(--bb-font-mono);
	font-size: 10.5px;
	padding: 2px 8px;
	border-radius: 999px;
}
.bb-attempt-pill--pass { background: #EAF2F0; color: var(--bb-teal); }
.bb-attempt-pill--fail { background: #FBEAEA; color: #A1423A; }

/* ===== Exam unlock requests (Layer 3) ===== */
.bb-unlock-request-btn {
	background: rgba(18, 33, 61, 0.08); border: none; color: var(--bb-navy);
	font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.bb-unlock-request-btn:hover { background: rgba(18, 33, 61, 0.15); }
.bb-unlock-denied-note {
	font-size: 11.5px; color: #A1423A; background: #FBEAEA;
	border-radius: 8px; padding: 8px 10px; margin-top: 6px;
}

/* ===== Attempt review (Layer 5) ===== */
#bb-review-modal-body { overflow-y: auto; }
.bb-attempt-pill {
	border: none;
	cursor: pointer;
	font-family: var(--bb-font-mono);
}
.bb-attempt-pill:hover { filter: brightness(0.95); }

/* ===== Anti-copy deterrents & watermark (Layer 6) ===== */
#bb-exam-questions { position: relative; }
.bb-exam-watermark {
	position: absolute;
	inset: -20px;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
	opacity: 0.06;
	color: var(--bb-navy);
	font-family: var(--bb-font-mono);
	font-size: 12px;
	line-height: 34px;
	white-space: pre;
	transform: rotate(-22deg);
	user-select: none;
}
.bb-exam-focus-warning {
	background: #FBF3E4;
	border: 1px solid #EEDDB8;
	color: #7A5C1E;
	font-size: 12.5px;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
}

/* ===== Business Profile ===== */
.bb-segment-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--bb-navy); color: #fff;
	font-family: var(--bb-font-mono); font-size: 11px; font-weight: 700;
	margin-right: 6px;
}
.bb-segment-num--pending { background: var(--bb-line); color: var(--bb-ink-soft); }
.bb-segment-body { margin-top: 4px; }
.bb-segment-outline { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.bb-segment-outline-row {
	display: flex; align-items: center; gap: 10px;
	background: var(--bb-paper); border: 1px solid var(--bb-line); border-radius: 10px;
	padding: 10px 14px; font-size: 13.5px; color: var(--bb-ink);
}
.bb-segment-outline-row > span:nth-child(2) { flex: 1; }
