@eliceio/cdk-cli 1.5.4 → 1.6.0-entryqa.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 (74) hide show
  1. package/README.md +31 -29
  2. package/es/commands/create/index.js +1 -0
  3. package/es/commands/create/scaffold.d.ts +1 -1
  4. package/es/commands/create/scaffold.js +1 -1
  5. package/es/core/config.d.ts +61 -2
  6. package/es/core/config.js +309 -3
  7. package/es/dev/grading.d.ts +31 -2
  8. package/es/dev/grading.js +68 -1
  9. package/es/dev/mock-api.d.ts +3 -1
  10. package/es/dev/mock-api.js +34 -4
  11. package/es/dev/server.js +5 -4
  12. package/es/rules/answers.d.ts +1 -0
  13. package/es/rules/answers.js +3 -0
  14. package/es/rules/check.js +8 -1
  15. package/es/rules/csp.d.ts +7 -0
  16. package/es/rules/csp.js +24 -3
  17. package/es/rules/index.d.ts +1 -1
  18. package/es/rules/index.js +1 -1
  19. package/es/rules/types.d.ts +4 -3
  20. package/es/rules.json.js +1 -1
  21. package/package.json +2 -2
  22. package/rules.json +5 -4
  23. package/skills/_shared/references/02-design-the-material.md +2 -1
  24. package/skills/_shared/references/05-screen-code.md +1 -0
  25. package/skills/_shared/references/12-upload-with-the-material-mcp.md +1 -1
  26. package/templates/_shared/lib/cdk-mock.d.ts +33 -2
  27. package/templates/_shared/lib/cdk-mock.js +171 -5
  28. package/templates/_shared/lib/elice-content.d.ts +38 -0
  29. package/templates/_shared/lib/elice-content.js +85 -2
  30. package/templates/blank/template.json +1 -1
  31. package/templates/document/template.json +3 -2
  32. package/templates/entry/README.md +117 -0
  33. package/templates/entry/commentary.txt +2 -0
  34. package/templates/entry/core/autosave.d.ts +13 -0
  35. package/templates/entry/core/autosave.js +69 -0
  36. package/templates/entry/core/default-project.d.ts +2 -0
  37. package/templates/entry/core/default-project.js +139 -0
  38. package/templates/entry/core/dom.d.ts +13 -0
  39. package/templates/entry/core/dom.js +83 -0
  40. package/templates/entry/core/grading.d.ts +52 -0
  41. package/templates/entry/core/grading.js +139 -0
  42. package/templates/entry/core/pack.d.ts +12 -0
  43. package/templates/entry/core/pack.js +71 -0
  44. package/templates/entry/core/settings.d.ts +33 -0
  45. package/templates/entry/core/settings.js +79 -0
  46. package/templates/entry/core/workspace.d.ts +40 -0
  47. package/templates/entry/core/workspace.js +320 -0
  48. package/templates/entry/docs/storage.md +44 -0
  49. package/templates/entry/edit.html +17 -0
  50. package/templates/entry/gitignore +4 -0
  51. package/templates/entry/index.html +17 -0
  52. package/templates/entry/metadata.json +9 -0
  53. package/templates/entry/package.json +13 -0
  54. package/templates/entry/screens/edit/panels/answer-project.js +15 -0
  55. package/templates/entry/screens/edit/panels/grading.d.ts +18 -0
  56. package/templates/entry/screens/edit/panels/grading.js +627 -0
  57. package/templates/entry/screens/edit/panels/index.js +25 -0
  58. package/templates/entry/screens/edit/panels/preference.js +56 -0
  59. package/templates/entry/screens/edit/panels/project-panel.js +93 -0
  60. package/templates/entry/screens/edit/panels/start-project.js +6 -0
  61. package/templates/entry/screens/edit.js +293 -0
  62. package/templates/entry/screens/learn.js +268 -0
  63. package/templates/entry/styles.css +1037 -0
  64. package/templates/entry/template.json +6 -0
  65. package/templates/entry/ui/templates/page.js +106 -0
  66. package/templates/entry/ui/texts.d.ts +3 -0
  67. package/templates/entry/ui/texts.js +160 -0
  68. package/templates/entry/ui/theme.css +17 -0
  69. package/templates/quiz/README.md +1 -1
  70. package/templates/quiz/template.json +3 -2
  71. package/templates/steps/template.json +1 -1
  72. package/templates/survey/README.md +1 -0
  73. package/templates/survey/template.json +3 -2
  74. package/templates/video/template.json +3 -2
