@nurihaus/web-design-system 3.26.1 → 3.28.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 (155) hide show
  1. package/dist/agreement.js +6 -198
  2. package/dist/ai/components.md +707 -80
  3. package/dist/ai/migration.md +25 -0
  4. package/dist/ai/motion.md +10 -4
  5. package/dist/ai/patterns.md +1631 -663
  6. package/dist/ai/tokens.md +21 -8
  7. package/dist/avatar.js +37 -5
  8. package/dist/check-box.js +24 -14
  9. package/dist/chip-group.js +23 -7
  10. package/dist/chunk-244.js +31 -0
  11. package/dist/chunk-2735.js +123 -0
  12. package/dist/chunk-4359.js +96 -0
  13. package/dist/{chunk-6096.js → chunk-4709.js} +17 -33
  14. package/dist/chunk-4955.js +115 -0
  15. package/dist/chunk-7024.js +3 -1
  16. package/dist/chunk-7187.js +35 -0
  17. package/dist/chunk-7829.js +10 -2
  18. package/dist/chunk-8144.js +106 -0
  19. package/dist/chunk-9350.js +23 -0
  20. package/dist/components/asset/asset.d.ts +3 -3
  21. package/dist/components/asset/asset.stories.d.ts +3 -3
  22. package/dist/components/avatar/avatar-type.d.ts +3 -0
  23. package/dist/components/avatar/avatar.stories.d.ts +4 -0
  24. package/dist/components/check-box/check-box-type.d.ts +2 -0
  25. package/dist/components/check-box/check-box.stories.d.ts +2 -0
  26. package/dist/components/chip-group/chip-group-props.d.ts +6 -3
  27. package/dist/components/chip-group/chip-group-type.d.ts +4 -1
  28. package/dist/components/chip-group/chip-group.stories.d.ts +6 -2
  29. package/dist/components/description-list/description-list-props.d.ts +15 -1
  30. package/dist/components/description-list/description-list-type.d.ts +11 -1
  31. package/dist/components/description-list/description-list.d.ts +1 -1
  32. package/dist/components/description-list/description-list.stories.d.ts +7 -0
  33. package/dist/components/drop-down/drop-down-type.d.ts +14 -2
  34. package/dist/components/drop-down/drop-down.stories.d.ts +3 -1
  35. package/dist/components/empty-state/empty-state-props.d.ts +3 -0
  36. package/dist/components/empty-state/empty-state-type.d.ts +8 -2
  37. package/dist/components/empty-state/empty-state.d.ts +3 -0
  38. package/dist/components/empty-state/empty-state.stories.d.ts +297 -5
  39. package/dist/components/form-field/base-form-field.d.ts +13 -0
  40. package/dist/components/form-field/form-field-context.d.ts +7 -0
  41. package/dist/components/form-field/form-field-props.d.ts +21 -0
  42. package/dist/components/form-field/form-field-type.d.ts +51 -0
  43. package/dist/components/form-field/form-field.d.ts +9 -0
  44. package/dist/components/form-field/form-field.stories.d.ts +335 -0
  45. package/dist/components/form-section/base-form-section.d.ts +4 -0
  46. package/dist/components/form-section/form-section-props.d.ts +2 -0
  47. package/dist/components/form-section/form-section-type.d.ts +16 -0
  48. package/dist/components/form-section/form-section.d.ts +5 -0
  49. package/dist/components/form-section/form-section.stories.d.ts +308 -0
  50. package/dist/components/icon/icon.stories.d.ts +1 -1
  51. package/dist/components/list/list-footer.stories.d.ts +2 -2
  52. package/dist/components/list/list-row.stories.d.ts +1 -1
  53. package/dist/components/message/message.stories.d.ts +3 -3
  54. package/dist/components/modal/modal-props.d.ts +10 -3
  55. package/dist/components/modal/modal-type.d.ts +22 -4
  56. package/dist/components/modal/modal-with-double-button.stories.d.ts +16 -1
  57. package/dist/components/modal/modal.stories.d.ts +5 -1
  58. package/dist/components/notice/notice-type.d.ts +3 -0
  59. package/dist/components/notice/notice.stories.d.ts +279 -0
  60. package/dist/components/overlay/overlay-type.d.ts +1 -1
  61. package/dist/components/pagination/pagination-type.d.ts +10 -0
  62. package/dist/components/pagination/pagination.stories.d.ts +7 -1
  63. package/dist/components/radio/base-radio.d.ts +2 -2
  64. package/dist/components/radio/radio-props.d.ts +8 -2
  65. package/dist/components/radio/radio-type.d.ts +14 -3
  66. package/dist/components/radio/radio.stories.d.ts +11 -1
  67. package/dist/components/search-field/search-field-type.d.ts +19 -3
  68. package/dist/components/search-field/search-field.d.ts +1 -1
  69. package/dist/components/search-field/search-field.stories.d.ts +2 -0
  70. package/dist/components/segmented-control/segmented-control-props.d.ts +8 -0
  71. package/dist/components/segmented-control/segmented-control-type.d.ts +3 -1
  72. package/dist/components/segmented-control/segmented-control.stories.d.ts +8 -0
  73. package/dist/components/skeleton/skeleton.stories.d.ts +2 -2
  74. package/dist/components/stat/base-stat.d.ts +13 -4
  75. package/dist/components/stat/stat-group.d.ts +8 -0
  76. package/dist/components/stat/stat-group.stories.d.ts +27 -0
  77. package/dist/components/stat/stat-props.d.ts +5 -3
  78. package/dist/components/stat/stat-type.d.ts +40 -2
  79. package/dist/components/stat/stat.d.ts +1 -1
  80. package/dist/components/stat/stat.stories.d.ts +3 -1
  81. package/dist/components/table/base-table.d.ts +5 -1
  82. package/dist/components/table/data-table.d.ts +6 -1
  83. package/dist/components/table/table-props.d.ts +10 -0
  84. package/dist/components/table/table-type.d.ts +42 -6
  85. package/dist/components/table/table.stories.d.ts +101 -2
  86. package/dist/components/text-area/base-text-area.d.ts +2 -2
  87. package/dist/components/text-area/text-area-props.d.ts +8 -0
  88. package/dist/components/text-area/text-area-type.d.ts +12 -1
  89. package/dist/components/text-area/text-area.stories.d.ts +11 -1
  90. package/dist/components/text-button/text-button-type.d.ts +5 -0
  91. package/dist/components/text-button/text-button.stories.d.ts +2 -0
  92. package/dist/components/text-field/base-text-field.d.ts +2 -2
  93. package/dist/components/text-field/text-field-props.d.ts +8 -0
  94. package/dist/components/text-field/text-field-type.d.ts +13 -1
  95. package/dist/components/text-field/text-field.stories.d.ts +10 -2
  96. package/dist/components/toast/toast-props.d.ts +10 -2
  97. package/dist/components/toast/toast-type.d.ts +3 -1
  98. package/dist/components/toast/toast.stories.d.ts +18 -3
  99. package/dist/components.css +1612 -123
  100. package/dist/data-table.js +301 -50
  101. package/dist/description-list.js +221 -6
  102. package/dist/docs/patterns/desktop/admin-apply.stories.d.ts +16 -0
  103. package/dist/docs/patterns/desktop/admin-bulk.stories.d.ts +7 -4
  104. package/dist/docs/patterns/desktop/admin-dashboard.stories.d.ts +4 -2
  105. package/dist/docs/patterns/desktop/admin-detail.stories.d.ts +5 -0
  106. package/dist/docs/patterns/desktop/admin-feature-intro.stories.d.ts +18 -0
  107. package/dist/docs/patterns/desktop/admin-form.stories.d.ts +4 -2
  108. package/dist/docs/patterns/desktop/admin-list.stories.d.ts +5 -0
  109. package/dist/docs/patterns/desktop/admin-picker.stories.d.ts +18 -0
  110. package/dist/docs/patterns/desktop/admin-queue.stories.d.ts +23 -0
  111. package/dist/docs/patterns/desktop/admin-report.stories.d.ts +3 -2
  112. package/dist/docs/patterns/desktop/admin-review.stories.d.ts +6 -2
  113. package/dist/docs/patterns/desktop/admin-settings.stories.d.ts +6 -2
  114. package/dist/docs/patterns/desktop/admin-split.stories.d.ts +18 -0
  115. package/dist/docs/patterns/desktop/admin-states.stories.d.ts +5 -3
  116. package/dist/docs/patterns/desktop/admin-upload.stories.d.ts +18 -0
  117. package/dist/docs/patterns/desktop/admin-wallet.stories.d.ts +18 -0
  118. package/dist/docs/patterns/desktop/admin-wizard.stories.d.ts +6 -3
  119. package/dist/docs/patterns/mobile/form.stories.d.ts +1 -0
  120. package/dist/drop-down.js +64 -155
  121. package/dist/empty-state.js +26 -14
  122. package/dist/form-field.js +511 -0
  123. package/dist/form-section.js +298 -0
  124. package/dist/full-secure-keypad.js +4 -4
  125. package/dist/helpers/motion/use-attention-handle.d.ts +1 -1
  126. package/dist/helpers/motion/use-effect-trigger.d.ts +1 -1
  127. package/dist/icon-button.js +2 -1
  128. package/dist/icon-text-badge.js +4 -4
  129. package/dist/index.d.ts +6 -1
  130. package/dist/index.js +2105 -500
  131. package/dist/loading.js +6 -6
  132. package/dist/modal-with-double-button.js +95 -44
  133. package/dist/modal.js +24 -6
  134. package/dist/notice.js +5 -4
  135. package/dist/option-badge.js +4 -4
  136. package/dist/overlay.js +134 -61
  137. package/dist/pagination.js +291 -57
  138. package/dist/radio.js +165 -37
  139. package/dist/search-field.js +188 -77
  140. package/dist/section-header.js +14 -7
  141. package/dist/segmented-control.js +9 -1
  142. package/dist/split-text-field.js +16 -14
  143. package/dist/stat-group.js +441 -0
  144. package/dist/stat.js +90 -75
  145. package/dist/styles.css +1383 -154
  146. package/dist/text-area.js +90 -53
  147. package/dist/text-button.js +14 -7
  148. package/dist/text-field.js +94 -62
  149. package/dist/toast.js +27 -15
  150. package/dist/tokens/generated/primitive.d.ts +1 -0
  151. package/dist/tokens/generated/semantic-admin.d.ts +1 -0
  152. package/dist/tokens/generated/semantic-app.d.ts +2 -4
  153. package/dist/tokens.css +33 -9
  154. package/dist/tokens.js +5 -5
  155. package/package.json +13 -1
package/dist/styles.css CHANGED
@@ -110,6 +110,7 @@
110
110
  --color-instagram-purple: #833AB4;
111
111
  --color-youtube-red: #FF0033;
112
112
  --gradient-instagram: linear-gradient(90deg, var(--color-instagram-orange) 0%, var(--color-instagram-pink) 45%, var(--color-instagram-purple) 100%);
113
+ --gradient-avatar-initial: linear-gradient(150deg, var(--color-purple-300) 0%, var(--color-purple-700) 100%);
113
114
  --font-family-primary: Pretendard;
114
115
  --font-weight-regular: 400;
115
116
  --font-weight-medium: 500;
@@ -293,7 +294,6 @@
293
294
  /* 메뉴 행: collapsible-menu, drop-down 항목 */
294
295
  --menu-row-height-s: 40px;
295
296
  --menu-row-height-m: 48px;
296
- --drop-down-item-height: 46px;
297
297
 
298
298
  /* 정사각 */
299
299
  --checkbox-size-s: 18px;
@@ -348,6 +348,14 @@
348
348
  --avatar-badge-size-xl: var(--asset-accessory-xl);
349
349
  /* Avatar edit 딱지를 사진에서 떼는 바탕색 테두리 */
350
350
  --avatar-edit-ring: 2px;
351
+ /* Avatar 이름 첫 글자는 지름의 42% 다 */
352
+ --avatar-initial-ratio: 0.42;
353
+ --avatar-initial-font-size-s: calc(var(--asset-circle-s) * var(--avatar-initial-ratio));
354
+ --avatar-initial-font-size-m: calc(var(--asset-circle-m) * var(--avatar-initial-ratio));
355
+ --avatar-initial-font-size-l: calc(var(--asset-circle-l) * var(--avatar-initial-ratio));
356
+ --avatar-initial-font-size-xl: calc(var(--asset-circle-xl) * var(--avatar-initial-ratio));
357
+ /* 첫 글자 원 아래쪽의 옅은 보라 안 그늘. em 이라 글자 크기(곧 지름)를 따른다 */
358
+ --avatar-initial-shade: inset 0 -0.4em 0.9em rgba(50, 20, 90, 0.18);
351
359
 
352
360
  /* 폭 */
353
361
  --drawer-width-s: 320px;
@@ -361,6 +369,8 @@
361
369
  --modal-width-s: 400px;
362
370
  --modal-width-m: 450px;
363
371
  --modal-width-l: 500px;
372
+ /* 두 칸 본문(전체 | 고른 것)을 담는 넓은 모달 */
373
+ --modal-width-xl: 800px;
364
374
 
365
375
  /* 아래 시트(BottomSheet·Drawer bottom 의 fit-content·fit-screen): 손잡이 크기와 가장 큰 높이. 위 8% 는 시트 뒤 화면이 보이게 남긴다 */
366
376
  --sheet-handle-width: 40px;
@@ -456,8 +466,13 @@
456
466
  --text-button-height-m: var(--control-height-s);
457
467
  --text-button-height-l: var(--control-height-m);
458
468
 
469
+ /* 폼 필드: form-field. layout='side' 의 왼쪽 라벨 칸 폭 */
470
+ --form-label-width: 160px;
471
+
459
472
  /* 입력 상자 안 버튼: text-field·text-area 의 지우기·비밀번호 보기. 아이콘 s 와 같고 누르는 자리는 --touch-target */
460
473
  --text-field-action-size: var(--icon-size-s);
474
+ /* 필수 입력 라벨 오른쪽 위 빨간 점(styles/required-dot.css 의 .nuri-required-dot) */
475
+ --required-dot-size: 4px;
461
476
 
462
477
  /* 화면 아래 주 버튼 바: bottom-cta. 높이 최소값은 버튼(control xl) + 위 여백 12 + 아래 여백 20 이다.
463
478
  takeSpace 자리가 바를 재기 전에 이 높이로 잡히고, 바를 직접 비우는 화면도 이 값을 읽는다 */
@@ -467,6 +482,8 @@
467
482
 
468
483
  /* 빈 화면: empty-state 아이콘 원 */
469
484
  --empty-state-icon-box: 64px;
485
+ /* size='s'(표·블록 안) 의 아이콘 원 */
486
+ --empty-state-icon-box-s: 48px;
470
487
 
471
488
  /* 결과 화면: result-screen 그림 타일·안의 그림·보안 체크 배지 */
472
489
  --result-screen-tile: 104px;
@@ -496,6 +513,9 @@
496
513
  /* 화면 자판: keypad 의 키 높이. 손가락 터치(44) 보다 조금 크게 둔다 */
497
514
  --keypad-key-height: 48px;
498
515
 
516
+ /* 표: data-table. 결과가 0건일 때 본문 자리에 남기는 문구 칸의 높이 */
517
+ --data-table-empty-height: 160px;
518
+
499
519
 
