@eliceio/cdk-cli 1.4.0 → 1.5.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 (79) hide show
  1. package/README.md +17 -16
  2. package/es/cli.js +1 -1
  3. package/es/commands/create/index.js +1 -0
  4. package/es/commands/create/scaffold.d.ts +1 -1
  5. package/es/commands/create/scaffold.js +1 -1
  6. package/es/core/config.d.ts +36 -0
  7. package/es/core/config.js +234 -6
  8. package/es/core/quiz-check.js +123 -4
  9. package/es/dev/grading.d.ts +26 -4
  10. package/es/dev/grading.js +66 -11
  11. package/es/dev/mock-api.d.ts +6 -1
  12. package/es/dev/mock-api.js +45 -6
  13. package/es/rules/answers.d.ts +1 -0
  14. package/es/rules/answers.js +8 -0
  15. package/es/rules.json.js +1 -1
  16. package/package.json +2 -2
  17. package/rules.json +1 -1
  18. package/skills/_shared/always.md +1 -1
  19. package/skills/_shared/references/02-design-the-material.md +8 -7
  20. package/skills/_shared/references/03-create-the-project.md +10 -9
  21. package/skills/_shared/references/12-upload-with-the-material-mcp.md +5 -5
  22. package/skills/_shared/references/16-using-the-survey-template.md +158 -0
  23. package/skills/elice-content-create/SKILL.md +2 -2
  24. package/skills/elice-content-edit/SKILL.md +2 -2
  25. package/skills/elice-content-publish/SKILL.md +1 -1
  26. package/templates/_shared/lib/cdk-mock.d.ts +22 -3
  27. package/templates/_shared/lib/cdk-mock.js +78 -11
  28. package/templates/_shared/lib/elice-content.d.ts +17 -1
  29. package/templates/_shared/lib/elice-content.js +47 -5
  30. package/templates/blank/template.json +1 -1
  31. package/templates/document/template.json +1 -1
  32. package/templates/quiz/README.md +26 -1
  33. package/templates/quiz/core/behaviors.d.ts +5 -0
  34. package/templates/quiz/core/behaviors.js +16 -1
  35. package/templates/quiz/core/model.d.ts +78 -1
  36. package/templates/quiz/core/model.js +219 -4
  37. package/templates/quiz/screens/edit.js +244 -55
  38. package/templates/quiz/screens/learn.js +137 -27
  39. package/templates/quiz/styles.css +258 -5
  40. package/templates/quiz/template.json +1 -1
  41. package/templates/quiz/ui/templates/edit.d.ts +1 -0
  42. package/templates/quiz/ui/templates/edit.js +67 -8
  43. package/templates/quiz/ui/templates/page.js +34 -0
  44. package/templates/quiz/ui/templates/text.js +15 -2
  45. package/templates/quiz/ui/texts.js +61 -0
  46. package/templates/steps/template.json +1 -1
  47. package/templates/survey/README.md +112 -0
  48. package/templates/survey/commentary.txt +2 -0
  49. package/templates/survey/core/behaviors.d.ts +14 -0
  50. package/templates/survey/core/behaviors.js +115 -0
  51. package/templates/survey/core/dom.d.ts +13 -0
  52. package/templates/survey/core/dom.js +83 -0
  53. package/templates/survey/core/editor.d.ts +80 -0
  54. package/templates/survey/core/editor.js +720 -0
  55. package/templates/survey/core/markdown.d.ts +21 -0
  56. package/templates/survey/core/markdown.js +298 -0
  57. package/templates/survey/core/model.d.ts +83 -0
  58. package/templates/survey/core/model.js +209 -0
  59. package/templates/survey/core/rich-text.d.ts +18 -0
  60. package/templates/survey/core/rich-text.js +469 -0
  61. package/templates/survey/edit.html +26 -0
  62. package/templates/survey/gitignore +4 -0
  63. package/templates/survey/index.html +26 -0
  64. package/templates/survey/metadata.json +9 -0
  65. package/templates/survey/package.json +13 -0
  66. package/templates/survey/screens/edit.js +345 -0
  67. package/templates/survey/screens/learn.js +100 -0
  68. package/templates/survey/styles.css +1264 -0
  69. package/templates/survey/template.json +6 -0
  70. package/templates/survey/ui/templates/edit.d.ts +27 -0
  71. package/templates/survey/ui/templates/edit.js +656 -0
  72. package/templates/survey/ui/templates/index.d.ts +3 -0
  73. package/templates/survey/ui/templates/index.js +3 -0
  74. package/templates/survey/ui/templates/learn.js +147 -0
  75. package/templates/survey/ui/templates/page.js +19 -0
  76. package/templates/survey/ui/texts.d.ts +3 -0
  77. package/templates/survey/ui/texts.js +116 -0
  78. package/templates/survey/ui/theme.css +42 -0
  79. package/templates/video/template.json +10 -3