@@ -0,0 +1,1037 @@
1
+ /* 엔트리 자료의 배치. 색 · 크기 값은 ui/theme.css */
2
+
3
+ /* ───── 학생 화면: 위 안내 줄 + 워크스페이스가 화면 나머지 + 아래 파란 줄 ───── */
4
+ body.en-page {
5
+ margin: 0;
6
+ padding: 0;
7
+ }
8
+ body.en-page #app {
9
+ max-width: none;
10
+ margin: 0;
11
+ padding: 0;
12
+ }
13
+ .en-learn {
14
+ display: flex;
15
+ flex-direction: column;
16
+ height: 100dvh;
17
+ }
18
+ .en-stage {
19
+ position: relative;
20
+ flex: 1;
21
+ min-height: 0;
22
+ }
23
+ .en-bar {
24
+ display: flex;
25
+ align-items: center;
26
+ gap: 12px;
27
+ min-height: var(--en-bar-height);
28
+ padding: 0 24px;
29
+ background: var(--en-bar-bg);
30
+ }
31
+ .en-bar p {
32
+ margin: 0;
33
+ font-size: var(--eds-fs-body2);
34
+ }
35
+ .en-bar p,
36
+ .en-status {
37
+ color: var(--en-bar-fg);
38
+ }
39
+ .en-check {
40
+ color: var(--en-bar-check);
41
+ font-weight: 800;
42
+ }
43
+ .en-bar .en-submitted {
44
+ margin-right: 4px;
45
+ color: var(--en-bar-fg);
46
+ font-size: 13px;
47
+ line-height: 1.5;
48
+ white-space: pre-line;
49
+ }
50
+ .en-bar .en-submitted:empty {
51
+ display: none;
52
+ }
53
+ .en-bar .en-verdict {
54
+ color: var(--en-bar-fg);
55
+ font-weight: 600;
56
+ white-space: nowrap;
57
+ }
58
+ .en-bar .en-verdict:empty {
59
+ display: none;
60
+ }
61
+ /* AI 채점 자료 표시 (아래 줄, 제출 버튼 앞) */
62
+ .en-badge {
63
+ display: inline-flex;
64
+ flex: none;
65
+ align-items: center;
66
+ height: 24px;
67
+ padding: 0 8px;
68
+ border: 1px solid var(--en-bar-fg);
69
+ border-radius: 12px;
70
+ color: var(--en-bar-fg);
71
+ font-size: var(--eds-fs-caption, 12px);
72
+ font-weight: 600;
73
+ white-space: nowrap;
74
+ }
75
+ .en-badge[hidden] {
76
+ display: none;
77
+ }
78
+ .en-bar .en-error {
79
+ flex: 1;
80
+ color: var(--en-bar-fg);
81
+ font-weight: 600;
82
+ }
83
+ .en-error:empty {
84
+ flex: 1;
85
+ }
86
+ .en-bar button[data-role='submit'] {
87
+ min-width: 104px;
88
+ height: 40px;
89
+ min-height: 40px;
90
+ padding: 0 24px;
91
+ border: 1px solid var(--en-bar-fg);
92
+ border-radius: 4px;
93
+ background: var(--en-bar-fg);
94
+ box-shadow: 0 2px 8px #00000040;
95
+ color: var(--en-bar-bg);
96
+ font-size: 16px;
97
+ font-weight: 600;
98
+ cursor: pointer;
99
+ }
100
+ .en-bar button[data-role='submit']:hover:not(:disabled) {
101
+ background: var(--en-bar-button-hover);
102
+ }
103
+ .en-bar button[data-role='submit']:focus-visible,
104
+ .en-feedback-toggle:focus-visible {
105
+ outline: 2px solid var(--en-bar-fg);
106
+ outline-offset: 2px;
107
+ }
108
+ .en-bar button[data-role='submit']:disabled {
109
+ border-color: transparent;
110
+ background: var(--en-bar-button-disabled);
111
+ color: var(--en-bar-fg);
112
+ cursor: default;
113
+ }
114
+
115
+ /* AI 채점 피드백: 아래 줄의 버튼으로 열고, 워크스페이스와 아래 줄 사이에 펼침 */
116
+ .en-feedback-toggle {
117
+ min-height: 40px;
118
+ padding: 0 12px;
119
+ border: 1px solid var(--en-bar-fg);
120
+ border-radius: 4px;
121
+ background: transparent;
122
+ color: var(--en-bar-fg);
123
+ font: inherit;
124
+ font-size: var(--eds-fs-body2);
125
+ font-weight: 600;
126
+ white-space: nowrap;
127
+ cursor: pointer;
128
+ }
129
+ .en-feedback-toggle[hidden],
130
+ .en-feedback[hidden] {
131
+ display: none;
132
+ }
133
+ .en-feedback {
134
+ max-height: 40dvh;
135
+ overflow-y: auto;
136
+ padding: 16px 24px;
137
+ border-top: 1px solid var(--eds-surface-border);
138
+ background: var(--eds-common-white);
139
+ }
140
+ .en-feedback-title {
141
+ margin: 0 0 8px;
142
+ color: var(--eds-text-primary);
143
+ font-size: var(--eds-fs-body1);
144
+ font-weight: var(--eds-fw-bold);
145
+ }
146
+ .en-feedback-body {
147
+ display: flex;
148
+ flex-direction: column;
149
+ gap: 12px;
150
+ color: var(--eds-text-primary);
151
+ font-size: var(--eds-fs-body2);
152
+ white-space: pre-line;
153
+ }
154
+ .en-feedback-body p {
155
+ margin: 0;
156
+ }
157
+ .en-feedback-label {
158
+ color: var(--eds-text-tertiary);
159
+ font-weight: var(--eds-fw-bold);
160
+ }
161
+
162
+ /* 워크스페이스 iframe (core/workspace.js가 만듦) */
163
+ .en-workspace {
164
+ position: absolute;
165
+ inset: 0;
166
+ }
167
+ .en-workspace-frame {
168
+ display: block;
169
+ width: 100%;
170
+ height: 100%;
171
+ border: 0;
172
+ }
173
+
174
+ /* ───── 편집 화면 ───── */
175
+ /* 편집 화면 바탕은 흰색 (키트 기본 회색 대신, 디자인 2차) */
176
+ :root:has(body.ec-edit-page) {
177
+ background: var(--eds-background-paper);
178
+ }
179
+ body.ec-edit-page main {
180
+ max-width: none;
181
+ }
182
+ body.ec-edit-page .ec-submitbar {
183
+ padding-inline: 16px;
184
+ }
185
+ /* 패널 안 워크스페이스는 정해진 높이 */
186
+ .en-panel .en-workspace {
187
+ position: relative;
188
+ height: var(--en-edit-workspace-height);
189
+ border: 1px solid var(--en-workspace-border);
190
+ border-radius: var(--en-workspace-radius);
191
+ overflow: hidden;
192
+ }
193
+ .en-panel[hidden] {
194
+ display: none;
195
+ }
196
+ /* 작품 패널 아래 줄: 왼쪽 안내 · 오른쪽 용량 칩 */
197
+ .en-panel-footer {
198
+ display: flex;
199
+ justify-content: space-between;
200
+ align-items: center;
201
+ gap: 16px;
202
+ }
203
+ .en-panel-footer > :first-child {
204
+ flex: 1;
205
+ min-width: 0;
206
+ }
207
+ .en-size-box {
208
+ display: flex;
209
+ flex: none;
210
+ flex-direction: column;
211
+ align-items: flex-end;
212
+ gap: 6px;
213
+ max-width: 360px;
214
+ }
215
+ .en-size-message {
216
+ margin: 0;
217
+ color: var(--eds-error-main);
218
+ font-size: var(--eds-fs-body2);
219
+ font-weight: var(--eds-fw-medium);
220
+ text-align: right;
221
+ }
222
+ .en-size-message[hidden] {
223
+ display: none;
224
+ }
225
+ .en-size-chip {
226
+ padding: 4px 12px;
227
+ border: 1px solid var(--eds-surface-border);
228
+ border-radius: 14px;
229
+ background: var(--eds-common-white);
230
+ color: var(--eds-text-tertiary);
231
+ font-size: 13px;
232
+ font-weight: var(--eds-fw-medium);
233
+ white-space: nowrap;
234
+ }
235
+ .en-size-chip[data-over='true'] {
236
+ border-color: var(--eds-error-main);
237
+ color: var(--eds-error-main);
238
+ font-weight: var(--eds-fw-semibold);
239
+ }
240
+
241
+ /* 언어 선택 줄 (탭 카드 위) */
242
+ .en-panel[data-panel='preference'] {
243
+ flex-flow: wrap;
244
+ align-items: center;
245
+ gap: 8px 16px;
246
+ margin-bottom: -8px;
247
+ padding: 0 4px;
248
+ }
249
+ .en-panel[data-panel='preference'] .ec-field-label {
250
+ margin: 0;
251
+ }
252
+ .en-panel[data-panel='preference'] .en-panel-body {
253
+ flex-flow: wrap;
254
+ align-items: center;
255
+ gap: 8px 16px;
256
+ }
257
+ .en-panel[data-panel='preference'] .en-panel-body p {
258
+ margin: 0;
259
+ }
260
+ /* 안내 한 줄 (파란 정보 아이콘 + 글) */
261
+ .en-alert {
262
+ display: flex;
263
+ align-items: center;
264
+ gap: 8px;
265
+ padding: 0;
266
+ border: 0;
267
+ background: none;
268
+ color: var(--eds-text-secondary);
269
+ font-size: var(--eds-fs-body2);
270
+ font-weight: var(--eds-fw-medium);
271
+ line-height: 1.4;
272
+ }
273
+ .en-alert-icon {
274
+ display: grid;
275
+ flex: none;
276
+ color: var(--eds-info-main);
277
+ }
278
+
279
+ /* 붙은 버튼 모양 라디오 (언어 선택 · 채점 방식). 칸 너비는 같게 */
280
+ .en-modes {
281
+ display: inline-grid;
282
+ grid-auto-columns: 1fr;
283
+ grid-auto-flow: column;
284
+ margin: 0;
285
+ padding: 0;
286
+ border: 0;
287
+ }
288
+ .en-radio-card {
289
+ position: relative;
290
+ display: inline-flex;
291
+ align-items: center;
292
+ gap: 6px;
293
+ margin-left: -1px;
294
+ padding: 8px 20px;
295
+ border: 1px solid var(--eds-surface-border);
296
+ border-radius: 0;
297
+ background: var(--eds-common-white);
298
+ cursor: pointer;
299
+ transition:
300
+ border-color 0.15s ease-in-out,
301
+ background-color 0.15s ease-in-out;
302
+ }
303
+ .en-modes .en-radio-card {
304
+ justify-content: center;
305
+ padding: 8px 16px;
306
+ transition:
307
+ border-color 20ms linear,
308
+ background-color 20ms linear;
309
+ }
310
+ .en-radio-card:first-of-type {
311
+ margin-left: 0;
312
+ border-radius: var(--eds-radius) 0 0 var(--eds-radius);
313
+ }
314
+ .en-radio-card:last-of-type {
315
+ border-radius: 0 var(--eds-radius) var(--eds-radius) 0;
316
+ }
317
+ .en-radio-card:hover {
318
+ background: var(--eds-action-hover);
319
+ }
320
+ .en-radio-card:has(:focus-visible) {
321
+ z-index: 1;
322
+ background: var(--eds-action-focus);
323
+ }
324
+ .en-radio-card:has(:checked) {
325
+ z-index: 1;
326
+ border-color: var(--eds-primary-main);
327
+ background: var(--eds-primary-opacity02);
328
+ }
329
+ .en-radio-card:has(:checked):hover,
330
+ .en-radio-card:has(:checked):has(:focus-visible) {
331
+ background: var(--eds-primary-opacity03);
332
+ }
333
+ .en-radio-card-title {
334
+ display: inline-flex;
335
+ align-items: center;
336
+ gap: 6px;
337
+ color: var(--eds-text-primary);
338
+ font-size: var(--eds-fs-body2);
339
+ font-weight: var(--eds-fw-bold);
340
+ }
341
+ .en-radio-card:has(:checked) .en-radio-card-title {
342
+ color: var(--eds-primary-main);
343
+ }
344
+
345
+ /* 탭 카드 ('시작 화면' · '채점 설정') */
346
+ .en-tabcard {
347
+ position: relative;
348
+ display: flex;
349
+ flex-direction: column;
350
+ padding-bottom: 12px;
351
+ border: 1px solid var(--eds-surface-border);
352
+ border-radius: 12px;
353
+ background: var(--eds-common-white);
354
+ overflow: hidden;
355
+ }
356
+ .en-tabcard .en-panel {
357
+ padding: 20px 20px 0;
358
+ }
359
+ /* 탭 안 워크스페이스는 카드 좌우 끝까지, 테두리 · 둥근 모서리 없이 (아래 선만) */
360
+ .en-tabcard .en-panel[data-panel='startProject'],
361
+ .en-tabcard .en-panel[data-panel='answerProject'] {
362
+ padding-top: 0;
363
+ }
364
+ .en-tabcard .en-panel .en-workspace {
365
+ margin-inline: -20px;
366
+ border: 0;
367
+ border-bottom: 1px solid var(--eds-surface-border);
368
+ border-radius: 0;
369
+ }
370
+ .en-tabs {
371
+ display: flex;
372
+ gap: 8px;
373
+ margin: 0;
374
+ padding: 0 12px;
375
+ border-bottom: 1px solid var(--eds-surface-border);
376
+ }
377
+ .en-tabcard > .en-tabs {
378
+ order: 0;
379
+ }
380
+ .en-tab {
381
+ position: relative;
382
+ min-width: 68px;
383
+ min-height: 52px;
384
+ margin-bottom: -1px;
385
+ padding: 10px 16px;
386
+ border: 0;
387
+ border-radius: var(--eds-radius);
388
+ background: none;
389
+ color: var(--eds-text-secondary);
390
+ font: inherit;
391
+ font-size: var(--eds-fs-body2);
392
+ font-weight: var(--eds-fw-semibold);
393
+ cursor: pointer;
394
+ }
395
+ .en-tab::after {
396
+ content: '';
397
+ position: absolute;
398
+ right: 0;
399
+ bottom: 0;
400
+ left: 0;
401
+ height: 2px;
402
+ border-radius: 1px;
403
+ background: none;
404
+ }
405
+ .en-tab:hover {
406
+ background: var(--eds-action-hover);
407
+ }
408
+ .en-tab:active,
409
+ .en-tab:focus-visible {
410
+ background: var(--eds-action-focus);
411
+ }
412
+ .en-tab[aria-selected='true'] {
413
+ color: var(--eds-primary-main);
414
+ }
415
+ .en-tab[aria-selected='true']::after {
416
+ background: var(--eds-primary-main);
417
+ }
418
+ .en-tab[aria-selected='true']:hover {
419
+ background: var(--eds-primary-opacity01);
420
+ }
421
+ .en-tab[aria-selected='true']:active,
422
+ .en-tab[aria-selected='true']:focus-visible {
423
+ background: var(--eds-primary-opacity02);
424
+ }
425
+
426
+ /* '채점 설정' 탭 배치: 정답 작품 → 채점 방식 줄 → AI 채점 기준 (채점 방식 패널을 풀어 order로 나눔).
427
+ 정답 블록을 만든 뒤 채점 방식을 고르는 흐름 (디자인 2차) */
428
+ .en-panel[data-panel='grading']:not([hidden]),
429
+ .en-panel[data-panel='grading'] .en-panel-body {
430
+ display: contents;
431
+ }
432
+ .en-grading-mode {
433
+ display: flex;
434
+ flex-wrap: wrap;
435
+ order: 2;
436
+ align-items: center;
437
+ gap: 8px 16px;
438
+ min-height: 40px;
439
+ margin: 8px 20px 0;
440
+ }
441
+ .en-panel[data-panel='answerProject'] {
442
+ order: 1;
443
+ }
444
+ .en-field-title {
445
+ margin: 0;
446
+ color: var(--eds-text-primary);
447
+ font-size: var(--eds-fs-body2);
448
+ font-weight: var(--eds-fw-bold);
449
+ }
450
+ .en-grading-note {
451
+ display: flex;
452
+ flex-basis: 100%;
453
+ align-items: center;
454
+ gap: 4px;
455
+ margin: 0;
456
+ color: var(--eds-text-tertiary);
457
+ font-size: var(--eds-fs-body2);
458
+ font-weight: var(--eds-fw-medium);
459
+ line-height: 1.4;
460
+ }
461
+ .en-grading-note > span:first-child {
462
+ display: grid;
463
+ flex: none;
464
+ }
465
+ /* 시작 화면을 바꿀 때 경고 (AI 채점 자료) */
466
+ .en-warning {
467
+ margin: 0;
468
+ padding: 8px 12px;
469
+ border-radius: 8px;
470
+ background: var(--ec-warn-bg);
471
+ color: var(--eds-warning-dark);
472
+ font-size: var(--eds-fs-body2);
473
+ line-height: 1.5;
474
+ }
475
+ .en-warning[hidden] {
476
+ display: none;
477
+ }
478
+
479
+ /* AI 채점 기준 */
480
+ .en-ai {
481
+ display: flex;
482
+ flex-direction: column;
483
+ gap: 24px;
484
+ margin-top: 12px;
485
+ }
486
+ .en-ai[hidden] {
487
+ display: none;
488
+ }
489
+ .en-ai p {
490
+ margin: 0;
491
+ }
492
+ /* AI 채점 기준: 채점 방식 줄 아래 회색 상자 */
493
+ .en-tabcard .en-ai {
494
+ order: 3;
495
+ margin: 16px 20px 8px;
496
+ padding: 20px;
497
+ border-radius: 12px;
498
+ background: var(--eds-background-neutral);
499
+ scroll-margin-bottom: 80px;
500
+ }
501
+ .en-ai-head {
502
+ display: flex;
503
+ justify-content: space-between;
504
+ align-items: center;
505
+ gap: 24px;
506
+ }
507
+ .en-ai-title {
508
+ display: flex;
509
+ flex: 1;
510
+ flex-direction: column;
511
+ gap: 4px;
512
+ min-width: 0;
513
+ padding-top: 4px;
514
+ }
515
+ .en-ai .en-ai-title-text {
516
+ color: var(--eds-text-primary);
517
+ font-size: var(--eds-fs-body1);
518
+ font-weight: var(--eds-fw-bold);
519
+ line-height: 1.5;
520
+ }
521
+ .en-ai .en-ai-desc-text {
522
+ color: var(--eds-text-tertiary);
523
+ font-size: var(--eds-fs-body2);
524
+ font-weight: var(--eds-fw-medium);
525
+ line-height: 1.4;
526
+ }
527
+ .en-pop-wrap {
528
+ position: relative;
529
+ }
530
+ .en-popover {
531
+ position: absolute;
532
+ top: calc(100% + 8px);
533
+ right: 0;
534
+ left: auto;
535
+ z-index: 20;
536
+ box-sizing: border-box;
537
+ width: max-content;
538
+ max-width: min(420px, calc(100vw - 32px));
539
+ padding: 12px 16px;
540
+ border: 1px solid var(--eds-surface-border);
541
+ border-radius: 8px;
542
+ background: var(--eds-common-white);
543
+ box-shadow: 0 4px 16px #0000001f;
544
+ }
545
+ .en-popover[hidden] {
546
+ display: none;
547
+ }
548
+ .en-popover ul {
549
+ margin: 0;
550
+ padding-left: 18px;
551
+ color: var(--eds-text-secondary);
552
+ font-size: var(--eds-fs-body2);
553
+ }
554
+ .en-popover li + li {
555
+ margin-top: 4px;
556
+ }
557
+ .en-icon-button,
558
+ .en-link-button {
559
+ border: 0;
560
+ background: none;
561
+ font: inherit;
562
+ cursor: pointer;
563
+ }
564
+ .en-link-button {
565
+ color: var(--eds-primary-main);
566
+ font-size: var(--eds-fs-body2);
567
+ font-weight: var(--eds-fw-bold);
568
+ }
569
+ .en-example-button > span,
570
+ .en-auto-button > span,
571
+ .en-add-button > span {
572
+ display: inline-flex;
573
+ align-items: center;
574
+ line-height: 1.5;
575
+ }
576
+ .en-example-button svg,
577
+ .en-auto-button svg,
578
+ .en-add-button svg {
579
+ display: block;
580
+ }
581
+ .en-link-button.en-example-button {
582
+ display: inline-flex;
583
+ align-items: center;
584
+ gap: 4px;
585
+ padding: 8px;
586
+ border-radius: var(--eds-radius);
587
+ color: var(--eds-text-primary);
588
+ white-space: nowrap;
589
+ }
590
+ .en-link-button.en-example-button:hover {
591
+ background: var(--eds-action-hover);
592
+ text-decoration: none;
593
+ }
594
+ .en-link-button.en-example-button[aria-expanded='true'] svg {
595
+ transform: rotate(180deg);
596
+ }
597
+ .en-criteria-form {
598
+ display: flex;
599
+ flex-direction: column;
600
+ gap: 12px;
601
+ }
602
+ .en-criteria-head,
603
+ .en-criterion,
604
+ .en-criteria-actions {
605
+ display: grid;
606
+ grid-template-columns: 200px minmax(0, 1fr) 160px 40px;
607
+ align-items: center;
608
+ gap: 12px;
609
+ }
610
+ /* 칸 아래 오류 글이 붙으므로 줄은 위로 맞춤 */
611
+ .en-criterion {
612
+ align-items: start;
613
+ }
614
+ .en-cell {
615
+ display: flex;
616
+ flex-direction: column;
617
+ gap: 4px;
618
+ min-width: 0;
619
+ }
620
+ .en-field-error {
621
+ margin: 0;
622
+ color: var(--eds-error-main);
623
+ font-size: var(--eds-fs-body2);
624
+ font-weight: var(--eds-fw-regular, 400);
625
+ line-height: 1.4;
626
+ }
627
+ .en-field-error[hidden] {
628
+ display: none;
629
+ }
630
+ /* 추가하기(오브젝트 칸 아래) · 자동 배점(부분 점수 칸 아래) */
631
+ .en-criteria-actions .en-add-button {
632
+ grid-column: 1;
633
+ align-self: stretch;
634
+ width: 100%;
635
+ }
636
+ .en-criteria-actions .en-auto-button {
637
+ display: inline-flex;
638
+ grid-column: 3;
639
+ justify-self: start;
640
+ align-items: center;
641
+ gap: 6px;
642
+ min-height: 40px;
643
+ padding: 8px 12px;
644
+ border: 0;
645
+ border-radius: var(--eds-radius);
646
+ background: none;
647
+ color: var(--eds-text-primary);
648
+ font: inherit;
649
+ font-size: var(--eds-fs-body2);
650
+ font-weight: var(--eds-fw-semibold);
651
+ cursor: pointer;
652
+ }
653
+ .en-criteria-actions .en-auto-button:hover:not(:disabled) {
654
+ background: var(--eds-action-hover);
655
+ }
656
+ .en-criteria-actions .en-auto-button:focus-visible {
657
+ outline: 2px solid var(--eds-primary-main);
658
+ }
659
+ .en-criteria-head {
660
+ margin-bottom: -4px;
661
+ color: var(--eds-text-primary);
662
+ font-size: var(--eds-fs-body2);
663
+ font-weight: var(--eds-fw-medium);
664
+ }
665
+ .en-criteria-head > span {
666
+ display: flex;
667
+ align-items: center;
668
+ gap: 4px;
669
+ }
670
+ .en-required {
671
+ color: var(--eds-error-main, #c62828);
672
+ }
673
+ .en-info {
674
+ position: relative;
675
+ display: inline-grid;
676
+ place-items: center;
677
+ width: 20px;
678
+ height: 20px;
679
+ color: var(--eds-text-secondary);
680
+ }
681
+ /* 부분 점수 안내 말풍선 (i에 마우스 · 포커스) */
682
+ .en-tooltip {
683
+ position: absolute;
684
+ top: calc(100% + 6px);
685
+ right: -8px;
686
+ z-index: 25;
687
+ box-sizing: border-box;
688
+ width: max-content;
689
+ max-width: 260px;
690
+ padding: 6px 10px;
691
+ border-radius: 4px;
692
+ background: var(--eds-background-inverse, #191f28);
693
+ color: #fff;
694
+ font-size: 12px;
695
+ font-weight: var(--eds-fw-medium);
696
+ line-height: 1.4;
697
+ white-space: normal;
698
+ }
699
+ .en-tooltip[hidden] {
700
+ display: none;
701
+ }
702
+ /* 기준 목록은 스크롤 없이 다 보임 (최대 10개) */
703
+ .en-criteria {
704
+ display: flex;
705
+ flex-direction: column;
706
+ gap: 12px;
707
+ }
708
+ .en-field {
709
+ box-sizing: border-box;
710
+ width: 100%;
711
+ min-height: 40px;
712
+ padding: 0 12px;
713
+ border: 1px solid var(--eds-surface-border);
714
+ border-radius: 8px;
715
+ background: var(--eds-background-input);
716
+ color: var(--eds-text-primary);
717
+ font: inherit;
718
+ font-size: var(--eds-fs-body2);
719
+ font-weight: var(--eds-fw-medium);
720
+ }
721
+ .en-field::placeholder {
722
+ color: var(--eds-text-disabled);
723
+ }
724
+ /* 포커스: 테두리를 주 색으로 + 1px 그림자 (점수 칸은 감싼 칸이 그림) */
725
+ .en-field:focus-visible,
726
+ .en-select-button:focus-visible,
727
+ .en-score-field:focus-within {
728
+ border-color: var(--eds-primary-main);
729
+ outline: none;
730
+ box-shadow: 0 0 0 1px var(--eds-primary-main);
731
+ }
732
+ /* 오류 칸: 빨간 테두리 (포커스면 빨간 그림자) */
733
+ .en-field[data-invalid='true'],
734
+ .en-select[data-invalid='true'] .en-select-button {
735
+ border-color: var(--eds-error-main);
736
+ }
737
+ .en-field[data-invalid='true']:focus-visible,
738
+ .en-score-field[data-invalid='true']:focus-within,
739
+ .en-select[data-invalid='true'] .en-select-button:focus-visible {
740
+ border-color: var(--eds-error-main);
741
+ box-shadow: 0 0 0 1px var(--eds-error-main);
742
+ }
743
+ .en-score-field {
744
+ display: flex;
745
+ align-items: center;
746
+ gap: 8px;
747
+ padding: 0 12px;
748
+ }
749
+ .en-score-input {
750
+ flex: 1;
751
+ width: 100%;
752
+ min-width: 0;
753
+ height: 100%;
754
+ padding: 0;
755
+ border: 0;
756
+ outline: none;
757
+ background: none;
758
+ color: var(--eds-text-primary);
759
+ font: inherit;
760
+ appearance: textfield;
761
+ -moz-appearance: textfield;
762
+ }
763
+ /* 테두리는 감싼 칸(.en-score-field:focus-within)이 그린다. 키트의 input:focus 테두리가 안에 또 그려지지 않게 */
764
+ .en-score-field .en-score-input,
765
+ .en-score-field .en-score-input:focus,
766
+ .en-score-field .en-score-input:focus-visible {
767
+ border: 0;
768
+ border-radius: 0;
769
+ outline: none !important;
770
+ box-shadow: none;
771
+ }
772
+ /* 숫자 칸의 위아래 화살표는 쓰지 않는다 (디자인에 없음, 점수는 직접 입력) */
773
+ .en-score-input::-webkit-inner-spin-button,
774
+ .en-score-input::-webkit-outer-spin-button {
775
+ margin: 0;
776
+ -webkit-appearance: none;
777
+ }
778
+ .en-score-input::placeholder {
779
+ color: var(--eds-text-disabled);
780
+ }
781
+ .en-unit {
782
+ flex: none;
783
+ color: var(--eds-text-tertiary);
784
+ font-size: 13px;
785
+ font-weight: var(--eds-fw-medium);
786
+ }
787
+ .en-icon-button {
788
+ display: grid;
789
+ place-items: center;
790
+ width: 40px;
791
+ height: 40px;
792
+ border-radius: var(--eds-radius);
793
+ color: var(--eds-action-active, #0000008a);
794
+ }
795
+ .en-icon-button:hover:not(:disabled) {
796
+ background: var(--eds-action-hover);
797
+ }
798
+ .en-icon-button:focus-visible {
799
+ outline: 2px solid var(--eds-primary-main);
800
+ }
801
+ .en-icon-button:disabled,
802
+ .en-link-button:disabled {
803
+ opacity: 0.38;
804
+ cursor: default;
805
+ }
806
+ .en-icon-button--placeholder {
807
+ visibility: hidden;
808
+ }
809
+ .en-add-button {
810
+ display: inline-flex;
811
+ align-self: flex-start;
812
+ justify-content: center;
813
+ align-items: center;
814
+ gap: 8px;
815
+ box-sizing: border-box;
816
+ width: auto;
817
+ min-height: 40px;
818
+ padding: 8px 16px;
819
+ border: 0;
820
+ border-radius: var(--eds-radius);
821
+ background: var(--eds-divider);
822
+ color: var(--eds-text-primary);
823
+ font: inherit;
824
+ font-size: var(--eds-fs-body2);
825
+ font-weight: var(--eds-fw-semibold);
826
+ cursor: pointer;
827
+ }
828
+ .en-add-button:hover:not(:disabled) {
829
+ background: var(--eds-action-focus);
830
+ }
831
+ .en-add-button:disabled {
832
+ opacity: 0.38;
833
+ cursor: default;
834
+ }
835
+
836
+ /* 오브젝트 고르기 */
837
+ .en-select {
838
+ position: relative;
839
+ min-width: 0;
840
+ }
841
+ .en-select-button {
842
+ display: flex;
843
+ align-items: center;
844
+ gap: 8px;
845
+ padding-right: 8px;
846
+ background: var(--eds-background-input);
847
+ text-align: left;
848
+ cursor: pointer;
849
+ }
850
+ .en-select-button:hover {
851
+ border-color: var(--eds-text-primary);
852
+ }
853
+ .en-select-button[aria-expanded='true'] {
854
+ border-color: var(--eds-primary-main);
855
+ }
856
+ .en-select-value {
857
+ flex: 1;
858
+ min-width: 0;
859
+ overflow: hidden;
860
+ font-weight: var(--eds-fw-medium);
861
+ text-overflow: ellipsis;
862
+ white-space: nowrap;
863
+ }
864
+ .en-select-value[data-empty] {
865
+ color: var(--eds-text-disabled);
866
+ }
867
+ .en-select-caret {
868
+ display: grid;
869
+ flex: none;
870
+ color: var(--eds-text-secondary);
871
+ }
872
+ .en-thumb {
873
+ display: grid;
874
+ flex: none;
875
+ place-items: center;
876
+ width: 24px;
877
+ height: 24px;
878
+ border-radius: 4px;
879
+ background: var(--eds-background-neutral, #f1f3f5);
880
+ overflow: hidden;
881
+ }
882
+ .en-thumb img {
883
+ width: 100%;
884
+ height: 100%;
885
+ object-fit: contain;
886
+ }
887
+ .en-menu {
888
+ position: fixed;
889
+ z-index: 30;
890
+ box-sizing: border-box;
891
+ max-height: 280px;
892
+ margin: 0;
893
+ padding: 8px;
894
+ overflow-y: auto;
895
+ border: 1px solid var(--eds-divider);
896
+ border-radius: var(--eds-radius);
897
+ background: var(--eds-common-white);
898
+ box-shadow: 0 3px 14px #00000024;
899
+ list-style: none;
900
+ }
901
+ .en-menu[hidden] {
902
+ display: none;
903
+ }
904
+ .en-menu-item {
905
+ display: flex;
906
+ align-items: center;
907
+ gap: 8px;
908
+ box-sizing: border-box;
909
+ height: 40px;
910
+ padding: 10px 8px;
911
+ border-radius: 4px;
912
+ color: var(--eds-text-primary);
913
+ font-size: var(--eds-fs-body2);
914
+ font-weight: var(--eds-fw-medium);
915
+ cursor: pointer;
916
+ transition: background-color 0.3s;
917
+ }
918
+ .en-menu-item span:last-child {
919
+ min-width: 0;
920
+ overflow: hidden;
921
+ text-overflow: ellipsis;
922
+ white-space: nowrap;
923
+ }
924
+ .en-menu-item:hover,
925
+ .en-menu-item:focus-visible {
926
+ outline: none;
927
+ background: var(--eds-action-hover);
928
+ }
929
+ .en-menu-item[aria-selected='true'] {
930
+ background: var(--eds-action-selected);
931
+ }
932
+ .en-menu-empty {
933
+ padding: 10px 8px;
934
+ color: var(--eds-text-secondary);
935
+ font-size: var(--eds-fs-body2);
936
+ }
937
+
938
+ /* 워크스페이스를 띄울 수 없을 때 */
939
+ .en-unavailable {
940
+ display: grid;
941
+ place-items: center;
942
+ height: 100%;
943
+ min-height: 240px;
944
+ padding: 24px;
945
+ text-align: center;
946
+ }
947
+ .en-unavailable span {
948
+ display: block;
949
+ color: var(--ec-muted);
950
+ }
951
+
952
+ /* ───── 좁은 화면 (디자인에 없음: 줄을 접어 가로 스크롤이 생기지 않게) ───── */
953
+ @media (width <= 720px) {
954
+ .en-bar {
955
+ flex-wrap: wrap;
956
+ gap: 8px 12px;
957
+ padding: 8px 16px;
958
+ }
959
+ .en-bar .en-error:empty {
960
+ display: none;
961
+ }
962
+ .en-bar .en-status:not(:empty) {
963
+ flex-basis: 100%;
964
+ }
965
+ .en-bar .en-submitted {
966
+ flex: 1;
967
+ }
968
+ .en-feedback {
969
+ padding: 12px 16px;
970
+ }
971
+ .en-tabcard .en-panel {
972
+ padding: 16px 16px 0;
973
+ }
974
+ .en-grading-mode {
975
+ margin: 8px 16px 0;
976
+ }
977
+ .en-tabcard .en-panel .en-workspace {
978
+ margin-inline: -16px;
979
+ }
980
+ .en-tabcard .en-ai {
981
+ margin: 16px 16px 8px;
982
+ padding: 16px;
983
+ }
984
+ /* 아래 줄: 안내 위 · 용량 칩 아래 오른쪽 */
985
+ .en-panel-footer {
986
+ flex-direction: column;
987
+ align-items: stretch;
988
+ gap: 8px;
989
+ }
990
+ .en-size-box {
991
+ align-self: flex-end;
992
+ max-width: 100%;
993
+ }
994
+ .en-ai-head {
995
+ flex-wrap: wrap;
996
+ align-items: flex-start;
997
+ gap: 8px;
998
+ }
999
+ .en-ai-head .en-popover {
1000
+ right: auto;
1001
+ left: 0;
1002
+ }
1003
+ /* 기준 한 줄을 두 줄로: 오브젝트 · 부분 점수 · 삭제 / 채점 기준. 머리 줄은 숨기고 칸마다 aria-label */
1004
+ .en-criteria-head {
1005
+ display: none;
1006
+ }
1007
+ /* 추가하기 · 자동 배점 한 줄에 반씩 */
1008
+ .en-criteria-actions {
1009
+ grid-template-columns: 1fr 1fr;
1010
+ gap: 8px;
1011
+ }
1012
+ .en-criteria-actions .en-auto-button {
1013
+ grid-column: 2;
1014
+ justify-self: end;
1015
+ }
1016
+ .en-criterion {
1017
+ grid-template-columns: minmax(0, 1fr) 112px 40px;
1018
+ grid-template-areas:
1019
+ 'object score remove'
1020
+ 'criteria criteria criteria';
1021
+ gap: 8px;
1022
+ padding-bottom: 12px;
1023
+ border-bottom: 1px solid var(--eds-divider);
1024
+ }
1025
+ .en-criterion > :nth-child(1) {
1026
+ grid-area: object;
1027
+ }
1028
+ .en-criterion > :nth-child(2) {
1029
+ grid-area: criteria;
1030
+ }
1031
+ .en-criterion > :nth-child(3) {
1032
+ grid-area: score;
1033
+ }
1034
+ .en-criterion > :nth-child(4) {
1035
+ grid-area: remove;
1036
+ }
1037
+ }