:root {
	--akm-blue: #164d72;
	--akm-blue-dark: #0f3854;
	--akm-blue-soft: #eaf3f8;
	--akm-accent: #d6a52b;
	--akm-green: #2f6f48;
	--akm-text: #17212b;
	--akm-muted: #66727e;
	--akm-line: #dce3e8;
	--akm-bg: #eef2f4;
	--akm-card: #ffffff;
	--akm-radius: 14px;
	--akm-shadow: 0 16px 42px rgba(17, 44, 61, 0.10);
}

html { scroll-behavior: smooth; }
body.akm-ol-preview-page {
	margin: 0 !important;
	background: var(--akm-bg) !important;
	color: var(--akm-text) !important;
	font-family: var(--global-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif) !important;
	font-size: 16px;
	line-height: 1.6;
}
body.akm-ol-preview-page * { box-sizing: border-box; }
body.akm-ol-preview-page a { color: var(--akm-blue); }
body.akm-ol-preview-page button,
body.akm-ol-preview-page input,
body.akm-ol-preview-page select { font: inherit; }

.akm-ol-preview-toolbar {
	position: sticky;
	top: 0;
	z-index: 999999;
	display: grid;
	grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
	align-items: center;
	gap: 18px;
	min-height: 64px;
	padding: 10px 20px;
	background: #111a22;
	color: #fff;
	box-shadow: 0 4px 20px rgba(0,0,0,.24);
}
.akm-ol-preview-toolbar__notice { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.akm-ol-preview-toolbar__notice strong { color: #ffd76a; letter-spacing: .06em; }
.akm-ol-preview-toolbar__notice span { color: #dbe5ec; font-size: 13px; }
.akm-ol-preview-toolbar__devices { display: flex; padding: 3px; border-radius: 9px; background: rgba(255,255,255,.10); }
.akm-ol-preview-toolbar button,
.akm-ol-preview-toolbar a {
	border: 0;
	border-radius: 7px;
	padding: 8px 11px;
	background: transparent;
	color: #fff !important;
	text-decoration: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 650;
}
.akm-ol-preview-toolbar__devices button.is-active { background: #fff; color: #111a22 !important; }
.akm-ol-preview-toolbar__actions { display: flex; justify-content: flex-end; gap: 6px; }
.akm-ol-preview-toolbar__actions a { background: var(--akm-blue); }
.akm-ol-preview-toolbar__actions button { background: rgba(255,255,255,.10); }

.akm-ol-preview-stage { padding: 28px; overflow-x: auto; }
.akm-ol-preview-frame {
	width: 100%;
	max-width: 1420px;
	min-height: calc(100vh - 120px);
	margin: 0 auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: var(--akm-shadow);
	overflow: hidden;
	transition: width .22s ease, max-width .22s ease;
}
.akm-ol-preview-stage[data-akm-preview-stage="tablet"] .akm-ol-preview-frame { width: 820px; max-width: 820px; }
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-preview-frame { width: 390px; max-width: 390px; }

.akm-ol-course-header {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 26px 32px;
	position: relative;
	background: linear-gradient(135deg, var(--akm-blue-dark), var(--akm-blue));
	border-bottom: 4px solid var(--akm-accent);
	color: #fff;
}
.akm-ol-course-header__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 116px;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid rgba(255,255,255,.36);
	border-radius: 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	white-space: nowrap;
}
.akm-ol-course-header__brand img { display: block; max-width: 150px; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.akm-ol-course-header h1 { margin: 0; color: #fff; font-family: var(--global-heading-font-family, inherit); font-size: clamp(24px, 3vw, 38px); line-height: 1.15; }
.akm-ol-course-header p { margin: 5px 0 0; color: rgba(255,255,255,.78); }

.akm-ol-preview-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 760px; }
.akm-ol-course-nav { padding: 24px 18px 36px; border-right: 1px solid var(--akm-line); background: #f7f9fa; }
.akm-ol-course-nav a { text-decoration: none; }
.akm-ol-course-nav__home,
.akm-ol-course-nav__subject > a,
.akm-ol-course-nav__lesson > a,
.akm-ol-course-nav__block { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 9px; }
.akm-ol-course-nav__home { padding: 11px 12px; margin-bottom: 13px; font-weight: 750; }
.akm-ol-course-nav__subject { margin-bottom: 13px; }
.akm-ol-course-nav__subject > a { padding: 10px 12px; font-weight: 750; color: var(--akm-text); }
.akm-ol-course-nav__subject small,
.akm-ol-course-nav__block small { color: var(--akm-muted); font-size: 11px; white-space: nowrap; }
.akm-ol-course-nav__lesson { margin: 4px 0 0 11px; padding-left: 10px; border-left: 2px solid #dbe4ea; }
.akm-ol-course-nav__lesson > a { display: block; padding: 7px 9px; color: #34414d; font-weight: 650; font-size: 14px; }
.akm-ol-course-nav__block { padding: 6px 9px 6px 16px; color: #53616e; font-size: 13px; }
.akm-ol-course-nav a:hover,
.akm-ol-course-nav a.is-current { background: var(--akm-blue-soft); color: var(--akm-blue-dark); }

.akm-ol-course-main { min-width: 0; padding: 30px 38px 50px; }
.akm-ol-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; color: var(--akm-muted); font-size: 13px; }
.akm-ol-breadcrumbs a { text-decoration: none; }
.akm-ol-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--akm-blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.akm-ol-eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 999px; background: var(--akm-accent); }
.akm-ol-hero-card { padding: 30px; border-radius: var(--akm-radius); background: linear-gradient(145deg, #edf6fb, #f7fbfd); border: 1px solid #d8e8f1; }
.akm-ol-hero-card h2,
.akm-ol-content-heading h2 { margin: 0 0 10px; color: var(--akm-text); font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.akm-ol-hero-card p { max-width: 780px; margin: 0; color: #465664; }
.akm-ol-content-heading { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--akm-line); }
.akm-ol-content-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.akm-ol-content-meta span,
.akm-ol-status-pill,
.akm-ol-required-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #edf2f5; color: #4b5965; font-size: 12px; font-weight: 700; }
.akm-ol-required-pill { background: #fff3cf; color: #6f5200; }

.akm-ol-subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.akm-ol-subject-tile,
.akm-ol-block-tile,
.akm-ol-preview-list__item { border: 1px solid var(--akm-line); border-radius: var(--akm-radius); background: var(--akm-card); }
.akm-ol-subject-tile { padding: 22px; }
.akm-ol-subject-tile__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.akm-ol-subject-tile h3 { margin: 18px 0 8px; font-size: 21px; line-height: 1.25; }
.akm-ol-subject-tile p { color: var(--akm-muted); }
.akm-ol-primary-link { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border-radius: 7px; background: var(--akm-blue); color: #fff !important; text-decoration: none; font-weight: 750; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }

.akm-ol-preview-list { display: grid; gap: 12px; }
.akm-ol-preview-list__item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; }
.akm-ol-preview-list__number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--akm-blue-soft); color: var(--akm-blue); font-weight: 800; }
.akm-ol-preview-list__item h3 { margin: 0 0 4px; font-size: 18px; }
.akm-ol-preview-list__item p { margin: 0; color: var(--akm-muted); }
.akm-ol-preview-list__item > a { font-weight: 750; text-decoration: none; }

.akm-ol-block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.akm-ol-block-tile { display: flex; flex-direction: column; padding: 20px; }
.akm-ol-block-tile__meta,
.akm-ol-block-tile__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.akm-ol-block-tile__meta { color: var(--akm-muted); font-size: 12px; font-weight: 700; }
.akm-ol-block-tile h3 { margin: 15px 0 8px; line-height: 1.28; }
.akm-ol-block-tile p { color: var(--akm-muted); }
.akm-ol-block-tile__footer { margin-top: auto; padding-top: 12px; }

.akm-ol-prose { max-width: 860px; color: #293541; }
.akm-ol-prose h2,
.akm-ol-prose h3,
.akm-ol-prose h4 { color: var(--akm-text); line-height: 1.25; }
.akm-ol-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.akm-ol-prose table { width: 100%; border-collapse: collapse; }
.akm-ol-prose th,
.akm-ol-prose td { padding: 9px; border: 1px solid var(--akm-line); }

.akm-ol-media-preview { margin: 0 0 26px; border-radius: var(--akm-radius); overflow: hidden; background: #0c1218; }
.akm-ol-media-preview iframe,
.akm-ol-media-preview video,
.akm-ol-media-preview img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border: 0; }
.akm-ol-media-preview audio { display: block; width: calc(100% - 32px); margin: 16px; }
.akm-ol-media-link { display: block; padding: 24px; color: #fff !important; }
.akm-ol-preview-simulation-note,
.akm-ol-empty-preview { margin-top: 26px; padding: 17px 19px; border-radius: 11px; background: #fff8dc; border: 1px solid #eadca9; color: #5d511d; }
.akm-ol-preview-simulation-note p { margin: 4px 0 0; }
.akm-ol-empty-preview { background: #f5f7f8; border-color: var(--akm-line); color: var(--akm-muted); }
.akm-ol-block-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--akm-line); }
.akm-ol-block-pagination a { text-decoration: none; font-weight: 750; }
.akm-ol-muted { color: var(--akm-muted); }

.akm-ol-preview-stage[data-akm-preview-stage="tablet"] .akm-ol-preview-layout,
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-preview-layout { grid-template-columns: 1fr; }
.akm-ol-preview-stage[data-akm-preview-stage="tablet"] .akm-ol-course-nav,
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-course-nav { display: none; }
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-course-header { padding: 20px; align-items: flex-start; flex-direction: column; }
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-course-main { padding: 22px 18px 34px; }
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-subject-grid,
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-block-grid { grid-template-columns: 1fr; }
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-preview-list__item { grid-template-columns: 34px minmax(0, 1fr); }
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-preview-list__item > a { grid-column: 2; }

@media (max-width: 900px) {
	.akm-ol-preview-toolbar { grid-template-columns: 1fr; gap: 7px; position: relative; }
	.akm-ol-preview-toolbar__devices,
	.akm-ol-preview-toolbar__actions { justify-content: flex-start; }
	.akm-ol-preview-stage { padding: 14px; }
	.akm-ol-preview-frame { min-width: 0; }
	.akm-ol-preview-layout { grid-template-columns: 1fr; }
	.akm-ol-course-nav { display: none; }
	.akm-ol-course-main { padding: 24px 20px 36px; }
	.akm-ol-subject-grid,
	.akm-ol-block-grid { grid-template-columns: 1fr; }
}

.akm-ol-primary-link:hover { background: var(--akm-blue-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(11,52,76,.18); }
.akm-ol-subject-tile:hover, .akm-ol-block-tile:hover { border-color: color-mix(in srgb, var(--akm-blue) 35%, var(--akm-line)); box-shadow: 0 10px 28px rgba(15,56,84,.08); }
.akm-ol-status-pill { border: 1px solid color-mix(in srgb, var(--akm-blue) 18%, transparent); }


/* Modular learning-block content. */
.akm-ol-content-elements{display:flex;flex-direction:column;gap:22px}.akm-ol-content-element{margin:0}.akm-ol-content-element--image,.akm-ol-content-element--video,.akm-ol-content-element--audio{overflow:hidden;border:1px solid var(--akm-line);border-radius:14px;background:#fff}.akm-ol-content-element--image img{display:block;width:100%;height:auto}.akm-ol-content-element figcaption{padding:10px 15px;color:var(--akm-muted);font-size:13px;border-top:1px solid var(--akm-line)}.akm-ol-content-element--note{padding:18px 20px;border-left:5px solid var(--akm-blue);border-radius:10px;background:color-mix(in srgb,var(--akm-blue) 7%,#fff)}.akm-ol-content-element--note.is-tip{border-left-color:var(--akm-accent);background:color-mix(in srgb,var(--akm-accent) 10%,#fff)}.akm-ol-content-element--note.is-warning{border-left-color:#d68b00;background:#fff8e8}.akm-ol-content-element--note.is-success{border-left-color:#278348;background:#edf8f0}.akm-ol-content-element--note>strong{display:block;margin-bottom:7px;font-size:16px}.akm-ol-content-element--note .akm-ol-prose>:first-child{margin-top:0}.akm-ol-content-element--note .akm-ol-prose>:last-child{margin-bottom:0}.akm-ol-content-element--divider{width:100%;height:0;border:0;border-top:1px solid var(--akm-line)}

/* Focus/fullscreen mode shared by preview and participant portal. */
.akm-ol-course-header__content { min-width: 0; flex: 1 1 auto; }
.akm-ol-course-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-left: auto;
}
.akm-ol-focus-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid rgba(255,255,255,.42);
	border-radius: 8px;
	background: rgba(255,255,255,.08);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}
.akm-ol-focus-toggle:hover,
.akm-ol-focus-toggle.is-active { background: rgba(255,255,255,.18); }
.akm-ol-focus-toggle svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
html.akm-ol-focus-mode-active,
body.akm-ol-focus-mode-active { overflow: hidden !important; }
[data-akm-focus-root].is-akm-focus-mode {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483000 !important;
	width: 100vw !important;
	max-width: none !important;
	height: 100vh !important;
	min-height: 100vh !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: var(--akm-bg, #eef3f6) !important;
	overflow: auto !important;
}
.akm-ol-preview-stage.is-akm-focus-mode .akm-ol-preview-frame,
.akm-ol-participant-frame.is-akm-focus-mode {
	width: 100% !important;
	max-width: none !important;
	min-height: 100vh !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header {
	position: sticky;
	top: 0;
	z-index: 40;
}
@media (max-width: 700px) {
	.akm-ol-course-header__actions { width: 100%; justify-content: flex-start; margin-left: 0; flex-wrap: wrap; }
	.akm-ol-focus-toggle span { display: none; }
	.akm-ol-focus-toggle { padding: 9px; }
}

/* Controlled YouTube player shared by preview and participant views. */
.akm-ol-youtube-player { position:relative; background:#071f2d; color:#fff; }
.akm-ol-youtube-player__viewport { position:relative; width:100%; aspect-ratio:16/9; background-position:center; background-size:cover; }
.akm-ol-youtube-player__viewport iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.akm-ol-youtube-player__toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; margin:12px 14px 8px; padding:9px 13px; border:1px solid rgba(255,255,255,.24); border-radius:8px; background:var(--akm-blue); color:#fff; font:inherit; font-size:13px; font-weight:750; cursor:pointer; }
.akm-ol-youtube-player__toggle:hover { background:var(--akm-blue-dark); }
.akm-ol-youtube-player__toggle:disabled { opacity:.55; cursor:wait; }
.akm-ol-youtube-player__toggle-icon { width:0; height:0; border-top:6px solid transparent; border-bottom:6px solid transparent; border-left:10px solid currentColor; }
.akm-ol-youtube-player__toggle.is-playing .akm-ol-youtube-player__toggle-icon { width:10px; height:12px; border:0; background:linear-gradient(90deg,currentColor 0 35%,transparent 35% 65%,currentColor 65% 100%); }
.akm-ol-youtube-player__status { display:inline-block; padding:0 14px 12px; color:rgba(255,255,255,.72); font-size:12px; }
.akm-ol-youtube-player__status.is-error { color:#ffd1d1; }
@media (max-width:560px) { .akm-ol-youtube-player__toggle { width:calc(100% - 28px); } }

/* Compact learning-block cards in lesson views. */
.akm-ol-block-grid {
	grid-template-columns: repeat(auto-fill, minmax(250px, 360px));
	justify-content: start;
	gap: 12px;
	margin-top: 20px;
}
.akm-ol-block-tile { min-height: 0; padding: 15px 16px; }
.akm-ol-block-tile h3 { margin: 9px 0 13px; font-size: 18px; }
.akm-ol-block-tile__footer { padding-top: 0; }

/* v0.5.3 compact focus mode and independent collapsible course navigation. */
[data-akm-focus-root] { position: relative; }
.akm-ol-preview-layout { grid-template-columns: 300px minmax(0, 1fr); }
.akm-ol-course-nav {
	position: sticky;
	top: 12px;
	align-self: start;
	max-height: calc(100vh - 24px);
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-gutter: stable;
}
.akm-ol-course-nav-toggle,
.akm-ol-nav-header-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 38px;
	padding: 8px 11px;
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	cursor: pointer;
}
.akm-ol-nav-header-toggle {
	border: 1px solid rgba(255,255,255,.42);
	background: rgba(255,255,255,.08);
	color: #fff;
	white-space: nowrap;
}
.akm-ol-nav-header-toggle:hover { background: rgba(255,255,255,.18); }
.akm-ol-nav-header-toggle svg,
.akm-ol-course-nav-toggle svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.akm-ol-course-nav-toggle {
	position: sticky;
	top: 0;
	z-index: 3;
	width: 100%;
	margin: 0 0 12px;
	border: 1px solid var(--akm-line);
	background: #fff;
	color: var(--akm-blue-dark);
	box-shadow: 0 4px 12px rgba(15,56,84,.05);
}
.akm-ol-course-nav-toggle:hover { background: var(--akm-blue-soft); }
.akm-ol-course-nav__inner { min-width: 0; }
[data-akm-focus-root].is-akm-nav-collapsed .akm-ol-preview-layout { grid-template-columns: 56px minmax(0, 1fr); }
[data-akm-focus-root].is-akm-nav-collapsed .akm-ol-course-nav { padding: 10px 7px; }
[data-akm-focus-root].is-akm-nav-collapsed .akm-ol-course-nav__inner { display: none; }
[data-akm-focus-root].is-akm-nav-collapsed .akm-ol-course-nav-toggle { width: 40px; min-width: 40px; margin: 0 auto; padding: 9px; }
[data-akm-focus-root].is-akm-nav-collapsed .akm-ol-course-nav-toggle span { display: none; }
[data-akm-focus-root].is-akm-nav-collapsed .akm-ol-course-nav-toggle svg { transform: rotate(180deg); }

/* Keep learning media readable instead of stretching across an ultrawide viewport. */
.akm-ol-content-element--video,
.akm-ol-content-element--audio {
	width: 100%;
	max-width: 960px;
	margin-inline: auto;
}
.akm-ol-content-element--video .akm-ol-youtube-player__viewport,
.akm-ol-content-element--video video { max-height: 68vh; }

/* The focus header should leave most of the viewport to the lesson itself. */
[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header {
	gap: 14px;
	padding: 10px 18px;
	border-bottom-width: 3px;
}
[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header__brand {
	min-width: 88px;
	min-height: 34px;
	padding: 5px 8px;
}
[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header__brand img {
	max-width: 112px;
	max-height: 36px;
}
[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header h1 {
	font-size: clamp(18px, 2vw, 27px);
	line-height: 1.12;
}
[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header p {
	margin-top: 2px;
	font-size: 12px;
}
[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header__actions { gap: 6px; }
[data-akm-focus-root].is-akm-focus-mode .akm-ol-focus-toggle,
[data-akm-focus-root].is-akm-focus-mode .akm-ol-nav-header-toggle,
[data-akm-focus-root].is-akm-focus-mode .akm-ol-header-course-link {
	min-height: 34px;
	padding: 7px 10px;
	font-size: 12px;
}
[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-main { padding: 20px 28px 38px; }
[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-nav {
	top: 67px;
	max-height: calc(100vh - 67px);
}
[data-akm-focus-root].is-akm-focus-mode .akm-ol-content-element--video { max-width: 900px; }

.akm-ol-nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147482998;
	border: 0;
	background: rgba(5, 28, 41, .52);
	cursor: pointer;
}
.akm-ol-nav-backdrop[hidden] { display: none !important; }

/* Real mobile view and the preview's simulated tablet/phone views use an off-canvas menu. */
@media (max-width: 900px) {
	.akm-ol-preview-layout { grid-template-columns: 1fr !important; }
	.akm-ol-course-nav {
		display: block !important;
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 2147482999;
		width: min(88vw, 340px);
		max-height: none;
		padding: 14px 14px 28px;
		transform: translateX(-105%);
		transition: transform .2s ease;
		box-shadow: 18px 0 42px rgba(5, 28, 41, .22);
	}
	[data-akm-focus-root].is-akm-nav-open .akm-ol-course-nav { transform: translateX(0); }
	.akm-ol-course-nav-toggle { position: sticky; top: 0; }
	.akm-ol-course-header__actions { width: auto; }
	.akm-ol-nav-header-toggle span { display: none; }
	.akm-ol-nav-header-toggle { padding: 9px; }
}
.akm-ol-preview-stage[data-akm-preview-stage="tablet"] .akm-ol-preview-layout,
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-preview-layout { grid-template-columns: 1fr !important; }
.akm-ol-preview-stage[data-akm-preview-stage="tablet"] .akm-ol-course-nav,
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-course-nav {
	display: block !important;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 55;
	width: min(88%, 330px);
	max-height: none;
	transform: translateX(-105%);
	transition: transform .2s ease;
	box-shadow: 18px 0 42px rgba(5, 28, 41, .22);
}
.akm-ol-preview-stage[data-akm-preview-stage="tablet"].is-akm-nav-open .akm-ol-course-nav,
.akm-ol-preview-stage[data-akm-preview-stage="phone"].is-akm-nav-open .akm-ol-course-nav { transform: translateX(0); }
.akm-ol-preview-stage[data-akm-preview-stage="tablet"] .akm-ol-nav-header-toggle span,
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-nav-header-toggle span { display: none; }
.akm-ol-preview-stage[data-akm-preview-stage="tablet"] .akm-ol-nav-header-toggle,
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-nav-header-toggle { padding: 9px; }

@media (max-width: 560px) {
	[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header { padding: 9px 12px; }
	[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header__brand { display: none; }
	[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header__content { flex-basis: 100%; }
	[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header h1 { font-size: 18px; }
	[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-main { padding: 18px 14px 30px; }
}


/* v0.5.4: active-subject accordion, mobile-only course-menu controls and compact focus quiz. */
.akm-ol-course-nav__subject.is-collapsed { margin-bottom: 7px; }
.akm-ol-course-nav__subject.is-collapsed > a { background: transparent; }
.akm-ol-course-nav__subject.is-expanded > a { background: var(--akm-blue-soft); color: var(--akm-blue-dark); }
.akm-ol-course-nav__children { animation: akmOlNavReveal .16s ease-out; }
@keyframes akmOlNavReveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
.akm-ol-block-tile__meta.is-time-only { justify-content: flex-end; }

/* Desktop navigation stays permanently visible. The menu buttons are reserved for mobile/off-canvas views. */
@media (min-width: 901px) {
	.akm-ol-nav-header-toggle,
	.akm-ol-course-nav-toggle { display: none !important; }
	.akm-ol-preview-layout { grid-template-columns: 300px minmax(0, 1fr) !important; }
	.akm-ol-course-nav__inner { display: block !important; }
}

/* Keep the quiz readable in focus mode instead of stretching across the full screen. */
.akm-ol-quiz-panel { width: min(100%, 980px); margin-inline: auto; }
[data-akm-focus-root].is-akm-focus-mode .akm-ol-quiz-panel {
	width: min(100%, 920px);
	margin: 22px auto;
	padding: 20px 22px;
}
[data-akm-focus-root].is-akm-focus-mode .akm-ol-quiz-panel__heading { margin-bottom: 14px; }
[data-akm-focus-root].is-akm-focus-mode .akm-ol-quiz-question { padding: 15px 16px; margin-bottom: 14px; }
[data-akm-focus-root].is-akm-focus-mode .akm-ol-quiz-answers { gap: 8px; }
[data-akm-focus-root].is-akm-focus-mode .akm-ol-quiz-answers label { padding: 10px 12px; }

/* Simulated tablet/phone preview must show the mobile course-menu button even on a wide editor screen. */
.akm-ol-preview-stage[data-akm-preview-stage="tablet"] .akm-ol-nav-header-toggle,
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-nav-header-toggle,
.akm-ol-preview-stage[data-akm-preview-stage="tablet"] .akm-ol-course-nav-toggle,
.akm-ol-preview-stage[data-akm-preview-stage="phone"] .akm-ol-course-nav-toggle { display: inline-flex !important; }

/* v0.6.3: keep header controls in the configured AKM palette, independent of theme button styles. */
.akm-ol-focus-toggle,
.akm-ol-nav-header-toggle,
.akm-ol-course-nav-toggle,
.akm-ol-header-course-link {
	background-image: none !important;
	box-shadow: none !important;
}
.akm-ol-course-header .akm-ol-focus-toggle,
.akm-ol-course-header .akm-ol-nav-header-toggle,
.akm-ol-course-header .akm-ol-header-course-link {
	border-color: rgba(255,255,255,.42) !important;
	background-color: rgba(255,255,255,.08) !important;
	color: #fff !important;
}
.akm-ol-course-header .akm-ol-focus-toggle:hover,
.akm-ol-course-header .akm-ol-nav-header-toggle:hover,
.akm-ol-course-header .akm-ol-header-course-link:hover,
.akm-ol-course-header .akm-ol-focus-toggle.is-active {
	background-color: rgba(255,255,255,.18) !important;
}

/* v0.8.3: stable header, readable navigation and supplemental course areas. */
.akm-ol-course-header {
	display: grid;
	grid-template-columns: auto minmax(320px, 1fr) auto;
	align-items: center;
	column-gap: 26px;
	row-gap: 14px;
}
.akm-ol-course-header__content {
	min-width: 0;
	max-width: 760px;
}
.akm-ol-course-header__content h1 {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: auto;
}
.akm-ol-course-header__tools {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 10px;
	min-width: 0;
	max-width: 520px;
}
.akm-ol-course-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-left: 0;
	flex-wrap: nowrap;
}
.akm-ol-course-nav__subject > a,
.akm-ol-course-nav__block {
	justify-content: flex-start;
	width: 100%;
	box-sizing: border-box;
}
.akm-ol-course-nav__subject > a > span,
.akm-ol-course-nav__lesson > a,
.akm-ol-course-nav__block > span {
	min-width: 0;
	white-space: normal;
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: auto;
}
.akm-ol-supplemental-section {
	margin: 0 0 22px;
	padding: 18px 20px;
	border: 1px solid #d7e3d9;
	border-left: 5px solid var(--akm-accent);
	border-radius: 14px;
	background: #f8fbf8;
}
.akm-ol-supplemental-section__heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.akm-ol-supplemental-section__heading strong { font-size: 17px; }
.akm-ol-supplemental-section__heading span { color: var(--akm-muted); font-size: 12px; }
.akm-ol-supplemental-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 10px;
}
.akm-ol-supplemental-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--akm-line);
	border-radius: 10px;
	background: #fff;
	color: var(--akm-text);
	text-decoration: none;
}
.akm-ol-supplemental-list a:hover { border-color: var(--akm-accent); }
.akm-ol-supplemental-list a strong { color: var(--akm-blue); font-size: 12px; white-space: nowrap; }

[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header {
	grid-template-columns: auto minmax(280px, 1fr) auto;
}
[data-akm-focus-root].is-akm-focus-mode .akm-ol-course-header__tools {
	gap: 6px;
	max-width: 520px;
}

@media (max-width: 1180px) {
	.akm-ol-course-header {
		grid-template-columns: auto minmax(260px, 1fr);
	}
	.akm-ol-course-header__tools {
		grid-column: 1 / -1;
		width: 100%;
		max-width: none;
		align-items: flex-end;
	}
}
@media (max-width: 700px) {
	.akm-ol-course-header { grid-template-columns: 1fr; }
	.akm-ol-course-header__brand { justify-self: start; }
	.akm-ol-course-header__tools { grid-column: 1; align-items: stretch; }
	.akm-ol-course-header__actions { justify-content: flex-start; flex-wrap: wrap; }
	.akm-ol-supplemental-section__heading { flex-direction: column; align-items: flex-start; }
}

/* v0.8.4: stable action row and neutral supplemental navigation. */
.akm-ol-course-header__tools {
	max-width: 620px;
	width: max-content;
}
.akm-ol-course-header__actions {
	flex-wrap: wrap;
	max-width: 100%;
}
.akm-ol-course-header__actions > * {
	flex: 0 0 auto;
}
.akm-ol-course-nav__subject.is-supplemental > a {
	border-left: 0;
	background: transparent;
}
.akm-ol-course-nav__subject.is-supplemental > a::after {
	content: none;
	display: none;
}
.akm-ol-course-nav__subject.is-supplemental.is-expanded > a,
.akm-ol-course-nav__subject.is-supplemental > a.is-current {
	background: var(--akm-blue-soft);
	color: var(--akm-blue-dark);
}
@media (max-width: 1100px) {
	.akm-ol-course-header__tools {
		width: 100%;
		max-width: none;
		align-items: flex-start;
		grid-column: 2 / -1;
	}
	.akm-ol-course-header__actions {
		justify-content: flex-start;
	}
}
