.yikgo-course-admin { max-width: 1200px; }
.yikgo-course-admin .yikgo-panel { margin-bottom: 16px; }
.yikgo-course-json { margin-top: 16px; }
.yikgo-course-json summary { cursor: pointer; }
[data-copy-preview] { white-space: pre-wrap; }
.yikgo-panel { border: 1px solid #e5e3ee; border-radius: 12px; background: #fff; padding: 18px; }
.yikgo-panel h2 { margin-top: 0; }
.yikgo-course-admin textarea { display: block; width: 100%; max-width: 100%; }
.yikgo-course-edit-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 18px; align-items: start; }
.yikgo-course-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.yikgo-course-fields label { display: block; }
.yikgo-course-fields :is(input:not([type=checkbox]), select) { display: block; width: 100%; margin: 4px 0; }
.yikgo-course-fields .yikgo-wide { grid-column: 1 / -1; }
.yikgo-course-links { min-width: 0; }
.yikgo-course-fields [hidden] { display: none; }
.yikgo-course-categories { max-height: 280px; overflow-y: auto; border: 1px solid #e5e3ee; border-radius: 8px; margin-block: 8px; padding: 8px 12px; }
.yikgo-course-categories [data-category-node] { padding-block: 2px; }
.yikgo-course-categories details { margin: 4px 0 2px 24px; }
.yikgo-course-categories summary { color: #56516b; cursor: pointer; }
.yikgo-course-categories details > div { margin: 4px 0; padding-inline-start: 10px; border-inline-start: 1px solid #e5e3ee; }
.yikgo-category-picker [data-selected-categories] { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.yikgo-category-picker > label { display: block; margin-block: 5px; }
.yikgo-faq-row { margin: 10px 0; padding: 14px 0; border-top: 1px solid #e5e3ee; }
.yikgo-faq-row[data-pinned="1"] { border-inline-start: 3px solid #e5a044; padding-inline-start: 10px; }
.yikgo-faq-row :is(input[type=text],textarea) { display: block; width: 100%; margin: 6px 0; }
.yikgo-faq-controls { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.yikgo-faq-controls [data-faq-index] { flex: 1; }
.yikgo-faq-drag { cursor: grab; font-size: 22px; padding-inline: 4px; }

.yikgo-learning { --yk-faq-line: #e5e3ee; --yk-faq-muted: #667089; --yk-faq-brand: #6324e9; --yk-faq-soft: #efe8ff; max-width: 1200px; width: calc(100% - 64px); margin: 24px auto 40px; color: #211b35; }
.yikgo-learning-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 40px; background: linear-gradient(110deg, #e6f2fc, #ece6fb); border-radius: 18px; }
.yikgo-learning-hero h1 { margin: 9px 0; font-size: 32px; color: inherit; }
.yikgo-learning-hero p { color: var(--yk-faq-muted); margin: 0; }
.yikgo-learning-hero small { color: #6324e9; font-weight: 750; letter-spacing: .08em; }
.yikgo-learning-hero img { width: min(25%, 155px); height: 130px; object-fit: contain; }
.yikgo-learning h2 { color: inherit; font-size: 20px; }
.yikgo-learning-about { display: flex; align-items: center; gap: 18px; margin: 24px 0 30px; }
.yikgo-learning-about > span, .yikgo-learning-point > span { background: var(--yk-faq-soft); color: var(--yk-faq-brand); padding: 8px; border-radius: 8px; flex: none; }
.yikgo-learning-about > span { padding: 16px; border-radius: 13px; }
.yikgo-learning-about h2, .yikgo-learning-overview h2 { margin: 0 0 8px; font-size: 18px; }
.yikgo-learning-about p { margin: 0; line-height: 1.8; color: var(--yk-faq-muted); }
.yikgo-learning-grid { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 24px; align-items: start; }
.yikgo-learning-title { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.yikgo-learning-title h2 { margin: 0; }
.yikgo-learning-title button { background: none; border: 0; color: #6324e9; cursor: pointer; padding: 6px; }
.yikgo-faq-item { border: 1px solid #e5e3ee; border-radius: 12px; margin-bottom: 10px; background: #fff; }
.yikgo-faq-item summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 650; padding: 15px; list-style: none; }
.yikgo-faq-item summary::-webkit-details-marker { display: none; }
.yikgo-faq-letter, .yikgo-faq-pinned { display: grid; place-items: center; min-width: 28px; height: 28px; flex: none; color: var(--yk-faq-brand); background: var(--yk-faq-soft); border-radius: 7px; }
.yikgo-faq-pinned { padding: 0 6px; background: #f9b65426; color: #a75303; font-size: 11px; }
.yikgo-faq-item:nth-of-type(3n+2) .yikgo-faq-letter { background: #0f9d8718; color: #0f9d87; }
.yikgo-faq-item:nth-of-type(3n) .yikgo-faq-letter { background: #3986d818; color: #3986d8; }
.yikgo-faq-item summary svg { margin-inline-start: auto; flex: none; color: var(--yk-faq-brand); }
.yikgo-faq-item[open] summary svg { transform: rotate(180deg); }
.yikgo-faq-item > div { border-top: 1px solid var(--yk-faq-line); padding: 15px 18px; line-height: 1.85; color: var(--yk-faq-muted); }
.yikgo-faq-item > div > :last-child { margin-bottom: 0; }
.yikgo-learning-overview { display: grid; gap: 17px; }
.yikgo-learning-point { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--yk-faq-line); padding: 12px 0; }
.yikgo-learning-point:last-child { border-bottom: 0; }
.yikgo-learning-point small { display: block; color: var(--yk-faq-muted); }
.yikgo-learning-return { display: block; padding: 9px; text-align: center; color: #fff; background: #6324e9; border-radius: 8px; }
.yikgo-learning-return:hover, .yikgo-learning-return:focus { color: #fff; background: #4e1eb5; }
.yikgo-learning-tip { display: flex; align-items: center; gap: 12px; padding: 18px; margin-top: 25px; background: #3986d812; border-radius: 12px; color: var(--yk-faq-muted); font-size: 13px; }
.yikgo-learning-tip svg { color: #3986d8; flex: none; }
.yikgo-learning .yikgo-icon { width: 20px; height: 20px; }
.dark-theme .yikgo-learning { --yk-faq-line: #383247; --yk-faq-muted: #c0b5cd; --yk-faq-brand: #c7b3ff; --yk-faq-soft: #30244a; color: #f1ecfa; }
.dark-theme .yikgo-learning :is(.yikgo-panel,.yikgo-faq-item) { background: #211e2e; border-color: #383247; }
.dark-theme .yikgo-learning-hero { background: linear-gradient(110deg,#283145,#332844); }
.dark-theme .yikgo-learning :is(.yikgo-faq-item > div,.yikgo-learning-hero p,.yikgo-learning-point small) { color: #c0b5cd; }
.dark-theme .yikgo-learning :is(.yikgo-learning-hero small,.yikgo-learning-title button) { color: #c7b3ff; }
.dark-theme .yikgo-faq-pinned { color: #f6c777; }
.yikgo-learning :focus-visible { outline: 2px solid #6324e9 !important; }

.yikgo-resource { margin: 20px 0; padding: 15px; border: 1px solid #9ad4c8; border-radius: 10px; background: #0f9d870b; }
.yikgo-resource h3 { margin: 0 0 8px; font-size: 16px; }
.yikgo-resource button { border: 1px solid #91cdbc; border-radius: 18px; color: #096850; background: #fff; padding: 5px 12px; }
.yikgo-course-note { margin: 20px 0; padding: 15px; background: #80808012; border-inline-start: 3px solid #8080804d; }
.yikgo-course-preview img { width: 100%; max-width: 650px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

@media(max-width: 782px) {
	.yikgo-course-edit-grid { grid-template-columns: minmax(0, 1fr); }
	.yikgo-faq-drag { display: none; }
}
@media(max-width: 720px) {
	.yikgo-learning-grid { grid-template-columns: minmax(0, 1fr); }
	.yikgo-learning { width: calc(100% - 28px); }
	.yikgo-learning-hero { padding: 20px 14px; gap: 8px; }
	.yikgo-learning-hero h1 { font-size: 22px; }
	.yikgo-learning-hero p { font-size: 12px; }
	.yikgo-learning-hero img { width: 78px; height: 85px; }
	.yikgo-learning-about { margin: 15px 0 20px; padding: 14px; gap: 10px; align-items: start; }
	.yikgo-learning-about > span { padding: 9px; }
}
