@eliceio/cdk-cli 1.2.1 → 1.3.0-contenttypes.1

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 (169) hide show
  1. package/README.md +63 -53
  2. package/es/cli.js +11 -2
  3. package/es/commands/build/index.js +12 -0
  4. package/es/commands/create/index.js +2 -0
  5. package/es/commands/create/scaffold.d.ts +2 -2
  6. package/es/commands/create/scaffold.js +3 -3
  7. package/es/commands/dev/index.d.ts +10 -1
  8. package/es/commands/dev/index.js +47 -7
  9. package/es/commands/doctor/index.js +6 -2
  10. package/es/core/config.d.ts +42 -9
  11. package/es/core/config.js +217 -12
  12. package/es/core/project-check.d.ts +3 -2
  13. package/es/core/project-check.js +14 -3
  14. package/es/core/regex.d.ts +11 -0
  15. package/es/core/regex.js +41 -0
  16. package/es/core/sandbox.d.ts +26 -0
  17. package/es/core/sandbox.js +240 -30
  18. package/es/dev/assets.d.ts +80 -0
  19. package/es/dev/assets.js +240 -0
  20. package/es/dev/check.d.ts +30 -0
  21. package/es/dev/check.js +224 -34
  22. package/es/dev/grading.d.ts +49 -14
  23. package/es/dev/grading.js +109 -29
  24. package/es/dev/host-page.js +27 -3
  25. package/es/dev/inject.d.ts +2 -1
  26. package/es/dev/inject.js +10 -2
  27. package/es/dev/mock-api.d.ts +26 -3
  28. package/es/dev/mock-api.js +219 -40
  29. package/es/dev/server.d.ts +12 -1
  30. package/es/dev/server.js +115 -9
  31. package/es/engines/vite/index.js +1 -1
  32. package/es/engines/vite/plugin.d.ts +2 -0
  33. package/es/engines/vite/plugin.js +33 -5
  34. package/es/rules/answers.d.ts +13 -0
  35. package/es/rules/answers.js +94 -0
  36. package/es/rules/check.js +70 -1
  37. package/es/rules/index.d.ts +1 -0
  38. package/es/rules/index.js +1 -0
  39. package/es/rules/size.d.ts +31 -0
  40. package/es/rules/size.js +58 -0
  41. package/es/rules/types.d.ts +12 -0
  42. package/es/rules.json.js +2 -2
  43. package/package.json +2 -2
  44. package/rules.json +34 -5
  45. package/skills/_shared/always.md +3 -3
  46. package/skills/_shared/references/00-what-the-person-decides.md +1 -1
  47. package/skills/_shared/references/02-design-the-material.md +10 -7
  48. package/skills/_shared/references/03-create-the-project.md +10 -8
  49. package/skills/_shared/references/04-rules.md +1 -1
  50. package/skills/_shared/references/05-screen-code.md +52 -23
  51. package/skills/_shared/references/06-using-the-quiz-template.md +7 -6
  52. package/skills/_shared/references/08-fix-check-errors.md +23 -22
  53. package/skills/_shared/references/09-check.md +8 -6
  54. package/skills/_shared/references/12-upload-with-the-material-mcp.md +13 -13
  55. package/skills/_shared/references/13-edit-screen-design.md +122 -0
  56. package/skills/_shared/references/14-layouts.md +96 -0
  57. package/skills/elice-content-check/SKILL.md +2 -2
  58. package/skills/elice-content-create/SKILL.md +1 -1
  59. package/skills/elice-content-migrate/SKILL.md +1 -1
  60. package/skills/elice-content-publish/SKILL.md +1 -1
  61. package/templates/_shared/lib/cdk-mock.d.ts +47 -3
  62. package/templates/_shared/lib/cdk-mock.js +293 -15
  63. package/templates/_shared/lib/elice-content-editor.js +89 -58
  64. package/templates/_shared/lib/elice-content.css +1313 -126
  65. package/templates/_shared/lib/elice-content.d.ts +222 -23
  66. package/templates/_shared/lib/elice-content.js +1176 -88
  67. package/templates/_shared/lib/icons/empty-content.d.ts +2 -0
  68. package/templates/_shared/lib/icons/empty-content.js +11 -0
  69. package/templates/_shared/lib/icons/file-video.d.ts +2 -0
  70. package/templates/_shared/lib/icons/file-video.js +11 -0
  71. package/templates/_shared/lib/icons/file.d.ts +2 -0
  72. package/templates/_shared/lib/icons/file.js +11 -0
  73. package/templates/blank/README.md +6 -4
  74. package/templates/blank/edit.html +8 -2
  75. package/templates/blank/index.html +6 -1
  76. package/templates/blank/instructor.html +6 -1
  77. package/templates/blank/screens/instructor.js +8 -2
  78. package/templates/blank/screens/learn.js +1 -1
  79. package/templates/blank/template.json +1 -1
  80. package/templates/document/README.md +92 -0
  81. package/templates/document/commentary.txt +2 -0
  82. package/templates/document/core/dom.d.ts +13 -0
  83. package/templates/document/core/dom.js +83 -0
  84. package/templates/document/core/file-type.d.ts +21 -0
  85. package/templates/document/core/file-type.js +85 -0
  86. package/templates/document/core/group-3d.d.ts +20 -0
  87. package/templates/document/core/group-3d.js +256 -0
  88. package/templates/document/core/inline-edit.d.ts +15 -0
  89. package/templates/document/core/inline-edit.js +377 -0
  90. package/templates/document/core/load.d.ts +13 -0
  91. package/templates/document/core/load.js +40 -0
  92. package/templates/document/core/pdf-options.d.ts +9 -0
  93. package/templates/document/core/pdf-options.js +36 -0
  94. package/templates/document/core/pdf-worker.d.ts +24 -0
  95. package/templates/document/core/pdf-worker.js +122 -0
  96. package/templates/document/core/pdf.d.ts +12 -0
  97. package/templates/document/core/pdf.js +190 -0
  98. package/templates/document/core/pptx-edit.d.ts +14 -0
  99. package/templates/document/core/pptx-edit.js +137 -0
  100. package/templates/document/core/pptx-fonts.d.ts +5 -0
  101. package/templates/document/core/pptx-fonts.js +115 -0
  102. package/templates/document/core/pptx-media.d.ts +18 -0
  103. package/templates/document/core/pptx-media.js +83 -0
  104. package/templates/document/core/pptx-view.d.ts +5 -0
  105. package/templates/document/core/pptx-view.js +185 -0
  106. package/templates/document/core/settings.d.ts +25 -0
  107. package/templates/document/core/settings.js +86 -0
  108. package/templates/document/core/slide-edges.d.ts +3 -0
  109. package/templates/document/core/slide-edges.js +82 -0
  110. package/templates/document/core/viewer.d.ts +28 -0
  111. package/templates/document/core/viewer.js +159 -0
  112. package/templates/document/edit.html +17 -0
  113. package/templates/document/gitignore +4 -0
  114. package/templates/document/index.html +18 -0
  115. package/templates/document/metadata.json +9 -0
  116. package/templates/document/package.json +17 -0
  117. package/templates/document/public/fonts/OFL-Caladea.txt +93 -0
  118. package/templates/document/public/fonts/OFL-Carlito.txt +93 -0
  119. package/templates/document/public/fonts/caladea-latin-400-normal.woff2 +0 -0
  120. package/templates/document/public/fonts/caladea-latin-700-normal.woff2 +0 -0
  121. package/templates/document/public/fonts/carlito-latin-400-normal.woff2 +0 -0
  122. package/templates/document/public/fonts/carlito-latin-700-normal.woff2 +0 -0
  123. package/templates/document/screens/edit.js +574 -0
  124. package/templates/document/screens/learn.js +61 -0
  125. package/templates/document/styles.css +644 -0
  126. package/templates/document/template.json +6 -0
  127. package/templates/document/ui/templates/edit.js +82 -0
  128. package/templates/document/ui/templates/page.js +11 -0
  129. package/templates/document/ui/templates/viewer.js +41 -0
  130. package/templates/document/ui/texts.d.ts +3 -0
  131. package/templates/document/ui/texts.js +62 -0
  132. package/templates/document/ui/theme.css +69 -0
  133. package/templates/quiz/README.md +32 -14
  134. package/templates/quiz/core/behaviors.d.ts +17 -7
  135. package/templates/quiz/core/behaviors.js +40 -53
  136. package/templates/quiz/core/editor.d.ts +27 -2
  137. package/templates/quiz/core/editor.js +412 -11
  138. package/templates/quiz/core/markdown.d.ts +19 -0
  139. package/templates/quiz/core/markdown.js +225 -11
  140. package/templates/quiz/core/model.d.ts +40 -3
  141. package/templates/quiz/core/model.js +112 -5
  142. package/templates/quiz/core/rich-text.d.ts +18 -0
  143. package/templates/quiz/core/rich-text.js +469 -0
  144. package/templates/quiz/edit.html +12 -3
  145. package/templates/quiz/index.html +12 -3
  146. package/templates/quiz/public/img/mascot-half.webp +0 -0
  147. package/templates/quiz/screens/edit.js +331 -49
  148. package/templates/quiz/screens/learn.js +147 -15
  149. package/templates/quiz/styles.css +1244 -622
  150. package/templates/quiz/template.json +9 -2
  151. package/templates/quiz/ui/templates/edit.d.ts +19 -5
  152. package/templates/quiz/ui/templates/edit.js +371 -77
  153. package/templates/quiz/ui/templates/group.js +19 -8
  154. package/templates/quiz/ui/templates/order.js +25 -24
  155. package/templates/quiz/ui/templates/page.js +33 -8
  156. package/templates/quiz/ui/templates/question.js +6 -4
  157. package/templates/quiz/ui/texts.js +91 -26
  158. package/templates/quiz/ui/theme.css +8 -9
  159. package/templates/steps/README.md +77 -0
  160. package/templates/steps/commentary.txt +7 -0
  161. package/templates/steps/edit.html +21 -0
  162. package/templates/steps/gitignore +4 -0
  163. package/templates/steps/index.html +69 -0
  164. package/templates/steps/metadata.json +9 -0
  165. package/templates/steps/package.json +13 -0
  166. package/templates/steps/screens/edit.js +32 -0
  167. package/templates/steps/screens/learn.js +108 -0
  168. package/templates/steps/styles.css +54 -0
  169. package/templates/steps/template.json +6 -0
@@ -1,12 +1,108 @@
1
1
  /* 퀴즈 앱 스타일. 색 · 간격 · 모서리 값은 ui/theme.css(그 아래는 EDS 토큰 lib/elice-tokens.css), 모양은 EDS 컴포넌트 명세를 따릅니다
2
2
  보기 = RadioCard · 유형 표시 = Tag(muted) · 해설 = Accordion */
3
3
 
4
+ /* 결과 아이콘 (원 안 ✓ · ✕, Font Awesome circle-check · circle-xmark 모양). mask로 쓰고 색은 결과 색 */
5
+ :root {
6
+ --qz-icon-correct: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
7
+ --qz-icon-wrong: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z'/%3E%3C/svg%3E");
8
+ }
9
+
4
10
  /* ---------- 학생 ---------- */
