@nurihaus/web-design-system 3.9.3 → 3.9.5

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 (273) hide show
  1. package/README.md +2 -0
  2. package/dist/.storybook/migration.d.ts +1 -0
  3. package/dist/.storybook/usage.d.ts +23 -0
  4. package/dist/agreement.js +1110 -0
  5. package/dist/ai/components.md +3506 -250
  6. package/dist/ai/motion.md +58 -6
  7. package/dist/ai/tokens.md +53 -25
  8. package/dist/alphabet-keypad.js +446 -0
  9. package/dist/asset.js +47 -5
  10. package/dist/avatar.js +50 -8
  11. package/dist/bar-chart.js +478 -0
  12. package/dist/board-row.js +379 -0
  13. package/dist/border.js +223 -0
  14. package/dist/bottom-cta.js +378 -0
  15. package/dist/bottom-info.js +253 -0
  16. package/dist/bottom-nav.js +12 -64
  17. package/dist/bottom-sheet.js +608 -0
  18. package/dist/check-box.js +29 -162
  19. package/dist/chip-group.js +2 -2
  20. package/dist/{chunk-5589.js → chunk-1657.js} +2 -34
  21. package/dist/{chunk-9387.js → chunk-1768.js} +2 -2
  22. package/dist/chunk-1983.js +37 -1
  23. package/dist/chunk-2046.js +73 -0
  24. package/dist/chunk-2060.js +34 -0
  25. package/dist/chunk-2308.js +184 -0
  26. package/dist/chunk-2777.js +1 -0
  27. package/dist/chunk-3091.js +54 -0
  28. package/dist/chunk-4109.js +115 -0
  29. package/dist/chunk-4205.js +47 -0
  30. package/dist/chunk-4324.js +109 -0
  31. package/dist/chunk-4328.js +69 -0
  32. package/dist/chunk-4558.js +5 -116
  33. package/dist/chunk-4917.js +1 -1
  34. package/dist/chunk-5670.js +1 -29
  35. package/dist/chunk-6096.js +183 -0
  36. package/dist/{chunk-8377.js → chunk-6149.js} +2 -36
  37. package/dist/chunk-6478.js +155 -0
  38. package/dist/chunk-6499.js +39 -0
  39. package/dist/chunk-6616.js +84 -0
  40. package/dist/chunk-674.js +133 -0
  41. package/dist/chunk-7024.js +152 -0
  42. package/dist/chunk-7232.js +122 -0
  43. package/dist/chunk-7298.js +1 -1
  44. package/dist/chunk-7589.js +40 -0
  45. package/dist/chunk-7593.js +85 -0
  46. package/dist/chunk-7653.js +16 -0
  47. package/dist/chunk-7737.js +21 -0
  48. package/dist/chunk-7739.js +1 -5
  49. package/dist/chunk-829.js +38 -0
  50. package/dist/chunk-8491.js +43 -0
  51. package/dist/chunk-8787.js +0 -180
  52. package/dist/chunk-8982.js +186 -0
  53. package/dist/chunk-910.js +1 -1
  54. package/dist/chunk-9497.js +11 -1
  55. package/dist/collapsible-menu.js +3 -3
  56. package/dist/components/agreement/agreement-props.d.ts +44 -0
  57. package/dist/components/agreement/agreement-type.d.ts +107 -0
  58. package/dist/components/agreement/agreement.d.ts +26 -0
  59. package/dist/components/agreement/agreement.stories.d.ts +72 -0
  60. package/dist/components/agreement/base-agreement.d.ts +40 -0
  61. package/dist/components/asset/asset-type.d.ts +34 -1
  62. package/dist/components/asset/asset.d.ts +4 -2
  63. package/dist/components/asset/asset.stories.d.ts +6 -0
  64. package/dist/components/asset/base-asset.d.ts +5 -1
  65. package/dist/components/bar-chart/bar-chart-fill.d.ts +6 -0
  66. package/dist/components/bar-chart/bar-chart-props.d.ts +17 -0
  67. package/dist/components/bar-chart/bar-chart-type.d.ts +52 -0
  68. package/dist/components/bar-chart/bar-chart.d.ts +4 -0
  69. package/dist/components/bar-chart/bar-chart.stories.d.ts +65 -0
  70. package/dist/components/bar-chart/base-bar-chart.d.ts +17 -0
  71. package/dist/components/board-row/base-board-row.d.ts +13 -0
  72. package/dist/components/board-row/board-row-props.d.ts +2 -0
  73. package/dist/components/board-row/board-row-type.d.ts +22 -0
  74. package/dist/components/board-row/board-row.d.ts +8 -0
  75. package/dist/components/board-row/board-row.stories.d.ts +32 -0
  76. package/dist/components/border/base-border.d.ts +4 -0
  77. package/dist/components/border/border-props.d.ts +10 -0
  78. package/dist/components/border/border-type.d.ts +7 -0
  79. package/dist/components/border/border.d.ts +5 -0
  80. package/dist/components/border/border.stories.d.ts +19 -0
  81. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
  82. package/dist/components/bottom-cta/base-bottom-cta.d.ts +4 -0
  83. package/dist/components/bottom-cta/bottom-cta-props.d.ts +10 -0
  84. package/dist/components/bottom-cta/bottom-cta-type.d.ts +39 -0
  85. package/dist/components/bottom-cta/bottom-cta.d.ts +35 -0
  86. package/dist/components/bottom-cta/bottom-cta.stories.d.ts +79 -0
  87. package/dist/components/bottom-info/base-bottom-info.d.ts +4 -0
  88. package/dist/components/bottom-info/bottom-info-props.d.ts +1 -0
  89. package/dist/components/bottom-info/bottom-info-type.d.ts +6 -0
  90. package/dist/components/bottom-info/bottom-info.d.ts +4 -0
  91. package/dist/components/bottom-info/bottom-info.stories.d.ts +22 -0
  92. package/dist/components/bottom-sheet/base-bottom-sheet.d.ts +17 -0
  93. package/dist/components/bottom-sheet/bottom-sheet-props.d.ts +1 -0
  94. package/dist/components/bottom-sheet/bottom-sheet-snap.d.ts +15 -0
  95. package/dist/components/bottom-sheet/bottom-sheet-type.d.ts +55 -0
  96. package/dist/components/bottom-sheet/bottom-sheet.d.ts +4 -0
  97. package/dist/components/bottom-sheet/bottom-sheet.stories.d.ts +47 -0
  98. package/dist/components/check-box/check-box-type.d.ts +3 -0
  99. package/dist/components/core/composer/index.d.ts +2 -0
  100. package/dist/components/elements/text/text-props.d.ts +1 -0
  101. package/dist/components/empty-state/empty-state-props.d.ts +5 -3
  102. package/dist/components/empty-state/empty-state-type.d.ts +17 -5
  103. package/dist/components/empty-state/empty-state.d.ts +8 -3
  104. package/dist/components/empty-state/empty-state.stories.d.ts +301 -9
  105. package/dist/components/grid-list/base-grid-list.d.ts +10 -0
  106. package/dist/components/grid-list/grid-list-props.d.ts +11 -0
  107. package/dist/components/grid-list/grid-list-type.d.ts +24 -0
  108. package/dist/components/grid-list/grid-list.d.ts +6 -0
  109. package/dist/components/grid-list/grid-list.stories.d.ts +30 -0
  110. package/dist/components/highlight/base-highlight.d.ts +14 -0
  111. package/dist/components/highlight/highlight-props.d.ts +2 -0
  112. package/dist/components/highlight/highlight-type.d.ts +42 -0
  113. package/dist/components/highlight/highlight.d.ts +4 -0
  114. package/dist/components/highlight/highlight.stories.d.ts +31 -0
  115. package/dist/components/icon/icon-paths.d.ts +16 -0
  116. package/dist/components/icon/icon.stories.d.ts +1 -1
  117. package/dist/components/icon-button/icon-button-type.d.ts +2 -0
  118. package/dist/components/icon-button/icon-button.stories.d.ts +2 -0
  119. package/dist/components/keypad/alphabet-keypad.d.ts +4 -0
  120. package/dist/components/keypad/alphabet-keypad.stories.d.ts +24 -0
  121. package/dist/components/keypad/base-keypad.d.ts +6 -0
  122. package/dist/components/keypad/full-secure-keypad.d.ts +4 -0
  123. package/dist/components/keypad/full-secure-keypad.stories.d.ts +26 -0
  124. package/dist/components/keypad/keypad-layout.d.ts +16 -0
  125. package/dist/components/keypad/keypad-props.d.ts +16 -0
  126. package/dist/components/keypad/keypad-type.d.ts +66 -0
  127. package/dist/components/keypad/number-keypad.d.ts +4 -0
  128. package/dist/components/keypad/number-keypad.stories.d.ts +26 -0
  129. package/dist/components/keypad/use-keypad-decoys.d.ts +10 -0
  130. package/dist/components/list/base-list.d.ts +3 -0
  131. package/dist/components/list/list-footer.d.ts +5 -0
  132. package/dist/components/list/list-footer.stories.d.ts +304 -0
  133. package/dist/components/list/list-group.d.ts +1 -1
  134. package/dist/components/list/list-group.stories.d.ts +2 -0
  135. package/dist/components/list/list-header.d.ts +5 -0
  136. package/dist/components/list/list-header.stories.d.ts +302 -0
  137. package/dist/components/list/list-props.d.ts +33 -1
  138. package/dist/components/list/list-row.d.ts +5 -4
  139. package/dist/components/list/list-row.stories.d.ts +22 -8
  140. package/dist/components/list/list-type.d.ts +44 -2
  141. package/dist/components/logging/logging-type.d.ts +1 -1
  142. package/dist/components/menu/base-menu.d.ts +21 -0
  143. package/dist/components/menu/menu-props.d.ts +2 -0
  144. package/dist/components/menu/menu-type.d.ts +70 -0
  145. package/dist/components/menu/menu.d.ts +8 -0
  146. package/dist/components/menu/menu.stories.d.ts +54 -0
  147. package/dist/components/message/message.stories.d.ts +9 -9
  148. package/dist/components/notice/notice.stories.d.ts +6 -6
  149. package/dist/components/numeric-spinner/base-numeric-spinner.d.ts +8 -0
  150. package/dist/components/numeric-spinner/numeric-spinner-props.d.ts +5 -0
  151. package/dist/components/numeric-spinner/numeric-spinner-type.d.ts +29 -0
  152. package/dist/components/numeric-spinner/numeric-spinner.d.ts +4 -0
  153. package/dist/components/numeric-spinner/numeric-spinner.stories.d.ts +36 -0
  154. package/dist/components/overlay/overlay-context.d.ts +10 -0
  155. package/dist/components/overlay/overlay-provider.d.ts +1 -1
  156. package/dist/components/overlay/overlay-type.d.ts +23 -0
  157. package/dist/components/overlay/overlay.d.ts +2 -1
  158. package/dist/components/overlay/overlay.stories.d.ts +3 -1
  159. package/dist/components/overlay/use-bottom-sheet.d.ts +3 -0
  160. package/dist/components/paragraph/base-paragraph.d.ts +14 -0
  161. package/dist/components/paragraph/paragraph-props.d.ts +25 -0
  162. package/dist/components/paragraph/paragraph-type.d.ts +33 -0
  163. package/dist/components/paragraph/paragraph.d.ts +9 -0
  164. package/dist/components/paragraph/paragraph.stories.d.ts +54 -0
  165. package/dist/components/post/base-post.d.ts +19 -0
  166. package/dist/components/post/post-props.d.ts +31 -0
  167. package/dist/components/post/post-type.d.ts +34 -0
  168. package/dist/components/post/post.d.ts +16 -0
  169. package/dist/components/post/post.stories.d.ts +35 -0
  170. package/dist/components/rating/base-rating.d.ts +11 -0
  171. package/dist/components/rating/rating-props.d.ts +11 -0
  172. package/dist/components/rating/rating-type.d.ts +46 -0
  173. package/dist/components/rating/rating.d.ts +4 -0
  174. package/dist/components/rating/rating.stories.d.ts +35 -0
  175. package/dist/components/search-field/base-search-field.d.ts +4 -0
  176. package/dist/components/search-field/search-field-props.d.ts +2 -0
  177. package/dist/components/search-field/search-field-type.d.ts +25 -0
  178. package/dist/components/search-field/search-field.d.ts +8 -0
  179. package/dist/components/search-field/search-field.stories.d.ts +39 -0
  180. package/dist/components/segmented-control/base-segmented-control.d.ts +8 -0
  181. package/dist/components/segmented-control/segmented-control-props.d.ts +5 -0
  182. package/dist/components/segmented-control/segmented-control-type.d.ts +31 -0
  183. package/dist/components/segmented-control/segmented-control.d.ts +4 -0
  184. package/dist/components/segmented-control/segmented-control.stories.d.ts +39 -0
  185. package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
  186. package/dist/components/skeleton/skeleton.stories.d.ts +6 -6
  187. package/dist/components/slider/base-slider.d.ts +13 -0
  188. package/dist/components/slider/slider-props.d.ts +10 -0
  189. package/dist/components/slider/slider-type.d.ts +46 -0
  190. package/dist/components/slider/slider.d.ts +4 -0
  191. package/dist/components/slider/slider.stories.d.ts +38 -0
  192. package/dist/components/split-text-field/base-split-text-field.d.ts +4 -0
  193. package/dist/components/split-text-field/split-text-field-props.d.ts +23 -0
  194. package/dist/components/split-text-field/split-text-field-type.d.ts +46 -0
  195. package/dist/components/split-text-field/split-text-field.d.ts +7 -0
  196. package/dist/components/split-text-field/split-text-field.stories.d.ts +38 -0
  197. package/dist/components/table-row/base-table-row.d.ts +4 -0
  198. package/dist/components/table-row/table-row-props.d.ts +14 -0
  199. package/dist/components/table-row/table-row-type.d.ts +13 -0
  200. package/dist/components/table-row/table-row.d.ts +5 -0
  201. package/dist/components/table-row/table-row.stories.d.ts +24 -0
  202. package/dist/components/text-area/text-area-type.d.ts +3 -2
  203. package/dist/components/text-button/base-text-button.d.ts +3 -0
  204. package/dist/components/text-button/text-button-props.d.ts +19 -0
  205. package/dist/components/text-button/text-button-type.d.ts +17 -0
  206. package/dist/components/text-button/text-button.d.ts +5 -0
  207. package/dist/components/text-button/text-button.stories.d.ts +47 -0
  208. package/dist/components/text-field/text-field-type.d.ts +5 -3
  209. package/dist/components/toast/toast.stories.d.ts +5 -5
  210. package/dist/components/top/base-top.d.ts +4 -0
  211. package/dist/components/top/top-props.d.ts +12 -0
  212. package/dist/components/top/top-type.d.ts +20 -0
  213. package/dist/components/top/top.d.ts +5 -0
  214. package/dist/components/top/top.stories.d.ts +320 -0
  215. package/dist/components.css +2221 -116
  216. package/dist/cta-button.js +11 -9
  217. package/dist/drawer.js +18 -113
  218. package/dist/drop-down.js +4 -4
  219. package/dist/empty-state.js +16 -7
  220. package/dist/full-secure-keypad.js +524 -0
  221. package/dist/grid-list.js +378 -0
  222. package/dist/helpers/hooks/useIndicatorPosition.d.ts +7 -0
  223. package/dist/helpers/hooks/useKeyboardInset.d.ts +5 -0
  224. package/dist/helpers/hooks/useScrollStart.d.ts +9 -0
  225. package/dist/helpers/motion/use-reveal-children.d.ts +6 -0
  226. package/dist/helpers/types/propsDef.d.ts +4 -2
  227. package/dist/highlight.js +492 -0
  228. package/dist/icon-button.js +53 -96
  229. package/dist/icon-text-badge.js +5 -3
  230. package/dist/icon-text-option-badge.js +4 -2
  231. package/dist/index.d.ts +52 -4
  232. package/dist/index.js +11271 -4671
  233. package/dist/list-footer.js +339 -0
  234. package/dist/list-group.js +61 -18
  235. package/dist/list-header.js +293 -0
  236. package/dist/list-row.js +243 -26
  237. package/dist/loading.js +7 -5
  238. package/dist/media-thumbnail.js +6 -6
  239. package/dist/menu.js +527 -0
  240. package/dist/message-composer.js +2 -2
  241. package/dist/modal-with-double-button.js +17 -13
  242. package/dist/modal.js +9 -7
  243. package/dist/notice.js +14 -12
  244. package/dist/number-keypad.js +436 -0
  245. package/dist/numeric-spinner.js +396 -0
  246. package/dist/option-badge.js +5 -3
  247. package/dist/overlay.js +555 -21
  248. package/dist/pagination.js +2 -2
  249. package/dist/paragraph.js +286 -0
  250. package/dist/post.js +568 -0
  251. package/dist/radio.js +5 -3
  252. package/dist/rating.js +437 -0
  253. package/dist/scripts/usage-doc.d.mts +83 -0
  254. package/dist/search-field.js +523 -0
  255. package/dist/segmented-control.js +409 -0
  256. package/dist/skeleton-group.js +28 -151
  257. package/dist/skeleton.js +3 -1
  258. package/dist/slider.js +419 -0
  259. package/dist/split-text-field.js +498 -0
  260. package/dist/styles.css +1926 -159
  261. package/dist/switch.js +5 -3
  262. package/dist/table-row.js +284 -0
  263. package/dist/tabs.js +13 -69
  264. package/dist/text-area.js +26 -15
  265. package/dist/text-button.js +357 -0
  266. package/dist/text-field.js +56 -206
  267. package/dist/text.js +5 -7
  268. package/dist/toast.js +15 -13
  269. package/dist/tokens.css +66 -10
  270. package/dist/tooltip.js +2 -2
  271. package/dist/top.js +312 -0
  272. package/package.json +107 -2
  273. package/dist/chunk-3839.js +0 -54
