@eliceio/cdk-cli 1.7.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/README.md +18 -15
  2. package/es/commands/create/index.js +6 -3
  3. package/es/commands/create/scaffold.d.ts +1 -1
  4. package/es/commands/create/scaffold.js +1 -1
  5. package/es/commands/doctor/index.js +34 -1
  6. package/es/core/lesson-check.d.ts +7 -0
  7. package/es/core/lesson-check.js +87 -0
  8. package/es/core/templates.d.ts +2 -0
  9. package/es/core/templates.js +4 -1
  10. package/es/dev/host-page.js +5 -2
  11. package/es/dev/learner-files.d.ts +1 -1
  12. package/es/dev/learner-files.js +7 -4
  13. package/es/dev/learner-shares.d.ts +90 -0
  14. package/es/dev/learner-shares.js +282 -0
  15. package/es/dev/mock-api.d.ts +28 -0
  16. package/es/dev/mock-api.js +32 -1
  17. package/es/dev/server.d.ts +3 -0
  18. package/es/dev/server.js +22 -1
  19. package/package.json +2 -2
  20. package/skills/_shared/always.md +1 -1
  21. package/skills/_shared/references/02-design-the-material.md +10 -9
  22. package/skills/_shared/references/03-create-the-project.md +12 -11
  23. package/skills/_shared/references/05-screen-code.md +1 -0
  24. package/skills/_shared/references/08-fix-check-errors.md +1 -0
  25. package/skills/_shared/references/12-upload-with-the-material-mcp.md +2 -2
  26. package/skills/_shared/references/17-using-the-entry-template.md +44 -5
  27. package/skills/_shared/references/18-using-the-lesson-template.md +207 -0
  28. package/skills/_shared/references/19-lesson-layouts.md +2132 -0
  29. package/skills/elice-content-create/SKILL.md +4 -3
  30. package/skills/elice-content-publish/SKILL.md +3 -3
  31. package/templates/_shared/lib/cdk-mock.d.ts +16 -0
  32. package/templates/_shared/lib/cdk-mock.js +49 -0
  33. package/templates/blank/template.json +1 -1
  34. package/templates/board/README.md +15 -7
  35. package/templates/board/core/board.d.ts +13 -0
  36. package/templates/board/core/board.js +11 -1
  37. package/templates/board/core/files.d.ts +40 -0
  38. package/templates/board/core/files.js +176 -0
  39. package/templates/board/core/model.d.ts +5 -0
  40. package/templates/board/core/model.js +24 -7
  41. package/templates/board/core/settings.d.ts +2 -0
  42. package/templates/board/core/settings.js +12 -1
  43. package/templates/board/package.json +1 -1
  44. package/templates/board/screens/board.js +58 -0
  45. package/templates/board/screens/edit.js +36 -1
  46. package/templates/board/template.json +1 -1
  47. package/templates/board/ui/board.css +176 -0
  48. package/templates/board/ui/card.js +74 -1
  49. package/templates/board/ui/composer.js +169 -20
  50. package/templates/board/ui/icons.js +2 -0
  51. package/templates/board/ui/texts.js +30 -2
  52. package/templates/lesson/README.md +71 -0
  53. package/templates/lesson/commentary.txt +7 -0
  54. package/templates/lesson/core/dom.d.ts +4 -0
  55. package/templates/lesson/core/dom.js +22 -0
  56. package/templates/lesson/core/engine.d.ts +23 -0
  57. package/templates/lesson/core/engine.js +169 -0
  58. package/templates/lesson/core/interact.d.ts +2 -0
  59. package/templates/lesson/core/interact.js +429 -0
  60. package/templates/lesson/core/layout-files.d.ts +4 -0
  61. package/templates/lesson/core/layout-files.js +9 -0
  62. package/templates/lesson/core/lesson.d.ts +95 -0
  63. package/templates/lesson/core/lesson.js +609 -0
  64. package/templates/lesson/core/sample.d.ts +4 -0
  65. package/templates/lesson/core/sample.js +128 -0
  66. package/templates/lesson/edit.html +21 -0
  67. package/templates/lesson/gitignore +4 -0
  68. package/templates/lesson/index.html +22 -0
  69. package/templates/lesson/layouts/_actions.html +1 -0
  70. package/templates/lesson/layouts/_cmp.html +1 -0
  71. package/templates/lesson/layouts/_deco-corner.html +1 -0
  72. package/templates/lesson/layouts/_deco-cover.html +1 -0
  73. package/templates/lesson/layouts/_deco-section.html +1 -0
  74. package/templates/lesson/layouts/_foot.html +1 -0
  75. package/templates/lesson/layouts/_head.html +1 -0
  76. package/templates/lesson/layouts/_media.html +1 -0
  77. package/templates/lesson/layouts/agenda.html +13 -0
  78. package/templates/lesson/layouts/bar-chart.html +14 -0
  79. package/templates/lesson/layouts/cards.html +12 -0
  80. package/templates/lesson/layouts/checklist.html +12 -0
  81. package/templates/lesson/layouts/choice-list.html +13 -0
  82. package/templates/lesson/layouts/closing.html +13 -0
  83. package/templates/lesson/layouts/compare.html +12 -0
  84. package/templates/lesson/layouts/cover-dark.html +13 -0
  85. package/templates/lesson/layouts/cover.html +15 -0
  86. package/templates/lesson/layouts/figures.html +12 -0
  87. package/templates/lesson/layouts/flow.html +13 -0
  88. package/templates/lesson/layouts/how-to.html +15 -0
  89. package/templates/lesson/layouts/image-bg.html +12 -0
  90. package/templates/lesson/layouts/image-pair.html +15 -0
  91. package/templates/lesson/layouts/image-split.html +12 -0
  92. package/templates/lesson/layouts/layers.html +12 -0
  93. package/templates/lesson/layouts/objectives.html +12 -0
  94. package/templates/lesson/layouts/ox-card.html +24 -0
  95. package/templates/lesson/layouts/ox-list.html +21 -0
  96. package/templates/lesson/layouts/process.html +14 -0
  97. package/templates/lesson/layouts/profile.html +13 -0
  98. package/templates/lesson/layouts/prompt-builder.html +18 -0
  99. package/templates/lesson/layouts/quiz.html +14 -0
  100. package/templates/lesson/layouts/quote.html +12 -0
  101. package/templates/lesson/layouts/scenario-rows.html +12 -0
  102. package/templates/lesson/layouts/section.html +14 -0
  103. package/templates/lesson/layouts/simulation.html +18 -0
  104. package/templates/lesson/layouts/stat.html +14 -0
  105. package/templates/lesson/layouts/statement.html +13 -0
  106. package/templates/lesson/layouts/stats.html +12 -0
  107. package/templates/lesson/layouts/stepper.html +13 -0
  108. package/templates/lesson/layouts/table.html +12 -0
  109. package/templates/lesson/layouts/tabs.html +13 -0
  110. package/templates/lesson/layouts/text-visual.html +16 -0
  111. package/templates/lesson/layouts/timeline.html +12 -0
  112. package/templates/lesson/layouts/toggle.html +16 -0
  113. package/templates/lesson/layouts/variables.html +14 -0
  114. package/templates/lesson/layouts/venn.html +15 -0
  115. package/templates/lesson/layouts/versus.html +12 -0
  116. package/templates/lesson/metadata.json +9 -0
  117. package/templates/lesson/package.json +15 -0
  118. package/templates/lesson/public/img/sample-chat.svg +21 -0
  119. package/templates/lesson/screens/edit.js +79 -0
  120. package/templates/lesson/screens/learn.js +56 -0
  121. package/templates/lesson/styles.css +27 -0
  122. package/templates/lesson/template.json +7 -0
  123. package/templates/lesson/ui/design.css +1103 -0
  124. package/templates/lesson/ui/fonts/PretendardVariable.woff2 +0 -0
  125. package/templates/lesson/ui/learn.css +64 -0
  126. package/templates/lesson/ui/mobile.css +492 -0
  127. package/templates/lesson/ui/reset.css +6 -0
