/* Blue Coral Onboarding — khóa học staff.
   Trắng đen theo https://bluecoral.vn (đồng bộ màn manager), xanh lá chỉ cho trạng thái "đã xong".
   Layout theo mockup đã duyệt: docs/superpowers/wireframes/2026-10-11-onboarding-staff-course.html.
   Tên biến --sora-* giữ nguyên để các component cũ dùng chung bảng màu mới. */

@font-face {
	font-family: "Work Sans";
	src: url("fonts/work-sans.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--sora-brand: #000;
	--sora-brand-strong: #000;
	--sora-brand-accent: #000;
	--sora-brand-soft: #f2f2f2;
	--sora-brand-soft-hover: #e8e8e8;
	--sora-canvas: #fff;
	--sora-canvas-strong: #f5f5f5;
	--sora-surface: #fff;
	--sora-ink: #171717;
	--sora-ink-muted: #6b6b6b;
	--sora-line: #e6e6e6;
	--sora-line-strong: #cfcfcf;
	--sora-success: #15803d;
	--sora-success-soft: #ecfdf3;
	--sora-success-line: #bbe5c8;
	--sora-warning: #9a5b2b;
	--sora-warning-soft: #fff7ed;
	--sora-warning-line: #f1d9b5;
	--sora-danger: #b42318;
	--sora-danger-strong: #8e1c13;
	--sora-danger-soft: #fff1f0;
	--sora-danger-line: #efc6c1;
	--sora-disabled-bg: #e5e5e5;
	--sora-disabled-ink: #8a8a8a;
	--sora-radius-sm: .25rem;
	--sora-radius-md: .5rem;
	--sora-radius: .75rem;
	--sora-radius-lg: 1rem;
	--sora-shadow-sm: 0 1px 2px #0000000f;
	--sora-shadow-md: 0 8px 24px #00000014, 0 2px 6px #0000000f;
	--sora-font-family: "Work Sans", Arial, ui-sans-serif, system-ui, sans-serif;
	--sora-muted-bg: #f5f5f5;
	--bco-done: #16a34a;
	--bco-side: 340px;
	--bco-break: 782px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body.bco-page {
	margin: 0;
	background: var(--sora-canvas);
	color: var(--sora-ink);
	font: 400 16px/1.55 var(--sora-font-family);
	overflow-x: hidden;
}

.bco-page h1, .bco-page h2, .bco-page h3, .bco-page h4 { line-height: 1.3; margin: 0 0 .5rem; }
.bco-page p { margin: 0 0 .75rem; }
.bco-page ul, .bco-page ol { margin: 0 0 .75rem; padding-left: 1.25rem; }
.bco-page li { margin: .25rem 0; }
/* Link trong nội dung dùng màu thương hiệu; nút dạng <a> giữ màu của .bco-btn. */
.bco-page a:not(.bco-btn) { color: var(--sora-brand); }
.bco-page code {
	background: var(--sora-muted-bg);
	border-radius: var(--sora-radius-sm);
	padding: .1rem .35rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .875em;
	overflow-wrap: anywhere;
}
.bco-page strong { font-weight: 700; }

.bco-sr,
.bco-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.bco-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--sora-surface);
	padding: .5rem .75rem;
	z-index: 20;
}
.bco-skip:focus { left: .5rem; top: .5rem; }

/* Focus nhìn thấy rõ cho mọi phần tử tương tác. */
.bco-page :focus-visible {
	outline: 2px solid var(--sora-brand);
	outline-offset: 2px;
}
.bco-page input:focus-visible,
.bco-page select:focus-visible,
.bco-page canvas:focus-visible {
	outline: 2px solid var(--sora-brand);
	outline-offset: 1px;
	border-color: var(--sora-brand);
}

/* ---------- Khung khóa học (full width, không header) ---------- */

.bco-main { display: block; padding: clamp(.75rem, 2vw, 1.5rem); }
.bco-main--gate { display: flex; justify-content: center; align-items: flex-start; padding-top: clamp(1rem, 4vh, 2.5rem); }
.bco-page .bco-gatelogo { margin: clamp(2rem, 8vh, 4.5rem) 0 0; text-align: center; }
.bco-gatelogo img { display: inline-block; }

.bco-course {
	display: grid;
	grid-template-columns: var(--bco-side) minmax(0, 1fr);
	min-height: 100vh;
}

/* Sidebar mục lục */

.bco-side {
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	background: #fafafa;
	border-right: 1px solid var(--sora-line);
	z-index: 40;
}
.bco-side__top { display: flex; align-items: center; gap: .6rem; padding: 1.25rem 1.4rem 0; }
.bco-side__logo { display: block; width: 134px; height: auto; }
.bco-side__tag { font-size: .75rem; font-weight: 500; border: 1px solid var(--sora-line-strong); border-radius: 999px; padding: .1rem .55rem; white-space: nowrap; }
.bco-side__tag--dark { background: #000; border-color: #000; color: #fff; }
.bco-side__close {
	display: none;
	margin-left: auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--sora-line-strong);
	background: #fff;
	color: var(--sora-ink);
	cursor: pointer;
	place-items: center;
}
.bco-page .bco-side__course { margin: .9rem 1.4rem 0; font-size: .8125rem; color: var(--sora-ink-muted); }
.bco-side__progress { padding: .6rem 1.4rem 1rem; border-bottom: 1px solid var(--sora-line); }
.bco-page .bco-side__pct { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0 0 .5rem; }
.bco-side__pct strong { font-size: 1.25rem; font-weight: 600; }
.bco-side__pct > span { font-size: .75rem; color: var(--sora-ink-muted); white-space: nowrap; }
.bco-side__list { flex: 1 1 auto; overflow-y: auto; padding: .5rem .75rem; }
.bco-page .bco-side__note { margin: 0; padding: .75rem 1.4rem; font-size: .75rem; color: var(--sora-ink-muted); border-top: 1px solid var(--sora-line); }