@@ -178,6 +178,13 @@
178
178
  outline-offset: var(--focus-ring-offset);
179
179
  }
180
180
 
181
+ /* 포커스를 보이지 않는 입력이 받는 컴포넌트(Rating 의 range)는 그 입력을 바로 감싼 요소에 링을 그린다 */
182
+
183
+ :where(.nuri-theme):has(> [data-focus-proxy]:focus-visible) {
184
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
185
+ outline-offset: var(--focus-ring-offset);
186
+ }
187
+
181
188
  /* 공용 키프레임. 컴포넌트 CSS 보다 앞에 둔다 */
182
189
 
183
190
  /*
@@ -597,6 +604,277 @@
597
604
 
598
605
  /* Component */
599
606
 
607
+ .base-agreement:where(.row) {
608
+ display: flex;
609
+ align-items: center;
610
+ box-sizing: border-box;
611
+ width: 100%;
612
+ color: var(--text-primary);
613
+ }
614
+
615
+ .base-agreement:where(.pressable) {
616
+ cursor: var(--cursor-button);
617
+ -webkit-tap-highlight-color: transparent;
618
+ }
619
+
620
+ .base-agreement:where(.group) {
621
+ position: relative;
622
+ display: flex;
623
+ flex-direction: column;
624
+ }
625
+
626
+ .base-agreement:where(.checkbox-control) {
627
+ flex: none;
628
+ padding: 0;
629
+ cursor: var(--cursor-button);
630
+ }
631
+
632
+ .base-agreement[data-disabled]:where(.checkbox-control) {
633
+ cursor: var(--cursor-disabled);
634
+ }
635
+
636
+ /***************************************************************************************************
637
+ * *
638
+ * agreement *
639
+ * *
640
+ ***************************************************************************************************/
641
+
642
+ /* 크기는 변수로 내린다. Header 는 바깥 div 가 size 클래스를 들고 안쪽 행이 물려받는다 */
643
+
644
+ .size-s:where(.agreement,.agreement-header) {
645
+ --agreement-row-height: var(--agreement-row-height-s);
646
+ --agreement-control-size: var(--checkbox-size-s);
647
+ --agreement-font-size: var(--font-size-sm);
648
+ --agreement-line-height: var(--line-height-sm);
649
+ }
650
+
651
+ .size-m:where(.agreement,.agreement-header) {
652
+ --agreement-row-height: var(--agreement-row-height-m);
653
+ --agreement-control-size: var(--checkbox-size-m);
654
+ --agreement-font-size: var(--font-size-base);
655
+ --agreement-line-height: var(--line-height-base);
656
+ }
657
+
658
+ .size-l:where(.agreement,.agreement-header) {
659
+ --agreement-row-height: var(--agreement-row-height-l);
660
+ --agreement-control-size: var(--checkbox-size-l);
661
+ --agreement-font-size: var(--font-size-lg);
662
+ --agreement-line-height: var(--line-height-lg);
663
+ }
664
+
665
+ /* 전체 동의는 같은 size 의 행보다 글자가 한 단계 크다 */
666
+
667
+ .agreement-header.size-s {
668
+ --agreement-font-size: var(--font-size-base);
669
+ --agreement-line-height: var(--line-height-base);
670
+ }
671
+
672
+ .agreement-header.size-m {
673
+ --agreement-font-size: var(--font-size-lg);
674
+ --agreement-line-height: var(--line-height-lg);
675
+ }
676
+
677
+ .agreement-header.size-l {
678
+ --agreement-font-size: var(--font-size-xl);
679
+ --agreement-line-height: var(--line-height-xl);
680
+ }
681
+
682
+ .agreement-header .agreement-text-title {
683
+ font-weight: var(--font-weight-bold);
684
+ }
685
+
686
+ /* 들여쓰기는 행 자신의 단계(indent)와 IndentPushable.Content 가 밀어 넣은 한 단계를 더한다 */
687
+
688
+ .agreement {
689
+ gap: var(--spacing-12);
690
+ min-height: var(--agreement-row-height);
691
+ padding-block: var(--spacing-8);
692
+ padding-inline: calc(
693
+ var(--spacing-20) + var(--agreement-indent) *
694
+ (var(--agreement-row-indent, 0) + var(--agreement-pushed, 0))
695
+ )
696
+ var(--spacing-20);
697
+ }
698
+
699
+ .agreement.indent-1 {
700
+ --agreement-row-indent: 1;
701
+ }
702
+
703
+ .agreement.indent-2 {
704
+ --agreement-row-indent: 2;
705
+ }
706
+
707
+ .agreement-left,
708
+ .agreement-right {
709
+ flex: none;
710
+ display: flex;
711
+ align-items: center;
712
+ gap: var(--spacing-4);
713
+ }
714
+
715
+ /* 체크박스가 숨은 행은 왼쪽 자리 간격도 남기지 않는다 */
716
+
717
+ .agreement-left:has(> .agreement-checkbox.variant-hidden:only-child) {
718
+ display: contents;
719
+ }
720
+
721
+ .agreement-middle {
722
+ flex: 1;
723
+ min-width: 0;
724
+ }
725
+
726
+ .agreement-text {
727
+ display: flex;
728
+ flex-direction: column;
729
+ gap: var(--spacing-2);
730
+ }
731
+
732
+ .agreement-text-title {
733
+ font-size: var(--agreement-font-size);
734
+ line-height: var(--agreement-line-height);
735
+ font-weight: var(--font-weight-medium);
736
+ overflow-wrap: anywhere;
737
+ }
738
+
739
+ .agreement-text-description {
740
+ color: var(--text-tertiary);
741
+ font-size: var(--font-size-sm);
742
+ line-height: var(--line-height-sm);
743
+ }
744
+
745
+ .agreement-necessity {
746
+ margin-inline-end: var(--spacing-4);
747
+ }
748
+
749
+ .agreement-necessity.type-mandatory {
750
+ color: var(--text-brand);
751
+ }
752
+
753
+ .agreement-necessity.type-optional {
754
+ color: var(--text-tertiary);
755
+ }
756
+
757
+ .agreement-badge {
758
+ display: inline-flex;
759
+ flex: none;
760
+ }
761
+
762
+ .agreement-checkbox {
763
+ display: inline-flex;
764
+
765
+ /* 낭독기·키보드에는 남기고 화면에서만 지운다 */
766
+ }
767
+
768
+ .agreement-checkbox.variant-hidden {
769
+ position: absolute;
770
+ width: 1px; /* raw-px */
771
+ height: 1px; /* raw-px */
772
+ overflow: hidden;
773
+ clip-path: inset(50%);
774
+ white-space: nowrap;
775
+ }
776
+
777
+ /* dot: 원 테두리 안에서 브랜드 점이 confirm 스프링으로 커진다. --confirm-delay 는 차례 연출의 지연이다 */
778
+
779
+ .agreement-dot {
780
+ display: inline-flex;
781
+ align-items: center;
782
+ justify-content: center;
783
+ box-sizing: border-box;
784
+ width: var(--agreement-control-size, var(--checkbox-size-m));
785
+ height: var(--agreement-control-size, var(--checkbox-size-m));
786
+ border: var(--border-width-strong) solid var(--border-default);
787
+ border-radius: var(--radius-circle);
788
+ background-color: var(--surface-base);
789
+ transition: border-color var(--motion-confirm-fade-duration) var(--motion-confirm-fade-ease)
790
+ var(--confirm-delay, 0ms);
791
+ }
792
+
793
+ .agreement-dot[data-state='checked'] {
794
+ border-color: var(--border-accent);
795
+ }
796
+
797
+ .agreement-dot[data-disabled] {
798
+ border-color: var(--border-disabled);
799
+ background-color: var(--surface-control);
800
+ }
801
+
802
+ .agreement-dot-mark {
803
+ width: 50%;
804
+ height: 50%;
805
+ border-radius: var(--radius-circle);
806
+ background-color: var(--surface-brand);
807
+ transform: scale(0);
808
+ transition: transform var(--motion-confirm-weak-duration) var(--motion-confirm-weak-ease)
809
+ var(--confirm-delay, 0ms);
810
+ }
811
+
812
+ .agreement-dot-mark[data-motion='strong'] {
813
+ transition: transform var(--motion-confirm-strong-duration) var(--motion-confirm-strong-ease)
814
+ var(--confirm-delay, 0ms);
815
+ }
816
+
817
+ .agreement-dot-mark[data-state='checked'] {
818
+ transform: scale(1);
819
+ }
820
+
821
+ [data-disabled] > .agreement-dot-mark {
822
+ background-color: var(--surface-disabled);
823
+ }
824
+
825
+ .agreement-description {
826
+ padding: 0 var(--spacing-20) var(--spacing-12);
827
+ color: var(--text-tertiary);
828
+ font-size: var(--font-size-sm);
829
+ line-height: var(--line-height-sm);
830
+ }
831
+
832
+ .agreement-description.variant-box {
833
+ margin: 0 var(--spacing-20) var(--spacing-12);
834
+ padding: var(--spacing-12) var(--spacing-16);
835
+ border-radius: var(--radius-control);
836
+ background-color: var(--surface-subtle);
837
+ }
838
+
839
+ .agreement-expand-trigger > * {
840
+ transition: transform var(--motion-expand-duration) var(--motion-expand-ease);
841
+ }
842
+
843
+ .agreement-expand-trigger[data-state='open'] > * {
844
+ transform: rotate(var(--motion-expand-rotate));
845
+ }
846
+
847
+ .agreement-collapsible-content {
848
+ /* 블록 그대로 둔다. display 를 주면 Radix 가 접힌 뒤 다는 hidden 이 무력해진다(docs/css-conventions.md) */
849
+ --motion-content-height: var(--radix-collapsible-content-height);
850
+ }
851
+
852
+ .agreement-collapsible-content[data-state='open'] {
853
+ animation: motion-expand-open var(--motion-expand-duration) var(--motion-expand-ease);
854
+ }
855
+
856
+ .agreement-collapsible-content[data-state='closed'] {
857
+ overflow: hidden;
858
+ animation: motion-expand-close var(--motion-expand-duration) var(--motion-expand-ease) forwards;
859
+ }
860
+
861
+ .agreement-collapsible-content.pushed {
862
+ --agreement-pushed: 1;
863
+ }
864
+
865
+ /* 목록 아래 가장자리에 바탕색으로 녹아드는 띠. 스크롤되는 동안 보이는 영역 아래에 붙어 있다 */
866
+
867
+ .agreement-group.gradient::after {
868
+ content: '';
869
+ position: sticky;
870
+ bottom: 0;
871
+ display: block;
872
+ height: var(--spacing-24);
873
+ margin-top: calc(var(--spacing-24) * -1);
874
+ background-image: linear-gradient(to bottom, transparent, var(--surface-base));
875
+ pointer-events: none;
876
+ }
877
+
600
878
  /* 틀(frame)은 모서리를 자르고, 액세서리는 틀의 형제라 잘리지 않는다. anchor 가 둘을 겹쳐 놓는다 */
601
879
 
602
880
  .base-asset:where(.anchor) {
@@ -628,6 +906,14 @@
628
906
  white-space: nowrap;
629
907
  }
630
908
 