500
520
  /* 문단 줄 안 조각: paragraph. 아이콘은 글자 크기를 따른다.
501
521
  뱃지는 20px 이되 줄 높이(1lh, 문단의 것을 물려받는다)를 넘지 않는다. xsm·sm(18px 줄)에서 줄 간격이 벌어지지 않게 한다 */
@@ -540,12 +560,15 @@
540
560
  /* 키보드 포커스 링. 규칙은 styles/focus.css 하나다. 링 색은 tokens/tokens.json 에 있다 */
541
561
  --focus-ring-width: 2px;
542
562
  --focus-ring-offset: 2px;
543
- /* 입력 상자(TextField·TextArea)의 포커스 후광. 입력은 전역 포커스 링 대신 이것을 쓴다 */
544
- --field-focus-halo: 3px;
545
563
 
546
564
  /* 그림자 */
547
565
  --shadow-popover: 0px 4px 6px -2px rgba(0, 0, 0, 0.06), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
548
566
  --shadow-floating: 0px 10px 30px rgba(24, 24, 27, 0.14), 0px 1px 3px rgba(24, 24, 27, 0.08);
567
+ /* 바탕 판 안에서 살짝 뜬 작은 판(SegmentedControl neutral 의 흰 알약) */
568
+ --shadow-raised: 0px 1px 3px rgba(0, 0, 0, 0.1);
569
+ /* 가로로 스크롤하는 칸 안의 고정 열 경계. start 는 왼쪽 고정 열이 오른쪽으로, end 는 오른쪽 고정 열이 왼쪽으로 드리운다(DataTable) */
570
+ --shadow-pinned-start: 6px 0 8px -6px rgba(0, 0, 0, 0.16);
571
+ --shadow-pinned-end: -6px 0 8px -6px rgba(0, 0, 0, 0.16);
549
572
 
550
573
  /* 레이어. 값이 같아도 역할이 다르면 이름을 따로 둔다 */
551
574
  --z-base: 0;
@@ -663,10 +686,12 @@
663
686
  --border-default: var(--color-grey-scale-200);
664
687
  --border-hover: var(--color-grey-scale-400);
665
688
  --border-accent: var(--color-purple-700);
689
+ --border-accent-subtle: var(--color-purple-300);
666
690
  --border-error: var(--color-accent-red-500);
667
691
  --border-disabled: var(--color-grey-scale-200);
668
692
  --focus-ring-color: var(--color-purple-600);
669
693
  --surface-base: var(--color-white);
694
+ --surface-elevated: var(--color-white);
670
695
  --surface-subtle: var(--color-grey-scale-50);
671
696
  --surface-muted: var(--color-grey-scale-100);
672
697
  --surface-strong: var(--color-grey-scale-200);
@@ -721,8 +746,6 @@
721
746
  --icon-disabled: var(--color-grey-scale-300);
722
747
  --icon-on-brand: var(--color-white);
723
748
  --icon-brand: var(--color-purple-700);
724
- --focus-halo-color: var(--color-purple-50);
725
- --focus-halo-error-color: var(--color-accent-red-50);
726
749
  --toast-description: var(--color-purple-200);
727
750
  --toast-success-background: var(--color-accent-green-600);
728
751
  --toast-success-description: var(--color-accent-green-100);
@@ -842,6 +865,7 @@
842
865
  --border-default: var(--color-grey-scale-300);
843
866
  --border-hover: var(--color-grey-scale-400);
844
867
  --border-accent: var(--color-purple-900);
868
+ --border-accent-subtle: var(--color-purple-300);
845
869
  --border-error: var(--color-accent-red-500);
846
870
  --border-disabled: var(--color-grey-scale-200);
847
871
  --focus-ring-color: var(--color-purple-600);
