@neetechs/ui 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/LICENSE +21 -21
  3. package/README.md +862 -861
  4. package/dist/ai/ai-action-button/ai-action-button.css +271 -271
  5. package/dist/ai/ai-approval-card/ai-approval-card.css +323 -323
  6. package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  7. package/dist/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  8. package/dist/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  9. package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  10. package/dist/ai/ai-tool-call/ai-tool-call.css +256 -256
  11. package/dist/ai/index.css +7 -7
  12. package/dist/behaviors/index.d.ts +1 -0
  13. package/dist/behaviors/index.d.ts.map +1 -1
  14. package/dist/behaviors/index.js +1 -0
  15. package/dist/behaviors/index.js.map +1 -1
  16. package/dist/behaviors/selection-indicator.d.ts +35 -0
  17. package/dist/behaviors/selection-indicator.d.ts.map +1 -0
  18. package/dist/behaviors/selection-indicator.js +133 -0
  19. package/dist/behaviors/selection-indicator.js.map +1 -0
  20. package/dist/behaviors/sidebar.d.ts +3 -1
  21. package/dist/behaviors/sidebar.d.ts.map +1 -1
  22. package/dist/behaviors/sidebar.js +10 -3
  23. package/dist/behaviors/sidebar.js.map +1 -1
  24. package/dist/components/alert/alert.css +226 -226
  25. package/dist/components/avatar/avatar.css +298 -298
  26. package/dist/components/badge/badge.css +180 -180
  27. package/dist/components/breadcrumb/breadcrumb.css +207 -207
  28. package/dist/components/button/button.css +278 -278
  29. package/dist/components/card/card.css +336 -284
  30. package/dist/components/checkbox/checkbox.css +189 -189
  31. package/dist/components/chip/chip.css +269 -269
  32. package/dist/components/data-grid/data-grid.css +520 -520
  33. package/dist/components/description-list/description-list.css +187 -187
  34. package/dist/components/dialog/dialog.css +348 -339
  35. package/dist/components/dock/dock.css +319 -0
  36. package/dist/components/drawer/drawer.css +493 -484
  37. package/dist/components/dropdown/dropdown.css +325 -316
  38. package/dist/components/fab/fab.css +281 -0
  39. package/dist/components/icon-button/icon-button.css +162 -162
  40. package/dist/components/index.css +2 -0
  41. package/dist/components/input/input.css +163 -163
  42. package/dist/components/menu/menu.css +315 -315
  43. package/dist/components/pagination/pagination.css +250 -250
  44. package/dist/components/panel/panel.css +316 -284
  45. package/dist/components/popover/popover.css +22 -0
  46. package/dist/components/progress/progress.css +268 -268
  47. package/dist/components/radio/radio.css +166 -166
  48. package/dist/components/segmented-control/segmented-control.css +264 -205
  49. package/dist/components/select/select.css +117 -117
  50. package/dist/components/skeleton/skeleton.css +267 -267
  51. package/dist/components/split-button/split-button.css +292 -292
  52. package/dist/components/stat/stat.css +433 -433
  53. package/dist/components/switch/switch.css +195 -195
  54. package/dist/components/table/table.css +220 -220
  55. package/dist/components/tabs/tabs.css +393 -293
  56. package/dist/components/textarea/textarea.css +86 -86
  57. package/dist/components/toast/toast.css +345 -345
  58. package/dist/components/tooltip/tooltip.css +267 -258
  59. package/dist/domain/billing/index.css +629 -629
  60. package/dist/domain/calendar/agenda-list/agenda-list.css +224 -224
  61. package/dist/domain/calendar/day-slice/day-slice.css +384 -384
  62. package/dist/domain/calendar/day-timeline/day-timeline.css +332 -332
  63. package/dist/domain/calendar/event-card/event-card.css +338 -338
  64. package/dist/domain/calendar/index.css +5 -5
  65. package/dist/domain/calendar/month-grid/month-grid.css +426 -426
  66. package/dist/domain/calendar/week-grid/week-grid.css +487 -480
  67. package/dist/domain/companies/index.css +526 -526
  68. package/dist/domain/index.css +3 -3
  69. package/dist/index.css +5 -5
  70. package/dist/patterns/command-palette/command-palette.css +488 -447
  71. package/dist/patterns/company-switcher/company-switcher.css +390 -390
  72. package/dist/patterns/content-state/content-state.css +236 -236
  73. package/dist/patterns/empty-state/empty-state.css +260 -260
  74. package/dist/patterns/error-state/error-state.css +272 -272
  75. package/dist/patterns/form-layout/form-layout.css +106 -106
  76. package/dist/patterns/loading-state/loading-state.css +287 -287
  77. package/dist/patterns/master-detail/master-detail.css +103 -103
  78. package/dist/patterns/notification-center/notification-center.css +443 -443
  79. package/dist/patterns/page/page.css +303 -303
  80. package/dist/patterns/profile-menu/profile-menu.css +298 -298
  81. package/dist/patterns/record-list/record-list.css +302 -302
  82. package/dist/patterns/search-bar/search-bar.css +457 -457
  83. package/dist/patterns/settings-layout/settings-layout.css +283 -283
  84. package/dist/patterns/workflow/workflow.css +168 -168
  85. package/dist/shell/app-shell/app-shell.css +429 -211
  86. package/dist/shell/content-frame/content-frame.css +93 -93
  87. package/dist/shell/header/header.css +328 -328
  88. package/dist/shell/index.css +8 -8
  89. package/dist/shell/mobile-nav/mobile-nav.css +254 -254
  90. package/dist/shell/sidebar/sidebar.css +923 -314
  91. package/dist/styles/accessibility.css +150 -150
  92. package/dist/styles/animations/motion.css +162 -162
  93. package/dist/styles/appearance/accent.css +215 -215
  94. package/dist/styles/appearance/density.css +61 -61
  95. package/dist/styles/appearance/motion.css +48 -40
  96. package/dist/styles/base.css +83 -83
  97. package/dist/styles/index.css +29 -28
  98. package/dist/styles/localization.css +56 -56
  99. package/dist/styles/reset.css +51 -51
  100. package/dist/styles/responsive.css +101 -101
  101. package/dist/styles/themes/dark.css +225 -210
  102. package/dist/styles/themes/high-contrast.css +378 -298
  103. package/dist/styles/themes/light.css +224 -209
  104. package/dist/styles/tokens/breakpoints.css +37 -37
  105. package/dist/styles/tokens/color.css +102 -102
  106. package/dist/styles/tokens/compatibility.css +33 -33
  107. package/dist/styles/tokens/elevation.css +33 -26
  108. package/dist/styles/tokens/index.css +9 -9
  109. package/dist/styles/tokens/motion.css +55 -36
  110. package/dist/styles/tokens/radius.css +26 -26
  111. package/dist/styles/tokens/spacing.css +56 -56
  112. package/dist/styles/tokens/typography.css +85 -85
  113. package/dist/styles/tokens/z-index.css +14 -14
  114. package/dist/styles/utilities/glass.css +97 -0
  115. package/dist/styles/utilities/layout.css +153 -153
  116. package/dist/styles/utilities/text.css +152 -152
  117. package/dist/styles/utilities/visibility.css +47 -47
  118. package/dist/version.d.ts +1 -1
  119. package/dist/version.js +1 -1
  120. package/docs/NEETECHS_UI_UPGRADE_PLAN.md +312 -312
  121. package/docs/accessibility.md +218 -218
  122. package/docs/appearance-and-theming.md +150 -150
  123. package/docs/brand-palette.md +36 -36
  124. package/docs/component-architecture.md +137 -137
  125. package/docs/component-guidelines.md +64 -64
  126. package/docs/components.md +326 -321
  127. package/docs/content-and-terminology.md +207 -207
  128. package/docs/design-system-baseline-audit.md +226 -226
  129. package/docs/design-token-contract.md +279 -279
  130. package/docs/glass-and-motion.md +310 -0
  131. package/docs/localization-and-rtl.md +147 -147
  132. package/docs/migration.md +193 -193
  133. package/docs/page-patterns-and-workflows.md +301 -301
  134. package/docs/responsive-and-adaptive-design.md +351 -351
  135. package/docs/semantic-role-migration-audit.md +77 -77
  136. package/docs/site-chrome.md +320 -317
  137. package/docs/states-feedback-and-recovery.md +206 -206
  138. package/docs/theming.md +5 -5
  139. package/package.json +2 -1
  140. package/src/ai/ai-action-button/ai-action-button.css +271 -271
  141. package/src/ai/ai-approval-card/ai-approval-card.css +323 -323
  142. package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  143. package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  144. package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  145. package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  146. package/src/ai/ai-tool-call/ai-tool-call.css +256 -256
  147. package/src/ai/index.css +7 -7
  148. package/src/appearance/cache.ts +236 -236
  149. package/src/appearance/cookie.ts +184 -184
  150. package/src/appearance/index.ts +86 -86
  151. package/src/appearance/preference.ts +121 -121
  152. package/src/appearance/theme-controller.ts +384 -384
  153. package/src/appearance/types.ts +61 -61
  154. package/src/behaviors/announcer.ts +222 -222
  155. package/src/behaviors/calendar.ts +92 -92
  156. package/src/behaviors/data-grid.ts +133 -133
  157. package/src/behaviors/dialog.ts +203 -203
  158. package/src/behaviors/direction.ts +34 -34
  159. package/src/behaviors/drawer.ts +210 -210
  160. package/src/behaviors/dropdown.ts +344 -344
  161. package/src/behaviors/focus-trap.ts +304 -304
  162. package/src/behaviors/forms.ts +205 -205
  163. package/src/behaviors/ids.ts +47 -47
  164. package/src/behaviors/index.ts +1 -0
  165. package/src/behaviors/keyboard.ts +305 -305
  166. package/src/behaviors/overlay.ts +344 -344
  167. package/src/behaviors/selection-indicator.ts +162 -0
  168. package/src/behaviors/sidebar.ts +14 -4
  169. package/src/behaviors/state.ts +282 -282
  170. package/src/behaviors/tabs.ts +137 -137
  171. package/src/behaviors/viewport.ts +61 -61
  172. package/src/components/alert/alert.css +226 -226
  173. package/src/components/avatar/avatar.css +298 -298
  174. package/src/components/badge/badge.css +180 -180
  175. package/src/components/breadcrumb/breadcrumb.css +207 -207
  176. package/src/components/button/button.css +278 -278
  177. package/src/components/card/card.css +336 -284
  178. package/src/components/checkbox/checkbox.css +189 -189
  179. package/src/components/chip/chip.css +269 -269
  180. package/src/components/data-grid/data-grid.css +520 -520
  181. package/src/components/description-list/description-list.css +187 -187
  182. package/src/components/dialog/dialog.css +348 -339
  183. package/src/components/dock/dock.css +319 -0
  184. package/src/components/drawer/drawer.css +493 -484
  185. package/src/components/dropdown/dropdown.css +325 -316
  186. package/src/components/fab/fab.css +281 -0
  187. package/src/components/icon-button/icon-button.css +162 -162
  188. package/src/components/index.css +2 -0
  189. package/src/components/input/input.css +163 -163
  190. package/src/components/menu/menu.css +315 -315
  191. package/src/components/pagination/pagination.css +250 -250
  192. package/src/components/panel/panel.css +316 -284
  193. package/src/components/popover/popover.css +22 -0
  194. package/src/components/progress/progress.css +268 -268
  195. package/src/components/radio/radio.css +166 -166
  196. package/src/components/segmented-control/segmented-control.css +264 -205
  197. package/src/components/select/select.css +117 -117
  198. package/src/components/skeleton/skeleton.css +267 -267
  199. package/src/components/split-button/split-button.css +292 -292
  200. package/src/components/stat/stat.css +433 -433
  201. package/src/components/switch/switch.css +195 -195
  202. package/src/components/table/table.css +220 -220
  203. package/src/components/tabs/tabs.css +393 -293
  204. package/src/components/textarea/textarea.css +86 -86
  205. package/src/components/toast/toast.css +345 -345
  206. package/src/components/tooltip/tooltip.css +267 -258
  207. package/src/domain/billing/index.css +629 -629
  208. package/src/domain/calendar/agenda-list/agenda-list.css +224 -224
  209. package/src/domain/calendar/day-slice/day-slice.css +384 -384
  210. package/src/domain/calendar/day-timeline/day-timeline.css +332 -332
  211. package/src/domain/calendar/event-card/event-card.css +338 -338
  212. package/src/domain/calendar/index.css +5 -5
  213. package/src/domain/calendar/month-grid/month-grid.css +426 -426
  214. package/src/domain/calendar/week-grid/week-grid.css +487 -480
  215. package/src/domain/companies/index.css +526 -526
  216. package/src/domain/index.css +3 -3
  217. package/src/index.css +5 -5
  218. package/src/index.ts +7 -7
  219. package/src/localization/index.ts +56 -56
  220. package/src/patterns/command-palette/command-palette.css +488 -447
  221. package/src/patterns/company-switcher/company-switcher.css +390 -390
  222. package/src/patterns/content-state/content-state.css +236 -236
  223. package/src/patterns/empty-state/empty-state.css +260 -260
  224. package/src/patterns/error-state/error-state.css +272 -272
  225. package/src/patterns/form-layout/form-layout.css +106 -106
  226. package/src/patterns/loading-state/loading-state.css +287 -287
  227. package/src/patterns/master-detail/master-detail.css +103 -103
  228. package/src/patterns/notification-center/notification-center.css +443 -443
  229. package/src/patterns/page/page.css +303 -303
  230. package/src/patterns/profile-menu/profile-menu.css +298 -298
  231. package/src/patterns/record-list/record-list.css +302 -302
  232. package/src/patterns/search-bar/search-bar.css +457 -457
  233. package/src/patterns/settings-layout/settings-layout.css +283 -283
  234. package/src/patterns/workflow/workflow.css +168 -168
  235. package/src/shell/app-shell/app-shell.css +429 -211
  236. package/src/shell/content-frame/content-frame.css +93 -93
  237. package/src/shell/header/header.css +328 -328
  238. package/src/shell/index.css +8 -8
  239. package/src/shell/mobile-nav/mobile-nav.css +254 -254
  240. package/src/shell/sidebar/sidebar.css +923 -314
  241. package/src/styles/accessibility.css +150 -150
  242. package/src/styles/animations/motion.css +162 -162
  243. package/src/styles/appearance/accent.css +215 -215
  244. package/src/styles/appearance/density.css +61 -61
  245. package/src/styles/appearance/motion.css +48 -40
  246. package/src/styles/base.css +83 -83
  247. package/src/styles/index.css +29 -28
  248. package/src/styles/localization.css +56 -56
  249. package/src/styles/reset.css +51 -51
  250. package/src/styles/responsive.css +101 -101
  251. package/src/styles/themes/dark.css +225 -210
  252. package/src/styles/themes/high-contrast.css +378 -298
  253. package/src/styles/themes/light.css +224 -209
  254. package/src/styles/tokens/breakpoints.css +37 -37
  255. package/src/styles/tokens/color.css +102 -102
  256. package/src/styles/tokens/compatibility.css +33 -33
  257. package/src/styles/tokens/elevation.css +33 -26
  258. package/src/styles/tokens/index.css +9 -9
  259. package/src/styles/tokens/motion.css +55 -36
  260. package/src/styles/tokens/radius.css +26 -26
  261. package/src/styles/tokens/spacing.css +56 -56
  262. package/src/styles/tokens/typography.css +85 -85
  263. package/src/styles/tokens/z-index.css +14 -14
  264. package/src/styles/utilities/glass.css +97 -0
  265. package/src/styles/utilities/layout.css +153 -153
  266. package/src/styles/utilities/text.css +152 -152
  267. package/src/styles/utilities/visibility.css +47 -47
  268. package/src/types/index.ts +126 -126
  269. package/src/version.ts +1 -1