909
+ /* Lottie·영상은 사진처럼 틀을 가득 채운다 */
910
+
911
+ .base-asset:where(.lottie,.video) {
912
+ display: block;
913
+ width: 100%;
914
+ height: 100%;
915
+ }
916
+
631
917
  /***************************************************************************************************
632
918
  * *
633
919
  * asset *
@@ -833,6 +1119,24 @@
833
1119
  object-fit: contain;
834
1120
  }
835
1121
 
1122
+ .asset-video.fit-cover {
1123
+ -o-object-fit: cover;
1124
+ object-fit: cover;
1125
+ }
1126
+
1127
+ .asset-video.fit-contain {
1128
+ -o-object-fit: contain;
1129
+ object-fit: contain;
1130
+ }
1131
+
1132
+ /* 플레이어가 그리는 루트(div·canvas)가 감싸개를 채운다 */
1133
+
1134
+ .asset-lottie > .asset-lottie-player {
1135
+ display: block;
1136
+ width: 100%;
1137
+ height: 100%;
1138
+ }
1139
+
836
1140
  /* 원·크기·자르기·배지 자리는 Asset.Frame(shape circle)이 그린다. 여기는 아바타만의 것이다 */
837
1141
 
838
1142
  .base-avatar .avatar-fallback {
@@ -1032,53 +1336,444 @@
1032
1336
  border: var(--hairline) solid var(--border-default);
1033
1337
  }
1034
1338
 
1035
- /* 스크롤하는 조상의 맨 아래에 붙는다. 모션은 없다 — 주 행동·입력을 담아 스크롤로 숨기지 않는다 */
1339
+ /* 막대 칸과 라벨 줄은 같은 열(--bar-count)을 나눠 쓴다. 라벨을 따로 두어 라벨이 빠진 칸도 막대 높이가 같다 */
1036
1340
 
1037
- .base-bottom-bar {
1038
- position: sticky;
1039
- bottom: 0;
1040
- z-index: var(--z-sticky);
1041
- display: flex;
1042
- }
1341
+ .base-bar-chart:where(.root) {
1342
+ display: flex;
1343
+ flex-direction: column;
1344
+ box-sizing: border-box;
1345
+ }
1043
1346
 
1044
- .base-bottom-bar > * {
1347
+ .base-bar-chart:where(.plot) {
1348
+ display: grid;
1349
+ grid-template-columns: repeat(var(--bar-count), minmax(0, 1fr));
1045
1350
  flex: 1;
1351
+ min-height: 0;
1352
+ }
1353
+
1354
+ /* 늘어난 격자 칸이라 높이가 정해져 있고, 막대의 % 높이가 이 칸을 기준으로 잡힌다 */
1355
+
1356
+ .base-bar-chart:where(.column) {
1357
+ position: relative;
1358
+ display: flex;
1359
+ align-items: flex-end;
1360
+ justify-content: center;
1361
+ min-width: 0;
1362
+ }
1363
+
1364
+ .base-bar-chart:where(.labels) {
1365
+ display: grid;
1366
+ grid-template-columns: repeat(var(--bar-count), minmax(0, 1fr));
1367
+ }
1368
+
1369
+ .base-bar-chart:where(.label) {
1370
+ grid-column: var(--bar-column);
1046
1371
  min-width: 0;
1047
1372
  }
1048
1373
 
1374
+ /* 낭독기만 읽는 대체 글 */
1375
+
1376
+ .base-bar-chart:where(.description) {
1377
+ position: absolute;
1378
+ width: 1px; /* raw-px */
1379
+ height: 1px; /* raw-px */
1380
+ overflow: hidden;
1381
+ clip-path: inset(50%);
1382
+ white-space: nowrap;
1383
+ }
1384
+
1049
1385
  /***************************************************************************************************
1050
1386
  * *
1051
- * bottom-bar *
1387
+ * bar-chart *
1052
1388
  * *
1053
1389
  ***************************************************************************************************/
1054
1390
 
1055
- .bottom-bar {
1391
+ .bar-chart {
1392
+ --bar-chart-gap: var(--spacing-8);
1393
+
1394
+ position: relative;
1395
+ height: var(--bar-chart-height);
1056
1396
  gap: var(--spacing-8);
1057
- padding: var(--spacing-12) var(--spacing-16);
1058
- /* 기기 홈 막대만큼 아래를 더 비운다. env() 의 대체값 0 은 단위가 있어야 calc 가 성립한다 */
1059
- padding-bottom: calc(var(--spacing-12) + env(safe-area-inset-bottom, 0px)); /* raw-px */
1060
- border-top: var(--hairline) solid var(--border-subtle);
1061
- background-color: var(--surface-base);
1397
+
1398
+ /* 막대가 많으면 칸 사이를 좁혀 막대 폭을 지킨다 */
1062
1399
  }
1063
1400
 
1064
- .base-bottom-nav:where(.root) {
1065
- position: fixed;
1066
- left: var(--spacing-16);
1067
- right: var(--spacing-16);
1068
- /* 기기 홈 막대만큼 더 띄운다. env() 의 대체값 0 은 단위가 있어야 calc 가 성립한다 */
1069
- bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px)); /* raw-px */
1070
- z-index: var(--z-sticky);
1071
- display: grid;
1072
- grid-template-columns: repeat(var(--bottom-nav-count), minmax(0, 1fr));
1073
- height: var(--bottom-nav-height);
1074
- padding: var(--bottom-nav-padding);
1075
- box-sizing: border-box;
1076
- border-radius: var(--radius-pill);
1077
- isolation: isolate;
1401
+ .bar-chart[data-dense] {
1402
+ --bar-chart-gap: var(--spacing-2);
1078
1403
  }
1079
1404
 
1080
- .base-bottom-nav:where(.indicator) {
1081
- position: absolute;
1405
+ /* 가장 높은 막대 위 글이 차트 밖으로 나가지 않게 글 한 줄만큼 비운다 */
1406
+
1407
+ .bar-chart[data-annotated] .bar-chart-plot {
1408
+ padding-top: calc(var(--line-height-xsm) + var(--spacing-4));
1409
+ }
1410
+
1411
+ .bar-chart-plot,
1412
+ .bar-chart-labels {
1413
+ -moz-column-gap: var(--bar-chart-gap);
1414
+ column-gap: var(--bar-chart-gap);
1415
+ }
1416
+
1417
+ .bar-chart-bar {
1418
+ display: block;
1419
+ width: 100%;
1420
+ max-width: var(--bar-chart-bar-max-width);
1421
+ height: calc(var(--bar-ratio, 0) * 100%);
1422
+ border-radius: var(--radius-mark) var(--radius-mark) 0 0;
1423
+ transform-origin: bottom;
1424
+ }
1425
+
1426
+ .bar-chart-bar.variant-brand {
1427
+ background-color: var(--surface-brand);
1428
+ }
1429
+
1430
+ .bar-chart-bar.variant-neutral {
1431
+ background-color: var(--surface-strong);
1432
+ }
1433
+
1434
+ .bar-chart-annotation {
1435
+ position: absolute;
1436
+ bottom: calc(var(--bar-ratio, 0) * 100% + var(--spacing-4));
1437
+ left: 50%;
1438
+ color: var(--text-secondary);
1439
+ font-size: var(--font-size-xsm);
1440
+ line-height: var(--line-height-xsm);
1441
+ font-weight: var(--font-weight-semibold);
1442
+ white-space: nowrap;
1443
+ transform: translateX(-50%);
1444
+ }
1445
+
1446
+ .bar-chart-label {
1447
+ overflow: hidden;
1448
+ color: var(--text-muted);
1449
+ font-size: var(--font-size-xsm);
1450
+ line-height: var(--line-height-xsm);
1451
+ text-align: center;
1452
+ white-space: nowrap;
1453
+ text-overflow: ellipsis;
1454
+ }
1455
+
1456
+ /* 첫·끝 라벨만 남은 차트. 좁은 칸을 넘쳐 안쪽으로 펼친다 */
1457
+
1458
+ .bar-chart[data-dense] .bar-chart-label {
1459
+ overflow: visible;
1460
+ }
1461
+
1462
+ :is(.bar-chart[data-dense] .bar-chart-label):first-child {
1463
+ justify-self: start;
1464
+ text-align: start;
1465
+ }
1466
+
1467
+ :is(.bar-chart[data-dense] .bar-chart-label):last-child {
1468
+ justify-self: end;
1469
+ text-align: end;
1470
+ }
1471
+
1472
+ .bar-chart[data-animated] .bar-chart-bar {
1473
+ transition-property: transform, height;
1474
+ transition-duration: var(--motion-progress-duration);
1475
+ transition-timing-function: var(--motion-progress-ease);
1476
+ }
1477
+
1478
+ .bar-chart[data-animated] .bar-chart-annotation {
1479
+ transition-property: opacity, bottom;
1480
+ transition-duration: var(--motion-progress-duration);
1481
+ transition-timing-function: var(--motion-progress-ease);
1482
+ }
1483
+
1484
+ /* 차오르는 동안 위 글은 아직 없는 막대 끝에 떠 있지 않게 감춘다 */
1485
+
1486
+ .bar-chart[data-animated]:not([data-mounted]) .bar-chart-bar {
1487
+ transform: scaleY(0);
1488
+ }
1489
+
1490
+ .bar-chart[data-animated]:not([data-mounted]) .bar-chart-annotation {
1491
+ opacity: 0;
1492
+ }
1493
+
1494
+ /* stagger 면 막대도 제 칸이 나타나는 순서대로 차오른다 */
1495
+
1496
+ .bar-chart-column.motion-reveal .bar-chart-bar,.bar-chart-column.motion-reveal .bar-chart-annotation {
1497
+ transition-delay: calc(var(--i, 0) * var(--motion-reveal-gap));
1498
+ }
1499
+
1500
+ .base-board-row:where(.trigger) {
1501
+ position: relative;
1502
+ display: flex;
1503
+ align-items: center;
1504
+ box-sizing: border-box;
1505
+ width: 100%;
1506
+ border: 0;
1507
+ background-color: transparent;
1508
+ color: inherit;
1509
+ text-align: start;
1510
+ cursor: pointer;
1511
+ }
1512
+
1513
+ .base-board-row:where(.group) {
1514
+ display: flex;
1515
+ flex-direction: column;
1516
+ }
1517
+
1518
+ /***************************************************************************************************
1519
+ * *
1520
+ * board-row *
1521
+ * *
1522
+ ***************************************************************************************************/
1523
+
1524
+ .board-row-trigger {
1525
+ gap: var(--spacing-8);
1526
+ min-height: var(--list-row-height-m);
1527
+ padding: var(--spacing-12) var(--spacing-16);
1528
+
1529
+ /* 행 사이 선이 그룹 가장자리에 붙어 있어 전역 포커스 링을 안쪽에 그린다 */
1530
+ }
1531
+
1532
+ .board-row-trigger:focus-visible {
1533
+ outline-offset: calc(var(--focus-ring-width) * -1);
1534
+ }
1535
+
1536
+ .board-row-prefix {
1537
+ flex: none;
1538
+ color: var(--text-brand);
1539
+ font-size: var(--font-size-base);
1540
+ line-height: var(--line-height-base);
1541
+ font-weight: var(--font-weight-semibold);
1542
+ }
1543
+
1544
+ .board-row-title {
1545
+ flex: 1;
1546
+ min-width: 0;
1547
+ color: var(--text-body);
1548
+ font-size: var(--font-size-base);
1549
+ line-height: var(--line-height-base);
1550
+ font-weight: var(--font-weight-medium);
1551
+ }
1552
+
1553
+ .board-row-chevron {
1554
+ flex: none;
1555
+ color: var(--text-muted);
1556
+ transition: transform var(--motion-expand-duration) var(--motion-expand-ease);
1557
+ }
1558
+
1559
+ .base-board-row.trigger[data-state='open'] .board-row-chevron {
1560
+ transform: rotate(var(--motion-expand-rotate));
1561
+ }
1562
+
1563
+ .board-row-content {
1564
+ /* 블록 그대로 둔다. display 를 주면 Radix 가 접힌 뒤 다는 hidden 이 무력해진다(docs/css-conventions.md).
1565
+ 열린 채로 둘 때는 overflow 를 숨기지 않는다(본문 안 포커스 링이 잘리지 않게). 여닫는 동안은 키프레임이 숨긴다 */
1566
+ --motion-content-height: var(--radix-collapsible-content-height);
1567
+ }
1568
+
1569
+ .board-row-content[data-state='open'] {
1570
+ animation: motion-expand-open var(--motion-expand-duration) var(--motion-expand-ease);
1571
+ }
1572
+
1573
+ .board-row-content[data-state='closed'] {
1574
+ overflow: hidden;
1575
+ animation: motion-expand-close var(--motion-expand-duration) var(--motion-expand-ease) forwards;
1576
+ }
1577
+
1578
+ /* 안쪽 여백은 안쪽 감싸개에 둔다. Radix 가 재는 높이 안에 들어 함께 접힌다 */
1579
+
1580
+ .board-row-body {
1581
+ padding: 0 var(--spacing-16) var(--spacing-16);
1582
+ color: var(--text-secondary);
1583
+ font-size: var(--font-size-sm);
1584
+ line-height: var(--line-height-sm);
1585
+ }
1586
+
1587
+ /* 행 사이 선 */
1588
+
1589
+ .board-row-group > .board-row + .board-row {
1590
+ border-top: var(--hairline) solid var(--border-subtle);
1591
+ }
1592
+
1593
+ .base-border {
1594
+ margin: 0;
1595
+ border: 0;
1596
+ }
1597
+
1598
+ /***************************************************************************************************
1599
+ * *
1600
+ * border *
1601
+ * *
1602
+ ***************************************************************************************************/
1603
+
1604
+ /* .border 는 앱의 유틸리티 CSS(Tailwind 등)에도 흔한 이름이라 base 클래스와 함께 잡는다 */
1605
+
1606
+ .base-border.border {
1607
+ border-top: var(--hairline) solid var(--border-subtle);
1608
+ }
1609
+
1610
+ .base-border.border.variant-inset {
1611
+ margin: 0 var(--spacing-16);
1612
+ }
1613
+
1614
+ .base-border.border.variant-section {
1615
+ height: var(--border-section-height);
1616
+ border-top: 0;
1617
+ background-color: var(--surface-muted);
1618
+ }
1619
+
1620
+ /* 스크롤하는 조상의 맨 아래에 붙는다. 모션은 없다 — 주 행동·입력을 담아 스크롤로 숨기지 않는다 */
1621
+
1622
+ .base-bottom-bar {
1623
+ position: sticky;
1624
+ bottom: 0;
1625
+ z-index: var(--z-sticky);
1626
+ display: flex;
1627
+ }
1628
+
1629
+ .base-bottom-bar > * {
1630
+ flex: 1;
1631
+ min-width: 0;
1632
+ }
1633
+
1634
+ /***************************************************************************************************
1635
+ * *
1636
+ * bottom-bar *
1637
+ * *
1638
+ ***************************************************************************************************/
1639
+
1640
+ .bottom-bar {
1641
+ gap: var(--spacing-8);
1642
+ padding: var(--spacing-12) var(--spacing-16);
1643
+ /* 기기 홈 막대만큼 아래를 더 비운다. env() 의 대체값 0 은 단위가 있어야 calc 가 성립한다 */
1644
+ padding-bottom: calc(var(--spacing-12) + env(safe-area-inset-bottom, 0px)); /* raw-px */
1645
+ border-top: var(--hairline) solid var(--border-subtle);
1646
+ background-color: var(--surface-base);
1647
+ }
1648
+
1649
+ /* 화면 아래 주 버튼 바. 기본은 흐름 안에 있고 data-fixed 면 화면 아래에 붙는다 */
1650
+
1651
+ .base-bottom-cta {
1652
+ position: relative;
1653
+ display: flex;
1654
+ flex-direction: column;
1655
+ gap: var(--spacing-12);
1656
+
1657
+ /* 키보드가 열리면 가린 높이만큼 올라간다. 값은 useKeyboardInset 이 루트 style 에 둔다 */
1658
+ }
1659
+
1660
+ .base-bottom-cta[data-fixed] {
1661
+ position: fixed;
1662
+ left: 0;
1663
+ right: 0;
1664
+ bottom: var(--bottom-cta-keyboard, 0px);
1665
+ z-index: var(--z-sticky);
1666
+ }
1667
+
1668
+ /***************************************************************************************************
1669
+ * *
1670
+ * bottom-cta *
1671
+ * *
1672
+ ***************************************************************************************************/
1673
+
1674
+ .bottom-cta {
1675
+ padding: var(--spacing-12) var(--spacing-16) var(--spacing-20);
1676
+ /* hideOnScroll: 위 띠와 키보드 높이까지 더해 화면 밖으로 내린다. 키보드로 버튼에 들어오면 다시 올린다 */
1677
+ transition: transform var(--motion-dismiss-on-scroll-duration)
1678
+ var(--motion-dismiss-on-scroll-ease);
1679
+
1680
+ /* 기기 홈 막대가 기본 아래 여백보다 크면 그만큼 비운다. env() 의 대체값 0 은 단위가 있어야 max 가 성립한다 */
1681
+ }
1682
+
1683
+ .bottom-cta.safe-area {
1684
+ padding-bottom: max(env(safe-area-inset-bottom, 0px), var(--spacing-20)); /* raw-px */
1685
+ }
1686
+
1687
+ .bottom-cta.background-default {
1688
+ background-color: var(--surface-base);
1689
+ }
1690
+
1691
+ /* 고정되면 위 내용이 바 뒤로 녹아 사라지게 바탕색 띠를 바 위에 얹는다 */
1692
+
1693
+ .bottom-cta.background-default[data-fixed]::before {
1694
+ content: '';
1695
+ position: absolute;
1696
+ left: 0;
1697
+ right: 0;
1698
+ bottom: 100%;
1699
+ height: var(--bottom-cta-fade-height);
1700
+ background: linear-gradient(to bottom, transparent, var(--surface-base));
1701
+ pointer-events: none;
1702
+ }
1703
+
1704
+ .bottom-cta[data-hidden]:not(:focus-within) {
1705
+ transform: translateY(
1706
+ calc(100% + var(--bottom-cta-fade-height) + var(--bottom-cta-keyboard, 0px))
1707
+ );
1708
+ }
1709
+
1710
+ /* 바로 아래 버튼들이 폭을 똑같이 나눠 갖는다 */
1711
+
1712
+ .bottom-cta-actions {
1713
+ display: flex;
1714
+ gap: var(--spacing-8);
1715
+ }
1716
+
1717
+ .bottom-cta-actions > * {
1718
+ flex: 1;
1719
+ min-width: 0;
1720
+ }
1721
+
1722
+ /* takeSpace: 고정된 바가 흐름에서 빠진 자리. 높이는 bottom-cta.tsx 가 바를 재서 넣는다 */
1723
+
1724
+ .bottom-cta-space {
1725
+ flex: none;
1726
+ height: var(--bottom-cta-height, var(--bottom-cta-height-min));
1727
+ }
1728
+
1729
+ /* 화면 맨 아래 법적 고지. 글자는 sm·muted 이고 안에 든 Post.Ul 이 이 크기와 색을 물려받는다 */
1730
+
1731
+ .base-bottom-info {
1732
+ position: relative;
1733
+ padding: var(--spacing-24) var(--spacing-20);
1734
+ background-color: var(--surface-muted);
1735
+ color: var(--text-muted);
1736
+ font-size: var(--font-size-sm);
1737
+ line-height: var(--line-height-sm);
1738
+ }
1739
+
1740
+ /***************************************************************************************************
1741
+ * *
1742
+ * bottom-info *
1743
+ * *
1744
+ ***************************************************************************************************/
1745
+
1746
+ /* 위 가장자리 바로 바깥에 화면 바탕(surface-base)에서 고지 바탕으로 넘어가는 띠를 얹어 경계선이 보이지 않게 한다 */
1747
+
1748
+ .bottom-info.gradient::before {
1749
+ content: '';
1750
+ position: absolute;
1751
+ right: 0;
1752
+ bottom: 100%;
1753
+ left: 0;
1754
+ height: var(--spacing-24);
1755
+ background-image: linear-gradient(to bottom, var(--surface-base), var(--surface-muted));
1756
+ pointer-events: none;
1757
+ }
1758
+
1759
+ .base-bottom-nav:where(.root) {
1760
+ position: fixed;
1761
+ left: var(--spacing-16);
1762
+ right: var(--spacing-16);
1763
+ /* 기기 홈 막대만큼 더 띄운다. env() 의 대체값 0 은 단위가 있어야 calc 가 성립한다 */
1764
+ bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px)); /* raw-px */
1765
+ z-index: var(--z-sticky);
1766
+ display: grid;
1767
+ grid-template-columns: repeat(var(--bottom-nav-count), minmax(0, 1fr));
1768
+ height: var(--bottom-nav-height);
1769
+ padding: var(--bottom-nav-padding);
1770
+ box-sizing: border-box;
1771
+ border-radius: var(--radius-pill);
1772
+ isolation: isolate;
1773
+ }
1774
+
1775
+ .base-bottom-nav:where(.indicator) {
1776
+ position: absolute;
1082
1777
  z-index: var(--z-base);
1083
1778
  top: var(--bottom-nav-padding);
1084
1779
  bottom: var(--bottom-nav-padding);
@@ -1135,77 +1830,192 @@
1135
1830
  }
