@neetechs/ui 0.1.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 (285) hide show
  1. package/CHANGELOG.md +74 -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 -220
  25. package/dist/components/avatar/avatar.css +298 -220
  26. package/dist/components/badge/badge.css +180 -174
  27. package/dist/components/breadcrumb/breadcrumb.css +207 -207
  28. package/dist/components/button/button.css +278 -238
  29. package/dist/components/card/card.css +336 -265
  30. package/dist/components/checkbox/checkbox.css +189 -189
  31. package/dist/components/chip/chip.css +269 -269
  32. package/dist/components/choice-card/choice-card.css +244 -0
  33. package/dist/components/data-grid/data-grid.css +520 -520
  34. package/dist/components/description-list/description-list.css +187 -187
  35. package/dist/components/dialog/dialog.css +348 -339
  36. package/dist/components/disclosure/disclosure.css +154 -0
  37. package/dist/components/dock/dock.css +319 -0
  38. package/dist/components/drawer/drawer.css +493 -484
  39. package/dist/components/dropdown/dropdown.css +325 -316
  40. package/dist/components/fab/fab.css +281 -0
  41. package/dist/components/icon-button/icon-button.css +162 -162
  42. package/dist/components/index.css +4 -0
  43. package/dist/components/input/input.css +163 -163
  44. package/dist/components/menu/menu.css +315 -315
  45. package/dist/components/pagination/pagination.css +250 -250
  46. package/dist/components/panel/panel.css +316 -284
  47. package/dist/components/popover/popover.css +22 -0
  48. package/dist/components/progress/progress.css +268 -256
  49. package/dist/components/radio/radio.css +166 -166
  50. package/dist/components/segmented-control/segmented-control.css +264 -205
  51. package/dist/components/select/select.css +117 -117
  52. package/dist/components/skeleton/skeleton.css +267 -267
  53. package/dist/components/split-button/split-button.css +292 -292
  54. package/dist/components/stat/stat.css +433 -403
  55. package/dist/components/switch/switch.css +195 -195
  56. package/dist/components/table/table.css +220 -220
  57. package/dist/components/tabs/tabs.css +393 -293
  58. package/dist/components/textarea/textarea.css +86 -86
  59. package/dist/components/toast/toast.css +345 -345
  60. package/dist/components/tooltip/tooltip.css +267 -258
  61. package/dist/domain/billing/index.css +629 -629
  62. package/dist/domain/calendar/agenda-list/agenda-list.css +224 -224
  63. package/dist/domain/calendar/day-slice/day-slice.css +384 -384
  64. package/dist/domain/calendar/day-timeline/day-timeline.css +332 -332
  65. package/dist/domain/calendar/event-card/event-card.css +338 -338
  66. package/dist/domain/calendar/index.css +5 -5
  67. package/dist/domain/calendar/month-grid/month-grid.css +426 -426
  68. package/dist/domain/calendar/week-grid/week-grid.css +487 -480
  69. package/dist/domain/companies/index.css +526 -526
  70. package/dist/domain/index.css +3 -3
  71. package/dist/index.css +5 -5
  72. package/dist/patterns/command-palette/command-palette.css +488 -447
  73. package/dist/patterns/company-switcher/company-switcher.css +390 -390
  74. package/dist/patterns/content-state/content-state.css +236 -236
  75. package/dist/patterns/document-preview/document-preview.css +169 -0
  76. package/dist/patterns/editor-workspace/editor-workspace.css +276 -0
  77. package/dist/patterns/empty-state/empty-state.css +260 -260
  78. package/dist/patterns/error-state/error-state.css +272 -272
  79. package/dist/patterns/form-layout/form-layout.css +106 -106
  80. package/dist/patterns/index.css +4 -0
  81. package/dist/patterns/loading-state/loading-state.css +287 -287
  82. package/dist/patterns/master-detail/master-detail.css +103 -103
  83. package/dist/patterns/notification-center/notification-center.css +443 -443
  84. package/dist/patterns/page/page.css +303 -303
  85. package/dist/patterns/profile-header/profile-header.css +205 -0
  86. package/dist/patterns/profile-menu/profile-menu.css +298 -298
  87. package/dist/patterns/record-list/record-list.css +302 -302
  88. package/dist/patterns/resource-card/resource-card.css +258 -0
  89. package/dist/patterns/search-bar/search-bar.css +457 -457
  90. package/dist/patterns/settings-layout/settings-layout.css +283 -150
  91. package/dist/patterns/workflow/workflow.css +168 -168
  92. package/dist/shell/app-shell/app-shell.css +429 -211
  93. package/dist/shell/content-frame/content-frame.css +93 -93
  94. package/dist/shell/header/header.css +328 -328
  95. package/dist/shell/index.css +8 -8
  96. package/dist/shell/mobile-nav/mobile-nav.css +254 -254
  97. package/dist/shell/navbar/navbar.css +28 -1
  98. package/dist/shell/sidebar/sidebar.css +923 -314
  99. package/dist/styles/accessibility.css +150 -150
  100. package/dist/styles/animations/motion.css +162 -162
  101. package/dist/styles/appearance/accent.css +215 -215
  102. package/dist/styles/appearance/density.css +61 -61
  103. package/dist/styles/appearance/motion.css +48 -40
  104. package/dist/styles/base.css +83 -83
  105. package/dist/styles/index.css +29 -28
  106. package/dist/styles/localization.css +56 -56
  107. package/dist/styles/reset.css +51 -51
  108. package/dist/styles/responsive.css +101 -101
  109. package/dist/styles/themes/dark.css +225 -202
  110. package/dist/styles/themes/high-contrast.css +378 -290
  111. package/dist/styles/themes/light.css +224 -201
  112. package/dist/styles/tokens/breakpoints.css +37 -37
  113. package/dist/styles/tokens/color.css +102 -102
  114. package/dist/styles/tokens/compatibility.css +33 -33
  115. package/dist/styles/tokens/elevation.css +33 -26
  116. package/dist/styles/tokens/index.css +9 -9
  117. package/dist/styles/tokens/motion.css +55 -36
  118. package/dist/styles/tokens/radius.css +26 -26
  119. package/dist/styles/tokens/spacing.css +56 -56
  120. package/dist/styles/tokens/typography.css +85 -85
  121. package/dist/styles/tokens/z-index.css +14 -14
  122. package/dist/styles/utilities/glass.css +97 -0
  123. package/dist/styles/utilities/layout.css +153 -153
  124. package/dist/styles/utilities/text.css +152 -152
  125. package/dist/styles/utilities/visibility.css +47 -47
  126. package/dist/version.d.ts +1 -1
  127. package/dist/version.js +1 -1
  128. package/docs/NEETECHS_UI_UPGRADE_PLAN.md +312 -192
  129. package/docs/accessibility.md +218 -218
  130. package/docs/appearance-and-theming.md +150 -150
  131. package/docs/brand-palette.md +36 -36
  132. package/docs/component-architecture.md +137 -137
  133. package/docs/component-guidelines.md +64 -64
  134. package/docs/components.md +326 -173
  135. package/docs/content-and-terminology.md +207 -207
  136. package/docs/design-system-baseline-audit.md +226 -226
  137. package/docs/design-token-contract.md +279 -279
  138. package/docs/glass-and-motion.md +310 -0
  139. package/docs/localization-and-rtl.md +147 -147
  140. package/docs/migration.md +193 -193
  141. package/docs/page-patterns-and-workflows.md +301 -275
  142. package/docs/responsive-and-adaptive-design.md +351 -351
  143. package/docs/semantic-role-migration-audit.md +77 -77
  144. package/docs/site-chrome.md +320 -313
  145. package/docs/states-feedback-and-recovery.md +206 -206
  146. package/docs/theming.md +5 -5
  147. package/package.json +2 -1
  148. package/src/ai/ai-action-button/ai-action-button.css +271 -271
  149. package/src/ai/ai-approval-card/ai-approval-card.css +323 -323
  150. package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  151. package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  152. package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  153. package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  154. package/src/ai/ai-tool-call/ai-tool-call.css +256 -256
  155. package/src/ai/index.css +7 -7
  156. package/src/appearance/cache.ts +236 -236
  157. package/src/appearance/cookie.ts +184 -184
  158. package/src/appearance/index.ts +86 -86
  159. package/src/appearance/preference.ts +121 -121
  160. package/src/appearance/theme-controller.ts +384 -384
  161. package/src/appearance/types.ts +61 -61
  162. package/src/behaviors/announcer.ts +222 -222
  163. package/src/behaviors/calendar.ts +92 -92
  164. package/src/behaviors/data-grid.ts +133 -133
  165. package/src/behaviors/dialog.ts +203 -203
  166. package/src/behaviors/direction.ts +34 -34
  167. package/src/behaviors/drawer.ts +210 -210
  168. package/src/behaviors/dropdown.ts +344 -344
  169. package/src/behaviors/focus-trap.ts +304 -304
  170. package/src/behaviors/forms.ts +205 -205
  171. package/src/behaviors/ids.ts +47 -47
  172. package/src/behaviors/index.ts +1 -0
  173. package/src/behaviors/keyboard.ts +305 -305
  174. package/src/behaviors/overlay.ts +344 -344
  175. package/src/behaviors/selection-indicator.ts +162 -0
  176. package/src/behaviors/sidebar.ts +14 -4
  177. package/src/behaviors/state.ts +282 -282
  178. package/src/behaviors/tabs.ts +137 -137
  179. package/src/behaviors/viewport.ts +61 -61
  180. package/src/components/alert/alert.css +226 -220
  181. package/src/components/avatar/avatar.css +298 -220
  182. package/src/components/badge/badge.css +180 -174
  183. package/src/components/breadcrumb/breadcrumb.css +207 -207
  184. package/src/components/button/button.css +278 -238
  185. package/src/components/card/card.css +336 -265
  186. package/src/components/checkbox/checkbox.css +189 -189
  187. package/src/components/chip/chip.css +269 -269
  188. package/src/components/choice-card/choice-card.css +244 -0
  189. package/src/components/data-grid/data-grid.css +520 -520
  190. package/src/components/description-list/description-list.css +187 -187
  191. package/src/components/dialog/dialog.css +348 -339
  192. package/src/components/disclosure/disclosure.css +154 -0
  193. package/src/components/dock/dock.css +319 -0
  194. package/src/components/drawer/drawer.css +493 -484
  195. package/src/components/dropdown/dropdown.css +325 -316
  196. package/src/components/fab/fab.css +281 -0
  197. package/src/components/icon-button/icon-button.css +162 -162
  198. package/src/components/index.css +4 -0
  199. package/src/components/input/input.css +163 -163
  200. package/src/components/menu/menu.css +315 -315
  201. package/src/components/pagination/pagination.css +250 -250
  202. package/src/components/panel/panel.css +316 -284
  203. package/src/components/popover/popover.css +22 -0
  204. package/src/components/progress/progress.css +268 -256
  205. package/src/components/radio/radio.css +166 -166
  206. package/src/components/segmented-control/segmented-control.css +264 -205
  207. package/src/components/select/select.css +117 -117
  208. package/src/components/skeleton/skeleton.css +267 -267
  209. package/src/components/split-button/split-button.css +292 -292
  210. package/src/components/stat/stat.css +433 -403
  211. package/src/components/switch/switch.css +195 -195
  212. package/src/components/table/table.css +220 -220
  213. package/src/components/tabs/tabs.css +393 -293
  214. package/src/components/textarea/textarea.css +86 -86
  215. package/src/components/toast/toast.css +345 -345
  216. package/src/components/tooltip/tooltip.css +267 -258
  217. package/src/domain/billing/index.css +629 -629
  218. package/src/domain/calendar/agenda-list/agenda-list.css +224 -224
  219. package/src/domain/calendar/day-slice/day-slice.css +384 -384
  220. package/src/domain/calendar/day-timeline/day-timeline.css +332 -332
  221. package/src/domain/calendar/event-card/event-card.css +338 -338
  222. package/src/domain/calendar/index.css +5 -5
  223. package/src/domain/calendar/month-grid/month-grid.css +426 -426
  224. package/src/domain/calendar/week-grid/week-grid.css +487 -480
  225. package/src/domain/companies/index.css +526 -526
  226. package/src/domain/index.css +3 -3
  227. package/src/index.css +5 -5
  228. package/src/index.ts +7 -7
  229. package/src/localization/index.ts +56 -56
  230. package/src/patterns/command-palette/command-palette.css +488 -447
  231. package/src/patterns/company-switcher/company-switcher.css +390 -390
  232. package/src/patterns/content-state/content-state.css +236 -236
  233. package/src/patterns/document-preview/document-preview.css +169 -0
  234. package/src/patterns/editor-workspace/editor-workspace.css +276 -0
  235. package/src/patterns/empty-state/empty-state.css +260 -260
  236. package/src/patterns/error-state/error-state.css +272 -272
  237. package/src/patterns/form-layout/form-layout.css +106 -106
  238. package/src/patterns/index.css +4 -0
  239. package/src/patterns/loading-state/loading-state.css +287 -287
  240. package/src/patterns/master-detail/master-detail.css +103 -103
  241. package/src/patterns/notification-center/notification-center.css +443 -443
  242. package/src/patterns/page/page.css +303 -303
  243. package/src/patterns/profile-header/profile-header.css +205 -0
  244. package/src/patterns/profile-menu/profile-menu.css +298 -298
  245. package/src/patterns/record-list/record-list.css +302 -302
  246. package/src/patterns/resource-card/resource-card.css +258 -0
  247. package/src/patterns/search-bar/search-bar.css +457 -457
  248. package/src/patterns/settings-layout/settings-layout.css +283 -150
  249. package/src/patterns/workflow/workflow.css +168 -168
  250. package/src/shell/app-shell/app-shell.css +429 -211
  251. package/src/shell/content-frame/content-frame.css +93 -93
  252. package/src/shell/header/header.css +328 -328
  253. package/src/shell/index.css +8 -8
  254. package/src/shell/mobile-nav/mobile-nav.css +254 -254
  255. package/src/shell/navbar/navbar.css +28 -1
  256. package/src/shell/sidebar/sidebar.css +923 -314
  257. package/src/styles/accessibility.css +150 -150
  258. package/src/styles/animations/motion.css +162 -162
  259. package/src/styles/appearance/accent.css +215 -215
  260. package/src/styles/appearance/density.css +61 -61
  261. package/src/styles/appearance/motion.css +48 -40
  262. package/src/styles/base.css +83 -83
  263. package/src/styles/index.css +29 -28
  264. package/src/styles/localization.css +56 -56
  265. package/src/styles/reset.css +51 -51
  266. package/src/styles/responsive.css +101 -101
  267. package/src/styles/themes/dark.css +225 -202
  268. package/src/styles/themes/high-contrast.css +378 -290
  269. package/src/styles/themes/light.css +224 -201
  270. package/src/styles/tokens/breakpoints.css +37 -37
  271. package/src/styles/tokens/color.css +102 -102
  272. package/src/styles/tokens/compatibility.css +33 -33
  273. package/src/styles/tokens/elevation.css +33 -26
  274. package/src/styles/tokens/index.css +9 -9
  275. package/src/styles/tokens/motion.css +55 -36
  276. package/src/styles/tokens/radius.css +26 -26
  277. package/src/styles/tokens/spacing.css +56 -56
  278. package/src/styles/tokens/typography.css +85 -85
  279. package/src/styles/tokens/z-index.css +14 -14
  280. package/src/styles/utilities/glass.css +97 -0
  281. package/src/styles/utilities/layout.css +153 -153
  282. package/src/styles/utilities/text.css +152 -152
  283. package/src/styles/utilities/visibility.css +47 -47
  284. package/src/types/index.ts +126 -126
  285. 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
+ }