html,
body.htpl-player-page {
	margin: 0;
	min-height: 100%;
	background: #f6f7f9;
	color: #1d2327;
}

.htpl-shell {
	min-height: 100vh;
	display: grid;
	grid-template-rows: 56px 1fr;
	overflow: hidden;
}

.htpl-topbar {
	height: 56px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 14px;
	background: #ffffff;
	border-bottom: 1px solid #dcdcde;
	box-sizing: border-box;
	z-index: 30;
	justify-content: space-between;
}

.htpl-icon-button {
	width: 38px;
	height: 38px;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #ffffff;
	cursor: pointer;
}

.htpl-topbar-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.htpl-menu-button span {
	width: 18px;
	height: 2px;
	background: #1d2327;
	border-radius: 2px;
}

.htpl-home-button {
	flex-direction: row;
	color: #1d2327;
	text-decoration: none;
}

.htpl-home-button:hover {
	border-color: #2271b1;
	color: #135e96;
}

.htpl-home-button .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 20px;
}

.htpl-player-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
}

.htpl-nav-button,
.htpl-complete-button {
	min-height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	box-sizing: border-box;
	background: #ffffff;
	color: #1d2327;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.htpl-nav-button:hover {
	border-color: #2271b1;
	color: #135e96;
}

.htpl-nav-button.is-disabled {
	opacity: 0.45;
	cursor: default;
}

.htpl-complete-button {
	border-color: #14833b;
	background: #168f45;
	color: #ffffff;
}

.htpl-complete-button:hover {
	background: #117538;
}

.htpl-complete-button:disabled,
.htpl-complete-button.is-completed {
	border-color: #14833b;
	background: #168f45;
	opacity: 1;
	cursor: default;
}

.htpl-complete-button__check {
	display: none;
}

.htpl-complete-button.is-completed .htpl-complete-button__check {
	display: inline;
}

.htpl-stage {
	min-height: 0;
}

.htpl-frame {
	display: block;
	width: 100%;
	height: calc(100vh - 56px);
	border: 0;
	background: #ffffff;
}

.htpl-drawer {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(360px, 88vw);
	background: #ffffff;
	border-right: 1px solid #dcdcde;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
	transform: translateX(-102%);
	transition: transform 180ms ease;
	z-index: 50;
	display: flex;
	flex-direction: column;
}

.htpl-shell.is-drawer-open .htpl-drawer {
	transform: translateX(0);
}

.htpl-drawer__head {
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
	border-bottom: 1px solid #dcdcde;
	box-sizing: border-box;
}

.htpl-drawer__close {
	width: 34px;
	height: 34px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #ffffff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.htpl-lesson-list {
	overflow: auto;
	padding: 8px;
}

.htpl-lesson-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 6px;
	color: #1d2327;
	text-decoration: none;
}

.htpl-lesson-list a:hover,
.htpl-lesson-list a.is-current {
	background: #f0f6fc;
}

.htpl-lesson-list span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.htpl-lesson-list small {
	flex: 0 0 auto;
	color: #646970;
	font-size: 11px;
}

.htpl-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.34);
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
	z-index: 40;
}

.htpl-shell.is-drawer-open .htpl-backdrop {
	opacity: 1;
	pointer-events: auto;
}

@media (max-width: 640px) {
	.htpl-topbar {
		gap: 8px;
		padding: 0 8px;
	}

	.htpl-topbar-tools {
		gap: 5px;
	}

	.htpl-icon-button {
		width: 34px;
		height: 34px;
	}

	.htpl-player-nav {
		gap: 5px;
	}

	.htpl-nav-button,
	.htpl-complete-button {
		min-height: 34px;
		padding: 0 8px;
		font-size: 12px;
	}
}

@media (max-width: 430px) {
	.htpl-nav-button {
		width: 36px;
		padding: 0;
		font-size: 0;
	}

	.htpl-nav-button span {
		font-size: 16px;
	}

	.htpl-complete-button {
		padding: 0 9px;
	}
}

.htpl-frame-warning{position:absolute;left:24px;right:24px;top:86px;z-index:20;background:#fff7ed;border:1px solid #fdba74;color:#9a3412;border-radius:12px;padding:12px 14px;font-weight:700;box-shadow:0 10px 30px rgba(15,23,42,.08)}