1136
1831
  }
1137
1832
 
1138
- @media (prefers-reduced-transparency: reduce) {
1833
+ @media (prefers-reduced-transparency: reduce) {
1834
+
1835
+ .bottom-nav {
1836
+ background: color-mix(in srgb, var(--surface-subtle) 98%, transparent);
1837
+ }
1838
+ }
1839
+
1840
+ .bottom-nav[data-hidden]:not(:focus-within) {
1841
+ transform: translateY(calc(100% + var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px))); /* raw-px */
1842
+ }
1843
+
1844
+ .bottom-nav-indicator {
1845
+ background: color-mix(in srgb, var(--surface-brand) 10%, transparent);
1846
+ box-shadow: inset 0 var(--hairline) 0
1847
+ color-mix(in srgb, var(--surface-subtle) 50%, transparent);
1848
+ transition: transform var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease);
1849
+ }
1850
+
1851
+ .bottom-nav-item {
1852
+ color: var(--text-tertiary);
1853
+ font-size: var(--font-size-xsm);
1854
+ font-weight: var(--font-weight-medium);
1855
+ -webkit-tap-highlight-color: transparent;
1856
+ /* .motion-press 의 transform 전환을 이 줄이 덮으므로 함께 적는다 */
1857
+ transition-property: color, transform;
1858
+ transition-duration: var(--motion-press-duration);
1859
+ transition-timing-function: var(--motion-press-ease);
1860
+ }
1861
+
1862
+ .bottom-nav-item[aria-current='page'] {
1863
+ color: var(--text-brand);
1864
+ font-weight: var(--font-weight-bold);
1865
+ }
1866
+
1867
+ /* 캡슐 안이라 링을 안쪽으로 넣는다. 색·두께는 전역(styles/focus.css) */
1868
+
1869
+ .bottom-nav-item:focus-visible {
1870
+ outline-offset: calc(-1 * var(--focus-ring-offset));
1871
+ }
1872
+
1873
+ .bottom-nav-icon {
1874
+ position: relative;
1875
+ display: flex;
1876
+ }
1877
+
1878
+ .bottom-nav-badge {
1879
+ position: absolute;
1880
+ top: 0;
1881
+ left: calc(100% - var(--spacing-6));
1882
+ min-width: var(--bottom-nav-badge-dot);
1883
+ height: var(--bottom-nav-badge-dot);
1884
+ box-sizing: border-box;
1885
+ border-radius: var(--radius-pill);
1886
+ background: var(--surface-danger);
1887
+ box-shadow: 0 0 0 var(--spacing-2) var(--surface-subtle);
1888
+ }
1889
+
1890
+ .bottom-nav-badge[data-count] {
1891
+ top: calc(-1 * var(--spacing-4));
1892
+ left: calc(100% - var(--spacing-8));
1893
+ min-width: var(--bottom-nav-badge-count);
1894
+ height: var(--bottom-nav-badge-count);
1895
+ padding: 0 var(--spacing-4);
1896
+ display: flex;
1897
+ align-items: center;
1898
+ justify-content: center;
1899
+ color: var(--text-on-brand-subtle);
1900
+ font-size: var(--font-size-xsm);
1901
+ font-weight: var(--font-weight-bold);
1902
+ font-variant-numeric: tabular-nums;
1903
+ }
1904
+
1905
+ /* 바깥 틀은 DrawerContent 다. 바탕은 끌리는 panel 이 그리므로 Drawer 의 content 바탕(.base-drawer:where(.content))을 덮는다 */
1906
+
1907
+ .base-bottom-sheet.content {
1908
+ left: 0;
1909
+ right: 0;
1910
+ bottom: var(--sheet-keyboard-inset, 0);
1911
+ background-color: transparent;
1912
+ }
1913
+
1914
+ .base-bottom-sheet:where(.panel) {
1915
+ position: relative;
1916
+ display: flex;
1917
+ flex-direction: column;
1918
+ box-sizing: border-box;
1919
+ max-height: var(--sheet-max-height);
1920
+ background-color: var(--surface-base);
1921
+ border-top-left-radius: var(--radius-surface);
1922
+ border-top-right-radius: var(--radius-surface);
1923
+
1924
+ /* 위로 끌면 판이 화면 아래에서 뜬다. 판 아래로 이어지는 같은 바탕이 그 틈을 가린다 */
1925
+ }
1926
+
1927
+ .base-bottom-sheet:where(.panel)::after {
1928
+ content: '';
1929
+ position: absolute;
1930
+ top: 100%;
1931
+ left: 0;
1932
+ right: 0;
1933
+ height: 100%;
1934
+ background-color: inherit;
1935
+ }
1936
+
1937
+ .base-bottom-sheet:where(.handle) {
1938
+ width: var(--sheet-handle-width);
1939
+ height: var(--sheet-handle-height);
1940
+ border-radius: var(--radius-pill);
1941
+ background-color: var(--surface-strong);
1942
+ }
1943
+
1944
+ /***************************************************************************************************
1945
+ * *
1946
+ * bottom-sheet *
1947
+ * *
1948
+ ***************************************************************************************************/
1949
+
1950
+ /* 키프레임은 이 바깥 틀에서만 돈다. 끌기(y)는 안쪽 panel 이 맡아 둘이 같은 transform 을 두고 싸우지 않는다 */
1951
+
1952
+ .bottom-sheet {
1953
+ --motion-slide-offset: translateY(100%);
1954
+ }
1955
+
1956
+ .bottom-sheet[data-state='open'] {
1957
+ animation: motion-enter-slide var(--motion-enter-duration) var(--motion-enter-ease);
1958
+ }
1959
+
1960
+ .bottom-sheet.motion-strong[data-state='open'] {
1961
+ animation-duration: var(--motion-enter-strong-duration);
1962
+ animation-timing-function: var(--motion-enter-strong-ease);
1963
+ }
1964
+
1965
+ .bottom-sheet[data-state='closed'] {
1966
+ animation: motion-exit-slide var(--motion-exit-duration) var(--motion-exit-ease) forwards;
1967
+ }
1968
+
1969
+ /* 등장 뒤에 덧붙이고 등장의 시간·곡선은 그대로 둔다. 바꾸면 data-effect 가 떨어질 때 등장이 다시 돈다 */
1139
1970
 
1140
- .bottom-nav {
1141
- background: color-mix(in srgb, var(--surface-subtle) 98%, transparent);
1142
- }
1971
+ .bottom-sheet[data-state='open'][data-effect='wiggle'] {
1972
+ animation:
1973
+ motion-enter-slide var(--motion-enter-duration) var(--motion-enter-ease),
1974
+ motion-reject-wiggle var(--motion-reject-duration) var(--motion-reject-ease);
1143
1975
  }
1144
1976
 
1145
- .bottom-nav[data-hidden]:not(:focus-within) {
1146
- transform: translateY(calc(100% + var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px))); /* raw-px */
1977
+ .bottom-sheet.motion-strong[data-state='open'][data-effect='wiggle'] {
1978
+ animation-duration: var(--motion-enter-strong-duration), var(--motion-reject-duration);
1979
+ animation-timing-function: var(--motion-enter-strong-ease), var(--motion-reject-ease);
1147
1980
  }
1148
1981
 
