@nurihaus/web-design-system 3.26.0 → 3.27.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 (152) hide show
  1. package/dist/agreement.js +6 -198
  2. package/dist/ai/components.md +696 -77
  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 +14 -8
  7. package/dist/check-box.js +24 -14
  8. package/dist/chip-group.js +23 -7
  9. package/dist/chunk-244.js +31 -0
  10. package/dist/chunk-2735.js +123 -0
  11. package/dist/chunk-4359.js +96 -0
  12. package/dist/{chunk-6096.js → chunk-4709.js} +17 -33
  13. package/dist/chunk-4955.js +115 -0
  14. package/dist/chunk-7024.js +3 -1
  15. package/dist/chunk-7187.js +35 -0
  16. package/dist/chunk-7829.js +10 -2
  17. package/dist/chunk-8144.js +106 -0
  18. package/dist/chunk-9350.js +23 -0
  19. package/dist/components/check-box/check-box-type.d.ts +2 -0
  20. package/dist/components/check-box/check-box.stories.d.ts +2 -0
  21. package/dist/components/chip-group/chip-group-props.d.ts +6 -3
  22. package/dist/components/chip-group/chip-group-type.d.ts +4 -1
  23. package/dist/components/chip-group/chip-group.stories.d.ts +6 -2
  24. package/dist/components/description-list/description-list-props.d.ts +15 -1
  25. package/dist/components/description-list/description-list-type.d.ts +11 -1
  26. package/dist/components/description-list/description-list.d.ts +1 -1
  27. package/dist/components/description-list/description-list.stories.d.ts +7 -0
  28. package/dist/components/drop-down/drop-down-type.d.ts +14 -2
  29. package/dist/components/drop-down/drop-down.stories.d.ts +3 -1
  30. package/dist/components/empty-state/empty-state-props.d.ts +3 -0
  31. package/dist/components/empty-state/empty-state-type.d.ts +8 -2
  32. package/dist/components/empty-state/empty-state.d.ts +3 -0
  33. package/dist/components/empty-state/empty-state.stories.d.ts +296 -4
  34. package/dist/components/form-field/base-form-field.d.ts +13 -0
  35. package/dist/components/form-field/form-field-context.d.ts +7 -0
  36. package/dist/components/form-field/form-field-props.d.ts +21 -0
  37. package/dist/components/form-field/form-field-type.d.ts +51 -0
  38. package/dist/components/form-field/form-field.d.ts +9 -0
  39. package/dist/components/form-field/form-field.stories.d.ts +335 -0
  40. package/dist/components/form-section/base-form-section.d.ts +4 -0
  41. package/dist/components/form-section/form-section-props.d.ts +2 -0
  42. package/dist/components/form-section/form-section-type.d.ts +16 -0
  43. package/dist/components/form-section/form-section.d.ts +5 -0
  44. package/dist/components/form-section/form-section.stories.d.ts +308 -0
  45. package/dist/components/icon/icon.stories.d.ts +1 -1
  46. package/dist/components/list/list-footer.stories.d.ts +1 -1
  47. package/dist/components/list/list-row.stories.d.ts +1 -1
  48. package/dist/components/member-card/member-card-type.d.ts +2 -0
  49. package/dist/components/member-card/member-card.stories.d.ts +1 -1
  50. package/dist/components/message/message.stories.d.ts +3 -3
  51. package/dist/components/modal/modal-props.d.ts +10 -3
  52. package/dist/components/modal/modal-type.d.ts +22 -4
  53. package/dist/components/modal/modal-with-double-button.stories.d.ts +16 -1
  54. package/dist/components/modal/modal.stories.d.ts +5 -1
  55. package/dist/components/notice/notice-type.d.ts +3 -0
  56. package/dist/components/notice/notice.stories.d.ts +279 -0
  57. package/dist/components/overlay/overlay-type.d.ts +1 -1
  58. package/dist/components/pagination/pagination-type.d.ts +10 -0
  59. package/dist/components/pagination/pagination.stories.d.ts +7 -1
  60. package/dist/components/radio/base-radio.d.ts +2 -2
  61. package/dist/components/radio/radio-props.d.ts +8 -2
  62. package/dist/components/radio/radio-type.d.ts +14 -3
  63. package/dist/components/radio/radio.stories.d.ts +11 -1
  64. package/dist/components/search-field/search-field-type.d.ts +19 -3
  65. package/dist/components/search-field/search-field.d.ts +1 -1
  66. package/dist/components/search-field/search-field.stories.d.ts +2 -0
  67. package/dist/components/segmented-control/segmented-control-props.d.ts +8 -0
  68. package/dist/components/segmented-control/segmented-control-type.d.ts +3 -1
  69. package/dist/components/segmented-control/segmented-control.stories.d.ts +8 -0
  70. package/dist/components/skeleton/skeleton.stories.d.ts +3 -3
  71. package/dist/components/stat/base-stat.d.ts +13 -4
  72. package/dist/components/stat/stat-group.d.ts +8 -0
  73. package/dist/components/stat/stat-group.stories.d.ts +27 -0
  74. package/dist/components/stat/stat-props.d.ts +5 -3
  75. package/dist/components/stat/stat-type.d.ts +40 -2
  76. package/dist/components/stat/stat.d.ts +1 -1
  77. package/dist/components/stat/stat.stories.d.ts +3 -1
  78. package/dist/components/table/base-table.d.ts +5 -1
  79. package/dist/components/table/data-table.d.ts +6 -1
  80. package/dist/components/table/table-props.d.ts +10 -0
  81. package/dist/components/table/table-type.d.ts +42 -6
  82. package/dist/components/table/table.stories.d.ts +101 -2
  83. package/dist/components/text-area/base-text-area.d.ts +2 -2
  84. package/dist/components/text-area/text-area-props.d.ts +8 -0
  85. package/dist/components/text-area/text-area-type.d.ts +12 -1
  86. package/dist/components/text-area/text-area.stories.d.ts +11 -1
  87. package/dist/components/text-button/text-button-type.d.ts +5 -0
  88. package/dist/components/text-button/text-button.stories.d.ts +2 -0
  89. package/dist/components/text-field/base-text-field.d.ts +2 -2
  90. package/dist/components/text-field/text-field-props.d.ts +8 -0
  91. package/dist/components/text-field/text-field-type.d.ts +13 -1
  92. package/dist/components/text-field/text-field.stories.d.ts +10 -2
  93. package/dist/components/toast/toast-props.d.ts +10 -2
  94. package/dist/components/toast/toast-type.d.ts +3 -1
  95. package/dist/components/toast/toast.stories.d.ts +18 -3
  96. package/dist/components.css +1598 -142
  97. package/dist/data-table.js +301 -50
  98. package/dist/description-list.js +221 -6
  99. package/dist/docs/patterns/desktop/admin-apply.stories.d.ts +16 -0
  100. package/dist/docs/patterns/desktop/admin-bulk.stories.d.ts +7 -4
  101. package/dist/docs/patterns/desktop/admin-dashboard.stories.d.ts +4 -2
  102. package/dist/docs/patterns/desktop/admin-detail.stories.d.ts +5 -0
  103. package/dist/docs/patterns/desktop/admin-feature-intro.stories.d.ts +18 -0
  104. package/dist/docs/patterns/desktop/admin-form.stories.d.ts +4 -2
  105. package/dist/docs/patterns/desktop/admin-list.stories.d.ts +5 -0
  106. package/dist/docs/patterns/desktop/admin-picker.stories.d.ts +18 -0
  107. package/dist/docs/patterns/desktop/admin-queue.stories.d.ts +23 -0
  108. package/dist/docs/patterns/desktop/admin-report.stories.d.ts +3 -2
  109. package/dist/docs/patterns/desktop/admin-review.stories.d.ts +6 -2
  110. package/dist/docs/patterns/desktop/admin-settings.stories.d.ts +6 -2
  111. package/dist/docs/patterns/desktop/admin-split.stories.d.ts +18 -0
  112. package/dist/docs/patterns/desktop/admin-states.stories.d.ts +5 -3
  113. package/dist/docs/patterns/desktop/admin-upload.stories.d.ts +18 -0
  114. package/dist/docs/patterns/desktop/admin-wallet.stories.d.ts +18 -0
  115. package/dist/docs/patterns/desktop/admin-wizard.stories.d.ts +6 -3
  116. package/dist/docs/patterns/mobile/form.stories.d.ts +1 -0
  117. package/dist/drop-down.js +64 -155
  118. package/dist/empty-state.js +26 -14
  119. package/dist/form-field.js +511 -0
  120. package/dist/form-section.js +298 -0
  121. package/dist/full-secure-keypad.js +4 -4
  122. package/dist/helpers/motion/use-attention-handle.d.ts +1 -1
  123. package/dist/helpers/motion/use-effect-trigger.d.ts +1 -1
  124. package/dist/icon-button.js +2 -1
  125. package/dist/icon-text-badge.js +4 -4
  126. package/dist/index.d.ts +6 -1
  127. package/dist/index.js +2213 -636
  128. package/dist/loading.js +6 -6
  129. package/dist/member-card.js +18 -13
  130. package/dist/modal-with-double-button.js +95 -44
  131. package/dist/modal.js +24 -6
  132. package/dist/notice.js +5 -4
  133. package/dist/option-badge.js +4 -4
  134. package/dist/overlay.js +134 -61
  135. package/dist/pagination.js +291 -57
  136. package/dist/radio.js +165 -37
  137. package/dist/search-field.js +188 -77
  138. package/dist/section-header.js +14 -7
  139. package/dist/segmented-control.js +9 -1
  140. package/dist/split-text-field.js +16 -14
  141. package/dist/stat-group.js +441 -0
  142. package/dist/stat.js +90 -75
  143. package/dist/styles.css +1357 -164
  144. package/dist/text-area.js +90 -53
  145. package/dist/text-button.js +14 -7
  146. package/dist/text-field.js +94 -62
  147. package/dist/toast.js +27 -15
  148. package/dist/tokens/generated/semantic-admin.d.ts +1 -0
  149. package/dist/tokens/generated/semantic-app.d.ts +2 -4
  150. package/dist/tokens.css +24 -9
  151. package/dist/tokens.js +3 -4
  152. package/package.json +13 -1
@@ -185,6 +185,20 @@
185
185
  outline-offset: var(--focus-ring-offset);
186
186
  }
187
187
 
188
+ /* 필수 입력 표시. 라벨 글 바로 뒤에 붙는 작은 빨간 점이다(별표 대신).
189
+ 점은 aria-hidden 으로 두고, 필수라는 사실은 input 의 required 가 알린다 */
190
+
191
+ .nuri-required-dot {
192
+ display: inline-block;
193
+ flex: none;
194
+ width: var(--required-dot-size);
195
+ height: var(--required-dot-size);
196
+ margin-left: var(--spacing-2);
197
+ vertical-align: top;
198
+ border-radius: var(--radius-circle);
199
+ background-color: var(--text-error);
200
+ }
201
+
188
202
  /* 공용 키프레임. 컴포넌트 CSS 보다 앞에 둔다 */
189
203
 
190
204
  /*
@@ -3574,14 +3588,30 @@
3574
3588
  transform: translate(-50%, -50%);
3575
3589
  }
3576
3590
 
3591
+ .check-box:hover:not([data-disabled]) > .check-box-indicator.wrapper:not(.variant-outlined) {
3592
+ border-color: var(--border-accent);
3593
+ background-color: var(--surface-brand-subtle);
3594
+ }
3595
+
3596
+ .check-box:is([data-state='checked'],[data-state='indeterminate']) > .check-box-indicator.wrapper {
3597
+ border-color: var(--border-accent);
3598
+ }
3599
+
3600
+ /* 꺼짐은 회색 선에 아주 연한 회색 바탕, 마우스를 올리면 보라 선에 연보라 바탕, 켜짐은 보라 채움(ADR 0021).
3601
+ transform 은 .motion-press 의 눌림이라 함께 적는다 */
3602
+
3577
3603
  .check-box-indicator.wrapper {
3578
3604
  display: flex;
3579
3605
  align-items: center;
3580
3606
  justify-content: center;
3581
3607
  border-radius: var(--radius-mark);
3582
- border: var(--border-width-strong) solid var(--border-accent);
3583
- background-color: var(--surface-base);
3608
+ border: var(--border-width-strong) solid var(--border-hover);
3609
+ background-color: var(--surface-subtle);
3584
3610
  overflow: hidden;
3611
+ transition:
3612
+ transform var(--motion-press-duration) var(--motion-press-ease),
3613
+ border-color var(--motion-press-duration) var(--motion-press-ease),
3614
+ background-color var(--motion-press-duration) var(--motion-press-ease);
3585
3615
  }
3586
3616
 
3587
3617
  .check-box-indicator {
@@ -3607,7 +3637,7 @@
3607
3637
  color: var(--text-on-brand);
3608
3638
  }
3609
3639
 
3610
- .check-box-indicator[data-state='checked']:not(.wrapper) {
3640
+ .check-box-indicator[data-state='checked']:not(.wrapper),.check-box-indicator[data-state='indeterminate']:not(.wrapper) {
3611
3641
  opacity: 1;
3612
3642
  }
3613
3643
 
@@ -3756,19 +3786,73 @@
3756
3786
  color: var(--text-brand);
3757
3787
  }
3758
3788
 
3759
- /* ghost: 촘촘하거나 보조 필터. 선도 바탕도 없다가 고르면 회색 면 */
3789
+ /* ghost: 촘촘하거나 보조 필터. 선도 바탕도 없다가 고르면 회색 면.
3790
+ tab: 같은 목록의 상태 거르기 칩 탭. 고르는 모양은 ghost 와 같고 개수가 알약이다 */
3760
3791
 