.bco-meter { height: 6px; background: var(--sora-line); border-radius: 9px; overflow: hidden; }
.bco-meter > i { display: block; width: 0; height: 100%; background: var(--bco-done); border-radius: 9px; transition: width .25s ease; }
.bco-meter--thin { height: 4px; }

.bco-mod__row {
	display: flex;
	align-items: center;
	gap: .75rem;
	width: 100%;
	padding: .65rem .6rem;
	border: 0;
	border-radius: .65rem;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.bco-mod__row:hover { background: #f0f0f0; }
.bco-mod__icon { position: relative; flex: none; width: 22px; height: 22px; display: grid; place-items: center; }
.bco-mod__done, .bco-mod__lock { display: none; width: 22px; height: 22px; border-radius: 50%; place-items: center; }
.bco-mod__done { background: var(--bco-done); color: #fff; }
/* Module khóa: chỉ hiện ổ khóa, không có vòng tròn. */
.bco-mod__lock { color: #a3a3a3; border-radius: 0; }
.bco-mod__ring circle { fill: none; stroke-width: 2.5; stroke: var(--sora-line); }
.bco-mod__ring circle + circle { stroke: var(--sora-ink); stroke-dasharray: 50.27; stroke-dashoffset: 50.27; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .25s ease; }
.bco-mod.is-done .bco-mod__done { display: grid; }
.bco-mod.is-locked .bco-mod__lock { display: grid; }
.bco-mod.is-done .bco-mod__ring, .bco-mod.is-locked .bco-mod__ring { display: none; }
.bco-mod__text { flex: 1 1 auto; min-width: 0; }
.bco-mod__title { display: block; font-weight: 500; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bco-mod__meta { display: block; font-size: .75rem; color: var(--sora-ink-muted); }
.bco-mod.is-locked .bco-mod__title, .bco-mod.is-locked .bco-mod__meta { color: #a3a3a3; }
.bco-mod__chev { flex: none; color: var(--sora-ink-muted); transition: transform .2s ease; }
.bco-mod.is-open .bco-mod__chev { transform: rotate(180deg); }

.bco-page .bco-les { list-style: none; margin: .1rem 0 .5rem 1.2rem; padding: 0 0 0 .75rem; border-left: 1px solid #e0e0e0; }
.bco-les li { margin: 0; }
.bco-les__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	width: 100%;
	padding: .55rem .6rem;
	border: 0;
	border-radius: .65rem;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.bco-les__item:hover:not(:disabled) { background: #f0f0f0; }
.bco-les__item:disabled { cursor: not-allowed; color: #a3a3a3; }
.bco-les__item.is-current { background: #fff; box-shadow: 0 1px 3px #0000001a; }
.bco-les__item.is-current::before { content: ""; position: absolute; left: calc(-.75rem - 2px); top: .5rem; bottom: .5rem; width: 3px; border-radius: 3px; background: var(--sora-ink); }
.bco-les__icon { flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: #525252; }
.bco-les__done { display: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bco-done); color: #fff; place-items: center; }
.bco-les__lock { display: none; color: #a3a3a3; }
.bco-les__item.is-done .bco-les__done { display: grid; }
.bco-les__item.is-done .bco-les__type { display: none; }
/* Bài chưa mở: chỉ hiện ổ khóa thay cho icon loại bài. */
.bco-les__item:disabled .bco-les__type { display: none; }
.bco-les__item:disabled .bco-les__lock { display: grid; }
.bco-les__text { min-width: 0; }
.bco-les__title { display: block; font-size: .875rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bco-les__item.is-current .bco-les__title { font-weight: 600; }
.bco-les__meta { display: block; margin-top: .1rem; font-size: .75rem; color: #737373; }

/* Nội dung bài */

.bco-course__main { min-width: 0; display: flex; flex-direction: column; }
.bco-mbar { display: none; }
.bco-stage { min-width: 0; flex: 1 1 auto; }
.bco-slide { min-height: 100vh; display: flex; flex-direction: column; }
.bco-lesson { flex: 1 1 auto; width: 100%; max-width: 880px; margin: 0 auto; padding: 2.25rem 3rem 2.5rem; }
.bco-page .bco-crumb { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1.1rem; font-size: .8125rem; color: var(--sora-ink-muted); }
.bco-crumb strong { color: var(--sora-ink); font-weight: 500; }
.bco-hero { margin: 0 0 1.75rem; }
.bco-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1rem; }
.bco-page .bco-slide__title { font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.2; font-weight: 600; margin: 0 0 .35rem; }
.bco-page .bco-lesson__type { display: flex; align-items: center; gap: .4rem; margin: 0 0 1.5rem; font-size: .8125rem; color: #525252; }
.bco-slide__body { font-size: 1.0625rem; line-height: 1.7; }
.bco-slide__body > :last-child { margin-bottom: 0; }

.bco-card {
	background: var(--sora-surface);
	border: 1px solid var(--sora-line);
	border-radius: var(--sora-radius-lg);
	padding: clamp(.9rem, 2vw, 1.4rem);
	margin-bottom: 1rem;
}
.bco-card__title { font-size: 1.125rem; font-weight: 600; margin: 0 0 .5rem; }

.bco-nav {
	position: sticky;
	bottom: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .85rem 3rem;
	background: #fff;
	border-top: 1px solid var(--sora-line);
}
.bco-btn--next { min-height: 52px; text-align: right; }
.bco-btn__stack { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; min-width: 0; }
.bco-btn__stack small { font-size: .6875rem; font-weight: 400; opacity: .75; }
.bco-btn__stack > span { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bco-backdrop { display: none; }

.bco-sublabel {
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--sora-ink-muted);
	margin: 1rem 0 .35rem;
}
li > .bco-sublabel:first-child { margin-top: 0; }

.bco-url { overflow-wrap: anywhere; }
.bco-chip {
	display: inline-block;
	background: var(--sora-muted-bg);
	border-radius: var(--sora-radius-sm);
	padding: .05rem .35rem;
	font-size: .8125rem;
}
.bco-ico {
	width: 1.25em; height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -.2em;
}
.bco-muted { color: var(--sora-ink-muted); }
.bco-sm { font-size: .8125rem; }

/* ---------- Hình minh họa (figure + logo row) ---------- */

.bco-figure { margin: 1rem 0; }
.bco-figure img { display: block; max-width: 100%; height: auto; }
.bco-figure figcaption {
	margin-top: .4rem;
	font-size: .8125rem;
	color: var(--sora-ink-muted);
	text-align: center;
}
/* Sơ đồ SVG: khổ tối đa 640px, canh giữa (không vượt bề rộng khung trên mobile). */
.bco-figure--diagram img { max-width: min(640px, 100%); margin: 0 auto; }
/* Screenshot: viền mảnh, bo góc 8px; hai biến thể bề rộng nhỏ hơn cho ảnh dọc. */
.bco-figure--shot img,
.bco-figure--shot-narrow img,
.bco-figure--shot-portrait img { border: 1px solid var(--sora-line); border-radius: var(--sora-radius-md); }
.bco-figure--shot-narrow img { max-width: min(472px, 100%); }
.bco-figure--shot-portrait img { max-width: min(360px, 100%); }
/* Ảnh không khí: bo góc 12px, phủ kín khung. */
.bco-figure--photo img { border-radius: var(--sora-radius); object-fit: cover; }

/* Ảnh chụp màn hình là link mở tab mới: con trỏ zoom + vùng bấm đúng bằng ảnh. */
.bco-figure__zoom { display: inline-block; max-width: 100%; cursor: zoom-in; }
.bco-figure--shot-narrow .bco-figure__zoom { max-width: min(472px, 100%); }
.bco-figure--shot-portrait .bco-figure__zoom { max-width: min(360px, 100%); }

/* Logo hàng ngang (2.2): logo cao 40px, nhãn nhỏ bên dưới, tự xuống dòng trên mobile. */
ul.bco-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}
ul.bco-logos > li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .25rem;
	margin: 0;
}
ul.bco-logos img { display: block; height: 40px; width: auto; }
.bco-logos__label { font-size: .75rem; color: var(--sora-ink-muted); }

/* ---------- Buttons ---------- */

.bco-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 44px;
	padding: .5rem 1.25rem;
	border: 1px solid var(--sora-line-strong);
	border-radius: 999px;
	background: var(--sora-surface);
	color: var(--sora-ink);
	font: 500 .9375rem/1.2 var(--sora-font-family);
	text-decoration: none;
	cursor: pointer;
}
.bco-btn:hover:not(:disabled) { border-color: var(--sora-ink); }
.bco-btn--primary {
	background: var(--sora-brand);
	border-color: var(--sora-brand);
	color: #fff;
}
.bco-btn--primary:hover:not(:disabled) { background: #262626; border-color: #262626; color: #fff; }
.bco-btn--small { min-height: 34px; padding: .25rem .8rem; font-size: .8125rem; }
.bco-btn:disabled, .bco-btn[aria-disabled="true"] {
	background: var(--sora-disabled-bg);
	border-color: var(--sora-disabled-bg);
	color: var(--sora-disabled-ink);
	cursor: not-allowed;
}
.bco-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ---------- Fields ---------- */

.bco-field { margin: 0 0 .75rem; display: block; }
.bco-label { display: block; font-size: .8125rem; color: var(--sora-ink-muted); margin-bottom: .2rem; }
.bco-input {
	display: block;
	width: 100%;
	min-height: 38px;
	padding: .35rem .5rem;
	border: 1px solid var(--sora-line-strong);
	border-radius: var(--sora-radius-md);
	background: var(--sora-surface);
	color: var(--sora-ink);
	font: 400 .9375rem/1.4 var(--sora-font-family);
}
.bco-input:disabled { background: var(--sora-disabled-bg); color: var(--sora-disabled-ink); }
.bco-input[readonly] { background: var(--sora-canvas-strong); }

/* Ô chọn có gõ để tìm (ngân hàng, slide 7.1). */
.bco-combo { position: relative; }
.bco-combo__input.bco-input { padding-right: 2rem; }
.bco-combo__chev { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); color: var(--sora-ink-muted); pointer-events: none; }
.bco-page .bco-combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 18rem; overflow-y: auto; margin: 0; padding: .25rem; list-style: none; background: #fff; border: 1px solid var(--sora-line-strong); border-radius: var(--sora-radius-md); box-shadow: var(--sora-shadow-md); }
.bco-page .bco-combo__opt { display: flex; flex-direction: column; margin: 0; padding: .45rem .6rem; border-radius: .4rem; cursor: pointer; line-height: 1.3; }
.bco-combo__opt strong { font-size: .9375rem; font-weight: 600; }
.bco-combo__opt span { font-size: .75rem; color: var(--sora-ink-muted); }
.bco-combo__opt.is-active, .bco-combo__opt:hover { background: #f0f0f0; }
.bco-combo__opt[aria-selected="true"] strong::after { content: " ✓"; color: var(--sora-success); }
.bco-combo__opt--other { border-top: 1px solid var(--sora-line); margin-top: .25rem; border-radius: 0 0 .4rem .4rem; }
.bco-page .bco-combo__empty { margin: 0; padding: .5rem .6rem; font-size: .8125rem; color: var(--sora-ink-muted); }
.bco-hint { display: block; font-size: .75rem; color: var(--sora-ink-muted); margin-top: .2rem; }
.bco-input--caps { text-transform: uppercase; }
.bco-input--error, .bco-input.is-error { border-color: var(--sora-danger); background: var(--sora-danger-soft); }
.bco-req { color: var(--sora-danger); }
.bco-field__error { display: block; color: var(--sora-danger); font-size: .8125rem; margin-top: .15rem; }
.bco-fileinfo { display: block; font-size: .8125rem; color: var(--sora-ink-muted); margin-top: .2rem; }
.bco-fileinfo.is-error { color: var(--sora-danger); }
.bco-note { font-size: .8125rem; color: var(--sora-ink-muted); margin: .5rem 0; }

.bco-form, .bco-sign { display: block; }
.bco-fieldset {
	border: 1px solid var(--sora-line);
	border-radius: var(--sora-radius);
	padding: .75rem;
	margin: 0 0 1rem;
	min-width: 0;
}
.bco-fieldset > legend { padding: 0 .25rem; }
.bco-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; }
.bco-field--full { grid-column: 1 / -1; }
.bco-choices { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.bco-radio-row { display: inline-flex; align-items: center; gap: .4rem; font-size: .9375rem; }

/* ---------- Notices, badges, tags ---------- */

.bco-notice {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	border: 1px solid var(--sora-line);
	background: var(--sora-canvas-strong);
	border-radius: var(--sora-radius-md);
	padding: .6rem .75rem;
	margin: 0 0 .75rem;
	font-size: .9375rem;
}
.bco-notice > :last-child { margin-bottom: 0; }
.bco-notice > p { margin: 0; }
.bco-notice--info { background: var(--sora-brand-soft); border-color: var(--sora-brand-soft-hover); }
.bco-notice--success { background: var(--sora-success-soft); border-color: var(--sora-success-line); color: var(--sora-success); }
.bco-notice--warning { background: var(--sora-warning-soft); border-color: var(--sora-warning-line); color: var(--sora-warning); }
.bco-notice--danger { background: var(--sora-danger-soft); border-color: var(--sora-danger-line); color: var(--sora-danger); }
.bco-notice--small { font-size: .8125rem; margin-top: .5rem; }

.bco-badge {
	display: inline-block;
	border-radius: 999px;
	padding: .1rem .55rem;
	font-size: .75rem;
	font-weight: 600;
	background: var(--sora-muted-bg);
	color: var(--sora-ink-muted);
}
.bco-badge--neutral { background: var(--sora-muted-bg); color: var(--sora-ink-muted); }
.bco-badge--info { background: var(--sora-brand-soft); color: var(--sora-brand-strong); }
.bco-badge--success { background: var(--sora-success-soft); color: var(--sora-success); }
.bco-badge--warning { background: var(--sora-warning-soft); color: var(--sora-warning); }
.bco-badge--danger { background: var(--sora-danger-soft); color: var(--sora-danger); }

.bco-tag {
	display: inline-block;
	border-radius: 999px;
	padding: .1rem .55rem;
	font-size: .6875rem;
	font-weight: 600;
	background: var(--sora-muted-bg);
	color: var(--sora-ink-muted);
}
.bco-tag.is-done { background: var(--sora-success-soft); color: var(--sora-success); }
.bco-tag.is-next { background: var(--sora-brand-soft); color: var(--sora-brand-strong); }
.bco-tag.is-optional { background: var(--sora-disabled-bg); color: var(--sora-disabled-ink); }
.bco-tag.is-locked { background: var(--sora-muted-bg); color: var(--sora-ink-muted); }

.bco-inline-error {
	border: 1px solid var(--sora-danger-line);
	background: var(--sora-danger-soft);
	color: var(--sora-danger);
	border-radius: var(--sora-radius-md);
	padding: .5rem .75rem;
	margin-top: .75rem;
	font-size: .875rem;
}

/* ---------- Gate (trạng thái chặn) ---------- */

.bco-gate {
	background: var(--sora-surface);
	border: 1px solid var(--sora-line);
	border-radius: var(--sora-radius);
	padding: clamp(1rem, 3vw, 1.75rem);
	text-align: center;
	max-width: 34rem;
	width: 100%;
	box-shadow: var(--sora-shadow-sm);
}
.bco-gate__eyebrow {
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--sora-brand);
	margin: 0 0 .35rem;
}
.bco-gate__title { font-size: 1.25rem; font-weight: 600; margin: 0 0 .5rem; }
.bco-gate__icon {
	width: 2.5rem; height: 2.5rem;
	border-radius: 50%;
	margin: 0 auto .6rem;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 1.125rem;
}
.bco-gate__icon--info { background: var(--sora-brand-soft); color: var(--sora-brand); }
.bco-gate__icon--success { background: var(--sora-success-soft); color: var(--sora-success); }
.bco-gate__icon--warning { background: var(--sora-warning-soft); color: var(--sora-warning); }
.bco-gate__icon--danger { background: var(--sora-danger-soft); color: var(--sora-danger); }
.bco-gate__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: .75rem 0 0; }

.bco-complete { text-align: center; }
.bco-complete__title { font-weight: 600; }

/* ---------- Học lại: nhập email, nhập mã ---------- */

.bco-rf { width: 100%; max-width: 440px; }
.bco-page .bco-rf__title { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 600; line-height: 1.2; text-align: center; margin: 0 0 .4rem; }
.bco-page .bco-rf__lead { text-align: center; color: #525252; font-size: .9375rem; margin: 0 0 1.25rem; }
.bco-rf .bco-notice { margin-bottom: .9rem; }
.bco-rf__card { background: #fff; border: 1px solid var(--sora-line); border-radius: var(--sora-radius-lg); padding: 1.25rem; }
.bco-rf__label { display: block; font-size: .8125rem; font-weight: 500; margin-bottom: .35rem; }
.bco-rf__hint { display: block; font-size: .75rem; color: var(--sora-ink-muted); margin-top: .35rem; }
.bco-rf .bco-input { min-height: 44px; border-radius: 10px; font-size: 1rem; }
.bco-rf .bco-field { margin-bottom: 1rem; }
.bco-group { display: flex; }
.bco-group .bco-input { flex: 1 1 auto; min-width: 0; border-radius: 10px 0 0 10px; }
.bco-group__suffix { display: flex; align-items: center; padding: 0 .75rem; border: 1px solid var(--sora-line-strong); border-left: 0; border-radius: 0 10px 10px 0; background: var(--sora-muted-bg); color: #444; font-size: .875rem; white-space: nowrap; }
.bco-rf__submit { width: 100%; }
.bco-rf .bco-rf__code { min-height: 56px; text-align: center; font-size: 1.5rem; font-weight: 600; letter-spacing: .4em; }
.bco-rf__row { display: flex; justify-content: space-between; gap: .5rem; margin-top: .9rem; }
.bco-page .bco-rf__foot { text-align: center; font-size: .75rem; color: var(--sora-ink-muted); margin: .9rem 0 0; }

/* ---------- Copy row ---------- */

.bco-copy { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.bco-copy input { flex: 1 1 12rem; min-width: 0; }
/* Hàng link một lần trong notice: input chiếm hết chiều rộng, nút Sao chép nằm bên cạnh. */
.bco-notice:has(> .bco-copy) { display: block; }
.bco-notice > p + .bco-copy { margin-top: .5rem; }
.bco-password { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* ---------- Bảng (stacked ≤ 782px) ---------- */

.bco-table-wrap { max-width: 100%; overflow-x: auto; margin: 0 0 .75rem; }
.bco-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.bco-table th, .bco-table td {
	border-bottom: 1px solid var(--sora-line);
	padding: .5rem .6rem;
	text-align: left;
	vertical-align: top;
}
.bco-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sora-ink-muted); }
/* Bảng công cụ (slide 3.1): cột Nhu cầu rộng hơn, in đậm. */
.bco-table--tools th:first-child { width: 24%; }
.bco-table--tools td:first-child { font-weight: 600; }
/* Link trong nội dung bài luôn nhận ra được. */
a.bco-url { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Timeline / mini cards ---------- */

.bco-timeline { list-style: none; padding: 0; margin: 0 0 .75rem; }
.bco-timeline__item {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	border-left: 3px solid var(--sora-line-strong);
	background: var(--sora-canvas-strong);
	border-radius: 0 var(--sora-radius-md) var(--sora-radius-md) 0;
	padding: .5rem .75rem;
	margin: 0 0 .4rem;
}
.bco-timeline__time { font-weight: 600; min-width: 9rem; }
.bco-timeline__text { flex: 1 1 auto; min-width: 0; }
.bco-timeline__item--ok { border-left-color: var(--sora-success); background: var(--sora-success-soft); }
.bco-timeline__item--warn { border-left-color: var(--sora-warning); background: var(--sora-warning-soft); }
.bco-timeline__item--stop { border-left-color: var(--sora-danger); background: var(--sora-danger-soft); }

/* Danh sách theo trình tự (slide 1.4): số thứ tự + icon, mục quan trọng có màu. */
.bco-page .bco-facts { list-style: none; counter-reset: bco-fact; margin: 0 0 1rem; padding: 0; border: 1px solid var(--sora-line); border-radius: var(--sora-radius-lg); overflow: hidden; }
.bco-page .bco-fact { counter-increment: bco-fact; display: flex; align-items: flex-start; gap: .85rem; margin: 0; padding: .85rem 1rem; border-top: 1px solid var(--sora-line); }
.bco-fact:first-child { border-top: 0; }
.bco-fact::before { content: counter(bco-fact); flex: none; width: 1.25rem; padding-top: .45rem; font-size: .8125rem; font-weight: 600; color: var(--sora-ink-muted); text-align: right; }
.bco-fact__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #f5f5f5; color: #525252; }
.bco-fact__text { min-width: 0; }
.bco-page .bco-fact__label { margin: 0; font-weight: 600; }
.bco-page .bco-fact__value { margin: .1rem 0 0; color: #404040; }
.bco-fact.is-key { background: #fcfcfc; }
.bco-fact--danger .bco-fact__icon { background: var(--sora-danger-soft); color: var(--sora-danger); }
.bco-fact--danger .bco-fact__value strong { color: var(--sora-danger); }
.bco-fact--success .bco-fact__icon { background: var(--sora-success-soft); color: var(--sora-success); }
.bco-fact--warning .bco-fact__icon { background: var(--sora-warning-soft); color: #b45309; }

/* Đối chiếu hai công cụ bằng logo (slide 4.5). */
.bco-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.bco-vs__card { border: 1px solid var(--sora-line); border-radius: var(--sora-radius-lg); padding: 1.25rem 1rem; text-align: center; background: #fff; }
.bco-vs__logo { display: block; width: 48px; height: 48px; object-fit: contain; margin: 0 auto .6rem; }
.bco-page .bco-vs__name { margin: 0; font-size: 1.125rem; font-weight: 600; }
.bco-page .bco-vs__role { margin: .35rem 0 0; font-weight: 500; }
.bco-page .bco-vs__note { margin: .25rem 0 0; font-size: .875rem; color: var(--sora-ink-muted); }
.bco-page .bco-vs__foot { grid-column: 1 / -1; margin: 0; padding: .75rem 1rem; border-radius: var(--sora-radius-md); background: var(--sora-muted-bg); text-align: center; font-size: .9375rem; }
@media (max-width: 480px) { .bco-vs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Code block ---------- */

/* Lệnh kèm nút sao chép (slide 2.5). */
.bco-cmd { display: inline-flex; align-items: stretch; max-width: 100%; vertical-align: middle; border: 1px solid var(--sora-line); border-radius: var(--sora-radius-md); background: var(--sora-muted-bg); overflow: hidden; }
.bco-page .bco-cmd code { background: transparent; border-radius: 0; padding: .3rem .6rem; overflow-wrap: anywhere; }
.bco-cmd__copy { flex: none; display: inline-flex; align-items: center; gap: .3rem; min-width: 40px; justify-content: center; padding: 0 .6rem; border: 0; border-left: 1px solid var(--sora-line); background: #fff; color: var(--sora-ink); font: 500 .75rem var(--sora-font-family); cursor: pointer; }
.bco-cmd__copy:hover { background: #f0f0f0; }
.bco-cmd__done { display: none; }
.bco-cmd__copy.is-copied { color: var(--sora-success); }
.bco-cmd__copy.is-copied svg { display: none; }
.bco-cmd__copy.is-copied .bco-cmd__done { display: inline; }

.bco-code {
	background: var(--sora-canvas-strong);
	border: 1px solid var(--sora-line);
	border-radius: var(--sora-radius-md);
	padding: .75rem;
	margin: 0 0 .75rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .8125rem;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* ---------- Steps (2.2) ---------- */

.bco-steps { list-style: none; padding: 0; margin: 0 0 .75rem; }
.bco-step {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	border: 1px solid var(--sora-line);
	border-radius: var(--sora-radius-md);
	background: var(--sora-surface);
	padding: .55rem .65rem;
	margin: 0 0 .4rem;
}
.bco-step.is-locked { opacity: .55; }
.bco-step.is-done { border-color: var(--sora-success-line); background: var(--sora-success-soft); }
.bco-step.is-optional { background: var(--sora-muted-bg); }
.bco-step.is-next { border-color: var(--sora-brand); }
.bco-step__check { display: inline-flex; align-items: flex-start; }
.bco-step__box {
	width: 1rem; height: 1rem;
	margin-top: .2rem;
	border: 1.5px solid var(--sora-line-strong);
	border-radius: var(--sora-radius-sm);
	background: var(--sora-surface);
	display: inline-block;
}
.bco-step input:checked + .bco-step__box {
	background: var(--sora-brand);
	border-color: var(--sora-brand);
	position: relative;
}
.bco-step input:checked + .bco-step__box::after {
	content: "";
	position: absolute;
	inset: 0;
	background: no-repeat center/10px 10px
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 6'/%3E%3C/svg%3E");
}
.bco-step__body { flex: 1 1 auto; min-width: 0; }
.bco-step__body > :last-child { margin-bottom: 0; }
.bco-step__state { flex: none; }
.bco-step input {
	position: absolute;
	opacity: 0;
	width: 1px; height: 1px;
}
.bco-step input:focus-visible + .bco-step__box { outline: 2px solid var(--sora-brand); outline-offset: 2px; }

/* ---------- Checklist cam kết (8.1) ---------- */

.bco-commitments { list-style: none; padding: 0; margin: 0; }
.bco-commitment { border-bottom: 1px solid var(--sora-line); }
.bco-commitment:last-child { border-bottom: 0; }
.bco-page .bco-commitment-note { margin: 1rem 0 0; padding: .85rem 1rem; border-left: 3px solid var(--sora-ink); background: var(--sora-muted-bg); border-radius: 0 var(--sora-radius-md) var(--sora-radius-md) 0; }
.bco-check { display: flex; align-items: flex-start; gap: .5rem; padding: .5rem .1rem; cursor: pointer; }
.bco-check input { margin: .2rem 0 0; width: 1.05rem; height: 1.05rem; flex: none; }
.bco-check__text { flex: 1 1 auto; min-width: 0; font-size: .9375rem; }

/* ---------- Quiz ---------- */

.bco-quiz { border-top: 1px solid var(--sora-line); margin-top: 1rem; padding-top: .75rem; }
.bco-quiz__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.bco-quiz__list { list-style: none; padding: 0; margin: 0; }
.bco-quiz__item {
	border: 1px solid var(--sora-line);
	border-radius: var(--sora-radius-md);
	padding: .6rem .7rem;
	margin: 0 0 .5rem;
}
.bco-quiz__item.is-wrong { border-color: var(--sora-danger-line); background: var(--sora-danger-soft); }
.bco-quiz__item.is-right { border-color: var(--sora-success-line); background: var(--sora-success-soft); }
.bco-quiz__q { margin: 0 0 .35rem; font-weight: 600; }
.bco-quiz__num { color: var(--sora-brand); }
.bco-quiz__opts { list-style: none; padding: 0; margin: 0; }
.bco-quiz__opt {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .25rem 0;
	font-size: .9375rem;
	cursor: pointer;
}
.bco-quiz__opt input { width: 1.05rem; height: 1.05rem; flex: none; }
.bco-quiz__mark { margin: .35rem 0 0; font-size: .8125rem; font-weight: 600; }
.bco-quiz__item.is-wrong .bco-quiz__mark { color: var(--sora-danger); }
.bco-quiz__item.is-right .bco-quiz__mark { color: var(--sora-success); }
.bco-quiz__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.bco-quiz__attempts { font-size: .8125rem; }
.bco-quiz__result:empty { display: none; }
.bco-quiz__result { margin-top: .5rem; }
.bco-quiz.is-passed .bco-quiz__actions { display: none; }

/* ---------- Signature ---------- */

.bco-canvas-wrap { position: relative; }
.bco-canvas {
	display: block;
	width: 100%;
	height: 200px;
	border: 1.5px dashed var(--sora-line-strong);
	border-radius: var(--sora-radius-md);
	background: var(--sora-surface);
	touch-action: none;
}
.bco-canvas-empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: 0;
	color: var(--sora-disabled-ink);
	font-size: .8125rem;
	pointer-events: none;
}
.bco-canvas-wrap.has-strokes .bco-canvas-empty { display: none; }

/* ---------- Checklist in (6.3) ---------- */

.bco-print-wrap { border: 1px solid var(--sora-line); border-radius: var(--sora-radius-md); padding: .75rem; }
.bco-print-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bco-print-card { break-inside: avoid; }
.bco-print-label {
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	border-bottom: 1.5px solid var(--sora-ink);
	padding-bottom: .25rem;
	margin: 0 0 .5rem;
}
.bco-print-list { list-style: none; padding: 0; margin: 0; }
.bco-print-list > li {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	margin: 0 0 .45rem;
	font-size: .9375rem;
}
.bco-print-list > li::before {
	content: "";
	flex: none;
	width: .8rem; height: .8rem;
	margin-top: .25rem;
	border: 1.5px solid var(--sora-ink);
	border-radius: 2px;
}
.bco-print-actions { margin: .75rem 0 0; }

/* (mục lục mobile là ngăn kéo .bco-side, xem phần ≤ 782px) */

/* ---------- Back to top ---------- */

.bco-totop {
	display: block;
	margin: 1rem 0 0 auto;
	min-height: 44px;
	padding: .5rem .75rem;
	border: 1px solid var(--sora-line-strong);
	border-radius: 999px;
	background: var(--sora-surface);
	color: var(--sora-ink);
	font: 600 .8125rem/1.2 var(--sora-font-family);
	cursor: pointer;
}

/* ---------- Print ---------- */

@media print {
	body.bco-page { background: #fff; }
	.bco-side, .bco-mbar, .bco-backdrop, .bco-nav, .bco-totop, .bco-skip, .bco-print-actions { display: none !important; }
	.bco-card { box-shadow: none; border: 0; padding: 0; margin: 0; }
	.bco-course { display: block; }
	.bco-slide[hidden] { display: none; }
	.bco-print-cols { gap: .75rem; }
}

@media print {
	body.print-checklist { visibility: hidden; }
	body.print-checklist .bco-print-wrap,
	body.print-checklist .bco-print-wrap * { visibility: visible; }
	body.print-checklist .bco-print-wrap {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		border: 0;
		padding: 0;
	}
	body.print-checklist .bco-print-intro,
	body.print-checklist .bco-print-actions { display: none !important; }
	body.print-checklist .bco-print-label { border-bottom-color: #000; }
	body.print-checklist .bco-print-list > li { break-inside: avoid; page-break-inside: avoid; }
}

/* ---------- ≤ 782px ---------- */

@media (max-width: 782px) {
	.bco-course { display: block; }
	.bco-side {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(340px, 88vw);
		height: auto;
		transform: translateX(-100%);
		transition: transform .2s ease;
		box-shadow: var(--sora-shadow-md);
	}
	body.bco-toc-open .bco-side { transform: translateX(0); }
	body.bco-toc-open { overflow: hidden; }
	.bco-side__close { display: grid; }
	.bco-backdrop { display: block; position: fixed; inset: 0; background: #00000066; z-index: 35; }
	.bco-backdrop[hidden] { display: none; }

	.bco-mbar {
		position: sticky;
		top: 0;
		z-index: 20;
		display: flex;
		align-items: center;
		gap: .65rem;
		padding: .55rem .9rem;
		background: #fff;
		border-bottom: 1px solid var(--sora-line);
	}
	.bco-mbar__toc {
		display: inline-flex;
		align-items: center;
		gap: .4rem;
		min-height: 40px;
		padding: 0 .8rem;
		border: 1px solid var(--sora-line-strong);
		border-radius: 999px;
		background: #fff;
		color: var(--sora-ink);
		font: 500 .8125rem var(--sora-font-family);
		cursor: pointer;
	}
	.bco-mbar .bco-meter { flex: 1 1 auto; }
	.bco-mbar__count { font-size: .75rem; color: var(--sora-ink-muted); white-space: nowrap; }

	.bco-slide { min-height: calc(100vh - 57px); }
	.bco-lesson { padding: 1.1rem 1rem 1.5rem; }
	.bco-crumb { font-size: .75rem; }
	.bco-hero { margin-bottom: 1.1rem; }
	.bco-hero img { border-radius: .75rem; }
	.bco-slide__body { font-size: 1rem; }
	.bco-nav { padding: .6rem .9rem; gap: .5rem; }
	.bco-nav__label { display: none; }
	.bco-btn__stack small { display: none; }
	.bco-btn__stack > span { max-width: 18ch; }
	.bco-btn--next { flex: 1 1 auto; justify-content: center; }

	.bco-grid2 { grid-template-columns: minmax(0, 1fr); }
	.bco-print-cols { grid-template-columns: minmax(0, 1fr); }

	.bco-btn { min-height: 44px; }
	.bco-input { min-height: 44px; font-size: 1rem; }
	.bco-quiz__opt { min-height: 44px; }
	.bco-les__item, .bco-mod__row { min-height: 44px; }
	.bco-check { min-height: 44px; }
	.bco-step__check { min-height: 24px; }

	/* Bảng -> thẻ xếp dọc */
	.bco-table-wrap { overflow-x: visible; }
	.bco-table thead { display: none; }
	.bco-table tr {
		display: block;
		border: 1px solid var(--sora-line);
		border-radius: var(--sora-radius-md);
		background: var(--sora-surface);
		padding: .5rem .6rem;
		margin: 0 0 .5rem;
	}
	.bco-table td {
		display: flex;
		gap: .6rem;
		border-bottom: 0;
		padding: .15rem 0;
	}
	.bco-table td::before {
		content: attr(data-label);
		flex: 0 0 42%;
		font-size: .75rem;
		font-weight: 600;
		color: var(--sora-ink-muted);
	}
	.bco-table td:empty { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bco-page *, .bco-page *::before, .bco-page *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Xem trước của manager ---------- */

.bco-preview-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .6rem 1.25rem;
	background: #000;
	color: #fff;
	font-size: .875rem;
}
.bco-preview-bar__close {
	flex: none;
	background: transparent;
	border: 1px solid #fff;
	border-radius: 999px;
	color: #fff;
	font: 600 .8125rem/1 var(--sora-font-family);
	padding: .45rem .9rem;
	cursor: pointer;
}
@media print { .bco-preview-bar { display: none !important; } }
