.akjc-exercise-library {
	--akjc-ink: #17324d;
	--akjc-muted: #5d6f7f;
	--akjc-line: #dfe7ee;
	--akjc-surface: #ffffff;
	--akjc-soft: #f5f9fc;
	--akjc-accent: #167c80;
	--akjc-accent-dark: #0f6669;
	--akjc-warning: #8a5b00;
	box-sizing: border-box;
	display: flex;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	min-height: 620px;
	color: var(--akjc-ink);
	font-family: inherit;
	background: var(--akjc-surface);
	border: 1px solid var(--akjc-line);
	border-radius: 8px;
	overflow: clip;
}

.akjc-exercise-library *,
.akjc-exercise-library *::before,
.akjc-exercise-library *::after {
	box-sizing: border-box;
}

.akjc-condition-sidebar {
	flex: 0 0 20%;
	min-width: 220px;
	background: var(--akjc-soft);
	border-right: 1px solid var(--akjc-line);
	padding: 14px;
}

.akjc-condition-button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 64px;
	margin: 0 0 8px;
	padding: 10px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--akjc-ink);
	text-align: left;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.akjc-condition-button:hover,
.akjc-condition-button:focus-visible,
.akjc-condition-button.is-active {
	background: #ffffff;
	border-color: #b7d9dd;
	color: var(--akjc-accent-dark);
	outline: none;
}

.akjc-condition-icon {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 8px;
	background: #e6f1f3;
	flex: 0 0 42px;
}

.akjc-condition-button strong,
.akjc-condition-button small {
	display: block;
}

.akjc-condition-button small {
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.35;
	color: var(--akjc-muted);
}

.akjc-exercise-panel {
	position: relative;
	flex: 1 1 80%;
	min-width: 0;
	background: #ffffff;
}

.akjc-mobile-condition-select-wrap {
	display: none;
	padding: 10px 14px 0;
}

.akjc-mobile-condition-select {
	display: block;
	width: min(86%, 280px);
	min-height: 34px;
	margin: 0 auto;
	border: 1px solid #9bc8cc;
	border-radius: 8px;
	padding: 5px 30px 5px 10px;
	background: #eef9f8;
	color: var(--akjc-accent-dark);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
}

.akjc-disclaimer {
	margin: 0 18px 18px;
	padding: 12px 14px;
	border: 1px solid #f0d28f;
	border-radius: 8px;
	background: #fff8e8;
	color: var(--akjc-warning);
	font-size: 14px;
	line-height: 1.45;
}

.akjc-cards-region {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	padding: 18px;
}

.akjc-exercise-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--akjc-line);
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(23, 50, 77, 0.07);
}

.akjc-card-media {
	aspect-ratio: 16 / 9;
	background: #edf4f7;
}

.akjc-exercise-image,
.akjc-image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.akjc-image-placeholder {
	display: grid;
	place-items: center;
	color: var(--akjc-muted);
	font-weight: 700;
}

.akjc-card-body {
	padding: 16px;
}

.akjc-card-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.akjc-card-heading h3 {
	margin: 0;
	font-size: 21px;
	line-height: 1.25;
	color: var(--akjc-ink);
}

.akjc-difficulty {
	flex: 0 0 auto;
	border-radius: 999px;
	padding: 5px 9px;
	background: #e7f4f3;
	color: var(--akjc-accent-dark);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.akjc-difficulty-moderate {
	background: #fff1d6;
	color: #7a5305;
}

.akjc-difficulty-advanced {
	background: #ffe8e5;
	color: #9b3024;
}

.akjc-description,
.akjc-card-section p,
.akjc-precautions p,
.akjc-card-details p {
	color: var(--akjc-muted);
	font-size: 15px;
	line-height: 1.55;
}

.akjc-card-section,
.akjc-precautions,
.akjc-card-details {
	margin-top: 12px;
}

.akjc-card-section h4,
.akjc-precautions h4 {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.25;
	color: var(--akjc-ink);
}

.akjc-card-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.akjc-card-details p {
	margin: 0;
	padding: 10px;
	border-radius: 8px;
	background: var(--akjc-soft);
}

.akjc-precautions {
	padding: 12px;
	border-radius: 8px;
	background: #fff8e8;
}

.akjc-suitable-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.akjc-suitable-tags span {
	border: 1px solid #c9dde0;
	border-radius: 999px;
	padding: 5px 9px;
	color: var(--akjc-accent-dark);
	background: #f4fbfb;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.akjc-video-link {
	display: inline-flex;
	align-items: center;
	margin-top: 14px;
	color: var(--akjc-accent-dark);
	font-weight: 700;
	text-decoration: none;
}

.akjc-video-link:hover,
.akjc-video-link:focus-visible {
	text-decoration: underline;
}

.akjc-mobile-nav {
	display: none;
}

.akjc-no-cards,
.akjc-empty {
	padding: 24px;
	color: var(--akjc-muted);
	text-align: center;
}

@media (max-width: 767px) {
	.akjc-exercise-library {
		display: block;
		min-height: 100vh;
		border: 0;
		border-radius: 0;
		overflow: visible;
	}

	.akjc-condition-sidebar {
		display: none;
	}

	.akjc-mobile-condition-select-wrap {
		display: block;
		position: sticky;
		top: 0;
		z-index: 10;
		background: #f7fbfb;
		padding: 8px 14px;
		border-bottom: 1px solid var(--akjc-line);
	}

	.akjc-mobile-condition-select {
		min-height: 34px;
		font-size: 13px;
	}

	.akjc-disclaimer {
		margin: 0 14px 70px;
		padding: 10px 12px;
		font-size: 12px;
	}

	.akjc-cards-region {
		display: block;
		padding: 12px 14px 8px;
		min-height: 90vh;
	}

	.akjc-exercise-card {
		display: none;
		min-height: calc(90vh - 120px);
		box-shadow: none;
	}

	.akjc-exercise-card.is-current {
		display: flex;
	}

	.akjc-card-body {
		padding: 14px;
		overflow-wrap: anywhere;
	}

	.akjc-card-heading {
		display: block;
	}

	.akjc-card-heading h3 {
		margin-bottom: 8px;
		font-size: 20px;
	}

	.akjc-card-details {
		grid-template-columns: 1fr;
	}

	.akjc-mobile-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 20;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		min-height: 44px;
		padding: 5px 12px calc(5px + env(safe-area-inset-bottom));
		background: #ffffff;
		border-top: 1px solid var(--akjc-line);
		box-shadow: 0 -8px 22px rgba(23, 50, 77, 0.09);
	}

	.akjc-exercise-library .akjc-mobile-nav button,
	.akjc-exercise-library .akjc-mobile-nav .akjc-prev-card,
	.akjc-exercise-library .akjc-mobile-nav .akjc-next-card {
		width: auto !important;
		min-width: 66px !important;
		max-width: 86px !important;
		min-height: 30px !important;
		height: 30px !important;
		padding: 4px 8px !important;
		border: 0;
		border-radius: 7px;
		background: var(--akjc-accent);
		color: #ffffff;
		font: inherit;
		font-size: 12px !important;
		font-weight: 700;
		line-height: 1 !important;
		cursor: pointer;
	}

	.akjc-exercise-library .akjc-mobile-nav button:disabled {
		background: #c9d6dd;
		cursor: not-allowed;
	}

	.akjc-card-counter {
		font-weight: 700;
		color: var(--akjc-ink);
		white-space: nowrap;
	}
}
