@eliceio/cdk-cli 1.5.4-qa.0 → 1.6.0-entryqa.0

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