@@ -0,0 +1,64 @@
1
+ /* 키트 스타일은 layer(kit)로: 원본 디자인(design.css)이 키트 기본 스타일보다 늘 이긴다 (키트 틀 · 빈 안내 · 스테퍼는 그대로) */
2
+ @import '../lib/elice-tokens.css' layer(kit);
3
+ @import '../lib/elice-content.css' layer(kit);
4
+ @import './reset.css';
5
+ @import './design.css';
6
+ /* 좁은 화면(768px 미만)의 세로 모드: 넓은 화면에는 아무것도 바꾸지 않는다 (@media 안에만 있음) */
7
+ @import './mobile.css';
8
+
9
+ /* 학습 자료 학생 화면을 LXP 안 iframe과 키트 스테퍼에 맞춘다. ui/design.css(디자이너 원본)는 고치지 않고 여기서 덮는다.
10
+ - 쪽 넘기기 버튼 · n / N은 키트 스테퍼가 양옆 거터(--ec-nav-gutter)와 왼쪽 아래에 그린다: 원본의 좌우 버튼 · 쪽 번호는 쓰지 않음
11
+ - 슬라이드는 16:9를 유지하며 거터 안쪽 · 화면 높이 안에 맞춘다 (--u = 슬라이드 너비의 1/100)
12
+ - 좁은 화면(768px 미만)에서는 ui/mobile.css가 쪽을 세로로 풀어 쌓는다 (아래 규칙보다 뒤에 적용되도록 선택자를 더 구체적으로) */
13
+
14
+ /* Pretendard 가변 폰트 (SIL Open Font License 1.1, ui/fonts/). 외부 글꼴은 콘텐츠 CSP가 막아 zip에 넣는다 */
15
+ @font-face {
16
+ font-family: 'Pretendard Variable';
17
+ font-weight: 45 920;
18
+ font-style: normal;
19
+ font-display: swap;
20
+ src: url('./fonts/PretendardVariable.woff2') format('woff2-variations');
21
+ }
22
+
23
+ :root {
24
+ /* 슬라이드 좌우는 스테퍼 거터만큼, 위아래는 n / N 자리만큼 비운다 */
25
+ --safe: var(--ec-nav-gutter);
26
+ --bar: 64px;
27
+ }
28
+ html:has(body.lesson-learn),
29
+ body.lesson-learn {
30
+ background: #eeedf2;
31
+ }
32
+ body.lesson-learn {
33
+ padding: 0;
34
+ }
35
+ body.lesson-learn main#app {
36
+ display: block;
37
+ max-width: none;
38
+ margin: 0;
39
+ }
40
+ /* 슬라이드를 남는 높이의 가운데에 (스테퍼 틀 아래 여백 40px은 n / N 자리) */
41
+ #lesson {
42
+ min-height: calc(100dvh - 40px);
43
+ padding: 12px 0 0;
44
+ }
45
+ /* 키트 스테퍼가 보이는 단계의 hidden을 끈다. 원본은 .is-active로 하나만 보여서 learn.js가 같이 붙인다 */
46
+ #lesson .slide[hidden] {
47
+ display: none !important;
48
+ }
49
+ /* 쪽 번호는 키트 스테퍼의 n / N이 맡는다 */
50
+ #lesson .slide-page {
51
+ display: none;
52
+ }
53
+
54
+ @media (max-width: 511.98px) {
55
+ /* 휴대폰: 스테퍼 버튼 줄이 화면 아래 가운데에 뜬다. 좌우 거터 없이 폭에 맞춘다 */
56
+ :root {
57
+ --safe: 8px;
58
+ --bar: var(--ec-nav-reserve-mobile);
59
+ }
60
+ #lesson {
61
+ min-height: 0;
62
+ padding: 8px 0 0;
63
+ }
64
+ }
@@ -0,0 +1,492 @@
1
+ /* 좁은 화면(콘텐츠 폭 768px 미만: 휴대폰 · 세로 태블릿)의 "세로 모드". ui/learn.css가 원본 디자인(design.css) 다음에 불러온다.
2
+ 넓은 화면은 원본 16:9 쪽 그대로다: 이 파일의 규칙은 모두 아래 @media 안에만 있다 (원본 design.css는 고치지 않음).
3
+ - 쪽을 통째로 줄이지 않는다: 16:9 고정 크기를 끄고 폭 100% · 높이 자동, 넘치면 화면이 세로로 스크롤된다
4
+ - 글씨는 PC 화면과 비슷한 크기(--u 10px = 1280px 창의 슬라이드와 같은 비율, 본문 17px), 제목만 한 단계 작게
5
+ - 여러 열 · 좌우 배치는 위아래로, 장식 그림은 숨김, 누르는 것은 44px 이상, 표는 가로 스크롤
6
+ 기준 폭 768px: 키트 스테퍼가 512~767px에서 양옆 112px씩(--ec-nav-gutter)을 비워 16:9 쪽이 288~543px 폭(본문 5~9px)이 되고,
7
+ 키트의 split 레이아웃도 768px 미만에서 한 열로 바뀐다 (lib/elice-content.css의 같은 기준).
8
+ 디자이너 휴대폰 규칙이 정해지면 이 파일만 바꾼다 */
9
+
10
+ @media (max-width: 767.98px) {
11
+ :root {
12
+ --u: 10px;
13
+ --m-pad: 20px;
14
+ }
15
+
16
+ /* ---------- 쪽 틀: 고정 16:9 → 폭 100% · 높이 자동 ---------- */
17
+ body.lesson-learn #lesson {
18
+ display: block;
19
+ min-height: 0;
20
+ padding: 8px var(--safe) 0;
21
+ }
22
+ #lesson .slide {
23
+ width: 100%;
24
+ height: auto;
25
+ min-height: calc(100dvh - var(--bar) - 16px);
26
+ font-size: 17px;
27
+ padding: 24px var(--m-pad) 28px;
28
+ gap: 16px;
29
+ border-radius: 0;
30
+ }
31
+ /* 문서형(제목 고정 · 머리글 숨김) 쪽의 위 여백 */
32
+ #lesson[data-title='fixed'][data-header='hide'] .slide:not(.slide--dark):not([data-layout^='cover']):not([data-layout='section']):not([data-layout='closing']):not([data-layout='image-bg']):not([data-layout='quote']) {
33
+ padding-top: 24px;
34
+ }
35
+ #lesson[data-header='hide'] .slide:not([data-layout^='cover']):not([data-layout='section']):not([data-layout='closing']):not([data-layout='image-bg']):not([data-layout='quote']) {
36
+ padding-top: 24px;
37
+ }
38
+
39
+ /* 내용은 위에서부터 차례로 (남는 높이의 가운데 정렬은 하지 않는다) */
40
+ #lesson .body,
41
+ #lesson .oxl,
42
+ #lesson .oxc,
43
+ #lesson .builder,
44
+ #lesson .toggle,
45
+ #lesson .stepper,
46
+ #lesson .sim,
47
+ #lesson .quiz,
48
+ #lesson .tabs-body {
49
+ flex: none;
50
+ justify-content: flex-start;
51
+ align-content: flex-start;
52
+ padding-top: 0;
53
+ padding-bottom: 0;
54
+ }
55
+
56
+ /* ---------- 머리글 · 제목 ---------- */
57
+ /* 머리글(태그)은 오른쪽 위에 떠 있지 않고 제목 위 한 줄로. 보일 것이 없으면 자리도 비우지 않는다 */
58
+ #lesson[data-header='hide'] .slide .slide-head {
59
+ position: static !important;
60
+ justify-content: flex-end;
61
+ }
62
+ #lesson[data-header='hide']:not([data-hright='title']) .slide:not([data-layout^='cover']):not([data-layout='section']):not([data-layout='closing']):not([data-layout='image-bg']):not([data-layout='quote']) .slide-head:not(:has(.tag)) {
63
+ display: none;
64
+ }
65
+ #lesson .slide-head .tag {
66
+ max-width: 100%;
67
+ font-size: 13px !important;
68
+ }
69
+ /* 제목: 한 단계 작게, 높이 · 오른쪽 비움(태그 자리)은 풀고 위 라벨(eyebrow)은 제목 위에 차례로 */
70
+ #lesson .title {
71
+ font-size: 24px;
72
+ }
73
+ #lesson .slide .titlebox {
74
+ height: auto !important;
75
+ padding: 0 !important;
76
+ gap: 6px;
77
+ }
78
+ #lesson[data-title='fixed'] .slide:not([data-layout^='cover']):not([data-layout='section']):not([data-layout='closing']):not([data-layout='image-bg']):not([data-layout='quote']) .titlebox {
79
+ flex-direction: column !important;
80
+ align-items: flex-start !important;
81
+ }
82
+ #lesson[data-title='fixed'] .slide:not([data-layout^='cover']):not([data-layout='section']):not([data-layout='closing']):not([data-layout='image-bg']):not([data-layout='quote']) .titlebox .title {
83
+ font-size: 22px;
84
+ min-height: 0;
85
+ padding: 0;
86
+ }
87
+ #lesson[data-title='fixed'] .titlebox .eyebrow {
88
+ position: static;
89
+ font-size: 13px;
90
+ white-space: normal;
91
+ }
92
+ #lesson .eyebrow {
93
+ font-size: 12px;
94
+ }
95
+ #lesson .title--xl {
96
+ font-size: 34px;
97
+ }
98
+ #lesson .subtitle {
99
+ font-size: 18px;
100
+ }
101
+ #lesson .meta {
102
+ font-size: 14px;
103
+ }
104
+
105
+ /* ---------- 여러 열 → 한 열 ---------- */
106
+ #lesson .grid,
107
+ #lesson .cols-2,
108
+ #lesson .cols-3,
109
+ #lesson .cols-4,
110
+ #lesson .cols-n,
111
+ #lesson .split,
112
+ #lesson .howto,
113
+ #lesson .stat-grid,
114
+ #lesson .stats,
115
+ #lesson .vchart-wrap,
116
+ #lesson .venn-wrap,
117
+ #lesson .profile,
118
+ #lesson .figures,
119
+ #lesson .pair,
120
+ #lesson .varform,
121
+ #lesson .imgbg-cards,
122
+ #lesson .sim-top,
123
+ #lesson .sim-mlist,
124
+ #lesson .oxc-tiles--c,
125
+ #lesson .stp-panel.is-on,
126
+ #lesson .tg-panel.is-on {
127
+ grid-template-columns: minmax(0, 1fr);
128
+ grid-template-rows: none;
129
+ }
130
+ #lesson .split,
131
+ #lesson .howto,
132
+ #lesson .profile {
133
+ flex: none;
134
+ gap: 20px;
135
+ }
136
+ /* 글과 그림: 늘 글 먼저 (flip은 넓은 화면의 좌우만 바꾼다) */
137
+ #lesson .split.flip .split-text {
138
+ order: 0;
139
+ }
140
+ #lesson .panel {
141
+ max-height: none;
142
+ }
143
+
144
+ /* ---------- 장식 숨김 ---------- */
145
+ #lesson .deco-corner,
146
+ #lesson .deco-section,
147
+ #lesson .cover-art:not(:has(img)) {
148
+ display: none !important;
149
+ }
150
+
151
+ /* ---------- 표지 ---------- */
152
+ #lesson .cover-grid {
153
+ flex: none;
154
+ grid-template-columns: minmax(0, 1fr);
155
+ gap: 24px;
156
+ }
157
+ #lesson .cover-art img {
158
+ max-height: 220px;
159
+ }
160
+ #lesson .cover-dark .title {
161
+ max-width: none;
162
+ }
163
+ #lesson .chapters {
164
+ grid-template-columns: repeat(2, minmax(0, 1fr));
165
+ margin-top: 16px;
166
+ gap: 12px 16px;
167
+ }
168
+ #lesson .chapters li {
169
+ font-size: 14px;
170
+ }
171
+
172
+ /* ---------- 섹션 ---------- */
173
+ #lesson .slide--section .slide-head {
174
+ position: static;
175
+ }
176
+ #lesson .section-no {
177
+ right: var(--m-pad);
178
+ top: 16px;
179
+ font-size: 96px;
180
+ }
181
+ #lesson .section-body {
182
+ margin-top: 0;
183
+ max-width: none;
184
+ }
185
+ #lesson .section-body .title {
186
+ font-size: 32px;
187
+ }
188
+ #lesson .section-body .sub {
189
+ font-size: 17px;
190
+ }
191
+ #lesson .section-line {
192
+ width: 96px;
193
+ height: 5px;
194
+ }
195
+
196
+ /* ---------- 한 문장 ---------- */
197
+ #lesson .statement-title {
198
+ max-width: none;
199
+ }
200
+ #lesson [data-layout='statement'] .body {
201
+ gap: 20px !important;
202
+ padding-top: 0 !important;
203
+ padding-bottom: 0;
204
+ }
205
+ #lesson .body:has(.statement-fig):has(.chip:nth-child(4)) {
206
+ display: flex;
207
+ flex-direction: column;
208
+ }
209
+ #lesson .statement-fig {
210
+ width: 100% !important;
211
+ }
212
+ #lesson .conclusion {
213
+ margin-top: 0;
214
+ font-size: 19px;
215
+ }
216
+
217
+ /* ---------- 카드 · 비교 · 대결 ---------- */
218
+ #lesson .cmp .shot {
219
+ max-height: 200px;
220
+ }
221
+ #lesson .slide--versus {
222
+ grid-template-columns: minmax(0, 1fr);
223
+ padding: 0 !important;
224
+ }
225
+ #lesson .vs-side {
226
+ padding: 28px var(--m-pad);
227
+ }
228
+ #lesson .vs-side .title {
229
+ font-size: 24px;
230
+ }
231
+ #lesson .vs-big {
232
+ font-size: 30px;
233
+ }
234
+ /* VS 배지: 두 면 사이 경계에 (위 면 아래 끝에 걸침) */
235
+ #lesson .vs-badge {
236
+ position: relative;
237
+ left: auto;
238
+ top: auto;
239
+ transform: none;
240
+ justify-self: center;
241
+ width: 52px;
242
+ height: 52px;
243
+ margin: -26px 0;
244
+ font-size: 15px;
245
+ }
246
+
247
+ /* ---------- 프로세스: 단계 묶음 띠는 위에 칩 줄로, 단계 카드는 한 줄에 하나 ---------- */
248
+ #lesson .process {
249
+ display: flex;
250
+ flex-wrap: wrap;
251
+ gap: 10px;
252
+ }
253
+ #lesson .process .phase {
254
+ flex: 0 0 auto;
255
+ padding: 0.45em 0.9em;
256
+ }
257
+ #lesson .process .step-card {
258
+ flex: 1 1 100%;
259
+ min-height: 0;
260
+ }
261
+
262
+ /* ---------- 흐름 · 시나리오 줄 · 마무리: 가로 화살표 → 세로 ---------- */
263
+ #lesson .flow,
264
+ #lesson .tg-flow {
265
+ flex-direction: column;
266
+ align-items: stretch;
267
+ gap: 6px;
268
+ }
269
+ #lesson .flow .node,
270
+ #lesson .tg-flow .tg-node {
271
+ flex: none;
272
+ }
273
+ #lesson .flow .arrow,
274
+ #lesson .tg-flow .arrow,
275
+ #lesson .srow > .arrow {
276
+ align-self: center;
277
+ transform: rotate(90deg);
278
+ line-height: 1;
279
+ }
280
+ #lesson[data-layout='flow'] .body,
281
+ #lesson [data-layout='flow'] .body {
282
+ padding-bottom: 0;
283
+ }
284
+ #lesson .srow {
285
+ grid-template-columns: minmax(0, 1fr);
286
+ gap: 6px;
287
+ }
288
+
289
+ /* ---------- 타임라인: 가로 줄 → 왼쪽 세로 줄 ---------- */
290
+ #lesson .tl {
291
+ grid-template-columns: minmax(0, 1fr);
292
+ gap: 16px;
293
+ }
294
+ #lesson .tl li {
295
+ padding-top: 0;
296
+ padding-left: 1.8em;
297
+ }
298
+ #lesson .tl li::before {
299
+ top: 0.9em;
300
+ bottom: -16px;
301
+ left: 0.38em;
302
+ right: auto;
303
+ width: 2px;
304
+ height: auto;
305
+ }
306
+
307
+ /* ---------- 숫자 · 차트 · 표 ---------- */
308
+ #lesson .bignum {
309
+ font-size: 56px;
310
+ }
311
+ #lesson .stat-item .num,
312
+ #lesson .takeaway .big {
313
+ font-size: 44px;
314
+ }
315
+ #lesson .tbl-wrap {
316
+ overflow-x: auto;
317
+ -webkit-overflow-scrolling: touch;
318
+ }
319
+ #lesson .tbl th,
320
+ #lesson .tbl td {
321
+ min-width: 7em;
322
+ }
323
+ #lesson .layer {
324
+ grid-template-columns: minmax(0, 1fr);
325
+ gap: 6px;
326
+ }
327
+ #lesson .layer-items {
328
+ grid-template-columns: repeat(auto-fit, minmax(7em, 1fr));
329
+ }
330
+ #lesson .quote-body {
331
+ max-width: none;
332
+ }
333
+ #lesson .quote-body .text {
334
+ font-size: 28px;
335
+ }
336
+ #lesson .quote-body .mark {
337
+ font-size: 56px;
338
+ }
339
+
340
+ /* ---------- 이미지 분할 · 배경 이미지 · 인물: 그림을 위에, 글을 아래에 ---------- */
341
+ #lesson .slide--imgsplit,
342
+ #lesson .slide--imgsplit.is-left {
343
+ padding: 0 0 28px;
344
+ }
345
+ #lesson .imgsplit-img {
346
+ position: relative;
347
+ order: -1;
348
+ width: 100%;
349
+ height: 220px;
350
+ inset: auto;
351
+ }
352
+ #lesson .imgsplit-text,
353
+ #lesson .slide--imgsplit.is-left .imgsplit-text {
354
+ width: auto;
355
+ flex: none;
356
+ margin: 0;
357
+ padding: 0 var(--m-pad);
358
+ }
359
+ #lesson .slide--imgbg {
360
+ display: flex;
361
+ flex-direction: column;
362
+ }
363
+ #lesson .bg-media {
364
+ position: relative;
365
+ height: 220px;
366
+ flex: none;
367
+ }
368
+ #lesson .bg-media .ph {
369
+ inset: 16px;
370
+ }
371
+ #lesson .scrim {
372
+ display: none;
373
+ }
374
+ #lesson .imgbg-text {
375
+ width: 100%;
376
+ height: auto;
377
+ padding: 24px var(--m-pad) 28px;
378
+ }
379
+ #lesson .portrait {
380
+ max-width: 220px;
381
+ }
382
+
383
+ /* ---------- 따라 하기 · 복사 박스 ---------- */
384
+ #lesson .steps li {
385
+ padding-left: 36px;
386
+ min-height: 28px;
387
+ }
388
+ #lesson .steps li::before {
389
+ width: 26px;
390
+ height: 26px;
391
+ }
392
+ #lesson .codebox {
393
+ min-height: 56px;
394
+ padding-right: 5.6em;
395
+ }
396
+
397
+ /* ---------- 실습: 프롬프트 빌더 · 탭 · 토글 · 단계 칩 · 시뮬레이션 ---------- */
398
+ #lesson .builder,
399
+ #lesson .builder.has-side,
400
+ #lesson .builder:not(.has-side):not(:has(.bgroup:nth-child(4))),
401
+ #lesson .builder:not(.has-side):not(:has(.bopts > .opt:nth-child(5))) {
402
+ display: flex;
403
+ flex-direction: column;
404
+ gap: 20px;
405
+ }
406
+ #lesson .builder .bout {
407
+ position: static;
408
+ }
409
+ #lesson .tabs-bar {
410
+ overflow-x: auto;
411
+ flex-wrap: nowrap;
412
+ }
413
+ #lesson .tab {
414
+ flex: none;
415
+ white-space: nowrap;
416
+ }
417
+ #lesson .tg-bar {
418
+ align-self: stretch;
419
+ display: flex;
420
+ }
421
+ #lesson .tg-btn {
422
+ flex: 1 1 0;
423
+ padding-inline: 0.8em;
424
+ }
425
+ #lesson .stp-panels {
426
+ flex: none;
427
+ }
428
+ #lesson .stp-arrow {
429
+ display: none;
430
+ }
431
+
432
+ /* ---------- 퀴즈 ---------- */
433
+ #lesson .oxc-card {
434
+ padding: 18px 16px;
435
+ border-radius: 16px;
436
+ }
437
+ #lesson .oxt {
438
+ height: 88px;
439
+ }
440
+ #lesson .oxt--c {
441
+ height: auto;
442
+ min-height: 52px;
443
+ }
444
+ #lesson .oxl-row {
445
+ padding: 12px 14px;
446
+ }
447
+ /* 객관식 목록: 문항 아래에 보기 버튼 줄 (길면 다음 줄로) */
448
+ #lesson [data-layout='choice-list'] .oxl-row {
449
+ grid-template-columns: minmax(0, 1fr);
450
+ }
451
+ #lesson .oxl-btns {
452
+ flex-wrap: wrap;
453
+ }
454
+
455
+ /* ---------- 다시 하기 · 확인 버튼: 쪽 아래 오른쪽에 떠 있지 않고 내용 다음 줄에 ---------- */
456
+ #lesson .slide-actions {
457
+ position: static;
458
+ justify-content: flex-end;
459
+ flex-wrap: wrap;
460
+ margin-top: 4px;
461
+ }
462
+ #lesson .act {
463
+ font-size: 15px;
464
+ }
465
+
466
+ /* ---------- 누르는 것: 44px 이상 ---------- */
467
+ #lesson .act,
468
+ #lesson .oxb,
469
+ #lesson .opt,
470
+ #lesson .tab,
471
+ #lesson .tg-btn,
472
+ #lesson .stp,
473
+ #lesson .sim-scene,
474
+ #lesson .copy,
475
+ #lesson .checklist label,
476
+ #lesson .varfield input,
477
+ #lesson .bcustom,
478
+ #lesson .qopt {
479
+ min-height: 44px;
480
+ }
481
+ #lesson .oxb,
482
+ #lesson .copy {
483
+ min-width: 52px;
484
+ }
485
+ #lesson .sim-ctl input[type='range'] {
486
+ height: 44px;
487
+ }
488
+ #lesson .checklist input {
489
+ width: 28px;
490
+ height: 28px;
491
+ }
492
+ }
@@ -0,0 +1,6 @@
1
+ /* 키트 기본 스타일(lib/elice-content.css의 button · input · textarea · select)이 슬라이드 안 요소에 들어오지 않게
2
+ 브라우저 기본값으로 되돌린다. 원본 디자인(ui/design.css)은 키트 없이 브라우저 기본값 위에서 만들어졌다.
3
+ ui/learn.css가 키트(layer kit) 다음, design.css 앞에 불러온다: design.css의 규칙이 이 되돌림보다 이긴다 */
4
+ :where(#lesson) :where(button, input, textarea, select) {
5
+ all: revert;
6
+ }