3761
- .chip-group.variant-ghost .chip-group-chip {
3792
+ .chip-group:is(.variant-ghost,.variant-tab) .chip-group-chip {
3762
3793
  border-color: transparent;
3763
3794
  background: transparent;
3764
3795
  }
3765
3796
 
3766
- [data-state='on']:is(.chip-group.variant-ghost .chip-group-chip) {
3797
+ [data-state='on']:is(.chip-group:is(.variant-ghost,.variant-tab) .chip-group-chip) {
3767
3798
  border-color: transparent;
3768
3799
  background: var(--surface-muted);
3769
3800
  color: var(--text-primary);
3770
3801
  }
3771
3802
 
3803
+ /* 개수 알약은 쉴 때 회색 면, 고른 칩에서는 뒤집은 진한 면이라 회색 알약 위에서도 보인다 */
3804
+
3805
+ .chip-group.variant-tab .chip-group-count {
3806
+ min-width: var(--line-height-xsm);
3807
+ padding: 0 var(--spacing-6);
3808
+ border-radius: var(--radius-pill);
3809
+ background: var(--surface-muted);
3810
+ color: var(--text-tertiary);
3811
+ line-height: var(--line-height-xsm);
3812
+ font-weight: var(--font-weight-semibold);
3813
+ text-align: center;
3814
+ opacity: 1;
3815
+ }
3816
+
3817
+ .chip-group.variant-tab .chip-group-chip[data-state='on'] .chip-group-count {
3818
+ background: var(--surface-inverse);
3819
+ color: var(--text-inverse);
3820
+ }
3821
+
3822
+ /* toggle: 따로 켜고 끄는 보조 필터('…만 보기'). 쉴 때 점선과 회색 체크, 켜면 연한 주색 면에 실선·주색 체크 */
3823
+
3824
+ .chip-group.variant-toggle .chip-group-chip {
3825
+ gap: var(--spacing-4);
3826
+ border-style: dashed;
3827
+ background: transparent;
3828
+ color: var(--text-secondary);
3829
+ }
3830
+
3831
+ :is(.chip-group.variant-toggle .chip-group-chip) .chip-group-check {
3832
+ color: var(--icon-tertiary);
3833
+ }
3834
+
3835
+ [data-state='on']:is(.chip-group.variant-toggle .chip-group-chip) {
3836
+ border-style: solid;
3837
+ border-color: var(--border-accent);
3838
+ background: var(--surface-brand-subtle);
3839
+ color: var(--text-brand);
3840
+ font-weight: var(--font-weight-medium);
3841
+ }
3842
+
3843
+ [data-state='on']:is(.chip-group.variant-toggle .chip-group-chip) .chip-group-check {
3844
+ color: var(--icon-brand);
3845
+ }
3846
+
3847
+ [data-disabled]:is(.chip-group.variant-toggle .chip-group-chip) {
3848
+ border-color: var(--border-disabled);
3849
+ color: var(--text-disabled);
3850
+ }
3851
+
3852
+ [data-disabled]:is(.chip-group.variant-toggle .chip-group-chip) .chip-group-check {
3853
+ color: var(--text-disabled);
3854
+ }
3855
+
3772
3856
  /* filled(기본): 페이지 바탕 위. 연회색 바탕과 선, 고르면 보라 채움(무드 규칙 8) */
3773
3857
 
3774
3858
  .chip-group-chip {
@@ -4021,6 +4105,106 @@
4021
4105
  font-weight: var(--font-weight-bold);
4022
4106
  }
4023
4107
 
4108
+ /* 값 옆 복사 버튼. 버튼(36) 이 글 한 줄 높이보다 커도 줄 높이를 늘리지 않게 위아래를 겹친다 */
4109
+
4110
+ .description-list-item > dd.has-copy {
4111
+ /* 숨긴 알림 칸을 제 칸에 묶는다. 묶지 않으면 잘라 주는 조상 밖으로 나가 문서를 가로로 넓힌다 */
4112
+ position: relative;
4113
+ display: flex;
4114
+ align-items: center;
4115
+ justify-content: flex-end;
4116
+ gap: var(--spacing-4);
4117
+ }
4118
+
4119
+ .description-list-value {
4120
+ min-width: 0;
4121
+ word-break: break-all;
4122
+ }
4123
+
4124
+ .description-list-copy {
4125
+ flex: none;
4126
+ margin-block: calc((var(--line-height-sm) - var(--icon-button-size-s)) / 2);
4127
+ }
4128
+
4129
+ /* 화면에 보이지 않고 화면 낭독기만 읽는 알림 자리 */
4130
+
4131
+ .description-list-copy-status {
4132
+ position: absolute;
4133
+ width: var(--hairline);
4134
+ height: var(--hairline);
4135
+ overflow: hidden;
4136
+ clip-path: inset(50%);
4137
+ white-space: nowrap;
4138
+ }
4139
+
4140
+ /* side: 고정 폭 이름 칸 옆에 값이 왼쪽부터 선다(정보 카드). 이름 칸 폭은 FormField 의 side 라벨 칸과 같다 */
4141
+
4142
+ .description-list.layout-side {
4143
+ gap: var(--spacing-12);
4144
+ }
4145
+
4146
+ .description-list.layout-side .description-list-item {
4147
+ display: grid;
4148
+ grid-template-columns: min(var(--form-label-width), 40%) minmax(0, 1fr);
4149
+ align-items: center;
4150
+ }
4151
+
4152
+ .description-list.layout-side .description-list-item > dd {
4153
+ display: flex;
4154
+ flex-wrap: wrap;
4155
+ align-items: center;
4156
+ justify-content: flex-start;
4157
+ gap: var(--spacing-6);
4158
+ font-weight: var(--font-weight-regular);
4159
+ text-align: start;
4160
+ }
4161
+
4162
+ /* grid: 회색 이름 칸과 값 칸이 번갈아 서는 4열 표. 줄(div)은 칸을 만들지 않고 dt·dd 가 바로 격자 칸이 된다 */
4163
+
4164
+ .description-list.layout-grid {
4165
+ display: grid;
4166
+ grid-template-columns:
4167
+ var(--form-label-width) minmax(0, 1fr)
4168
+ var(--form-label-width) minmax(0, 1fr);
4169
+ gap: 0;
4170
+ border-top: var(--hairline) solid var(--border-default);
4171
+
4172
+ /* 좁은 화면은 이름 | 값 두 열로 접는다 */
4173
+ }
4174
+
4175
+ @media (width < 768px) {
4176
+
4177
+ .description-list.layout-grid {
4178
+ grid-template-columns: min(var(--form-label-width), 40%) minmax(0, 1fr);
4179
+ }
4180
+ }
4181
+
4182
+ .description-list.layout-grid .description-list-item {
4183
+ display: contents;
4184
+ }
4185
+
4186
+ .description-list.layout-grid .description-list-item > dt,.description-list.layout-grid .description-list-item > dd {
4187
+ display: flex;
4188
+ flex-wrap: wrap;
4189
+ align-items: center;
4190
+ gap: var(--spacing-6);
4191
+ min-width: 0;
4192
+ padding: var(--spacing-12) var(--spacing-16);
4193
+ border-bottom: var(--hairline) solid var(--border-subtle);
4194
+ }
4195
+
4196
+ .description-list.layout-grid .description-list-item > dt {
4197
+ background-color: var(--surface-subtle);
4198
+ color: var(--text-secondary);
4199
+ font-weight: var(--font-weight-medium);
4200
+ }
4201
+
4202
+ .description-list.layout-grid .description-list-item > dd {
4203
+ justify-content: flex-start;
4204
+ font-weight: var(--font-weight-regular);
4205
+ text-align: start;
4206
+ }
4207
+
4024
4208
  /* Title·Close 같은 조각도 base-drawer 를 달므로 상자 스타일은 overlay·content 에만 건다. */
4025
4209
 
4026
4210
  .base-drawer:where(.overlay) {
@@ -4229,6 +4413,11 @@
4229
4413
  max-height: var(--radix-select-content-available-height);
4230
4414
  }
4231
4415
 
4416
+ .base-drop-down:where(.item-indicator) {
4417
+ display: inline-flex;
4418
+ flex: none;
4419
+ }
4420
+
4232
4421
  /***************************************************************************************************
4233
4422
  * *
4234
4423
  * drop-down-single *
@@ -4274,15 +4463,49 @@
4274
4463
 
4275
4464
  .drop-down-single-trigger {
4276
4465
 
4466
+ /* 입력 상자와 같은 선(ADR 0021). 흰 바탕에 회색 1px, 마우스를 올리면 연보라, 포커스·열림이면 보라 2px.
4467
+ 2px 는 1px border 에 안쪽 1px 그림자를 겹쳐 상자 크기가 흔들리지 않는다 */
4468
+ box-sizing: border-box;
4277
4469
  border: var(--hairline) solid var(--border-default);
4278
4470
  border-radius: var(--radius-control);
4279
4471
  width: -moz-fit-content;
4280
4472
  width: fit-content;
4281
4473
  background-color: var(--surface-base);
4474
+ color: var(--text-primary);
4475
+ transition:
4476
+ border-color var(--motion-press-duration) var(--motion-press-ease),
4477
+ box-shadow var(--motion-press-duration) var(--motion-press-ease);
4282
4478
  }
4283
4479
 
4284
- .drop-down-single-trigger:focus {
4480
+ .drop-down-single-trigger:hover:not(:focus,[data-state='open'],[data-disabled],.error) {
4481
+ border-color: var(--border-accent-subtle);
4482
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent-subtle);
4483
+ }
4484
+
4485
+ .drop-down-single-trigger:focus,.drop-down-single-trigger[data-state='open'] {
4285
4486
  border-color: var(--border-accent);
4487
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent);
4488
+ }
4489
+
4490
+ /* 포커스는 선이 보여 준다. 전역 포커스 링은 끈다 */
4491
+
4492
+ .drop-down-single-trigger:focus-visible {
4493
+ outline: none;
4494
+ }
4495
+
4496
+ .drop-down-single-trigger.error {
4497
+ border-color: var(--border-error);
4498
+ }
4499
+
4500
+ .drop-down-single-trigger.error:focus,.drop-down-single-trigger.error[data-state='open'] {
4501
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-error);
4502
+ }
4503
+
4504
+ .drop-down-single-trigger[data-disabled] {
4505
+ border-color: var(--border-disabled);
4506
+ background-color: var(--surface-muted);
4507
+ color: var(--text-disabled);
4508
+ cursor: var(--cursor-disabled);
4286
4509
  }
4287
4510
 
4288
4511
  .drop-down-single-trigger[data-placeholder] .drop-down-single-icon {
@@ -4316,7 +4539,7 @@
4316
4539
  .drop-down-single-value {
4317
4540
  font-size: inherit;
4318
4541
  line-height: inherit;
4319
- font-weight: var(--font-weight-medium);
4542
+ font-weight: var(--font-weight-regular);
4320
4543
 
4321
4544
  text-align: left;
4322
4545
  }
@@ -4329,10 +4552,16 @@
4329
4552
  color: var(--text-placeholder);
4330
4553
  }
4331
4554
 
4555
+ /* 목록 판: 흰 바탕·그림자, 위아래 안쪽 여백. 항목은 좌우로 들어간 둥근 행이다 */
4556
+
4332
4557
  .drop-down-single-content {
4333
4558
  z-index: var(--z-popover);
4559
+ box-sizing: border-box;
4334
4560
  min-width: var(--radix-select-trigger-width);
4335
4561
  overflow: hidden;
4562
+ padding: var(--spacing-6) 0;
4563
+ border: var(--hairline) solid var(--border-default);
4564
+ background-color: var(--surface-base);
4336
4565
  box-shadow: var(--shadow-popover);
4337
4566
  border-radius: var(--radius-control);
4338
4567
 
@@ -4340,26 +4569,46 @@
4340
4569
  }
4341
4570
 
4342
4571
  .drop-down-single-item {
4343
- padding: var(--spacing-14);
4344
- background-color: var(--surface-base);
4345
- height: var(--drop-down-item-height);
4572
+ display: flex;
4573
+ align-items: center;
4574
+ justify-content: space-between;
4575
+ gap: var(--spacing-8);
4576
+ box-sizing: border-box;
4577
+ height: var(--menu-row-height-s);
4578
+ margin: 0 var(--spacing-6);
4579
+ padding: 0 var(--spacing-12);
4580
+ border-radius: var(--radius-mark);
4581
+ background-color: transparent;
4346
4582
 
4347
4583
  font-size: var(--font-size-sm);
4348
4584
  line-height: var(--line-height-sm);
4349
- font-weight: var(--font-weight-medium);
4585
+ font-weight: var(--font-weight-regular);
4586
+ color: var(--text-primary);
4350
4587
 
4351
4588
  cursor: pointer;
4589
+
4590
+ /* 키보드 이동·호버는 Radix 가 단 data-highlighted 배경이 보여 준다. 주색이 아니라 중립 회색이다 */
4352
4591
  }
4353
4592
 
4354
4593
  .drop-down-single-item[data-highlighted] {
4355
- background-color: var(--surface-brand-subtle);
4594
+ background-color: var(--surface-muted);
4356
4595
  }
4357
4596
 
4597
+ /* 고른 항목은 굵게, 오른쪽에 체크가 붙는다 */
4598
+
4599
+ .drop-down-single-item[data-state='checked'] {
4600
+ font-weight: var(--font-weight-semibold);
4601
+ }
4602
+
4603
+ .drop-down-single-item[data-state='checked'] .base-drop-down:where(.item-indicator) {
4604
+ color: var(--text-brand);
4605
+ }
4606
+
4358
4607
  /* 눌림은 딤만(press form dim). 행이 줄면 목록 가장자리에 틈이 보인다.
4359
- 딤 색은 브랜드 보라라서 강조 배경(purple-50)이 같은 색조로 한 단계 진해진다 */
4608
+ 딤 색은 강조 배경과 같은 중립 회색 색조다 */
4360
4609
 