@@ -0,0 +1,1264 @@
1
+ /* 설문 앱 스타일. 퀴즈 템플릿 styles.css에서 설문이 쓰는 것만 남기고(정답 · 결과 · 순서 · 그룹 표시는 뺌) 아래 "설문" 절을 더했습니다.
2
+ 색 · 간격 · 모서리 값은 ui/theme.css(그 아래는 EDS 토큰 lib/elice-tokens.css)에서 바꿉니다 */
3
+
4
+ /* ---------- 학생 ---------- */
5
+ /* 학생 화면 틀 (index.html body.qz-page): 제출 바는 화면 아래 전체 너비, 내용은 가운데 720px */
6
+ body.qz-page {
7
+ display: flex;
8
+ flex-direction: column;
9
+ min-height: 100dvh;
10
+ padding: 24px 16px 0;
11
+ }
12
+ body.qz-page main {
13
+ flex: 1;
14
+ width: 100%;
15
+ padding-bottom: 24px;
16
+ }
17
+ body.qz-page .ec-result {
18
+ width: 100%;
19
+ }
20
+ body.qz-page .ec-submitbar {
21
+ z-index: 8;
22
+ max-width: none;
23
+ margin: 0 -16px;
24
+ padding: 12px max(16px, 50% - 360px);
25
+ }
26
+ /* 불러오는 자리 (ui/templates/page.js loading · HTML의 #app 안): 질문 막대 + 보기 막대 넷.
27
+ 0.2초 기다렸다 나타나 빨리 열리면 보이지 않고, 막대는 2초마다 천천히 옅어졌다 돌아온다 */
28
+ .qz-skeleton {
29
+ display: flex;
30
+ flex-direction: column;
31
+ gap: var(--qz-list-gap);
32
+ opacity: 0;
33
+ animation: qz-sk-show 0s linear 0.2s forwards;
34
+ }
35
+ @keyframes qz-sk-show {
36
+ to {
37
+ opacity: 1;
38
+ }
39
+ }
40
+ .qz-sk {
41
+ display: block;
42
+ border-radius: var(--qz-radius);
43
+ background: color-mix(in srgb, var(--eds-text-primary) 11%, transparent);
44
+ animation: qz-sk-pulse 2s ease-in-out 0.5s infinite;
45
+ }
46
+ .qz-sk-title {
47
+ width: 70%;
48
+ height: 24px;
49
+ margin-bottom: 8px;
50
+ border-radius: 4px;
51
+ }
52
+ .qz-sk-option {
53
+ height: 52px;
54
+ }
55
+ @keyframes qz-sk-pulse {
56
+ 0%,
57
+ 100% {
58
+ opacity: 1;
59
+ }
60
+ 50% {
61
+ opacity: 0.4;
62
+ }
63
+ }
64
+ @media (prefers-reduced-motion: reduce) {
65
+ .qz-sk {
66
+ animation: none;
67
+ }
68
+ }
69
+ /* 불러오는 자리에서 내용으로 바뀔 때 0.15초 나타나기 */
70
+ .qz-enter {
71
+ animation: qz-enter 0.15s ease-out;
72
+ }
73
+ @keyframes qz-enter {
74
+ from {
75
+ opacity: 0;
76
+ }
77
+ }
78
+ @media (prefers-reduced-motion: reduce) {
79
+ .qz-enter {
80
+ animation: none;
81
+ }
82
+ }
83
+ /* 한국어 문장이 단어 중간에서 줄바꿈되지 않게 */
84
+ .qz-question-title,
85
+ .qz-option > span {
86
+ overflow-wrap: anywhere;
87
+ word-break: keep-all;
88
+ }
89
+ .qz-muted {
90
+ color: var(--ec-muted);
91
+ font-size: var(--eds-fs-caption);
92
+ margin: 0;
93
+ }
94
+ .qz-question {
95
+ margin: 0;
96
+ padding: var(--qz-card-padding);
97
+ border: 1px solid var(--qz-question-border);
98
+ border-radius: var(--qz-radius-card);
99
+ background: var(--qz-surface);
100
+ display: flex;
101
+ flex-direction: column;
102
+ gap: var(--qz-card-gap);
103
+ min-width: 0;
104
+ }
105
+ /* EDS subtitle2: 18px / 800 / 1.5. legend를 테두리 위가 아니라 카드 안에 두려고 float */
106
+ .qz-question-head {
107
+ float: left;
108
+ width: 100%;
109
+ display: flex;
110
+ flex-wrap: wrap;
111
+ align-items: center;
112
+ gap: 8px;
113
+ padding: 0;
114
+ font-size: var(--eds-fs-subtitle2);
115
+ line-height: var(--eds-lh-subtitle2);
116
+ font-weight: var(--eds-fw-extrabold);
117
+ }
118
+ .qz-markdown {
119
+ font-size: var(--eds-fs-body1);
120
+ line-height: var(--eds-lh-body1);
121
+ overflow-wrap: anywhere;
122
+ }
123
+ .qz-markdown p {
124
+ margin: 0 0 8px;
125
+ }
126
+ .qz-markdown code {
127
+ padding: 0 4px;
128
+ border-radius: 4px;
129
+ background: var(--qz-surface-gray);
130
+ }
131
+ .qz-markdown pre {
132
+ background: var(--qz-surface-gray);
133
+ color: var(--eds-text-primary);
134
+ padding: 12px 16px;
135
+ border-radius: var(--qz-radius);
136
+ overflow-x: auto;
137
+ }
138
+ .qz-passage {
139
+ color: var(--ec-muted);
140
+ }
141
+
142
+ /* 보기 카드: 간격 8px · 여백 16px · 모서리 12px · 회색 면(테두리 없음),
143
+ hover action.hover, checked = primary.opacity03 면 (값은 ui/theme.css --qz-option-*) */
144
+ .qz-options {
145
+ display: flex;
146
+ flex-direction: column;
147
+ gap: var(--qz-list-gap);
148
+ }
149
+ .qz-option {
150
+ display: flex;
151
+ align-items: center;
152
+ gap: var(--qz-option-gap);
153
+ padding: var(--qz-option-padding);
154
+ border: 1px solid var(--qz-option-border);
155
+ border-radius: var(--qz-option-radius);
156
+ background: var(--qz-option-bg);
157
+ font-size: var(--eds-fs-body1);
158
+ cursor: pointer;
159
+ min-height: 44px;
160
+ transition:
161
+ background-color 150ms ease-in-out,
162
+ border-color 150ms ease-in-out;
163
+ }
164
+ .qz-option:hover {
165
+ background: var(--qz-option-hover-bg);
166
+ }
167
+ .qz-option:has(input:checked) {
168
+ border-color: var(--qz-option-checked-border);
169
+ outline: 1px solid var(--qz-option-checked-border);
170
+ background: var(--qz-option-checked-bg);
171
+ }
172
+ .qz-option:has(input:checked):hover {
173
+ background: var(--qz-option-checked-hover-bg);
174
+ }
175
+ .qz-option input {
176
+ flex: none;
177
+ width: 18px;
178
+ height: 18px;
179
+ margin: 0;
180
+ accent-color: var(--qz-accent);
181
+ }
182
+ /* 복수 선택 체크박스: 20px, 테두리 text.tertiary(흰 바탕 대비 3:1 이상), 고르면 primary 바탕에 흰 체크 */
183
+ .qz-option input[type='checkbox'] {
184
+ appearance: none;
185
+ width: 20px;
186
+ height: 20px;
187
+ padding: 0;
188
+ border: 2px solid var(--eds-text-tertiary);
189
+ border-radius: 4px;
190
+ background: var(--qz-surface) center / 14px 14px no-repeat;
191
+ cursor: inherit;
192
+ }
193
+ .qz-option input[type='checkbox']:checked {
194
+ border-color: var(--qz-accent);
195
+ background-color: var(--qz-accent);
196
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
197
+ }
198
+ .qz-option input[type='checkbox']:disabled:not(:checked) {
199
+ border-color: var(--eds-action-disabled);
200
+ }
201
+ .qz-option input[type='checkbox']:focus-visible {
202
+ outline: 2px solid var(--qz-accent);
203
+ outline-offset: 2px;
204
+ }
205
+ .qz-question:disabled .qz-option {
206
+ cursor: default;
207
+ }
208
+ .qz-question:disabled .qz-option:hover {
209
+ background: var(--qz-option-bg);
210
+ }
211
+ .qz-text-field {
212
+ display: flex;
213
+ flex-direction: column;
214
+ gap: 6px;
215
+ }
216
+ .qz-text {
217
+ min-height: 12rem;
218
+ resize: vertical;
219
+ }
220
+
221
+ /* ---------- 편집 ---------- */
222
+ /* 편집 화면의 공용 모양(회색 바탕 · 흰 저장 바 · 카드 · 밑줄 칸 · 섹션 · "+ 추가" 열기 버튼 · 토글 칩 · 보기 줄 · 정답 표시 ·
223
+ 추가 버튼 · ⓘ 안내 · 스낵바)은 키트 lib/elice-content.css "편집 화면" 절이 그린다: edit.html의 <body class="ec-edit-page">와
224
+ ui/templates/edit.js가 qe-*와 함께 붙이는 .ec-* 클래스. 여기에는 퀴즈에만 있는 것: 라벨 있는 칸 · 정답 오류 ·
225
+ 그룹 분류 · 순서 맞추기 편집판, 그리고 퀴즈만 키트와 다르게 그리는 곳(연주님 퀴즈 수정본) */
226
+
227
+ /* 퀴즈만: 저장 바는 페이지와 같은 회색 바탕 (키트 기본은 흰 바) */
228
+ body.ec-edit-page .ec-submitbar {
229
+ background: var(--ec-edit-page-bg);
230
+ }
231
+ /* 퀴즈만: "+ 문항 추가"는 강조색 윤곽선 버튼 (테두리 강조색 50%, 높이 40px). 키트 기본은 회색 점선 */
232
+ button.qe-add-question {
233
+ min-height: 0;
234
+ padding: 7px 15px;
235
+ border: 1px solid color-mix(in srgb, var(--qz-accent) 50%, transparent);
236
+ border-radius: 8px;
237
+ background: none;
238
+ color: var(--qz-accent);
239
+ font-size: 14px;
240
+ line-height: 24px;
241
+ font-weight: var(--eds-fw-semibold);
242
+ }
243
+ @media (hover: hover) {
244
+ button.qe-add-question:hover {
245
+ border-color: var(--qz-accent);
246
+ background: var(--eds-primary-opacity01);
247
+ color: var(--qz-accent);
248
+ }
249
+ }
250
+ button.qe-add-question:focus-visible,
251
+ button.qe-add-question:active {
252
+ background: color-mix(in srgb, var(--qz-accent) 30%, transparent);
253
+ }
254
+ button.qe-add-question:disabled {
255
+ border-color: var(--eds-surface-border);
256
+ background: none;
257
+ color: var(--eds-action-disabled);
258
+ }
259
+ /* ----- 퀴즈만: 연주님 최종 수정본 (편집 화면) ----- */
260
+ /* 카드 머리 "문항 N"은 회색 글자 */
261
+ .qe-card-head > strong {
262
+ color: var(--eds-text-secondary);
263
+ }
264
+ /* 유형 고르기: 회색 알약 버튼 (유형 아이콘 · 이름 · ∨). 누르면 아래에 목록(.qe-menu) */
265
+ .qe-card-head button.qe-type {
266
+ display: inline-flex;
267
+ align-items: center;
268
+ gap: 6px;
269
+ flex: 0 1 auto;
270
+ min-width: 0;
271
+ min-height: 0;
272
+ margin-right: auto;
273
+ padding: 5px 12px;
274
+ border: 0;
275
+ border-radius: 6px;
276
+ background: var(--qz-surface-muted);
277
+ color: var(--eds-text-primary);
278
+ font-size: 13px;
279
+ font-weight: var(--eds-fw-semibold);
280
+ line-height: 22px;
281
+ cursor: pointer;
282
+ }
283
+ .qe-type svg {
284
+ flex: none;
285
+ }
286
+ .qe-type-label {
287
+ min-width: 0;
288
+ overflow: hidden;
289
+ text-overflow: ellipsis;
290
+ white-space: nowrap;
291
+ }
292
+ @media (hover: hover) {
293
+ .qe-card-head button.qe-type:hover {
294
+ background: linear-gradient(var(--eds-action-hover), var(--eds-action-hover)), var(--qz-surface-muted);
295
+ }
296
+ }
297
+ .qe-card-head button.qe-type:focus-visible,
298
+ .qe-card-head button.qe-type:active,
299
+ .qe-card-head button.qe-type[aria-expanded='true'] {
300
+ background: linear-gradient(
301
+ color-mix(in srgb, var(--eds-background-inverse) 8%, transparent),
302
+ color-mix(in srgb, var(--eds-background-inverse) 8%, transparent)
303
+ ),
304
+ var(--qz-surface-muted);
305
+ }
306
+ /* 유형 목록 (EDS Menu): body에 붙어 버튼 아래에 뜬다. 고른 항목은 회색 면 + 체크 */
307
+ .qe-menu {
308
+ position: fixed;
309
+ z-index: 30;
310
+ box-sizing: border-box;
311
+ max-height: min(320px, 100vh - 16px);
312
+ overflow-y: auto;
313
+ padding: 8px;
314
+ border: 1px solid var(--eds-divider);
315
+ border-radius: 8px;
316
+ background: var(--eds-background-paper);
317
+ color: var(--eds-text-primary);
318
+ box-shadow:
319
+ 0 3px 3px -2px #0003,
320
+ 0 3px 4px #00000024,
321
+ 0 1px 8px #0000001f;
322
+ }
323
+ .qe-menu-item {
324
+ display: flex;
325
+ align-items: center;
326
+ box-sizing: border-box;
327
+ height: 40px;
328
+ padding: 10px 8px;
329
+ border-radius: 4px;
330
+ font-size: 14px;
331
+ font-weight: var(--eds-fw-medium);
332
+ white-space: nowrap;
333
+ outline: none;
334
+ cursor: pointer;
335
+ }
336
+ .qe-menu-item > svg {
337
+ flex: none;
338
+ box-sizing: content-box;
339
+ width: 20px;
340
+ height: 20px;
341
+ padding-right: 12px;
342
+ color: var(--eds-action-active);
343
+ }
344
+ .qe-menu-check {
345
+ display: inline-flex;
346
+ margin-left: auto;
347
+ padding-left: 16px;
348
+ color: var(--qz-accent);
349
+ }
350
+ .qe-menu-check svg {
351
+ width: 18px;
352
+ height: 18px;
353
+ }
354
+ .qe-menu-item:hover,
355
+ .qe-menu-item:focus-visible {
356
+ background: var(--eds-action-hover);
357
+ }
358
+ .qe-menu-item[aria-selected='true'] {
359
+ background: var(--eds-action-selected);
360
+ }
361
+ .qe-menu-item[aria-selected='true']:hover,
362
+ .qe-menu-item[aria-selected='true']:focus-visible {
363
+ background: color-mix(in srgb, var(--eds-action-selected) 100%, var(--eds-action-hover));
364
+ }
365
+ .qe-menu-item:focus-visible {
366
+ box-shadow: inset 0 0 0 2px var(--qz-accent);
367
+ }
368
+ /* 손가락 화면: 목록 글자 16px (작은 글자를 눌러 확대되지 않게, 키트 모바일 규칙) */
369
+ @media (pointer: coarse) {
370
+ .qe-menu-item {
371
+ font-size: 16px;
372
+ }
373
+ }
374
+ /* 보기 칸 + 정답 표시: 정답으로 고른 줄 끝에 "정답" */
375
+ .qe-option-field {
376
+ position: relative;
377
+ display: flex;
378
+ flex: 1 1 0;
379
+ min-width: 0;
380
+ }
381
+ /* 밑줄 칸: 왼쪽 여백 8px, 안내 글은 tertiary */
382
+ .qe-card .qe-inline-input {
383
+ padding: 8px 12px 8px 8px;
384
+ }
385
+ .qe-card .qe-inline-input::placeholder {
386
+ color: var(--eds-text-tertiary);
387
+ }
388
+ /* 목록 끝 "+ 보기 추가"는 옅은 회색 면, 목록과 8px 띄움 */
389
+ .qe-options > button.qe-add {
390
+ margin-top: 8px;
391
+ background: var(--qz-surface-muted);
392
+ }
393
+ @media (hover: hover) {
394
+ .qe-options > button.qe-add:hover {
395
+ background: linear-gradient(var(--eds-action-hover), var(--eds-action-hover)), var(--qz-surface-muted);
396
+ }
397
+ }
398
+ .qe-options > button.qe-add:focus-visible,
399
+ .qe-options > button.qe-add:active {
400
+ background: linear-gradient(
401
+ color-mix(in srgb, var(--eds-background-inverse) 8%, transparent),
402
+ color-mix(in srgb, var(--eds-background-inverse) 8%, transparent)
403
+ ),
404
+ var(--qz-surface-muted);
405
+ }
406
+ /* 열린 해설 · 입력란 힌트: 회색 상자 안에 */
407
+ .qe-reveal-card .qe-reveal-body {
408
+ padding: 16px;
409
+ border-radius: 12px;
410
+ background: var(--qz-surface-muted);
411
+ }
412
+ .qe-inline + .qe-reveal:has(.qe-reveal-body:not([hidden])) {
413
+ margin-top: 0;
414
+ }
415
+ /* 지울 수 없는 줄 · 그룹 · 상자의 ✕는 감춘다 (자리는 그대로) */
416
+ .qe-option [data-role='delete']:disabled {
417
+ visibility: hidden;
418
+ }
419
+ /* 작은 버튼의 누르는 영역을 둘레로 넓힌다 (모양은 그대로) */
420
+ .qe-card button.ec-icon-button,
421
+ .qe-card-head button.qe-type,
422
+ .qe-reveal-button,
423
+ .qe-options > .qe-add,
424
+ .qe-add-question {
425
+ position: relative;
426
+ }
427
+ .qe-card button.ec-icon-button::after,
428
+ .qe-card-head button.qe-type::after,
429
+ .qe-reveal-button::after {
430
+ content: '';
431
+ position: absolute;
432
+ inset: -8px;
433
+ }
434
+ .qe-card-head button.ec-icon-button::after {
435
+ inset: -7px;
436
+ }
437
+ .qe-card-head button.qe-type::after,
438
+ .qe-reveal-button::after {
439
+ inset: -6px;
440
+ }
441
+ .qe-options > .qe-add::after,
442
+ .qe-add-question::after {
443
+ content: '';
444
+ position: absolute;
445
+ inset: -2px 0;
446
+ }
447
+
448
+ /* 최소 개수라 지울 수 없을 때 목록 아래 안내 */
449
+ .qe-caption {
450
+ margin: 0;
451
+ color: var(--eds-text-tertiary);
452
+ font-size: var(--eds-fs-caption);
453
+ }
454
+ /* "설명 추가"처럼 머리줄 없이 여는 칸: 열리면 밑줄 칸 옆에 지우기 ✕ (해설처럼 머리줄이 있는 칸은 키트 모양 그대로) */
455
+ .qe-reveal:not(.qe-reveal-card) > .qe-reveal-body {
456
+ flex-direction: row;
457
+ align-items: flex-start;
458
+ }
459
+ .qe-reveal-body > .qe-inline {
460
+ flex: 1;
461
+ min-width: 0;
462
+ }
463
+
464
+ /* ── 연주님 최종 수정본 (퀴즈 최종) ── */
465
+ /* 문제 제목은 semibold */
466
+ .qz-question-title {
467
+ font-weight: var(--eds-fw-semibold);
468
+ }
469
+ /* 지문 · 해설 속 그림 (편집 화면에서 올린 그림 · zip 안 img/) */
470
+ .qz-image {
471
+ display: block;
472
+ max-width: 100%;
473
+ height: auto;
474
+ margin: 0 auto 12px;
475
+ border-radius: var(--qz-radius-card);
476
+ }
477
+ /* 그림을 찾지 못하면 설명 글만 */
478
+ .qz-image-missing {
479
+ color: var(--eds-text-tertiary);
480
+ }
481
+ .qz-markdown pre code,
482
+ .qe-wys pre code {
483
+ padding: 0;
484
+ background: none;
485
+ }
486
+ /* 3줄 이상 코드 블록: 왼쪽에 줄 번호 (data-lines) */
487
+ .qz-markdown pre.qz-lines,
488
+ .qe-wys pre.qz-lines {
489
+ position: relative;
490
+ padding-left: 48px;
491
+ white-space: pre;
492
+ overflow-x: auto;
493
+ }
494
+ .qz-markdown pre.qz-lines::before,
495
+ .qe-wys pre.qz-lines::before {
496
+ content: attr(data-lines);
497
+ position: absolute;
498
+ top: 12px;
499
+ left: 0;
500
+ width: 32px;
501
+ color: var(--eds-text-tertiary);
502
+ text-align: right;
503
+ white-space: pre;
504
+ user-select: none;
505
+ pointer-events: none;
506
+ }
507
+ .qe-wys pre.qz-lines::before {
508
+ top: 8px;
509
+ }
510
+
511
+ /* 지문 · 해설 편집 칸 (core/rich-text.js): 글 칸 · 그림 칸 묶음 전체에 밑줄 하나 */
512
+ .qe-blocks {
513
+ gap: 0;
514
+ border-bottom: 1px solid var(--ec-border);
515
+ border-radius: var(--eds-radius) var(--eds-radius) 0 0;
516
+ transition: box-shadow 0.12s;
517
+ }
518
+ .qe-blocks:hover {
519
+ border-bottom-color: var(--ec-edit-hover-line);
520
+ }
521
+ .qe-blocks:focus-within {
522
+ border-bottom-color: transparent;
523
+ box-shadow: inset 0 -2px 0 var(--ec-accent);
524
+ }
525
+ .qe-blocks-list {
526
+ display: flex;
527
+ flex-direction: column;
528
+ gap: 4px;
529
+ }
530
+ /* 그림 사이 빈 글 칸은 초점이 없을 때 얇게 */
531
+ .qe-blocks-list > .qe-wys[data-empty]:not(:only-child):not(:focus) {
532
+ min-height: 0;
533
+ padding-block: 2px;
534
+ }
535
+ .qe-wys {
536
+ position: relative;
537
+ display: block;
538
+ width: 100%;
539
+ min-height: 37px;
540
+ color: var(--eds-text-secondary);
541
+ font-size: var(--eds-fs-body2);
542
+ line-height: 1.5;
543
+ white-space: pre-wrap;
544
+ word-break: break-word;
545
+ outline: none;
546
+ }
547
+ .qe-wys > :last-child {
548
+ margin-bottom: 0;
549
+ }
550
+ .qe-wys p,
551
+ .qe-wys ul,
552
+ .qe-wys ol {
553
+ margin: 0 0 6px;
554
+ }
555
+ .qe-wys ul,
556
+ .qe-wys ol {
557
+ padding-left: 24px;
558
+ }
559
+ .qe-wys pre {
560
+ margin: 0 0 6px;
561
+ padding: 8px 12px;
562
+ white-space: pre;
563
+ overflow-x: auto;
564
+ }
565
+ .qe-wys code {
566
+ font-family: ui-monospace, Menlo, monospace;
567
+ }
568
+ .qe-wys code,
569
+ .qe-wys pre {
570
+ background: var(--eds-background-paper, #fff);
571
+ box-shadow: inset 0 0 0 1px var(--qz-border);
572
+ }
573
+ .qe-wys pre code {
574
+ box-shadow: none;
575
+ }
576
+ .qe-wys img {
577
+ max-width: 100%;
578
+ }
579
+ .qe-wys[data-empty][data-placeholder]:not([data-placeholder=''])::before {
580
+ content: attr(data-placeholder);
581
+ position: absolute;
582
+ top: 8px;
583
+ left: 8px;
584
+ color: var(--eds-text-tertiary);
585
+ pointer-events: none;
586
+ }
587
+ /* 올린 그림 칸: 흰 바탕 가운데, 오른쪽 위 지우기 */
588
+ .qe-block-image {
589
+ position: relative;
590
+ display: flex;
591
+ justify-content: center;
592
+ margin: 0;
593
+ padding: 12px;
594
+ border-radius: 12px;
595
+ background: var(--eds-background-paper, #fff);
596
+ }
597
+ .qe-block-image img {
598
+ display: block;
599
+ max-width: 100%;
600
+ max-height: 280px;
601
+ border-radius: 8px;
602
+ }
603
+ .qe-block-remove {
604
+ position: absolute;
605
+ top: 8px;
606
+ right: 8px;
607
+ display: flex;
608
+ align-items: center;
609
+ justify-content: center;
610
+ width: 28px;
611
+ min-width: 0;
612
+ height: 28px;
613
+ min-height: 0;
614
+ padding: 0;
615
+ border: 0;
616
+ border-radius: 50%;
617
+ background: color-mix(in srgb, var(--eds-text-primary) 70%, transparent);
618
+ color: #fff;
619
+ cursor: pointer;
620
+ }
621
+ .qe-block-remove::after {
622
+ content: '';
623
+ position: absolute;
624
+ inset: -8px;
625
+ }
626
+ .qe-block-remove:hover {
627
+ background: var(--eds-text-primary);
628
+ }
629
+ .qe-block-remove:focus-visible {
630
+ outline: 2px solid var(--qz-accent);
631
+ outline-offset: 2px;
632
+ }
633
+ .qe-block-remove svg {
634
+ width: 16px;
635
+ height: 16px;
636
+ }
637
+
638
+ /* 서식 도구: 칸에 초점이 있을 때 카드 아래 가장자리에 걸쳐 뜸 (그림 파일을 고르는 동안은 data-hold로 유지) */
639
+ .qe-reveal-card .qe-reveal-body {
640
+ position: relative;
641
+ }
642
+ .qe-md {
643
+ position: absolute;
644
+ top: calc(100% - 12px);
645
+ left: 16px;
646
+ z-index: 6;
647
+ display: flex;
648
+ align-items: center;
649
+ gap: 2px;
650
+ width: max-content;
651
+ max-width: calc(100% - 32px);
652
+ padding: 2px 6px;
653
+ border-radius: 10px;
654
+ background: var(--eds-background-paper, #fff);
655
+ box-shadow: var(--ec-shadow);
656
+ opacity: 0;
657
+ visibility: hidden;
658
+ transition:
659
+ opacity 0.12s,
660
+ visibility 0s linear 0.12s;
661
+ }
662
+ .qe-reveal-body:focus-within .qe-md,
663
+ .qe-md[data-hold] {
664
+ opacity: 1;
665
+ visibility: visible;
666
+ transition: opacity 0.12s;
667
+ }
668
+ .qe-md-btn {
669
+ position: relative;
670
+ display: inline-flex;
671
+ align-items: center;
672
+ justify-content: center;
673
+ min-width: 32px;
674
+ height: 32px;
675
+ min-height: 0;
676
+ padding: 0 8px;
677
+ border: 0;
678
+ border-radius: 6px;
679
+ background: none;
680
+ color: var(--eds-text-secondary);
681
+ font: inherit;
682
+ font-size: var(--eds-fs-body2);
683
+ cursor: pointer;
684
+ }
685
+ /* 누르는 자리를 조금 넓게 */
686
+ .qe-md-btn::after {
687
+ content: '';
688
+ position: absolute;
689
+ inset: -6px -2px;
690
+ }
691
+ .qe-md-btn:hover:not(:disabled) {
692
+ background: var(--eds-action-hover);
693
+ color: var(--eds-text-primary);
694
+ }
695
+ .qe-md-btn:focus-visible {
696
+ outline: 2px solid var(--qz-accent);
697
+ outline-offset: -2px;
698
+ }
699
+ .qe-md-btn:disabled {
700
+ opacity: 0.4;
701
+ cursor: default;
702
+ }
703
+ .qe-md-btn[aria-pressed='true'] {
704
+ background: var(--eds-action-selected, var(--eds-action-hover));
705
+ color: var(--qz-accent);
706
+ }
707
+ .qe-md-sep {
708
+ width: 1px;
709
+ height: 18px;
710
+ margin: 0 4px;
711
+ background: var(--qz-border);
712
+ }
713
+
714
+ /* ========== 설문 (연주님 설문 시안) ========== */
715
+ /* ---------- 학생 ---------- */
716
+ /* 학생 화면 틀: 내용은 키트 기본(가운데 720px). 설문 안내는 본문 글자 · medium, 필수 표시 안내는 작은 회색 */
717
+
718
+ /* 제출 바 (연주님 1.2.1 수정본): 배경 · 위쪽 선은 화면 전체 너비, 버튼은 본문(720px) 오른쪽 끝에 맞춘다 (화면이 좁으면 16px).
719
+ body 좌우 여백(16px)만큼 넓혀 화면 끝까지 닿게 한다. 스크롤을 끝까지 내려도 화면 맨 아래에 붙어 있게 body 아래 여백은 뺀다
720
+ (마지막 문항과는 키트의 막대 위 간격으로 뗀다). 편집 화면(body.ec-edit-page)은 키트 모양 그대로 */
721
+ body:not(.ec-edit-page) {
722
+ padding-bottom: 0;
723
+ }
724
+ body:not(.ec-edit-page) .ec-submitbar {
725
+ max-width: none;
726
+ margin-inline: -16px;
727
+ padding-inline: max(16px, calc((100% + 32px) / 2 - 360px));
728
+ }
729
+ /* 키트의 제출 결과 줄('제출했어요.')은 보이지 않는다: 제출하면 감사 화면으로 알린다 (연주님 1.2.1 수정본) */
730
+ .ec-result {
731
+ display: none;
732
+ }
733
+ .sv-survey {
734
+ display: flex;
735
+ flex-direction: column;
736
+ gap: 20px;
737
+ }
738
+ .sv-survey[hidden] {
739
+ display: none;
740
+ }
741
+ .sv-head {
742
+ display: flex;
743
+ flex-direction: column;
744
+ gap: 6px;
745
+ }
746
+ .qz-lead {
747
+ color: var(--ec-muted);
748
+ }
749
+ body:not(.ec-edit-page) .qz-lead {
750
+ font-size: var(--eds-fs-body1);
751
+ font-weight: var(--eds-fw-medium);
752
+ }
753
+ /* 필수 표시 * (질문 뒤 · 안내 앞) */
754
+ .sv-req {
755
+ margin-left: -4px;
756
+ color: var(--eds-error-main);
757
+ font-weight: var(--eds-fw-semibold);
758
+ }
759
+ .sv-req-note {
760
+ margin-left: 0;
761
+ }
762
+ :root[data-eds-theme='dark'] .sv-req {
763
+ color: var(--eds-error-light);
764
+ }
765
+ .sv-desc {
766
+ margin: 0;
767
+ }
768
+ /* 고른 보기: 연한 강조색 면만 (테두리 없음) */
769
+ .qz-option:has(input:checked) {
770
+ border-color: transparent;
771
+ outline: 0;
772
+ }
773
+
774
+ /* 척도: 수 칸 한 줄 (좁은 화면은 7칸부터 두 줄), 아래 양 끝 이름 */
775
+ .sv-scale {
776
+ display: flex;
777
+ flex-direction: column;
778
+ gap: 8px;
779
+ }
780
+ .sv-scale-row {
781
+ display: grid;
782
+ grid-template-columns: repeat(var(--sv-cols, 5), minmax(0, 1fr));
783
+ gap: 8px;
784
+ }
785
+ .sv-scale-step {
786
+ position: relative;
787
+ display: grid;
788
+ place-items: center;
789
+ height: 48px;
790
+ border: 1px solid var(--qz-option-border);
791
+ border-radius: var(--qz-radius-card);
792
+ background: var(--qz-option-bg);
793
+ font-weight: var(--eds-fw-semibold);
794
+ cursor: pointer;
795
+ }
796
+ .sv-scale-step:hover {
797
+ background: var(--qz-option-hover-bg);
798
+ }
799
+ .sv-scale-step input {
800
+ position: absolute;
801
+ opacity: 0;
802
+ pointer-events: none;
803
+ }
804
+ .sv-scale-step:has(input:checked) {
805
+ border-color: var(--qz-option-checked-border);
806
+ background: var(--qz-option-checked-bg);
807
+ color: var(--qz-accent);
808
+ }
809
+ .sv-scale-step:has(input:focus-visible) {
810
+ outline: 2px solid var(--qz-accent);
811
+ outline-offset: 2px;
812
+ }
813
+ .sv-scale-ends {
814
+ display: flex;
815
+ justify-content: space-between;
816
+ color: var(--qz-text-muted);
817
+ font-size: var(--eds-fs-body2);
818
+ }
819
+
820
+ /* '기타(자유 입력)': 보기 카드 안에서 바로 쓰는 칸 (테두리 없음) */
821
+ .sv-other {
822
+ flex-wrap: wrap;
823
+ }
824
+ .qz-option .sv-other-text {
825
+ flex: 1 1 160px;
826
+ width: auto;
827
+ min-width: 0;
828
+ height: auto;
829
+ min-height: 0;
830
+ margin-left: -4px;
831
+ padding: 0 0 0 4px;
832
+ border: 0;
833
+ background: transparent;
834
+ color: inherit;
835
+ font: inherit;
836
+ appearance: auto;
837
+ }
838
+ .qz-option.sv-other,
839
+ .qz-option .sv-other-text {
840
+ cursor: pointer;
841
+ }
842
+ .qz-option .sv-other-text:focus {
843
+ outline: none;
844
+ cursor: text;
845
+ caret-color: var(--qz-accent);
846
+ }
847
+
848
+ /* 서술형: 처음부터 4줄 높이(ui/templates/learn.js rows="4"), 4줄을 넘게 쓰면 글에 맞춰 늘어남 */
849
+ .sv-text {
850
+ box-sizing: border-box;
851
+ width: 100%;
852
+ }
853
+ textarea.sv-grow {
854
+ min-height: 0;
855
+ overflow: hidden;
856
+ line-height: 1.5;
857
+ resize: none;
858
+ }
859
+
860
+ /* 제출한 뒤: 가운데 ✓ · 감사 문구 · "응답 확인하고 수정하기". 문항 · 제출 바 · 결과 줄은 감춘다 */
861
+ .sv-done {
862
+ box-sizing: border-box;
863
+ display: flex;
864
+ flex-direction: column;
865
+ align-items: center;
866
+ justify-content: center;
867
+ gap: 8px;
868
+ min-height: min(100vh, 800px);
869
+ padding: 32px 16px;
870
+ text-align: center;
871
+ }
872
+ .sv-done[hidden] {
873
+ display: none;
874
+ }
875
+ .sv-done-icon {
876
+ display: grid;
877
+ place-items: center;
878
+ width: 56px;
879
+ height: 56px;
880
+ margin-bottom: 8px;
881
+ border-radius: 50%;
882
+ background: var(--ec-ok-bg);
883
+ color: var(--ec-ok);
884
+ }
885
+ .sv-done-title {
886
+ margin: 0;
887
+ font-size: var(--eds-fs-subtitle1);
888
+ font-weight: var(--eds-fw-bold);
889
+ outline: none;
890
+ }
891
+ .sv-done-hint {
892
+ margin: 0;
893
+ color: var(--ec-muted);
894
+ font-size: var(--eds-fs-body1);
895
+ }
896
+ .sv-done-edit {
897
+ min-height: 44px;
898
+ margin-top: 16px;
899
+ padding: 0 20px;
900
+ border: 1px solid var(--eds-surface-border);
901
+ border-radius: 10px;
902
+ background: transparent;
903
+ color: var(--eds-text-primary);
904
+ font: inherit;
905
+ font-weight: var(--eds-fw-semibold);
906
+ cursor: pointer;
907
+ }
908
+ @media (hover: hover) {
909
+ .sv-done-edit:hover {
910
+ background: var(--eds-action-hover);
911
+ }
912
+ }
913
+ .sv-done-edit:focus-visible {
914
+ outline: 2px solid var(--qz-accent);
915
+ outline-offset: 2px;
916
+ }
917
+ body.sv-is-done {
918
+ padding-top: 0;
919
+ padding-bottom: 0;
920
+ }
921
+ body.sv-is-done .ec-submitbar,
922
+ body.sv-is-done .ec-result {
923
+ display: none;
924
+ }
925
+
926
+ /* ---------- 편집 ---------- */
927
+ /* 맨 위 설문 안내 카드 */
928
+ .qe-quiz-info {
929
+ position: relative;
930
+ gap: 12px;
931
+ padding: 28px;
932
+ border: 0;
933
+ border-radius: 16px;
934
+ background: var(--qz-surface);
935
+ }
936
+ .qe-quiz-info:focus-within .qe-md {
937
+ opacity: 1;
938
+ visibility: visible;
939
+ transition: opacity 0.12s;
940
+ }
941
+ /* 카드 머리: 문항 N · 유형 · (오른쪽) 필수 응답 | ↑ ↓ 삭제 */
942
+ .qe-head-sep {
943
+ flex: none;
944
+ width: 1px;
945
+ height: 20px;
946
+ margin: 0 4px;
947
+ background: var(--qz-border);
948
+ }
949
+ .sv-req-switch {
950
+ display: inline-flex;
951
+ flex: none;
952
+ align-items: center;
953
+ gap: 8px;
954
+ color: var(--eds-text-secondary);
955
+ font-size: var(--eds-fs-body2);
956
+ font-weight: var(--eds-fw-medium);
957
+ white-space: nowrap;
958
+ cursor: pointer;
959
+ user-select: none;
960
+ }
961
+ .sv-req-switch:has(input:checked) {
962
+ color: var(--eds-text-primary);
963
+ }
964
+ /* 스위치 (EDS Switch small): 32 × 20, 켜면 강조색. 누르는 영역은 둘레로 넓게 */
965
+ .qe-sw {
966
+ position: relative;
967
+ flex: none;
968
+ width: 32px;
969
+ height: 20px;
970
+ }
971
+ .qe-sw input {
972
+ position: absolute;
973
+ inset: -12px -6px;
974
+ z-index: 1;
975
+ width: calc(100% + 12px);
976
+ height: 44px;
977
+ margin: 0;
978
+ padding: 0;
979
+ border: 0;
980
+ border-radius: 32px;
981
+ opacity: 0;
982
+ cursor: pointer;
983
+ }
984
+ .qe-sw input:focus {
985
+ outline: none;
986
+ }
987
+ .qe-sw-track {
988
+ position: absolute;
989
+ inset: 0;
990
+ border-radius: 32px;
991
+ background: color-mix(in srgb, var(--eds-text-primary) 38%, transparent);
992
+ pointer-events: none;
993
+ transition: background-color 0.15s;
994
+ }
995
+ .qe-sw-track::before {
996
+ content: '';
997
+ position: absolute;
998
+ top: 3px;
999
+ left: 3px;
1000
+ width: 14px;
1001
+ height: 14px;
1002
+ border-radius: 50%;
1003
+ background: #fff;
1004
+ box-shadow: 0 1px 2px #0000004d;
1005
+ transition: transform 0.15s;
1006
+ }
1007
+ .qe-sw input:checked + .qe-sw-track {
1008
+ background: var(--qz-accent);
1009
+ }
1010
+ .qe-sw input:checked + .qe-sw-track::before {
1011
+ transform: translateX(12px);
1012
+ }
1013
+ .qe-sw input:focus-visible + .qe-sw-track {
1014
+ outline: 2px solid var(--qz-accent);
1015
+ outline-offset: 2px;
1016
+ }
1017
+ @media (max-width: 767.98px) {
1018
+ /* 좁은 화면: 첫 줄 "문항 N" · ↑ ↓ 삭제, 둘째 줄 유형 · 필수 응답 */
1019
+ .qe-card-head {
1020
+ flex-wrap: wrap;
1021
+ gap: 4px;
1022
+ row-gap: 8px;
1023
+ }
1024
+ .qe-card-head .ec-icon-button {
1025
+ width: 32px;
1026
+ }
1027
+ .qe-card-head > strong {
1028
+ flex: auto;
1029
+ margin-right: 0;
1030
+ }
1031
+ .qe-card-head > .ec-icon-button {
1032
+ order: 1;
1033
+ }
1034
+ .qe-card-head::after {
1035
+ content: '';
1036
+ flex-basis: 100%;
1037
+ order: 1;
1038
+ height: 0;
1039
+ }
1040
+ .qe-card-head > .qe-type {
1041
+ order: 2;
1042
+ }
1043
+ .qe-card-head > .qe-head-sep {
1044
+ display: none;
1045
+ }
1046
+ .sv-req-switch {
1047
+ order: 2;
1048
+ }
1049
+ }
1050
+ /* 보기 줄 앞 단추 모양 (학생이 볼 동그라미 · 네모) */
1051
+ .sv-mark {
1052
+ box-sizing: border-box;
1053
+ flex: none;
1054
+ width: 20px;
1055
+ height: 20px;
1056
+ border: 2px solid var(--qz-border);
1057
+ }
1058
+ .sv-mark.is-radio {
1059
+ border-radius: 50%;
1060
+ }
1061
+ .sv-mark.is-check {
1062
+ border-radius: 4px;
1063
+ }
1064
+ /* '기타' 줄: 손잡이 자리는 비우고, "기타:" 뒤에 점선 자리 */
1065
+ .sv-handle-space {
1066
+ flex: none;
1067
+ width: 32px;
1068
+ visibility: hidden;
1069
+ }
1070
+ @media (hover: hover) and (pointer: fine) and (min-width: 768px) {
1071
+ /* 데스크톱: 손잡이가 줄 밖 왼쪽 여백에 떠 있으므로 빈 자리도 줄 밖으로 (키트 .ec-list-row > button.ec-handle과 같게) */
1072
+ .ec-list-row > .sv-handle-space {
1073
+ position: absolute;
1074
+ left: -22px;
1075
+ width: 20px;
1076
+ }
1077
+ }
1078
+ .sv-other-field {
1079
+ display: flex;
1080
+ align-items: center;
1081
+ }
1082
+ .sv-other-label {
1083
+ flex: none;
1084
+ padding: 8px 0 8px 8px;
1085
+ color: var(--eds-text-primary);
1086
+ font-size: var(--eds-fs-body1);
1087
+ font-weight: var(--eds-fw-medium);
1088
+ line-height: 1.5;
1089
+ }
1090
+ .sv-other-preview {
1091
+ flex: 1;
1092
+ min-width: 0;
1093
+ margin-left: 8px;
1094
+ padding: 8px 12px 8px 8px;
1095
+ overflow: hidden;
1096
+ border-bottom: 1px dotted var(--eds-text-disabled, var(--qz-text-muted));
1097
+ color: var(--eds-text-disabled, var(--qz-text-muted));
1098
+ font-size: var(--eds-fs-body1);
1099
+ line-height: 1.5;
1100
+ text-overflow: ellipsis;
1101
+ white-space: nowrap;
1102
+ pointer-events: none;
1103
+ user-select: none;
1104
+ }
1105
+ .sv-other-ghost {
1106
+ align-items: center;
1107
+ }
1108
+ .sv-other-add {
1109
+ position: relative;
1110
+ display: inline-flex;
1111
+ align-items: center;
1112
+ gap: 10px;
1113
+ width: auto;
1114
+ min-height: 0;
1115
+ margin-left: -8px;
1116
+ padding: 8px 14px 8px 8px;
1117
+ border: 0;
1118
+ border-radius: 8px;
1119
+ background: transparent;
1120
+ color: var(--qz-text-muted);
1121
+ font: inherit;
1122
+ font-size: var(--eds-fs-body2);
1123
+ text-align: left;
1124
+ white-space: nowrap;
1125
+ cursor: pointer;
1126
+ }
1127
+ .sv-other-add::after {
1128
+ content: '';
1129
+ position: absolute;
1130
+ inset: -2px 0;
1131
+ }
1132
+ .sv-mark-plus {
1133
+ display: grid;
1134
+ flex: none;
1135
+ place-items: center;
1136
+ width: 20px;
1137
+ height: 20px;
1138
+ }
1139
+ @media (hover: hover) {
1140
+ .sv-other-add:hover {
1141
+ background: var(--qz-accent-soft);
1142
+ color: var(--qz-accent);
1143
+ }
1144
+ }
1145
+ .sv-other-add:focus-visible {
1146
+ outline: 2px solid var(--qz-accent);
1147
+ outline-offset: 0;
1148
+ background: var(--qz-accent-soft);
1149
+ color: var(--qz-accent);
1150
+ }
1151
+ /* 척도 편집: "척도 [1 ∨] ~ [5 ∨]" (유형 버튼과 같은 회색 알약) · 미리보기 칸 · 양 끝 이름 */
1152
+ .sv-scale-range {
1153
+ display: flex;
1154
+ align-items: center;
1155
+ gap: 8px;
1156
+ margin-bottom: 8px;
1157
+ }
1158
+ .sv-scale-range .qe-label {
1159
+ flex: none;
1160
+ margin-right: 4px;
1161
+ white-space: nowrap;
1162
+ }
1163
+ .sv-scale-range button.sv-scale-pick {
1164
+ position: relative;
1165
+ display: inline-flex;
1166
+ flex: none;
1167
+ align-items: center;
1168
+ gap: 6px;
1169
+ min-height: 0;
1170
+ padding: 5px 12px;
1171
+ border: 0;
1172
+ border-radius: 6px;
1173
+ background: var(--qz-surface-muted);
1174
+ color: var(--eds-text-primary);
1175
+ font-size: 13px;
1176
+ font-weight: var(--eds-fw-semibold);
1177
+ line-height: 22px;
1178
+ cursor: pointer;
1179
+ }
1180
+ .sv-scale-range button.sv-scale-pick::after {
1181
+ content: '';
1182
+ position: absolute;
1183
+ inset: -6px;
1184
+ }
1185
+ @media (hover: hover) {
1186
+ .sv-scale-range button.sv-scale-pick:hover {
1187
+ background: linear-gradient(var(--eds-action-hover), var(--eds-action-hover)), var(--qz-surface-muted);
1188
+ }
1189
+ }
1190
+ .sv-scale-range button.sv-scale-pick:focus-visible,
1191
+ .sv-scale-range button.sv-scale-pick[aria-expanded='true'] {
1192
+ background: linear-gradient(
1193
+ color-mix(in srgb, var(--eds-background-inverse) 8%, transparent),
1194
+ color-mix(in srgb, var(--eds-background-inverse) 8%, transparent)
1195
+ ),
1196
+ var(--qz-surface-muted);
1197
+ }
1198
+ .sv-scale-preview {
1199
+ display: grid;
1200
+ grid-template-columns: repeat(var(--sv-cols, 5), minmax(0, 1fr));
1201
+ gap: 6px;
1202
+ opacity: 0.4;
1203
+ pointer-events: none;
1204
+ user-select: none;
1205
+ cursor: default;
1206
+ }
1207
+ .sv-scale-preview span {
1208
+ display: grid;
1209
+ place-items: center;
1210
+ height: 36px;
1211
+ border: 1px solid var(--qz-border);
1212
+ border-radius: 8px;
1213
+ background: transparent;
1214
+ color: var(--eds-text-primary);
1215
+ font-size: var(--eds-fs-body2);
1216
+ }
1217
+ .sv-ends {
1218
+ display: flex;
1219
+ flex-direction: column;
1220
+ gap: 8px;
1221
+ }
1222
+ .sv-end {
1223
+ display: flex;
1224
+ align-items: center;
1225
+ gap: 12px;
1226
+ }
1227
+ .sv-end-no {
1228
+ flex: none;
1229
+ min-width: 20px;
1230
+ color: var(--qz-text-muted);
1231
+ font-weight: var(--eds-fw-semibold);
1232
+ text-align: right;
1233
+ }
1234
+ .sv-end .qe-inline-input {
1235
+ flex: 1;
1236
+ min-width: 0;
1237
+ }
1238
+ /* 서술형: 학생이 쓸 칸 자리 (점선 밑줄) */
1239
+ .sv-text-preview {
1240
+ box-sizing: border-box;
1241
+ min-height: 40px;
1242
+ padding: 8px 0;
1243
+ border-bottom: 1px dotted var(--eds-text-disabled, var(--qz-text-muted));
1244
+ color: var(--eds-text-disabled, var(--qz-text-muted));
1245
+ font-size: var(--eds-fs-body2);
1246
+ pointer-events: none;
1247
+ user-select: none;
1248
+ cursor: default;
1249
+ }
1250
+ /* 닫힌 "설명 추가 +" 아래 8px */
1251
+ .qe-card > .qe-reveal-card:not(:has(.qe-reveal-body:not([hidden]))) {
1252
+ margin-bottom: 8px;
1253
+ }
1254
+ .sv-form {
1255
+ display: flex;
1256
+ flex-direction: column;
1257
+ gap: 16px;
1258
+ }
1259
+ @media (max-width: 599.98px) {
1260
+ .sv-scale-row,
1261
+ .sv-scale-preview {
1262
+ grid-template-columns: repeat(var(--sv-cols-narrow, 5), minmax(0, 1fr));
1263
+ }
1264
+ }