1149
- .bottom-nav-indicator {
1150
- background: color-mix(in srgb, var(--surface-brand) 10%, transparent);
1151
- box-shadow: inset 0 var(--hairline) 0
1152
- color-mix(in srgb, var(--surface-subtle) 50%, transparent);
1153
- transition: transform var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease);
1154
- }
1155
-
1156
- .bottom-nav-item {
1157
- color: var(--text-tertiary);
1158
- font-size: var(--font-size-xsm);
1159
- font-weight: var(--font-weight-medium);
1160
- -webkit-tap-highlight-color: transparent;
1161
- /* .motion-press 의 transform 전환을 이 줄이 덮으므로 함께 적는다 */
1162
- transition-property: color, transform;
1163
- transition-duration: var(--motion-press-duration);
1164
- transition-timing-function: var(--motion-press-ease);
1982
+ .bottom-sheet-panel {
1983
+ padding: 0 var(--spacing-20);
1984
+ padding-bottom: max(env(safe-area-inset-bottom), var(--spacing-20));
1165
1985
  }
1166
1986
 
1167
- .bottom-nav-item[aria-current='page'] {
1168
- color: var(--text-brand);
1169
- font-weight: var(--font-weight-bold);
1170
- }
1987
+ /* 끌기는 여기서만 시작한다. 본문은 스크롤이 먼저다 */
1171
1988
 
1172
- /* 캡슐 안이라 링을 안쪽으로 넣는다. 색·두께는 전역(styles/focus.css) */
1989
+ .bottom-sheet-header {
1990
+ display: flex;
1991
+ flex-direction: column;
1992
+ gap: var(--spacing-12);
1993
+ padding-top: var(--spacing-12);
1994
+ touch-action: none;
1995
+ cursor: grab;
1996
+ }
1173
1997
 
1174
- .bottom-nav-item:focus-visible {
1175
- outline-offset: calc(-1 * var(--focus-ring-offset));
1176
- }
1998
+ .bottom-sheet-handle {
1999
+ align-self: center;
2000
+ }
1177
2001
 
1178
- .bottom-nav-icon {
1179
- position: relative;
1180
- display: flex;
2002
+ .bottom-sheet-description {
2003
+ margin-top: var(--spacing-4);
1181
2004
  }
1182
2005
 
1183
- .bottom-nav-badge {
1184
- position: absolute;
1185
- top: 0;
1186
- left: calc(100% - var(--spacing-6));
1187
- min-width: var(--bottom-nav-badge-dot);
1188
- height: var(--bottom-nav-badge-dot);
1189
- box-sizing: border-box;
1190
- border-radius: var(--radius-pill);
1191
- background: var(--surface-danger);
1192
- box-shadow: 0 0 0 var(--spacing-2) var(--surface-subtle);
2006
+ .bottom-sheet-body {
2007
+ flex: 1;
2008
+ min-height: 0;
2009
+ overflow-y: auto;
2010
+ overscroll-behavior: contain;
2011
+ margin-top: var(--spacing-16);
1193
2012
  }
1194
2013
 
1195
- .bottom-nav-badge[data-count] {
1196
- top: calc(-1 * var(--spacing-4));
1197
- left: calc(100% - var(--spacing-8));
1198
- min-width: var(--bottom-nav-badge-count);
1199
- height: var(--bottom-nav-badge-count);
1200
- padding: 0 var(--spacing-4);
1201
- display: flex;
1202
- align-items: center;
1203
- justify-content: center;
1204
- color: var(--text-on-brand-subtle);
1205
- font-size: var(--font-size-xsm);
1206
- font-weight: var(--font-weight-bold);
1207
- font-variant-numeric: tabular-nums;
1208
- }
2014
+ .bottom-sheet-footer {
2015
+ display: flex;
2016
+ gap: var(--spacing-8);
2017
+ margin-top: var(--spacing-16);
2018
+ }
1209
2019
 
1210
2020
  .base-breadcrumb:where(.list) {
1211
2021
  display: flex;
@@ -3144,6 +3954,19 @@
3144
3954
  color: var(--text-tertiary);
3145
3955
  }
3146
3956
 
3957
+ .empty-state.variant-success .empty-state-icon {
3958
+ background-color: var(--surface-success-subtle);
3959
+ color: var(--text-success);
3960
+ }
3961
+
3962
+ /* figure 는 쓰는 쪽 그림을 크기 그대로 아이콘 원 자리에 둔다 */
3963
+
3964
+ .empty-state-figure {
3965
+ display: flex;
3966
+ justify-content: center;
3967
+ margin-bottom: var(--spacing-8);
3968
+ }
3969
+
3147
3970
  .empty-state-icon {
3148
3971
  display: inline-flex;
3149
3972
  align-items: center;
@@ -3156,7 +3979,10 @@
3156
3979
  color: var(--text-brand);
3157
3980
  }
3158
3981
 
3982
+ /* titleAs 가 h1~h3 이어도 리셋 없이 쓰는 앱의 제목 여백을 받지 않는다 */
3983
+
3159
3984
  .empty-state-title {
3985
+ margin: 0;
3160
3986
  font-size: var(--font-size-base);
3161
3987
  line-height: var(--line-height-base);
3162
3988
  font-weight: var(--font-weight-semibold);
@@ -3175,6 +4001,170 @@
3175
4001
  margin-top: var(--spacing-8);
3176
4002
  }
3177
4003
 
4004
+ /* reset.css 없이 components.css 만 가져온 앱에서도 글머리표·들여쓰기가 생기지 않게 한다 */
4005
+
4006
+ .base-grid-list:where(.root) {
4007
+ display: grid;
4008
+ margin: 0;
4009
+ padding: 0;
4010
+ list-style: none;
4011
+ }
4012
+
4013
+ .base-grid-list:where(.item) {
4014
+ margin: 0;
4015
+ padding: 0;
4016
+ min-width: 0;
4017
+ }
4018
+
4019
+ /* 칸 안은 div·button·링크 어느 것이든 같은 모양이다 */
4020
+
4021
+ .base-grid-list:where(.action) {
4022
+ display: flex;
4023
+ flex-direction: column;
4024
+ box-sizing: border-box;
4025
+ width: 100%;
4026
+ padding: 0;
4027
+ border: 0;
4028
+ background-color: transparent;
4029
+ color: inherit;
4030
+ font: inherit;
4031
+ text-align: start;
4032
+ text-decoration: none;
4033
+ }
4034
+
4035
+ /***************************************************************************************************
4036
+ * *
4037
+ * grid-list *
4038
+ * *
4039
+ ***************************************************************************************************/
4040
+
4041
+ /* --grid-list-column 은 column prop 이 루트 style 에 둔다 */
4042
+
4043
+ .grid-list {
4044
+ grid-template-columns: repeat(var(--grid-list-column), minmax(0, 1fr));
4045
+ gap: var(--spacing-20) var(--spacing-12);
4046
+ }
4047
+
4048
+ .grid-list-item-action {
4049
+ gap: var(--spacing-8);
4050
+ }
4051
+
4052
+ .grid-list-item-action:is(a[href],button) {
4053
+ cursor: pointer;
4054
+ }
4055
+
4056
+ /* 그림 칸은 1:1. Asset.Image 는 칸을 채우고 Asset.Frame 은 가운데 놓인다 */
4057
+
4058
+ .grid-list-item-image {
4059
+ display: flex;
4060
+ align-items: center;
4061
+ justify-content: center;
4062
+ aspect-ratio: 1;
4063
+ overflow: hidden;
4064
+ border-radius: var(--radius-surface);
4065
+ background-color: var(--surface-muted);
4066
+ }
4067
+
4068
+ .grid-list-item-text {
4069
+ color: var(--text-body);
4070
+ font-size: var(--font-size-sm);
4071
+ line-height: var(--line-height-sm);
4072
+ font-weight: var(--font-weight-medium);
4073
+ }
4074
+
4075
+ /* 구멍 자리를 눌러 그 아래 대상이 눌리도록 틀은 누름을 받지 않고, 바탕·메시지만 받는다 */
4076
+
4077
+ .base-highlight:where(.root) {
4078
+ position: fixed;
4079
+ inset: 0;
4080
+ z-index: var(--z-modal);
4081
+ pointer-events: none;
4082
+ }
4083
+
4084
+ .base-highlight:where(.backdrop) {
4085
+ position: absolute;
4086
+ inset: 0;
4087
+ pointer-events: auto;
4088
+ }
4089
+
4090
+ .base-highlight:where(.hole) {
4091
+ position: absolute;
4092
+ border-radius: var(--radius-control);
4093
+ box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--surface-overlay) 50%, transparent); /* raw-value */
4094
+ pointer-events: none;
4095
+ }
4096
+
4097
+ .base-highlight:where(.message) {
4098
+ pointer-events: auto;
4099
+ }
4100
+
4101
+ /***************************************************************************************************
4102
+ * *
4103
+ * highlight *
4104
+ * *
4105
+ ***************************************************************************************************/
4106
+
4107
+ /* delay(--motion-appear-delay) 동안은 틀 전체를 가린다. visibility 라 바탕이 누름도 받지 않는다 */
4108
+
4109
+ .highlight[data-state='open'] {
4110
+ animation: motion-appear-hold var(--motion-appear-delay, 0ms) linear;
4111
+ }
4112
+
4113
+ .highlight[data-state='open'] .highlight-hole {
4114
+ animation: motion-enter-fade var(--motion-enter-duration) var(--motion-enter-ease)
4115
+ var(--motion-appear-delay, 0ms) backwards;
4116
+ }
4117
+
4118
+ .highlight[data-state='open'] .highlight-message {
4119
+ animation: motion-enter-pop var(--motion-enter-duration) var(--motion-enter-ease)
4120
+ var(--motion-appear-delay, 0ms) backwards;
4121
+ }
4122
+
4123
+ .highlight[data-state='closed'] {
4124
+ animation: motion-exit-fade var(--motion-exit-duration) var(--motion-exit-ease) forwards;
4125
+ }
4126
+
4127
+ .highlight-message-anchor {
4128
+ position: absolute;
4129
+ display: flex;
4130
+ pointer-events: none;
4131
+ }
4132
+
4133
+ .highlight-message-anchor[data-align-y='bottom'] {
4134
+ margin-top: var(--spacing-12);
4135
+ --motion-slide-offset: translateY(calc(var(--motion-enter-offset) * -1));
4136
+ }
4137
+
4138
+ .highlight-message-anchor[data-align-y='top'] {
4139
+ margin-bottom: var(--spacing-12);
4140
+ --motion-slide-offset: translateY(var(--motion-enter-offset));
4141
+ }
4142
+
4143
+ .highlight-message-anchor[data-align-x='center'] {
4144
+ transform: translateX(-50%);
4145
+ }
4146
+
4147
+ .highlight-message {
4148
+ box-sizing: border-box;
4149
+ max-width: var(--highlight-message-max-width);
4150
+ padding: var(--spacing-12) var(--spacing-16);
4151
+ border-radius: var(--radius-control);
4152
+ background-color: var(--surface-base);
4153
+ box-shadow: var(--shadow-floating);
4154
+ font-size: var(--font-size-sm);
4155
+ line-height: var(--line-height-sm);
4156
+ font-weight: var(--font-weight-medium);
4157
+ color: var(--text-primary);
4158
+ }
4159
+
4160
+ .highlight-message-anchor[data-align-y='bottom'] .highlight-message {
4161
+ transform-origin: top center;
4162
+ }
4163
+
4164
+ .highlight-message-anchor[data-align-y='top'] .highlight-message {
4165
+ transform-origin: bottom center;
4166
+ }
4167
+
3178
4168
  .base-icon {
3179
4169
  flex-shrink: 0;
3180
4170
  vertical-align: middle;
@@ -3274,26 +4264,118 @@
3274
4264
  background-color: var(--surface-muted);
3275
4265
  }
3276
4266
 
3277
- /* CTAButton primary·weak 와 같은 연보라 */
4267
+ /* CTAButton primary·weak 와 같은 연보라 */
4268
+
4269
+ .icon-button.variant-secondary {
4270
+ background-color: var(--surface-brand-subtle);
4271
+ color: var(--text-brand);
4272
+ }
4273
+
4274
+ .icon-button.variant-primary {
4275
+ background-color: var(--surface-brand);
4276
+ color: var(--text-on-brand);
4277
+ }
4278
+
4279
+ .icon-button[data-disabled] {
4280
+ color: var(--text-disabled);
4281
+ }
4282
+
4283
+ .icon-button[data-disabled]:is(.variant-secondary,.variant-primary) {
4284
+ background-color: var(--surface-disabled);
4285
+ color: var(--text-on-disabled);
4286
+ }
4287
+
4288
+ .base-keypad:where(:not(.key,.blank)) {
4289
+ display: grid;
4290
+ grid-template-columns: repeat(var(--keypad-columns), minmax(0, 1fr));
4291
+ gap: var(--spacing-4);
4292
+ }
4293
+
4294
+ .base-keypad:where(.key) {
4295
+ display: inline-flex;
4296
+ align-items: center;
4297
+ justify-content: center;
4298
+ min-width: 0;
4299
+ height: var(--keypad-key-height);
4300
+ padding: 0;
4301
+ border: none;
4302
+ background: transparent;
4303
+ color: inherit;
4304
+ font: inherit;
4305
+ cursor: var(--cursor-button);
4306
+ }
4307
+
4308
+ .base-keypad:where(.key):disabled {
4309
+ cursor: var(--cursor-disabled);
4310
+ }
4311
+
4312
+ /***************************************************************************************************
4313
+ * *
4314
+ * base-keypad *
4315
+ * *
4316
+ ***************************************************************************************************/
4317
+
4318
+ .keypad {
4319
+ padding: var(--spacing-8);
4320
+ background-color: var(--surface-base);
4321
+ color: var(--text-primary);
4322
+ font-size: var(--font-size-2xl);
4323
+ font-weight: var(--font-weight-medium);
4324
+ -webkit-user-select: none;
4325
+ -moz-user-select: none;
4326
+ user-select: none;
4327
+ }
4328
+
4329
+ .keypad-key {
4330
+ border-radius: var(--radius-control);
4331
+ /* .motion-press 의 transform 전환을 덮지 않게 둘을 함께 적는다 */
4332
+ transition:
4333
+ transform var(--motion-press-duration) var(--motion-press-ease),
4334
+ background-color var(--motion-press-duration) var(--motion-press-ease);
4335
+ touch-action: manipulation;
4336
+
4337
+ /* 진짜 눌림(:active)과 secure 의 가짜 눌림(data-pressed)이 같아 보여야 어느 키를 눌렀는지 드러나지 않는다 */
4338
+ }
3278
4339
 
3279
- .icon-button.variant-secondary {
3280
- background-color: var(--surface-brand-subtle);
3281
- color: var(--text-brand);
4340
+ .keypad-key:active:not(:disabled),.keypad-key[data-pressed] {
4341
+ background-color: var(--surface-muted);
3282
4342
  }
3283
4343
 
3284
- .icon-button.variant-primary {
3285
- background-color: var(--surface-brand);
3286
- color: var(--text-on-brand);
4344
+ .keypad-key.motion-press[data-pressed] {
4345
+ transform: scale(var(--motion-press-scale));
3287
4346
  }
3288
4347
 
3289
- .icon-button[data-disabled] {
3290
- color: var(--text-disabled);
4348
+ .keypad-key[aria-pressed='true'] {
4349
+ color: var(--text-brand);
3291
4350
  }
3292
4351
 
3293
- .icon-button[data-disabled]:is(.variant-secondary,.variant-primary) {
3294
- background-color: var(--surface-disabled);
3295
- color: var(--text-on-disabled);
3296
- }
4352
+ .alphabet-keypad,
4353
+ .full-secure-keypad {
4354
+ font-size: var(--font-size-xl);
4355
+ }
4356
+
4357
+ .full-secure-keypad {
4358
+ gap: var(--spacing-2);
4359
+ padding: var(--spacing-8) var(--spacing-4);
4360
+ }
4361
+
4362
+ .full-secure-keypad-footer {
4363
+ grid-column: 1 / -1;
4364
+ display: flex;
4365
+ flex-direction: column;
4366
+ gap: var(--spacing-8);
4367
+ margin-top: var(--spacing-8);
4368
+ }
4369
+
4370
+ .full-secure-keypad-space {
4371
+ width: 100%;
4372
+ font-size: var(--font-size-base);
4373
+ background-color: var(--surface-subtle);
4374
+ }
4375
+
4376
+ .full-secure-keypad-submit {
4377
+ width: 100%;
4378
+ }
3297
4379
 
3298
4380
  .base-list:where(.group) {
3299
4381
  display: flex;
@@ -3349,13 +4431,24 @@
3349
4431
  ***************************************************************************************************/
3350
4432
 
3351
4433
  .list-row {
3352
- min-height: var(--list-row-height);
3353
4434
  gap: var(--spacing-12);
3354
4435
  padding: var(--spacing-10) var(--spacing-16);
3355
-
3356
- /* 누르는 행(링크·버튼)은 줄어들지 않고 공용 .motion-press-dim 으로 어두워진다. 폭이 꽉 찬 면이라 scale 이 어색하다 */
3357
4436
  }
3358
4437
 
4438
+ .list-row.size-s {
4439
+ min-height: var(--list-row-height-s);
4440
+ }
4441
+
4442
+ .list-row.size-m {
4443
+ min-height: var(--list-row-height-m);
4444
+ }
4445
+
4446
+ .list-row.size-l {
4447
+ min-height: var(--list-row-height-l);
4448
+ }
4449
+
4450
+ /* 누르는 행(링크·버튼)은 줄어들지 않고 공용 .motion-press-dim 으로 어두워진다. 폭이 꽉 찬 면이라 scale 이 어색하다 */
4451
+
3359
4452
  .list-row:is(a[href],button) {
3360
4453
  cursor: pointer;
3361
4454
 
@@ -3366,7 +4459,7 @@
3366
4459
  outline-offset: calc(var(--focus-ring-width) * -1);
3367
4460
  }
3368
4461
 
3369
- /* 행 사이 구분선. 왼쪽은 안쪽 여백만큼 띄운다 */
4462
+ /* 행 사이 구분선. 아래 행의 위쪽에 그리고, 모양은 위 행의 border 가 정한다. 기본(indented)은 왼쪽을 안쪽 여백만큼 띄운다 */
3370
4463
 
3371
4464
  .list-row + .list-row::before {
3372
4465
  content: '';
@@ -3378,6 +4471,14 @@
3378
4471
  background-color: var(--surface-muted);
3379
4472
  }
3380
4473
 
4474
+ .list-row.border-full + .list-row::before {
4475
+ left: 0;
4476
+ }
4477
+
4478
+ .list-row.border-none + .list-row::before {
4479
+ content: none;
4480
+ }
4481
+
3381
4482
  .list-row-leading {
3382
4483
  display: flex;
3383
4484
  flex: none;
@@ -3419,6 +4520,100 @@
3419
4520
  color: var(--text-placeholder);
3420
4521
  }
3421
4522
 
4523
+ /***************************************************************************************************
4524
+ * *
4525
+ * list-header *
4526
+ * *
4527
+ ***************************************************************************************************/
4528
+
4529
+ .list-header {
4530
+ display: flex;
4531
+ align-items: center;
4532
+ gap: var(--spacing-12);
4533
+ padding: var(--spacing-12) var(--spacing-16);
4534
+ }
4535
+
4536
+ .list-header.right-align-bottom {
4537
+ align-items: flex-end;
4538
+ }
4539
+
4540
+ .list-header-text {
4541
+ display: flex;
4542
+ flex: 1;
4543
+ flex-direction: column;
4544
+ gap: var(--spacing-2);
4545
+ min-width: 0;
4546
+ }
4547
+
4548
+ .list-header-title {
4549
+ color: var(--text-primary);
4550
+ font-size: var(--font-size-base);
4551
+ line-height: var(--line-height-base);
4552
+ font-weight: var(--font-weight-semibold);
4553
+ }
4554
+
4555
+ .list-header-description {
4556
+ color: var(--text-muted);
4557
+ font-size: var(--font-size-sm);
4558
+ line-height: var(--line-height-sm);
4559
+ }
4560
+
4561
+ .list-header-right {
4562
+ display: flex;
4563
+ flex: none;
4564
+ align-items: center;
4565
+ }
4566
+
4567
+ /***************************************************************************************************
4568
+ * *
4569
+ * list-footer *
4570
+ * *
4571
+ ***************************************************************************************************/
4572
+
4573
+ .list-footer {
4574
+ justify-content: center;
4575
+ gap: var(--spacing-4);
4576
+ min-height: var(--list-row-height-s);
4577
+ padding: var(--spacing-10) var(--spacing-16);
4578
+ color: var(--text-secondary);
4579
+ font-size: var(--font-size-sm);
4580
+ line-height: var(--line-height-sm);
4581
+ font-weight: var(--font-weight-medium);
4582
+ }
4583
+
4584
+ .list-footer:is(a[href],button) {
4585
+ cursor: pointer;
4586
+ }
4587
+
4588
+ .list-footer:is(a[href],button):focus-visible {
4589
+ outline-offset: calc(var(--focus-ring-width) * -1);
4590
+ }
4591
+
4592
+ .list-footer[aria-busy='true'] {
4593
+ cursor: default;
4594
+ }
4595
+
4596
+ /* 위쪽 선. ::after 는 눌림 딤이 쓴다 */
4597
+
4598
+ .list-footer.border-full::before,.list-footer.border-indented::before {
4599
+ content: '';
4600
+ position: absolute;
4601
+ top: 0;
4602
+ right: 0;
4603
+ left: 0;
4604
+ height: var(--hairline);
4605
+ background-color: var(--surface-muted);
4606
+ }
4607
+
4608
+ .list-footer.border-indented::before {
4609
+ left: var(--spacing-16);
4610
+ }
4611
+
4612
+ .list-footer-icon {
4613
+ flex: none;
4614
+ color: var(--text-muted);
4615
+ }
4616
+
3422
4617
  .base-inline-loading {
3423
4618
  display: flex;
3424
4619
  width: 100%;
@@ -3780,6 +4975,114 @@
3780
4975
  color: var(--text-tertiary);
3781
4976
  }
3782
4977
 
4978
+ .base-menu:where(.content) {
4979
+ z-index: var(--z-popover);
4980
+ }
4981
+
4982
+ .base-menu:where(.item) {
4983
+ display: flex;
4984
+ align-items: center;
4985
+ cursor: pointer;
4986
+ outline: none;
4987
+ }
4988
+
4989
+ .base-menu:where(.separator) {
4990
+ height: var(--hairline);
4991
+ }
4992
+
4993
+ /***************************************************************************************************
4994
+ * *
4995
+ * menu *
4996
+ * *
4997
+ ***************************************************************************************************/
4998
+
4999
+ .menu-content {
5000
+ box-sizing: border-box;
5001
+ min-width: var(--menu-min-width);
5002
+ max-height: var(--radix-dropdown-menu-content-available-height);
5003
+ overflow-y: auto;
5004
+ padding: var(--spacing-4) 0;
5005
+ background-color: var(--surface-base);
5006
+ border-radius: var(--radius-control);
5007
+ box-shadow: var(--shadow-popover);
5008
+
5009
+ /* 펼침은 공용 .motion-unfold 가 그린다. 축은 Radix 가 side·align 으로 계산한 트리거 쪽 모서리다(왼쪽·오른쪽 펼침 포함) */
5010
+ }
5011
+
5012
+ .menu-content.motion-unfold[data-side] {
5013
+ transform-origin: var(--radix-dropdown-menu-content-transform-origin);
5014
+ }
5015
+
5016
+ /* Radix DropdownMenu 는 닫힘 애니메이션이 끝나야 지운다. 펼침 대신 fade 로 나간다 */
5017
+
5018
+ .menu-content[data-state='closed'] {
5019
+ animation: motion-exit-fade var(--motion-exit-duration) var(--motion-exit-ease) forwards;
5020
+ }
5021
+
5022
+ .menu-header {
5023
+ display: flex;
5024
+ align-items: center;
5025
+ height: var(--menu-row-height-s);
5026
+ padding: 0 var(--spacing-16);
5027
+ font-size: var(--font-size-xsm);
5028
+ line-height: var(--line-height-xsm);
5029
+ font-weight: var(--font-weight-bold);
5030
+ color: var(--text-muted);
5031
+ }
5032
+
5033
+ .menu-item {
5034
+ gap: var(--spacing-10);
5035
+ height: var(--menu-row-height-m);
5036
+ padding: 0 var(--spacing-16);
5037
+ font-size: var(--font-size-sm);
5038
+ line-height: var(--line-height-sm);
5039
+ font-weight: var(--font-weight-medium);
5040
+ color: var(--text-primary);
5041
+ text-decoration: none;
5042
+
5043
+ /* 키보드 이동·호버는 Radix 가 단 data-highlighted 배경이 보여 준다 */
5044
+ }
5045
+
5046
+ .menu-item[data-highlighted] {
5047
+ background-color: var(--surface-muted);
5048
+ }
5049
+
5050
+ /* 눌림은 딤만(press form dim). 행이 줄면 목록 가장자리에 틈이 보인다 */
5051
+
5052
+ .menu-item.motion-press-dim::after {
5053
+ background: var(--surface-strong);
5054
+ }
5055
+
5056
+ .menu-item[data-disabled] {
5057
+ color: var(--text-disabled);
5058
+ cursor: not-allowed;
5059
+ }
5060
+
5061
+ .menu-item-left,
5062
+ .menu-item-right {
5063
+ display: inline-flex;
5064
+ align-items: center;
5065
+ flex-shrink: 0;
5066
+ color: var(--text-tertiary);
5067
+ }
5068
+
5069
+ .menu-item-label {
5070
+ flex: 1;
5071
+ min-width: 0;
5072
+ overflow: hidden;
5073
+ text-overflow: ellipsis;
5074
+ white-space: nowrap;
5075
+ }
5076
+
5077
+ .menu-item[data-state='checked'] .menu-item-right {
5078
+ color: var(--text-brand);
5079
+ }
5080
+
5081
+ .menu-separator {
5082
+ margin: var(--spacing-4) 0;
5083
+ background-color: var(--border-subtle);
5084
+ }
5085
+
3783
5086
  .base-message-composer:where(.root) {
3784
5087
  display: flex;
3785
5088
  flex-direction: column;
@@ -4264,6 +5567,87 @@ button.modal-with-double-button-close-button {
4264
5567
  gap: var(--spacing-10);
4265
5568
  }
4266
5569
 
5570
+ .base-numeric-spinner:where(.root) {
5571
+ display: inline-flex;
5572
+ align-items: center;
5573
+ }
5574
+
5575
+ .base-numeric-spinner:where(.button) {
5576
+ display: inline-flex;
5577
+ flex-shrink: 0;
5578
+ align-items: center;
5579
+ justify-content: center;
5580
+ padding: 0;
5581
+ border: 0;
5582
+ background: transparent;
5583
+ cursor: var(--cursor-button);
5584
+ }
5585
+
5586
+ .base-numeric-spinner[data-disabled]:where(.button) {
5587
+ cursor: not-allowed;
5588
+ }
5589
+
5590
+ /***************************************************************************************************
5591
+ * *
5592
+ * numeric-spinner *
5593
+ * *
5594
+ ***************************************************************************************************/
5595
+
5596
+ .numeric-spinner {
5597
+ border: var(--hairline) solid var(--border-default);
5598
+ border-radius: var(--radius-control);
5599
+ background: var(--surface-base);
5600
+ color: var(--text-primary);
5601
+ }
5602
+
5603
+ .numeric-spinner.size-xs {
5604
+ height: var(--control-height-xs);
5605
+ font-size: var(--font-size-xsm);
5606
+ }
5607
+
5608
+ .numeric-spinner.size-s {
5609
+ height: var(--control-height-s);
5610
+ font-size: var(--font-size-sm);
5611
+ }
5612
+
5613
+ .numeric-spinner.size-m {
5614
+ height: var(--control-height-m);
5615
+ font-size: var(--font-size-base);
5616
+ }
5617
+
5618
+ .numeric-spinner.size-l {
5619
+ height: var(--control-height-l);
5620
+ font-size: var(--font-size-lg);
5621
+ }
5622
+
5623
+ .numeric-spinner[data-disabled] {
5624
+ border-color: var(--border-disabled);
5625
+ background: var(--surface-muted);
5626
+ color: var(--text-disabled);
5627
+ }
5628
+
5629
+ /* 버튼은 컨트롤 높이의 정사각이다. 테두리 안쪽이라 높이를 그대로 물려받는다 */
5630
+
5631
+ .numeric-spinner-button {
5632
+ height: 100%;
5633
+ aspect-ratio: 1;
5634
+ border-radius: var(--radius-control);
5635
+ color: var(--icon-primary);
5636
+ }
5637
+
5638
+ .numeric-spinner-button[data-disabled] {
5639
+ color: var(--icon-disabled);
5640
+ }
5641
+
5642
+ /* 999 까지 세 자리가 들어가도 버튼 자리가 흔들리지 않게 숫자 폭을 고정한다 */
5643
+
5644
+ .numeric-spinner-value {
5645
+ min-width: 3ch;
5646
+ text-align: center;
5647
+ font-weight: var(--font-weight-semibold);
5648
+ font-variant-numeric: tabular-nums;
5649
+ }
5650
+
4267
5651
  /* 카드·시트 안에 머무는 안내. 스스로 사라지는 알림은 Toast 다 */
4268
5652
 
4269
5653
  .base-notice {
@@ -4445,6 +5829,148 @@ button.modal-with-double-button-close-button {
4445
5829
  transform: rotate(-90deg);
4446
5830
  }
4447
5831
 
5832
+ /* 글자 크기·굵기·색은 Text 의 클래스(.base-text 의 sm·bold·color-*)가 그린다. 여기는 줄 안에 놓이는 조각만 다룬다.
5833
+ 조각은 줄 높이를 정하지 않고 문단의 것을 물려받는다 */
5834
+
5835
+ .base-paragraph:where(.badge) {
5836
+ display: inline-flex;
5837
+ align-items: center;
5838
+ white-space: nowrap;
5839
+ }
5840
+
5841
+ /***************************************************************************************************
5842
+ * *
5843
+ * paragraph *
5844
+ * *
5845
+ ***************************************************************************************************/
5846
+
5847
+ /* 아이콘·뱃지는 글자가 아니라 상자라 줄 가운데에 맞춘다. 글자 조각(text·link)은 기준선에 둔다.
5848
+ middle 을 주면 같은 크기 글자도 기준선에서 내려앉는다 */
5849
+
5850
+ /* Icon 의 .icon.size-* 를 이기려고 세 클래스로 잡는다 */
5851
+
5852
+ .base-paragraph.icon.paragraph-icon {
5853
+ width: var(--inline-icon-size);
5854
+ height: var(--inline-icon-size);
5855
+ vertical-align: middle;
5856
+ }
5857
+
5858
+ .paragraph-badge {
5859
+ height: var(--inline-badge-height);
5860
+ padding: 0 var(--spacing-6);
5861
+ border-radius: var(--radius-pill);
5862
+ vertical-align: middle;
5863
+
5864
+ font-size: var(--font-size-xsm);
5865
+ font-weight: var(--font-weight-semibold);
5866
+
5867
+ /* 회색 바탕의 문단에서도 보이게 neutral 은 Badge 의 흰 바탕 대신 muted 를 쓴다 */
5868
+ }
5869
+
5870
+ .paragraph-badge.variant-neutral {
5871
+ background-color: var(--surface-muted);
5872
+ color: var(--text-secondary);
5873
+ }
5874
+
5875
+ .paragraph-badge.variant-primary {
5876
+ background-color: var(--surface-brand-subtle);
5877
+ color: var(--text-brand);
5878
+ }
5879
+
5880
+ .paragraph-badge.variant-danger {
5881
+ background-color: var(--surface-danger-subtle);
5882
+ color: var(--text-danger);
5883
+ }
5884
+
5885
+ .paragraph-badge.variant-success {
5886
+ background-color: var(--surface-success-subtle);
5887
+ color: var(--text-success);
5888
+ }
5889
+
5890
+ .paragraph-badge.variant-warning {
5891
+ background-color: var(--surface-warning-subtle);
5892
+ color: var(--text-warning);
5893
+ }
5894
+
5895
+ .paragraph-link {
5896
+ color: inherit;
5897
+ }
5898
+
5899
+ .paragraph-link.underline {
5900
+ text-decoration-line: underline;
5901
+ }
5902
+
5903
+ /* 조각 사이 간격은 각 조각의 아래 여백(padding-bottom) 하나로 둔다. paddingBottom prop 은 style 로 이것을 덮는다 */
5904
+
5905
+ .base-post:where(.root) {
5906
+ color: var(--text-body);
5907
+ font-size: var(--font-size-base);
5908
+ line-height: var(--line-height-base);
5909
+ overflow-wrap: anywhere;
5910
+ }
5911
+
5912
+ .base-post:where(.list) {
5913
+ padding-inline-start: var(--spacing-20);
5914
+ }
5915
+
5916
+ .base-post:where(.rule) {
5917
+ border: 0;
5918
+ border-top: var(--hairline) solid var(--border-subtle);
5919
+ }
5920
+
5921
+ /***************************************************************************************************
5922
+ * *
5923
+ * post *
5924
+ * *
5925
+ ***************************************************************************************************/
5926
+
5927
+ .post-heading {
5928
+ padding-bottom: var(--spacing-12);
5929
+ }
5930
+
5931
+ .post-paragraph {
5932
+ padding-bottom: var(--spacing-16);
5933
+ }
5934
+
5935
+ /* 맨 위 목록은 기호 자리로 --spacing-20 을 비우고, 항목 안에 든 목록은 --spacing-16 만큼 더 들어간다 */
5936
+
5937
+ .post-list {
5938
+ padding-bottom: var(--spacing-16);
5939
+ }
5940
+
5941
+ .post-list .post-list {
5942
+ padding-inline-start: var(--spacing-16);
5943
+ padding-bottom: 0;
5944
+ }
5945
+
5946
+ .post-ul {
5947
+ list-style-type: disc;
5948
+ }
5949
+
5950
+ .post-ul .post-ul {
5951
+ list-style-type: circle;
5952
+ }
5953
+
5954
+ .post-ol {
5955
+ list-style-type: decimal;
5956
+ }
5957
+
5958
+ .post-ol .post-ol {
5959
+ list-style-type: lower-alpha;
5960
+ }
5961
+
5962
+ .post-li {
5963
+ padding-bottom: var(--spacing-4);
5964
+ }
5965
+
5966
+ .post-li:last-child {
5967
+ padding-bottom: 0;
5968
+ }
5969
+
5970
+ .post-hr {
5971
+ padding-bottom: var(--spacing-16);
5972
+ }
5973
+
4448
5974
  .base-radio:where(.button) {
4449
5975
  padding: 0;
4450
5976
  }
@@ -4584,18 +6110,285 @@ button.modal-with-double-button-close-button {
4584
6110
  var(--confirm-delay, 0ms);
4585
6111
  }
4586
6112
 
4587
- .radio.radio-chip[data-state='checked'] {
4588
- border-color: var(--border-accent);
4589
- background-color: var(--surface-brand);
4590
- color: var(--text-on-brand-subtle);
4591
- font-weight: var(--font-weight-semibold);
4592
- }
6113
+ .radio.radio-chip[data-state='checked'] {
6114
+ border-color: var(--border-accent);
6115
+ background-color: var(--surface-brand);
6116
+ color: var(--text-on-brand-subtle);
6117
+ font-weight: var(--font-weight-semibold);
6118
+ }
6119
+
6120
+ .radio.radio-chip[data-disabled] {
6121
+ border-color: var(--border-disabled);
6122
+ color: var(--text-disabled);
6123
+ cursor: var(--cursor-disabled);
6124
+ }
6125
+
6126
+ .base-rating:where(.root) {
6127
+ position: relative;
6128
+ display: inline-flex;
6129
+ align-items: center;
6130
+ }
6131
+
6132
+ .base-rating:where(.star) {
6133
+ position: relative;
6134
+ display: inline-flex;
6135
+ }
6136
+
6137
+ /* 별 위에 겹쳐 두되 보이지도 눌리지도 않는다. 포인터는 아래 별이 받고 키보드·낭독기는 이 range 가 받는다 */
6138
+
6139
+ .base-rating:where(.input) {
6140
+ position: absolute;
6141
+ inset: 0;
6142
+ width: 100%;
6143
+ height: 100%;
6144
+ margin: 0;
6145
+ opacity: 0;
6146
+ pointer-events: none;
6147
+ }
6148
+
6149
+ /***************************************************************************************************
6150
+ * *
6151
+ * rating *
6152
+ * *
6153
+ ***************************************************************************************************/
6154
+
6155
+ .rating {
6156
+ gap: var(--spacing-2);
6157
+ border-radius: var(--radius-control);
6158
+ }
6159
+
6160
+ .rating.size-xs .rating-value {
6161
+ font-size: var(--font-size-xsm);
6162
+ }
6163
+
6164
+ .rating.size-s .rating-value {
6165
+ font-size: var(--font-size-sm);
6166
+ }
6167
+
6168
+ .rating.size-m .rating-value {
6169
+ font-size: var(--font-size-base);
6170
+ }
6171
+
6172
+ .rating.size-l .rating-value {
6173
+ font-size: var(--font-size-lg);
6174
+ }
6175
+
6176
+ .rating.size-xl .rating-value {
6177
+ font-size: var(--font-size-xl);
6178
+ }
6179
+
6180
+ .rating-star {
6181
+ cursor: var(--cursor-button);
6182
+ }
6183
+
6184
+ .rating-star[data-disabled] {
6185
+ cursor: not-allowed;
6186
+ }
6187
+
6188
+ .rating.read-only .rating-star {
6189
+ cursor: default;
6190
+ }
6191
+
6192
+ /* 빈 별은 진행 막대의 바닥과 같은 역할이라 --surface-strong 이다 */
6193
+
6194
+ .rating-star-rest {
6195
+ color: var(--surface-strong);
6196
+ }
6197
+
6198
+ /* 채움 별은 빈 별 위에 겹쳐 --rating-fill 만큼 왼쪽부터 보인다(readOnly 의 4.5 는 다섯째 별 50%).
6199
+ 켜질 때 작은 크기에서 튀어 오르며 나타난다(confirm). --confirm-delay 는 delay prop */
6200
+
6201
+ .rating-star-fill {
6202
+ position: absolute;
6203
+ inset: 0;
6204
+ color: var(--icon-brand);
6205
+ clip-path: inset(0 calc(100% - var(--rating-fill, 0%)) 0 0);
6206
+ opacity: 0;
6207
+ transform: scale(0.5);
6208
+ transition:
6209
+ opacity var(--motion-confirm-weak-duration) var(--motion-confirm-weak-ease)
6210
+ var(--confirm-delay, 0ms),
6211
+ transform var(--motion-confirm-weak-duration) var(--motion-confirm-weak-ease)
6212
+ var(--confirm-delay, 0ms);
6213
+ }
6214
+
6215
+ .rating-star[data-state='on'] .rating-star-fill {
6216
+ opacity: 1;
6217
+ transform: none;
6218
+ }
6219
+
6220
+ .rating[data-disabled] .rating-star-fill {
6221
+ color: var(--icon-disabled);
6222
+ }
6223
+
6224
+ .rating-value {
6225
+ margin-left: var(--spacing-4);
6226
+ color: var(--text-primary);
6227
+ font-weight: var(--font-weight-semibold);
6228
+ font-variant-numeric: tabular-nums;
6229
+ }
6230
+
6231
+ /* 브라우저가 type="search" 에 그리는 지우기 버튼은 TextField 의 지우기 버튼과 겹친다 */
6232
+
6233
+ .base-search-field input[type='search']::-webkit-search-cancel-button,.base-search-field input[type='search']::-webkit-search-decoration {
6234
+ -webkit-appearance: none;
6235
+ appearance: none;
6236
+ }
6237
+
6238
+ /***************************************************************************************************
6239
+ * *
6240
+ * base-search-field *
6241
+ * *
6242
+ ***************************************************************************************************/
6243
+
6244
+ .search-field[data-fixed] {
6245
+ position: sticky;
6246
+ top: 0;
6247
+ z-index: var(--z-sticky-header);
6248
+
6249
+ /* 고정된 상자 뒤로 내용이 스크롤해 지나가므로 바탕을 깔아 가린다 */
6250
+ }
6251
+
6252
+ .search-field[data-fixed] > .search-field-bar {
6253
+ padding: var(--spacing-8) 0;
6254
+ background-color: var(--surface-base);
6255
+ }
6256
+
6257
+ /* 자리를 남기지 않는 고정은 높이 0 으로 흐름에서 빠지고 상자는 아래로 넘쳐 보인다 */
6258
+
6259
+ .search-field[data-fixed]:not([data-take-space]) {
6260
+ height: 0;
6261
+ overflow: visible;
6262
+ }
6263
+
6264
+ .base-segmented-control:where(.root) {
6265
+ position: relative;
6266
+ display: block;
6267
+ }
6268
+
6269
+ .base-segmented-control:where(.item) {
6270
+ position: relative;
6271
+ z-index: var(--z-raised);
6272
+ display: inline-flex;
6273
+ align-items: center;
6274
+ justify-content: center;
6275
+ border: 0;
6276
+ background: transparent;
6277
+ white-space: nowrap;
6278
+ cursor: var(--cursor-button);
6279
+ }
6280
+
6281
+ .base-segmented-control[data-disabled]:where(.item) {
6282
+ cursor: not-allowed;
6283
+ }
6284
+
6285
+ .base-segmented-control:where(.indicator) {
6286
+ position: absolute;
6287
+ z-index: var(--z-base);
6288
+ pointer-events: none;
6289
+ }
6290
+
6291
+ /***************************************************************************************************
6292
+ * *
6293
+ * segmented-control *
6294
+ * *
6295
+ ***************************************************************************************************/
6296
+
6297
+ .segmented-control {
6298
+ padding: var(--spacing-2);
6299
+ border-radius: var(--radius-control);
6300
+ background: var(--surface-muted);
6301
+ }
6302
+
6303
+ .segmented-control.size-s {
6304
+ height: var(--segmented-height-s);
6305
+ font-size: var(--font-size-xsm);
6306
+ }
6307
+
6308
+ .segmented-control.size-m {
6309
+ height: var(--segmented-height-m);
6310
+ font-size: var(--font-size-sm);
6311
+ }
6312
+
6313
+ .segmented-control-list {
6314
+ position: relative;
6315
+ display: flex;
6316
+ height: 100%;
6317
+ overflow-x: auto;
6318
+ scrollbar-width: none;
6319
+ }
6320
+
6321
+ .segmented-control-list::-webkit-scrollbar {
6322
+ display: none;
6323
+ }
6324
+
6325
+ /* 기본은 칸이 폭을 똑같이 나눈다(basis 0). 글자가 그 폭보다 길면 글자 폭 아래로 줄지 않고 목록이 넘쳐 밀린다 */
6326
+
6327
+ .segmented-control-item {
6328
+ flex: 1 1 0;
6329
+ min-width: -moz-max-content;
6330
+ min-width: max-content;
6331
+ padding: 0 var(--spacing-12);
6332
+ border-radius: calc(var(--radius-control) - var(--spacing-2));
6333
+ color: var(--text-tertiary);
6334
+ font-weight: var(--font-weight-medium);
6335
+ transition: color var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease);
6336
+
6337
+ /* 딤 색은 선택 배경(흰 판)과 같은 색조라, 누르는 동안 그 칸이 골라질 자리처럼 밝아진다 */
6338
+ }
6339
+
6340
+ .segmented-control-item.motion-press-dim::after {
6341
+ background: var(--surface-base);
6342
+ }
6343
+
6344
+ .segmented-control-item[data-state='checked'] {
6345
+ color: var(--text-primary);
6346
+ font-weight: var(--font-weight-semibold);
6347
+ }
6348
+
6349
+ .segmented-control-item[data-disabled] {
6350
+ color: var(--text-disabled);
6351
+ }
6352
+
6353
+ /* 목록이 가로 스크롤이라 바깥 링은 위아래가 잘린다. 안쪽으로 넣는다. 색·두께는 전역(styles/focus.css) */
6354
+
6355
+ .segmented-control-item:focus-visible {
6356
+ outline-offset: calc(-1 * var(--focus-ring-width));
6357
+ }
6358
+
6359
+ .segmented-control.fluid .segmented-control-item {
6360
+ flex: 0 0 auto;
6361
+ }
4593
6362
 
4594
- .radio.radio-chip[data-disabled] {
4595
- border-color: var(--border-disabled);
4596
- color: var(--text-disabled);
4597
- cursor: var(--cursor-disabled);
4598
- }
6363
+ .segmented-control-indicator {
6364
+ top: 0;
6365
+ bottom: 0;
6366
+ border-radius: calc(var(--radius-control) - var(--spacing-2));
6367
+ background: var(--surface-base);
6368
+ box-shadow: var(--shadow-popover);
6369
+ transition:
6370
+ left var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease),
6371
+ width var(--motion-indicate-spring-duration) var(--motion-indicate-spring-ease);
6372
+ }
6373
+
6374
+ /* 넘쳐 밀린 목록 위에 떠서 처음으로 되돌리는 화살표. 목록 밖에 두어 함께 밀리지 않는다(Tabs 와 같다) */
6375
+
6376
+ .segmented-control-scroll-start {
6377
+ position: absolute;
6378
+ top: var(--spacing-2);
6379
+ bottom: var(--spacing-2);
6380
+ left: var(--spacing-2);
6381
+ z-index: var(--z-sticky);
6382
+ display: inline-flex;
6383
+ align-items: center;
6384
+ padding: 0 var(--spacing-8);
6385
+ border: 0;
6386
+ border-radius: calc(var(--radius-control) - var(--spacing-2));
6387
+ background: linear-gradient(to right, var(--surface-muted) 60%, transparent);
6388
+ color: var(--text-tertiary);
6389
+ cursor: var(--cursor-button);
6390
+ animation: motion-enter-fade var(--motion-enter-duration) var(--motion-enter-ease);
6391
+ }
4599
6392
 
4600
6393
  .base-skeleton {
4601
6394
  display: block;
@@ -4695,6 +6488,128 @@ button.modal-with-double-button-close-button {
4695
6488
  flex: 0 0 var(--skeleton-spacer-size);
4696
6489
  }
4697
6490
 
6491
+ .base-slider:where(.root) {
6492
+ position: relative;
6493
+ display: flex;
6494
+ align-items: center;
6495
+ width: 100%;
6496
+ height: var(--slider-thumb-size);
6497
+ -webkit-user-select: none;
6498
+ -moz-user-select: none;
6499
+ user-select: none;
6500
+ touch-action: none;
6501
+ }
6502
+
6503
+ .base-slider:where(.track) {
6504
+ position: relative;
6505
+ flex-grow: 1;
6506
+ overflow: hidden;
6507
+ }
6508
+
6509
+ .base-slider:where(.range) {
6510
+ position: absolute;
6511
+ height: 100%;
6512
+ }
6513
+
6514
+ .base-slider:where(.thumb) {
6515
+ display: block;
6516
+ cursor: grab;
6517
+ }
6518
+
6519
+ .base-slider:where(.thumb):active {
6520
+ cursor: grabbing;
6521
+ }
6522
+
6523
+ .base-slider[data-disabled]:where(.thumb) {
6524
+ cursor: not-allowed;
6525
+ }
6526
+
6527
+ /***************************************************************************************************
6528
+ * *
6529
+ * slider *
6530
+ * *
6531
+ ***************************************************************************************************/
6532
+
6533
+ .slider {
6534
+ display: flex;
6535
+ flex-direction: column;
6536
+ gap: var(--spacing-8);
6537
+ width: 100%;
6538
+ }
6539
+
6540
+ .slider-track {
6541
+ height: var(--slider-track-thickness);
6542
+ border-radius: var(--radius-pill);
6543
+ background: var(--surface-muted);
6544
+ }
6545
+
6546
+ .slider-range {
6547
+ border-radius: inherit;
6548
+ }
6549
+
6550
+ .slider-range[data-disabled] {
6551
+ background: var(--surface-disabled);
6552
+ }
6553
+
6554
+ .slider.variant-primary .slider-range:not([data-disabled]) {
6555
+ background: var(--surface-brand);
6556
+ }
6557
+
6558
+ .slider.variant-neutral .slider-range:not([data-disabled]) {
6559
+ background: var(--surface-strong);
6560
+ }
6561
+
6562
+ .slider-thumb {
6563
+ width: var(--slider-thumb-size);
6564
+ height: var(--slider-thumb-size);
6565
+ border: var(--hairline) solid var(--border-default);
6566
+ border-radius: var(--radius-circle);
6567
+ background: var(--surface-base);
6568
+ box-shadow: var(--shadow-floating);
6569
+ }
6570
+
6571
+ .slider-thumb[data-disabled] {
6572
+ border-color: var(--border-disabled);
6573
+ box-shadow: none;
6574
+ }
6575
+
6576
+ .slider-label {
6577
+ display: flex;
6578
+ justify-content: space-between;
6579
+ gap: var(--spacing-8);
6580
+ font-size: var(--font-size-xsm);
6581
+ color: var(--text-muted);
6582
+ }
6583
+
6584
+ .slider[data-disabled] .slider-label {
6585
+ color: var(--text-disabled);
6586
+ }
6587
+
6588
+ /* 입력 상자 모양은 text-field-style.css 의 .text-field-input-wrapper 를 그대로 쓴다. 여기는 두 칸 사이와 칸 폭만 둔다 */
6589
+
6590
+ .base-split-text-field {
6591
+ box-sizing: border-box;
6592
+ }
6593
+
6594
+ /***************************************************************************************************
6595
+ * *
6596
+ * base-split-text-field *
6597
+ * *
6598
+ ***************************************************************************************************/
6599
+
6600
+ .split-text-field .split-text-field-separator,.split-text-field .split-text-field-hidden-digits {
6601
+ flex: none;
6602
+ color: var(--text-muted);
6603
+ }
6604
+
6605
+ /* 성별 한 자리 칸은 글자 하나 폭이고 나머지 폭은 앞 칸이 가진다 */
6606
+
6607
+ .split-text-field.split-text-field-rrn-first7 .split-text-field-second {
6608
+ flex: none;
6609
+ width: var(--split-text-field-digit-width);
6610
+ text-align: center;
6611
+ }
6612
+
4698
6613
  .base-step-progress:where(.root) {
4699
6614
  display: grid;
4700
6615
  grid-template-columns: repeat(var(--step-count), minmax(0, 1fr));
@@ -4975,6 +6890,44 @@ button.modal-with-double-button-close-button {
4975
6890
  background-color: var(--surface-muted);
4976
6891
  }
4977
6892
 
6893
+ .base-table-row {
6894
+ display: flex;
6895
+ align-items: baseline;
6896
+ }
6897
+
6898
+ /***************************************************************************************************
6899
+ * *
6900
+ * table-row *
6901
+ * *
6902
+ ***************************************************************************************************/
6903
+
6904
+ .table-row {
6905
+ gap: var(--spacing-12);
6906
+ padding: var(--spacing-8) var(--spacing-16);
6907
+ font-size: var(--font-size-sm);
6908
+ line-height: var(--line-height-sm);
6909
+ }
6910
+
6911
+ .table-row.align-space-between .table-row-right {
6912
+ text-align: end;
6913
+ }
6914
+
6915
+ /* leftRatio 가 없으면 var() 가 비어 width 가 auto(글자 폭)로 돌아간다 */
6916
+
6917
+ .table-row-left {
6918
+ flex: 0 1 auto;
6919
+ width: calc(var(--table-row-left-ratio) * 1%);
6920
+ min-width: 0;
6921
+ color: var(--text-muted);
6922
+ }
6923
+
6924
+ .table-row-right {
6925
+ flex: 1 1 0;
6926
+ min-width: 0;
6927
+ color: var(--text-body);
6928
+ font-weight: var(--font-weight-medium);
6929
+ }
6930
+
4978
6931
  .base-table {
4979
6932
  /* 진짜 테이블 레이아웃을 쓴다. 행을 flex 로 두면 헤더와 본문의 열 폭이 따로 놀아 고정열 경계가 어긋난다 */
4980
6933
  width: -moz-fit-content;
@@ -5455,6 +7408,82 @@ button.modal-with-double-button-close-button {
5455
7408
  color: var(--text-error);
5456
7409
  }
5457
7410
 
7411
+ .base-text-button {
7412
+ position: relative;
7413
+ display: inline-flex;
7414
+ align-items: center;
7415
+ gap: var(--spacing-2);
7416
+ padding: 0 var(--spacing-4);
7417
+ border: none;
7418
+ background-color: transparent;
7419
+ white-space: nowrap;
7420
+ text-decoration: none;
7421
+ cursor: var(--cursor-button);
7422
+
7423
+ /* 글자 한 줄 높이라도 누르는 자리는 터치 44. ::after 는 .motion-press-dim 의 딤 레이어라 ::before 를 쓴다 */
7424
+ }
7425
+
7426
+ .base-text-button::before {
7427
+ content: '';
7428
+ position: absolute;
7429
+ top: 50%;
7430
+ left: 50%;
7431
+ width: max(100%, var(--touch-target));
7432
+ height: max(100%, var(--touch-target));
7433
+ transform: translate(-50%, -50%);
7434
+ }
7435
+
7436
+ .base-text-button[data-disabled] {
7437
+ cursor: var(--cursor-disabled);
7438
+ }
7439
+
7440
+ /***************************************************************************************************
7441
+ * *
7442
+ * text-button *
7443
+ * *
7444
+ ***************************************************************************************************/
7445
+
7446
+ /* 눌림 딤은 공용 .motion-press-dim 이, 포커스 링은 전역 규칙이 그린다. 딤 레이어가 이 모서리를 이어받는다 */
7447
+
7448
+ .text-button {
7449
+ border-radius: var(--radius-control);
7450
+ font-weight: var(--font-weight-semibold);
7451
+ }
7452
+
7453
+ .text-button.size-s {
7454
+ height: var(--text-button-height-s);
7455
+ font-size: var(--font-size-sm);
7456
+ line-height: var(--line-height-sm);
7457
+ }
7458
+
7459
+ .text-button.size-m {
7460
+ height: var(--text-button-height-m);
7461
+ font-size: var(--font-size-base);
7462
+ line-height: var(--line-height-base);
7463
+ }
7464
+
7465
+ .text-button.size-l {
7466
+ height: var(--text-button-height-l);
7467
+ font-size: var(--font-size-lg);
7468
+ line-height: var(--line-height-lg);
7469
+ }
7470
+
7471
+ .text-button.color-primary {
7472
+ color: var(--text-brand);
7473
+ }
7474
+
7475
+ .text-button.color-neutral {
7476
+ color: var(--text-secondary);
7477
+ }
7478
+
7479
+ .text-button.variant-underline {
7480
+ text-decoration: underline;
7481
+ }
7482
+
7483
+ .text-button[data-disabled] {
7484
+ color: var(--text-disabled);
7485
+ }
7486
+
5458
7487
  .base-text-field.input {
5459
7488
  border: none;
5460
7489
  outline: none;
@@ -5978,3 +8007,79 @@ button.modal-with-double-button-close-button {
5978
8007
  .tooltip-content[data-state='closed'] {
5979
8008
  animation: motion-exit-fade var(--motion-exit-duration) var(--motion-exit-ease) forwards;
5980
8009
  }
8010
+
8011
+ /* 화면 맨 위 제목 묶음. 위에서부터 upper · 제목 줄(글 + right) · lower 로 쌓는다 */
8012
+
8013
+ .base-top {
8014
+ display: flex;
8015
+ flex-direction: column;
8016
+ }
8017
+
8018
+ /***************************************************************************************************
8019
+ * *
8020
+ * top *
8021
+ * *
8022
+ ***************************************************************************************************/
8023
+
8024
+ .top {
8025
+ padding: var(--spacing-20) var(--spacing-16) var(--spacing-16);
8026
+ }
8027
+
8028
+ .top.right-vertical-align-center .top-main {
8029
+ align-items: center;
8030
+ }
8031
+
8032
+ .top-upper {
8033
+ margin-bottom: var(--spacing-12);
8034
+ }
8035
+
8036
+ .top-main {
8037
+ display: flex;
8038
+ align-items: flex-start;
8039
+ gap: var(--spacing-12);
8040
+ }
8041
+
8042
+ /* 긴 제목은 줄바꿈하고 right 는 폭을 지킨다 */
8043
+
8044
+ .top-text {
8045
+ display: flex;
8046
+ flex: 1;
8047
+ flex-direction: column;
8048
+ gap: var(--spacing-4);
8049
+ min-width: 0;
8050
+ word-break: break-word;
8051
+ }
8052
+
8053
+ .top-right {
8054
+ flex: none;
8055
+ }
8056
+
8057
+ .top-subtitle-top {
8058
+ font-size: var(--font-size-sm);
8059
+ line-height: var(--line-height-sm);
8060
+ font-weight: var(--font-weight-medium);
8061
+ color: var(--text-secondary);
8062
+ }
8063
+
8064
+ /* 리셋 없이 쓰는 앱의 h1~h3 여백을 받지 않는다 */
8065
+
8066
+ .top-title {
8067
+ margin: 0;
8068
+ font-size: var(--font-size-2xl);
8069
+ line-height: var(--line-height-2xl);
8070
+ font-weight: var(--font-weight-bold);
8071
+ color: var(--text-primary);
8072
+ }
8073
+
8074
+ .top-subtitle-bottom {
8075
+ font-size: var(--font-size-sm);
8076
+ line-height: var(--line-height-sm);
8077
+ color: var(--text-muted);
8078
+ }
8079
+
8080
+ .top-lower {
8081
+ display: flex;
8082
+ flex-wrap: wrap;
8083
+ gap: var(--spacing-8);
8084
+ margin-top: var(--spacing-16);
8085
+ }