4361
4610
  .drop-down-single-item.motion-press-dim::after {
4362
- background: var(--surface-brand);
4611
+ background: var(--surface-strong);
4363
4612
  }
4364
4613
 
4365
4614
  /* 키보드 이동은 data-highlighted 배경이 보여 준다. 전역 포커스 링은 끈다 */
@@ -4368,10 +4617,18 @@
4368
4617
  outline: none;
4369
4618
  }
4370
4619
 
4371
- .drop-down-single-item:disabled {
4372
- background-color: var(--surface-muted);
4373
- color: var(--text-placeholder);
4374
- cursor: not-allowed;
4620
+ .drop-down-single-item[data-disabled] {
4621
+ color: var(--text-disabled);
4622
+ cursor: var(--cursor-disabled);
4623
+ }
4624
+
4625
+ /* 좁은 화면은 손가락으로 누른다. 행을 터치 높이까지 키운다 */
4626
+
4627
+ @media (width < 768px) {
4628
+
4629
+ .drop-down-single-item {
4630
+ height: var(--touch-target);
4631
+ }
4375
4632
  }
4376
4633
 
4377
4634
  .base-text:where(.xsm) {
@@ -5074,6 +5331,30 @@
5074
5331
  color: var(--text-success);
5075
5332
  }
5076
5333
 
5334
+ /* 표·블록 안의 작은 빈 자리. 제목도 회색이라 둘레 내용보다 앞에 나서지 않는다 */
5335
+
5336
+ .empty-state.size-s {
5337
+ gap: var(--spacing-4);
5338
+ padding: var(--spacing-16) var(--spacing-12);
5339
+ }
5340
+
5341
+ .empty-state.size-s .empty-state-icon {
5342
+ width: var(--empty-state-icon-box-s);
5343
+ height: var(--empty-state-icon-box-s);
5344
+ margin-bottom: var(--spacing-4);
5345
+ }
5346
+
5347
+ .empty-state.size-s .empty-state-title {
5348
+ font-size: var(--font-size-sm);
5349
+ line-height: var(--line-height-sm);
5350
+ font-weight: var(--font-weight-medium);
5351
+ color: var(--text-secondary);
5352
+ }
5353
+
5354
+ .empty-state.size-s .empty-state-action {
5355
+ margin-top: var(--spacing-4);
5356
+ }
5357
+
5077
5358
  /* figure 는 쓰는 쪽 그림을 크기 그대로 아이콘 원 자리에 둔다 */
5078
5359
 
5079
5360
  .empty-state-figure {
@@ -5116,65 +5397,317 @@
5116
5397
  margin-top: var(--spacing-8);
5117
5398
  }
5118
5399
 
5119
- /* 결과 화면 전체 — 그림·글을 세로 가운데에, 주 버튼은 BottomCTA 로 아래에 고정한다 */
5400
+ /* 컨트롤에 라벨·도움말을 붙이는 행. 조각: label · panel · columns */
5120
5401
 
5121
- .base-result-screen {
5122
- display: flex;
5123
- flex-direction: column;
5124
- min-height: 100dvh;
5125
- }
5402
+ .base-form-field:where(.root) {
5403
+ min-width: 0;
5404
+ }
5405
+
5406
+ .base-form-field:where(.columns) {
5407
+ display: grid;
5408
+ }
5126
5409
 
5127
5410
  /***************************************************************************************************
5128
5411
  * *
5129
- * result-screen *
5412
+ * form-field *
5130
5413
  * *
5131
5414
  ***************************************************************************************************/
5132
5415
 
5133
- .result-screen {
5134
- /* 그림 안 선이 그려질 길이 — motion-result-draw 가 이 값에서 0 으로 간다 */
5135
- --result-stroke-length: 60;
5416
+ /* 라벨 칸 폭은 이 필드에만 둔다. 안에 겹친 FormField 는 제 기본값으로 돌아간다 */
5136
5417
 
5137
- background-color: var(--surface-base);
5418
+ .form-field {
5419
+ --form-field-label-width: var(--form-label-width);
5138
5420
 
5139
- /* variant 는 타일 바탕과 그림 색을 정한다 */
5421
+ display: flex;
5422
+ flex-direction: column;
5423
+ /* 라벨과 컨트롤 사이는 TextField·TextArea 의 title 간격과 같다 */
5424
+ gap: var(--spacing-6);
5425
+
5426
+ /* 왼쪽 고정 폭 라벨 칸. 라벨은 위에 붙어 있고 첫 줄 컨트롤(44px) 가운데에 맞는다.
5427
+ 아래로 하위 패널이 길어져도 라벨은 위에 남는다 */
5140
5428
  }
5141
5429
 
5142
- .result-screen.variant-success .result-screen-tile,.result-screen.variant-security .result-screen-tile {
5143
- background-color: var(--surface-brand-subtle);
5144
- color: var(--icon-brand);
5145
- }
5430
+ .form-field.layout-side {
5431
+ display: grid;
5432
+ grid-template-columns: var(--form-field-label-width) minmax(0, 1fr);
5433
+ align-items: start;
5434
+ gap: 0;
5146
5435
 
5147
- .result-screen.variant-neutral .result-screen-tile,.result-screen.variant-farewell .result-screen-tile {
5148
- background-color: var(--surface-muted);
5149
- color: var(--icon-secondary);
5436
+ /* 자식 결합자로 좁힌다. Panel 안에 겹친 top 필드에 번지지 않게 한다 */
5150
5437
  }
5151
5438
 
5152
- .result-screen.variant-failure .result-screen-tile {
5153
- background-color: var(--surface-danger-subtle);
5154
- color: var(--text-danger);
5155
- animation:
5156
- motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
5157
- var(--motion-result-figure-delay) both,
5158
- motion-result-shake var(--motion-reject-duration) var(--motion-reject-ease) var(--motion-result-title-delay);
5159
- }
5439
+ .form-field.layout-side > .form-field-head {
5440
+ align-content: center;
5441
+ min-height: var(--control-height-m);
5442
+ padding-inline-end: var(--spacing-16);
5443
+ }
5160
5444
 
5161
- .result-screen-content {
5162
- display: flex;
5163
- flex: 1;
5164
- flex-direction: column;
5165
- justify-content: center;
5166
- gap: var(--spacing-28);
5167
- padding: var(--spacing-30) var(--spacing-20) 0;
5168
- }
5445
+ :is(.form-field.layout-side > .form-field-head) > .form-field-label {
5446
+ color: var(--text-body);
5447
+ }
5169
5448
 
5170
- /* 그림 타일 — 모든 variant 가 같은 크기·모서리. 튀어 오르며 나타난다 */
5449
+ /* 좁은 화면에서는 라벨을 위로 쌓는다. grid 의 start 를 되돌려야 컨트롤이 폭을 채운다 */
5171
5450
 
5172
- .result-screen-tile {
5173
- position: relative;
5174
- display: grid;
5175
- place-items: center;
5176
- width: var(--result-screen-tile);
5177
- height: var(--result-screen-tile);
5451
+ @media (width < 768px) {
5452
+
5453
+ .form-field.layout-side {
5454
+ display: flex;
5455
+ align-items: stretch;
5456
+ gap: var(--spacing-6);
5457
+ }
5458
+
5459
+ .form-field.layout-side > .form-field-head {
5460
+ min-height: 0;
5461
+ padding-inline-end: 0;
5462
+ }
5463
+ }
5464
+
5465
+ .form-field-head {
5466
+ display: flex;
5467
+ flex-wrap: wrap;
5468
+ align-items: center;
5469
+ gap: var(--spacing-4) var(--spacing-8);
5470
+ min-width: 0;
5471
+ }
5472
+
5473
+ .form-field-label {
5474
+ color: var(--text-secondary);
5475
+ font-size: var(--font-size-sm);
5476
+ line-height: var(--line-height-sm);
5477
+ font-weight: var(--font-weight-medium);
5478
+ overflow-wrap: anywhere;
5479
+ }
5480
+
5481
+ .form-field-hint {
5482
+ color: var(--text-muted);
5483
+ font-size: var(--font-size-sm);
5484
+ line-height: var(--line-height-sm);
5485
+ }
5486
+
5487
+ .form-field-label-action {
5488
+ display: inline-flex;
5489
+ }
5490
+
5491
+ .form-field-body {
5492
+ min-width: 0;
5493
+ }
5494
+
5495
+ /* note 가 있을 때만 컨트롤과 한 줄이다. 컨트롤은 제 폭이고 note 가 넘치면 아래 줄로 내려간다 */
5496
+
5497
+ .form-field-control-row {
5498
+ display: flex;
5499
+ flex-wrap: wrap;
5500
+ align-items: center;
5501
+ gap: var(--spacing-8) var(--spacing-12);
5502
+ }
5503
+
5504
+ .form-field-control-row .form-field-control {
5505
+ flex: 0 1 auto;
5506
+ }
5507
+
5508
+ .form-field-control {
5509
+ min-width: 0;
5510
+ }
5511
+
5512
+ .form-field-note {
5513
+ display: flex;
5514
+ flex: 1 1 auto;
5515
+ align-items: center;
5516
+ gap: var(--spacing-4);
5517
+ min-width: 0;
5518
+ margin: 0;
5519
+ color: var(--text-muted);
5520
+ font-size: var(--font-size-sm);
5521
+ line-height: var(--line-height-sm);
5522
+ }
5523
+
5524
+ .form-field-note-icon {
5525
+ flex: none;
5526
+ }
5527
+
5528
+ /* live 영역은 늘 있다. 글이 있을 때만 컨트롤과 간격을 둔다 */
5529
+
5530
+ .form-field-message:not(:empty) {
5531
+ margin-top: var(--spacing-6);
5532
+ }
5533
+
5534
+ .form-field-message-text {
5535
+ margin: 0;
5536
+ color: var(--text-muted);
5537
+ font-size: var(--font-size-sm);
5538
+ line-height: var(--line-height-sm);
5539
+ }
5540
+
5541
+ .form-field-message-text.error {
5542
+ color: var(--text-error);
5543
+ }
5544
+
5545
+ /* 조건부 하위 필드 면. 흰 카드 위에서 한 단계 짙다. 앞 컨트롤과는 12 떨어진다 */
5546
+
5547
+ .form-field-panel {
5548
+ display: flex;
5549
+ flex-direction: column;
5550
+ gap: var(--spacing-16);
5551
+ padding: var(--spacing-20);
5552
+ border-radius: var(--radius-control);
5553
+ background-color: var(--surface-subtle);
5554
+ }
5555
+
5556
+ .form-field-panel:not(:first-child) {
5557
+ margin-top: var(--spacing-12);
5558
+ }
5559
+
5560
+ /* 좁은 화면에서는 한 열이고 줄 간격은 둘레(FormSection·Panel)의 필드 간격을 이어받는다 */
5561
+
5562
+ .form-field-columns {
5563
+ grid-template-columns: repeat(var(--form-field-columns), minmax(0, 1fr));
5564
+ gap: var(--spacing-12);
5565
+ }
5566
+
5567
+ @media (width < 768px) {
5568
+
5569
+ .form-field-columns {
5570
+ grid-template-columns: minmax(0, 1fr);
5571
+ row-gap: inherit;
5572
+ }
5573
+ }
5574
+
5575
+ .base-form-section {
5576
+ display: flex;
5577
+ flex-direction: column;
5578
+ min-width: 0;
5579
+ }
5580
+
5581
+ /***************************************************************************************************
5582
+ * *
5583
+ * form-section *
5584
+ * *
5585
+ ***************************************************************************************************/
5586
+
5587
+ /* 연회색 페이지 바탕 위 흰 면. 그림자·테두리가 없다(무드 규칙 2) */
5588
+
5589
+ .form-section {
5590
+ gap: var(--spacing-20);
5591
+ padding: var(--spacing-24);
5592
+ border-radius: var(--radius-surface);
5593
+ background-color: var(--surface-base);
5594
+ }
5595
+
5596
+ @media (width < 768px) {
5597
+
5598
+ .form-section {
5599
+ padding: var(--spacing-20);
5600
+ }
5601
+ }
5602
+
5603
+ .form-section-head {
5604
+ display: flex;
5605
+ align-items: flex-start;
5606
+ gap: var(--spacing-12);
5607
+ min-width: 0;
5608
+ }
5609
+
5610
+ .form-section-heading {
5611
+ display: flex;
5612
+ flex: 1;
5613
+ flex-direction: column;
5614
+ gap: var(--spacing-4);
5615
+ min-width: 0;
5616
+ }
5617
+
5618
+ /* 리셋 없이 쓰는 앱의 h2~h4 여백을 받지 않는다. lg 라 자간이 없다(ADR 0015) */
5619
+
5620
+ .form-section-title {
5621
+ margin: 0;
5622
+ color: var(--text-primary);
5623
+ font-size: var(--font-size-lg);
5624
+ line-height: var(--line-height-lg);
5625
+ font-weight: var(--font-weight-bold);
5626
+ overflow-wrap: anywhere;
5627
+ }
5628
+
5629
+ .form-section-description {
5630
+ margin: 0;
5631
+ color: var(--text-secondary);
5632
+ font-size: var(--font-size-sm);
5633
+ line-height: var(--line-height-sm);
5634
+ }
5635
+
5636
+ .form-section-action {
5637
+ display: flex;
5638
+ flex: none;
5639
+ align-items: center;
5640
+ gap: var(--spacing-8);
5641
+ }
5642
+
5643
+ /* 필드 사이를 넉넉히 띄운다. 안의 FormField.Columns 는 좁은 화면에서 이 간격을 이어받는다 */
5644
+
5645
+ .form-section-body {
5646
+ display: flex;
5647
+ flex-direction: column;
5648
+ gap: var(--spacing-20);
5649
+ min-width: 0;
5650
+ }
5651
+
5652
+ /* 결과 화면 전체 — 그림·글을 세로 가운데에, 주 버튼은 BottomCTA 로 아래에 고정한다 */
5653
+
5654
+ .base-result-screen {
5655
+ display: flex;
5656
+ flex-direction: column;
5657
+ min-height: 100dvh;
5658
+ }
5659
+
5660
+ /***************************************************************************************************
5661
+ * *
5662
+ * result-screen *
5663
+ * *
5664
+ ***************************************************************************************************/
5665
+
5666
+ .result-screen {
5667
+ /* 그림 안 선이 그려질 길이 — motion-result-draw 가 이 값에서 0 으로 간다 */
5668
+ --result-stroke-length: 60;
5669
+
5670
+ background-color: var(--surface-base);
5671
+
5672
+ /* variant 는 타일 바탕과 그림 색을 정한다 */
5673
+ }
5674
+
5675
+ .result-screen.variant-success .result-screen-tile,.result-screen.variant-security .result-screen-tile {
5676
+ background-color: var(--surface-brand-subtle);
5677
+ color: var(--icon-brand);
5678
+ }
5679
+
5680
+ .result-screen.variant-neutral .result-screen-tile,.result-screen.variant-farewell .result-screen-tile {
5681
+ background-color: var(--surface-muted);
5682
+ color: var(--icon-secondary);
5683
+ }
5684
+
5685
+ .result-screen.variant-failure .result-screen-tile {
5686
+ background-color: var(--surface-danger-subtle);
5687
+ color: var(--text-danger);
5688
+ animation:
5689
+ motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
5690
+ var(--motion-result-figure-delay) both,
5691
+ motion-result-shake var(--motion-reject-duration) var(--motion-reject-ease) var(--motion-result-title-delay);
5692
+ }
5693
+
5694
+ .result-screen-content {
5695
+ display: flex;
5696
+ flex: 1;
5697
+ flex-direction: column;
5698
+ justify-content: center;
5699
+ gap: var(--spacing-28);
5700
+ padding: var(--spacing-30) var(--spacing-20) 0;
5701
+ }
5702
+
5703
+ /* 그림 타일 — 모든 variant 가 같은 크기·모서리. 튀어 오르며 나타난다 */
5704
+
5705
+ .result-screen-tile {
5706
+ position: relative;
5707
+ display: grid;
5708
+ place-items: center;
5709
+ width: var(--result-screen-tile);
5710
+ height: var(--result-screen-tile);
5178
5711
  border-radius: var(--radius-surface);
5179
5712
  animation: motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
5180
5713
  var(--motion-result-figure-delay) both;
@@ -6976,6 +7509,67 @@ button.modal-with-double-button-close-button {
6976
7509
  width: var(--modal-width-l);
6977
7510
  }
6978
7511
 
7512
+ .modal-with-double-button-container.size-xl {
7513
+ width: var(--modal-width-xl);
7514
+ }
7515
+
7516
+ /* 제목·설명은 왼쪽, 두 버튼은 오른쪽 아래(토스 모달). 버튼 줄 왼쪽에 footerStart 자리가 있다 */
7517
+
7518
+ .modal-with-double-button-container.align-start {
7519
+ align-items: stretch;
7520
+ }
7521
+
7522
+ .modal-with-double-button-container.align-start .modal-with-double-button-title-icon {
7523
+ align-self: flex-start;
7524
+ }
7525
+
7526
+ .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 {
7527
+ text-align: start;
7528
+ }
7529
+
7530
+ .modal-with-double-button-container.align-start .modal-with-double-button-close.row {
7531
+ flex-wrap: wrap;
7532
+ justify-content: flex-end;
7533
+ gap: var(--spacing-10);
7534
+ }
7535
+
7536
+ :is(.modal-with-double-button-container.align-start .modal-with-double-button-close.row) > * {
7537
+ flex: none;
7538
+ }
7539
+
7540
+ /* 좁은 화면에서는 두 버튼이 줄 폭을 반씩 나눈다 */
7541
+
7542
+ @media (width < 768px) {
7543
+ :is(.modal-with-double-button-container.align-start .modal-with-double-button-close.row) > .modal-with-double-button-buttons {
7544
+ flex: 1 1 100%;
7545
+ }
7546
+ }
7547
+
7548
+ .modal-with-double-button-container.align-start .modal-with-double-button-close.column > .modal-with-double-button-buttons {
7549
+ display: flex;
7550
+ flex-direction: column;
7551
+ gap: var(--spacing-10);
7552
+ width: 100%;
7553
+ }
7554
+
7555
+ /* 버튼 줄 왼쪽 자리는 남는 폭을 차지해 버튼을 오른쪽으로 민다 */
7556
+
7557
+ .modal-with-double-button-footer-start {
7558
+ display: flex;
7559
+ align-items: center;
7560
+ margin-inline-end: auto;
7561
+ min-width: 0;
7562
+ }
7563
+
7564
+ /* 두 칸을 같은 폭(긴 쪽 글자 폭)으로 둔다 */
7565
+
7566
+ .modal-with-double-button-buttons {
7567
+ display: grid;
7568
+ grid-auto-columns: minmax(0, 1fr);
7569
+ grid-auto-flow: column;
7570
+ gap: var(--spacing-10);
7571
+ }
7572
+
6979
7573
  .modal-with-double-button-title-icon {
6980
7574
  margin-bottom: var(--spacing-20);
6981
7575
  }
@@ -7056,6 +7650,10 @@ button.modal-with-double-button-close-button {
7056
7650
  width: var(--modal-width-l);
7057
7651
  }
7058
7652
 
7653
+ .modal.size-xl {
7654
+ width: var(--modal-width-xl);
7655
+ }
7656
+
7059
7657
  .modal-header {
7060
7658
  display: flex;
7061
7659
  justify-content: space-between;
@@ -7094,11 +7692,21 @@ button.modal-with-double-button-close-button {
7094
7692
 
7095
7693
  .modal-footer {
7096
7694
  display: flex;
7695
+ flex-wrap: wrap;
7097
7696
  justify-content: flex-end;
7098
7697
  align-items: center;
7099
7698
  gap: var(--spacing-10);
7100
7699
  }
7101
7700
 
7701
+ /* 버튼 줄 왼쪽 자리는 남는 폭을 차지해 footer 버튼을 오른쪽으로 민다 */
7702
+
7703
+ .modal-footer-start {
7704
+ display: flex;
7705
+ align-items: center;
7706
+ margin-inline-end: auto;
7707
+ min-width: 0;
7708
+ }
7709
+
7102
7710
  /* 한 줄 높이 자리에서 항목을 차례로 돌려 보여 주는 알림 줄. 비면 높이가 0 으로 접힌다 */
7103
7711
 
7104
7712
  .base-nudge {
@@ -7559,7 +8167,6 @@ button.modal-with-double-button-close-button {
7559
8167
  .pagination {
7560
8168
  display: inline-flex;
7561
8169
  align-items: center;
7562
- gap: var(--spacing-4);
7563
8170
 
7564
8171
  /* 넓은 화면은 siblingCount 목록, 좁은 화면은 이웃을 숨긴 7칸 목록을 보인다(pagination.tsx mergePageSlots) */
7565
8172
  }
@@ -7569,21 +8176,35 @@ button.modal-with-double-button-close-button {
7569
8176
  }
7570
8177
 
7571
8178
  @media (width < 768px) {
7572
-
7573
- .pagination {
7574
- /* 7칸 × 44 = 308 이 양옆 여백 16 을 뺀 360 화면(328) 안에 들게 칸 사이를 없앤다 */
7575
- gap: 0;
7576
- }
7577
-
7578
- .pagination [data-shown-on='wide'] {
7579
- display: none;
7580
- }
8179
+ .pagination [data-shown-on='wide'] {
8180
+ display: none;
8181
+ }
7581
8182
 
7582
8183
  .pagination [data-shown-on='narrow'] {
7583
8184
  display: inline-flex;
7584
8185
  }
7585
8186
  }
7586
8187
 
8188
+ /* 결과 수·페이지 크기가 붙은 표 아래 줄. 왼쪽 결과, 가운데 쪽 번호(토스 목록 T14) */
8189
+
8190
+ .pagination.with-summary {
8191
+ display: grid;
8192
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
8193
+ gap: var(--spacing-16);
8194
+ width: 100%;
8195
+
8196
+ /* 좁은 화면은 결과 줄(결과 수 왼쪽, 페이지 크기 오른쪽) 아래에 쪽 번호를 가운데로 쌓는다 */
8197
+ }
8198
+
8199
+ @media (width < 768px) {
8200
+
8201
+ .pagination.with-summary {
8202
+ grid-template-columns: minmax(0, 1fr);
8203
+ gap: var(--spacing-12);
8204
+ justify-items: center;
8205
+ }
8206
+ }
8207
+
7587
8208
  .pagination.size-s {
7588
8209
  --pagination-item-size: var(--control-height-s);
7589
8210
  --pagination-icon-size: var(--icon-size-s);
@@ -7598,12 +8219,62 @@ button.modal-with-double-button-close-button {
7598
8219
  line-height: var(--line-height-sm);
7599
8220
  }
7600
8221
 
8222
+ .pagination-pages {
8223
+ display: inline-flex;
8224
+ align-items: center;
8225
+ gap: var(--spacing-4);
8226
+
8227
+ /* 7칸 × 44 = 308 이 양옆 여백 16 을 뺀 360 화면(328) 안에 들게 칸 사이를 없앤다 */
8228
+ }
8229
+
8230
+ @media (width < 768px) {
8231
+
8232
+ .pagination-pages {
8233
+ gap: 0;
8234
+ }
8235
+ }
8236
+
8237
+ .pagination.with-summary > .pagination-pages {
8238
+ grid-column: 2;
8239
+ grid-row: 1;
8240
+ }
8241
+
8242
+ @media (width < 768px) {
8243
+
8244
+ .pagination.with-summary > .pagination-pages {
8245
+ grid-column: 1;
8246
+ grid-row: 2;
8247
+ }
8248
+ }
8249
+
8250
+ .pagination-summary {
8251
+ grid-column: 1;
8252
+ grid-row: 1;
8253
+ display: flex;
8254
+ align-items: center;
8255
+ gap: var(--spacing-8);
8256
+ min-width: 0;
8257
+ }
8258
+
8259
+ @media (width < 768px) {
8260
+
8261
+ .pagination-summary {
8262
+ justify-content: space-between;
8263
+ width: 100%;
8264
+ }
8265
+ }
8266
+
8267
+ .pagination-result {
8268
+ color: var(--text-secondary);
8269
+ white-space: nowrap;
8270
+ }
8271
+
7601
8272
  .pagination-item {
7602
8273
  min-width: var(--pagination-item-size);
7603
8274
  height: var(--pagination-item-size);
7604
8275
  padding: 0 var(--spacing-4);
7605
- border-radius: var(--radius-control);
7606
- color: var(--text-tertiary);
8276
+ border-radius: var(--radius-pill);
8277
+ color: var(--text-secondary);
7607
8278
  font-size: inherit;
7608
8279
  line-height: inherit;
7609
8280
  font-weight: var(--font-weight-medium);
@@ -7612,17 +8283,19 @@ button.modal-with-double-button-close-button {
7612
8283
  background-color var(--motion-press-duration) var(--motion-press-ease),
7613
8284
  color var(--motion-press-duration) var(--motion-press-ease),
7614
8285
  transform var(--motion-press-duration) var(--motion-press-ease);
8286
+
8287
+ /* 현재 쪽은 회색 원에 검정 글자다(토스 목록). 보라는 주 행동에만 쓴다 */
7615
8288
  }
7616
8289
 
7617
8290
  .pagination-item:not(:disabled):hover {
7618
- background-color: var(--surface-muted);
7619
- color: var(--text-brand);
8291
+ background-color: var(--surface-subtle);
8292
+ color: var(--text-primary);
7620
8293
  }
7621
8294
 
7622
8295
  .pagination-item[data-state='active'] {
7623
- background-color: var(--surface-brand-subtle);
7624
- color: var(--text-brand);
7625
- font-weight: var(--font-weight-bold);
8296
+ background-color: var(--surface-muted);
8297
+ color: var(--text-primary);
8298
+ font-weight: var(--font-weight-semibold);
7626
8299
  }
7627
8300
 
7628
8301
  .pagination-item:disabled {
@@ -7633,7 +8306,9 @@ button.modal-with-double-button-close-button {
7633
8306
  .pagination-ellipsis {
7634
8307
  min-width: var(--pagination-item-size);
7635
8308
  height: var(--pagination-item-size);
7636
- color: var(--text-placeholder);
8309
+ color: var(--text-tertiary);
8310
+ /* 토스 목록의 가운데 점 세 개(•••). 쪽 번호보다 한 단계 작게 둔다 */
8311
+ font-size: var(--font-size-xsm);
7637
8312
  }
7638
8313
 
7639
8314
  .pagination-icon {
@@ -7822,6 +8497,12 @@ button.modal-with-double-button-close-button {
7822
8497
  inset: calc(-1 * var(--spacing-4)) 0;
7823
8498
  }
7824
8499
 
8500
+ /* 칸(44)과 카드는 이미 터치 44 이상이라 ::after 를 넓히지 않고 .motion-press-dim 의 딤에 내준다 */
8501
+
8502
+ .base-radio:where(.segment,.card) {
8503
+ position: relative;
8504
+ }
8505
+
7825
8506
  /***************************************************************************************************
7826
8507
  * *
7827
8508
  * radio *
@@ -7842,10 +8523,13 @@ button.modal-with-double-button-close-button {
7842
8523
  gap: var(--spacing-10);
7843
8524
  }
7844
8525
 
7845
- /* Checkbox(filled) 와 같은 말: 꺼짐은 흰 바탕에 보라 테두리, 켜짐은 보라 채움에 흰 표시.
8526
+ /* Checkbox(filled) 와 같은 말: 꺼짐은 회색 선에 아주 연한 회색 바탕, 올리면 보라 선에 연보라 바탕,
8527
+ 켜짐은 보라 채움에 흰 표시(ADR 0021).
7846
8528
  채움은 색만 바뀌는 확정이라 confirm fade, 흰 점은 움직임이라 confirm 스프링이다 */
7847
8529
 
7848
- .radio:where(.radio-button) {
8530
+ /* card 의 동그라미 표시(.radio-mark)도 같은 모양이다. 고름·disabled 는 카드의 data-* 로 아래에서 그린다 */
8531
+
8532
+ .radio:where(.radio-button,.radio-mark) {
7849
8533
  box-sizing: border-box;
7850
8534
  display: flex;
7851
8535
  align-items: center;
@@ -7854,8 +8538,8 @@ button.modal-with-double-button-close-button {
7854
8538
  height: var(--radio-size);
7855
8539
  flex-shrink: 0;
7856
8540
  border-radius: var(--radius-circle);
7857
- border: var(--border-width-strong) solid var(--border-accent);
7858
- background-color: var(--surface-base);
8541
+ border: var(--border-width-strong) solid var(--border-hover);
8542
+ background-color: var(--surface-subtle);
7859
8543
  }
7860
8544
 
7861
8545
  .radio.radio-button {
@@ -7863,10 +8547,18 @@ button.modal-with-double-button-close-button {
7863
8547
  transition:
7864
8548
  background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
7865
8549
  var(--confirm-delay, 0ms),
8550
+ border-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8551
+ var(--confirm-delay, 0ms),
7866
8552
  transform var(--motion-press-duration) var(--motion-press-ease);
7867
8553
  }
7868
8554
 
8555
+ .radio.radio-button:hover:not([data-disabled],[data-state='checked']) {
8556
+ border-color: var(--border-accent);
8557
+ background-color: var(--surface-brand-subtle);
8558
+ }
8559
+
7869
8560
  .radio.radio-button[data-state='checked'] {
8561
+ border-color: var(--border-accent);
7870
8562
  background-color: var(--surface-brand);
7871
8563
  }
7872
8564
 
@@ -7956,6 +8648,228 @@ button.modal-with-double-button-close-button {
7956
8648
  cursor: var(--cursor-disabled);
7957
8649
  }
7958
8650
 
8651
+ /* button: 버튼 칸을 붙여 늘어놓는다. 기본은 내용 폭, .fill 이면 부모 폭을 똑같이 나눈다.
8652
+ 이웃 칸이 선 하나를 나눠 쓰게 두 번째 칸부터 선 두께만큼 당긴다 */
8653
+
8654
+ .radio.radio-group.variant-button {
8655
+ flex-direction: row;
8656
+ gap: 0;
8657
+ width: -moz-fit-content;
8658
+ width: fit-content;
8659
+ max-width: 100%;
8660
+ }
8661
+
8662
+ .radio.radio-group.variant-button > .radio-option + .radio-option {
8663
+ margin-inline-start: calc(-1 * var(--hairline));
8664
+ }
8665
+
8666
+ .radio.radio-group.variant-button.fill {
8667
+ width: 100%;
8668
+ }
8669
+
8670
+ .radio.radio-group.variant-button.fill > .radio-option {
8671
+ flex: 1 1 0;
8672
+ min-width: 0;
8673
+ }
8674
+
8675
+ .radio.radio-option:first-child > .radio-segment {
8676
+ border-start-start-radius: var(--radius-control);
8677
+ border-end-start-radius: var(--radius-control);
8678
+ }
8679
+
8680
+ .radio.radio-option:last-child > .radio-segment {
8681
+ border-start-end-radius: var(--radius-control);
8682
+ border-end-end-radius: var(--radius-control);
8683
+ }
8684
+
8685
+ /* .base-button 의 border·radius 초기화를 이기려고 .radio.radio-segment 로 건다. 바깥 모서리는 위 두 규칙이 둥글린다.
8686
+ 고른 칸은 z-index 로 이웃 위에 올라 보라 테두리 네 변이 다 보인다. 포커스 링은 전역 규칙이 그린다 */
8687
+
8688
+ .radio.radio-segment {
8689
+ flex: 1 1 auto;
8690
+ gap: var(--spacing-4);
8691
+ min-height: var(--control-height-m);
8692
+ padding: var(--spacing-10) var(--spacing-20);
8693
+ border: var(--hairline) solid var(--border-default);
8694
+ border-radius: 0;
8695
+ background-color: var(--surface-base);
8696
+ color: var(--text-primary);
8697
+ font-size: var(--font-size-sm);
8698
+ line-height: var(--line-height-sm);
8699
+ font-weight: var(--font-weight-medium);
8700
+ overflow-wrap: anywhere;
8701
+ transition:
8702
+ background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8703
+ var(--confirm-delay, 0ms),
8704
+ color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8705
+ var(--confirm-delay, 0ms),
8706
+ border-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8707
+ var(--confirm-delay, 0ms);
8708
+
8709
+ /* 딤 색은 고른 칸의 보라 바탕과 같은 색조다 */
8710
+ }
8711
+
8712
+ .radio.radio-segment.motion-press-dim::after {
8713
+ background: var(--surface-brand);
8714
+ }
8715
+
8716
+ .radio.radio-segment:focus-visible {
8717
+ z-index: var(--z-raised);
8718
+ }
8719
+
8720
+ .radio.radio-segment[data-state='checked'] {
8721
+ z-index: var(--z-raised);
8722
+ border-color: var(--border-accent-subtle);
8723
+ background-color: var(--surface-brand-subtle);
8724
+ color: var(--text-brand);
8725
+ font-weight: var(--font-weight-semibold);
8726
+ }
8727
+
8728
+ .radio.radio-segment[data-state='unchecked'] .radio-segment-check {
8729
+ display: none;
8730
+ }
8731
+
8732
+ .radio.radio-segment[data-disabled] {
8733
+ color: var(--text-disabled);
8734
+ cursor: var(--cursor-disabled);
8735
+ }
8736
+
8737
+ /* 골라진 채 막힌 칸은 체크와 굵기로 고름을 남기고 색은 뺀다 */
8738
+
8739
+ .radio.radio-segment[data-disabled][data-state='checked'] {
8740
+ border-color: var(--border-default);
8741
+ background-color: var(--surface-disabled);
8742
+ }
8743
+
8744
+ /* card: 제목·설명 카드를 쌓는다. columns 가 --radio-columns 로 열 수를 준다 */
8745
+
8746
+ .radio.radio-group.variant-card {
8747
+ display: grid;
8748
+ grid-template-columns: repeat(var(--radio-columns, 1), minmax(0, 1fr));
8749
+ gap: var(--spacing-8);
8750
+ }
8751
+
8752
+ .radio.radio-group.variant-card > .radio-option {
8753
+ align-items: stretch;
8754
+ }
8755
+
8756
+ /* .base-button 의 가운데 정렬·gap·border·radius 를 .radio.radio-card 로 덮는다. 포커스 링은 전역 규칙이 그린다 */
8757
+
8758
+ .radio.radio-card {
8759
+ flex: 1 1 auto;
8760
+ justify-content: space-between;
8761
+ align-items: flex-start;
8762
+ gap: var(--spacing-12);
8763
+ padding: var(--spacing-16) var(--spacing-20);
8764
+ border: var(--hairline) solid var(--border-default);
8765
+ border-radius: var(--radius-control);
8766
+ background-color: var(--surface-base);
8767
+ color: var(--text-primary);
8768
+ text-align: start;
8769
+ transition:
8770
+ background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8771
+ var(--confirm-delay, 0ms),
8772
+ border-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8773
+ var(--confirm-delay, 0ms);
8774
+ }
8775
+
8776
+ .radio.radio-card.motion-press-dim::after {
8777
+ background: var(--surface-brand);
8778
+ }
8779
+
8780
+ .radio.radio-card[data-state='checked'] {
8781
+ border-color: var(--border-accent);
8782
+ background-color: var(--surface-brand-subtle);
8783
+ }
8784
+
8785
+ .radio.radio-card[data-state='checked'] .radio-card-title {
8786
+ color: var(--text-brand);
8787
+ }
8788
+
8789
+ .radio.radio-card[data-state='checked'] .radio-mark {
8790
+ border-color: var(--border-accent);
8791
+ background-color: var(--surface-brand);
8792
+ }
8793
+
8794
+ /* 골라진 채 막힌 카드는 동그라미의 흰 점으로만 고름을 남긴다 */
8795
+
8796
+ .radio.radio-card[data-disabled] {
8797
+ border-color: var(--border-disabled);
8798
+ background-color: var(--surface-base);
8799
+ cursor: var(--cursor-disabled);
8800
+ }
8801
+
8802
+ .radio.radio-card[data-disabled] :is(.radio-card-title,.radio-card-description) {
8803
+ color: var(--text-disabled);
8804
+ }
8805
+
8806
+ .radio.radio-card[data-disabled] .radio-mark {
8807
+ border-color: var(--border-disabled);
8808
+ background-color: var(--surface-control);
8809
+ }
8810
+
8811
+ .radio:where(.radio-card-text) {
8812
+ flex: 1 1 auto;
8813
+ display: flex;
8814
+ flex-direction: column;
8815
+ gap: var(--spacing-4);
8816
+ min-width: 0;
8817
+ }
8818
+
8819
+ .radio:where(.radio-card-title) {
8820
+ font-size: var(--font-size-base);
8821
+ line-height: var(--line-height-base);
8822
+ font-weight: var(--font-weight-semibold);
8823
+ }
8824
+
8825
+ .radio:where(.radio-card-description) {
8826
+ font-size: var(--font-size-sm);
8827
+ line-height: var(--line-height-sm);
8828
+ font-weight: var(--font-weight-regular);
8829
+ color: var(--text-muted);
8830
+ }
8831
+
8832
+ /* 동그라미를 제목 첫 줄 가운데에 맞춘다 */
8833
+
8834
+ .radio.radio-mark {
8835
+ margin-block-start: calc((var(--line-height-base) - var(--radio-size)) / 2);
8836
+ transition: background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
8837
+ var(--confirm-delay, 0ms);
8838
+ }
8839
+
8840
+ /* 좁은 화면: 칸이 셋 이상인 button 묶음은 떨어진 버튼 두 열이 되고 남는 한 칸은 줄을 다 쓴다. card 는 한 열이다 */
8841
+
8842
+ @media (width < 768px) {
8843
+ .radio.radio-group.variant-button {
8844
+ width: 100%;
8845
+ }
8846
+
8847
+ .radio.radio-group.variant-button:has( > .radio-option:nth-child(3)) {
8848
+ display: grid;
8849
+ grid-template-columns: repeat(2, minmax(0, 1fr));
8850
+ gap: var(--spacing-8);
8851
+ width: 100%;
8852
+ }
8853
+
8854
+ .radio.radio-group.variant-button:has( > .radio-option:nth-child(3)) > .radio-option {
8855
+ min-width: 0;
8856
+ margin-inline-start: 0;
8857
+ }
8858
+
8859
+ .radio.radio-group.variant-button:has( > .radio-option:nth-child(3)) > .radio-option:last-child:nth-child(odd) {
8860
+ grid-column: 1 / -1;
8861
+ }
8862
+
8863
+ .radio.radio-group.variant-button:has( > .radio-option:nth-child(3)) .radio-segment {
8864
+ border-radius: var(--radius-control);
8865
+ white-space: normal;
8866
+ }
8867
+
8868
+ .radio.radio-group.variant-card {
8869
+ grid-template-columns: minmax(0, 1fr);
8870
+ }
8871
+ }
8872
+
7959
8873
  .base-rating:where(.root) {
7960
8874
  position: relative;
7961
8875
  display: inline-flex;
@@ -8082,7 +8996,7 @@ button.modal-with-double-button-close-button {
8082
8996
 
8083
8997
  /***************************************************************************************************
8084
8998
  * *
8085
- * base-search-field *
8999
+ * search-field *
8086
9000
  * *
8087
9001
  ***************************************************************************************************/
8088
9002
 
@@ -8106,6 +9020,52 @@ button.modal-with-double-button-close-button {
8106
9020
  overflow: visible;
8107
9021
  }
8108
9022
 
9023
+ /* 기준 고르기. 상자는 바깥 입력 상자 하나가 그리고, 이 칸은 선·바탕 없이 글자와 꺾쇠만 둔다.
9024
+ .base-drop-down.trigger(앞에 불러온 drop-down CSS)의 간격을 같은 우선순위로 덮는다 */
9025
+
9026
+ .search-field .search-field-criterion {
9027
+ align-self: stretch;
9028
+ flex: none;
9029
+ gap: var(--spacing-4);
9030
+ padding: 0;
9031
+ border: 0;
9032
+ background: transparent;
9033
+ color: var(--text-primary);
9034
+ font: inherit;
9035
+ white-space: nowrap;
9036
+ cursor: var(--cursor-button);
9037
+ }
9038
+
9039
+ [data-disabled]:is(.search-field .search-field-criterion) {
9040
+ color: var(--text-disabled);
9041
+ cursor: var(--cursor-disabled);
9042
+ }
9043
+
9044
+ :is(.search-field .search-field-criterion) .search-field-criterion-icon {
9045
+ color: var(--icon-tertiary);
9046
+ transition: transform var(--motion-expand-duration) var(--motion-expand-ease);
9047
+ }
9048
+
9049
+ [data-state='open']:is(.search-field .search-field-criterion) .search-field-criterion-icon {
9050
+ transform: rotate(var(--motion-expand-rotate));
9051
+ }
9052
+
9053
+ /* 기준과 검색어 사이 세로선 하나. 상자 높이보다 짧게 긋는다 */
9054
+
9055
+ .search-field-divider {
9056
+ flex: none;
9057
+ align-self: stretch;
9058
+ margin-block: var(--spacing-8);
9059
+ border-left: var(--hairline) solid var(--border-default);
9060
+ }
9061
+
9062
+ /* 기준 목록이 열리면 포커스가 목록으로 옮겨 가 :focus-within 이 풀린다. 열린 동안도 포커스와 같은 보라 2px 선을 둔다 */
9063
+
9064
+ .search-field .text-field-input-wrapper:has(.search-field-criterion[data-state='open']) {
9065
+ border-color: var(--border-accent);
9066
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent);
9067
+ }
9068
+
8109
9069
  .base-section-header {
8110
9070
  display: flex;
8111
9071
  align-items: center;
@@ -8295,6 +9255,25 @@ button.modal-with-double-button-close-button {
8295
9255
  width var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease);
8296
9256
  }
8297
9257
 
9258
+ /* neutral: 회색 바탕 위 흰 알약에 검정 글자. 판이 바탕과 같은 회색 계열이라 작은 그림자로 띄운다 */
9259
+
9260
+ .motion-press-dim:is(.segmented-control.variant-neutral .segmented-control-item)::after {
9261
+ background: var(--surface-base);
9262
+ }
9263
+
9264
+ [data-state='checked']:is(.segmented-control.variant-neutral .segmented-control-item) {
9265
+ color: var(--text-primary);
9266
+ }
9267
+
9268
+ [data-disabled]:is(.segmented-control.variant-neutral .segmented-control-item) {
9269
+ color: var(--text-disabled);
9270
+ }
9271
+
9272
+ .segmented-control.variant-neutral .segmented-control-indicator {
9273
+ background: var(--surface-base);
9274
+ box-shadow: var(--shadow-raised);
9275
+ }
9276
+
8298
9277
  /* 넘쳐 밀린 목록 위에 떠서 처음으로 되돌리는 화살표. 목록 밖에 두어 함께 밀리지 않는다(Tabs 와 같다) */
8299
9278
 
8300
9279
  .segmented-control-scroll-start {
@@ -8558,17 +9537,31 @@ button.modal-with-double-button-close-button {
8558
9537
 
8559
9538
  /* 앱 리셋이 없어도 dl·dt·dd 기본 여백을 받지 않는다 */
8560
9539
 
8561
- .base-stat {
8562
- display: grid;
8563
- gap: var(--spacing-4);
8564
- min-width: 0;
8565
- margin: 0;
8566
- }
8567
-
8568
- .base-stat > :where(dt,dd) {
9540
+ .base-stat:where(dl) {
9541
+ display: grid;
9542
+ gap: var(--spacing-4);
9543
+ min-width: 0;
8569
9544
  margin: 0;
8570
9545
  }
8571
9546
 
9547
+ .base-stat:where(dl) > :where(dt,dd) {
9548
+ margin: 0;
9549
+ }
9550
+
9551
+ .base-stat:where(.item) {
9552
+ position: relative;
9553
+ }
9554
+
9555
+ .base-stat:where(.toggle) {
9556
+ position: absolute;
9557
+ inset: 0;
9558
+ padding: 0;
9559
+ border: 0;
9560
+ border-radius: inherit;
9561
+ background: transparent;
9562
+ cursor: var(--cursor-button);
9563
+ }
9564
+
8572
9565
  /***************************************************************************************************
8573
9566
  * *
8574
9567
  * stat *
@@ -8576,6 +9569,9 @@ button.modal-with-double-button-close-button {
8576
9569
  ***************************************************************************************************/
8577
9570
 
8578
9571
  .stat-label {
9572
+ display: flex;
9573
+ align-items: center;
9574
+ gap: var(--spacing-4);
8579
9575
  color: var(--text-secondary);
8580
9576
  font-size: var(--font-size-sm);
8581
9577
  line-height: var(--line-height-sm);
@@ -8591,6 +9587,16 @@ button.modal-with-double-button-close-button {
8591
9587
  overflow-wrap: anywhere;
8592
9588
  }
8593
9589
 
9590
+ .stat-value.tone-danger {
9591
+ color: var(--text-danger);
9592
+ }
9593
+
9594
+ .stat.size-s .stat-value {
9595
+ font-size: var(--font-size-xl);
9596
+ line-height: var(--line-height-xl);
9597
+ letter-spacing: var(--letter-spacing-tight);
9598
+ }
9599
+
8594
9600
  .stat.size-m .stat-value {
8595
9601
  font-size: var(--font-size-2xl);
8596
9602
  line-height: var(--line-height-2xl);
@@ -8603,6 +9609,50 @@ button.modal-with-double-button-close-button {
8603
9609
  letter-spacing: var(--letter-spacing-tighter);
8604
9610
  }
8605
9611
 
9612
+ /* 아이콘 타일(Asset.Frame size s, 40px)은 라벨·숫자 두 줄의 왼쪽 가운데에 뜬다. 그 폭만큼 글을 민다 */
9613
+
9614
+ .stat.has-icon {
9615
+ position: relative;
9616
+ min-height: var(--asset-square-s);
9617
+ padding-left: calc(var(--asset-square-s) + var(--spacing-12));
9618
+ align-content: center;
9619
+ }
9620
+
9621
+ .stat-icon {
9622
+ position: absolute;
9623
+ top: 50%;
9624
+ left: 0;
9625
+ display: flex;
9626
+ transform: translateY(-50%);
9627
+ }
9628
+
9629
+ /* 라벨 옆 ⓘ. 상태 요약 칸에서는 칸을 덮는 누르는 자리 위에 떠야 누를 수 있다 */
9630
+
9631
+ .stat-help {
9632
+ position: relative;
9633
+ z-index: var(--z-raised);
9634
+ display: inline-flex;
9635
+ pointer-events: auto;
9636
+ padding: 0;
9637
+ border: 0;
9638
+ border-radius: var(--radius-circle);
9639
+ background: transparent;
9640
+ color: var(--icon-tertiary);
9641
+ cursor: var(--cursor-button);
9642
+
9643
+ /* 16px 아이콘의 누르는 자리를 터치 44 로 넓힌다 */
9644
+ }
9645
+
9646
+ .stat-help::after {
9647
+ content: '';
9648
+ position: absolute;
9649
+ top: 50%;
9650
+ left: 50%;
9651
+ width: var(--touch-target);
9652
+ height: var(--touch-target);
9653
+ transform: translate(-50%, -50%);
9654
+ }
9655
+
8606
9656
  .stat-detail {
8607
9657
  color: var(--text-secondary);
8608
9658
  font-size: var(--font-size-sm);
@@ -8626,6 +9676,69 @@ button.modal-with-double-button-close-button {
8626
9676
  color: var(--text-secondary);
8627
9677
  }
8628
9678
 
9679
+ /***************************************************************************************************
9680
+ * *
9681
+ * stat-group *
9682
+ * *
9683
+ ***************************************************************************************************/
9684
+
9685
+ /* 칸은 가장 긴 줄의 칸 수만큼 열을 나눈다. 좁으면 칸이 글자 폭 아래로 줄지 않고 묶음 안에서 가로로 민다 */
9686
+
9687
+ .stat-group {
9688
+ display: grid;
9689
+ grid-template-columns: repeat(var(--stat-group-columns), minmax(max-content, 1fr));
9690
+ gap: var(--spacing-4) var(--spacing-8);
9691
+ max-width: 100%;
9692
+ overflow-x: auto;
9693
+ }
9694
+
9695
+ .stat-group-item {
9696
+ padding: var(--spacing-12) var(--spacing-16);
9697
+ border-radius: var(--radius-control);
9698
+ transition: background-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease);
9699
+ }
9700
+
9701
+ .stat-group-item.row-start {
9702
+ grid-column-start: 1;
9703
+ }
9704
+
9705
+ /* 글(dl)이 칸을 덮는 Toggle 보다 뒤에 와서 위에 그려진다. 누름은 Toggle 로 보내고 ⓘ 만 다시 받는다 */
9706
+
9707
+ .stat-group-item > .stat {
9708
+ pointer-events: none;
9709
+ }
9710
+
9711
+ /* 같은 줄의 칸 사이 세로선. 열 사이 여백 가운데에 칸 높이보다 짧게 긋는다 */
9712
+
9713
+ .stat-group-item:not(.row-start)::before {
9714
+ content: '';
9715
+ position: absolute;
9716
+ top: var(--spacing-16);
9717
+ bottom: var(--spacing-16);
9718
+ left: calc(-1 * var(--spacing-4));
9719
+ border-left: var(--hairline) solid var(--border-subtle);
9720
+ }
9721
+
9722
+ .stat-group-item.pressable:hover:not([data-state='on']) {
9723
+ background-color: var(--surface-subtle);
9724
+ }
9725
+
9726
+ /* 고른 칸은 연한 주색 면에 주색 글자. 처리할 숫자의 빨강은 그대로 둔다 */
9727
+
9728
+ .stat-group-item[data-state='on'] {
9729
+ background-color: var(--surface-brand-subtle);
9730
+ }
9731
+
9732
+ .stat-group-item[data-state='on'] .stat-label,.stat-group-item[data-state='on'] .stat-value:not(.tone-danger) {
9733
+ color: var(--text-brand);
9734
+ }
9735
+
9736
+ /* 눌림 딤은 목록 행처럼 중립 회색이다 */
9737
+
9738
+ .stat-group-toggle.motion-press-dim::after {
9739
+ background: var(--surface-strong);
9740
+ }
9741
+
8629
9742
  .base-platform-badge {
8630
9743
  display: inline-flex;
8631
9744
  flex-shrink: 0;
@@ -8853,6 +9966,12 @@ button.modal-with-double-button-close-button {
8853
9966
 
8854
9967
  /* 지금 단계 이름만 보인다. 다른 이름은 낭독기에는 남긴다 */
8855
9968
 
9969
+ /* 숨긴 이름을 제 칸에 묶는다. 묶지 않으면 잘라 주는 조상 밖으로 나가 문서를 가로로 넓힌다 */
9970
+
9971
+ .step-progress.label-visibility-current .step-progress-step {
9972
+ position: relative;
9973
+ }
9974
+
8856
9975
  .step-progress.label-visibility-current .step-progress-step:not([data-state='current']) .step-progress-name {
8857
9976
  position: absolute;
8858
9977
  width: 1px; /* raw-px */
@@ -9006,20 +10125,63 @@ button.modal-with-double-button-close-button {
9006
10125
  font-weight: var(--font-weight-medium);
9007
10126
  }
9008
10127
 
9009
- .base-table {
9010
- /* 진짜 테이블 레이아웃을 쓴다. 행을 flex 로 두면 헤더와 본문의 열 폭이 따로 놀아 고정열 경계가 어긋난다 */
9011
- width: -moz-fit-content;
9012
- width: fit-content;
9013
- border-collapse: collapse;
9014
- border-spacing: 0;
9015
- table-layout: auto;
9016
- }
10128
+ .base-table {
10129
+ /* 진짜 테이블 레이아웃을 쓴다. 행을 flex 로 두면 헤더와 본문의 열 폭이 따로 놀아 고정열 경계가 어긋난다 */
10130
+ width: -moz-fit-content;
10131
+ width: fit-content;
10132
+ border-collapse: collapse;
10133
+ border-spacing: 0;
10134
+ table-layout: auto;
10135
+ }
10136
+
10137
+ .base-table .cell {
10138
+ padding: 0;
10139
+ text-align: start;
10140
+ vertical-align: middle;
10141
+ }
10142
+
10143
+ /* 두 줄 셀: 윗줄 이름, 아랫줄 작은 회색 보조 글(ID·옵션) */
10144
+
10145
+ .base-table:where(.cell-text) {
10146
+ display: inline-flex;
10147
+ flex-direction: column;
10148
+ gap: var(--spacing-2);
10149
+ min-width: 0;
10150
+ }
10151
+
10152
+ .base-table:where(.cell-text) .cell-text-title {
10153
+ font-size: var(--font-size-sm);
10154
+ line-height: var(--line-height-sm);
10155
+ color: var(--text-primary);
10156
+ }
10157
+
10158
+ .base-table:where(.cell-text) .cell-text-description {
10159
+ font-size: var(--font-size-xsm);
10160
+ line-height: var(--line-height-xsm);
10161
+ color: var(--text-muted);
10162
+ }
10163
+
10164
+ /* 줄 행동: 마우스를 올린 행·포커스가 들어간 행에만 보인다. 숨길 때도 opacity 라 Tab 으로 들어갈 수 있다 */
9017
10165
 
9018
- .base-table .cell {
9019
- padding: 0;
9020
- text-align: start;
10166
+ .base-table:where(.hover-actions) {
10167
+ display: inline-flex;
10168
+ align-items: center;
10169
+ gap: var(--spacing-4);
9021
10170
  vertical-align: middle;
10171
+ opacity: 0;
10172
+ }
10173
+
10174
+ @media (width < 768px) {
10175
+
10176
+ .base-table:where(.hover-actions) {
10177
+ opacity: 1;
9022
10178
  }
10179
+ }
10180
+
10181
+ .base-table:where(.row):hover .base-table:where(.hover-actions),
10182
+ .base-table:where(.row):focus-within .base-table:where(.hover-actions) {
10183
+ opacity: 1;
10184
+ }
9023
10185
 
9024
10186
  /***************************************************************************************************
9025
10187
  * *
@@ -9028,12 +10190,25 @@ button.modal-with-double-button-close-button {
9028
10190
  ***************************************************************************************************/
9029
10191
 
9030
10192
  /* 넓은 화면에서는 overflow 가 visible 이라 머리행 sticky 가 지금처럼 페이지에 붙는다.
9031
- 늘 켜 두지 않는 이유: overflow-x: auto 는 세로로도 스크롤 칸을 만들어 sticky 가 감싸개에 붙는다 */
10193
+ 늘 켜 두지 않는 이유: overflow-x: auto 는 세로로도 스크롤 칸을 만들어 sticky 가 감싸개에 붙는다. scrollX 를 준 표만 넓은 화면에서도 켠다 */
9032
10194
 
9033
10195
  .data-table-scroll {
9034
10196
  width: 100%;
9035
10197
  }
9036
10198
 
10199
+ .data-table-scroll.scroll-x {
10200
+ overflow-x: auto;
10201
+ overscroll-behavior-x: contain;
10202
+
10203
+ /* 열 width 를 줄이지 않고 지킨다. 폭 100% 표는 넘칠 때 열을 min-content 까지 줄여 스크롤이 생기지 않는다 */
10204
+ }
10205
+
10206
+ .data-table-scroll.scroll-x > .data-table {
10207
+ width: -moz-max-content;
10208
+ width: max-content;
10209
+ min-width: 100%;
10210
+ }
10211
+
9037
10212
  @media (width < 768px) {
9038
10213
 
9039
10214
  .data-table-scroll {
@@ -9042,6 +10217,16 @@ button.modal-with-double-button-close-button {
9042
10217
  }
9043
10218
  }
9044
10219
 
10220
+ /* 가려진 쪽이 있을 때만 고정 열 경계에 그림자를 드리운다(data-table.tsx syncScrollEdges) */
10221
+
10222
+ .data-table-scroll[data-overflow-start] .fixed-last {
10223
+ box-shadow: var(--shadow-pinned-start);
10224
+ }
10225
+
10226
+ .data-table-scroll[data-overflow-end] .fixed-end-first {
10227
+ box-shadow: var(--shadow-pinned-end);
10228
+ }
10229
+
9045
10230
  .data-table {
9046
10231
  position: relative;
9047
10232
  width: 100%;
@@ -9075,6 +10260,84 @@ button.modal-with-double-button-close-button {
9075
10260
  color: var(--data-table-cell-color, var(--text-body));
9076
10261
  }
9077
10262
 
10263
+ /* tinted: 회색 머리 행. 고정 칸도 같은 바탕이라 스크롤 중에 비치지 않는다 */
10264
+
10265
+ .data-table.header-tinted .data-table-header .cell {
10266
+ background-color: var(--surface-subtle);
10267
+ }
10268
+
10269
+ /* 숫자·금액 열. 자릿수가 위아래로 맞게 고정폭 숫자를 쓴다 */
10270
+
10271
+ .data-table .align-end {
10272
+ text-align: end;
10273
+ font-variant-numeric: tabular-nums;
10274
+ }
10275
+
10276
+ .data-table .align-center {
10277
+ text-align: center;
10278
+ }
10279
+
10280
+ /* 머리 글과 ⓘ 를 한 줄로 묶는다. inline 이라 칸의 text-align 을 따른다 */
10281
+
10282
+ .data-table-header-label {
10283
+ display: inline-flex;
10284
+ align-items: center;
10285
+ gap: var(--spacing-4);
10286
+ vertical-align: middle;
10287
+ }
10288
+
10289
+ .data-table-header-info {
10290
+ position: relative;
10291
+ display: inline-flex;
10292
+ padding: 0;
10293
+ border: none;
10294
+ background-color: transparent;
10295
+ color: var(--icon-tertiary);
10296
+ cursor: var(--cursor-button);
10297
+
10298
+ /* 16px 아이콘의 누르는 자리를 세로 44 까지 넓힌다. 가로로 넓히면 옆 머리 글을 덮는다 */
10299
+ }
10300
+
10301
+ .data-table-header-info::before {
10302
+ content: '';
10303
+ position: absolute;
10304
+ top: 50%;
10305
+ left: 0;
10306
+ right: 0;
10307
+ height: var(--touch-target);
10308
+ transform: translateY(-50%);
10309
+ }
10310
+
10311
+ /* 행 선택 열. 폭은 체크박스만큼이다 */
10312
+
10313
+ .data-table .data-table-select {
10314
+ width: 0;
10315
+ padding-inline: var(--spacing-12);
10316
+ }
10317
+
10318
+ /* 0건 문구. 본문 자리 가운데 회색 글, 줄바꿈(\n)을 그대로 줄로 쓴다 */
10319
+
10320
+ .data-table .data-table-empty {
10321
+ height: var(--data-table-empty-height);
10322
+ padding-inline: 0;
10323
+ text-align: center;
10324
+ white-space: pre-line;
10325
+ font-size: var(--font-size-sm);
10326
+ line-height: var(--line-height-sm);
10327
+ color: var(--text-muted);
10328
+ }
10329
+
10330
+ /* 표가 감싸개보다 넓으면 가운데가 화면 밖에 놓인다. 보이는 폭만큼의 칸을 왼쪽에 붙여 그 안에서 가운데에 둔다 */
10331
+
10332
+ .data-table-empty-message {
10333
+ position: sticky;
10334
+ inset-inline-start: 0;
10335
+ display: block;
10336
+ box-sizing: border-box;
10337
+ width: var(--data-table-scroll-width, 100%);
10338
+ padding-inline: var(--spacing-16);
10339
+ }
10340
+
9078
10341
  /* 마지막 고정 열의 경계선. border-collapse 표의 border 는 sticky 셀과 함께 움직이지 않아 그림자로 셀 안에 그린다 */
9079
10342
 
9080
10343
  :where(.data-table.variant-padded) .fixed-last {
@@ -9086,25 +10349,35 @@ button.modal-with-double-button-close-button {
9086
10349
  border-bottom: var(--hairline) solid var(--border-subtle);
9087
10350
  }
9088
10351
 
9089
- .data-table-row .fixed {
10352
+ .data-table-row .fixed,.data-table-row .fixed-end {
9090
10353
  position: sticky;
9091
10354
  background-color: var(--surface-base);
9092
10355
  z-index: var(--z-sticky);
9093
10356
  }
9094
10357
 
9095
- :is(.data-table-row .fixed) > * {
10358
+ :is(.data-table-row .fixed,.data-table-row .fixed-end) > * {
9096
10359
  position: relative;
9097
10360
  z-index: var(--z-raised);
9098
10361
  }
9099
10362
 
9100
- .body .data-table-row:hover {
10363
+ .body .data-table-row:not(.data-table-empty-row):hover {
9101
10364
  background-color: var(--surface-muted);
9102
10365
  }
9103
10366
 
9104
- :is(.body .data-table-row:hover) .fixed {
10367
+ :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 {
9105
10368
  background-color: var(--surface-muted);
9106
10369
  }
9107
10370
 
10371
+ /* 고른 행. 마우스를 올려도 고른 색이 남는다 */
10372
+
10373
+ .body .data-table-row[data-state='selected'] {
10374
+ background-color: var(--surface-brand-subtle);
10375
+ }
10376
+
10377
+ :is(.body .data-table-row[data-state='selected']) .fixed,:is(.body .data-table-row[data-state='selected']) .fixed-end {
10378
+ background-color: var(--surface-brand-subtle);
10379
+ }
10380
+
9108
10381
  .fixed-cell {
9109
10382
  position: sticky;
9110
10383
  left: 0;
@@ -9345,7 +10618,7 @@ button.modal-with-double-button-close-button {
9345
10618
  outline: none;
9346
10619
  background-color: transparent;
9347
10620
  font-family: inherit;
9348
- font-weight: var(--font-weight-medium);
10621
+ font-weight: var(--font-weight-regular);
9349
10622
  color: var(--text-primary);
9350
10623
  }
9351
10624
 
@@ -9361,6 +10634,21 @@ button.modal-with-double-button-close-button {
9361
10634
  cursor: var(--cursor-disabled);
9362
10635
  }
9363
10636
 
10637
+ .base-text-area:where(.label) {
10638
+ display: block;
10639
+ width: -moz-fit-content;
10640
+ width: fit-content;
10641
+ font-size: var(--font-size-sm);
10642
+ line-height: var(--line-height-sm);
10643
+ font-weight: var(--font-weight-medium);
10644
+ }
10645
+
10646
+ .base-text-area:where(.helper-text) {
10647
+ font-size: var(--font-size-sm);
10648
+ line-height: var(--line-height-sm);
10649
+ font-weight: var(--font-weight-regular);
10650
+ }
10651
+
9364
10652
  /* 상자 안 아이콘 버튼(TextField 와 같은 크기). 누르는 자리는 터치 44 로 넓힌다 */
9365
10653
 
9366
10654
  .base-text-area:where(.action) {
@@ -9401,44 +10689,49 @@ button.modal-with-double-button-close-button {
9401
10689
  }
9402
10690
 
9403
10691
  .text-area-title {
9404
- margin-bottom: var(--spacing-8);
10692
+ margin-bottom: var(--spacing-6);
10693
+ color: var(--text-secondary);
9405
10694
  }
9406
10695
 
9407
10696
  /* 높이는 rows 가 정한다. size 는 글자 크기와 안쪽 여백만 바꾼다 */
9408
10697
 
9409
10698
  .text-area-input-wrapper {
9410
10699
  display: flex;
9411
- box-sizing: border-box;
10700
+ /* 글자 수는 다음 줄 오른쪽에 놓인다 */
10701
+ flex-wrap: wrap;
9412
10702
 
9413
- /* 입력 상자 공통 모양(TextField·TextArea 같음). 모서리는 버튼과 같은 control.
9414
- 쉴 때는 연회색 면에 선이 없고, 포커스에서 흰 바탕과 accent 선(연보라 후광)이 된다(무드 규칙 7, ADR 0015).
9415
- 오류는 쉴 때도 error 선(포커스면 연빨강 후광), 읽기 전용은 포커스에도 회색 면, disabled 는 회색 바탕.
10703
+ /* 입력 상자 공통 모양(TextField·TextArea 같음, ADR 0021). 모서리는 버튼과 같은 control.
10704
+ outline(기본)은 흰 바탕에 회색 1px 선이다. 마우스를 올리면 연보라, 포커스면 보라 2px 선이 된다.
10705
+ 2px 는 1px border 에 안쪽 1px 그림자를 겹쳐 그려 상자 크기가 흔들리지 않는다. 바깥 후광은 없다.
10706
+ 오류는 빨간 선(포커스면 2px), 읽기 전용은 회색 면에 포커스에도 선이 굵어지지 않는다, disabled 는 회색 면에 흐린 글자.
9416
10707
  아이콘은 상자의 color 를 따른다. 상태 색 전환은 다른 상태 피드백처럼 press 토큰을 쓴다 */
9417
10708
  box-sizing: border-box;
9418
10709
  border-radius: var(--radius-control);
9419
- border: var(--hairline) solid transparent;
9420
- background-color: var(--surface-subtle);
10710
+ border: var(--hairline) solid var(--border-default);
10711
+ background-color: var(--surface-base);
9421
10712
  color: var(--text-muted);
9422
10713
  transition:
9423
10714
  border-color var(--motion-press-duration) var(--motion-press-ease),
9424
10715
  box-shadow var(--motion-press-duration) var(--motion-press-ease),
9425
10716
  background-color var(--motion-press-duration) var(--motion-press-ease);
10717
+
10718
+ /* 줄을 바꿀 수 있는 상자라 폭 100% 대신 남는 폭을 채운다. 지우기 버튼이 같은 줄에 남는다 */
9426
10719
  }
9427
10720
 
9428
10721
  .text-area-input-wrapper > textarea {
10722
+ flex: 1 1 0;
10723
+ min-width: 0;
9429
10724
  color: var(--text-primary);
9430
10725
  }
9431
10726
 
9432
- /* 선 대신 면이 한 단계 짙어진다 */
9433
-
9434
- .text-area-input-wrapper:hover:not(:focus-within,.error,:has( > textarea:disabled)) {
9435
- background-color: var(--surface-muted);
10727
+ .text-area-input-wrapper:hover:not(:focus-within,.error,:has( > textarea:disabled),:has( > textarea[readonly])) {
10728
+ border-color: var(--border-accent-subtle);
10729
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent-subtle);
9436
10730
  }
9437
10731
 
9438
10732
  .text-area-input-wrapper:focus-within {
9439
10733
  border-color: var(--border-accent);
9440
- background-color: var(--surface-base);
9441
- box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-color);
10734
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent);
9442
10735
  color: var(--text-secondary);
9443
10736
  }
9444
10737
 
@@ -9447,13 +10740,41 @@ button.modal-with-double-button-close-button {
9447
10740
  }
9448
10741
 
9449
10742
  .text-area-input-wrapper.error:focus-within {
9450
- box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-error-color);
10743
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-error);
9451
10744
  }
9452
10745
 
9453
- .text-area-input-wrapper:has( > textarea[readonly]:not(:disabled)) {
10746
+ /* fill: 쉴 때 선 없는 연회색 면. 마우스를 올리면 면이 한 단계 짙어지고 포커스에서 흰 바탕과 보라 2px 선이 된다 */
10747
+
10748
+ .text-area-input-wrapper.variant-fill {
10749
+ border-color: transparent;
9454
10750
  background-color: var(--surface-subtle);
9455
10751
  }
9456
10752
 
10753
+ .text-area-input-wrapper.variant-fill:hover:not(:focus-within,.error,:has( > textarea:disabled),:has( > textarea[readonly])) {
10754
+ border-color: transparent;
10755
+ box-shadow: none;
10756
+ background-color: var(--surface-muted);
10757
+ }
10758
+
10759
+ .text-area-input-wrapper.variant-fill:focus-within {
10760
+ border-color: var(--border-accent);
10761
+ background-color: var(--surface-base);
10762
+ }
10763
+
10764
+ .text-area-input-wrapper.variant-fill.error {
10765
+ border-color: var(--border-error);
10766
+ }
10767
+
10768
+ /* 읽기 전용은 회색 면. 포커스는 선 색만 바뀌고 굵어지지 않는다 */
10769
+
10770
+ .text-area-input-wrapper:has( > textarea[readonly]:not(:disabled)) {
10771
+ background-color: var(--surface-muted);
10772
+ }
10773
+
10774
+ .text-area-input-wrapper:has( > textarea[readonly]:not(:disabled)):focus-within {
10775
+ box-shadow: none;
10776
+ }
10777
+
9457
10778
  .text-area-input-wrapper:has( > textarea:disabled) {
9458
10779
  border-color: var(--border-disabled);
9459
10780
  background-color: var(--surface-muted);
@@ -9462,7 +10783,7 @@ button.modal-with-double-button-close-button {
9462
10783
  }
9463
10784
 
9464
10785
  .text-area-input-wrapper:has( > textarea:disabled) > textarea {
9465
- color: var(--text-placeholder);
10786
+ color: var(--text-disabled);
9466
10787
  cursor: var(--cursor-disabled);
9467
10788
  }
9468
10789
 
@@ -9500,6 +10821,25 @@ button.modal-with-double-button-close-button {
9500
10821
  margin: var(--spacing-14) var(--spacing-14) 0 0;
9501
10822
  }
9502
10823
 
10824
+ /* 글자 수는 상자 안 오른쪽 아래. 아래·오른쪽 여백은 size 마다 textarea 안쪽 여백과 같다 */
10825
+
10826
+ .text-area-input-wrapper > .text-area-count {
10827
+ flex-basis: 100%;
10828
+ text-align: right;
10829
+ font-size: var(--font-size-xsm);
10830
+ line-height: var(--line-height-xsm);
10831
+ font-variant-numeric: tabular-nums;
10832
+ color: var(--text-muted);
10833
+ }
10834
+
10835
+ .text-area-input-wrapper.size-s > .text-area-count {
10836
+ padding: 0 var(--spacing-14) var(--spacing-10);
10837
+ }
10838
+
10839
+ .text-area-input-wrapper.size-m > .text-area-count {
10840
+ padding: 0 var(--spacing-14) var(--spacing-14);
10841
+ }
10842
+
9503
10843
  .text-area-helper-text {
9504
10844
  margin-top: var(--spacing-6);
9505
10845
  color: var(--text-muted);
@@ -9592,7 +10932,7 @@ button.modal-with-double-button-close-button {
9592
10932
 
9593
10933
  font-size: inherit;
9594
10934
  line-height: inherit;
9595
- font-weight: var(--font-weight-medium);
10935
+ font-weight: var(--font-weight-regular);
9596
10936
  }
9597
10937
 
9598
10938
  .base-text-field.input::-moz-placeholder {
@@ -9610,6 +10950,21 @@ button.modal-with-double-button-close-button {
9610
10950
  transition: background-color 5000s ease-in-out 0s; /* raw-value */
9611
10951
  }
9612
10952
 
10953
+ .base-text-field:where(.label) {
10954
+ display: block;
10955
+ width: -moz-fit-content;
10956
+ width: fit-content;
10957
+ font-size: var(--font-size-sm);
10958
+ line-height: var(--line-height-sm);
10959
+ font-weight: var(--font-weight-medium);
10960
+ }
10961
+
10962
+ .base-text-field:where(.helper-text) {
10963
+ font-size: var(--font-size-sm);
10964
+ line-height: var(--line-height-sm);
10965
+ font-weight: var(--font-weight-regular);
10966
+ }
10967
+
9613
10968
  .base-text-field:where(.prefix,.suffix) {
9614
10969
  flex: none;
9615
10970
  white-space: nowrap;
@@ -9659,7 +11014,8 @@ button.modal-with-double-button-close-button {
9659
11014
  }
9660
11015
 
9661
11016
  .text-field-title {
9662
- margin-bottom: var(--spacing-8);
11017
+ margin-bottom: var(--spacing-6);
11018
+ color: var(--text-secondary);
9663
11019
  }
9664
11020
 
9665
11021
  .text-field-input-wrapper {
@@ -9670,14 +11026,15 @@ button.modal-with-double-button-close-button {
9670
11026
 
9671
11027
  /* 높이는 버튼과 같은 --control-height-* 축, 좌우 여백·글자는 size 마다 버튼과 같은 단계 */
9672
11028
 
9673
- /* 입력 상자 공통 모양(TextField·TextArea 같음). 모서리는 버튼과 같은 control.
9674
- 쉴 때는 연회색 면에 선이 없고, 포커스에서 흰 바탕과 accent 선(연보라 후광)이 된다(무드 규칙 7, ADR 0015).
9675
- 오류는 쉴 때도 error 선(포커스면 연빨강 후광), 읽기 전용은 포커스에도 회색 면, disabled 는 회색 바탕.
11029
+ /* 입력 상자 공통 모양(TextField·TextArea 같음, ADR 0021). 모서리는 버튼과 같은 control.
11030
+ outline(기본)은 흰 바탕에 회색 1px 선이다. 마우스를 올리면 연보라, 포커스면 보라 2px 선이 된다.
11031
+ 2px 는 1px border 에 안쪽 1px 그림자를 겹쳐 그려 상자 크기가 흔들리지 않는다. 바깥 후광은 없다.
11032
+ 오류는 빨간 선(포커스면 2px), 읽기 전용은 회색 면에 포커스에도 선이 굵어지지 않는다, disabled 는 회색 면에 흐린 글자.
9676
11033
  아이콘은 상자의 color 를 따른다. 상태 색 전환은 다른 상태 피드백처럼 press 토큰을 쓴다 */
9677
11034
  box-sizing: border-box;
9678
11035
  border-radius: var(--radius-control);
9679
- border: var(--hairline) solid transparent;
9680
- background-color: var(--surface-subtle);
11036
+ border: var(--hairline) solid var(--border-default);
11037
+ background-color: var(--surface-base);
9681
11038
  color: var(--text-muted);
9682
11039
  transition:
9683
11040
  border-color var(--motion-press-duration) var(--motion-press-ease),
@@ -9726,16 +11083,14 @@ button.modal-with-double-button-close-button {
9726
11083
  min-width: 0;
9727
11084
  }
9728
11085
 
9729
- /* 선 대신 면이 한 단계 짙어진다 */
9730
-
9731
- .text-field-input-wrapper:hover:not(:focus-within,.error,:has( > input:disabled)) {
9732
- background-color: var(--surface-muted);
11086
+ .text-field-input-wrapper:hover:not(:focus-within,.error,:has( > input:disabled),:has( > input[readonly])) {
11087
+ border-color: var(--border-accent-subtle);
11088
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent-subtle);
9733
11089
  }
9734
11090
 
9735
11091
  .text-field-input-wrapper:focus-within {
9736
11092
  border-color: var(--border-accent);
9737
- background-color: var(--surface-base);
9738
- box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-color);
11093
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-accent);
9739
11094
  color: var(--text-secondary);
9740
11095
  }
9741
11096
 
@@ -9744,13 +11099,41 @@ button.modal-with-double-button-close-button {
9744
11099
  }
9745
11100
 
9746
11101
  .text-field-input-wrapper.error:focus-within {
9747
- box-shadow: 0 0 0 var(--field-focus-halo) var(--focus-halo-error-color);
11102
+ box-shadow: inset 0 0 0 var(--hairline) var(--border-error);
9748
11103
  }
9749
11104
 
9750
- .text-field-input-wrapper:has( > input[readonly]:not(:disabled)) {
11105
+ /* fill: 쉴 때 선 없는 연회색 면. 마우스를 올리면 면이 한 단계 짙어지고 포커스에서 흰 바탕과 보라 2px 선이 된다 */
11106
+
11107
+ .text-field-input-wrapper.variant-fill {
11108
+ border-color: transparent;
9751
11109
  background-color: var(--surface-subtle);
9752
11110
  }
9753
11111
 
11112
+ .text-field-input-wrapper.variant-fill:hover:not(:focus-within,.error,:has( > input:disabled),:has( > input[readonly])) {
11113
+ border-color: transparent;
11114
+ box-shadow: none;
11115
+ background-color: var(--surface-muted);
11116
+ }
11117
+
11118
+ .text-field-input-wrapper.variant-fill:focus-within {
11119
+ border-color: var(--border-accent);
11120
+ background-color: var(--surface-base);
11121
+ }
11122
+
11123
+ .text-field-input-wrapper.variant-fill.error {
11124
+ border-color: var(--border-error);
11125
+ }
11126
+
11127
+ /* 읽기 전용은 회색 면. 포커스는 선 색만 바뀌고 굵어지지 않는다 */
11128
+
11129
+ .text-field-input-wrapper:has( > input[readonly]:not(:disabled)) {
11130
+ background-color: var(--surface-muted);
11131
+ }
11132
+
11133
+ .text-field-input-wrapper:has( > input[readonly]:not(:disabled)):focus-within {
11134
+ box-shadow: none;
11135
+ }
11136
+
9754
11137
  .text-field-input-wrapper:has( > input:disabled) {
9755
11138
  border-color: var(--border-disabled);
9756
11139
  background-color: var(--surface-muted);
@@ -9759,12 +11142,22 @@ button.modal-with-double-button-close-button {
9759
11142
  }
9760
11143
 
9761
11144
  .text-field-input-wrapper:has( > input:disabled) > input {
9762
- color: var(--text-placeholder);
11145
+ color: var(--text-disabled);
9763
11146
  cursor: var(--cursor-disabled);
9764
11147
  }
9765
11148
 
9766
11149
  /* prefix·suffix·버튼이 붙어도 input 이 제 기본 폭을 고집해 상자를 넘지 않게 한다 */
9767
11150
 
11151
+ /* 글자 수. 칠 때마다 읽지 않게 aria-hidden 이다 */
11152
+
11153
+ .text-field-count {
11154
+ flex: none;
11155
+ font-size: var(--font-size-xsm);
11156
+ line-height: var(--line-height-xsm);
11157
+ color: var(--text-muted);
11158
+ font-variant-numeric: tabular-nums;
11159
+ }
11160
+
9768
11161
  .text-field-helper-text {
9769
11162
  margin-top: var(--spacing-6);
9770
11163
  color: var(--text-muted);
@@ -9833,6 +11226,13 @@ button.modal-with-double-button-close-button {
9833
11226
  --motion-slide-offset: translateY(calc(-1 * var(--spacing-16)));
9834
11227
  }
9835
11228
 
11229
+ .base-toast.position-top-center:where(.viewport) {
11230
+ top: 0;
11231
+ left: 50%;
11232
+ transform: translateX(-50%);
11233
+ --motion-slide-offset: translateY(calc(-1 * var(--spacing-16)));
11234
+ }
11235
+
9836
11236
  .base-toast.position-bottom-right:where(.viewport) {
9837
11237
  right: 0;
9838
11238
  bottom: 0;
@@ -9848,7 +11248,7 @@ button.modal-with-double-button-close-button {
9848
11248
  :is 로 위 position 규칙과 특이도를 맞추고 뒤에 둬서 left·transform 을 덮는다 */
9849
11249
 
9850
11250
  @media (width < 768px) {
9851
- .base-toast:where(.viewport):is(.position-top-right,.position-bottom-right,.position-bottom-center) {
11251
+ .base-toast:where(.viewport):is(.position-top-right,.position-top-center,.position-bottom-right,.position-bottom-center) {
9852
11252
  left: 0;
9853
11253
  right: 0;
9854
11254
  width: auto;
@@ -9940,6 +11340,62 @@ button.modal-with-double-button-close-button {
9940
11340
  color: var(--toast-error-description);
9941
11341
  }
9942
11342
 
11343
+ /* 흰 카드: 판은 바탕과 같은 흰색이라 그림자로 띄운다. variant 색은 아이콘 뒤 원에만 남는다.
11344
+ 다크에서는 --surface-elevated 가 바탕보다 밝아 그림자 없이도 판이 갈린다. variant 규칙 뒤에 둬서 바탕·글자색을 덮는다 */
11345
+
11346
+ .toast.surface-card {
11347
+ width: -moz-fit-content;
11348
+ width: fit-content;
11349
+ max-width: 100%;
11350
+ box-sizing: border-box;
11351
+ background-color: var(--surface-elevated);
11352
+ box-shadow: var(--shadow-floating);
11353
+ color: var(--text-primary);
11354
+ }
11355
+
11356
+ .toast.surface-card .toast-title {
11357
+ color: var(--text-primary);
11358
+ }
11359
+
11360
+ .toast.surface-card .toast-description {
11361
+ color: var(--text-tertiary);
11362
+ }
11363
+
11364
+ .toast.surface-card .toast-close {
11365
+ color: var(--icon-tertiary);
11366
+ }
11367
+
11368
+ .toast.surface-card .toast-icon {
11369
+ width: var(--icon-size-m);
11370
+ height: var(--icon-size-m);
11371
+ padding: var(--spacing-4);
11372
+ box-sizing: border-box;
11373
+ border-radius: var(--radius-circle);
11374
+ color: var(--text-on-brand);
11375
+ }
11376
+
11377
+ .toast.surface-card.variant-success .toast-icon {
11378
+ background-color: var(--toast-success-background);
11379
+ }
11380
+
11381
+ .toast.surface-card.variant-warning .toast-icon {
11382
+ background-color: var(--toast-warning-background);
11383
+ }
11384
+
11385
+ .toast.surface-card.variant-error .toast-icon {
11386
+ background-color: var(--toast-error-background);
11387
+ }
11388
+
11389
+ /* 카드는 글자 폭만큼이라 자리(position)의 가장자리에 붙인다 */
11390
+
11391
+ .base-toast:where(.viewport):is(.position-top-center,.position-bottom-center) > .toast.surface-card {
11392
+ align-self: center;
11393
+ }
11394
+
11395
+ .base-toast:where(.viewport):is(.position-top-right,.position-bottom-right) > .toast.surface-card {
11396
+ align-self: flex-end;
11397
+ }
11398
+
9943
11399
  /* success·warning·error 는 앞에 상태 아이콘을 둔다. SVG 에 박힌 색을 글자색으로 맞춘다 */
9944
11400
 
9945
11401
  .toast-icon {