@@ -850,6 +874,7 @@
850
874
  :root[data-ds-color-scheme='dark'], :root[data-ds-theme='app'][data-ds-color-scheme='dark'] {
851
875
  color-scheme: dark;
852
876
  --surface-base: var(--color-grey-scale-900);
877
+ --surface-elevated: var(--color-grey-scale-700);
853
878
  --surface-subtle: var(--color-grey-scale-800);
854
879
  --surface-muted: var(--color-grey-scale-700);
855
880
  --surface-strong: var(--color-grey-scale-600);
@@ -890,11 +915,10 @@
890
915
  --border-default: var(--color-grey-scale-600);
891
916
  --border-hover: var(--color-grey-scale-500);
892
917
  --border-accent: var(--color-purple-400);
918
+ --border-accent-subtle: var(--color-purple-600);
893
919
  --border-error: var(--color-accent-red-400);
894
920
  --border-disabled: var(--color-grey-scale-700);
895
921
  --focus-ring-color: var(--color-purple-400);
896
- --focus-halo-color: var(--color-purple-900);
897
- --focus-halo-error-color: var(--color-accent-red-900);
898
922
  --toast-success-background: var(--color-accent-green-800);
899
923
  --toast-warning-background: var(--color-accent-orange-700);
900
924
  --toast-error-background: var(--color-accent-red-600);
@@ -968,6 +992,7 @@
968
992
  :root:not([data-ds-color-scheme='light']), :root[data-ds-theme='app']:not([data-ds-color-scheme='light']) {
969
993
  color-scheme: dark;
970
994
  --surface-base: var(--color-grey-scale-900);
995
+ --surface-elevated: var(--color-grey-scale-700);
971
996
  --surface-subtle: var(--color-grey-scale-800);
972
997
  --surface-muted: var(--color-grey-scale-700);
973
998
  --surface-strong: var(--color-grey-scale-600);
@@ -1008,11 +1033,10 @@
1008
1033
  --border-default: var(--color-grey-scale-600);
1009
1034
  --border-hover: var(--color-grey-scale-500);
1010
1035
  --border-accent: var(--color-purple-400);
1036
+ --border-accent-subtle: var(--color-purple-600);
1011
1037
  --border-error: var(--color-accent-red-400);
1012
1038
  --border-disabled: var(--color-grey-scale-700);
1013
1039
  --focus-ring-color: var(--color-purple-400);
1014
- --focus-halo-color: var(--color-purple-900);
1015
- --focus-halo-error-color: var(--color-accent-red-900);
1016
1040
  --toast-success-background: var(--color-accent-green-800);
1017
1041
  --toast-warning-background: var(--color-accent-orange-700);
1018
1042
  --toast-error-background: var(--color-accent-red-600);
@@ -1342,6 +1366,18 @@ p {
1342
1366
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
1343
1367
  outline-offset: var(--focus-ring-offset);
1344
1368
  }
1369
+ /* 필수 입력 표시. 라벨 글 바로 뒤에 붙는 작은 빨간 점이다(별표 대신).
1370
+ 점은 aria-hidden 으로 두고, 필수라는 사실은 input 의 required 가 알린다 */
1371
+ .nuri-required-dot {
1372
+ display: inline-block;
1373
+ flex: none;
1374
+ width: var(--required-dot-size);
1375
+ height: var(--required-dot-size);
1376
+ margin-left: var(--spacing-2);
1377
+ vertical-align: top;
1378
+ border-radius: var(--radius-circle);
1379
+ background-color: var(--text-error);
1380
+ }
1345
1381
  /* 공용 키프레임. 컴포넌트 CSS 보다 앞에 둔다 */
1346
1382
  /*
1347
1383
  * 공용 키프레임. 컴포넌트 CSS 는 @keyframes 를 두지 않고 이 이름을 쓴다(빌드 R18).
@@ -2238,6 +2274,33 @@ p {
2238
2274
  width: 100%;
2239
2275
  height: 100%;
2240
2276
  }
2277
+ /* 사진 대신 이름 첫 글자 */
2278
+ .base-avatar .avatar-initial {
2279
+ display: flex;
2280
+ align-items: center;
2281
+ justify-content: center;
2282
+ background: var(--gradient-avatar-initial);
2283
+ box-shadow: var(--avatar-initial-shade);
2284
+ color: var(--text-on-brand);
2285
+ font-weight: var(--font-weight-extrabold);
2286
+ letter-spacing: var(--letter-spacing-tighter);
2287
+ line-height: 1;
2288
+ -webkit-user-select: none;
2289
+ -moz-user-select: none;
2290
+ user-select: none;
2291
+ }
2292
+ .base-avatar.size-s .avatar-initial {
2293
+ font-size: var(--avatar-initial-font-size-s);
2294
+ }
2295
+ .base-avatar.size-m .avatar-initial {
2296
+ font-size: var(--avatar-initial-font-size-m);
2297
+ }
2298
+ .base-avatar.size-l .avatar-initial {
2299
+ font-size: var(--avatar-initial-font-size-l);
2300
+ }
2301
+ .base-avatar.size-xl .avatar-initial {
2302
+ font-size: var(--avatar-initial-font-size-xl);
2303
+ }
2241
2304
  /***************************************************************************************************
2242
2305
  * *
2243
2306
  * avatar *
@@ -4173,14 +4236,27 @@ p {
4173
4236
  height: max(100%, var(--touch-target));
4174
4237
  transform: translate(-50%, -50%);
4175
4238
  }
4239
+ .check-box:hover:not([data-disabled]) > .check-box-indicator.wrapper:not(.variant-outlined) {
4240
+ border-color: var(--border-accent);
4241
+ background-color: var(--surface-brand-subtle);
4242
+ }
4243
+ .check-box:is([data-state='checked'],[data-state='indeterminate']) > .check-box-indicator.wrapper {
4244
+ border-color: var(--border-accent);
4245
+ }
4246
+ /* 꺼짐은 회색 선에 아주 연한 회색 바탕, 마우스를 올리면 보라 선에 연보라 바탕, 켜짐은 보라 채움(ADR 0021).
4247
+ transform 은 .motion-press 의 눌림이라 함께 적는다 */
4176
4248
  .check-box-indicator.wrapper {
4177
4249
  display: flex;
4178
4250
  align-items: center;
4179
4251
  justify-content: center;
4180
4252
  border-radius: var(--radius-mark);
4181
- border: var(--border-width-strong) solid var(--border-accent);
4182
- background-color: var(--surface-base);
4253
+ border: var(--border-width-strong) solid var(--border-hover);
4254
+ background-color: var(--surface-subtle);
4183
4255
  overflow: hidden;
4256
+ transition:
4257
+ transform var(--motion-press-duration) var(--motion-press-ease),
4258
+ border-color var(--motion-press-duration) var(--motion-press-ease),
4259
+ background-color var(--motion-press-duration) var(--motion-press-ease);
4184
4260
  }
4185
4261
  .check-box-indicator {
4186
4262
 
@@ -4203,7 +4279,7 @@ p {
4203
4279
 
4204
4280
  color: var(--text-on-brand);
4205
4281
  }
4206
- .check-box-indicator[data-state='checked']:not(.wrapper) {
4282
+ .check-box-indicator[data-state='checked']:not(.wrapper),.check-box-indicator[data-state='indeterminate']:not(.wrapper) {
4207
4283
  opacity: 1;
4208
4284
  }
4209
4285
  .check-box-indicator:not(.wrapper) > svg {
@@ -4324,16 +4400,60 @@ p {
4324
4400
  background: var(--surface-brand-subtle);
4325
4401
  color: var(--text-brand);
4326
4402
  }
4327
- /* ghost: 촘촘하거나 보조 필터. 선도 바탕도 없다가 고르면 회색 면 */
4328
- .chip-group.variant-ghost .chip-group-chip {
4403
+ /* ghost: 촘촘하거나 보조 필터. 선도 바탕도 없다가 고르면 회색 면.
4404
+ tab: 같은 목록의 상태 거르기 칩 탭. 고르는 모양은 ghost 와 같고 개수가 알약이다 */
4405
+ .chip-group:is(.variant-ghost,.variant-tab) .chip-group-chip {
4329
4406
  border-color: transparent;
4330
4407
  background: transparent;
4331
4408
  }
4332
- [data-state='on']:is(.chip-group.variant-ghost .chip-group-chip) {
4409
+ [data-state='on']:is(.chip-group:is(.variant-ghost,.variant-tab) .chip-group-chip) {
4333
4410
  border-color: transparent;
4334
4411
  background: var(--surface-muted);
4335
4412
  color: var(--text-primary);
4336
4413
  }
4414
+ /* 개수 알약은 쉴 때 회색 면, 고른 칩에서는 뒤집은 진한 면이라 회색 알약 위에서도 보인다 */
4415
+ .chip-group.variant-tab .chip-group-count {
4416
+ min-width: var(--line-height-xsm);
4417
+ padding: 0 var(--spacing-6);
4418
+ border-radius: var(--radius-pill);
4419
+ background: var(--surface-muted);
4420
+ color: var(--text-tertiary);
4421
+ line-height: var(--line-height-xsm);
4422
+ font-weight: var(--font-weight-semibold);
4423
+ text-align: center;
4424
+ opacity: 1;
4425
+ }
4426
+ .chip-group.variant-tab .chip-group-chip[data-state='on'] .chip-group-count {
4427
+ background: var(--surface-inverse);
4428
+ color: var(--text-inverse);
4429
+ }
4430
+ /* toggle: 따로 켜고 끄는 보조 필터('…만 보기'). 쉴 때 점선과 회색 체크, 켜면 연한 주색 면에 실선·주색 체크 */
4431
+ .chip-group.variant-toggle .chip-group-chip {
4432
+ gap: var(--spacing-4);
4433
+ border-style: dashed;
4434
+ background: transparent;
4435
+ color: var(--text-secondary);
4436
+ }
4437
+ :is(.chip-group.variant-toggle .chip-group-chip) .chip-group-check {
4438
+ color: var(--icon-tertiary);
4439
+ }
4440
+ [data-state='on']:is(.chip-group.variant-toggle .chip-group-chip) {
4441
+ border-style: solid;
4442
+ border-color: var(--border-accent);
4443
+ background: var(--surface-brand-subtle);
4444
+ color: var(--text-brand);
4445
+ font-weight: var(--font-weight-medium);
4446
+ }
4447
+ [data-state='on']:is(.chip-group.variant-toggle .chip-group-chip) .chip-group-check {
4448
+ color: var(--icon-brand);
4449
+ }
4450
+ [data-disabled]:is(.chip-group.variant-toggle .chip-group-chip) {
4451
+ border-color: var(--border-disabled);
4452
+ color: var(--text-disabled);
4453
+ }
4454
+ [data-disabled]:is(.chip-group.variant-toggle .chip-group-chip) .chip-group-check {
4455
+ color: var(--text-disabled);
4456
+ }
4337
4457
  /* filled(기본): 페이지 바탕 위. 연회색 바탕과 선, 고르면 보라 채움(무드 규칙 8) */
4338
4458
  .chip-group-chip {
4339
4459
  border: var(--hairline) solid var(--border-default);
@@ -4543,6 +4663,88 @@ p {
4543
4663
  line-height: var(--line-height-base);
4544
4664
  font-weight: var(--font-weight-bold);
4545
4665
  }
4666
+ /* 값 옆 복사 버튼. 버튼(36) 이 글 한 줄 높이보다 커도 줄 높이를 늘리지 않게 위아래를 겹친다 */
4667
+ .description-list-item > dd.has-copy {
4668
+ /* 숨긴 알림 칸을 제 칸에 묶는다. 묶지 않으면 잘라 주는 조상 밖으로 나가 문서를 가로로 넓힌다 */
4669
+ position: relative;
4670
+ display: flex;
4671
+ align-items: center;
4672
+ justify-content: flex-end;
4673
+ gap: var(--spacing-4);
4674
+ }
4675
+ .description-list-value {
4676
+ min-width: 0;
4677
+ word-break: break-all;
4678
+ }
4679
+ .description-list-copy {
4680
+ flex: none;
4681
+ margin-block: calc((var(--line-height-sm) - var(--icon-button-size-s)) / 2);
4682
+ }
4683
+ /* 화면에 보이지 않고 화면 낭독기만 읽는 알림 자리 */
4684
+ .description-list-copy-status {
4685
+ position: absolute;
4686
+ width: var(--hairline);
4687
+ height: var(--hairline);
4688
+ overflow: hidden;
4689
+ clip-path: inset(50%);
4690
+ white-space: nowrap;
4691
+ }
4692
+ /* side: 고정 폭 이름 칸 옆에 값이 왼쪽부터 선다(정보 카드). 이름 칸 폭은 FormField 의 side 라벨 칸과 같다 */
4693
+ .description-list.layout-side {
4694
+ gap: var(--spacing-12);
4695
+ }
4696
+ .description-list.layout-side .description-list-item {
4697
+ display: grid;
4698
+ grid-template-columns: min(var(--form-label-width), 40%) minmax(0, 1fr);
4699
+ align-items: center;
4700
+ }
4701
+ .description-list.layout-side .description-list-item > dd {
4702
+ display: flex;
4703
+ flex-wrap: wrap;
4704
+ align-items: center;
4705
+ justify-content: flex-start;
4706
+ gap: var(--spacing-6);
4707
+ font-weight: var(--font-weight-regular);
4708
+ text-align: start;
4709
+ }
4710
+ /* grid: 회색 이름 칸과 값 칸이 번갈아 서는 4열 표. 줄(div)은 칸을 만들지 않고 dt·dd 가 바로 격자 칸이 된다 */
4711
+ .description-list.layout-grid {
4712
+ display: grid;
4713
+ grid-template-columns:
4714
+ var(--form-label-width) minmax(0, 1fr)
4715
+ var(--form-label-width) minmax(0, 1fr);
4716
+ gap: 0;
4717
+ border-top: var(--hairline) solid var(--border-default);
4718
+
4719
+ /* 좁은 화면은 이름 | 값 두 열로 접는다 */
4720
+ }
4721
+ @media (width < 768px) {
4722
+ .description-list.layout-grid {
4723
+ grid-template-columns: min(var(--form-label-width), 40%) minmax(0, 1fr);
4724
+ }
4725
+ }
4726
+ .description-list.layout-grid .description-list-item {
4727
+ display: contents;
4728
+ }
4729
+ .description-list.layout-grid .description-list-item > dt,.description-list.layout-grid .description-list-item > dd {
4730
+ display: flex;
4731
+ flex-wrap: wrap;
4732
+ align-items: center;
4733
+ gap: var(--spacing-6);
4734
+ min-width: 0;
4735
+ padding: var(--spacing-12) var(--spacing-16);
4736
+ border-bottom: var(--hairline) solid var(--border-subtle);
4737
+ }
4738
+ .description-list.layout-grid .description-list-item > dt {
4739
+ background-color: var(--surface-subtle);
4740
+ color: var(--text-secondary);
4741
+ font-weight: var(--font-weight-medium);
4742
+ }
4743
+ .description-list.layout-grid .description-list-item > dd {
4744
+ justify-content: flex-start;
4745
+ font-weight: var(--font-weight-regular);
4746
+ text-align: start;
4747
+ }
4546
4748
  /* Title·Close 같은 조각도 base-drawer 를 달므로 상자 스타일은 overlay·content 에만 건다. */
4547
4749
  .base-drawer:where(.overlay) {
4548
4750
  position: fixed;
@@ -4716,6 +4918,10 @@ p {
4716
4918
  .base-drop-down.content {
4717
4919
  max-height: var(--radix-select-content-available-height);
4718
4920
  }
4921
+ .base-drop-down:where(.item-indicator) {
4922
+ display: inline-flex;
4923
+ flex: none;
4924
+ }
4719
4925
  /***************************************************************************************************
4720
4926
  * *
4721
4927
  * drop-down-single *
@@ -4754,14 +4960,42 @@ p {
4754
4960
  }
4755
4961
  .drop-down-single-trigger {
4756
4962
 
4963
+ /* 입력 상자와 같은 선(ADR 0021). 흰 바탕에 회색 1px, 마우스를 올리면 연보라, 포커스·열림이면 보라 2px.
4964
+ 2px 는 1px border 에 안쪽 1px 그림자를 겹쳐 상자 크기가 흔들리지 않는다 */
4965
+ box-sizing: border-box;
4757
4966
  border: var(--hairline) solid var(--border-default);
4758
4967
  border-radius: var(--radius-control);
4759
4968
  width: -moz-fit-content;
4760
4969
  width: fit-content;
4761
4970
  background-color: var(--surface-base);
4971
+ color: var(--text-primary);
4972
+ transition:
4973
+ border-color var(--motion-press-duration) var(--motion-press-ease),
4974
+ box-shadow var(--motion-press-duration) var(--motion-press-ease);
4762
4975
  }
4763
- .drop-down-single-trigger:focus {
4976
+ .drop-down-single-trigger:hover:not(:focus,[data-state='open'],[data-disabled],.error) {
4977
+ border-color: var(--border-accent-subtle);
4978
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent-subtle);
4979
+ }
4980
+ .drop-down-single-trigger:focus,.drop-down-single-trigger[data-state='open'] {
4764
4981
  border-color: var(--border-accent);
4982
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent);
4983
+ }
4984
+ /* 포커스는 선이 보여 준다. 전역 포커스 링은 끈다 */
4985
+ .drop-down-single-trigger:focus-visible {
4986
+ outline: none;
4987
+ }
4988
+ .drop-down-single-trigger.error {
4989
+ border-color: var(--border-error);
4990
+ }
4991
+ .drop-down-single-trigger.error:focus,.drop-down-single-trigger.error[data-state='open'] {
4992
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-error);
4993
+ }
4994
+ .drop-down-single-trigger[data-disabled] {
4995
+ border-color: var(--border-disabled);
4996
+ background-color: var(--surface-muted);
4997
+ color: var(--text-disabled);
4998
+ cursor: var(--cursor-disabled);
4765
4999
  }
4766
5000
  .drop-down-single-trigger[data-placeholder] .drop-down-single-icon {
4767
5001
  color: var(--text-placeholder);
@@ -4787,7 +5021,7 @@ p {
4787
5021
  .drop-down-single-value {
4788
5022
  font-size: inherit;
4789
5023
  line-height: inherit;
4790
- font-weight: var(--font-weight-medium);
5024
+ font-weight: var(--font-weight-regular);
4791
5025
 
4792
5026
  text-align: left;
4793
5027
  }
@@ -4797,42 +5031,69 @@ p {
4797
5031
  .drop-down-single-value ::placeholder {
4798
5032
  color: var(--text-placeholder);
4799
5033
  }
5034
+ /* 목록 판: 흰 바탕·그림자, 위아래 안쪽 여백. 항목은 좌우로 들어간 둥근 행이다 */
4800
5035
  .drop-down-single-content {
4801
5036
  z-index: var(--z-popover);
5037
+ box-sizing: border-box;
4802
5038
  min-width: var(--radix-select-trigger-width);
4803
5039
  overflow: hidden;
5040
+ padding: var(--spacing-6) 0;
5041
+ border: var(--hairline) solid var(--border-default);
5042
+ background-color: var(--surface-base);
4804
5043
  box-shadow: var(--shadow-popover);
4805
5044
  border-radius: var(--radius-control);
4806
5045
 
4807
5046
  /* 펼침(unfold)은 공용 .motion-unfold 클래스가 그린다. Radix Select 는 닫히면 목록을 바로 지워 퇴장 애니메이션을 둘 수 없다 */
4808
5047
  }
4809
5048
  .drop-down-single-item {
4810
- padding: var(--spacing-14);
4811
- background-color: var(--surface-base);
4812
- height: var(--drop-down-item-height);
5049
+ display: flex;
5050
+ align-items: center;
5051
+ justify-content: space-between;
5052
+ gap: var(--spacing-8);
5053
+ box-sizing: border-box;
5054
+ height: var(--menu-row-height-s);
5055
+ margin: 0 var(--spacing-6);
5056
+ padding: 0 var(--spacing-12);
5057
+ border-radius: var(--radius-mark);
5058
+ background-color: transparent;
4813
5059
 
4814
5060
  font-size: var(--font-size-sm);
4815
5061
  line-height: var(--line-height-sm);
4816
- font-weight: var(--font-weight-medium);
5062
+ font-weight: var(--font-weight-regular);
5063
+ color: var(--text-primary);
4817
5064
 
4818
5065
  cursor: pointer;
5066
+
5067
+ /* 키보드 이동·호버는 Radix 가 단 data-highlighted 배경이 보여 준다. 주색이 아니라 중립 회색이다 */
4819
5068
  }
4820
5069
  .drop-down-single-item[data-highlighted] {
4821
- background-color: var(--surface-brand-subtle);
5070
+ background-color: var(--surface-muted);
4822
5071
  }
5072
+ /* 고른 항목은 굵게, 오른쪽에 체크가 붙는다 */
5073
+ .drop-down-single-item[data-state='checked'] {
5074
+ font-weight: var(--font-weight-semibold);
5075
+ }
5076
+ .drop-down-single-item[data-state='checked'] .base-drop-down:where(.item-indicator) {
5077
+ color: var(--text-brand);
5078
+ }
4823
5079
  /* 눌림은 딤만(press form dim). 행이 줄면 목록 가장자리에 틈이 보인다.
4824
- 딤 색은 브랜드 보라라서 강조 배경(purple-50)이 같은 색조로 한 단계 진해진다 */
5080
+ 딤 색은 강조 배경과 같은 중립 회색 색조다 */
4825
5081
  .drop-down-single-item.motion-press-dim::after {
4826
- background: var(--surface-brand);
5082
+ background: var(--surface-strong);
4827
5083
  }
4828
5084
  /* 키보드 이동은 data-highlighted 배경이 보여 준다. 전역 포커스 링은 끈다 */
4829
5085
  .drop-down-single-item:focus-visible {
4830
5086
  outline: none;
4831
5087
  }
4832
- .drop-down-single-item:disabled {
4833
- background-color: var(--surface-muted);
4834
- color: var(--text-placeholder);
4835
- cursor: not-allowed;
5088
+ .drop-down-single-item[data-disabled] {
5089
+ color: var(--text-disabled);
5090
+ cursor: var(--cursor-disabled);
5091
+ }
5092
+ /* 좁은 화면은 손가락으로 누른다. 행을 터치 높이까지 키운다 */
5093
+ @media (width < 768px) {
5094
+ .drop-down-single-item {
5095
+ height: var(--touch-target);
5096
+ }
4836
5097
  }
4837
5098
  .base-text:where(.xsm) {
4838
5099
  font-size: var(--font-size-xsm);
@@ -5364,6 +5625,25 @@ p {
5364
5625
  background-color: var(--surface-success-subtle);
5365
5626
  color: var(--text-success);
5366
5627
  }
5628
+ /* 표·블록 안의 작은 빈 자리. 제목도 회색이라 둘레 내용보다 앞에 나서지 않는다 */
5629
+ .empty-state.size-s {
5630
+ gap: var(--spacing-4);
5631
+ padding: var(--spacing-16) var(--spacing-12);
5632
+ }
5633
+ .empty-state.size-s .empty-state-icon {
5634
+ width: var(--empty-state-icon-box-s);
5635
+ height: var(--empty-state-icon-box-s);
5636
+ margin-bottom: var(--spacing-4);
5637
+ }
5638
+ .empty-state.size-s .empty-state-title {
5639
+ font-size: var(--font-size-sm);
5640
+ line-height: var(--line-height-sm);
5641
+ font-weight: var(--font-weight-medium);
5642
+ color: var(--text-secondary);
5643
+ }
5644
+ .empty-state.size-s .empty-state-action {
5645
+ margin-top: var(--spacing-4);
5646
+ }
5367
5647
  /* figure 는 쓰는 쪽 그림을 크기 그대로 아이콘 원 자리에 둔다 */
5368
5648
  .empty-state-figure {
5369
5649
  display: flex;
@@ -5399,82 +5679,286 @@ p {
5399
5679
  .empty-state-action {
5400
5680
  margin-top: var(--spacing-8);
5401
5681
  }
5402
- /* 결과 화면 전체 — 그림·글을 세로 가운데에, 주 버튼은 BottomCTA 로 아래에 고정한다 */
5403
- .base-result-screen {
5404
- display: flex;
5405
- flex-direction: column;
5406
- min-height: 100dvh;
5407
- }
5682
+ /* 컨트롤에 라벨·도움말을 붙이는 행. 조각: label · panel · columns */
5683
+ .base-form-field:where(.root) {
5684
+ min-width: 0;
5685
+ }
5686
+ .base-form-field:where(.columns) {
5687
+ display: grid;
5688
+ }
5408
5689
  /***************************************************************************************************
5409
5690
  * *
5410
- * result-screen *
5691
+ * form-field *
5411
5692
  * *
5412
5693
  ***************************************************************************************************/
5413
- .result-screen {
5414
- /* 그림 안 선이 그려질 길이 — motion-result-draw 가 이 값에서 0 으로 간다 */
5415
- --result-stroke-length: 60;
5694
+ /* 라벨 칸 폭은 이 필드에만 둔다. 안에 겹친 FormField 는 제 기본값으로 돌아간다 */
5695
+ .form-field {
5696
+ --form-field-label-width: var(--form-label-width);
5416
5697
 
5417
- background-color: var(--surface-base);
5698
+ display: flex;
5699
+ flex-direction: column;
5700
+ /* 라벨과 컨트롤 사이는 TextField·TextArea 의 title 간격과 같다 */
5701
+ gap: var(--spacing-6);
5418
5702
 
5419
- /* variant 는 타일 바탕과 그림 색을 정한다 */
5703
+ /* 왼쪽 고정 폭 라벨 칸. 라벨은 위에 붙어 있고 첫 줄 컨트롤(44px) 가운데에 맞는다.
5704
+ 아래로 하위 패널이 길어져도 라벨은 위에 남는다 */
5420
5705
  }
5421
- .result-screen.variant-success .result-screen-tile,.result-screen.variant-security .result-screen-tile {
5422
- background-color: var(--surface-brand-subtle);
5423
- color: var(--icon-brand);
5424
- }
5425
- .result-screen.variant-neutral .result-screen-tile,.result-screen.variant-farewell .result-screen-tile {
5426
- background-color: var(--surface-muted);
5427
- color: var(--icon-secondary);
5706
+ .form-field.layout-side {
5707
+ display: grid;
5708
+ grid-template-columns: var(--form-field-label-width) minmax(0, 1fr);
5709
+ align-items: start;
5710
+ gap: 0;
5711
+
5712
+ /* 자식 결합자로 좁힌다. Panel 안에 겹친 top 필드에 번지지 않게 한다 */
5428
5713
  }
5429
- .result-screen.variant-failure .result-screen-tile {
5430
- background-color: var(--surface-danger-subtle);
5431
- color: var(--text-danger);
5432
- animation:
5433
- motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
5434
- var(--motion-result-figure-delay) both,
5435
- motion-result-shake var(--motion-reject-duration) var(--motion-reject-ease) var(--motion-result-title-delay);
5714
+ .form-field.layout-side > .form-field-head {
5715
+ align-content: center;
5716
+ min-height: var(--control-height-m);
5717
+ padding-inline-end: var(--spacing-16);
5718
+ }
5719
+ :is(.form-field.layout-side > .form-field-head) > .form-field-label {
5720
+ color: var(--text-body);
5721
+ }
5722
+ /* 좁은 화면에서는 라벨을 위로 쌓는다. grid 의 start 를 되돌려야 컨트롤이 폭을 채운다 */
5723
+ @media (width < 768px) {
5724
+ .form-field.layout-side {
5725
+ display: flex;
5726
+ align-items: stretch;
5727
+ gap: var(--spacing-6);
5436
5728
  }
5437
- .result-screen-content {
5729
+
5730
+ .form-field.layout-side > .form-field-head {
5731
+ min-height: 0;
5732
+ padding-inline-end: 0;
5733
+ }
5734
+ }
5735
+ .form-field-head {
5438
5736
  display: flex;
5439
- flex: 1;
5440
- flex-direction: column;
5441
- justify-content: center;
5442
- gap: var(--spacing-28);
5443
- padding: var(--spacing-30) var(--spacing-20) 0;
5737
+ flex-wrap: wrap;
5738
+ align-items: center;
5739
+ gap: var(--spacing-4) var(--spacing-8);
5740
+ min-width: 0;
5444
5741
  }
5445
- /* 그림 타일 — 모든 variant 가 같은 크기·모서리. 튀어 오르며 나타난다 */
5446
- .result-screen-tile {
5447
- position: relative;
5448
- display: grid;
5449
- place-items: center;
5450
- width: var(--result-screen-tile);
5451
- height: var(--result-screen-tile);
5452
- border-radius: var(--radius-surface);
5453
- animation: motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
5454
- var(--motion-result-figure-delay) both;
5742
+ .form-field-label {
5743
+ color: var(--text-secondary);
5744
+ font-size: var(--font-size-sm);
5745
+ line-height: var(--line-height-sm);
5746
+ font-weight: var(--font-weight-medium);
5747
+ overflow-wrap: anywhere;
5455
5748
  }
5456
- .result-screen-tile > svg {
5457
- width: var(--result-screen-glyph);
5458
- overflow: visible;
5459
- }
5460
- /* figure 는 쓰는 쪽 그림을 그대로. 같은 차례로 나타난다 */
5461
- .result-screen-figure {
5462
- animation: motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
5463
- var(--motion-result-figure-delay) both;
5749
+ .form-field-hint {
5750
+ color: var(--text-muted);
5751
+ font-size: var(--font-size-sm);
5752
+ line-height: var(--line-height-sm);
5464
5753
  }
5465
- /* 선으로 그리는 표시(체크·입·느낌표) — 타일이 나타난 뒤 그려진다 */
5466
- .result-screen-draw {
5467
- fill: none;
5468
- stroke: currentColor;
5469
- stroke-width: 5;
5470
- stroke-linecap: round;
5471
- stroke-linejoin: round;
5472
- stroke-dasharray: var(--result-stroke-length);
5473
- animation: motion-result-draw var(--motion-result-duration) var(--motion-result-ease) var(--motion-result-glyph-delay)
5474
- both;
5754
+ .form-field-label-action {
5755
+ display: inline-flex;
5475
5756
  }
5476
- .result-screen-fill {
5477
- fill: currentColor;
5757
+ .form-field-body {
5758
+ min-width: 0;
5759
+ }
5760
+ /* note 가 있을 때만 컨트롤과 한 줄이다. 컨트롤은 제 폭이고 note 가 넘치면 아래 줄로 내려간다 */
5761
+ .form-field-control-row {
5762
+ display: flex;
5763
+ flex-wrap: wrap;
5764
+ align-items: center;
5765
+ gap: var(--spacing-8) var(--spacing-12);
5766
+ }
5767
+ .form-field-control-row .form-field-control {
5768
+ flex: 0 1 auto;
5769
+ }
5770
+ .form-field-control {
5771
+ min-width: 0;
5772
+ }
5773
+ .form-field-note {
5774
+ display: flex;
5775
+ flex: 1 1 auto;
5776
+ align-items: center;
5777
+ gap: var(--spacing-4);
5778
+ min-width: 0;
5779
+ margin: 0;
5780
+ color: var(--text-muted);
5781
+ font-size: var(--font-size-sm);
5782
+ line-height: var(--line-height-sm);
5783
+ }
5784
+ .form-field-note-icon {
5785
+ flex: none;
5786
+ }
5787
+ /* live 영역은 늘 있다. 글이 있을 때만 컨트롤과 간격을 둔다 */
5788
+ .form-field-message:not(:empty) {
5789
+ margin-top: var(--spacing-6);
5790
+ }
5791
+ .form-field-message-text {
5792
+ margin: 0;
5793
+ color: var(--text-muted);
5794
+ font-size: var(--font-size-sm);
5795
+ line-height: var(--line-height-sm);
5796
+ }
5797
+ .form-field-message-text.error {
5798
+ color: var(--text-error);
5799
+ }
5800
+ /* 조건부 하위 필드 면. 흰 카드 위에서 한 단계 짙다. 앞 컨트롤과는 12 떨어진다 */
5801
+ .form-field-panel {
5802
+ display: flex;
5803
+ flex-direction: column;
5804
+ gap: var(--spacing-16);
5805
+ padding: var(--spacing-20);
5806
+ border-radius: var(--radius-control);
5807
+ background-color: var(--surface-subtle);
5808
+ }
5809
+ .form-field-panel:not(:first-child) {
5810
+ margin-top: var(--spacing-12);
5811
+ }
5812
+ /* 좁은 화면에서는 한 열이고 줄 간격은 둘레(FormSection·Panel)의 필드 간격을 이어받는다 */
5813
+ .form-field-columns {
5814
+ grid-template-columns: repeat(var(--form-field-columns), minmax(0, 1fr));
5815
+ gap: var(--spacing-12);
5816
+ }
5817
+ @media (width < 768px) {
5818
+ .form-field-columns {
5819
+ grid-template-columns: minmax(0, 1fr);
5820
+ row-gap: inherit;
5821
+ }
5822
+ }
5823
+ .base-form-section {
5824
+ display: flex;
5825
+ flex-direction: column;
5826
+ min-width: 0;
5827
+ }
5828
+ /***************************************************************************************************
5829
+ * *
5830
+ * form-section *
5831
+ * *
5832
+ ***************************************************************************************************/
5833
+ /* 연회색 페이지 바탕 위 흰 면. 그림자·테두리가 없다(무드 규칙 2) */
5834
+ .form-section {
5835
+ gap: var(--spacing-20);
5836
+ padding: var(--spacing-24);
5837
+ border-radius: var(--radius-surface);
5838
+ background-color: var(--surface-base);
5839
+ }
5840
+ @media (width < 768px) {
5841
+ .form-section {
5842
+ padding: var(--spacing-20);
5843
+ }
5844
+ }
5845
+ .form-section-head {
5846
+ display: flex;
5847
+ align-items: flex-start;
5848
+ gap: var(--spacing-12);
5849
+ min-width: 0;
5850
+ }
5851
+ .form-section-heading {
5852
+ display: flex;
5853
+ flex: 1;
5854
+ flex-direction: column;
5855
+ gap: var(--spacing-4);
5856
+ min-width: 0;
5857
+ }
5858
+ /* 리셋 없이 쓰는 앱의 h2~h4 여백을 받지 않는다. lg 라 자간이 없다(ADR 0015) */
5859
+ .form-section-title {
5860
+ margin: 0;
5861
+ color: var(--text-primary);
5862
+ font-size: var(--font-size-lg);
5863
+ line-height: var(--line-height-lg);
5864
+ font-weight: var(--font-weight-bold);
5865
+ overflow-wrap: anywhere;
5866
+ }
5867
+ .form-section-description {
5868
+ margin: 0;
5869
+ color: var(--text-secondary);
5870
+ font-size: var(--font-size-sm);
5871
+ line-height: var(--line-height-sm);
5872
+ }
5873
+ .form-section-action {
5874
+ display: flex;
5875
+ flex: none;
5876
+ align-items: center;
5877
+ gap: var(--spacing-8);
5878
+ }
5879
+ /* 필드 사이를 넉넉히 띄운다. 안의 FormField.Columns 는 좁은 화면에서 이 간격을 이어받는다 */
5880
+ .form-section-body {
5881
+ display: flex;
5882
+ flex-direction: column;
5883
+ gap: var(--spacing-20);
5884
+ min-width: 0;
5885
+ }
5886
+ /* 결과 화면 전체 — 그림·글을 세로 가운데에, 주 버튼은 BottomCTA 로 아래에 고정한다 */
5887
+ .base-result-screen {
5888
+ display: flex;
5889
+ flex-direction: column;
5890
+ min-height: 100dvh;
5891
+ }
5892
+ /***************************************************************************************************
5893
+ * *
5894
+ * result-screen *
5895
+ * *
5896
+ ***************************************************************************************************/
5897
+ .result-screen {
5898
+ /* 그림 안 선이 그려질 길이 — motion-result-draw 가 이 값에서 0 으로 간다 */
5899
+ --result-stroke-length: 60;
5900
+
5901
+ background-color: var(--surface-base);
5902
+
5903
+ /* variant 는 타일 바탕과 그림 색을 정한다 */
5904
+ }
5905
+ .result-screen.variant-success .result-screen-tile,.result-screen.variant-security .result-screen-tile {
5906
+ background-color: var(--surface-brand-subtle);
5907
+ color: var(--icon-brand);
5908
+ }
5909
+ .result-screen.variant-neutral .result-screen-tile,.result-screen.variant-farewell .result-screen-tile {
5910
+ background-color: var(--surface-muted);
5911
+ color: var(--icon-secondary);
5912
+ }
5913
+ .result-screen.variant-failure .result-screen-tile {
5914
+ background-color: var(--surface-danger-subtle);
5915
+ color: var(--text-danger);
5916
+ animation:
5917
+ motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
5918
+ var(--motion-result-figure-delay) both,
5919
+ motion-result-shake var(--motion-reject-duration) var(--motion-reject-ease) var(--motion-result-title-delay);
5920
+ }
5921
+ .result-screen-content {
5922
+ display: flex;
5923
+ flex: 1;
5924
+ flex-direction: column;
5925
+ justify-content: center;
5926
+ gap: var(--spacing-28);
5927
+ padding: var(--spacing-30) var(--spacing-20) 0;
5928
+ }
5929
+ /* 그림 타일 — 모든 variant 가 같은 크기·모서리. 튀어 오르며 나타난다 */
5930
+ .result-screen-tile {
5931
+ position: relative;
5932
+ display: grid;
5933
+ place-items: center;
5934
+ width: var(--result-screen-tile);
5935
+ height: var(--result-screen-tile);
5936
+ border-radius: var(--radius-surface);
5937
+ animation: motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
5938
+ var(--motion-result-figure-delay) both;
5939
+ }
5940
+ .result-screen-tile > svg {
5941
+ width: var(--result-screen-glyph);
5942
+ overflow: visible;
5943
+ }
5944
+ /* figure 는 쓰는 쪽 그림을 그대로. 같은 차례로 나타난다 */
5945
+ .result-screen-figure {
5946
+ animation: motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
5947
+ var(--motion-result-figure-delay) both;
5948
+ }
5949
+ /* 선으로 그리는 표시(체크·입·느낌표) — 타일이 나타난 뒤 그려진다 */
5950
+ .result-screen-draw {
5951
+ fill: none;
5952
+ stroke: currentColor;
5953
+ stroke-width: 5;
5954
+ stroke-linecap: round;
5955
+ stroke-linejoin: round;
5956
+ stroke-dasharray: var(--result-stroke-length);
5957
+ animation: motion-result-draw var(--motion-result-duration) var(--motion-result-ease) var(--motion-result-glyph-delay)
5958
+ both;
5959
+ }
5960
+ .result-screen-fill {
5961
+ fill: currentColor;
5478
5962
  }
5479
5963
  /* security: 고리가 내려와 잠긴다. 회전축(왼쪽 아래)·두께는 tsx 의 viewBox 0 0 48 52 좌표에 맞춘 값이다 */
5480
5964
  .result-screen-shackle {
@@ -6929,6 +7413,53 @@ button.modal-with-double-button-close-button {
6929
7413
  .modal-with-double-button-container.size-l {
6930
7414
  width: var(--modal-width-l);
6931
7415
  }
7416
+ .modal-with-double-button-container.size-xl {
7417
+ width: var(--modal-width-xl);
7418
+ }
7419
+ /* 제목·설명은 왼쪽, 두 버튼은 오른쪽 아래(토스 모달). 버튼 줄 왼쪽에 footerStart 자리가 있다 */
7420
+ .modal-with-double-button-container.align-start {
7421
+ align-items: stretch;
7422
+ }
7423
+ .modal-with-double-button-container.align-start .modal-with-double-button-title-icon {
7424
+ align-self: flex-start;
7425
+ }
7426
+ .modal-with-double-button-container.align-start .modal-with-double-button-title,.modal-with-double-button-container.align-start .modal-with-double-button-sub-title {
7427
+ text-align: start;
7428
+ }
7429
+ .modal-with-double-button-container.align-start .modal-with-double-button-close.row {
7430
+ flex-wrap: wrap;
7431
+ justify-content: flex-end;
7432
+ gap: var(--spacing-10);
7433
+ }
7434
+ :is(.modal-with-double-button-container.align-start .modal-with-double-button-close.row) > * {
7435
+ flex: none;
7436
+ }
7437
+ /* 좁은 화면에서는 두 버튼이 줄 폭을 반씩 나눈다 */
7438
+ @media (width < 768px) {
7439
+ :is(.modal-with-double-button-container.align-start .modal-with-double-button-close.row) > .modal-with-double-button-buttons {
7440
+ flex: 1 1 100%;
7441
+ }
7442
+ }
7443
+ .modal-with-double-button-container.align-start .modal-with-double-button-close.column > .modal-with-double-button-buttons {
7444
+ display: flex;
7445
+ flex-direction: column;
7446
+ gap: var(--spacing-10);
7447
+ width: 100%;
7448
+ }
7449
+ /* 버튼 줄 왼쪽 자리는 남는 폭을 차지해 버튼을 오른쪽으로 민다 */
7450
+ .modal-with-double-button-footer-start {
7451
+ display: flex;
7452
+ align-items: center;
7453
+ margin-inline-end: auto;
7454
+ min-width: 0;
7455
+ }
7456
+ /* 두 칸을 같은 폭(긴 쪽 글자 폭)으로 둔다 */
7457
+ .modal-with-double-button-buttons {
7458
+ display: grid;
7459
+ grid-auto-columns: minmax(0, 1fr);
7460
+ grid-auto-flow: column;
7461
+ gap: var(--spacing-10);
7462
+ }
6932
7463
  .modal-with-double-button-title-icon {
6933
7464
  margin-bottom: var(--spacing-20);
6934
7465
  }
@@ -6995,6 +7526,9 @@ button.modal-with-double-button-close-button {
6995
7526
  .modal.size-l {
6996
7527
  width: var(--modal-width-l);
6997
7528
  }
7529
+ .modal.size-xl {
7530
+ width: var(--modal-width-xl);
7531
+ }
6998
7532
  .modal-header {
6999
7533
  display: flex;
7000
7534
  justify-content: space-between;
@@ -7028,10 +7562,18 @@ button.modal-with-double-button-close-button {
7028
7562
  }
7029
7563
  .modal-footer {
7030
7564
  display: flex;
7565
+ flex-wrap: wrap;
7031
7566
  justify-content: flex-end;
7032
7567
  align-items: center;
7033
7568
  gap: var(--spacing-10);
7034
7569
  }
7570
+ /* 버튼 줄 왼쪽 자리는 남는 폭을 차지해 footer 버튼을 오른쪽으로 민다 */
7571
+ .modal-footer-start {
7572
+ display: flex;
7573
+ align-items: center;
7574
+ margin-inline-end: auto;
7575
+ min-width: 0;
7576
+ }
7035
7577
  /* 한 줄 높이 자리에서 항목을 차례로 돌려 보여 주는 알림 줄. 비면 높이가 0 으로 접힌다 */
7036
7578
  .base-nudge {
7037
7579
  height: var(--nudge-height);
@@ -7414,7 +7956,6 @@ button.modal-with-double-button-close-button {
7414
7956
  .pagination {
7415
7957
  display: inline-flex;
7416
7958
  align-items: center;
7417
- gap: var(--spacing-4);
7418
7959
 
7419
7960
  /* 넓은 화면은 siblingCount 목록, 좁은 화면은 이웃을 숨긴 7칸 목록을 보인다(pagination.tsx mergePageSlots) */
7420
7961
  }
@@ -7422,11 +7963,6 @@ button.modal-with-double-button-close-button {
7422
7963
  display: none;
7423
7964
  }
7424
7965
  @media (width < 768px) {
7425
- .pagination {
7426
- /* 7칸 × 44 = 308 이 양옆 여백 16 을 뺀 360 화면(328) 안에 들게 칸 사이를 없앤다 */
7427
- gap: 0;
7428
- }
7429
-
7430
7966
  .pagination [data-shown-on='wide'] {
7431
7967
  display: none;
7432
7968
  }
@@ -7435,6 +7971,22 @@ button.modal-with-double-button-close-button {
7435
7971
  display: inline-flex;
7436
7972
  }
7437
7973
  }
7974
+ /* 결과 수·페이지 크기가 붙은 표 아래 줄. 왼쪽 결과, 가운데 쪽 번호(토스 목록 T14) */
7975
+ .pagination.with-summary {
7976
+ display: grid;
7977
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
7978
+ gap: var(--spacing-16);
7979
+ width: 100%;
7980
+
7981
+ /* 좁은 화면은 결과 줄(결과 수 왼쪽, 페이지 크기 오른쪽) 아래에 쪽 번호를 가운데로 쌓는다 */
7982
+ }
7983
+ @media (width < 768px) {
7984
+ .pagination.with-summary {
7985
+ grid-template-columns: minmax(0, 1fr);
7986
+ gap: var(--spacing-12);
7987
+ justify-items: center;
7988
+ }
7989
+ }
7438
7990
  .pagination.size-s {
7439
7991
  --pagination-item-size: var(--control-height-s);
7440
7992
  --pagination-icon-size: var(--icon-size-s);
@@ -7447,12 +7999,52 @@ button.modal-with-double-button-close-button {
7447
7999
  font-size: var(--font-size-sm);
7448
8000
  line-height: var(--line-height-sm);
7449
8001
  }
8002
+ .pagination-pages {
8003
+ display: inline-flex;
8004
+ align-items: center;
8005
+ gap: var(--spacing-4);
8006
+
8007
+ /* 7칸 × 44 = 308 이 양옆 여백 16 을 뺀 360 화면(328) 안에 들게 칸 사이를 없앤다 */
8008
+ }
8009
+ @media (width < 768px) {
8010
+ .pagination-pages {
8011
+ gap: 0;
8012
+ }
8013
+ }
8014
+ .pagination.with-summary > .pagination-pages {
8015
+ grid-column: 2;
8016
+ grid-row: 1;
8017
+ }
8018
+ @media (width < 768px) {
8019
+ .pagination.with-summary > .pagination-pages {
8020
+ grid-column: 1;
8021
+ grid-row: 2;
8022
+ }
8023
+ }
8024
+ .pagination-summary {
8025
+ grid-column: 1;
8026
+ grid-row: 1;
8027
+ display: flex;
8028
+ align-items: center;
8029
+ gap: var(--spacing-8);
8030
+ min-width: 0;
8031
+ }
8032
+ @media (width < 768px) {
8033
+ .pagination-summary {
8034
+ justify-content: space-between;
8035
+ width: 100%;
8036
+ }
8037
+ }
8038
+ .pagination-result {
8039
+ color: var(--text-secondary);
8040
+ white-space: nowrap;
8041
+ }
7450
8042
  .pagination-item {
7451
8043
  min-width: var(--pagination-item-size);
7452
8044
  height: var(--pagination-item-size);
7453
8045
  padding: 0 var(--spacing-4);
7454
- border-radius: var(--radius-control);
7455
- color: var(--text-tertiary);
8046
+ border-radius: var(--radius-pill);
8047
+ color: var(--text-secondary);
7456
8048
  font-size: inherit;
7457
8049
  line-height: inherit;
7458
8050
  font-weight: var(--font-weight-medium);
@@ -7461,15 +8053,17 @@ button.modal-with-double-button-close-button {
7461
8053
  background-color var(--motion-press-duration) var(--motion-press-ease),
7462
8054
  color var(--motion-press-duration) var(--motion-press-ease),
7463
8055
  transform var(--motion-press-duration) var(--motion-press-ease);
8056
+
8057
+ /* 현재 쪽은 회색 원에 검정 글자다(토스 목록). 보라는 주 행동에만 쓴다 */
7464
8058
  }
7465
8059
  .pagination-item:not(:disabled):hover {
7466
- background-color: var(--surface-muted);
7467
- color: var(--text-brand);
8060
+ background-color: var(--surface-subtle);
8061
+ color: var(--text-primary);
7468
8062
  }
7469
8063
  .pagination-item[data-state='active'] {
7470
- background-color: var(--surface-brand-subtle);
7471
- color: var(--text-brand);
7472
- font-weight: var(--font-weight-bold);
8064
+ background-color: var(--surface-muted);
8065
+ color: var(--text-primary);
8066
+ font-weight: var(--font-weight-semibold);
7473
8067
  }
7474
8068
  .pagination-item:disabled {
7475
8069
  background-color: transparent;
@@ -7478,7 +8072,9 @@ button.modal-with-double-button-close-button {
7478
8072
  .pagination-ellipsis {
7479
8073
  min-width: var(--pagination-item-size);
7480
8074
  height: var(--pagination-item-size);
7481
- color: var(--text-placeholder);
8075
+ color: var(--text-tertiary);
8076
+ /* 토스 목록의 가운데 점 세 개(•••). 쪽 번호보다 한 단계 작게 둔다 */
8077
+ font-size: var(--font-size-xsm);
7482
8078
  }
7483
8079
  .pagination-icon {
7484
8080
  width: var(--pagination-icon-size);
@@ -7628,6 +8224,10 @@ button.modal-with-double-button-close-button {
7628
8224
  position: absolute;
7629
8225
  inset: calc(-1 * var(--spacing-4)) 0;
7630
8226
  }
8227
+ /* 칸(44)과 카드는 이미 터치 44 이상이라 ::after 를 넓히지 않고 .motion-press-dim 의 딤에 내준다 */
8228
+ .base-radio:where(.segment,.card) {
8229
+ position: relative;
8230
+ }
7631
8231
  /***************************************************************************************************
7632
8232
  * *
7633
8233
  * radio *
@@ -7644,9 +8244,11 @@ button.modal-with-double-button-close-button {
7644
8244
  align-items: flex-start;
7645
8245
  gap: var(--spacing-10);
7646
8246
  }
7647
- /* Checkbox(filled) 와 같은 말: 꺼짐은 흰 바탕에 보라 테두리, 켜짐은 보라 채움에 흰 표시.
8247
+ /* Checkbox(filled) 와 같은 말: 꺼짐은 회색 선에 아주 연한 회색 바탕, 올리면 보라 선에 연보라 바탕,
8248
+ 켜짐은 보라 채움에 흰 표시(ADR 0021).
7648
8249
  채움은 색만 바뀌는 확정이라 confirm fade, 흰 점은 움직임이라 confirm 스프링이다 */
7649
- .radio:where(.radio-button) {
8250
+ /* card 의 동그라미 표시(.radio-mark)도 같은 모양이다. 고름·disabled 는 카드의 data-* 로 아래에서 그린다 */
8251
+ .radio:where(.radio-button,.radio-mark) {
7650
8252
  box-sizing: border-box;
7651
8253
  display: flex;
7652
8254
  align-items: center;
@@ -7655,17 +8257,24 @@ button.modal-with-double-button-close-button {
7655
8257
  height: var(--radio-size);
7656
8258
  flex-shrink: 0;
7657
8259
  border-radius: var(--radius-circle);
7658
- border: var(--border-width-strong) solid var(--border-accent);
7659
- background-color: var(--surface-base);
8260
+ border: var(--border-width-strong) solid var(--border-hover);
8261
+ background-color: var(--surface-subtle);
7660
8262
  }
7661
8263
  .radio.radio-button {
7662
8264
  /* .motion-press 의 transform 전환을 같은 선언에 다시 적는다. 이 규칙이 뒤에 와서 그것을 덮기 때문이다 */
7663
8265
  transition:
7664
8266
  background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
7665
8267
  var(--confirm-delay, 0ms),
8268
+ border-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8269
+ var(--confirm-delay, 0ms),
7666
8270
  transform var(--motion-press-duration) var(--motion-press-ease);
7667
8271
  }
7668
- .radio.radio-button[data-state='checked'] {
8272
+ .radio.radio-button:hover:not([data-disabled],[data-state='checked']) {
8273
+ border-color: var(--border-accent);
8274
+ background-color: var(--surface-brand-subtle);
8275
+ }
8276
+ .radio.radio-button[data-state='checked'] {
8277
+ border-color: var(--border-accent);
7669
8278
  background-color: var(--surface-brand);
7670
8279
  }
7671
8280
  .radio:where(.radio-indicator) {
@@ -7739,6 +8348,192 @@ button.modal-with-double-button-close-button {
7739
8348
  color: var(--text-disabled);
7740
8349
  cursor: var(--cursor-disabled);
7741
8350
  }
8351
+ /* button: 버튼 칸을 붙여 늘어놓는다. 기본은 내용 폭, .fill 이면 부모 폭을 똑같이 나눈다.
8352
+ 이웃 칸이 선 하나를 나눠 쓰게 두 번째 칸부터 선 두께만큼 당긴다 */
8353
+ .radio.radio-group.variant-button {
8354
+ flex-direction: row;
8355
+ gap: 0;
8356
+ width: -moz-fit-content;
8357
+ width: fit-content;
8358
+ max-width: 100%;
8359
+ }
8360
+ .radio.radio-group.variant-button > .radio-option + .radio-option {
8361
+ margin-inline-start: calc(-1 * var(--hairline));
8362
+ }
8363
+ .radio.radio-group.variant-button.fill {
8364
+ width: 100%;
8365
+ }
8366
+ .radio.radio-group.variant-button.fill > .radio-option {
8367
+ flex: 1 1 0;
8368
+ min-width: 0;
8369
+ }
8370
+ .radio.radio-option:first-child > .radio-segment {
8371
+ border-start-start-radius: var(--radius-control);
8372
+ border-end-start-radius: var(--radius-control);
8373
+ }
8374
+ .radio.radio-option:last-child > .radio-segment {
8375
+ border-start-end-radius: var(--radius-control);
8376
+ border-end-end-radius: var(--radius-control);
8377
+ }
8378
+ /* .base-button 의 border·radius 초기화를 이기려고 .radio.radio-segment 로 건다. 바깥 모서리는 위 두 규칙이 둥글린다.
8379
+ 고른 칸은 z-index 로 이웃 위에 올라 보라 테두리 네 변이 다 보인다. 포커스 링은 전역 규칙이 그린다 */
8380
+ .radio.radio-segment {
8381
+ flex: 1 1 auto;
8382
+ gap: var(--spacing-4);
8383
+ min-height: var(--control-height-m);
8384
+ padding: var(--spacing-10) var(--spacing-20);
8385
+ border: var(--hairline) solid var(--border-default);
8386
+ border-radius: 0;
8387
+ background-color: var(--surface-base);
8388
+ color: var(--text-primary);
8389
+ font-size: var(--font-size-sm);
8390
+ line-height: var(--line-height-sm);
8391
+ font-weight: var(--font-weight-medium);
8392
+ overflow-wrap: anywhere;
8393
+ transition:
8394
+ background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8395
+ var(--confirm-delay, 0ms),
8396
+ color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8397
+ var(--confirm-delay, 0ms),
8398
+ border-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8399
+ var(--confirm-delay, 0ms);
8400
+
8401
+ /* 딤 색은 고른 칸의 보라 바탕과 같은 색조다 */
8402
+ }
8403
+ .radio.radio-segment.motion-press-dim::after {
8404
+ background: var(--surface-brand);
8405
+ }
8406
+ .radio.radio-segment:focus-visible {
8407
+ z-index: var(--z-raised);
8408
+ }
8409
+ .radio.radio-segment[data-state='checked'] {
8410
+ z-index: var(--z-raised);
8411
+ border-color: var(--border-accent-subtle);
8412
+ background-color: var(--surface-brand-subtle);
8413
+ color: var(--text-brand);
8414
+ font-weight: var(--font-weight-semibold);
8415
+ }
8416
+ .radio.radio-segment[data-state='unchecked'] .radio-segment-check {
8417
+ display: none;
8418
+ }
8419
+ .radio.radio-segment[data-disabled] {
8420
+ color: var(--text-disabled);
8421
+ cursor: var(--cursor-disabled);
8422
+ }
8423
+ /* 골라진 채 막힌 칸은 체크와 굵기로 고름을 남기고 색은 뺀다 */
8424
+ .radio.radio-segment[data-disabled][data-state='checked'] {
8425
+ border-color: var(--border-default);
8426
+ background-color: var(--surface-disabled);
8427
+ }
8428
+ /* card: 제목·설명 카드를 쌓는다. columns 가 --radio-columns 로 열 수를 준다 */
8429
+ .radio.radio-group.variant-card {
8430
+ display: grid;
8431
+ grid-template-columns: repeat(var(--radio-columns, 1), minmax(0, 1fr));
8432
+ gap: var(--spacing-8);
8433
+ }
8434
+ .radio.radio-group.variant-card > .radio-option {
8435
+ align-items: stretch;
8436
+ }
8437
+ /* .base-button 의 가운데 정렬·gap·border·radius 를 .radio.radio-card 로 덮는다. 포커스 링은 전역 규칙이 그린다 */
8438
+ .radio.radio-card {
8439
+ flex: 1 1 auto;
8440
+ justify-content: space-between;
8441
+ align-items: flex-start;
8442
+ gap: var(--spacing-12);
8443
+ padding: var(--spacing-16) var(--spacing-20);
8444
+ border: var(--hairline) solid var(--border-default);
8445
+ border-radius: var(--radius-control);
8446
+ background-color: var(--surface-base);
8447
+ color: var(--text-primary);
8448
+ text-align: start;
8449
+ transition:
8450
+ background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8451
+ var(--confirm-delay, 0ms),
8452
+ border-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8453
+ var(--confirm-delay, 0ms);
8454
+ }
8455
+ .radio.radio-card.motion-press-dim::after {
8456
+ background: var(--surface-brand);
8457
+ }
8458
+ .radio.radio-card[data-state='checked'] {
8459
+ border-color: var(--border-accent);
8460
+ background-color: var(--surface-brand-subtle);
8461
+ }
8462
+ .radio.radio-card[data-state='checked'] .radio-card-title {
8463
+ color: var(--text-brand);
8464
+ }
8465
+ .radio.radio-card[data-state='checked'] .radio-mark {
8466
+ border-color: var(--border-accent);
8467
+ background-color: var(--surface-brand);
8468
+ }
8469
+ /* 골라진 채 막힌 카드는 동그라미의 흰 점으로만 고름을 남긴다 */
8470
+ .radio.radio-card[data-disabled] {
8471
+ border-color: var(--border-disabled);
8472
+ background-color: var(--surface-base);
8473
+ cursor: var(--cursor-disabled);
8474
+ }
8475
+ .radio.radio-card[data-disabled] :is(.radio-card-title,.radio-card-description) {
8476
+ color: var(--text-disabled);
8477
+ }
8478
+ .radio.radio-card[data-disabled] .radio-mark {
8479
+ border-color: var(--border-disabled);
8480
+ background-color: var(--surface-control);
8481
+ }
8482
+ .radio:where(.radio-card-text) {
8483
+ flex: 1 1 auto;
8484
+ display: flex;
8485
+ flex-direction: column;
8486
+ gap: var(--spacing-4);
8487
+ min-width: 0;
8488
+ }
8489
+ .radio:where(.radio-card-title) {
8490
+ font-size: var(--font-size-base);
8491
+ line-height: var(--line-height-base);
8492
+ font-weight: var(--font-weight-semibold);
8493
+ }
8494
+ .radio:where(.radio-card-description) {
8495
+ font-size: var(--font-size-sm);
8496
+ line-height: var(--line-height-sm);
8497
+ font-weight: var(--font-weight-regular);
8498
+ color: var(--text-muted);
8499
+ }
8500
+ /* 동그라미를 제목 첫 줄 가운데에 맞춘다 */
8501
+ .radio.radio-mark {
8502
+ margin-block-start: calc((var(--line-height-base) - var(--radio-size)) / 2);
8503
+ transition: background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8504
+ var(--confirm-delay, 0ms);
8505
+ }
8506
+ /* 좁은 화면: 칸이 셋 이상인 button 묶음은 떨어진 버튼 두 열이 되고 남는 한 칸은 줄을 다 쓴다. card 는 한 열이다 */
8507
+ @media (width < 768px) {
8508
+ .radio.radio-group.variant-button {
8509
+ width: 100%;
8510
+ }
8511
+
8512
+ .radio.radio-group.variant-button:has( > .radio-option:nth-child(3)) {
8513
+ display: grid;
8514
+ grid-template-columns: repeat(2, minmax(0, 1fr));
8515
+ gap: var(--spacing-8);
8516
+ width: 100%;
8517
+ }
8518
+
8519
+ .radio.radio-group.variant-button:has( > .radio-option:nth-child(3)) > .radio-option {
8520
+ min-width: 0;
8521
+ margin-inline-start: 0;
8522
+ }
8523
+
8524
+ .radio.radio-group.variant-button:has( > .radio-option:nth-child(3)) > .radio-option:last-child:nth-child(odd) {
8525
+ grid-column: 1 / -1;
8526
+ }
8527
+
8528
+ .radio.radio-group.variant-button:has( > .radio-option:nth-child(3)) .radio-segment {
8529
+ border-radius: var(--radius-control);
8530
+ white-space: normal;
8531
+ }
8532
+
8533
+ .radio.radio-group.variant-card {
8534
+ grid-template-columns: minmax(0, 1fr);
8535
+ }
8536
+ }
7742
8537
  .base-rating:where(.root) {
7743
8538
  position: relative;
7744
8539
  display: inline-flex;
@@ -7841,7 +8636,7 @@ button.modal-with-double-button-close-button {
7841
8636
  }
7842
8637
  /***************************************************************************************************
7843
8638
  * *
7844
- * base-search-field *
8639
+ * search-field *
7845
8640
  * *
7846
8641
  ***************************************************************************************************/
7847
8642
  .search-field[data-fixed] {
@@ -7860,6 +8655,43 @@ button.modal-with-double-button-close-button {
7860
8655
  height: 0;
7861
8656
  overflow: visible;
7862
8657
  }
8658
+ /* 기준 고르기. 상자는 바깥 입력 상자 하나가 그리고, 이 칸은 선·바탕 없이 글자와 꺾쇠만 둔다.
8659
+ .base-drop-down.trigger(앞에 불러온 drop-down CSS)의 간격을 같은 우선순위로 덮는다 */
8660
+ .search-field .search-field-criterion {
8661
+ align-self: stretch;
8662
+ flex: none;
8663
+ gap: var(--spacing-4);
8664
+ padding: 0;
8665
+ border: 0;
8666
+ background: transparent;
8667
+ color: var(--text-primary);
8668
+ font: inherit;
8669
+ white-space: nowrap;
8670
+ cursor: var(--cursor-button);
8671
+ }
8672
+ [data-disabled]:is(.search-field .search-field-criterion) {
8673
+ color: var(--text-disabled);
8674
+ cursor: var(--cursor-disabled);
8675
+ }
8676
+ :is(.search-field .search-field-criterion) .search-field-criterion-icon {
8677
+ color: var(--icon-tertiary);
8678
+ transition: transform var(--motion-expand-duration) var(--motion-expand-ease);
8679
+ }
8680
+ [data-state='open']:is(.search-field .search-field-criterion) .search-field-criterion-icon {
8681
+ transform: rotate(var(--motion-expand-rotate));
8682
+ }
8683
+ /* 기준과 검색어 사이 세로선 하나. 상자 높이보다 짧게 긋는다 */
8684
+ .search-field-divider {
8685
+ flex: none;
8686
+ align-self: stretch;
8687
+ margin-block: var(--spacing-8);
8688
+ border-left: var(--hairline) solid var(--border-default);
8689
+ }
8690
+ /* 기준 목록이 열리면 포커스가 목록으로 옮겨 가 :focus-within 이 풀린다. 열린 동안도 포커스와 같은 보라 2px 선을 둔다 */
8691
+ .search-field .text-field-input-wrapper:has(.search-field-criterion[data-state='open']) {
8692
+ border-color: var(--border-accent);
8693
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent);
8694
+ }
7863
8695
  .base-section-header {
7864
8696
  display: flex;
7865
8697
  align-items: center;
@@ -8018,6 +8850,20 @@ button.modal-with-double-button-close-button {
8018
8850
  left var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease),
8019
8851
  width var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease);
8020
8852
  }
8853
+ /* neutral: 회색 바탕 위 흰 알약에 검정 글자. 판이 바탕과 같은 회색 계열이라 작은 그림자로 띄운다 */
8854
+ .motion-press-dim:is(.segmented-control.variant-neutral .segmented-control-item)::after {
8855
+ background: var(--surface-base);
8856
+ }
8857
+ [data-state='checked']:is(.segmented-control.variant-neutral .segmented-control-item) {
8858
+ color: var(--text-primary);
8859
+ }
8860
+ [data-disabled]:is(.segmented-control.variant-neutral .segmented-control-item) {
8861
+ color: var(--text-disabled);
8862
+ }
8863
+ .segmented-control.variant-neutral .segmented-control-indicator {
8864
+ background: var(--surface-base);
8865
+ box-shadow: var(--shadow-raised);
8866
+ }
8021
8867
  /* 넘쳐 밀린 목록 위에 떠서 처음으로 되돌리는 화살표. 목록 밖에 두어 함께 밀리지 않는다(Tabs 와 같다) */
8022
8868
  .segmented-control-scroll-start {
8023
8869
  position: absolute;
@@ -8236,21 +9082,36 @@ button.modal-with-double-button-close-button {
8236
9082
  text-align: center;
8237
9083
  }
8238
9084
  /* 앱 리셋이 없어도 dl·dt·dd 기본 여백을 받지 않는다 */
8239
- .base-stat {
8240
- display: grid;
8241
- gap: var(--spacing-4);
8242
- min-width: 0;
8243
- margin: 0;
8244
- }
8245
- .base-stat > :where(dt,dd) {
9085
+ .base-stat:where(dl) {
9086
+ display: grid;
9087
+ gap: var(--spacing-4);
9088
+ min-width: 0;
8246
9089
  margin: 0;
8247
9090
  }
9091
+ .base-stat:where(dl) > :where(dt,dd) {
9092
+ margin: 0;
9093
+ }
9094
+ .base-stat:where(.item) {
9095
+ position: relative;
9096
+ }
9097
+ .base-stat:where(.toggle) {
9098
+ position: absolute;
9099
+ inset: 0;
9100
+ padding: 0;
9101
+ border: 0;
9102
+ border-radius: inherit;
9103
+ background: transparent;
9104
+ cursor: var(--cursor-button);
9105
+ }
8248
9106
  /***************************************************************************************************
8249
9107
  * *
8250
9108
  * stat *
8251
9109
  * *
8252
9110
  ***************************************************************************************************/
8253
9111
  .stat-label {
9112
+ display: flex;
9113
+ align-items: center;
9114
+ gap: var(--spacing-4);
8254
9115
  color: var(--text-secondary);
8255
9116
  font-size: var(--font-size-sm);
8256
9117
  line-height: var(--line-height-sm);
@@ -8263,6 +9124,14 @@ button.modal-with-double-button-close-button {
8263
9124
  font-variant-numeric: tabular-nums;
8264
9125
  overflow-wrap: anywhere;
8265
9126
  }
9127
+ .stat-value.tone-danger {
9128
+ color: var(--text-danger);
9129
+ }
9130
+ .stat.size-s .stat-value {
9131
+ font-size: var(--font-size-xl);
9132
+ line-height: var(--line-height-xl);
9133
+ letter-spacing: var(--letter-spacing-tight);
9134
+ }
8266
9135
  .stat.size-m .stat-value {
8267
9136
  font-size: var(--font-size-2xl);
8268
9137
  line-height: var(--line-height-2xl);
@@ -8273,6 +9142,44 @@ button.modal-with-double-button-close-button {
8273
9142
  line-height: var(--line-height-3xl);
8274
9143
  letter-spacing: var(--letter-spacing-tighter);
8275
9144
  }
9145
+ /* 아이콘 타일(Asset.Frame size s, 40px)은 라벨·숫자 두 줄의 왼쪽 가운데에 뜬다. 그 폭만큼 글을 민다 */
9146
+ .stat.has-icon {
9147
+ position: relative;
9148
+ min-height: var(--asset-square-s);
9149
+ padding-left: calc(var(--asset-square-s) + var(--spacing-12));
9150
+ align-content: center;
9151
+ }
9152
+ .stat-icon {
9153
+ position: absolute;
9154
+ top: 50%;
9155
+ left: 0;
9156
+ display: flex;
9157
+ transform: translateY(-50%);
9158
+ }
9159
+ /* 라벨 옆 ⓘ. 상태 요약 칸에서는 칸을 덮는 누르는 자리 위에 떠야 누를 수 있다 */
9160
+ .stat-help {
9161
+ position: relative;
9162
+ z-index: var(--z-raised);
9163
+ display: inline-flex;
9164
+ pointer-events: auto;
9165
+ padding: 0;
9166
+ border: 0;
9167
+ border-radius: var(--radius-circle);
9168
+ background: transparent;
9169
+ color: var(--icon-tertiary);
9170
+ cursor: var(--cursor-button);
9171
+
9172
+ /* 16px 아이콘의 누르는 자리를 터치 44 로 넓힌다 */
9173
+ }
9174
+ .stat-help::after {
9175
+ content: '';
9176
+ position: absolute;
9177
+ top: 50%;
9178
+ left: 50%;
9179
+ width: var(--touch-target);
9180
+ height: var(--touch-target);
9181
+ transform: translate(-50%, -50%);
9182
+ }
8276
9183
  .stat-detail {
8277
9184
  color: var(--text-secondary);
8278
9185
  font-size: var(--font-size-sm);
@@ -8291,6 +9198,54 @@ button.modal-with-double-button-close-button {
8291
9198
  .stat-delta.tone-neutral {
8292
9199
  color: var(--text-secondary);
8293
9200
  }
9201
+ /***************************************************************************************************
9202
+ * *
9203
+ * stat-group *
9204
+ * *
9205
+ ***************************************************************************************************/
9206
+ /* 칸은 가장 긴 줄의 칸 수만큼 열을 나눈다. 좁으면 칸이 글자 폭 아래로 줄지 않고 묶음 안에서 가로로 민다 */
9207
+ .stat-group {
9208
+ display: grid;
9209
+ grid-template-columns: repeat(var(--stat-group-columns), minmax(max-content, 1fr));
9210
+ gap: var(--spacing-4) var(--spacing-8);
9211
+ max-width: 100%;
9212
+ overflow-x: auto;
9213
+ }
9214
+ .stat-group-item {
9215
+ padding: var(--spacing-12) var(--spacing-16);
9216
+ border-radius: var(--radius-control);
9217
+ transition: background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease);
9218
+ }
9219
+ .stat-group-item.row-start {
9220
+ grid-column-start: 1;
9221
+ }
9222
+ /* 글(dl)이 칸을 덮는 Toggle 보다 뒤에 와서 위에 그려진다. 누름은 Toggle 로 보내고 ⓘ 만 다시 받는다 */
9223
+ .stat-group-item > .stat {
9224
+ pointer-events: none;
9225
+ }
9226
+ /* 같은 줄의 칸 사이 세로선. 열 사이 여백 가운데에 칸 높이보다 짧게 긋는다 */
9227
+ .stat-group-item:not(.row-start)::before {
9228
+ content: '';
9229
+ position: absolute;
9230
+ top: var(--spacing-16);
9231
+ bottom: var(--spacing-16);
9232
+ left: calc(-1 * var(--spacing-4));
9233
+ border-left: var(--hairline) solid var(--border-subtle);
9234
+ }
9235
+ .stat-group-item.pressable:hover:not([data-state='on']) {
9236
+ background-color: var(--surface-subtle);
9237
+ }
9238
+ /* 고른 칸은 연한 주색 면에 주색 글자. 처리할 숫자의 빨강은 그대로 둔다 */
9239
+ .stat-group-item[data-state='on'] {
9240
+ background-color: var(--surface-brand-subtle);
9241
+ }
9242
+ .stat-group-item[data-state='on'] .stat-label,.stat-group-item[data-state='on'] .stat-value:not(.tone-danger) {
9243
+ color: var(--text-brand);
9244
+ }
9245
+ /* 눌림 딤은 목록 행처럼 중립 회색이다 */
9246
+ .stat-group-toggle.motion-press-dim::after {
9247
+ background: var(--surface-strong);
9248
+ }
8294
9249
  .base-platform-badge {
8295
9250
  display: inline-flex;
8296
9251
  flex-shrink: 0;
@@ -8477,6 +9432,10 @@ button.modal-with-double-button-close-button {
8477
9432
  transition-timing-function: var(--motion-progress-ease);
8478
9433
  }
8479
9434
  /* 지금 단계 이름만 보인다. 다른 이름은 낭독기에는 남긴다 */
9435
+ /* 숨긴 이름을 제 칸에 묶는다. 묶지 않으면 잘라 주는 조상 밖으로 나가 문서를 가로로 넓힌다 */
9436
+ .step-progress.label-visibility-current .step-progress-step {
9437
+ position: relative;
9438
+ }
8480
9439
  .step-progress.label-visibility-current .step-progress-step:not([data-state='current']) .step-progress-name {
8481
9440
  position: absolute;
8482
9441
  width: 1px; /* raw-px */
@@ -8619,22 +9578,74 @@ button.modal-with-double-button-close-button {
8619
9578
  text-align: start;
8620
9579
  vertical-align: middle;
8621
9580
  }
9581
+ /* 두 줄 셀: 윗줄 이름, 아랫줄 작은 회색 보조 글(ID·옵션) */
9582
+ .base-table:where(.cell-text) {
9583
+ display: inline-flex;
9584
+ flex-direction: column;
9585
+ gap: var(--spacing-2);
9586
+ min-width: 0;
9587
+ }
9588
+ .base-table:where(.cell-text) .cell-text-title {
9589
+ font-size: var(--font-size-sm);
9590
+ line-height: var(--line-height-sm);
9591
+ color: var(--text-primary);
9592
+ }
9593
+ .base-table:where(.cell-text) .cell-text-description {
9594
+ font-size: var(--font-size-xsm);
9595
+ line-height: var(--line-height-xsm);
9596
+ color: var(--text-muted);
9597
+ }
9598
+ /* 줄 행동: 마우스를 올린 행·포커스가 들어간 행에만 보인다. 숨길 때도 opacity 라 Tab 으로 들어갈 수 있다 */
9599
+ .base-table:where(.hover-actions) {
9600
+ display: inline-flex;
9601
+ align-items: center;
9602
+ gap: var(--spacing-4);
9603
+ vertical-align: middle;
9604
+ opacity: 0;
9605
+ }
9606
+ @media (width < 768px) {
9607
+ .base-table:where(.hover-actions) {
9608
+ opacity: 1;
9609
+ }
9610
+ }
9611
+ .base-table:where(.row):hover .base-table:where(.hover-actions),
9612
+ .base-table:where(.row):focus-within .base-table:where(.hover-actions) {
9613
+ opacity: 1;
9614
+ }
8622
9615
  /***************************************************************************************************
8623
9616
  * *
8624
9617
  * data-table *
8625
9618
  * *
8626
9619
  ***************************************************************************************************/
8627
9620
  /* 넓은 화면에서는 overflow 가 visible 이라 머리행 sticky 가 지금처럼 페이지에 붙는다.
8628
- 늘 켜 두지 않는 이유: overflow-x: auto 는 세로로도 스크롤 칸을 만들어 sticky 가 감싸개에 붙는다 */
9621
+ 늘 켜 두지 않는 이유: overflow-x: auto 는 세로로도 스크롤 칸을 만들어 sticky 가 감싸개에 붙는다. scrollX 를 준 표만 넓은 화면에서도 켠다 */
8629
9622
  .data-table-scroll {
8630
9623
  width: 100%;
8631
9624
  }
9625
+ .data-table-scroll.scroll-x {
9626
+ overflow-x: auto;
9627
+ overscroll-behavior-x: contain;
9628
+
9629
+ /* 열 width 를 줄이지 않고 지킨다. 폭 100% 표는 넘칠 때 열을 min-content 까지 줄여 스크롤이 생기지 않는다 */
9630
+ }
9631
+ .data-table-scroll.scroll-x > .data-table {
9632
+ width: -moz-max-content;
9633
+ width: max-content;
9634
+ min-width: 100%;
9635
+ }
8632
9636
  @media (width < 768px) {
8633
9637
  .data-table-scroll {
8634
9638
  overflow-x: auto;
8635
9639
  overscroll-behavior-x: contain;
8636
9640
  }
8637
9641
  }
9642
+ /* 가려진 쪽이 있을 때만 고정 열 경계에 그림자를 드리운다(data-table.tsx syncScrollEdges) */
9643
+ .data-table-scroll[data-overflow-start] .fixed-last {
9644
+ box-shadow: var(--shadow-pinned-start);
9645
+ }
9646
+ .data-table-scroll[data-overflow-end] .fixed-end-first {
9647
+ box-shadow: var(--shadow-pinned-end);
9648
+ }
8638
9649
  .data-table {
8639
9650
  position: relative;
8640
9651
  width: 100%;
@@ -8663,6 +9674,69 @@ button.modal-with-double-button-close-button {
8663
9674
  line-height: var(--line-height-sm);
8664
9675
  color: var(--data-table-cell-color, var(--text-body));
8665
9676
  }
9677
+ /* tinted: 회색 머리 행. 고정 칸도 같은 바탕이라 스크롤 중에 비치지 않는다 */
9678
+ .data-table.header-tinted .data-table-header .cell {
9679
+ background-color: var(--surface-subtle);
9680
+ }
9681
+ /* 숫자·금액 열. 자릿수가 위아래로 맞게 고정폭 숫자를 쓴다 */
9682
+ .data-table .align-end {
9683
+ text-align: end;
9684
+ font-variant-numeric: tabular-nums;
9685
+ }
9686
+ .data-table .align-center {
9687
+ text-align: center;
9688
+ }
9689
+ /* 머리 글과 ⓘ 를 한 줄로 묶는다. inline 이라 칸의 text-align 을 따른다 */
9690
+ .data-table-header-label {
9691
+ display: inline-flex;
9692
+ align-items: center;
9693
+ gap: var(--spacing-4);
9694
+ vertical-align: middle;
9695
+ }
9696
+ .data-table-header-info {
9697
+ position: relative;
9698
+ display: inline-flex;
9699
+ padding: 0;
9700
+ border: none;
9701
+ background-color: transparent;
9702
+ color: var(--icon-tertiary);
9703
+ cursor: var(--cursor-button);
9704
+
9705
+ /* 16px 아이콘의 누르는 자리를 세로 44 까지 넓힌다. 가로로 넓히면 옆 머리 글을 덮는다 */
9706
+ }
9707
+ .data-table-header-info::before {
9708
+ content: '';
9709
+ position: absolute;
9710
+ top: 50%;
9711
+ left: 0;
9712
+ right: 0;
9713
+ height: var(--touch-target);
9714
+ transform: translateY(-50%);
9715
+ }
9716
+ /* 행 선택 열. 폭은 체크박스만큼이다 */
9717
+ .data-table .data-table-select {
9718
+ width: 0;
9719
+ padding-inline: var(--spacing-12);
9720
+ }
9721
+ /* 0건 문구. 본문 자리 가운데 회색 글, 줄바꿈(\n)을 그대로 줄로 쓴다 */
9722
+ .data-table .data-table-empty {
9723
+ height: var(--data-table-empty-height);
9724
+ padding-inline: 0;
9725
+ text-align: center;
9726
+ white-space: pre-line;
9727
+ font-size: var(--font-size-sm);
9728
+ line-height: var(--line-height-sm);
9729
+ color: var(--text-muted);
9730
+ }
9731
+ /* 표가 감싸개보다 넓으면 가운데가 화면 밖에 놓인다. 보이는 폭만큼의 칸을 왼쪽에 붙여 그 안에서 가운데에 둔다 */
9732
+ .data-table-empty-message {
9733
+ position: sticky;
9734
+ inset-inline-start: 0;
9735
+ display: block;
9736
+ box-sizing: border-box;
9737
+ width: var(--data-table-scroll-width, 100%);
9738
+ padding-inline: var(--spacing-16);
9739
+ }
8666
9740
  /* 마지막 고정 열의 경계선. border-collapse 표의 border 는 sticky 셀과 함께 움직이지 않아 그림자로 셀 안에 그린다 */
8667
9741
  :where(.data-table.variant-padded) .fixed-last {
8668
9742
  box-shadow: inset calc(var(--hairline) * -1) 0 0 var(--border-subtle);
@@ -8671,21 +9745,28 @@ button.modal-with-double-button-close-button {
8671
9745
  position: relative;
8672
9746
  border-bottom: var(--hairline) solid var(--border-subtle);
8673
9747
  }
8674
- .data-table-row .fixed {
9748
+ .data-table-row .fixed,.data-table-row .fixed-end {
8675
9749
  position: sticky;
8676
9750
  background-color: var(--surface-base);
8677
9751
  z-index: var(--z-sticky);
8678
9752
  }
8679
- :is(.data-table-row .fixed) > * {
9753
+ :is(.data-table-row .fixed,.data-table-row .fixed-end) > * {
8680
9754
  position: relative;
8681
9755
  z-index: var(--z-raised);
8682
9756
  }
8683
- .body .data-table-row:hover {
9757
+ .body .data-table-row:not(.data-table-empty-row):hover {
8684
9758
  background-color: var(--surface-muted);
8685
9759
  }
8686
- :is(.body .data-table-row:hover) .fixed {
9760
+ :is(.body .data-table-row:not(.data-table-empty-row):hover) .fixed,:is(.body .data-table-row:not(.data-table-empty-row):hover) .fixed-end {
8687
9761
  background-color: var(--surface-muted);
8688
9762
  }
9763
+ /* 고른 행. 마우스를 올려도 고른 색이 남는다 */
9764
+ .body .data-table-row[data-state='selected'] {
9765
+ background-color: var(--surface-brand-subtle);
9766
+ }
9767
+ :is(.body .data-table-row[data-state='selected']) .fixed,:is(.body .data-table-row[data-state='selected']) .fixed-end {
9768
+ background-color: var(--surface-brand-subtle);
9769
+ }
8689
9770
  .fixed-cell {
8690
9771
  position: sticky;
8691
9772
  left: 0;
@@ -8887,7 +9968,7 @@ button.modal-with-double-button-close-button {
8887
9968
  outline: none;
8888
9969
  background-color: transparent;
8889
9970
  font-family: inherit;
8890
- font-weight: var(--font-weight-medium);
9971
+ font-weight: var(--font-weight-regular);
8891
9972
  color: var(--text-primary);
8892
9973
  }
8893
9974
  .base-text-area:where(.textarea)::-moz-placeholder {
@@ -8899,6 +9980,19 @@ button.modal-with-double-button-close-button {
8899
9980
  .base-text-area[data-disabled]:where(.textarea) {
8900
9981
  cursor: var(--cursor-disabled);
8901
9982
  }
9983
+ .base-text-area:where(.label) {
9984
+ display: block;
9985
+ width: -moz-fit-content;
9986
+ width: fit-content;
9987
+ font-size: var(--font-size-sm);
9988
+ line-height: var(--line-height-sm);
9989
+ font-weight: var(--font-weight-medium);
9990
+ }
9991
+ .base-text-area:where(.helper-text) {
9992
+ font-size: var(--font-size-sm);
9993
+ line-height: var(--line-height-sm);
9994
+ font-weight: var(--font-weight-regular);
9995
+ }
8902
9996
  /* 상자 안 아이콘 버튼(TextField 와 같은 크기). 누르는 자리는 터치 44 로 넓힌다 */
8903
9997
  .base-text-area:where(.action) {
8904
9998
  position: relative;
@@ -8934,49 +10028,76 @@ button.modal-with-double-button-close-button {
8934
10028
  height: fit-content;
8935
10029
  }
8936
10030
  .text-area-title {
8937
- margin-bottom: var(--spacing-8);
10031
+ margin-bottom: var(--spacing-6);
10032
+ color: var(--text-secondary);
8938
10033
  }
8939
10034
  /* 높이는 rows 가 정한다. size 는 글자 크기와 안쪽 여백만 바꾼다 */
8940
10035
  .text-area-input-wrapper {
8941
10036
  display: flex;
8942
- box-sizing: border-box;
10037
+ /* 글자 수는 다음 줄 오른쪽에 놓인다 */
10038
+ flex-wrap: wrap;
8943
10039
 
8944
- /* 입력 상자 공통 모양(TextField·TextArea 같음). 모서리는 버튼과 같은 control.
8945
- 쉴 때는 연회색 면에 선이 없고, 포커스에서 흰 바탕과 accent 선(연보라 후광)이 된다(무드 규칙 7, ADR 0015).
8946
- 오류는 쉴 때도 error 선(포커스면 연빨강 후광), 읽기 전용은 포커스에도 회색 면, disabled 는 회색 바탕.
10040
+ /* 입력 상자 공통 모양(TextField·TextArea 같음, ADR 0021). 모서리는 버튼과 같은 control.
10041
+ outline(기본)은 흰 바탕에 회색 1px 선이다. 마우스를 올리면 연보라, 포커스면 보라 2px 선이 된다.
10042
+ 2px 는 1px border 에 안쪽 1px 그림자를 겹쳐 그려 상자 크기가 흔들리지 않는다. 바깥 후광은 없다.
10043
+ 오류는 빨간 선(포커스면 2px), 읽기 전용은 회색 면에 포커스에도 선이 굵어지지 않는다, disabled 는 회색 면에 흐린 글자.
8947
10044
  아이콘은 상자의 color 를 따른다. 상태 색 전환은 다른 상태 피드백처럼 press 토큰을 쓴다 */
8948
10045
  box-sizing: border-box;
8949
10046
  border-radius: var(--radius-control);
8950
- border: var(--hairline) solid transparent;
8951
- background-color: var(--surface-subtle);
10047
+ border: var(--hairline) solid var(--border-default);
10048
+ background-color: var(--surface-base);
8952
10049
  color: var(--text-muted);
8953
10050
  transition:
8954
10051
  border-color var(--motion-press-duration) var(--motion-press-ease),
8955
10052
  box-shadow var(--motion-press-duration) var(--motion-press-ease),
8956
10053
  background-color var(--motion-press-duration) var(--motion-press-ease);
10054
+
10055
+ /* 줄을 바꿀 수 있는 상자라 폭 100% 대신 남는 폭을 채운다. 지우기 버튼이 같은 줄에 남는다 */
8957
10056
  }
8958
10057
  .text-area-input-wrapper > textarea {
10058
+ flex: 1 1 0;
10059
+ min-width: 0;
8959
10060
  color: var(--text-primary);
8960
10061
  }
8961
- /* 선 대신 면이 한 단계 짙어진다 */
8962
- .text-area-input-wrapper:hover:not(:focus-within,.error,:has( > textarea:disabled)) {
8963
- background-color: var(--surface-muted);
10062
+ .text-area-input-wrapper:hover:not(:focus-within,.error,:has( > textarea:disabled),:has( > textarea[readonly])) {
10063
+ border-color: var(--border-accent-subtle);
10064
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent-subtle);
8964
10065
  }
8965
10066
  .text-area-input-wrapper:focus-within {
8966
10067
  border-color: var(--border-accent);
8967
- background-color: var(--surface-base);
8968
- box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-color);
10068
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent);
8969
10069
  color: var(--text-secondary);
8970
10070
  }
8971
10071
  .text-area-input-wrapper.error {
8972
10072
  border-color: var(--border-error);
8973
10073
  }
8974
10074
  .text-area-input-wrapper.error:focus-within {
8975
- box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-error-color);
10075
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-error);
8976
10076
  }
8977
- .text-area-input-wrapper:has( > textarea[readonly]:not(:disabled)) {
10077
+ /* fill: 쉴 때 선 없는 연회색 면. 마우스를 올리면 면이 한 단계 짙어지고 포커스에서 흰 바탕과 보라 2px 선이 된다 */
10078
+ .text-area-input-wrapper.variant-fill {
10079
+ border-color: transparent;
8978
10080
  background-color: var(--surface-subtle);
8979
10081
  }
10082
+ .text-area-input-wrapper.variant-fill:hover:not(:focus-within,.error,:has( > textarea:disabled),:has( > textarea[readonly])) {
10083
+ border-color: transparent;
10084
+ box-shadow: none;
10085
+ background-color: var(--surface-muted);
10086
+ }
10087
+ .text-area-input-wrapper.variant-fill:focus-within {
10088
+ border-color: var(--border-accent);
10089
+ background-color: var(--surface-base);
10090
+ }
10091
+ .text-area-input-wrapper.variant-fill.error {
10092
+ border-color: var(--border-error);
10093
+ }
10094
+ /* 읽기 전용은 회색 면. 포커스는 선 색만 바뀌고 굵어지지 않는다 */
10095
+ .text-area-input-wrapper:has( > textarea[readonly]:not(:disabled)) {
10096
+ background-color: var(--surface-muted);
10097
+ }
10098
+ .text-area-input-wrapper:has( > textarea[readonly]:not(:disabled)):focus-within {
10099
+ box-shadow: none;
10100
+ }
8980
10101
  .text-area-input-wrapper:has( > textarea:disabled) {
8981
10102
  border-color: var(--border-disabled);
8982
10103
  background-color: var(--surface-muted);
@@ -8984,7 +10105,7 @@ button.modal-with-double-button-close-button {
8984
10105
  cursor: var(--cursor-disabled);
8985
10106
  }
8986
10107
  .text-area-input-wrapper:has( > textarea:disabled) > textarea {
8987
- color: var(--text-placeholder);
10108
+ color: var(--text-disabled);
8988
10109
  cursor: var(--cursor-disabled);
8989
10110
  }
8990
10111
  .text-area-input-wrapper.size-s > textarea {
@@ -9013,6 +10134,21 @@ button.modal-with-double-button-close-button {
9013
10134
  .text-area-input-wrapper.size-m > .text-area-action {
9014
10135
  margin: var(--spacing-14) var(--spacing-14) 0 0;
9015
10136
  }
10137
+ /* 글자 수는 상자 안 오른쪽 아래. 아래·오른쪽 여백은 size 마다 textarea 안쪽 여백과 같다 */
10138
+ .text-area-input-wrapper > .text-area-count {
10139
+ flex-basis: 100%;
10140
+ text-align: right;
10141
+ font-size: var(--font-size-xsm);
10142
+ line-height: var(--line-height-xsm);
10143
+ font-variant-numeric: tabular-nums;
10144
+ color: var(--text-muted);
10145
+ }
10146
+ .text-area-input-wrapper.size-s > .text-area-count {
10147
+ padding: 0 var(--spacing-14) var(--spacing-10);
10148
+ }
10149
+ .text-area-input-wrapper.size-m > .text-area-count {
10150
+ padding: 0 var(--spacing-14) var(--spacing-14);
10151
+ }
9016
10152
  .text-area-helper-text {
9017
10153
  margin-top: var(--spacing-6);
9018
10154
  color: var(--text-muted);
@@ -9090,7 +10226,7 @@ button.modal-with-double-button-close-button {
9090
10226
 
9091
10227
  font-size: inherit;
9092
10228
  line-height: inherit;
9093
- font-weight: var(--font-weight-medium);
10229
+ font-weight: var(--font-weight-regular);
9094
10230
  }
9095
10231
  .base-text-field.input::-moz-placeholder {
9096
10232
  color: var(--text-placeholder);
@@ -9104,6 +10240,19 @@ button.modal-with-double-button-close-button {
9104
10240
  -webkit-transition: background-color 5000s ease-in-out 0s;
9105
10241
  transition: background-color 5000s ease-in-out 0s; /* raw-value */
9106
10242
  }
10243
+ .base-text-field:where(.label) {
10244
+ display: block;
10245
+ width: -moz-fit-content;
10246
+ width: fit-content;
10247
+ font-size: var(--font-size-sm);
10248
+ line-height: var(--line-height-sm);
10249
+ font-weight: var(--font-weight-medium);
10250
+ }
10251
+ .base-text-field:where(.helper-text) {
10252
+ font-size: var(--font-size-sm);
10253
+ line-height: var(--line-height-sm);
10254
+ font-weight: var(--font-weight-regular);
10255
+ }
9107
10256
  .base-text-field:where(.prefix,.suffix) {
9108
10257
  flex: none;
9109
10258
  white-space: nowrap;
@@ -9146,7 +10295,8 @@ button.modal-with-double-button-close-button {
9146
10295
  height: fit-content;
9147
10296
  }
9148
10297
  .text-field-title {
9149
- margin-bottom: var(--spacing-8);
10298
+ margin-bottom: var(--spacing-6);
10299
+ color: var(--text-secondary);
9150
10300
  }
9151
10301
  .text-field-input-wrapper {
9152
10302
  display: flex;
@@ -9156,14 +10306,15 @@ button.modal-with-double-button-close-button {
9156
10306
 
9157
10307
  /* 높이는 버튼과 같은 --control-height-* 축, 좌우 여백·글자는 size 마다 버튼과 같은 단계 */
9158
10308
 
9159
- /* 입력 상자 공통 모양(TextField·TextArea 같음). 모서리는 버튼과 같은 control.
9160
- 쉴 때는 연회색 면에 선이 없고, 포커스에서 흰 바탕과 accent 선(연보라 후광)이 된다(무드 규칙 7, ADR 0015).
9161
- 오류는 쉴 때도 error 선(포커스면 연빨강 후광), 읽기 전용은 포커스에도 회색 면, disabled 는 회색 바탕.
10309
+ /* 입력 상자 공통 모양(TextField·TextArea 같음, ADR 0021). 모서리는 버튼과 같은 control.
10310
+ outline(기본)은 흰 바탕에 회색 1px 선이다. 마우스를 올리면 연보라, 포커스면 보라 2px 선이 된다.
10311
+ 2px 는 1px border 에 안쪽 1px 그림자를 겹쳐 그려 상자 크기가 흔들리지 않는다. 바깥 후광은 없다.
10312
+ 오류는 빨간 선(포커스면 2px), 읽기 전용은 회색 면에 포커스에도 선이 굵어지지 않는다, disabled 는 회색 면에 흐린 글자.
9162
10313
  아이콘은 상자의 color 를 따른다. 상태 색 전환은 다른 상태 피드백처럼 press 토큰을 쓴다 */
9163
10314
  box-sizing: border-box;
9164
10315
  border-radius: var(--radius-control);
9165
- border: var(--hairline) solid transparent;
9166
- background-color: var(--surface-subtle);
10316
+ border: var(--hairline) solid var(--border-default);
10317
+ background-color: var(--surface-base);
9167
10318
  color: var(--text-muted);
9168
10319
  transition:
9169
10320
  border-color var(--motion-press-duration) var(--motion-press-ease),
@@ -9205,25 +10356,45 @@ button.modal-with-double-button-close-button {
9205
10356
  width: 100%;
9206
10357
  min-width: 0;
9207
10358
  }
9208
- /* 선 대신 면이 한 단계 짙어진다 */
9209
- .text-field-input-wrapper:hover:not(:focus-within,.error,:has( > input:disabled)) {
9210
- background-color: var(--surface-muted);
10359
+ .text-field-input-wrapper:hover:not(:focus-within,.error,:has( > input:disabled),:has( > input[readonly])) {
10360
+ border-color: var(--border-accent-subtle);
10361
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent-subtle);
9211
10362
  }
9212
10363
  .text-field-input-wrapper:focus-within {
9213
10364
  border-color: var(--border-accent);
9214
- background-color: var(--surface-base);
9215
- box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-color);
10365
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent);
9216
10366
  color: var(--text-secondary);
9217
10367
  }
9218
10368
  .text-field-input-wrapper.error {
9219
10369
  border-color: var(--border-error);
9220
10370
  }
9221
10371
  .text-field-input-wrapper.error:focus-within {
9222
- box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-error-color);
10372
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-error);
9223
10373
  }
9224
- .text-field-input-wrapper:has( > input[readonly]:not(:disabled)) {
10374
+ /* fill: 쉴 때 선 없는 연회색 면. 마우스를 올리면 면이 한 단계 짙어지고 포커스에서 흰 바탕과 보라 2px 선이 된다 */
10375
+ .text-field-input-wrapper.variant-fill {
10376
+ border-color: transparent;
9225
10377
  background-color: var(--surface-subtle);
9226
10378
  }
10379
+ .text-field-input-wrapper.variant-fill:hover:not(:focus-within,.error,:has( > input:disabled),:has( > input[readonly])) {
10380
+ border-color: transparent;
10381
+ box-shadow: none;
10382
+ background-color: var(--surface-muted);
10383
+ }
10384
+ .text-field-input-wrapper.variant-fill:focus-within {
10385
+ border-color: var(--border-accent);
10386
+ background-color: var(--surface-base);
10387
+ }
10388
+ .text-field-input-wrapper.variant-fill.error {
10389
+ border-color: var(--border-error);
10390
+ }
10391
+ /* 읽기 전용은 회색 면. 포커스는 선 색만 바뀌고 굵어지지 않는다 */
10392
+ .text-field-input-wrapper:has( > input[readonly]:not(:disabled)) {
10393
+ background-color: var(--surface-muted);
10394
+ }
10395
+ .text-field-input-wrapper:has( > input[readonly]:not(:disabled)):focus-within {
10396
+ box-shadow: none;
10397
+ }
9227
10398
  .text-field-input-wrapper:has( > input:disabled) {
9228
10399
  border-color: var(--border-disabled);
9229
10400
  background-color: var(--surface-muted);
@@ -9231,10 +10402,18 @@ button.modal-with-double-button-close-button {
9231
10402
  cursor: var(--cursor-disabled);
9232
10403
  }
9233
10404
  .text-field-input-wrapper:has( > input:disabled) > input {
9234
- color: var(--text-placeholder);
10405
+ color: var(--text-disabled);
9235
10406
  cursor: var(--cursor-disabled);
9236
10407
  }
9237
10408
  /* prefix·suffix·버튼이 붙어도 input 이 제 기본 폭을 고집해 상자를 넘지 않게 한다 */
10409
+ /* 글자 수. 칠 때마다 읽지 않게 aria-hidden 이다 */
10410
+ .text-field-count {
10411
+ flex: none;
10412
+ font-size: var(--font-size-xsm);
10413
+ line-height: var(--line-height-xsm);
10414
+ color: var(--text-muted);
10415
+ font-variant-numeric: tabular-nums;
10416
+ }
9238
10417
  .text-field-helper-text {
9239
10418
  margin-top: var(--spacing-6);
9240
10419
  color: var(--text-muted);
@@ -9292,6 +10471,12 @@ button.modal-with-double-button-close-button {
9292
10471
  right: 0;
9293
10472
  --motion-slide-offset: translateY(calc(-1 * var(--spacing-16)));
9294
10473
  }
10474
+ .base-toast.position-top-center:where(.viewport) {
10475
+ top: 0;
10476
+ left: 50%;
10477
+ transform: translateX(-50%);
10478
+ --motion-slide-offset: translateY(calc(-1 * var(--spacing-16)));
10479
+ }
9295
10480
  .base-toast.position-bottom-right:where(.viewport) {
9296
10481
  right: 0;
9297
10482
  bottom: 0;
@@ -9304,7 +10489,7 @@ button.modal-with-double-button-close-button {
9304
10489
  /* 좁은 화면은 모서리 대신 화면 폭을 채운다. 위·아래는 position 을 따른다.
9305
10490
  :is 로 위 position 규칙과 특이도를 맞추고 뒤에 둬서 left·transform 을 덮는다 */
9306
10491
  @media (width < 768px) {
9307
- .base-toast:where(.viewport):is(.position-top-right,.position-bottom-right,.position-bottom-center) {
10492
+ .base-toast:where(.viewport):is(.position-top-right,.position-top-center,.position-bottom-right,.position-bottom-center) {
9308
10493
  left: 0;
9309
10494
  right: 0;
9310
10495
  width: auto;
@@ -9378,6 +10563,50 @@ button.modal-with-double-button-close-button {
9378
10563
  .toast.variant-error .toast-description {
9379
10564
  color: var(--toast-error-description);
9380
10565
  }
10566
+ /* 흰 카드: 판은 바탕과 같은 흰색이라 그림자로 띄운다. variant 색은 아이콘 뒤 원에만 남는다.
10567
+ 다크에서는 --surface-elevated 가 바탕보다 밝아 그림자 없이도 판이 갈린다. variant 규칙 뒤에 둬서 바탕·글자색을 덮는다 */
10568
+ .toast.surface-card {
10569
+ width: -moz-fit-content;
10570
+ width: fit-content;
10571
+ max-width: 100%;
10572
+ box-sizing: border-box;
10573
+ background-color: var(--surface-elevated);
10574
+ box-shadow: var(--shadow-floating);
10575
+ color: var(--text-primary);
10576
+ }
10577
+ .toast.surface-card .toast-title {
10578
+ color: var(--text-primary);
10579
+ }
10580
+ .toast.surface-card .toast-description {
10581
+ color: var(--text-tertiary);
10582
+ }
10583
+ .toast.surface-card .toast-close {
10584
+ color: var(--icon-tertiary);
10585
+ }
10586
+ .toast.surface-card .toast-icon {
10587
+ width: var(--icon-size-m);
10588
+ height: var(--icon-size-m);
10589
+ padding: var(--spacing-4);
10590
+ box-sizing: border-box;
10591
+ border-radius: var(--radius-circle);
10592
+ color: var(--text-on-brand);
10593
+ }
10594
+ .toast.surface-card.variant-success .toast-icon {
10595
+ background-color: var(--toast-success-background);
10596
+ }
10597
+ .toast.surface-card.variant-warning .toast-icon {
10598
+ background-color: var(--toast-warning-background);
10599
+ }
10600
+ .toast.surface-card.variant-error .toast-icon {
10601
+ background-color: var(--toast-error-background);
10602
+ }
10603
+ /* 카드는 글자 폭만큼이라 자리(position)의 가장자리에 붙인다 */
10604
+ .base-toast:where(.viewport):is(.position-top-center,.position-bottom-center) > .toast.surface-card {
10605
+ align-self: center;
10606
+ }
10607
+ .base-toast:where(.viewport):is(.position-top-right,.position-bottom-right) > .toast.surface-card {
10608
+ align-self: flex-end;
10609
+ }
9381
10610
  /* success·warning·error 는 앞에 상태 아이콘을 둔다. SVG 에 박힌 색을 글자색으로 맞춘다 */
9382
10611
  .toast-icon {
9383
10612
  flex-shrink: 0;