5
- .qz-title {
6
- margin: 0;
11
+ /* 학생 화면 틀 (index.html body.qz-page): 제출 바는 화면 아래 전체 너비, 내용은 가운데 720px */
12
+ body.qz-page {
13
+ display: flex;
14
+ flex-direction: column;
15
+ min-height: 100dvh;
16
+ padding: 24px 16px 0;
7
17
  }
8
- .qz-lead {
9
- color: var(--ec-muted);
18
+ body.qz-page main {
19
+ flex: 1;
20
+ width: 100%;
21
+ padding-bottom: 24px;
22
+ }
23
+ body.qz-page .ec-result {
24
+ width: 100%;
25
+ }
26
+ body.qz-page .ec-submitbar {
27
+ z-index: 8;
28
+ max-width: none;
29
+ margin: 0 -16px;
30
+ padding: 12px max(16px, 50% - 360px);
31
+ }
32
+ /* 키트 점수 줄(정답 · 오답)은 감추고 문제 카드의 정답 · 오답과 아래 상자(.qz-overall)로 알린다.
33
+ pattern은 틀린 문제가 있다는 한 줄, partial_pattern은 100점보다 낮을 때 점수 상자 (채점하지 않을 때 "제출했어요."는 보임) */
34
+ body.qz-page .ec-result.ok,
35
+ body.qz-page .ec-result.no {
36
+ display: none;
37
+ }
38
+ .qz-result.qz-overall {
39
+ box-sizing: border-box;
40
+ width: 100%;
41
+ max-width: 720px;
42
+ margin: 0 auto 16px;
43
+ }
44
+ /* 불러오는 자리 (ui/templates/page.js loading · HTML의 #app 안): 질문 막대 + 보기 막대 넷.
45
+ 0.2초 기다렸다 나타나 빨리 열리면 보이지 않고, 막대는 2초마다 천천히 옅어졌다 돌아온다 */
46
+ .qz-skeleton {
47
+ display: flex;
48
+ flex-direction: column;
49
+ gap: var(--qz-list-gap);
50
+ opacity: 0;
51
+ animation: qz-sk-show 0s linear 0.2s forwards;
52
+ }
53
+ @keyframes qz-sk-show {
54
+ to {
55
+ opacity: 1;
56
+ }
57
+ }
58
+ .qz-sk {
59
+ display: block;
60
+ border-radius: var(--qz-radius);
61
+ background: color-mix(in srgb, var(--eds-text-primary) 11%, transparent);
62
+ animation: qz-sk-pulse 2s ease-in-out 0.5s infinite;
63
+ }
64
+ .qz-sk-title {
65
+ width: 70%;
66
+ height: 24px;
67
+ margin-bottom: 8px;
68
+ border-radius: 4px;
69
+ }
70
+ .qz-sk-option {
71
+ height: 52px;
72
+ }
73
+ @keyframes qz-sk-pulse {
74
+ 0%,
75
+ 100% {
76
+ opacity: 1;
77
+ }
78
+ 50% {
79
+ opacity: 0.4;
80
+ }
81
+ }
82
+ @media (prefers-reduced-motion: reduce) {
83
+ .qz-sk {
84
+ animation: none;
85
+ }
86
+ }
87
+ /* 불러오는 자리에서 내용으로 바뀔 때 0.15초 나타나기 */
88
+ .qz-enter {
89
+ animation: qz-enter 0.15s ease-out;
90
+ }
91
+ @keyframes qz-enter {
92
+ from {
93
+ opacity: 0;
94
+ }
95
+ }
96
+ @media (prefers-reduced-motion: reduce) {
97
+ .qz-enter {
98
+ animation: none;
99
+ }
100
+ }
101
+ /* 한국어 문장이 단어 중간에서 줄바꿈되지 않게 */
102
+ .qz-question-title,
103
+ .qz-option > span {
104
+ overflow-wrap: anywhere;
105
+ word-break: keep-all;
10
106
  }
11
107
  .qz-muted {
12
108
  color: var(--ec-muted);
@@ -24,11 +120,28 @@
24
120
  gap: var(--qz-card-gap);
25
121
  min-width: 0;
26
122
  }
123
+ /* 결과는 카드 테두리가 아니라 학생이 낸 답(고른 보기 · 쓴 답 · 놓은 칸)에 결과 색으로 보인다 */
27
124
  .qz-question[data-result='correct'] {
28
- border-color: var(--qz-correct);
125
+ --qz-result-bg: var(--qz-correct-bg);
126
+ --qz-result-border: var(--qz-correct);
29
127
  }
30
128
  .qz-question[data-result='wrong'] {
31
- border-color: var(--qz-wrong);
129
+ --qz-result-bg: var(--qz-wrong-bg);
130
+ --qz-result-border: var(--qz-wrong);
131
+ }
132
+ .qz-question[data-result] .qz-text:not(:placeholder-shown) {
133
+ border-color: var(--qz-result-border);
134
+ }
135
+ /* 순서 맞추기: 고른 보기마다 결과 색 테두리 · 번호 */
136
+ .qz-question[data-result] .qz-order-option.is-picked {
137
+ border-color: var(--qz-result-border);
138
+ }
139
+ .qz-question[data-result] .qz-order-option.is-picked .qz-order-no {
140
+ background: var(--qz-result-border);
141
+ }
142
+ /* 그룹 분류: 그룹에 놓은 보기마다 결과 색 테두리 */
143
+ .qz-question[data-result] .qz-group .qz-chip-group {
144
+ border-color: var(--qz-result-border);
32
145
  }
33
146
  /* EDS subtitle2: 18px / 800 / 1.5. legend를 테두리 위가 아니라 카드 안에 두려고 float */
34
147
  .qz-question-head {
@@ -79,8 +192,8 @@
79
192
  color: var(--ec-muted);
80
193
  }
81
194
 
82
- /* RadioCard: 간격 8px · 여백 20px · 모서리 12px · 테두리 surface.border,
83
- hover action.hover, checked = primary 테두리 + primary.opacity02 배경 */
195
+ /* 보기 카드: 간격 8px · 여백 16px · 모서리 12px · 회색 면(테두리 없음),
196
+ hover action.hover, checked = primary.opacity03 면 (값은 ui/theme.css --qz-option-*) */
84
197
  .qz-options {
85
198
  display: flex;
86
199
  flex-direction: column;
@@ -148,6 +261,34 @@
148
261
  .qz-question:disabled .qz-option:hover {
149
262
  background: var(--qz-option-bg);
150
263
  }
264
+ /* 제출 뒤 고른 보기: 결과 색 테두리, 면은 고르기 전 색, 단추 자리에 ✓ · ✕ 동그라미 (색만으로 구분하지 않게) */
265
+ .qz-question[data-result] .qz-option:has(input:checked),
266
+ .qz-question[data-result] .qz-option:has(input:checked):hover {
267
+ border-color: var(--qz-result-border);
268
+ background: var(--qz-option-bg);
269
+ }
270
+ .qz-question[data-result] .qz-option input:checked {
271
+ appearance: none;
272
+ box-sizing: border-box;
273
+ width: 18px;
274
+ height: 18px;
275
+ margin: 0;
276
+ padding: 0;
277
+ border: 0;
278
+ border-radius: 0;
279
+ background: var(--qz-result-border);
280
+ mask: none center / contain no-repeat;
281
+ }
282
+ .qz-question[data-result] .qz-option input[type='checkbox']:checked {
283
+ width: 20px;
284
+ height: 20px;
285
+ }
286
+ .qz-question[data-result='correct'] .qz-option input:checked {
287
+ mask-image: var(--qz-icon-correct);
288
+ }
289
+ .qz-question[data-result='wrong'] .qz-option input:checked {
290
+ mask-image: var(--qz-icon-wrong);
291
+ }
151
292
  .qz-text-field {
152
293
  display: flex;
153
294
  flex-direction: column;
@@ -158,23 +299,33 @@
158
299
  resize: vertical;
159
300
  }
160
301
 
161
- /* Alert standard: success / error. 색만으로 구분하지 않게 ✓ · ✕ 기호를 함께 (기호는 화면 읽기에서 읽지 않음) */
302
+ /* Alert standard: success / error. 색만으로 구분하지 않게 ✓ · ✕ 아이콘을 함께 (::before 그림이라 화면 읽기에서 읽지 않음) */
162
303
  .qz-result {
163
304
  margin: 0;
164
- padding: 8px 12px;
305
+ padding: 16px;
165
306
  border-radius: var(--qz-radius);
166
- font-weight: var(--eds-fw-bold);
307
+ font-size: var(--eds-fs-body1);
308
+ line-height: var(--eds-lh-body1);
309
+ font-weight: var(--eds-fw-semibold);
310
+ }
311
+ .qz-result[data-result]:not([hidden]) {
312
+ display: flex;
313
+ align-items: center;
314
+ gap: 10px;
167
315
  }
168
316
  .qz-result[data-result]::before {
169
- margin-right: 6px;
317
+ content: '';
318
+ flex: none;
319
+ width: 20px;
320
+ height: 20px;
321
+ background: currentColor;
322
+ mask: none center / contain no-repeat;
170
323
  }
171
324
  .qz-result[data-result='correct']::before {
172
- content: '✓';
173
- content: '✓' / '';
325
+ mask-image: var(--qz-icon-correct);
174
326
  }
175
327
  .qz-result[data-result='wrong']::before {
176
- content: '✕';
177
- content: '✕' / '';
328
+ mask-image: var(--qz-icon-wrong);
178
329
  }
179
330
  .qz-result[data-result='correct'] {
180
331
  color: var(--qz-correct);
@@ -194,17 +345,27 @@
194
345
  cursor: pointer;
195
346
  font-weight: var(--eds-fw-bold);
196
347
  }
348
+ /* 결과가 보이면 해설은 결과 상자 아래쪽에 이어 붙인다 (제목 줄 없이, 같은 결과 색 면) */
349
+ .qz-question > .qz-result[data-result]:has(+ .qz-explanation:not([hidden])) {
350
+ border-radius: var(--qz-radius) var(--qz-radius) 0 0;
351
+ padding-bottom: 4px;
352
+ }
353
+ .qz-question > .qz-result[data-result] + .qz-explanation:not([hidden]) {
354
+ margin-top: calc(-1 * var(--qz-card-gap));
355
+ padding: 0 16px 16px;
356
+ border-radius: 0 0 var(--qz-radius) var(--qz-radius);
357
+ background: var(--qz-result-bg);
358
+ color: var(--eds-text-primary);
359
+ }
360
+ .qz-question > .qz-result[data-result] + .qz-explanation summary {
361
+ display: none;
362
+ }
197
363
 
198
- /* 끌어 놓기 공통 */
364
+ /* 끌어 놓기 (그룹 분류): 아직 놓지 않은 보기 줄 */
199
365
  .qz-pool {
200
366
  display: flex;
201
367
  flex-wrap: wrap;
202
368
  gap: var(--qz-list-gap);
203
- min-height: var(--qz-slot-min-height);
204
- padding: 12px;
205
- border: 1px dashed var(--qz-border);
206
- border-radius: var(--qz-radius-card);
207
- background: var(--qz-surface-muted);
208
369
  align-content: flex-start;
209
370
  }
210
371
  .qz-chip-option {
@@ -233,14 +394,27 @@
233
394
  .qz-chip-option[data-dragging] {
234
395
  opacity: 0.38;
235
396
  }
236
- /* 그룹 분류 보기: 바깥(.qz-chip-option)이 보기 모양, 안에 고르기 버튼과 빼기 버튼이 형제로 있다 */
397
+ /* 그룹 분류 보기: 바깥(.qz-chip-option)이 보기 모양, 안에 고르기 버튼과 빼기 버튼이 형제로 있다.
398
+ 보기 카드처럼 회색 면 · 테두리 없음, 앞에 끌기 손잡이 점 */
237
399
  .qz-chip-group {
238
400
  gap: 4px;
401
+ border-color: transparent;
402
+ background: var(--qz-option-bg);
403
+ }
404
+ .qz-chip-group:hover {
405
+ background: var(--qz-option-hover-bg);
406
+ }
407
+ .qz-chip-grip {
408
+ flex: none;
409
+ color: var(--eds-text-tertiary);
239
410
  }
240
411
  .qz-chip-group:has(.qz-chip-x) {
241
412
  padding-right: 6px;
242
413
  }
243
414
  .qz-chip-pick {
415
+ display: inline-flex;
416
+ align-items: center;
417
+ gap: 6px;
244
418
  min-height: 0;
245
419
  padding: 0;
246
420
  border: 0;
@@ -248,6 +422,10 @@
248
422
  color: inherit;
249
423
  font: inherit;
250
424
  white-space: normal;
425
+ /* 띄어쓰기 없는 긴 보기도 칩 안에서 끊는다 (한국어는 단어 단위) */
426
+ min-width: 0;
427
+ overflow-wrap: anywhere;
428
+ word-break: keep-all;
251
429
  text-align: left;
252
430
  cursor: inherit;
253
431
  }
@@ -300,71 +478,134 @@
300
478
  background: var(--eds-primary-opacity02);
301
479
  }
302
480
 
303
- /* 순서 맞추기 */
304
- .qz-order {
305
- display: grid;
306
- grid-template-columns: 1fr auto 1fr;
307
- gap: var(--qz-card-gap);
308
- align-items: start;
481
+ /* 순서 맞추기: 보기 목록에서 정답 순서대로 누르면 번호가 붙는다 (보기 카드와 같은 면) */
482
+ .qz-order-pick {
483
+ display: flex;
484
+ flex-direction: column;
485
+ gap: 12px;
309
486
  }
310
- .qz-order-arrow {
311
- align-self: center;
312
- color: var(--qz-text-muted);
313
- font-size: 20px;
487
+ .qz-order-head {
488
+ display: flex;
489
+ justify-content: space-between;
490
+ align-items: center;
491
+ gap: 12px;
492
+ min-height: 30px;
314
493
  }
315
- .qz-slots {
316
- list-style: none;
494
+ .qz-order-head .qz-link[data-hidden] {
495
+ visibility: hidden;
496
+ }
497
+ .qz-order-hint {
317
498
  margin: 0;
318
- padding: 0;
499
+ color: var(--eds-text-secondary);
500
+ font-size: var(--eds-fs-body2);
501
+ }
502
+ .qz-order-list {
319
503
  display: flex;
320
504
  flex-direction: column;
321
505
  gap: var(--qz-list-gap);
322
506
  }
323
- .qz-slot {
507
+ button.qz-order-option {
324
508
  display: flex;
325
509
  align-items: center;
326
- gap: 10px;
327
- min-height: var(--qz-slot-min-height);
328
- padding: 8px 12px;
329
- border: 1px dashed var(--qz-border);
330
- border-radius: var(--qz-radius-card);
331
- background: var(--qz-surface);
510
+ gap: 12px;
511
+ width: 100%;
512
+ min-height: 44px;
513
+ padding: var(--qz-option-padding);
514
+ border: 1px solid var(--qz-option-border);
515
+ border-radius: var(--qz-option-radius);
516
+ background: var(--qz-option-bg);
517
+ color: inherit;
518
+ font: inherit;
519
+ font-size: var(--eds-fs-body1);
520
+ font-weight: inherit;
521
+ line-height: inherit;
522
+ text-align: left;
523
+ white-space: normal;
524
+ cursor: pointer;
525
+ transition:
526
+ background-color 150ms ease-in-out,
527
+ border-color 150ms ease-in-out;
528
+ }
529
+ button.qz-order-option:hover {
530
+ background: var(--qz-option-hover-bg);
531
+ }
532
+ button.qz-order-option.is-picked,
533
+ button.qz-order-option.is-picked:hover {
534
+ background: var(--qz-option-checked-bg);
535
+ }
536
+ button.qz-order-option[aria-disabled='true'] {
537
+ opacity: 0.5;
538
+ cursor: not-allowed;
539
+ }
540
+ button.qz-order-option:focus-visible {
541
+ outline: 2px solid var(--qz-accent);
542
+ outline-offset: 2px;
332
543
  }
333
- .qz-slot-no {
544
+ .qz-order-no {
334
545
  flex: none;
335
- width: 24px;
336
- height: 24px;
337
- border-radius: 50%;
338
- background: var(--qz-accent-softer);
339
- color: var(--qz-accent);
340
546
  display: grid;
341
547
  place-items: center;
342
- font-size: 12px;
548
+ width: 24px;
549
+ height: 24px;
550
+ border-radius: 6px;
551
+ background: color-mix(in srgb, var(--eds-text-primary) 8%, transparent);
552
+ color: var(--qz-accent-contrast);
553
+ font-size: var(--eds-fs-body2);
343
554
  font-weight: var(--eds-fw-bold);
555
+ line-height: 1;
556
+ }
557
+ .qz-order-option.is-picked .qz-order-no {
558
+ background: var(--qz-accent);
559
+ }
560
+ .qz-order-text {
561
+ min-width: 0;
562
+ white-space: normal;
563
+ overflow-wrap: anywhere;
564
+ word-break: keep-all;
565
+ }
566
+ .qz-question:disabled button.qz-order-option {
567
+ cursor: default;
344
568
  }
345
569
 
346
- /* 그룹 분류 */
570
+ /* 그룹 분류: 위에 보기(풀), 아래에 그룹 상자 격자 (그룹 수에 따라 1 · 2 · 3열, 좁은 화면은 1열) */
347
571
  .qz-groups {
572
+ display: flex;
573
+ flex-direction: column;
574
+ gap: var(--qz-card-gap);
575
+ }
576
+ .qz-group-grid {
348
577
  display: grid;
349
- grid-template-columns: 1fr minmax(0, 1fr) 1fr;
578
+ grid-template-columns: repeat(var(--qz-group-cols, 2), minmax(0, 1fr));
350
579
  gap: var(--qz-card-gap);
351
580
  align-items: start;
581
+ margin-top: 8px;
352
582
  }
353
- .qz-group-col {
354
- display: flex;
355
- flex-direction: column;
356
- gap: var(--qz-card-gap);
583
+ .qz-group-grid[data-cols='1'] {
584
+ --qz-group-cols: 1;
585
+ }
586
+ .qz-group-grid[data-cols='3'] {
587
+ --qz-group-cols: 3;
357
588
  }
358
589
  .qz-group {
359
- border: 1px solid var(--qz-border);
360
590
  border-radius: var(--qz-radius-card);
361
- background: var(--qz-surface);
362
- padding: 12px;
591
+ background: var(--qz-surface-muted);
592
+ padding: 16px;
363
593
  cursor: pointer;
364
594
  }
595
+ .qz-group .qz-chip-group {
596
+ background: var(--qz-surface);
597
+ }
598
+ .qz-group .qz-chip-group:hover {
599
+ background: linear-gradient(var(--qz-hover), var(--qz-hover)), var(--qz-surface);
600
+ }
601
+ .qz-group .ec-dropzone {
602
+ background: none;
603
+ }
365
604
  .qz-group-name {
366
605
  margin: 0 0 8px;
367
- font-size: var(--eds-fs-body2);
606
+ color: var(--eds-text-primary);
607
+ font-size: var(--eds-fs-body1);
608
+ line-height: var(--eds-lh-body1);
368
609
  font-weight: var(--eds-fw-bold);
369
610
  }
370
611
  .qz-group-items {
@@ -397,6 +638,10 @@
397
638
  font-weight: var(--eds-fw-bold);
398
639
  margin-bottom: 6px;
399
640
  }
641
+ .qz-pool-head > span {
642
+ color: var(--eds-text-secondary);
643
+ font-weight: var(--eds-fw-medium);
644
+ }
400
645
 
401
646
  @media (max-width: 767.98px) {
402
647
  /* 좁은 화면: 문항 머리의 아이콘 버튼을 좁혀 유형 이름이 덜 잘리게 */
@@ -406,19 +651,9 @@
406
651
  .qe-card-head .ec-icon-button {
407
652
  width: 32px;
408
653
  }
409
- .qz-order {
410
- grid-template-columns: 1fr;
411
- }
412
- .qz-order-arrow {
413
- transform: rotate(90deg);
414
- justify-self: center;
415
- }
416
- .qz-groups {
654
+ .qz-group-grid {
417
655
  grid-template-columns: 1fr;
418
656
  }
419
- .qz-group-pool {
420
- order: -1;
421
- }
422
657
  /* 좁은 화면: 그룹 고르기는 보기 글 아래 줄로 (보기 글 칸이 좁아지지 않게) */
423
658
  .qe-option:has(.qe-answer-group) {
424
659
  display: grid;
@@ -435,163 +670,349 @@
435
670
  }
436
671
 
437
672
  /* ---------- 편집 ---------- */
438
- .qe-card {
439
- display: flex;
440
- flex-direction: column;
441
- gap: 16px;
442
- padding: var(--qz-card-padding);
443
- border: 0;
444
- border-radius: var(--qz-radius-card);
445
- background: var(--qz-surface);
673
+ /* 편집 화면의 공용 모양(회색 바탕 · 흰 저장 바 · 카드 · 밑줄 칸 · 섹션 · "+ 추가" 열기 버튼 · 토글 칩 · 보기 줄 · 정답 표시 ·
674
+ 추가 버튼 · ⓘ 안내 · 스낵바)은 키트 lib/elice-content.css "편집 화면" 절이 그린다: edit.html의 <body class="ec-edit-page">와
675
+ ui/templates/edit.js가 qe-*와 함께 붙이는 .ec-* 클래스. 여기에는 퀴즈에만 있는 것: 라벨 있는 칸 · 정답 오류 ·
676
+ 그룹 분류 · 순서 맞추기 편집판, 그리고 퀴즈만 키트와 다르게 그리는 곳(연주님 퀴즈 수정본) */
677
+
678
+ /* 퀴즈만: 저장 바는 페이지와 같은 회색 바탕 (키트 기본은 흰 바) */
679
+ body.ec-edit-page .ec-submitbar {
680
+ background: var(--ec-edit-page-bg);
446
681
  }
447
- .qe-card-head {
448
- display: flex;
449
- /* 좁은 화면에서도 ↑ · ↓ · 삭제가 다음 줄로 넘어가지 않게, 대신 유형 선택이 줄어듦 */
450
- flex-wrap: nowrap;
451
- align-items: center;
452
- gap: 8px;
453
- font-size: var(--eds-fs-subtitle2);
454
- font-weight: var(--eds-fw-extrabold);
682
+ /* 퀴즈만: 정답으로 고른 보기 줄은 밑줄 색 대신 줄 끝 "정답" 표시로 (.qe-correct-tag). 밑줄은 다른 줄과 같게 */
683
+ .qe-option[data-correct] .qe-option-text {
684
+ border-bottom-color: var(--ec-border);
455
685
  }
456
- .qe-card-head > strong {
457
- flex: none;
458
- white-space: nowrap;
459
- /* <strong>의 기본 굵기(bolder)를 쓰지 않고 semibold로 고정 */
686
+ .qe-option[data-correct] .qe-option-text:hover:not(:focus) {
687
+ border-bottom-color: var(--ec-edit-hover-line);
688
+ }
689
+ /* 퀴즈만: "+ 문항 추가"는 강조색 윤곽선 버튼 (테두리 강조색 50%, 높이 40px). 키트 기본은 회색 점선 */
690
+ button.qe-add-question {
691
+ min-height: 0;
692
+ padding: 7px 15px;
693
+ border: 1px solid color-mix(in srgb, var(--qz-accent) 50%, transparent);
694
+ border-radius: 8px;
695
+ background: none;
696
+ color: var(--qz-accent);
697
+ font-size: 14px;
698
+ line-height: 24px;
460
699
  font-weight: var(--eds-fw-semibold);
461
700
  }
462
- .qe-type {
463
- width: auto;
464
- min-width: 0;
465
- flex: 0 1 auto;
466
- text-overflow: ellipsis;
467
- margin-right: auto;
468
- font-size: var(--eds-fs-body2);
469
- /* 문항 머리(굵은 글씨)를 물려받지 않게 */
470
- font-weight: 400;
701
+ @media (hover: hover) {
702
+ button.qe-add-question:hover {
703
+ border-color: var(--qz-accent);
704
+ background: var(--eds-primary-opacity01);
705
+ color: var(--qz-accent);
706
+ }
471
707
  }
472
- .qe-field {
473
- display: flex;
474
- flex-direction: column;
475
- gap: 6px;
708
+ button.qe-add-question:focus-visible,
709
+ button.qe-add-question:active {
710
+ background: color-mix(in srgb, var(--qz-accent) 30%, transparent);
476
711
  }
477
- .qe-label {
478
- font-weight: var(--eds-fw-bold);
479
- display: flex;
480
- align-items: center;
481
- gap: 8px;
712
+ button.qe-add-question:disabled {
713
+ border-color: var(--eds-surface-border);
714
+ background: none;
715
+ color: var(--eds-action-disabled);
482
716
  }
483
- .qe-required {
484
- color: var(--eds-error-main);
717
+ /* 퀴즈만: 그룹 상자 · 오답 보기 상자 안 "+ 보기 추가"는 작은 회색 윤곽선 버튼, 왼쪽 정렬 (키트 기본은 전체 너비 회색 면) */
718
+ .qe-group .qe-options > button.qe-add {
719
+ align-self: flex-start;
720
+ min-height: 0;
721
+ padding: 4px 11px;
722
+ border: 1px solid var(--eds-surface-border);
723
+ border-radius: 6px;
724
+ background: none;
725
+ color: var(--eds-secondary-main);
726
+ font-size: 13px;
727
+ line-height: 22px;
728
+ font-weight: var(--eds-fw-semibold);
485
729
  }
486
- .qe-optional,
487
- .qe-hint,
488
- .qe-count {
489
- color: var(--eds-text-secondary);
490
- font-weight: var(--eds-fw-medium);
491
- font-size: var(--eds-fs-caption);
730
+ @media (hover: hover) {
731
+ .qe-group .qe-options > button.qe-add:hover {
732
+ border-color: var(--ec-edit-hover-line);
733
+ background: var(--eds-action-hover);
734
+ }
492
735
  }
493
- .qe-count {
494
- align-self: flex-end;
736
+ .qe-group .qe-options > button.qe-add:focus-visible,
737
+ .qe-group .qe-options > button.qe-add:active {
738
+ background: color-mix(in srgb, var(--eds-secondary-main) 30%, transparent);
495
739
  }
496
- .qe-number {
497
- width: 120px;
498
- }
499
- .qe-section {
500
- display: flex;
501
- flex-direction: column;
502
- gap: 8px;
740
+ .qe-group .qe-options > button.qe-add:disabled {
741
+ border-color: var(--eds-surface-border);
742
+ background: none;
743
+ color: var(--eds-action-disabled);
503
744
  }
504
- .qe-options {
505
- display: flex;
506
- flex-direction: column;
507
- gap: var(--qz-list-gap);
745
+
746
+ /* ----- 퀴즈만: 연주님 최종 수정본 (편집 화면) ----- */
747
+ /* 카드 머리 "문항 N"은 회색 글자 */
748
+ .qe-card-head > strong {
749
+ color: var(--eds-text-secondary);
508
750
  }
509
- .qe-option {
510
- display: flex;
751
+ /* 유형 고르기: 회색 알약 버튼 (유형 아이콘 · 이름 · ∨). 누르면 아래에 목록(.qe-menu) */
752
+ .qe-card-head button.qe-type {
753
+ display: inline-flex;
511
754
  align-items: center;
512
755
  gap: 6px;
513
- border-radius: var(--eds-radius);
514
- transition: transform 150ms ease-in-out;
756
+ flex: 0 1 auto;
757
+ min-width: 0;
758
+ min-height: 0;
759
+ margin-right: auto;
760
+ padding: 5px 12px;
761
+ border: 0;
762
+ border-radius: 6px;
763
+ background: var(--qz-surface-muted);
764
+ color: var(--eds-text-primary);
765
+ font-size: 13px;
766
+ font-weight: var(--eds-fw-semibold);
767
+ line-height: 22px;
768
+ cursor: pointer;
515
769
  }
516
- /* 끄는 줄은 손가락을 바로 따라오고(전환 없음) 위에 뜬다 */
517
- .qe-option[data-dragging] {
518
- position: relative;
519
- z-index: 1;
520
- transition: none;
770
+ .qe-type svg {
771
+ flex: none;
772
+ }
773
+ .qe-type-label {
774
+ min-width: 0;
775
+ overflow: hidden;
776
+ text-overflow: ellipsis;
777
+ white-space: nowrap;
778
+ }
779
+ @media (hover: hover) {
780
+ .qe-card-head button.qe-type:hover {
781
+ background: linear-gradient(var(--eds-action-hover), var(--eds-action-hover)), var(--qz-surface-muted);
782
+ }
783
+ }
784
+ .qe-card-head button.qe-type:focus-visible,
785
+ .qe-card-head button.qe-type:active,
786
+ .qe-card-head button.qe-type[aria-expanded='true'] {
787
+ background: linear-gradient(
788
+ color-mix(in srgb, var(--eds-background-inverse) 8%, transparent),
789
+ color-mix(in srgb, var(--eds-background-inverse) 8%, transparent)
790
+ ),
791
+ var(--qz-surface-muted);
792
+ }
793
+ /* 유형 목록 (EDS Menu): body에 붙어 버튼 아래에 뜬다. 고른 항목은 회색 면 + 체크 */
794
+ .qe-menu {
795
+ position: fixed;
796
+ z-index: 30;
797
+ box-sizing: border-box;
798
+ max-height: min(320px, 100vh - 16px);
799
+ overflow-y: auto;
800
+ padding: 8px;
801
+ border: 1px solid var(--eds-divider);
802
+ border-radius: 8px;
521
803
  background: var(--eds-background-paper);
522
- box-shadow: var(--ec-shadow);
804
+ color: var(--eds-text-primary);
805
+ box-shadow:
806
+ 0 3px 3px -2px #0003,
807
+ 0 3px 4px #00000024,
808
+ 0 1px 8px #0000001f;
809
+ }
810
+ .qe-menu-item {
811
+ display: flex;
812
+ align-items: center;
813
+ box-sizing: border-box;
814
+ height: 40px;
815
+ padding: 10px 8px;
816
+ border-radius: 4px;
817
+ font-size: 14px;
818
+ font-weight: var(--eds-fw-medium);
819
+ white-space: nowrap;
820
+ outline: none;
821
+ cursor: pointer;
523
822
  }
524
- /* 끌기 손잡이: 터치에서 화면이 스크롤되지 않게 touch-action: none */
525
- .qe-handle {
823
+ .qe-menu-item > svg {
526
824
  flex: none;
527
- width: 32px;
528
- min-height: 40px;
529
- padding: 0;
530
- border: 0;
531
- background: none;
532
- color: var(--qz-text-muted);
533
- font-size: 18px;
534
- cursor: grab;
535
- touch-action: none;
825
+ box-sizing: content-box;
826
+ width: 20px;
827
+ height: 20px;
828
+ padding-right: 12px;
829
+ color: var(--eds-action-active);
536
830
  }
537
- .qe-handle:hover {
538
- background: var(--qz-hover);
539
- color: var(--eds-text-secondary);
831
+ .qe-menu-check {
832
+ display: inline-flex;
833
+ margin-left: auto;
834
+ padding-left: 16px;
835
+ color: var(--qz-accent);
540
836
  }
541
- .qe-option[data-dragging] .qe-handle {
542
- cursor: grabbing;
837
+ .qe-menu-check svg {
838
+ width: 18px;
839
+ height: 18px;
543
840
  }
544
- .qe-option-no {
545
- flex: none;
546
- width: 24px;
547
- text-align: center;
548
- color: var(--qz-text-muted);
549
- font-weight: var(--eds-fw-bold);
841
+ .qe-menu-item:hover,
842
+ .qe-menu-item:focus-visible {
843
+ background: var(--eds-action-hover);
844
+ }
845
+ .qe-menu-item[aria-selected='true'] {
846
+ background: var(--eds-action-selected);
847
+ }
848
+ .qe-menu-item[aria-selected='true']:hover,
849
+ .qe-menu-item[aria-selected='true']:focus-visible {
850
+ background: color-mix(in srgb, var(--eds-action-selected) 100%, var(--eds-action-hover));
851
+ }
852
+ .qe-menu-item:focus-visible {
853
+ box-shadow: inset 0 0 0 2px var(--qz-accent);
550
854
  }
551
- .qe-option-text {
855
+ /* 손가락 화면: 목록 글자 16px (작은 글자를 눌러 확대되지 않게, 키트 모바일 규칙) */
856
+ @media (pointer: coarse) {
857
+ .qe-menu-item {
858
+ font-size: 16px;
859
+ }
860
+ }
861
+ /* 긴 보기 · 주관식 정답 · 그룹 이름 · 질문 · 입력란 힌트: 칸 안에서 다음 줄로 넘겨 다 보인다 (textarea, 높이는 글에 맞춤).
862
+ 연주님 디자인(2026-11-18) 그대로: 글꼴은 둘레 글을 따르고(font: inherit — 보기 · 정답 · 그룹 이름은 body2 14px, 모바일 13px · 보통 굵기,
863
+ 줄 간격도 둘레를 따름), 낱말 중간에서도 끊는다(word-break 기본) */
864
+ textarea.qe-inline-input {
865
+ font: inherit;
866
+ white-space: pre-wrap;
867
+ overflow-wrap: anywhere;
868
+ display: block;
869
+ }
870
+ textarea.qe-option-text,
871
+ textarea.qe-group-name {
872
+ min-height: 0;
873
+ }
874
+ /* 줄이 늘어도 손잡이 · 정답 표시 · 번호 · 그룹 고르기 · ✕는 첫 줄(높이 40px)에 맞춰 위에 둔다 */
875
+ .qe-option {
876
+ align-items: flex-start;
877
+ }
878
+ .qe-option > :not(.qe-option-field):not(textarea) {
879
+ align-self: flex-start;
880
+ }
881
+ .qe-option > .ec-icon-button,
882
+ .qe-option > .qe-option-no {
883
+ margin-top: calc((40px - var(--qe-row-control, 32px)) / 2);
884
+ }
885
+ .qe-option > .qe-answer {
886
+ min-height: 40px;
887
+ }
888
+ /* 보기 칸 + 정답 표시: 정답으로 고른 줄 끝에 "정답" */
889
+ .qe-option-field {
890
+ position: relative;
891
+ display: flex;
552
892
  flex: 1 1 0;
553
893
  min-width: 0;
554
894
  }
555
- /* 보기 줄의 정답 칸: radio · checkbox (누르는 영역 40px). 이름표는 목록 위 "정답" 열 머리 하나 */
556
- .qe-answer-col {
557
- flex: none;
558
- width: 40px;
559
- display: flex;
560
- align-items: center;
561
- justify-content: center;
895
+ .qe-correct-tag {
896
+ visibility: hidden;
897
+ position: absolute;
898
+ /* 첫 줄 가운데 (칸 위아래 여백 8px + 줄 높이 24px의 반) */
899
+ top: 20px;
900
+ right: 8px;
901
+ transform: translateY(-50%);
902
+ color: var(--eds-primary-main);
903
+ font-size: var(--eds-fs-body2);
904
+ font-weight: var(--eds-fw-semibold);
905
+ line-height: 1;
906
+ white-space: nowrap;
907
+ pointer-events: none;
562
908
  }
563
- .qe-answer {
564
- min-height: 40px;
565
- cursor: pointer;
909
+ :root[data-eds-theme='dark'] .qe-correct-tag {
910
+ color: var(--eds-primary-light);
566
911
  }
567
- /* 정답 표시: 고르면 보라색 채움 + 흰 체크 (단일은 원, 복수는 둥근 사각형) */
568
- .qe-answer input {
569
- appearance: none;
570
- -webkit-appearance: none;
571
- width: 22px;
572
- height: 22px;
573
- margin: 0;
574
- padding: 0;
575
- border: 2px solid var(--eds-action-disabled, #c4cad1);
576
- border-radius: 50%;
577
- background: var(--qz-surface) center / 14px no-repeat;
578
- cursor: pointer;
912
+ .qe-option[data-correct] .qe-correct-tag {
913
+ visibility: visible;
579
914
  }
580
- .qe-answer input[type='checkbox'] {
581
- border-radius: 6px;
915
+ .qe-option-field:has(.qe-correct-tag) .qe-option-text {
916
+ padding-right: 52px;
582
917
  }
583
- .qe-answer input:checked {
584
- border-color: var(--qz-accent);
585
- background-color: var(--qz-accent);
586
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
918
+ /* 밑줄 칸: 왼쪽 여백 8px, 안내 글은 tertiary */
919
+ .qe-card .qe-inline-input {
920
+ padding: 8px 12px 8px 8px;
587
921
  }
588
- .qe-answer input:focus-visible {
589
- outline: 2px solid var(--qz-accent);
590
- outline-offset: 2px;
922
+ .qe-card .qe-inline-input::placeholder {
923
+ color: var(--eds-text-tertiary);
591
924
  }
592
- /* 정답으로 고른 줄 (그룹은 그룹에 넣은 보기): 윤곽선 없는 칸이라 배경 없이 보라 밑줄로 (체크 원과 함께 알림) */
593
- .qe-option[data-correct] .qe-option-text {
594
- border-bottom-color: var(--qz-accent);
925
+ /* 목록 끝 "+ 보기 추가"는 옅은 회색 면, 목록과 8px 띄움 */
926
+ .qe-options > button.qe-add {
927
+ margin-top: 8px;
928
+ background: var(--qz-surface-muted);
929
+ }
930
+ @media (hover: hover) {
931
+ .qe-options > button.qe-add:hover {
932
+ background: linear-gradient(var(--eds-action-hover), var(--eds-action-hover)), var(--qz-surface-muted);
933
+ }
934
+ }
935
+ .qe-options > button.qe-add:focus-visible,
936
+ .qe-options > button.qe-add:active {
937
+ background: linear-gradient(
938
+ color-mix(in srgb, var(--eds-background-inverse) 8%, transparent),
939
+ color-mix(in srgb, var(--eds-background-inverse) 8%, transparent)
940
+ ),
941
+ var(--qz-surface-muted);
942
+ }
943
+ /* 열린 해설 · 입력란 힌트: 회색 상자 안에 */
944
+ .qe-reveal-card .qe-reveal-body {
945
+ padding: 16px;
946
+ border-radius: 12px;
947
+ background: var(--qz-surface-muted);
948
+ }
949
+ .qe-inline + .qe-reveal:has(.qe-reveal-body:not([hidden])) {
950
+ margin-top: 0;
951
+ }
952
+ .qe-groups > .qe-reveal {
953
+ margin-top: 4px;
954
+ }
955
+ /* 지울 수 없는 줄 · 그룹 · 상자의 ✕는 감춘다 (자리는 그대로) */
956
+ .qe-option [data-role='delete']:disabled,
957
+ .qe-group-head [data-role='group-delete']:disabled,
958
+ .qe-group-head [data-role='none-close']:disabled {
959
+ visibility: hidden;
960
+ }
961
+ /* 작은 버튼의 누르는 영역을 둘레로 넓힌다 (모양은 그대로) */
962
+ .qe-card button.ec-icon-button,
963
+ .qe-card-head button.qe-type,
964
+ .qe-reveal-button,
965
+ .qe-options > .qe-add,
966
+ .qe-add-question {
967
+ position: relative;
968
+ }
969
+ .qe-card button.ec-icon-button::after,
970
+ .qe-card-head button.qe-type::after,
971
+ .qe-reveal-button::after {
972
+ content: '';
973
+ position: absolute;
974
+ inset: -8px;
975
+ }
976
+ .qe-card-head button.ec-icon-button::after {
977
+ inset: -7px;
978
+ }
979
+ .qe-card-head button.qe-type::after,
980
+ .qe-reveal-button::after {
981
+ inset: -6px;
982
+ }
983
+ .qe-options > .qe-add::after,
984
+ .qe-add-question::after {
985
+ content: '';
986
+ position: absolute;
987
+ inset: -2px 0;
988
+ }
989
+
990
+ .qe-field {
991
+ display: flex;
992
+ flex-direction: column;
993
+ gap: 6px;
994
+ }
995
+ .qe-label {
996
+ font-weight: var(--eds-fw-bold);
997
+ display: flex;
998
+ align-items: center;
999
+ gap: 8px;
1000
+ }
1001
+ .qe-required {
1002
+ color: var(--eds-error-main);
1003
+ }
1004
+ .qe-optional,
1005
+ .qe-hint,
1006
+ .qe-count {
1007
+ color: var(--eds-text-secondary);
1008
+ font-weight: var(--eds-fw-medium);
1009
+ font-size: var(--eds-fs-caption);
1010
+ }
1011
+ .qe-count {
1012
+ align-self: flex-end;
1013
+ }
1014
+ .qe-number {
1015
+ width: 120px;
595
1016
  }
596
1017
  /* 그룹 분류 보기 줄의 정답 그룹 고르기: 보기 글 뒤, 삭제 버튼(40px) 앞 */
597
1018
  .qe-answer-group {
@@ -628,544 +1049,745 @@
628
1049
  color: var(--eds-text-tertiary);
629
1050
  font-size: var(--eds-fs-caption);
630
1051
  }
631
- .qe-add {
632
- align-self: stretch;
633
- border-style: dashed;
1052
+ /* "설명 추가"처럼 머리줄 없이 여는 칸: 열리면 밑줄 칸 옆에 지우기 ✕ (해설처럼 머리줄이 있는 칸은 키트 모양 그대로) */
1053
+ .qe-reveal:not(.qe-reveal-card) > .qe-reveal-body {
1054
+ flex-direction: row;
1055
+ align-items: flex-start;
634
1056
  }
635
- /* 보기 · 그룹 추가: EDS Button contained · color inherit · medium (elice-design-system@7f3366a, button.ts).
636
- 회색 채움(라이트 bluegray200, hover bluegray300 · 다크 gray700, hover gray800), 14px / 600, 여백 8px 16px, 모서리 8px.
637
- 문항 추가(보라 점선)와 구분한다. 키트 기본 button의 min-height 44px는 풀어 40px로 */
638
- .qe-options > .qe-add {
639
- min-height: 0;
640
- padding: 8px 16px;
641
- border: 0;
642
- border-radius: 8px;
643
- background: var(--eds-color-bluegray-200);
644
- color: var(--eds-text-primary);
1057
+ .qe-reveal-body > .qe-inline {
1058
+ flex: 1;
1059
+ min-width: 0;
645
1060
  }
646
- @media (hover: hover) {
647
- .qe-options > .qe-add:hover {
648
- background: var(--eds-color-bluegray-300);
649
- }
1061
+
1062
+ /* 그룹 분류 편집판 (그룹별 상자): 그룹마다 상자, 그 안에 보기. 왼쪽 여백은 끌기 손잡이 자리 */
1063
+ .qe-groups {
1064
+ display: flex;
1065
+ flex-direction: column;
1066
+ gap: 12px;
1067
+ }
1068
+ .qe-group {
1069
+ display: flex;
1070
+ flex-direction: column;
1071
+ gap: 8px;
1072
+ padding: 16px 16px 16px 24px;
1073
+ border-radius: 12px;
1074
+ background: var(--eds-background-neutral);
650
1075
  }
651
- .qe-options > .qe-add:focus-visible,
652
- .qe-options > .qe-add:active {
653
- background: color-mix(in srgb, var(--eds-color-bluegray-300) 70%, white);
1076
+ .qe-group[data-over] {
1077
+ outline: 2px dashed var(--qz-accent);
1078
+ outline-offset: -2px;
654
1079
  }
655
- .qe-options > .qe-add:disabled {
656
- background: var(--eds-action-disabled-background);
657
- color: var(--eds-action-disabled);
1080
+ .qe-group-none {
1081
+ border: 1px dashed var(--eds-surface-border);
1082
+ background: transparent;
658
1083
  }
659
- :root[data-eds-theme='dark'] .qe-options > .qe-add {
660
- background: var(--eds-color-gray-700);
1084
+ .qe-group-head {
1085
+ display: flex;
1086
+ align-items: center;
1087
+ gap: 8px;
661
1088
  }
662
- :root[data-eds-theme='dark'] .qe-options > .qe-add:hover {
663
- background: var(--eds-color-gray-800);
1089
+ .qe-group-none .qe-group-head strong {
1090
+ font-weight: var(--eds-fw-bold);
664
1091
  }
665
- /* 표시 옵션 (답안 순서 섞기 · 해설): 보기 · 정답과 줄로 나눔 */
666
- /* EDS Chip medium (elice-design-system@7f3366a, chip.spec.md): 높이 32px, 모서리 32px, 라벨 13px / 500, 아이콘 20px(왼쪽 8px, 라벨과 7px).
667
- 꺼짐 = outlined, 켜짐 = muted primary (배경 primary 15% + 흰색, 글자 primary dark · 다크 테마는 배경 primary 30% + 검정, 글자 primary light).
668
- 켜짐은 색 외에 체크 아이콘으로도 알린다. 체크박스는 화면에서만 숨김 */
669
- .qe-switch {
670
- position: relative;
1092
+ .qe-group-badge {
1093
+ flex: none;
671
1094
  display: inline-flex;
672
1095
  align-items: center;
673
- gap: 7px;
674
- height: 32px;
675
- padding: 0 11px 0 8px;
676
- border: 1px solid var(--eds-surface-border);
677
- border-radius: 32px;
678
- background: transparent;
679
- color: var(--eds-text-primary);
680
- font-size: 13px;
681
- font-weight: var(--eds-fw-medium);
682
- line-height: 1.38;
683
- cursor: pointer;
684
- user-select: none;
1096
+ justify-content: center;
1097
+ width: 24px;
1098
+ height: 24px;
1099
+ border-radius: 6px;
1100
+ background: var(--qz-accent);
1101
+ color: var(--qz-accent-contrast);
1102
+ font-size: var(--eds-fs-caption);
1103
+ font-weight: var(--eds-fw-bold);
685
1104
  }
686
- @media (hover: hover) {
687
- .qe-switch:hover {
688
- background: var(--eds-action-hover);
689
- }
1105
+ .qe-group-name {
1106
+ flex: 1;
1107
+ min-width: 0;
1108
+ font-weight: var(--eds-fw-bold);
690
1109
  }
691
- .qe-switch input {
692
- position: absolute;
693
- width: 1px;
694
- height: 1px;
695
- opacity: 0;
696
- pointer-events: none;
1110
+
1111
+ /* 순서 맞추기: 번호 목록도 끌어 놓을 곳이라 놓을 수 있을 때 윤곽을 보인다 */
1112
+ .qe-options[data-group-box][data-over] {
1113
+ outline: 2px dashed var(--qz-accent);
1114
+ outline-offset: 4px;
1115
+ border-radius: 8px;
697
1116
  }
698
- .qe-chip-icon {
699
- display: inline-flex;
1117
+
1118
+ /* ── 연주님 최종 수정본 (퀴즈 최종) ── */
1119
+ /* 문제 제목은 semibold */
1120
+ .qz-question-title {
1121
+ font-weight: var(--eds-fw-semibold);
700
1122
  }
701
- .qe-chip-on {
702
- display: none;
1123
+ /* 지문 · 해설 속 그림 (편집 화면에서 올린 그림 · zip 안 img/) */
1124
+ .qz-image {
1125
+ display: block;
1126
+ max-width: 100%;
1127
+ height: auto;
1128
+ margin: 0 auto 12px;
1129
+ border-radius: var(--qz-radius-card);
703
1130
  }
704
- .qe-switch:has(input:checked) .qe-chip-on {
705
- display: inline-flex;
1131
+ /* 그림을 찾지 못하면 설명 글만 */
1132
+ .qz-image-missing {
1133
+ color: var(--eds-text-tertiary);
706
1134
  }
707
- .qe-switch:has(input:checked) .qe-chip-off {
708
- display: none;
1135
+ .qz-markdown pre code,
1136
+ .qe-wys pre code {
1137
+ padding: 0;
1138
+ background: none;
709
1139
  }
710
- .qe-switch:has(input:checked) {
711
- border-color: transparent;
712
- background: color-mix(in srgb, var(--eds-primary-main) 15%, white);
713
- color: var(--eds-primary-dark);
1140
+ /* 3줄 이상 코드 블록: 왼쪽에 줄 번호 (data-lines) */
1141
+ .qz-markdown pre.qz-lines,
1142
+ .qe-wys pre.qz-lines {
1143
+ position: relative;
1144
+ padding-left: 48px;
1145
+ white-space: pre;
1146
+ overflow-x: auto;
714
1147
  }
715
- :root[data-eds-theme='dark'] .qe-switch:has(input:checked) {
716
- background: color-mix(in srgb, var(--eds-primary-main) 30%, black);
717
- color: var(--eds-primary-light);
1148
+ .qz-markdown pre.qz-lines::before,
1149
+ .qe-wys pre.qz-lines::before {
1150
+ content: attr(data-lines);
1151
+ position: absolute;
1152
+ top: 12px;
1153
+ left: 0;
1154
+ width: 32px;
1155
+ color: var(--eds-text-tertiary);
1156
+ text-align: right;
1157
+ white-space: pre;
1158
+ user-select: none;
1159
+ pointer-events: none;
718
1160
  }
719
- .qe-switch:has(input:focus-visible) {
720
- outline: 2px solid var(--qz-accent);
721
- outline-offset: 2px;
1161
+ .qe-wys pre.qz-lines::before {
1162
+ top: 8px;
722
1163
  }
723
- /* 라벨 없는 바로 쓰는 칸 (퀴즈 제목 · 안내, 질문 · 설명): 테두리 대신 밑줄, 초점이면 강조색 굵은 밑줄 + 옅은 배경 */
724
- .qe-inline {
1164
+
1165
+ /* 지문 · 해설 편집 칸 (core/rich-text.js): 글 칸 · 그림 칸 묶음 전체에 밑줄 하나 */
1166
+ .qe-blocks {
1167
+ gap: 0;
1168
+ border-bottom: 1px solid var(--ec-border);
1169
+ border-radius: var(--eds-radius) var(--eds-radius) 0 0;
1170
+ transition: box-shadow 0.12s;
1171
+ }
1172
+ .qe-blocks:hover {
1173
+ border-bottom-color: var(--ec-edit-hover-line);
1174
+ }
1175
+ .qe-blocks:focus-within {
1176
+ border-bottom-color: transparent;
1177
+ box-shadow: inset 0 -2px 0 var(--ec-accent);
1178
+ }
1179
+ .qe-blocks-list {
725
1180
  display: flex;
726
1181
  flex-direction: column;
727
1182
  gap: 4px;
728
1183
  }
729
- .qe-inline-input {
1184
+ /* 그림 사이 빈 글 칸은 초점이 없을 때 얇게 */
1185
+ .qe-blocks-list > .qe-wys[data-empty]:not(:only-child):not(:focus) {
1186
+ min-height: 0;
1187
+ padding-block: 2px;
1188
+ }
1189
+ .qe-wys {
1190
+ position: relative;
1191
+ display: block;
730
1192
  width: 100%;
731
- padding: 8px 12px;
732
- border: 0;
733
- border-bottom: 1px solid var(--qz-border);
734
- border-radius: var(--eds-radius) var(--eds-radius) 0 0;
735
- background: transparent;
736
- color: var(--eds-text-primary);
1193
+ min-height: 37px;
1194
+ color: var(--eds-text-secondary);
1195
+ font-size: var(--eds-fs-body2);
737
1196
  line-height: 1.5;
738
- transition: background-color 120ms ease, box-shadow 120ms ease;
1197
+ white-space: pre-wrap;
1198
+ word-break: break-word;
1199
+ outline: none;
739
1200
  }
740
- .qe-inline-input::placeholder {
741
- color: var(--eds-text-disabled);
1201
+ .qe-wys > :last-child {
1202
+ margin-bottom: 0;
742
1203
  }
743
- /* 윤곽선 없는 입력 칸은 배경색을 쓰지 않는다 (hover는 밑줄 색, 초점은 굵은 보라 밑줄로 알림) */
744
- .qe-inline-input:hover {
745
- border-bottom-color: var(--eds-color-bluegray-400);
1204
+ .qe-wys p,
1205
+ .qe-wys ul,
1206
+ .qe-wys ol {
1207
+ margin: 0 0 6px;
746
1208
  }
747
- .qe-inline-input:focus {
748
- outline: none;
749
- border-bottom-color: transparent;
750
- box-shadow: inset 0 -2px 0 var(--qz-accent);
1209
+ .qe-wys ul,
1210
+ .qe-wys ol {
1211
+ padding-left: 24px;
751
1212
  }
752
- /* 비운 채 저장한 필수 칸 */
753
- .qe-inline-input[aria-invalid='true'] {
754
- border-bottom-color: transparent;
755
- box-shadow: inset 0 -2px 0 var(--eds-error-main);
1213
+ .qe-wys pre {
1214
+ margin: 0 0 6px;
1215
+ padding: 8px 12px;
1216
+ white-space: pre;
1217
+ overflow-x: auto;
756
1218
  }
757
- /* 여러 줄 칸: 글에 맞춰 높이가 는다 (field-sizing을 모르는 브라우저는 동작이 높이를 맞춤) */
758
- textarea.qe-inline-input {
759
- resize: none;
760
- overflow: hidden;
1219
+ .qe-wys code {
1220
+ font-family: ui-monospace, Menlo, monospace;
1221
+ }
1222
+ .qe-wys code,
1223
+ .qe-wys pre {
1224
+ background: var(--eds-background-paper, #fff);
1225
+ box-shadow: inset 0 0 0 1px var(--qz-border);
1226
+ }
1227
+ .qe-wys pre code {
1228
+ box-shadow: none;
1229
+ }
1230
+ .qe-wys img {
1231
+ max-width: 100%;
1232
+ }
1233
+ .qe-wys[data-empty][data-placeholder]:not([data-placeholder=''])::before {
1234
+ content: attr(data-placeholder);
1235
+ position: absolute;
1236
+ top: 8px;
1237
+ left: 8px;
1238
+ color: var(--eds-text-tertiary);
1239
+ pointer-events: none;
1240
+ }
1241
+ /* 올린 그림 칸: 흰 바탕 가운데, 오른쪽 위 지우기 */
1242
+ .qe-block-image {
1243
+ position: relative;
1244
+ display: flex;
1245
+ justify-content: center;
1246
+ margin: 0;
1247
+ padding: 12px;
1248
+ border-radius: 12px;
1249
+ background: var(--eds-background-paper, #fff);
1250
+ }
1251
+ .qe-block-image img {
1252
+ display: block;
1253
+ max-width: 100%;
1254
+ max-height: 280px;
1255
+ border-radius: 8px;
1256
+ }
1257
+ .qe-block-remove {
1258
+ position: absolute;
1259
+ top: 8px;
1260
+ right: 8px;
1261
+ display: flex;
1262
+ align-items: center;
1263
+ justify-content: center;
1264
+ width: 28px;
1265
+ min-width: 0;
1266
+ height: 28px;
761
1267
  min-height: 0;
762
- field-sizing: content;
1268
+ padding: 0;
1269
+ border: 0;
1270
+ border-radius: 50%;
1271
+ background: color-mix(in srgb, var(--eds-text-primary) 70%, transparent);
1272
+ color: #fff;
1273
+ cursor: pointer;
763
1274
  }
764
- .qe-inline-title .qe-inline-input {
765
- font-size: var(--eds-fs-h6);
766
- font-weight: var(--eds-fw-bold);
1275
+ .qe-block-remove::after {
1276
+ content: '';
1277
+ position: absolute;
1278
+ inset: -8px;
767
1279
  }
768
- .qe-inline-question .qe-inline-input {
769
- font-size: var(--eds-fs-subtitle2);
770
- font-weight: var(--eds-fw-semibold);
1280
+ .qe-block-remove:hover {
1281
+ background: var(--eds-text-primary);
771
1282
  }
772
- .qe-inline-body .qe-inline-input {
773
- font-size: var(--eds-fs-body2);
774
- color: var(--eds-text-secondary);
1283
+ .qe-block-remove:focus-visible {
1284
+ outline: 2px solid var(--qz-accent);
1285
+ outline-offset: 2px;
1286
+ }
1287
+ .qe-block-remove svg {
1288
+ width: 16px;
1289
+ height: 16px;
775
1290
  }
776
- /* 글자 수는 칸에 초점이 있을 때만 */
777
- .qe-inline {
1291
+
1292
+ /* 서식 도구: 칸에 초점이 있을 때 카드 아래 가장자리에 걸쳐 뜸 (그림 파일을 고르는 동안은 data-hold로 유지) */
1293
+ .qe-reveal-card .qe-reveal-body {
778
1294
  position: relative;
779
1295
  }
780
- .qe-inline .qe-count {
1296
+ .qe-md {
781
1297
  position: absolute;
782
- top: 100%;
783
- right: 0;
784
- margin-top: 2px;
1298
+ top: calc(100% - 12px);
1299
+ left: 16px;
1300
+ z-index: 6;
1301
+ display: flex;
1302
+ align-items: center;
1303
+ gap: 2px;
1304
+ width: max-content;
1305
+ max-width: calc(100% - 32px);
1306
+ padding: 2px 6px;
1307
+ border-radius: 10px;
1308
+ background: var(--eds-background-paper, #fff);
1309
+ box-shadow: var(--ec-shadow);
1310
+ opacity: 0;
785
1311
  visibility: hidden;
1312
+ transition:
1313
+ opacity 0.12s,
1314
+ visibility 0s linear 0.12s;
786
1315
  }
787
- .qe-inline:focus-within .qe-count {
1316
+ .qe-reveal-body:focus-within .qe-md,
1317
+ .qe-md[data-hold] {
1318
+ opacity: 1;
788
1319
  visibility: visible;
1320
+ transition: opacity 0.12s;
789
1321
  }
790
- /* 퀴즈 제목 · 안내: 흰 카드. 문항 카드보다 여백(28px)과 모서리(16px)를 키우고 제목과 안내 사이에 구분선을 둔다.
791
- 입력 칸 밑줄은 평소에 없애고 (밑줄이 연달아 이어지는 번잡함), hover 때 연한 밑줄, 초점일 때 보라 굵은 밑줄로 알린다 */
792
- .qe-quiz-info {
793
- gap: 12px;
794
- padding: 28px;
1322
+ .qe-md-btn {
1323
+ position: relative;
1324
+ display: inline-flex;
1325
+ align-items: center;
1326
+ justify-content: center;
1327
+ min-width: 32px;
1328
+ height: 32px;
1329
+ min-height: 0;
1330
+ padding: 0 8px;
795
1331
  border: 0;
796
- border-radius: 16px;
797
- background: var(--qz-surface);
798
- }
799
- .qe-quiz-info .qe-inline-title {
800
- padding-bottom: 12px;
801
- border-bottom: 1px solid var(--eds-surface-border);
1332
+ border-radius: 6px;
1333
+ background: none;
1334
+ color: var(--eds-text-secondary);
1335
+ font: inherit;
1336
+ font-size: var(--eds-fs-body2);
1337
+ cursor: pointer;
802
1338
  }
803
- .qe-quiz-info .qe-inline-input {
804
- border-bottom-color: transparent;
1339
+ /* 누르는 자리를 조금 넓게 */
1340
+ .qe-md-btn::after {
1341
+ content: '';
1342
+ position: absolute;
1343
+ inset: -6px -2px;
805
1344
  }
806
- .qe-quiz-info .qe-inline-input:hover:not(:focus) {
807
- border-bottom-color: var(--eds-color-bluegray-400);
1345
+ .qe-md-btn:hover:not(:disabled) {
1346
+ background: var(--eds-action-hover);
1347
+ color: var(--eds-text-primary);
808
1348
  }
809
-
810
- /* 편집 화면: 화면 높이가 남으면 "초안에 반영" 바를 맨 아래 푸터에 두고, 내용이 길면 화면 아래에 붙여 둔다 */
811
- body.qe-page {
812
- min-height: 100vh;
813
- min-height: 100dvh;
814
- display: flex;
815
- flex-direction: column;
816
- padding: 24px 16px 0;
1349
+ .qe-md-btn:focus-visible {
1350
+ outline: 2px solid var(--qz-accent);
1351
+ outline-offset: -2px;
817
1352
  }
818
- body.qe-page main {
819
- width: 100%;
820
- flex: 1;
821
- padding-bottom: 24px;
1353
+ .qe-md-btn:disabled {
1354
+ opacity: 0.4;
1355
+ cursor: default;
822
1356
  }
823
- body.qe-page .ec-submitbar {
824
- max-width: none;
825
- margin: 0 -16px;
826
- padding: 12px max(16px, calc((100% - 720px) / 2));
827
- z-index: 8;
1357
+ .qe-md-btn[aria-pressed='true'] {
1358
+ background: var(--eds-action-selected, var(--eds-action-hover));
1359
+ color: var(--qz-accent);
828
1360
  }
829
-
830
- /* 편집 화면 전체 배경은 EDS background.neutral (카드는 paper 색 그대로, 아래 바도 같은 색) */
831
- :root:has(body.qe-page) {
832
- --ec-bg: var(--eds-background-neutral);
1361
+ /* 그림을 올리는 동안 진행률 (그림 버튼 옆) */
1362
+ .qe-md-progress {
1363
+ padding: 0 6px;
1364
+ color: var(--eds-text-secondary);
1365
+ font-size: var(--eds-fs-caption, 12px);
1366
+ white-space: nowrap;
833
1367
  }
834
-
835
- /* 보기 제목줄: 제목 왼쪽, 보기 순서 섞기 토글 오른쪽 */
836
- .qe-section-head {
837
- display: flex;
838
- align-items: center;
839
- justify-content: space-between;
840
- gap: 12px;
1368
+ .qe-md-progress[hidden] {
1369
+ display: none;
841
1370
  }
842
- /* 필요할 때만 여는 칸 (설명 · 해설): 닫혀 있으면 글자 버튼만 */
843
- .qe-reveal {
844
- display: flex;
845
- flex-direction: column;
846
- align-items: flex-start;
1371
+ .qe-md-sep {
1372
+ width: 1px;
1373
+ height: 18px;
1374
+ margin: 0 4px;
1375
+ background: var(--qz-border);
847
1376
  }
848
- .qe-reveal-body {
849
- display: flex;
1377
+
1378
+ /* ---------- 부분 채점 (연주님 부분 채점 UI) ---------- */
1379
+ /* 학생: 직접 배점일 때 문제 머리의 배점 (연주님 디자인 수정판 2026-11-18).
1380
+ 회색 알약(높이 24px · caption bold · 모서리 6px). 600px 이상은 제목 오른쪽 끝(제목은 남은 폭에서 줄바꿈),
1381
+ 좁은 화면은 제목 위 한 줄 */
1382
+ .qz-question-head {
1383
+ flex-wrap: wrap;
850
1384
  align-items: flex-start;
851
- gap: 4px;
852
- align-self: stretch;
1385
+ row-gap: 2px;
853
1386
  }
854
- .qe-reveal-body > .qe-inline {
855
- flex: 1;
1387
+ .qz-question-head > .qz-question-title {
1388
+ flex: 1 1 100%;
856
1389
  min-width: 0;
857
1390
  }
858
- .qe-reveal [hidden] {
859
- display: none;
860
- }
861
- /* EDS Button: variant outlined · color secondary · size small (elice-design-system@7f3366a, button.spec.md)
862
- 13px / 600, 여백 4px 11px, 줄높이 22px, 모서리 6px, 테두리 surface.border, hover 테두리 bluegray400 + action.hover 배경,
863
- 포커스 · 누름 배경 secondary 30%. 키트 기본 button의 min-height 44px는 이 버튼에서 풀어 준다 */
864
- .qe-reveal-button {
865
- min-height: 0;
866
- padding: 4px 11px;
867
- border: 1px solid var(--eds-surface-border);
1391
+ .qz-points {
1392
+ display: inline-flex;
1393
+ flex: none;
1394
+ align-items: center;
1395
+ box-sizing: border-box;
1396
+ height: 24px;
1397
+ padding: 0 8px;
868
1398
  border-radius: 6px;
869
- background: transparent;
870
- color: var(--eds-secondary-main);
871
- font: inherit;
872
- font-size: 13px;
873
- font-weight: var(--eds-fw-semibold);
874
- line-height: 22px;
875
- cursor: pointer;
876
- }
877
- @media (hover: hover) {
878
- .qe-reveal-button:hover {
879
- border-color: var(--eds-color-bluegray-400);
880
- background: var(--eds-action-hover);
881
- }
882
- :root[data-eds-theme='dark'] .qe-reveal-button:hover {
883
- border-color: #ffffff80;
884
- }
1399
+ background: var(--qz-surface-gray);
1400
+ color: var(--eds-text-secondary);
1401
+ font-size: var(--eds-fs-caption);
1402
+ font-weight: var(--eds-fw-bold);
1403
+ line-height: 1;
1404
+ white-space: nowrap;
885
1405
  }
886
- .qe-reveal-button:focus-visible,
887
- .qe-reveal-button:active {
888
- background: color-mix(in srgb, var(--eds-secondary-main) 30%, transparent);
1406
+ .qz-question-head > .qz-points {
1407
+ order: -1;
889
1408
  }
890
-
891
- /* 끌기 손잡이: 데스크톱(마우스) 환경에서는 줄 밖 왼쪽 여백에 두어 자리를 차지하지 않고,
892
- 줄에 올리거나 초점이 있을 때만 보인다. 터치 환경과 좁은 화면에서는 줄 안에 항상 보인다 */
893
- @media (hover: hover) and (pointer: fine) and (min-width: 768px) {
894
- .qe-option {
895
- position: relative;
1409
+ @media (min-width: 600px) {
1410
+ .qz-question-head {
1411
+ flex-wrap: nowrap;
1412
+ gap: 12px;
896
1413
  }
897
- .qe-option .qe-handle {
898
- position: absolute;
899
- left: -22px;
900
- top: 50%;
901
- width: 20px;
902
- margin-top: -20px;
903
- opacity: 0;
904
- transition: opacity 120ms ease-in-out;
1414
+ .qz-question-head > .qz-question-title {
1415
+ flex: 1 1 0;
905
1416
  }
906
- .qe-option:hover .qe-handle,
907
- .qe-option:focus-within .qe-handle,
908
- .qe-option[data-dragging] .qe-handle {
909
- opacity: 1;
1417
+ .qz-question-head > .qz-points {
1418
+ order: 0;
1419
+ margin-left: auto;
910
1420
  }
911
1421
  }
912
-
913
- /* 해설: 닫혀 있으면 아이콘 + "해설 추가 +" 윤곽선 버튼, 열리면 카드 없이 머리줄(아이콘 · 이름 · 지우기) + 밑줄 입력 칸.
914
- "보기" 소제목줄(이름 왼쪽, 조작 오른쪽)과 같은 구조 */
915
- .qe-reveal-card .qe-reveal-button {
916
- display: inline-flex;
917
- align-items: center;
918
- gap: 6px;
1422
+ /* 학생: 100점보다 낮을 때 제출 바 위 상자 — 점수 · "아쉬워요!" · 안내, 오른쪽 아래 마스코트(위로 조금 넘침) */
1423
+ .qz-result[data-result='partial'] {
1424
+ border: 0;
1425
+ background: color-mix(in srgb, var(--eds-primary-main) 8%, var(--eds-background-paper, #fff));
1426
+ color: var(--eds-primary-dark, var(--eds-primary-main));
919
1427
  }
920
- .qe-reveal-head > svg {
921
- color: var(--qz-accent);
1428
+ .qz-result[data-result='partial']::before {
1429
+ display: none;
922
1430
  }
923
- .qe-reveal-card .qe-reveal-body {
924
- flex-direction: column;
925
- align-items: stretch;
926
- gap: 4px;
1431
+ .qz-overall.qz-overall-mascot {
1432
+ position: relative;
1433
+ z-index: 1;
1434
+ min-height: 88px;
1435
+ padding-right: 112px;
1436
+ overflow: visible;
927
1437
  }
928
- .qe-reveal-head {
929
- display: flex;
930
- align-items: center;
931
- gap: 8px;
932
- font-size: var(--eds-fs-body2);
1438
+ .qz-overall-img {
1439
+ position: absolute;
1440
+ right: 16px;
1441
+ bottom: 0;
1442
+ width: 100px;
1443
+ height: auto;
1444
+ pointer-events: none;
933
1445
  }
934
- .qe-reveal-head strong {
1446
+ .qz-overall-score {
1447
+ display: block;
935
1448
  flex: none;
1449
+ box-sizing: border-box;
1450
+ min-width: 72px;
1451
+ height: 56px;
1452
+ margin-right: 4px;
1453
+ padding: 0 14px;
1454
+ border: 0;
1455
+ border-radius: 12px;
1456
+ background: var(--eds-background-paper, #fff);
1457
+ color: var(--eds-primary-dark, var(--eds-primary-main));
1458
+ font-size: 22px;
1459
+ line-height: 56px;
1460
+ font-weight: var(--eds-fw-extrabold);
1461
+ font-variant-numeric: tabular-nums;
1462
+ text-align: center;
1463
+ white-space: nowrap;
1464
+ }
1465
+ .qz-overall-score small {
1466
+ margin: 0;
1467
+ color: var(--eds-primary-dark, var(--eds-primary-main));
1468
+ font-size: inherit;
1469
+ font-weight: inherit;
1470
+ line-height: inherit;
1471
+ }
1472
+ .qz-overall-text {
1473
+ display: grid;
1474
+ gap: 2px;
1475
+ }
1476
+ .qz-overall-title {
1477
+ color: var(--eds-primary-dark, var(--eds-primary-main));
1478
+ font-size: var(--eds-fs-body1);
1479
+ line-height: var(--eds-lh-body1);
936
1480
  font-weight: var(--eds-fw-bold);
937
1481
  }
938
- /* 이름 옆 보조 글자: 글을 써도 남는 안내 (좁으면 말줄임) */
939
- .qe-reveal-hint {
940
- min-width: 0;
941
- overflow: hidden;
1482
+ .qz-overall-hint {
942
1483
  color: var(--eds-text-secondary);
943
- font-size: var(--eds-fs-caption);
1484
+ font-size: var(--eds-fs-body2);
944
1485
  font-weight: var(--eds-fw-medium);
945
- text-overflow: ellipsis;
946
- white-space: nowrap;
947
- }
948
- .qe-reveal-head [data-role='reveal-close'] {
949
- margin-left: auto;
950
- }
951
-
952
- /* 질문 칸 바로 아래 "설명 추가"는 칸에 붙여 둔다 */
953
- .qe-inline + .qe-reveal {
954
- margin-top: -8px;
955
1486
  }
956
1487
 
957
- /* EDS Snackbar (elice-design-system@7f3366a, snackbar.ts · SnackbarContent.tsx): 배경 background.snackbar, 글자 흰색(다크는 검정),
958
- 모서리 12px, 글자 500, 그림자 elevation 4, info 아이콘은 info.light. 위치는 편집 영역과 같은 가운데 아래, 하단 바 높이만큼 올린다 */
959
- .qe-snackbar {
960
- position: fixed;
961
- left: 50%;
962
- transform: translateX(-50%);
963
- bottom: 80px;
964
- z-index: 20;
1488
+ /* 편집: 부분 채점 설정 상자 (문제 2개 이상일 때 맨 위) */
1489
+ .qe-score {
1490
+ container-type: inline-size;
965
1491
  display: flex;
966
- align-items: center;
967
- max-width: min(480px, calc(100vw - 48px));
968
- padding: 6px 8px 6px 16px;
1492
+ flex-direction: column;
1493
+ gap: 12px;
1494
+ margin-bottom: 16px;
1495
+ padding: 16px 20px;
1496
+ border: 1px solid var(--qz-border);
969
1497
  border-radius: 12px;
970
- background: var(--eds-background-snackbar);
971
- color: var(--eds-common-white, #fff);
972
- font-size: var(--eds-fs-body2);
973
- font-weight: var(--eds-fw-medium);
974
- line-height: 1.43;
975
- box-shadow: var(--ec-shadow);
976
- }
977
- :root[data-eds-theme='dark'] .qe-snackbar {
978
- color: #000;
979
- }
980
- .qe-snackbar-icon {
981
- display: inline-flex;
982
- margin-right: 8px;
983
- color: var(--eds-info-light);
1498
+ background: transparent;
984
1499
  }
985
- .qe-snackbar-text {
986
- flex: 1;
987
- padding: 8px 0;
1500
+ .qe-score-switch {
1501
+ display: grid;
1502
+ grid-template-columns: minmax(0, 1fr) auto;
1503
+ grid-template-areas: 'title input' 'hint input';
1504
+ align-items: center;
1505
+ gap: 2px 12px;
1506
+ cursor: pointer;
988
1507
  }
989
- /* EDS Button text small · color inherit (13px / 600, 여백 5px 12px, 모서리 6px). 키트 기본 button의 min-height 44px를 푼다 */
990
- button.qe-snackbar-action {
1508
+ /* 스위치 (EDS Switch small): 누르는 자리는 44px */
1509
+ .qe-sw {
1510
+ position: relative;
1511
+ grid-area: input;
1512
+ align-self: center;
991
1513
  flex: none;
992
- min-height: 0;
993
- margin-left: 16px;
994
- padding: 5px 12px;
995
- border: 0;
996
- border-radius: 6px;
997
- background: transparent;
998
- color: inherit;
999
- font-size: 13px;
1000
- font-weight: var(--eds-fw-semibold);
1001
- line-height: 22px;
1514
+ width: 32px;
1515
+ height: 20px;
1002
1516
  }
1003
- button.qe-snackbar-action:hover {
1004
- background: rgb(255 255 255 / 0.12);
1517
+ .qe-sw input {
1518
+ position: absolute;
1519
+ inset: -12px -6px;
1520
+ z-index: 1;
1521
+ width: calc(100% + 12px);
1522
+ height: 44px;
1523
+ margin: 0;
1524
+ padding: 0;
1525
+ border: 0;
1526
+ border-radius: 32px;
1527
+ opacity: 0;
1528
+ cursor: pointer;
1005
1529
  }
1006
- :root[data-eds-theme='dark'] button.qe-snackbar-action:hover {
1007
- background: rgb(0 0 0 / 0.08);
1530
+ .qe-sw input:focus {
1531
+ outline: none;
1008
1532
  }
1009
- @media (max-width: 599.98px) {
1010
- .qe-snackbar {
1011
- left: 8px;
1012
- right: 8px;
1013
- transform: none;
1014
- max-width: none;
1015
- }
1533
+ .qe-sw-track {
1534
+ position: absolute;
1535
+ inset: 0;
1536
+ border-radius: 32px;
1537
+ background: color-mix(in srgb, var(--eds-text-primary) 38%, transparent);
1538
+ pointer-events: none;
1539
+ transition: background-color 0.15s;
1016
1540
  }
1017
-
1018
- /* 편집 화면 아이콘 버튼 (삭제 ✕ · 휴지통 · ↑ ↓): EDS IconButton default · size small (elice-design-system@7f3366a, icon-button.ts · spec).
1019
- 아이콘 20px + 안쪽 여백 4px = 28px, 원형, 아이콘 색 action.active, hover 배경 action.hover,
1020
- 누름 · 포커스 배경 background.inverse 8% (다크 16%). 삭제 ✕도 빨강이 아닌 같은 중립색 (hover도 동일) */
1021
- .qe-card button.ec-icon-button,
1022
- .qe-card button.ec-icon-button.ec-danger {
1023
- width: 28px;
1024
- height: 28px;
1025
- min-height: 28px;
1026
- padding: 0;
1541
+ .qe-sw-track::before {
1542
+ content: '';
1543
+ position: absolute;
1544
+ top: 3px;
1545
+ left: 3px;
1546
+ width: 14px;
1547
+ height: 14px;
1027
1548
  border-radius: 50%;
1028
- background: none;
1029
- color: var(--eds-action-active);
1030
- }
1031
- .qe-card button.ec-icon-button svg {
1032
- width: 20px;
1033
- height: 20px;
1549
+ background: #fff;
1550
+ box-shadow: 0 1px 2px #0000004d;
1551
+ transition: transform 0.15s;
1034
1552
  }
1035
- @media (hover: hover) {
1036
- .qe-card button.ec-icon-button:hover,
1037
- .qe-card button.ec-icon-button.ec-danger:hover {
1038
- background: var(--eds-action-hover);
1039
- }
1553
+ .qe-sw input:checked + .qe-sw-track {
1554
+ background: var(--qz-accent);
1040
1555
  }
1041
- .qe-card button.ec-icon-button:active,
1042
- .qe-card button.ec-icon-button:focus-visible,
1043
- .qe-card button.ec-icon-button.ec-danger:active,
1044
- .qe-card button.ec-icon-button.ec-danger:focus-visible {
1045
- background: color-mix(in srgb, var(--eds-background-inverse) 8%, transparent);
1556
+ .qe-sw input:checked + .qe-sw-track::before {
1557
+ transform: translate(12px);
1046
1558
  }
1047
- :root[data-eds-theme='dark'] .qe-card button.ec-icon-button:active,
1048
- :root[data-eds-theme='dark'] .qe-card button.ec-icon-button:focus-visible {
1049
- background: color-mix(in srgb, var(--eds-background-inverse) 16%, transparent);
1559
+ .qe-sw input:focus-visible + .qe-sw-track {
1560
+ outline: 2px solid var(--qz-accent);
1561
+ outline-offset: 2px;
1050
1562
  }
1051
- .qe-card button.ec-icon-button:disabled,
1052
- .qe-card button.ec-icon-button.ec-danger:disabled {
1053
- background: none;
1054
- color: var(--eds-action-disabled);
1563
+ .qe-score-title {
1564
+ grid-area: title;
1565
+ font-size: var(--eds-fs-subtitle2);
1566
+ font-weight: var(--eds-fw-semibold);
1055
1567
  }
1056
-
1057
- /* 문항 카드 머리의 삭제 · 순서 변경(↑ ↓): EDS IconButton outlined · size small (icon-button.ts)의 테두리 1px surface.border와 크기
1058
- (아이콘 20px + 안쪽 여백 4px + 테두리 2px = 30px)를 따르되, 모양은 원형 대신 사각형 + 모서리 4px (디자인 요청).
1059
- 보기 줄의 ✕는 테두리 없이 둔다 */
1060
- .qe-card-head button.ec-icon-button {
1061
- width: 30px;
1062
- height: 30px;
1063
- min-height: 30px;
1064
- border: 1px solid var(--eds-surface-border);
1065
- border-radius: 4px;
1568
+ .qe-score-hint {
1569
+ grid-area: hint;
1570
+ color: var(--eds-text-secondary);
1571
+ font-size: var(--eds-fs-body2);
1066
1572
  }
1067
-
1068
- /* "문항 N"과 유형 선택 사이: 머리줄 기본 간격(8px)에 4px을 더해 12px (좁은 화면은 4px + 4px) */
1069
- .qe-card-head > strong {
1070
- margin-right: 4px;
1573
+ /* 배점 줄: 배점 방식 알약 · 합계(또는 자동 안내) · 동일 점수 버튼, 아래 모자람 · 넘침 안내 */
1574
+ .qe-score-sum {
1575
+ display: grid;
1576
+ grid-template-columns: auto minmax(0, 1fr) auto;
1577
+ align-content: center;
1578
+ align-items: center;
1579
+ gap: 4px 12px;
1580
+ padding: 12px 16px;
1581
+ border-radius: 8px;
1582
+ background: var(--eds-background-paper, #fff);
1071
1583
  }
1072
-
1073
- /* 하단 바는 불투명하게: 전체 배경색(background.neutral, 투명도 4%)을 그대로 쓰면 뒤의 내용이 비쳐 겹쳐 보인다.
1074
- 같은 색을 background.default 위에 합성해 같은 색으로 보이되 비치지 않게 한다 */
1075
- body.qe-page .ec-submitbar {
1076
- background:
1077
- linear-gradient(var(--eds-background-neutral), var(--eds-background-neutral)),
1078
- var(--eds-background-default);
1584
+ .qe-score-sum[hidden] {
1585
+ display: none;
1079
1586
  }
1080
-
1081
- /* 하단 "초안에 반영" 버튼: EDS Button contained · color secondary (elice-design-system@7f3366a, button.ts).
1082
- 배경 secondary.main, 글자 secondary.contrast-text, hover secondary.dark, 누름 · 포커스는 dark에 흰색 30%를 겹침 */
1083
- body.qe-page .ec-submitbar button.ec-primary {
1084
- background: var(--eds-secondary-main);
1085
- color: var(--eds-secondary-contrast-text);
1587
+ .qe-score-row {
1588
+ display: contents;
1086
1589
  }
1087
- @media (hover: hover) {
1088
- body.qe-page .ec-submitbar button.ec-primary:hover {
1089
- background: var(--eds-secondary-dark);
1090
- }
1590
+ .qe-score-row > * {
1591
+ display: flex;
1592
+ align-items: center;
1593
+ min-height: 32px;
1091
1594
  }
1092
- body.qe-page .ec-submitbar button.ec-primary:focus-visible,
1093
- body.qe-page .ec-submitbar button.ec-primary:active {
1094
- background: color-mix(in srgb, var(--eds-secondary-dark) 70%, white);
1595
+ .qe-score-row > .qe-score-mode,
1596
+ .qe-score-row > .qe-score-equal {
1597
+ min-height: 0;
1095
1598
  }
1096
- :root[data-eds-theme='dark'] body.qe-page .ec-submitbar button.ec-primary:focus-visible,
1097
- :root[data-eds-theme='dark'] body.qe-page .ec-submitbar button.ec-primary:active {
1098
- background: color-mix(in srgb, var(--eds-secondary-dark) 70%, black);
1599
+ .qe-score-mode {
1600
+ display: inline-flex;
1601
+ flex: none;
1602
+ align-items: center;
1603
+ height: 24px;
1604
+ padding: 0 6px;
1605
+ border-radius: 6px;
1606
+ background: color-mix(in srgb, var(--eds-primary-main) 15%, #fff);
1607
+ color: var(--eds-primary-dark);
1608
+ font-size: 11px;
1609
+ font-weight: 700;
1610
+ line-height: 1.38;
1611
+ white-space: nowrap;
1099
1612
  }
1100
- body.qe-page .ec-submitbar button.ec-primary:disabled {
1101
- background: var(--eds-action-disabled-background);
1102
- color: var(--eds-action-disabled);
1613
+ :root[data-eds-theme='dark'] .qe-score-mode {
1614
+ background: color-mix(in srgb, var(--eds-primary-main) 30%, #000);
1615
+ color: var(--eds-primary-light);
1103
1616
  }
1104
-
1105
- /* 정답 · 보기 제목 옆 안내: 제목과 같은 줄, 보조 글자 12px (caption). 좁으면 말줄임 */
1106
- .qe-hint-inline {
1617
+ .qe-score-total {
1107
1618
  flex: 1;
1108
1619
  min-width: 0;
1109
- overflow: hidden;
1620
+ font-weight: var(--eds-fw-bold);
1621
+ font-variant-numeric: tabular-nums;
1622
+ }
1623
+ .qe-score-total[data-state='under'] {
1624
+ color: var(--eds-error-main);
1625
+ }
1626
+ .qe-score-total[data-state='ok'] {
1110
1627
  color: var(--eds-text-secondary);
1111
- font-size: var(--eds-fs-caption);
1112
1628
  font-weight: var(--eds-fw-medium);
1113
- text-overflow: ellipsis;
1114
- white-space: nowrap;
1115
1629
  }
1116
-
1117
- /* 그룹 분류 편집판 (그룹별 상자): 그룹마다 상자, 그 안에 보기. 왼쪽 여백은 끌기 손잡이 자리 */
1118
- .qe-groups {
1119
- display: flex;
1120
- flex-direction: column;
1121
- gap: 12px;
1630
+ .qe-score-note {
1631
+ grid-area: 2 / 2 / auto / -1;
1632
+ min-width: 0;
1633
+ min-height: 20px;
1634
+ margin: 0;
1635
+ color: var(--eds-text-secondary);
1636
+ font-size: var(--eds-fs-body2);
1122
1637
  }
1123
- .qe-group {
1124
- display: flex;
1125
- flex-direction: column;
1126
- gap: 8px;
1127
- padding: 16px 16px 16px 24px;
1128
- border-radius: 12px;
1638
+ .qe-score-note[data-state='under'] {
1639
+ color: var(--eds-error-main);
1640
+ }
1641
+ .qe-score-equal {
1642
+ display: inline-flex;
1643
+ align-items: center;
1644
+ gap: 6px;
1645
+ min-height: 0;
1646
+ padding: 4px 11px;
1647
+ border: 1px solid var(--qz-border);
1648
+ border-radius: 6px;
1649
+ background: var(--eds-background-paper, #fff);
1650
+ color: var(--eds-text-primary);
1651
+ font: inherit;
1652
+ font-size: 13px;
1653
+ font-weight: var(--eds-fw-semibold);
1654
+ line-height: 22px;
1655
+ cursor: pointer;
1656
+ }
1657
+ .qe-score-equal:hover {
1129
1658
  background: var(--eds-background-neutral);
1130
1659
  }
1131
- .qe-group[data-over] {
1132
- outline: 2px dashed var(--qz-accent);
1133
- outline-offset: -2px;
1660
+ .qe-score-equal:focus-visible {
1661
+ outline: 2px solid var(--qz-accent);
1662
+ outline-offset: 2px;
1134
1663
  }
1135
- .qe-group-none {
1136
- border: 1px dashed var(--eds-surface-border);
1137
- background: transparent;
1664
+ .qe-score-equal[hidden] {
1665
+ display: none;
1138
1666
  }
1139
- .qe-group-head {
1140
- display: flex;
1141
- align-items: center;
1142
- gap: 8px;
1667
+ .qe-score-sum[data-mode='equal'] {
1668
+ grid-template-columns: auto minmax(0, 1fr);
1143
1669
  }
1144
- .qe-group-none .qe-group-head strong {
1145
- font-weight: var(--eds-fw-bold);
1670
+ .qe-score-sum[data-mode='equal'] .qe-score-note {
1671
+ display: none;
1146
1672
  }
1147
- .qe-group-badge {
1673
+ .qe-score-sum[data-mode='custom'] {
1674
+ grid-template-columns: auto auto minmax(0, 1fr) auto;
1675
+ }
1676
+ .qe-score-sum[data-mode='custom'] .qe-score-total {
1148
1677
  flex: none;
1678
+ grid-column: 2;
1679
+ }
1680
+ .qe-score-sum[data-mode='custom'] .qe-score-note {
1681
+ grid-area: 1 / 3;
1682
+ min-height: 0;
1683
+ }
1684
+ .qe-score-sum[data-mode='custom'] .qe-score-equal {
1685
+ grid-area: 1 / 4;
1686
+ }
1687
+ /* 상자가 좁으면: 알약 · 버튼 한 줄, 합계 다음 줄, 안내 그 아래 */
1688
+ @container (width <= 520px) {
1689
+ .qe-score-sum[data-mode='custom'],
1690
+ .qe-score-sum[data-mode='equal'] {
1691
+ grid-template-columns: minmax(0, 1fr) auto;
1692
+ justify-items: start;
1693
+ row-gap: 8px;
1694
+ }
1695
+ .qe-score-sum .qe-score-mode {
1696
+ grid-area: 1 / 1;
1697
+ }
1698
+ .qe-score-sum[data-mode='custom'] .qe-score-equal {
1699
+ grid-area: 1 / 2;
1700
+ justify-self: end;
1701
+ }
1702
+ .qe-score-sum[data-mode='custom'] .qe-score-total,
1703
+ .qe-score-sum[data-mode='equal'] .qe-score-total {
1704
+ grid-area: 2 / 1 / auto / -1;
1705
+ justify-self: stretch;
1706
+ min-height: 0;
1707
+ }
1708
+ .qe-score-sum[data-mode='custom'] .qe-score-note {
1709
+ grid-area: 3 / 1 / auto / -1;
1710
+ }
1711
+ }
1712
+ /* 편집: 카드 머리의 문제별 배점 칸 (유형 버튼 옆, 구분선 뒤에 위 · 아래 · 삭제) */
1713
+ .qe-points {
1149
1714
  display: inline-flex;
1715
+ flex: none;
1150
1716
  align-items: center;
1151
- justify-content: center;
1152
- width: 24px;
1153
- height: 24px;
1717
+ gap: 4px;
1718
+ height: 32px;
1719
+ padding: 0 10px 0 4px;
1720
+ border: 1px solid var(--qz-border);
1154
1721
  border-radius: 6px;
1155
- background: var(--qz-accent);
1156
- color: var(--qz-accent-contrast);
1157
- font-size: var(--eds-fs-caption);
1158
- font-weight: var(--eds-fw-bold);
1722
+ color: var(--eds-text-secondary);
1723
+ font-size: var(--eds-fs-body2);
1724
+ font-weight: var(--eds-fw-medium);
1725
+ white-space: nowrap;
1726
+ cursor: text;
1159
1727
  }
1160
- .qe-group-name {
1161
- flex: 1;
1162
- min-width: 0;
1163
- font-weight: var(--eds-fw-bold);
1728
+ .qe-points:hover {
1729
+ border-color: var(--eds-color-bluegray-400);
1164
1730
  }
1165
-
1166
- /* 순서 맞추기: 번호 목록도 끌어 놓을 곳이라 놓을 수 있을 때 윤곽을 보인다 */
1167
- .qe-options[data-group-box][data-over] {
1168
- outline: 2px dashed var(--qz-accent);
1169
- outline-offset: 4px;
1170
- border-radius: 8px;
1731
+ .qe-points:focus-within {
1732
+ border-color: var(--qz-accent);
1733
+ box-shadow: inset 0 0 0 1px var(--qz-accent);
1734
+ }
1735
+ .qe-points-label {
1736
+ position: absolute;
1737
+ width: 1px;
1738
+ height: 1px;
1739
+ overflow: hidden;
1740
+ clip-path: inset(50%);
1741
+ }
1742
+ .qe-points-input {
1743
+ width: 40px;
1744
+ height: 100%;
1745
+ min-height: 0;
1746
+ padding: 0 4px;
1747
+ border: 0;
1748
+ background: transparent;
1749
+ color: var(--eds-text-primary);
1750
+ font: inherit;
1751
+ font-weight: var(--eds-fw-semibold);
1752
+ text-align: right;
1753
+ }
1754
+ .qe-points-input:focus {
1755
+ outline: none;
1756
+ }
1757
+ .qe-points-unit {
1758
+ flex: none;
1759
+ }
1760
+ .qe-head-sep {
1761
+ flex: none;
1762
+ width: 1px;
1763
+ height: 20px;
1764
+ margin: 0 4px;
1765
+ background: var(--qz-border);
1766
+ }
1767
+ /* 좁은 화면: 카드 머리 첫 줄은 번호 · 위 · 아래 · 삭제, 둘째 줄에 유형 · 배점 */
1768
+ @media (max-width: 767.98px) {
1769
+ .qe-card-head {
1770
+ flex-wrap: wrap;
1771
+ gap: 8px;
1772
+ }
1773
+ .qe-card-head > strong {
1774
+ flex: auto;
1775
+ margin-right: 0;
1776
+ }
1777
+ .qe-card-head > .ec-icon-button {
1778
+ order: 1;
1779
+ }
1780
+ .qe-card-head::after {
1781
+ content: '';
1782
+ flex-basis: 100%;
1783
+ order: 1;
1784
+ height: 0;
1785
+ }
1786
+ .qe-card-head > .qe-type,
1787
+ .qe-card-head > .qe-points {
1788
+ order: 2;
1789
+ }
1790
+ .qe-card-head > .qe-head-sep {
1791
+ display: none;
1792
+ }
1171
1793
  }