@@ -1,314 +1,923 @@
1
- .nt-sidebar {
2
- display: flex;
3
- flex-direction: column;
4
- width: 100%;
5
- height: 100%;
6
- min-width: 0;
7
- background: var(--nt-bg-sidebar);
8
- border-inline-end: 1px solid var(--nt-border-subtle);
9
- color: var(--nt-text-secondary);
10
- }
11
-
12
- .nt-sidebar__brand {
13
- display: flex;
14
- align-items: center;
15
- gap: var(--nt-space-3);
16
- min-height: var(--nt-header-height);
17
- padding-inline: var(--nt-space-4);
18
- border-block-end: 1px solid var(--nt-border-subtle);
19
- }
20
-
21
- .nt-sidebar__logo {
22
- display: inline-flex;
23
- align-items: center;
24
- justify-content: center;
25
- width: var(--nt-control-height-md);
26
- height: var(--nt-control-height-md);
27
- flex: 0 0 auto;
28
- border-radius: var(--nt-radius-item);
29
- background: var(--nt-accent-subtle);
30
- color: var(--nt-accent);
31
- }
32
-
33
- .nt-sidebar__brand-text {
34
- min-width: 0;
35
- font: var(--nt-text-title-sm);
36
- color: var(--nt-text-primary);
37
- letter-spacing: var(--nt-letter-spacing-title);
38
- }
39
-
40
- .nt-sidebar__nav {
41
- display: flex;
42
- flex: 1 1 auto;
43
- flex-direction: column;
44
- gap: var(--nt-space-1);
45
- min-height: 0;
46
- padding: var(--nt-space-3);
47
- overflow-y: auto;
48
- }
49
-
50
- .nt-sidebar__section {
51
- display: flex;
52
- flex-direction: column;
53
- gap: var(--nt-space-1);
54
- }
55
-
56
- .nt-sidebar__section-label {
57
- padding: var(--nt-space-3) var(--nt-space-3) var(--nt-space-1);
58
- font: var(--nt-text-label-sm);
59
- color: var(--nt-text-subtle);
60
- letter-spacing: var(--nt-letter-spacing-wide);
61
- text-transform: uppercase;
62
- }
63
-
64
- .nt-sidebar__item {
65
- position: relative;
66
- display: flex;
67
- align-items: center;
68
- gap: var(--nt-space-3);
69
- min-height: var(--nt-density-navigation-item-height);
70
- padding-inline: var(--nt-space-3);
71
- border: 1px solid transparent;
72
- border-radius: var(--nt-radius-control);
73
- color: var(--nt-text-secondary);
74
- font: var(--nt-text-label-md);
75
- text-decoration: none;
76
- cursor: pointer;
77
- transition: var(--nt-transition-colors);
78
- }
79
-
80
- /* Active indicator: a short inline-start bar that grows in when the item
81
- * becomes current. It is a shape cue, so the active item is identifiable
82
- * without color. */
83
- .nt-sidebar__item::before {
84
- position: absolute;
85
- inset-block: var(--nt-space-2);
86
- inset-inline-start: calc(var(--nt-space-px) * -1);
87
- width: var(--nt-space-1);
88
- border-radius: var(--nt-radius-pill);
89
- background: var(--nt-selection-indicator);
90
- content: '';
91
- opacity: 0;
92
- transform: scaleY(0.4);
93
- transition:
94
- opacity var(--nt-duration-fast) var(--nt-ease-standard),
95
- transform var(--nt-duration-normal) var(--nt-ease-emphasized);
96
- }
97
-
98
- .nt-sidebar__item[aria-current='page']::before,
99
- .nt-sidebar__item--active::before {
100
- opacity: 1;
101
- transform: scaleY(1);
102
- }
103
-
104
- .nt-sidebar__item:active:not(.nt-sidebar__item--disabled) {
105
- background: var(--nt-bg-surface-active);
106
- }
107
-
108
- .nt-sidebar__item:hover {
109
- background: var(--nt-bg-surface-hover);
110
- color: var(--nt-text-primary);
111
- }
112
-
113
- .nt-sidebar__item:focus-visible {
114
- outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
115
- outline-offset: var(--nt-focus-ring-offset);
116
- }
117
-
118
- .nt-sidebar__item[aria-current='page'],
119
- .nt-sidebar__item--active {
120
- background: var(--nt-selection-bg);
121
- border-color: var(--nt-selection-border);
122
- color: var(--nt-selection-fg);
123
- }
124
-
125
- .nt-sidebar__item--disabled {
126
- color: var(--nt-text-disabled);
127
- cursor: not-allowed;
128
- pointer-events: none;
129
- }
130
-
131
- .nt-sidebar__item-icon {
132
- display: inline-flex;
133
- align-items: center;
134
- justify-content: center;
135
- width: var(--nt-space-5);
136
- height: var(--nt-space-5);
137
- flex: 0 0 auto;
138
- color: currentColor;
139
- }
140
-
141
- .nt-sidebar__item-label {
142
- min-width: 0;
143
- overflow: hidden;
144
- text-overflow: ellipsis;
145
- white-space: nowrap;
146
- }
147
-
148
- .nt-sidebar__item-badge {
149
- margin-inline-start: auto;
150
- }
151
-
152
- .nt-sidebar__footer {
153
- display: flex;
154
- flex-direction: column;
155
- gap: var(--nt-space-2);
156
- padding: var(--nt-space-3);
157
- border-block-start: 1px solid var(--nt-border-subtle);
158
- }
159
-
160
- /* Collapsible groups (disclosure): <div class="nt-sidebar__group">
161
- * <button class="nt-sidebar__group-trigger" aria-expanded="true"> label +
162
- * chevron, then <div class="nt-sidebar__group-items"><div
163
- * class="nt-sidebar__group-inner">items</div></div>. Height animates through
164
- * grid rows, and collapsed items leave the tab order via visibility. */
165
- .nt-sidebar__group {
166
- display: flex;
167
- flex-direction: column;
168
- gap: var(--nt-space-0-5);
169
- min-width: 0;
170
- }
171
-
172
- .nt-sidebar__group-trigger {
173
- display: flex;
174
- align-items: center;
175
- justify-content: space-between;
176
- gap: var(--nt-space-2);
177
- width: 100%;
178
- min-height: var(--nt-control-height-sm);
179
- padding-inline: var(--nt-space-3) var(--nt-space-2);
180
- border: 1px solid transparent;
181
- border-radius: var(--nt-radius-control);
182
- background: transparent;
183
- color: var(--nt-text-subtle);
184
- font: var(--nt-text-label-sm);
185
- letter-spacing: var(--nt-letter-spacing-wide);
186
- text-align: start;
187
- text-transform: uppercase;
188
- cursor: pointer;
189
- appearance: none;
190
- transition: var(--nt-transition-colors);
191
- }
192
-
193
- .nt-sidebar__group-trigger:hover {
194
- background: var(--nt-bg-surface-hover);
195
- color: var(--nt-text-primary);
196
- }
197
-
198
- .nt-sidebar__group-trigger:focus-visible {
199
- outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
200
- outline-offset: var(--nt-focus-ring-offset);
201
- }
202
-
203
- .nt-sidebar__group-label {
204
- flex: 1 1 auto;
205
- min-width: 0;
206
- overflow: hidden;
207
- text-overflow: ellipsis;
208
- white-space: nowrap;
209
- }
210
-
211
- .nt-sidebar__group-chevron {
212
- display: inline-flex;
213
- flex: 0 0 auto;
214
- width: var(--nt-icon-size-sm);
215
- height: var(--nt-icon-size-sm);
216
- transition: transform var(--nt-duration-normal) var(--nt-ease-standard);
217
- }
218
-
219
- .nt-sidebar__group-trigger[aria-expanded='false'] .nt-sidebar__group-chevron {
220
- transform: rotate(-90deg);
221
- }
222
-
223
- .nt-sidebar__group-trigger[aria-expanded='false']:dir(rtl) .nt-sidebar__group-chevron {
224
- transform: rotate(90deg);
225
- }
226
-
227
- .nt-sidebar__group-items {
228
- display: grid;
229
- grid-template-rows: 1fr;
230
- min-width: 0;
231
- transition:
232
- grid-template-rows var(--nt-duration-normal) var(--nt-ease-standard),
233
- visibility 0s linear 0s;
234
- }
235
-
236
- .nt-sidebar__group-inner {
237
- display: flex;
238
- flex-direction: column;
239
- gap: var(--nt-density-navigation-gap);
240
- min-width: 0;
241
- min-height: 0;
242
- overflow: hidden;
243
- }
244
-
245
- .nt-sidebar__group[data-state='closed'] > .nt-sidebar__group-items,
246
- .nt-sidebar__group-trigger[aria-expanded='false'] + .nt-sidebar__group-items {
247
- grid-template-rows: 0fr;
248
- visibility: hidden;
249
- transition:
250
- grid-template-rows var(--nt-duration-normal) var(--nt-ease-standard),
251
- visibility 0s linear var(--nt-duration-normal);
252
- }
253
-
254
- /* Floating sidebar: an inset panel beside the content (Billing workspace
255
- * look). Place inside .nt-app-shell__sidebar or any column. */
256
- .nt-sidebar--floating {
257
- height: auto;
258
- max-height: 100%;
259
- border: 1px solid var(--nt-border-subtle);
260
- border-radius: var(--nt-radius-panel);
261
- overflow: hidden;
262
- }
263
-
264
- .nt-sidebar--floating .nt-sidebar__nav {
265
- padding: var(--nt-space-2);
266
- }
267
-
268
- /* Collapsed icon rail: .nt-app-shell--collapsed on the shell, or
269
- * .nt-sidebar--collapsed on a standalone sidebar. Labels stay in the
270
- * accessibility tree (visually hidden), so icon-only links keep their
271
- * accessible names; groups show all items, separated by dividers. */
272
- :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) .nt-sidebar__brand {
273
- justify-content: center;
274
- padding-inline: var(--nt-space-2);
275
- }
276
-
277
- :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) :is(.nt-sidebar__brand-text, .nt-sidebar__section-label, .nt-sidebar__item-badge, .nt-sidebar__group-trigger) {
278
- display: none;
279
- }
280
-
281
- :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) .nt-sidebar__item-label {
282
- position: absolute;
283
- width: 1px;
284
- height: 1px;
285
- overflow: hidden;
286
- clip-path: inset(50%);
287
- white-space: nowrap;
288
- }
289
-
290
- :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) .nt-sidebar__item {
291
- justify-content: center;
292
- padding-inline: var(--nt-space-2);
293
- }
294
-
295
- :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) .nt-sidebar__group > .nt-sidebar__group-items {
296
- grid-template-rows: 1fr;
297
- visibility: visible;
298
- transition: none;
299
- }
300
-
301
- :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) :is(.nt-sidebar__group, .nt-sidebar__section) + :is(.nt-sidebar__group, .nt-sidebar__section) {
302
- padding-block-start: var(--nt-space-1);
303
- border-block-start: 1px solid var(--nt-border-subtle);
304
- }
305
-
306
- @media (prefers-reduced-motion: reduce) {
307
- .nt-sidebar__item,
308
- .nt-sidebar__item::before,
309
- .nt-sidebar__group-trigger,
310
- .nt-sidebar__group-chevron,
311
- .nt-sidebar__group-items {
312
- transition: none !important;
313
- }
314
- }
1
+ .nt-sidebar {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 100%;
5
+ height: 100%;
6
+ min-width: 0;
7
+ background: var(--nt-bg-sidebar);
8
+ border-inline-end: 1px solid var(--nt-border-subtle);
9
+ color: var(--nt-text-secondary);
10
+ }
11
+
12
+ .nt-sidebar__brand {
13
+ display: flex;
14
+ align-items: center;
15
+ gap: var(--nt-space-3);
16
+ min-height: var(--nt-header-height);
17
+ padding-inline: var(--nt-space-4);
18
+ border-block-end: 1px solid var(--nt-border-subtle);
19
+ }
20
+
21
+ .nt-sidebar__logo {
22
+ display: inline-flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ width: var(--nt-control-height-md);
26
+ height: var(--nt-control-height-md);
27
+ flex: 0 0 auto;
28
+ border-radius: var(--nt-radius-item);
29
+ background: var(--nt-accent-subtle);
30
+ color: var(--nt-accent);
31
+ }
32
+
33
+ .nt-sidebar__brand-text {
34
+ min-width: 0;
35
+ font: var(--nt-text-title-sm);
36
+ color: var(--nt-text-primary);
37
+ letter-spacing: var(--nt-letter-spacing-title);
38
+ }
39
+
40
+ .nt-sidebar__nav {
41
+ display: flex;
42
+ flex: 1 1 auto;
43
+ flex-direction: column;
44
+ gap: var(--nt-space-1);
45
+ min-height: 0;
46
+ padding: var(--nt-space-3);
47
+ overflow-y: auto;
48
+ }
49
+
50
+ .nt-sidebar__section {
51
+ display: flex;
52
+ flex-direction: column;
53
+ gap: var(--nt-space-1);
54
+ }
55
+
56
+ .nt-sidebar__section-label {
57
+ padding: var(--nt-space-3) var(--nt-space-3) var(--nt-space-1);
58
+ font: var(--nt-text-label-sm);
59
+ color: var(--nt-text-subtle);
60
+ letter-spacing: var(--nt-letter-spacing-wide);
61
+ text-transform: uppercase;
62
+ }
63
+
64
+ .nt-sidebar__item {
65
+ position: relative;
66
+ display: flex;
67
+ align-items: center;
68
+ gap: var(--nt-space-3);
69
+ min-height: var(--nt-density-navigation-item-height);
70
+ padding-inline: var(--nt-space-3);
71
+ border: 1px solid transparent;
72
+ border-radius: var(--nt-radius-control);
73
+ color: var(--nt-text-secondary);
74
+ font: var(--nt-text-label-md);
75
+ text-decoration: none;
76
+ cursor: pointer;
77
+ transition: var(--nt-transition-colors);
78
+ }
79
+
80
+ /* Active indicator: a short inline-start bar that grows in when the item
81
+ * becomes current. It is a shape cue, so the active item is identifiable
82
+ * without color. */
83
+ .nt-sidebar__item::before {
84
+ position: absolute;
85
+ inset-block: var(--nt-space-2);
86
+ inset-inline-start: calc(var(--nt-space-px) * -1);
87
+ width: var(--nt-space-1);
88
+ border-radius: var(--nt-radius-pill);
89
+ background: var(--nt-selection-indicator);
90
+ content: '';
91
+ opacity: 0;
92
+ transform: scaleY(0.4);
93
+ transition:
94
+ opacity var(--nt-duration-fast) var(--nt-ease-standard),
95
+ transform var(--nt-duration-normal) var(--nt-ease-emphasized);
96
+ }
97
+
98
+ .nt-sidebar__item[aria-current='page']::before,
99
+ .nt-sidebar__item--active::before {
100
+ opacity: 1;
101
+ transform: scaleY(1);
102
+ }
103
+
104
+ .nt-sidebar__item:active:not(.nt-sidebar__item--disabled) {
105
+ background: var(--nt-bg-surface-active);
106
+ }
107
+
108
+ .nt-sidebar__item:hover {
109
+ background: var(--nt-bg-surface-hover);
110
+ color: var(--nt-text-primary);
111
+ }
112
+
113
+ .nt-sidebar__item:focus-visible {
114
+ outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
115
+ outline-offset: var(--nt-focus-ring-offset);
116
+ }
117
+
118
+ .nt-sidebar__item[aria-current='page'],
119
+ .nt-sidebar__item--active {
120
+ background: var(--nt-selection-bg);
121
+ border-color: var(--nt-selection-border);
122
+ color: var(--nt-selection-fg);
123
+ }
124
+
125
+ .nt-sidebar__item--disabled {
126
+ color: var(--nt-text-disabled);
127
+ cursor: not-allowed;
128
+ pointer-events: none;
129
+ }
130
+
131
+ .nt-sidebar__item-icon {
132
+ display: inline-flex;
133
+ align-items: center;
134
+ justify-content: center;
135
+ width: var(--nt-space-5);
136
+ height: var(--nt-space-5);
137
+ flex: 0 0 auto;
138
+ color: currentColor;
139
+ }
140
+
141
+ .nt-sidebar__item-label {
142
+ min-width: 0;
143
+ overflow: hidden;
144
+ text-overflow: ellipsis;
145
+ white-space: nowrap;
146
+ }
147
+
148
+ .nt-sidebar__item-badge {
149
+ margin-inline-start: auto;
150
+ }
151
+
152
+ .nt-sidebar__footer {
153
+ display: flex;
154
+ flex-direction: column;
155
+ gap: var(--nt-space-2);
156
+ padding: var(--nt-space-3);
157
+ border-block-start: 1px solid var(--nt-border-subtle);
158
+ }
159
+
160
+ /* Collapsible groups (disclosure): <div class="nt-sidebar__group">
161
+ * <button class="nt-sidebar__group-trigger" aria-expanded="true"> label +
162
+ * chevron, then <div class="nt-sidebar__group-items"><div
163
+ * class="nt-sidebar__group-inner">items</div></div>. Height animates through
164
+ * grid rows, and collapsed items leave the tab order via visibility. */
165
+ .nt-sidebar__group {
166
+ display: flex;
167
+ flex-direction: column;
168
+ gap: var(--nt-space-0-5);
169
+ min-width: 0;
170
+ }
171
+
172
+ .nt-sidebar__group-trigger {
173
+ display: flex;
174
+ align-items: center;
175
+ justify-content: space-between;
176
+ gap: var(--nt-space-2);
177
+ width: 100%;
178
+ min-height: var(--nt-control-height-sm);
179
+ padding-inline: var(--nt-space-3) var(--nt-space-2);
180
+ border: 1px solid transparent;
181
+ border-radius: var(--nt-radius-control);
182
+ background: transparent;
183
+ color: var(--nt-text-subtle);
184
+ font: var(--nt-text-label-sm);
185
+ letter-spacing: var(--nt-letter-spacing-wide);
186
+ text-align: start;
187
+ text-transform: uppercase;
188
+ cursor: pointer;
189
+ appearance: none;
190
+ transition: var(--nt-transition-colors);
191
+ }
192
+
193
+ .nt-sidebar__group-trigger:hover {
194
+ background: var(--nt-bg-surface-hover);
195
+ color: var(--nt-text-primary);
196
+ }
197
+
198
+ .nt-sidebar__group-trigger:focus-visible {
199
+ outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
200
+ outline-offset: var(--nt-focus-ring-offset);
201
+ }
202
+
203
+ .nt-sidebar__group-label {
204
+ flex: 1 1 auto;
205
+ min-width: 0;
206
+ overflow: hidden;
207
+ text-overflow: ellipsis;
208
+ white-space: nowrap;
209
+ }
210
+
211
+ .nt-sidebar__group-chevron {
212
+ display: inline-flex;
213
+ flex: 0 0 auto;
214
+ width: var(--nt-icon-size-sm);
215
+ height: var(--nt-icon-size-sm);
216
+ transition: transform var(--nt-duration-normal) var(--nt-ease-standard);
217
+ }
218
+
219
+ .nt-sidebar__group-trigger[aria-expanded='false'] .nt-sidebar__group-chevron {
220
+ transform: rotate(-90deg);
221
+ }
222
+
223
+ .nt-sidebar__group-trigger[aria-expanded='false']:dir(rtl) .nt-sidebar__group-chevron {
224
+ transform: rotate(90deg);
225
+ }
226
+
227
+ .nt-sidebar__group-items {
228
+ display: grid;
229
+ grid-template-rows: 1fr;
230
+ min-width: 0;
231
+ transition:
232
+ grid-template-rows var(--nt-duration-normal) var(--nt-ease-standard),
233
+ visibility 0s linear 0s;
234
+ }
235
+
236
+ /* The inner wrapper clips the height animation. It bleeds into the nav
237
+ * gutter (negative margin, matching padding) so the clip box leaves room for
238
+ * focus rings and decorations without moving any item. */
239
+ .nt-sidebar__group-inner {
240
+ --nt-sidebar-group-bleed: var(--nt-space-1);
241
+ display: flex;
242
+ flex-direction: column;
243
+ gap: var(--nt-density-navigation-gap);
244
+ min-width: 0;
245
+ min-height: 0;
246
+ margin: calc(var(--nt-sidebar-group-bleed) * -1);
247
+ padding: var(--nt-sidebar-group-bleed);
248
+ overflow: hidden;
249
+ }
250
+
251
+ .nt-sidebar__group[data-state='closed'] > .nt-sidebar__group-items,
252
+ .nt-sidebar__group-trigger[aria-expanded='false'] + .nt-sidebar__group-items {
253
+ grid-template-rows: 0fr;
254
+ visibility: hidden;
255
+ transition:
256
+ grid-template-rows var(--nt-duration-normal) var(--nt-ease-standard),
257
+ visibility 0s linear var(--nt-duration-normal);
258
+ }
259
+
260
+ /* Floating sidebar: an inset panel beside the content (Billing workspace
261
+ * look). Place inside .nt-app-shell__sidebar or any column. */
262
+ .nt-sidebar--floating {
263
+ height: auto;
264
+ max-height: 100%;
265
+ border: 1px solid var(--nt-border-subtle);
266
+ border-radius: var(--nt-radius-panel);
267
+ overflow: hidden;
268
+ }
269
+
270
+ .nt-sidebar--floating .nt-sidebar__nav {
271
+ padding: var(--nt-space-2);
272
+ }
273
+
274
+ /* Collapsed icon rail: .nt-app-shell--collapsed on the shell, or
275
+ * .nt-sidebar--collapsed on a standalone sidebar. Labels stay in the
276
+ * accessibility tree (visually hidden), so icon-only links keep their
277
+ * accessible names; groups show all items, separated by dividers. */
278
+ :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) .nt-sidebar__brand {
279
+ justify-content: center;
280
+ padding-inline: var(--nt-space-2);
281
+ }
282
+
283
+ :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) :is(.nt-sidebar__brand-text, .nt-sidebar__section-label, .nt-sidebar__item-badge, .nt-sidebar__group-trigger) {
284
+ display: none;
285
+ }
286
+
287
+ :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) .nt-sidebar__item-label {
288
+ position: absolute;
289
+ width: 1px;
290
+ height: 1px;
291
+ overflow: hidden;
292
+ clip-path: inset(50%);
293
+ white-space: nowrap;
294
+ }
295
+
296
+ :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) .nt-sidebar__item {
297
+ justify-content: center;
298
+ padding-inline: var(--nt-space-2);
299
+ }
300
+
301
+ :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) .nt-sidebar__group > .nt-sidebar__group-items {
302
+ grid-template-rows: 1fr;
303
+ visibility: visible;
304
+ transition: none;
305
+ }
306
+
307
+ :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) :is(.nt-sidebar__group, .nt-sidebar__section) + :is(.nt-sidebar__group, .nt-sidebar__section) {
308
+ padding-block-start: var(--nt-space-1);
309
+ border-block-start: 1px solid var(--nt-border-subtle);
310
+ }
311
+
312
+
313
+ /* Brand action: a control at the inline end of the brand row, such as the
314
+ * off-canvas close button (data-nt-sidebar-close). */
315
+ .nt-sidebar__brand-action {
316
+ flex: 0 0 auto;
317
+ margin-inline-start: auto;
318
+ }
319
+
320
+ /* Account summary for the footer: avatar, name, plan or role, and an
321
+ * optional menu button. The rail keeps only the avatar. */
322
+ .nt-sidebar__account {
323
+ display: flex;
324
+ align-items: center;
325
+ gap: var(--nt-space-3);
326
+ min-width: 0;
327
+ }
328
+
329
+ .nt-sidebar__account-avatar {
330
+ flex: 0 0 auto;
331
+ width: var(--nt-control-height-md);
332
+ height: var(--nt-control-height-md);
333
+ }
334
+
335
+ .nt-sidebar__account-text {
336
+ display: flex;
337
+ flex: 1 1 auto;
338
+ flex-direction: column;
339
+ min-width: 0;
340
+ }
341
+
342
+ .nt-sidebar__account-name,
343
+ .nt-sidebar__account-meta {
344
+ overflow: hidden;
345
+ text-overflow: ellipsis;
346
+ white-space: nowrap;
347
+ }
348
+
349
+ .nt-sidebar__account-name {
350
+ color: var(--nt-text-primary);
351
+ font: var(--nt-text-label-md);
352
+ }
353
+
354
+ .nt-sidebar__account-meta {
355
+ color: var(--nt-text-secondary);
356
+ font: var(--nt-text-label-sm);
357
+ }
358
+
359
+ .nt-sidebar__account-action {
360
+ flex: 0 0 auto;
361
+ }
362
+
363
+ :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) .nt-sidebar__account {
364
+ justify-content: center;
365
+ }
366
+
367
+ :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) :is(.nt-sidebar__account-text, .nt-sidebar__account-action) {
368
+ display: none;
369
+ }
370
+
371
+ /* Search slot: <div class="nt-sidebar__search"> between the brand and the
372
+ * nav holds a search field or command trigger. The collapsed rail hides it
373
+ * (a search field cannot be operated at icon width); keep a command palette
374
+ * shortcut in the header or footer for the rail. */
375
+ .nt-sidebar__search {
376
+ display: grid;
377
+ grid-template-rows: 1fr;
378
+ min-width: 0;
379
+ padding: var(--nt-space-3) var(--nt-space-3) var(--nt-space-1);
380
+ }
381
+
382
+ .nt-sidebar__search > * {
383
+ min-width: 0;
384
+ min-height: 0;
385
+ }
386
+
387
+ :is(.nt-app-shell--collapsed, .nt-sidebar--collapsed) .nt-sidebar__search {
388
+ display: none;
389
+ }
390
+
391
+ /* ==========================================================================
392
+ * Glass sidebar (opt-in): add .nt-sidebar--glass beside .nt-sidebar.
393
+ *
394
+ * Colors come from the --nt-glass-* theme roles, which resolve to solid
395
+ * surfaces in high contrast, prefers-contrast: more, reduced transparency,
396
+ * and forced colors, so no rule below depends on translucency.
397
+ *
398
+ * The frosted material is painted by ::before rather than the sidebar box:
399
+ * a backdrop-filter on the sidebar itself would make it the containing
400
+ * block of position: fixed descendants (footer menus, popovers).
401
+ *
402
+ * Rail morph: icons keep one inline-start inset in both states, computed so
403
+ * they sit centered in the collapsed rail. Collapsing never moves an icon;
404
+ * the column narrows while labels fade and slide out, and expanding reverses
405
+ * it with labels arriving after the width has started to grow.
406
+ * ======================================================================== */
407
+ .nt-sidebar--glass {
408
+ --nt-sidebar-gutter: var(--nt-space-3);
409
+ --nt-sidebar-icon-inset: calc(
410
+ (var(--nt-sidebar-width-collapsed) - var(--nt-sidebar-gutter) * 2 - var(--nt-space-5) - var(--nt-space-px) * 4) / 2
411
+ );
412
+ --nt-sidebar-logo-inset: calc(
413
+ (var(--nt-sidebar-width-collapsed) - var(--nt-control-height-md) - var(--nt-space-px) * 2) / 2
414
+ );
415
+ --nt-sidebar-direction: 1;
416
+ --nt-sidebar-cutout-x: 0%;
417
+ --nt-sidebar-cutout-edge: transparent;
418
+ position: relative;
419
+ isolation: isolate;
420
+ overflow: hidden;
421
+ border: 1px solid var(--nt-glass-border);
422
+ border-radius: var(--nt-radius-panel);
423
+ background: transparent;
424
+ box-shadow: var(--nt-elevation-raised);
425
+ transition: inline-size var(--nt-duration-layout) var(--nt-ease-glide);
426
+ }
427
+
428
+ .nt-sidebar--glass:dir(rtl) {
429
+ --nt-sidebar-direction: -1;
430
+ --nt-sidebar-cutout-x: 100%;
431
+ }
432
+
433
+ .nt-sidebar--glass::before {
434
+ position: absolute;
435
+ inset: 0;
436
+ z-index: -1;
437
+ border-radius: inherit;
438
+ background-color: var(--nt-glass-bg);
439
+ background-image:
440
+ linear-gradient(to bottom, var(--nt-glass-highlight), transparent 32%),
441
+ radial-gradient(130% 55% at 25% 108%, var(--nt-glass-ambient-start), transparent 72%);
442
+ box-shadow: inset 0 1px 0 var(--nt-glass-highlight);
443
+ content: '';
444
+ pointer-events: none;
445
+ -webkit-backdrop-filter: blur(var(--nt-glass-blur)) saturate(var(--nt-glass-saturate));
446
+ backdrop-filter: blur(var(--nt-glass-blur)) saturate(var(--nt-glass-saturate));
447
+ }
448
+
449
+ .nt-sidebar--glass :is(.nt-sidebar__brand, .nt-sidebar__footer) {
450
+ border-color: var(--nt-glass-border);
451
+ }
452
+
453
+ .nt-sidebar--glass .nt-sidebar__brand {
454
+ overflow: hidden;
455
+ padding-inline: var(--nt-sidebar-logo-inset) var(--nt-space-4);
456
+ }
457
+
458
+ .nt-sidebar--glass .nt-sidebar__brand-text {
459
+ overflow: hidden;
460
+ white-space: nowrap;
461
+ }
462
+
463
+ .nt-sidebar--glass .nt-sidebar__footer {
464
+ overflow: hidden;
465
+ padding-inline: calc(var(--nt-sidebar-logo-inset) - var(--nt-space-px)) var(--nt-space-3);
466
+ }
467
+
468
+ /* Glass search field: a quiet translucent control with the shared search
469
+ * bar anatomy (icon, input, shortcut hint). */
470
+ .nt-sidebar--glass .nt-sidebar__search .nt-search-bar__control {
471
+ border-color: var(--nt-glass-border);
472
+ border-radius: var(--nt-radius-item);
473
+ background: var(--nt-glass-item-hover);
474
+ }
475
+
476
+ .nt-sidebar--glass .nt-sidebar__search .nt-search-bar__control:hover {
477
+ border-color: var(--nt-border-strong);
478
+ }
479
+
480
+ .nt-sidebar--glass .nt-sidebar__nav {
481
+ overflow-x: hidden;
482
+ scrollbar-color: var(--nt-scrollbar-thumb) transparent;
483
+ scrollbar-width: thin;
484
+ }
485
+
486
+ .nt-sidebar--glass .nt-sidebar__group-inner {
487
+ --nt-sidebar-group-bleed: var(--nt-sidebar-gutter);
488
+ }
489
+
490
+ .nt-sidebar--glass .nt-sidebar__item {
491
+ isolation: isolate;
492
+ padding-inline: var(--nt-sidebar-icon-inset) var(--nt-space-3);
493
+ border-color: transparent;
494
+ border-radius: calc(var(--nt-density-navigation-item-height) / 2);
495
+ background: var(--nt-glass-item-bg);
496
+ transition:
497
+ var(--nt-transition-selection),
498
+ border-radius var(--nt-duration-layout) var(--nt-ease-glide);
499
+ }
500
+
501
+ .nt-sidebar--glass .nt-sidebar__item:hover:not(.nt-sidebar__item--disabled) {
502
+ background: var(--nt-glass-item-hover);
503
+ color: var(--nt-text-primary);
504
+ transform: translateY(calc(var(--nt-space-0-5) * -1));
505
+ }
506
+
507
+ .nt-sidebar--glass .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active),
508
+ .nt-sidebar--glass .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active):hover {
509
+ border-color: transparent;
510
+ background: var(--nt-glass-selected-bg);
511
+ color: var(--nt-glass-selected-fg);
512
+ box-shadow: var(--nt-elevation-control);
513
+ transform: none;
514
+ }
515
+
516
+ .nt-sidebar--glass .nt-sidebar__item::before {
517
+ inset-inline-start: var(--nt-space-1);
518
+ }
519
+
520
+ .nt-sidebar--glass .nt-sidebar__item-icon {
521
+ transition: transform var(--nt-duration-layout) var(--nt-ease-glide);
522
+ }
523
+
524
+ .nt-sidebar--glass .nt-sidebar__search {
525
+ overflow: hidden;
526
+ transition:
527
+ grid-template-rows var(--nt-duration-layout) var(--nt-ease-glide),
528
+ padding var(--nt-duration-layout) var(--nt-ease-glide),
529
+ opacity var(--nt-duration-normal) var(--nt-ease-standard) var(--nt-duration-fast),
530
+ visibility 0s linear 0s;
531
+ }
532
+
533
+ /* Section labels and group triggers carry a divider that only shows in the
534
+ * rail, where their text is hidden. They keep their height in both states,
535
+ * so items never jump vertically while the sidebar morphs. */
536
+ .nt-sidebar--glass :is(.nt-sidebar__section-label, .nt-sidebar__group-trigger) {
537
+ position: relative;
538
+ color: var(--nt-text-secondary);
539
+ }
540
+
541
+ .nt-sidebar--glass .nt-sidebar__group-trigger:hover {
542
+ color: var(--nt-text-primary);
543
+ }
544
+
545
+ .nt-sidebar--glass :is(.nt-sidebar__section-label, .nt-sidebar__group-trigger)::after {
546
+ position: absolute;
547
+ inset-block-start: 50%;
548
+ inset-inline: var(--nt-space-3);
549
+ height: 1px;
550
+ background: var(--nt-glass-border);
551
+ content: '';
552
+ opacity: 0;
553
+ pointer-events: none;
554
+ transition: opacity var(--nt-duration-normal) var(--nt-ease-standard);
555
+ }
556
+
557
+ @media not all and (max-width: 40rem) {
558
+ .nt-sidebar--glass.nt-sidebar--collapsed {
559
+ inline-size: var(--nt-sidebar-width-collapsed);
560
+ }
561
+
562
+ .nt-sidebar--glass :is(.nt-sidebar__brand-text, .nt-sidebar__item-label, .nt-sidebar__group-label) {
563
+ opacity: 1;
564
+ transform: none;
565
+ transition:
566
+ opacity var(--nt-duration-normal) var(--nt-ease-standard) var(--nt-duration-fast),
567
+ transform var(--nt-duration-layout) var(--nt-ease-glide),
568
+ visibility 0s linear 0s;
569
+ }
570
+
571
+ .nt-sidebar--glass :is(.nt-sidebar__account-text, .nt-sidebar__account-action) {
572
+ opacity: 1;
573
+ transition:
574
+ opacity var(--nt-duration-normal) var(--nt-ease-standard) var(--nt-duration-fast),
575
+ visibility 0s linear 0s;
576
+ }
577
+
578
+ .nt-sidebar--glass .nt-sidebar__group-chevron {
579
+ opacity: 1;
580
+ transition:
581
+ transform var(--nt-duration-normal) var(--nt-ease-standard),
582
+ opacity var(--nt-duration-normal) var(--nt-ease-standard) var(--nt-duration-fast);
583
+ }
584
+
585
+ .nt-sidebar--glass .nt-sidebar__section-label {
586
+ transition: color var(--nt-duration-normal) var(--nt-ease-standard) var(--nt-duration-fast);
587
+ }
588
+
589
+ .nt-sidebar--glass .nt-sidebar__group-trigger {
590
+ transition:
591
+ var(--nt-transition-colors),
592
+ visibility 0s linear 0s;
593
+ }
594
+
595
+ /* Collapsed rail. Overrides the base rail rules that remove or visually
596
+ * hide elements, because removal cannot animate. Labels stay exposed to
597
+ * assistive technology; the controller adds a title to every item. */
598
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__brand {
599
+ justify-content: flex-start;
600
+ padding-inline: var(--nt-sidebar-logo-inset) var(--nt-space-4);
601
+ }
602
+
603
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) :is(.nt-sidebar__brand-text, .nt-sidebar__section-label) {
604
+ display: block;
605
+ }
606
+
607
+ /* Rail badges move to the icon's top inline-end corner and pop in once
608
+ * the rail has settled; expanding returns them to the end of the row. */
609
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__item-badge {
610
+ position: absolute;
611
+ inset-block-start: calc(var(--nt-space-1) * -1);
612
+ inset-inline-start: calc(var(--nt-sidebar-icon-inset) + var(--nt-space-3));
613
+ display: inline-flex;
614
+ margin: 0;
615
+ pointer-events: none;
616
+ animation: nt-sidebar-rail-badge-in var(--nt-duration-normal) var(--nt-ease-spring) var(--nt-duration-layout) both;
617
+ }
618
+
619
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) :is(.nt-sidebar__account-text, .nt-sidebar__account-action) {
620
+ display: flex;
621
+ opacity: 0;
622
+ visibility: hidden;
623
+ transition:
624
+ opacity var(--nt-duration-fast) var(--nt-ease-standard),
625
+ visibility 0s linear var(--nt-duration-fast);
626
+ }
627
+
628
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__account {
629
+ justify-content: flex-start;
630
+ }
631
+
632
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__search {
633
+ display: grid;
634
+ grid-template-rows: 0fr;
635
+ padding-block: 0;
636
+ opacity: 0;
637
+ visibility: hidden;
638
+ transition:
639
+ grid-template-rows var(--nt-duration-layout) var(--nt-ease-glide),
640
+ padding var(--nt-duration-layout) var(--nt-ease-glide),
641
+ opacity var(--nt-duration-fast) var(--nt-ease-standard),
642
+ visibility 0s linear var(--nt-duration-layout);
643
+ }
644
+
645
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) :is(.nt-sidebar__brand-text, .nt-sidebar__item-label, .nt-sidebar__group-label) {
646
+ opacity: 0;
647
+ transform: translateX(calc(var(--nt-space-2) * -1 * var(--nt-sidebar-direction)));
648
+ transition:
649
+ opacity var(--nt-duration-fast) var(--nt-ease-standard),
650
+ transform var(--nt-duration-layout) var(--nt-ease-glide),
651
+ visibility 0s linear var(--nt-duration-fast);
652
+ }
653
+
654
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__brand-text {
655
+ visibility: hidden;
656
+ }
657
+
658
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__item-label {
659
+ position: static;
660
+ width: auto;
661
+ height: auto;
662
+ overflow: hidden;
663
+ clip-path: none;
664
+ }
665
+
666
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__group-chevron {
667
+ opacity: 0;
668
+ transition:
669
+ transform var(--nt-duration-normal) var(--nt-ease-standard),
670
+ opacity var(--nt-duration-fast) var(--nt-ease-standard);
671
+ }
672
+
673
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__section-label {
674
+ color: transparent;
675
+ transition: color var(--nt-duration-fast) var(--nt-ease-standard);
676
+ }
677
+
678
+ /* Group triggers leave the tab order in the rail (visibility), after
679
+ * their text has faded; the divider stays visible in their place. */
680
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__group-trigger {
681
+ display: flex;
682
+ visibility: hidden;
683
+ transition:
684
+ var(--nt-transition-colors),
685
+ visibility 0s linear var(--nt-duration-fast);
686
+ }
687
+
688
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) :is(.nt-sidebar__section-label, .nt-sidebar__group-trigger)::after {
689
+ opacity: 1;
690
+ visibility: visible;
691
+ transition: opacity var(--nt-duration-normal) var(--nt-ease-standard) var(--nt-duration-fast);
692
+ }
693
+
694
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__item {
695
+ justify-content: flex-start;
696
+ padding-inline: var(--nt-sidebar-icon-inset) var(--nt-space-3);
697
+ border-radius: var(--nt-radius-item);
698
+ }
699
+
700
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__item-icon {
701
+ transform: scale(1.08);
702
+ }
703
+
704
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__nav {
705
+ scrollbar-width: none;
706
+ }
707
+
708
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) :is(.nt-sidebar__group, .nt-sidebar__section) + :is(.nt-sidebar__group, .nt-sidebar__section) {
709
+ padding-block-start: 0;
710
+ border-block-start: 0;
711
+ }
712
+
713
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) .nt-sidebar__group > .nt-sidebar__group-items {
714
+ transition:
715
+ grid-template-rows var(--nt-duration-layout) var(--nt-ease-glide),
716
+ visibility 0s linear 0s;
717
+ }
718
+ }
719
+
720
+ /* ==========================================================================
721
+ * Curved active-item connection (opt-in): add .nt-sidebar--cutout beside
722
+ * .nt-sidebar--glass. The selected item becomes a tab that runs into the
723
+ * sidebar's inline-end edge: ::before paints the tab body from the item to
724
+ * the edge, and ::after paints the two concave corners above and below it.
725
+ *
726
+ * Both layers live in the nav gutter, so selection never changes layout and
727
+ * the shapes are not clipped by the scroll container or group wrappers.
728
+ * The fill is --nt-sidebar-cutout-surface and the text --nt-sidebar-cutout-fg
729
+ * (defaults: the selected-on-glass roles). Inside .nt-app-shell--connected
730
+ * they become the content panel's surface, so the tab joins the panel.
731
+ *
732
+ * In the floating rail the tab settles into a centered tile; the connected
733
+ * rail keeps the tab. The open off-canvas panel shows a plain pill.
734
+ * ======================================================================== */
735
+ @media not all and (max-width: 40rem) {
736
+ .nt-app-shell--connected .nt-sidebar--glass.nt-sidebar--cutout {
737
+ border-inline-end-width: 0;
738
+ border-start-end-radius: 0;
739
+ border-end-end-radius: 0;
740
+ }
741
+
742
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item::before,
743
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item::after {
744
+ position: absolute;
745
+ inset-inline-start: auto;
746
+ inset-inline-end: calc((var(--nt-sidebar-gutter) + var(--nt-space-px)) * -1);
747
+ z-index: -1;
748
+ content: '';
749
+ opacity: 0;
750
+ pointer-events: none;
751
+ transform: translateX(calc(var(--nt-space-4) * var(--nt-sidebar-direction)));
752
+ transition:
753
+ opacity var(--nt-duration-normal) var(--nt-ease-standard),
754
+ transform var(--nt-duration-slow) var(--nt-ease-glide),
755
+ inset-inline-end var(--nt-duration-layout) var(--nt-ease-glide),
756
+ border-radius var(--nt-duration-layout) var(--nt-ease-glide);
757
+ }
758
+
759
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item::before {
760
+ inset-block: calc(var(--nt-space-px) * -1);
761
+ inset-inline-start: calc(var(--nt-space-px) * -1);
762
+ width: auto;
763
+ border: 1px solid var(--nt-sidebar-cutout-edge);
764
+ border-inline-end-width: 0;
765
+ border-start-start-radius: var(--nt-radius-item);
766
+ border-end-start-radius: var(--nt-radius-item);
767
+ border-start-end-radius: 0;
768
+ border-end-end-radius: 0;
769
+ background: var(--nt-sidebar-cutout-surface, var(--nt-glass-selected-bg));
770
+ }
771
+
772
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item::after {
773
+ inset-block: calc(var(--nt-sidebar-gutter) * -1);
774
+ width: var(--nt-sidebar-gutter);
775
+ border-radius: 0;
776
+ background:
777
+ radial-gradient(
778
+ circle at var(--nt-sidebar-cutout-x) 0%,
779
+ transparent calc(var(--nt-sidebar-gutter) - var(--nt-space-px) * 2),
780
+ var(--nt-sidebar-cutout-edge) calc(var(--nt-sidebar-gutter) - var(--nt-space-px)),
781
+ var(--nt-sidebar-cutout-edge) var(--nt-sidebar-gutter),
782
+ var(--nt-sidebar-cutout-surface, var(--nt-glass-selected-bg)) calc(var(--nt-sidebar-gutter) + var(--nt-space-px))
783
+ ) 0% 0% / var(--nt-sidebar-gutter) var(--nt-sidebar-gutter) no-repeat,
784
+ radial-gradient(
785
+ circle at var(--nt-sidebar-cutout-x) 100%,
786
+ transparent calc(var(--nt-sidebar-gutter) - var(--nt-space-px) * 2),
787
+ var(--nt-sidebar-cutout-edge) calc(var(--nt-sidebar-gutter) - var(--nt-space-px)),
788
+ var(--nt-sidebar-cutout-edge) var(--nt-sidebar-gutter),
789
+ var(--nt-sidebar-cutout-surface, var(--nt-glass-selected-bg)) calc(var(--nt-sidebar-gutter) + var(--nt-space-px))
790
+ ) 0% 100% / var(--nt-sidebar-gutter) var(--nt-sidebar-gutter) no-repeat;
791
+ }
792
+
793
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active),
794
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active):hover {
795
+ border-color: transparent;
796
+ background: transparent;
797
+ color: var(--nt-sidebar-cutout-fg, var(--nt-glass-selected-fg));
798
+ box-shadow: none;
799
+ transform: none;
800
+ }
801
+
802
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active)::before,
803
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active)::after {
804
+ opacity: 1;
805
+ transform: none;
806
+ }
807
+
808
+ /* Floating rail: the tab shrinks back to the item and becomes a tile. */
809
+ :is(.nt-app-shell--collapsed:not(.nt-app-shell--connected) .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed).nt-sidebar--cutout .nt-sidebar__item::before {
810
+ inset-inline-end: calc(var(--nt-space-px) * -1);
811
+ border-inline-end-width: 1px;
812
+ border-start-end-radius: var(--nt-radius-item);
813
+ border-end-end-radius: var(--nt-radius-item);
814
+ }
815
+
816
+ :is(.nt-app-shell--collapsed:not(.nt-app-shell--connected) .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed).nt-sidebar--cutout .nt-sidebar__item::after,
817
+ :is(.nt-app-shell--collapsed:not(.nt-app-shell--connected) .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed).nt-sidebar--cutout .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active)::after {
818
+ opacity: 0;
819
+ }
820
+
821
+ /* High contrast keeps the connection but outlines it, because the tab
822
+ * and the sidebar share one solid color there. */
823
+ :is([data-nt-theme='high-contrast'], [data-nt-contrast='high']) .nt-sidebar--glass.nt-sidebar--cutout {
824
+ --nt-sidebar-cutout-edge: var(--nt-border-strong);
825
+ }
826
+ }
827
+
828
+ /* The off-canvas panel already sits on a solid shell surface: skip the
829
+ * blur there and keep the stronger, more readable tint. */
830
+ @media (max-width: 64rem) {
831
+ .nt-app-shell--offcanvas .nt-sidebar--glass::before {
832
+ background-color: var(--nt-glass-bg-strong);
833
+ -webkit-backdrop-filter: none;
834
+ backdrop-filter: none;
835
+ }
836
+ }
837
+
838
+ /* An open off-canvas panel floats over the page: there is no edge to join,
839
+ * so the current item is a plain selected pill. */
840
+ :is(.nt-app-shell__sidebar[data-state='open'] .nt-sidebar--cutout, .nt-sidebar--cutout[data-state='open']) .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active) {
841
+ border-color: transparent;
842
+ background: var(--nt-glass-selected-bg);
843
+ color: var(--nt-glass-selected-fg);
844
+ box-shadow: var(--nt-elevation-control);
845
+ }
846
+
847
+ :is(.nt-app-shell__sidebar[data-state='open'] .nt-sidebar--cutout, .nt-sidebar--cutout[data-state='open']) .nt-sidebar__item::after,
848
+ :is(.nt-app-shell__sidebar[data-state='open'] .nt-sidebar--cutout, .nt-sidebar--cutout[data-state='open']) .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active)::before {
849
+ display: none;
850
+ }
851
+
852
+ @keyframes nt-sidebar-rail-badge-in {
853
+ from {
854
+ opacity: 0;
855
+ transform: scale(0.6);
856
+ }
857
+
858
+ to {
859
+ opacity: 1;
860
+ transform: none;
861
+ }
862
+ }
863
+
864
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
865
+ .nt-sidebar--glass::before {
866
+ background-color: var(--nt-glass-bg-strong);
867
+ }
868
+ }
869
+
870
+ @media (forced-colors: active) {
871
+ .nt-sidebar--glass {
872
+ border-color: CanvasText;
873
+ }
874
+
875
+ .nt-sidebar--glass::before {
876
+ background: Canvas;
877
+ -webkit-backdrop-filter: none;
878
+ backdrop-filter: none;
879
+ }
880
+
881
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item::after {
882
+ display: none;
883
+ }
884
+
885
+ .nt-sidebar--glass .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active),
886
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active),
887
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item:is([aria-current='page'], .nt-sidebar__item--active):hover {
888
+ border-color: Highlight;
889
+ background: Highlight;
890
+ color: HighlightText;
891
+ box-shadow: none;
892
+ }
893
+
894
+ .nt-sidebar--glass.nt-sidebar--cutout .nt-sidebar__item::before {
895
+ display: none;
896
+ }
897
+ }
898
+
899
+ @media (prefers-reduced-motion: reduce) {
900
+ .nt-sidebar__item,
901
+ .nt-sidebar__item::before,
902
+ .nt-sidebar__item::after,
903
+ .nt-sidebar__group-trigger,
904
+ .nt-sidebar__group-trigger::after,
905
+ .nt-sidebar__group-chevron,
906
+ .nt-sidebar__group-items,
907
+ .nt-sidebar__section-label,
908
+ .nt-sidebar__section-label::after,
909
+ .nt-sidebar__search,
910
+ .nt-sidebar--glass,
911
+ .nt-sidebar--glass :is(.nt-sidebar__brand-text, .nt-sidebar__item-label, .nt-sidebar__item-badge, .nt-sidebar__group-label, .nt-sidebar__item-icon, .nt-sidebar__account-text, .nt-sidebar__account-action) {
912
+ transition: none !important;
913
+ }
914
+
915
+ .nt-sidebar__item-badge {
916
+ animation: none !important;
917
+ }
918
+
919
+ .nt-sidebar--glass .nt-sidebar__item:hover:not(.nt-sidebar__item--disabled),
920
+ :is(.nt-app-shell--collapsed .nt-sidebar--glass, .nt-sidebar--glass.nt-sidebar--collapsed) :is(.nt-sidebar__brand-text, .nt-sidebar__item-label, .nt-sidebar__group-label, .nt-sidebar__item-icon) {
921
+ transform: none;
922
+ }
923
+ }