@tano.page/workbench 0.14.0 → 0.15.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 (177) hide show
  1. package/package.json +21 -8
  2. package/src/App.vue +76 -17
  3. package/src/appearance/appearance.ts +14 -4
  4. package/src/appearance/components/ThemePresetPreview.vue +52 -8
  5. package/src/appearance/interface-font.ts +99 -0
  6. package/src/appearance/theme.ts +26 -10
  7. package/src/appearance/use-interface-font.ts +30 -0
  8. package/src/assets/mail-provider-icons/NOTICE.txt +27 -0
  9. package/src/assets/mail-provider-icons/aliyun-mail.svg +3 -0
  10. package/src/assets/mail-provider-icons/gmail.svg +1 -0
  11. package/src/assets/mail-provider-icons/icloud.svg +12 -0
  12. package/src/assets/mail-provider-icons/netease-126.svg +5 -0
  13. package/src/assets/mail-provider-icons/netease-163.svg +5 -0
  14. package/src/assets/mail-provider-icons/qq.svg +9 -0
  15. package/src/assets/mail-provider-icons/tencent-exmail.svg +4 -0
  16. package/src/assistant/components/AssistantChangeList.vue +98 -21
  17. package/src/assistant/components/AssistantPanel.vue +424 -7
  18. package/src/assistant/components/PluginToolProposalCard.vue +235 -0
  19. package/src/assistant/engine.ts +56 -3
  20. package/src/assistant/files.ts +5 -13
  21. package/src/assistant/inbox.ts +1 -148
  22. package/src/assistant/locales/de-DE.json +4 -1
  23. package/src/assistant/locales/en-US.json +4 -1
  24. package/src/assistant/locales/es-ES.json +4 -1
  25. package/src/assistant/locales/ja-JP.json +4 -1
  26. package/src/assistant/locales/zh-CN.json +4 -1
  27. package/src/assistant/locales/zh-TW.json +4 -1
  28. package/src/assistant/mention-autocomplete.ts +69 -0
  29. package/src/assistant/prompts.ts +7 -0
  30. package/src/assistant/results.ts +20 -86
  31. package/src/assistant/store.ts +319 -12
  32. package/src/assistant/structures.ts +7 -5
  33. package/src/assistant/tasks.ts +3 -5
  34. package/src/assistant/workspace-bridge.ts +1 -1
  35. package/src/composables/use-document-actions.ts +38 -20
  36. package/src/composables/use-file-tree-controller.ts +7 -12
  37. package/src/composables/use-workbench-history.ts +2 -4
  38. package/src/composables/use-workbench-modals.ts +6 -1
  39. package/src/composables/use-workbench-outline.ts +0 -5
  40. package/src/composables/use-workbench-shortcuts.ts +26 -22
  41. package/src/data-tables/data-tables.ts +1 -2
  42. package/src/documents/components/DocumentHistoryPanel.vue +3 -1
  43. package/src/features.ts +1 -0
  44. package/src/fonts/Inter-Latin-Italic.woff2 +0 -0
  45. package/src/fonts/Inter-Latin.woff2 +0 -0
  46. package/src/fonts/TanoUISansSC-Bold.woff2 +0 -0
  47. package/src/fonts/TanoUISansSC-Medium.woff2 +0 -0
  48. package/src/fonts/TanoUISansSC-Regular.woff2 +0 -0
  49. package/src/help/help-milestones.ts +3 -5
  50. package/src/i18n/locales/de-DE.json +349 -3
  51. package/src/i18n/locales/en-US.json +349 -2
  52. package/src/i18n/locales/es-ES.json +349 -3
  53. package/src/i18n/locales/ja-JP.json +348 -2
  54. package/src/i18n/locales/zh-TW.json +348 -2
  55. package/src/mail/components/MailAccountDialog.vue +449 -0
  56. package/src/mail/components/MailComposerDialog.vue +325 -0
  57. package/src/mail/components/MailProviderIcon.vue +30 -0
  58. package/src/mail/components/MailWorkspaceView.vue +820 -0
  59. package/src/mail/components/SidebarMail.vue +133 -0
  60. package/src/mail/mail-avatar.ts +17 -0
  61. package/src/mail/mail-bridge.ts +68 -0
  62. package/src/mail/mail-calendar.ts +208 -0
  63. package/src/mail/mail-markdown.ts +195 -0
  64. package/src/mail/types.ts +226 -0
  65. package/src/objects/components/ObjectDetailModal.vue +1001 -0
  66. package/src/objects/workspace-objects.ts +1 -1
  67. package/src/plan-sync/types.ts +6 -3
  68. package/src/plans/calendar-interaction.ts +194 -0
  69. package/src/plans/calendar.ts +63 -7
  70. package/src/plans/components/CalendarDayPopover.vue +172 -39
  71. package/src/plans/components/CalendarView.vue +1736 -276
  72. package/src/plans/components/PlanArchiveDialog.vue +295 -0
  73. package/src/plans/components/PlanDateField.vue +6 -4
  74. package/src/plans/components/PlanDetailPanel.vue +227 -32
  75. package/src/plans/components/PlanEventList.vue +16 -4
  76. package/src/plans/components/SidebarPlan.vue +22 -15
  77. package/src/plans/components/TaskRepeatControls.vue +169 -30
  78. package/src/plans/local-reminders.ts +149 -0
  79. package/src/plans/personal-plans.ts +10 -1
  80. package/src/plans/plan-date.ts +8 -1
  81. package/src/plans/plan-migration.ts +95 -0
  82. package/src/plans/recurrence.ts +95 -0
  83. package/src/plans/task-repeat.ts +8 -8
  84. package/src/plans/timeline-layout.ts +92 -0
  85. package/src/plugins/assistant-bridge.ts +520 -0
  86. package/src/plugins/attachment-reader.ts +3 -1
  87. package/src/plugins/cache-storage.ts +42 -2
  88. package/src/plugins/components/PluginAutomations.vue +3 -3
  89. package/src/plugins/components/PluginCatalogBrowser.vue +17 -8
  90. package/src/plugins/components/PluginChangeSummary.vue +16 -3
  91. package/src/plugins/components/PluginConnections.vue +1 -1
  92. package/src/plugins/components/PluginCustomView.vue +2 -2
  93. package/src/plugins/components/PluginDetailPage.vue +129 -54
  94. package/src/plugins/components/PluginDocumentSlot.vue +63 -0
  95. package/src/plugins/components/PluginExplorer.vue +15 -21
  96. package/src/plugins/components/PluginImportDialog.vue +410 -0
  97. package/src/plugins/components/PluginInstaller.vue +39 -145
  98. package/src/plugins/components/PluginListItem.vue +3 -0
  99. package/src/plugins/components/PluginMaintenance.vue +21 -6
  100. package/src/plugins/components/PluginRuntimePanel.vue +3 -3
  101. package/src/plugins/components/PluginSettingsForm.vue +111 -0
  102. package/src/plugins/components/PluginStatusBar.vue +161 -0
  103. package/src/plugins/components/PluginSurface.vue +18 -6
  104. package/src/plugins/components/PluginUiDialog.vue +452 -0
  105. package/src/plugins/excalidraw/bundle.tano-plugin.json +1 -1
  106. package/src/plugins/excalidraw/manifest.json +12 -1
  107. package/src/plugins/host.ts +662 -43
  108. package/src/plugins/native.ts +2 -10
  109. package/src/plugins/overlay-mapping.ts +125 -0
  110. package/src/plugins/packages.ts +73 -1
  111. package/src/plugins/plugin-permissions.ts +57 -0
  112. package/src/plugins/plugin-sdk.ts +174 -8
  113. package/src/plugins/policy.ts +53 -3
  114. package/src/plugins/presentation-preview/bundle.tano-plugin.json +1 -1
  115. package/src/plugins/presentation-preview/manifest.json +2 -1
  116. package/src/plugins/queries.ts +3 -1
  117. package/src/plugins/sandbox.ts +15 -1
  118. package/src/plugins/use-plugin-actions.ts +67 -20
  119. package/src/plugins/user-plugins.ts +254 -0
  120. package/src/plugins/word-preview/bundle.tano-plugin.json +1 -1
  121. package/src/plugins/word-preview/manifest.json +13 -1
  122. package/src/plugins/workbench.ts +175 -2
  123. package/src/plugins/worker.js +105 -8
  124. package/src/plugins/workspace-plugin-runtime.ts +23 -7
  125. package/src/plugins/workspace-plugins.ts +212 -21
  126. package/src/runtime.ts +101 -3
  127. package/src/settings/components/SettingsAppearancePage.vue +46 -0
  128. package/src/settings/components/SettingsDocumentsPage.vue +0 -1
  129. package/src/settings/components/settings-search.ts +2 -3
  130. package/src/shell/components/SidebarNavigation.vue +22 -2
  131. package/src/shell/components/WorkbenchContextMenus.vue +21 -8
  132. package/src/shell/components/WorkbenchModals.vue +27 -46
  133. package/src/shell/components/WorkbenchPanes.vue +267 -84
  134. package/src/shell/components/WorkspaceBreadcrumb.vue +6 -14
  135. package/src/shell/components/WorkspaceViewSwitcher.vue +12 -7
  136. package/src/shell/use-workbench.ts +116 -145
  137. package/src/shell/workbench-async-components.ts +14 -5
  138. package/src/stores/mail.ts +414 -0
  139. package/src/stores/plan-sync.ts +2 -1
  140. package/src/stores/plans.ts +2 -9
  141. package/src/stores/workspace-knowledge.ts +1 -113
  142. package/src/stores/workspace-plugins-state.ts +537 -14
  143. package/src/stores/workspace-tabs-layout.ts +5 -43
  144. package/src/stores/workspace.ts +69 -66
  145. package/src/styles/agent-diff-modals.css +0 -7
  146. package/src/styles/dark-theme.css +3 -3
  147. package/src/styles/inspector.css +0 -59
  148. package/src/styles/layout-themes.css +346 -0
  149. package/src/styles/mail.css +1568 -0
  150. package/src/styles/mobile.css +2 -2
  151. package/src/styles/recent-and-media.css +0 -17
  152. package/src/styles/theme-contract.css +3 -3
  153. package/src/styles/workbench-shell.css +110 -17
  154. package/src/styles/workspace-states.css +9 -33
  155. package/src/styles.css +1 -1
  156. package/src/tabs/components/DesktopTabs.vue +0 -3
  157. package/src/tabs/components/NewTabPicker.vue +10 -4
  158. package/src/tabs/tab-label.ts +0 -1
  159. package/src/workspace/components/WorkspaceGeneralSettings.vue +0 -13
  160. package/src/workspace/components/WorkspaceIconPicker.vue +28 -6
  161. package/src/workspace/workspace-comments.ts +11 -151
  162. package/src/workspace/workspace-welcome.ts +1 -1
  163. package/src/documents/components/FormulaMenu.vue +0 -50
  164. package/src/files/components/FileDatabasePage.vue +0 -152
  165. package/src/files/components/FolderHomeIcon.vue +0 -12
  166. package/src/objects/components/ObjectDatabasePage.vue +0 -100
  167. package/src/objects/components/ObjectPanel.vue +0 -554
  168. package/src/plans/components/PersonalPlanDialog.vue +0 -105
  169. package/src/shell/components/WorkspaceViewPage.vue +0 -127
  170. package/src/shell/components/WorkspaceViewTab.vue +0 -24
  171. package/src/styles/object-panel.css +0 -163
  172. package/src/workspace/components/GitInspectionPanel.vue +0 -35
  173. package/src/workspace/components/WorkspaceSyncPanel.vue +0 -50
  174. package/src/workspace/welcome-slogans.ts +0 -11
  175. package/src/workspace/workspace-git.ts +0 -35
  176. package/src/workspace/workspace-sync.ts +0 -46
  177. package/src/workspace/workspace-views.ts +0 -48
@@ -0,0 +1,1568 @@
1
+ /* Desktop native mail client — sidebar, list/reader split and dialogs.
2
+ *
3
+ * Uses the workbench tokens only (workbench-shell.css / dark-theme.css):
4
+ * ink fill --green-fill / --green-fill-hover / --on-accent (primary)
5
+ * surfaces --paper / --surface / --hover / --selected
6
+ * seams --line (quiet) / --control-border (interactive)
7
+ * NB: --accent is a pale *selection* grey here, never a brand fill.
8
+ */
9
+
10
+ .mail-workspace {
11
+ --mail-ease: var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
12
+ --mail-quick: var(--motion-quick, 140ms);
13
+ --mail-base: var(--motion-base, 220ms);
14
+ --mail-row-radius: 8px;
15
+ display: flex;
16
+ flex-direction: column;
17
+ flex: 1;
18
+ min-height: 0;
19
+ height: 100%;
20
+ color: var(--text);
21
+ }
22
+
23
+ .mail-sr-only {
24
+ position: absolute;
25
+ width: 1px;
26
+ height: 1px;
27
+ overflow: hidden;
28
+ clip: rect(0 0 0 0);
29
+ white-space: nowrap;
30
+ }
31
+
32
+ /* ===================================================================== */
33
+ /* Buttons */
34
+ /* ===================================================================== */
35
+ .mail-btn-primary,
36
+ .mail-btn-secondary,
37
+ .mail-btn-ghost,
38
+ .mail-btn-danger {
39
+ display: inline-flex;
40
+ align-items: center;
41
+ justify-content: center;
42
+ gap: 6px;
43
+ height: 32px;
44
+ padding: 0 14px;
45
+ border-radius: var(--radius-control, 6px);
46
+ font-size: 13px;
47
+ font-weight: 500;
48
+ line-height: 1;
49
+ white-space: nowrap;
50
+ transition:
51
+ background-color var(--motion-quick, 140ms) var(--ease-standard),
52
+ border-color var(--motion-quick, 140ms) var(--ease-standard),
53
+ color var(--motion-quick, 140ms) var(--ease-standard),
54
+ box-shadow var(--motion-quick, 140ms) var(--ease-standard);
55
+ }
56
+ .mail-btn-primary {
57
+ background: var(--green-fill);
58
+ color: var(--on-accent, #fff);
59
+ box-shadow: 0 1px 2px #0000001a;
60
+ }
61
+ .mail-btn-primary:not(:disabled):hover {
62
+ background: var(--green-fill-hover);
63
+ }
64
+ .mail-btn-secondary {
65
+ border: 1px solid var(--control-border);
66
+ background: var(--paper);
67
+ color: var(--text);
68
+ }
69
+ .mail-btn-secondary:not(:disabled):hover {
70
+ background: var(--hover);
71
+ }
72
+ .mail-btn-ghost {
73
+ color: var(--text-secondary);
74
+ }
75
+ .mail-btn-ghost:not(:disabled):hover {
76
+ background: var(--hover);
77
+ color: var(--text);
78
+ }
79
+ .mail-btn-danger {
80
+ color: var(--danger);
81
+ }
82
+ .mail-btn-danger:not(:disabled):hover {
83
+ background: var(--danger-bg);
84
+ }
85
+ .mail-btn-lg {
86
+ height: 38px;
87
+ padding: 0 18px;
88
+ font-size: 14px;
89
+ }
90
+ .mail-btn-sm {
91
+ height: 28px;
92
+ padding: 0 10px;
93
+ font-size: 12px;
94
+ }
95
+ .mail-link-btn {
96
+ padding: 2px 4px;
97
+ border-radius: 4px;
98
+ color: var(--text);
99
+ font-size: 12px;
100
+ font-weight: 500;
101
+ text-decoration: underline;
102
+ text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
103
+ text-underline-offset: 3px;
104
+ transition: text-decoration-color var(--motion-quick, 140ms) var(--ease-standard);
105
+ white-space: nowrap;
106
+ }
107
+ .mail-link-btn:not(:disabled):hover {
108
+ text-decoration-color: currentColor;
109
+ }
110
+ /* Icon buttons scoped to mail that need a destructive or "on" state. */
111
+ .mail-workspace .icon-button,
112
+ .mail-modal .icon-button,
113
+ .sidebar-mail .icon-button {
114
+ transition:
115
+ background-color var(--motion-quick, 140ms) var(--ease-standard),
116
+ color var(--motion-quick, 140ms) var(--ease-standard);
117
+ }
118
+ .mail-workspace .icon-button.danger:not(:disabled):hover,
119
+ .mail-modal .icon-button.danger:not(:disabled):hover {
120
+ background: var(--danger-bg);
121
+ color: var(--danger);
122
+ }
123
+ .mail-btn-spinner {
124
+ width: 12px;
125
+ height: 12px;
126
+ border-radius: 50%;
127
+ border: 1.5px solid currentColor;
128
+ border-right-color: transparent;
129
+ animation: mail-spin 0.7s linear infinite;
130
+ }
131
+ @keyframes mail-spin {
132
+ to { rotate: 360deg; }
133
+ }
134
+
135
+ /* ===================================================================== */
136
+ /* Avatars — one muted tint per sender */
137
+ /* ===================================================================== */
138
+ .mail-avatar {
139
+ --avatar-hue: 220;
140
+ flex-shrink: 0;
141
+ width: 32px;
142
+ height: 32px;
143
+ border-radius: 50%;
144
+ display: inline-flex;
145
+ align-items: center;
146
+ justify-content: center;
147
+ font-size: 13px;
148
+ font-weight: 600;
149
+ line-height: 1;
150
+ user-select: none;
151
+ background: hsl(var(--avatar-hue) 22% 92%);
152
+ color: hsl(var(--avatar-hue) 22% 34%);
153
+ }
154
+ .mail-avatar.lg { width: 38px; height: 38px; font-size: 15px; }
155
+ :root[data-theme='dark'] .mail-avatar {
156
+ background: hsl(var(--avatar-hue) 12% 26%);
157
+ color: hsl(var(--avatar-hue) 22% 80%);
158
+ }
159
+
160
+ /* ===================================================================== */
161
+ /* Sidebar */
162
+ /* ===================================================================== */
163
+ .sidebar-mail {
164
+ display: flex;
165
+ flex-direction: column;
166
+ gap: 6px;
167
+ flex: 1;
168
+ min-height: 0;
169
+ overflow-y: auto;
170
+ padding: 4px 8px 16px;
171
+ scrollbar-width: none;
172
+ }
173
+ .sidebar-mail::-webkit-scrollbar { display: none; }
174
+
175
+ /* A tree-row look-alike shared by compose, connect and folder rows. */
176
+ .sidebar-mail-row {
177
+ width: 100%;
178
+ height: 30px;
179
+ display: flex;
180
+ align-items: center;
181
+ gap: 8px;
182
+ padding: 0 8px;
183
+ border-radius: 6px;
184
+ color: var(--text-secondary);
185
+ font-size: 14px;
186
+ text-align: left;
187
+ transition:
188
+ background-color var(--motion-quick, 140ms) var(--ease-standard),
189
+ color var(--motion-quick, 140ms) var(--ease-standard);
190
+ }
191
+ .sidebar-mail-row:hover {
192
+ background: var(--hover);
193
+ color: var(--text);
194
+ }
195
+ .sidebar-mail-row > svg {
196
+ flex-shrink: 0;
197
+ color: var(--muted);
198
+ transition: color var(--motion-quick, 140ms) var(--ease-standard);
199
+ }
200
+ .sidebar-mail-row:hover > svg { color: var(--text-secondary); }
201
+
202
+ .sidebar-mail-head {
203
+ display: flex;
204
+ align-items: center;
205
+ gap: 4px;
206
+ min-height: 32px;
207
+ }
208
+ .sidebar-mail-compose {
209
+ flex: 1;
210
+ color: var(--text);
211
+ font-weight: 500;
212
+ }
213
+ .sidebar-mail-compose > svg { color: var(--text-secondary); }
214
+ .sidebar-mail-title {
215
+ flex: 1;
216
+ padding: 0 8px;
217
+ font-size: 12px;
218
+ font-weight: 500;
219
+ color: var(--muted);
220
+ }
221
+ .sidebar-mail-head-icon { flex-shrink: 0; }
222
+
223
+ .sidebar-mail-empty {
224
+ display: flex;
225
+ flex-direction: column;
226
+ gap: 6px;
227
+ margin-top: 2px;
228
+ animation: tano-rise-in var(--motion-spring, 380ms) var(--ease-spring-smooth) both;
229
+ }
230
+ .sidebar-mail-empty p {
231
+ margin: 0;
232
+ padding: 4px 8px 6px;
233
+ font-size: 12px;
234
+ line-height: 1.7;
235
+ color: var(--muted);
236
+ }
237
+ .sidebar-mail-connect { font-size: 13px; }
238
+
239
+ .sidebar-mail-tree {
240
+ display: flex;
241
+ flex-direction: column;
242
+ gap: 14px;
243
+ margin-top: 6px;
244
+ }
245
+ .sidebar-mail-account-head {
246
+ display: flex;
247
+ align-items: center;
248
+ gap: 4px;
249
+ height: 26px;
250
+ padding: 0 2px 0 8px;
251
+ }
252
+ .sidebar-mail-account-name {
253
+ flex: 1;
254
+ min-width: 0;
255
+ font-size: 12px;
256
+ font-weight: 500;
257
+ color: var(--muted);
258
+ overflow: hidden;
259
+ text-overflow: ellipsis;
260
+ white-space: nowrap;
261
+ }
262
+ /* Section-level action appears with the section (VSCode view header). */
263
+ .sidebar-mail-sync {
264
+ width: 24px;
265
+ height: 24px;
266
+ opacity: 0;
267
+ transition: opacity var(--motion-quick, 140ms) var(--ease-standard),
268
+ background-color var(--motion-quick, 140ms) var(--ease-standard);
269
+ }
270
+ .sidebar-mail-account:hover .sidebar-mail-sync,
271
+ .sidebar-mail-sync:focus-visible,
272
+ .sidebar-mail-sync.busy {
273
+ opacity: 1;
274
+ }
275
+ .sidebar-mail-folder-list {
276
+ list-style: none;
277
+ margin: 2px 0 0;
278
+ padding: 0;
279
+ display: flex;
280
+ flex-direction: column;
281
+ gap: 1px;
282
+ }
283
+ .sidebar-mail-folder.active {
284
+ background: var(--selected);
285
+ color: var(--text);
286
+ }
287
+ .sidebar-mail-folder.active > svg { color: var(--text); }
288
+ .sidebar-mail-folder.unread { color: var(--text); }
289
+ .sidebar-mail-folder-name {
290
+ flex: 1;
291
+ min-width: 0;
292
+ overflow: hidden;
293
+ text-overflow: ellipsis;
294
+ white-space: nowrap;
295
+ }
296
+ .sidebar-mail-count {
297
+ font-size: 12px;
298
+ font-weight: 600;
299
+ font-variant-numeric: tabular-nums;
300
+ color: var(--text);
301
+ }
302
+
303
+ /* ===================================================================== */
304
+ /* Empty / unavailable hero */
305
+ /* ===================================================================== */
306
+ .mail-hero {
307
+ margin: auto;
308
+ max-width: 440px;
309
+ padding: 40px 24px 12vh;
310
+ display: flex;
311
+ flex-direction: column;
312
+ align-items: center;
313
+ text-align: center;
314
+ animation: tano-rise-in var(--motion-spring, 380ms) var(--ease-spring-smooth) both;
315
+ }
316
+ .mail-hero-icon {
317
+ width: 56px;
318
+ height: 56px;
319
+ border-radius: 16px;
320
+ display: inline-flex;
321
+ align-items: center;
322
+ justify-content: center;
323
+ background: var(--surface);
324
+ border: 1px solid var(--line);
325
+ color: var(--text-secondary);
326
+ margin-bottom: 20px;
327
+ }
328
+ .mail-hero-icon.small {
329
+ width: 48px;
330
+ height: 48px;
331
+ border-radius: 14px;
332
+ margin-bottom: 14px;
333
+ color: var(--muted);
334
+ }
335
+ .mail-hero h2 {
336
+ margin: 0 0 10px;
337
+ font-size: 20px;
338
+ font-weight: 600;
339
+ letter-spacing: -0.01em;
340
+ color: var(--text);
341
+ }
342
+ .mail-hero > p {
343
+ margin: 0 0 24px;
344
+ font-size: 13px;
345
+ line-height: 1.8;
346
+ color: var(--text-secondary);
347
+ }
348
+ .mail-hero > p.mail-hero-note {
349
+ margin: 18px 0 0;
350
+ max-width: 340px;
351
+ text-wrap: balance;
352
+ font-size: 12px;
353
+ line-height: 1.5;
354
+ color: var(--muted);
355
+ }
356
+ .mail-hero-note svg { vertical-align: -2px; margin-right: 5px; }
357
+
358
+ /* ===================================================================== */
359
+ /* Welcome (no account yet): pick a provider directly */
360
+ /* ===================================================================== */
361
+ .mail-welcome {
362
+ margin: auto;
363
+ width: min(560px, 100%);
364
+ padding: 48px 28px 10vh;
365
+ display: flex;
366
+ flex-direction: column;
367
+ gap: 36px;
368
+ }
369
+ .mail-welcome-head {
370
+ display: flex;
371
+ flex-direction: column;
372
+ align-items: flex-start;
373
+ animation: tano-rise-in var(--motion-spring, 380ms) var(--ease-spring-smooth) both;
374
+ }
375
+ .mail-welcome-head .mail-hero-icon {
376
+ width: 48px;
377
+ height: 48px;
378
+ border-radius: 14px;
379
+ margin-bottom: 22px;
380
+ }
381
+ .mail-welcome-head h2 {
382
+ margin: 0 0 8px;
383
+ font-size: 24px;
384
+ font-weight: 600;
385
+ line-height: 1.3;
386
+ letter-spacing: -0.01em;
387
+ color: var(--text);
388
+ }
389
+ .mail-welcome-head p {
390
+ margin: 0;
391
+ font-size: 14px;
392
+ line-height: 1.75;
393
+ color: var(--text-secondary);
394
+ }
395
+ .mail-welcome-providers h3 {
396
+ margin: 0 0 10px;
397
+ font-size: 12px;
398
+ font-weight: 500;
399
+ color: var(--muted);
400
+ animation: tano-fade-in var(--motion-base, 220ms) var(--ease-standard) 60ms both;
401
+ }
402
+ .mail-provider-grid {
403
+ display: grid;
404
+ grid-template-columns: repeat(2, minmax(0, 1fr));
405
+ gap: 6px;
406
+ }
407
+ .mail-provider {
408
+ --i: 0;
409
+ display: flex;
410
+ align-items: center;
411
+ gap: 12px;
412
+ height: 52px;
413
+ padding: 0 12px 0 10px;
414
+ border: 1px solid var(--line);
415
+ border-radius: var(--radius-card, 10px);
416
+ background: var(--paper);
417
+ color: var(--text);
418
+ font-size: 14px;
419
+ text-align: left;
420
+ animation: tano-rise-in var(--motion-spring, 380ms) var(--ease-spring-smooth) both;
421
+ animation-delay: calc(80ms + var(--i) * 28ms);
422
+ transition:
423
+ background-color var(--motion-quick, 140ms) var(--ease-standard),
424
+ border-color var(--motion-quick, 140ms) var(--ease-standard),
425
+ box-shadow var(--motion-base, 220ms) var(--ease-standard);
426
+ }
427
+ .mail-provider:hover {
428
+ background: var(--surface);
429
+ border-color: var(--control-border);
430
+ box-shadow: 0 2px 8px #0000000a;
431
+ }
432
+ .mail-provider:focus-visible { outline-offset: 2px; }
433
+ .mail-provider-icon {
434
+ display: inline-grid;
435
+ flex: none;
436
+ place-items: center;
437
+ width: 30px;
438
+ height: 30px;
439
+ border-radius: 8px;
440
+ }
441
+ .mail-provider-icon img {
442
+ display: block;
443
+ width: 24px;
444
+ height: 24px;
445
+ object-fit: contain;
446
+ }
447
+ .mail-provider-icon.generic {
448
+ background: var(--surface);
449
+ color: var(--text-secondary);
450
+ box-shadow: inset 0 0 0 1px var(--line);
451
+ }
452
+ .mail-provider-name {
453
+ flex: 1;
454
+ min-width: 0;
455
+ overflow: hidden;
456
+ text-overflow: ellipsis;
457
+ white-space: nowrap;
458
+ }
459
+ .mail-provider-chevron {
460
+ flex-shrink: 0;
461
+ color: var(--muted);
462
+ opacity: 0;
463
+ translate: -4px 0;
464
+ transition:
465
+ opacity var(--motion-quick, 140ms) var(--ease-standard),
466
+ translate var(--motion-spring, 380ms) var(--ease-spring);
467
+ }
468
+ .mail-provider:is(:hover, :focus-visible) .mail-provider-chevron {
469
+ opacity: 1;
470
+ translate: 0 0;
471
+ }
472
+ .mail-welcome-note {
473
+ margin: 0;
474
+ display: flex;
475
+ align-items: flex-start;
476
+ gap: 7px;
477
+ font-size: 12px;
478
+ line-height: 1.6;
479
+ color: var(--muted);
480
+ animation: tano-fade-in var(--motion-base, 220ms) var(--ease-standard) 300ms both;
481
+ }
482
+ .mail-welcome-note svg { flex-shrink: 0; margin-top: 2px; }
483
+ @media (max-width: 560px) {
484
+ .mail-provider-grid { grid-template-columns: 1fr; }
485
+ }
486
+
487
+ /* ===================================================================== */
488
+ /* Split: list | reader */
489
+ /* ===================================================================== */
490
+ .mail-split {
491
+ display: grid;
492
+ grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
493
+ flex: 1;
494
+ min-height: 0;
495
+ height: 100%;
496
+ }
497
+
498
+ .mail-list-pane {
499
+ display: flex;
500
+ flex-direction: column;
501
+ min-height: 0;
502
+ border-right: 1px solid var(--line);
503
+ }
504
+ .mail-list-header {
505
+ display: flex;
506
+ align-items: center;
507
+ gap: 4px;
508
+ padding: 12px 10px 8px 12px;
509
+ }
510
+ .mail-search-box {
511
+ flex: 1;
512
+ min-width: 0;
513
+ display: flex;
514
+ align-items: center;
515
+ gap: 7px;
516
+ height: 32px;
517
+ padding: 0 6px 0 10px;
518
+ border: 1px solid transparent;
519
+ border-radius: var(--radius-control, 6px);
520
+ background: var(--surface);
521
+ color: var(--muted);
522
+ transition:
523
+ background-color var(--motion-quick, 140ms) var(--ease-standard),
524
+ border-color var(--motion-quick, 140ms) var(--ease-standard),
525
+ box-shadow var(--motion-base, 220ms) var(--ease-standard);
526
+ }
527
+ .mail-search-box:hover { background: var(--hover); }
528
+ .mail-search-box:focus-within {
529
+ background: var(--paper);
530
+ border-color: var(--control-border);
531
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 6%, transparent);
532
+ color: var(--text-secondary);
533
+ }
534
+ .mail-search-box input {
535
+ flex: 1;
536
+ min-width: 0;
537
+ height: 100%;
538
+ border: 0;
539
+ background: transparent;
540
+ color: var(--text);
541
+ font-size: 13px;
542
+ }
543
+ .mail-search-box input::placeholder { color: var(--muted); }
544
+ .mail-search-box input:focus-visible { outline: none; }
545
+ .mail-search-clear {
546
+ width: 20px;
547
+ height: 20px;
548
+ display: inline-flex;
549
+ align-items: center;
550
+ justify-content: center;
551
+ border-radius: 50%;
552
+ color: var(--muted);
553
+ }
554
+ .mail-search-clear:hover { background: var(--hover); color: var(--text); }
555
+
556
+ .mail-filter-bar {
557
+ display: flex;
558
+ gap: 2px;
559
+ padding: 0 12px 8px;
560
+ overflow-x: auto;
561
+ scrollbar-width: none;
562
+ }
563
+ .mail-filter-bar::-webkit-scrollbar { display: none; }
564
+ .mail-filter-pill {
565
+ flex-shrink: 0;
566
+ height: 26px;
567
+ padding: 0 10px;
568
+ border-radius: 999px;
569
+ color: var(--text-secondary);
570
+ font-size: 12px;
571
+ transition:
572
+ background-color var(--motion-quick, 140ms) var(--ease-standard),
573
+ color var(--motion-quick, 140ms) var(--ease-standard);
574
+ }
575
+ .mail-filter-pill:hover {
576
+ background: var(--hover);
577
+ color: var(--text);
578
+ }
579
+ .mail-filter-pill.active {
580
+ background: var(--selected);
581
+ color: var(--text);
582
+ font-weight: 500;
583
+ }
584
+ .mail-list-alert { margin: 0 12px 8px; }
585
+
586
+ .mail-message-list {
587
+ list-style: none;
588
+ margin: 0;
589
+ padding: 2px 6px 12px;
590
+ flex: 1;
591
+ min-height: 0;
592
+ overflow-y: auto;
593
+ }
594
+ .mail-list-empty {
595
+ display: flex;
596
+ flex-direction: column;
597
+ align-items: center;
598
+ gap: 10px;
599
+ padding: 56px 24px;
600
+ text-align: center;
601
+ font-size: 12px;
602
+ line-height: 1.7;
603
+ color: var(--muted);
604
+ animation: tano-fade-in var(--motion-base, 220ms) var(--ease-standard) both;
605
+ }
606
+
607
+ .mail-message-row {
608
+ position: relative;
609
+ border-radius: var(--mail-row-radius);
610
+ transition: background-color var(--motion-quick, 140ms) var(--ease-standard);
611
+ }
612
+ /* Hairline separator between rows; hidden next to hovered/active rows. */
613
+ .mail-message-row + .mail-message-row::before {
614
+ content: '';
615
+ position: absolute;
616
+ top: 0;
617
+ left: 54px;
618
+ right: 10px;
619
+ height: 1px;
620
+ background: var(--line);
621
+ transition: opacity var(--motion-quick, 140ms) var(--ease-standard);
622
+ }
623
+ .mail-message-row:hover,
624
+ .mail-message-row:focus-within { background: var(--hover); }
625
+ .mail-message-row.active { background: var(--selected); }
626
+ .mail-message-row:is(:hover, :focus-within, .active)::before,
627
+ .mail-message-row:is(:hover, :focus-within, .active) + .mail-message-row::before {
628
+ opacity: 0;
629
+ }
630
+
631
+ .mail-message-item {
632
+ position: relative;
633
+ width: 100%;
634
+ display: flex;
635
+ align-items: flex-start;
636
+ gap: 10px;
637
+ padding: 11px 10px 11px 12px;
638
+ border-radius: var(--mail-row-radius);
639
+ text-align: left;
640
+ color: var(--text);
641
+ }
642
+ .mail-message-item:focus-visible { outline-offset: -2px; }
643
+ .mail-message-item .mail-avatar { margin-top: 1px; }
644
+ .mail-unread-dot {
645
+ position: absolute;
646
+ left: 3px;
647
+ top: 23px;
648
+ width: 6px;
649
+ height: 6px;
650
+ border-radius: 50%;
651
+ background: var(--green);
652
+ }
653
+ .mail-item-main {
654
+ flex: 1;
655
+ min-width: 0;
656
+ display: flex;
657
+ flex-direction: column;
658
+ gap: 2px;
659
+ }
660
+ .mail-item-top,
661
+ .mail-item-bottom {
662
+ display: flex;
663
+ align-items: center;
664
+ gap: 8px;
665
+ min-width: 0;
666
+ }
667
+ .mail-item-sender {
668
+ flex: 1;
669
+ min-width: 0;
670
+ font-size: 13px;
671
+ font-weight: 500;
672
+ color: var(--text-secondary);
673
+ overflow: hidden;
674
+ text-overflow: ellipsis;
675
+ white-space: nowrap;
676
+ }
677
+ .mail-item-date {
678
+ flex-shrink: 0;
679
+ font-size: 11px;
680
+ font-variant-numeric: tabular-nums;
681
+ color: var(--muted);
682
+ transition: opacity var(--motion-quick, 140ms) var(--ease-standard);
683
+ }
684
+ .mail-item-subject {
685
+ font-size: 13px;
686
+ color: var(--text-secondary);
687
+ overflow: hidden;
688
+ text-overflow: ellipsis;
689
+ white-space: nowrap;
690
+ }
691
+ .mail-item-snippet {
692
+ flex: 1;
693
+ min-width: 0;
694
+ font-size: 12px;
695
+ line-height: 1.5;
696
+ color: var(--muted);
697
+ overflow: hidden;
698
+ text-overflow: ellipsis;
699
+ white-space: nowrap;
700
+ }
701
+ .mail-item-icons {
702
+ display: inline-flex;
703
+ align-items: center;
704
+ gap: 5px;
705
+ flex-shrink: 0;
706
+ color: var(--muted);
707
+ }
708
+ .mail-message-row.unread .mail-item-sender,
709
+ .mail-message-row.unread .mail-item-subject {
710
+ color: var(--text);
711
+ font-weight: 600;
712
+ }
713
+ .mail-message-row.unread .mail-item-date { color: var(--text-secondary); }
714
+ .mail-icon-star {
715
+ color: #d29922;
716
+ fill: currentColor;
717
+ }
718
+
719
+ /* Quick actions float over the date on hover / keyboard focus. */
720
+ .mail-row-actions {
721
+ position: absolute;
722
+ top: 7px;
723
+ right: 6px;
724
+ display: inline-flex;
725
+ gap: 1px;
726
+ padding: 2px;
727
+ border-radius: 7px;
728
+ background: var(--paper);
729
+ box-shadow: 0 0 0 1px var(--line), 0 2px 6px #0000000f;
730
+ opacity: 0;
731
+ translate: 0 -2px;
732
+ pointer-events: none;
733
+ transition:
734
+ opacity var(--motion-quick, 140ms) var(--ease-standard),
735
+ translate var(--motion-base, 220ms) var(--ease-spring-smooth);
736
+ }
737
+ .mail-message-row:is(:hover, :focus-within) .mail-row-actions {
738
+ opacity: 1;
739
+ translate: 0 0;
740
+ pointer-events: auto;
741
+ }
742
+ .mail-message-row:is(:hover, :focus-within) .mail-item-date { opacity: 0; }
743
+ .mail-row-action {
744
+ width: 26px;
745
+ height: 24px;
746
+ display: inline-flex;
747
+ align-items: center;
748
+ justify-content: center;
749
+ border-radius: 5px;
750
+ color: var(--text-secondary);
751
+ transition:
752
+ background-color var(--motion-quick, 140ms) var(--ease-standard),
753
+ color var(--motion-quick, 140ms) var(--ease-standard);
754
+ }
755
+ .mail-row-action:hover { background: var(--hover); color: var(--text); }
756
+ .mail-row-action.on { color: #d29922; }
757
+ .mail-row-action.on svg { fill: currentColor; }
758
+ .mail-row-action.danger:hover { background: var(--danger-bg); color: var(--danger); }
759
+
760
+ /* ===================================================================== */
761
+ /* Reader */
762
+ /* ===================================================================== */
763
+ .mail-reader-pane {
764
+ display: flex;
765
+ flex-direction: column;
766
+ min-width: 0;
767
+ min-height: 0;
768
+ overflow: hidden;
769
+ }
770
+ .mail-reader-empty {
771
+ margin: auto;
772
+ padding-bottom: 10vh;
773
+ max-width: 280px;
774
+ display: flex;
775
+ flex-direction: column;
776
+ align-items: center;
777
+ text-align: center;
778
+ animation: tano-fade-in var(--motion-base, 220ms) var(--ease-standard) both;
779
+ }
780
+ .mail-reader-empty p {
781
+ margin: 0;
782
+ font-size: 13px;
783
+ line-height: 1.7;
784
+ color: var(--muted);
785
+ }
786
+
787
+ .mail-reader-loading {
788
+ width: 100%;
789
+ max-width: 760px;
790
+ margin: 0 auto;
791
+ padding: 64px 36px;
792
+ display: flex;
793
+ flex-direction: column;
794
+ gap: 14px;
795
+ }
796
+ .mail-skeleton {
797
+ display: block;
798
+ height: 12px;
799
+ border-radius: 6px;
800
+ background: linear-gradient(90deg, var(--surface) 25%, var(--hover) 50%, var(--surface) 75%);
801
+ background-size: 300% 100%;
802
+ animation: mail-shimmer 1.4s ease-in-out infinite;
803
+ }
804
+ .mail-skeleton.tall { height: 22px; }
805
+ .mail-skeleton.block { height: 180px; margin-top: 18px; border-radius: 10px; }
806
+ .mail-skeleton.w30 { width: 30%; }
807
+ .mail-skeleton.w40 { width: 40%; }
808
+ .mail-skeleton.w70 { width: 70%; }
809
+ @keyframes mail-shimmer {
810
+ from { background-position: 100% 0; }
811
+ to { background-position: 0 0; }
812
+ }
813
+
814
+ .mail-reader-article {
815
+ display: flex;
816
+ flex-direction: column;
817
+ flex: 1;
818
+ min-height: 0;
819
+ animation: mail-article-in var(--motion-spring, 380ms) var(--ease-spring-smooth) both;
820
+ }
821
+ @keyframes mail-article-in {
822
+ from { opacity: 0; translate: 0 4px; }
823
+ }
824
+ .mail-reader-toolbar {
825
+ flex-shrink: 0;
826
+ display: flex;
827
+ align-items: center;
828
+ gap: 4px;
829
+ height: 46px;
830
+ padding: 0 14px;
831
+ border-bottom: 1px solid var(--line);
832
+ }
833
+ .mail-toolbar-group {
834
+ display: inline-flex;
835
+ align-items: center;
836
+ gap: 2px;
837
+ }
838
+ .mail-toolbar-group.end { margin-left: auto; }
839
+ .mail-toolbar-divider {
840
+ width: 1px;
841
+ height: 16px;
842
+ margin: 0 6px;
843
+ background: var(--line);
844
+ }
845
+ .mail-reader-toolbar .icon-button.is-on { color: #d29922; }
846
+
847
+ .mail-reader-scroll {
848
+ flex: 1;
849
+ min-height: 0;
850
+ overflow-y: auto;
851
+ display: flex;
852
+ flex-direction: column;
853
+ }
854
+ .mail-reader-scroll > * {
855
+ width: 100%;
856
+ max-width: 820px;
857
+ margin-left: auto;
858
+ margin-right: auto;
859
+ }
860
+ .mail-reader-header {
861
+ padding: 28px 36px 6px;
862
+ display: flex;
863
+ flex-direction: column;
864
+ gap: 18px;
865
+ }
866
+ .mail-reader-subject {
867
+ margin: 0;
868
+ font-size: 22px;
869
+ font-weight: 600;
870
+ line-height: 1.35;
871
+ letter-spacing: -0.01em;
872
+ overflow-wrap: anywhere;
873
+ }
874
+ .mail-reader-sender {
875
+ display: flex;
876
+ align-items: flex-start;
877
+ gap: 12px;
878
+ }
879
+ .mail-reader-sender-text {
880
+ flex: 1;
881
+ min-width: 0;
882
+ display: flex;
883
+ flex-direction: column;
884
+ gap: 3px;
885
+ }
886
+ .mail-reader-sender-line {
887
+ display: flex;
888
+ align-items: baseline;
889
+ gap: 8px;
890
+ min-width: 0;
891
+ }
892
+ .mail-reader-sender-line strong {
893
+ font-size: 14px;
894
+ font-weight: 600;
895
+ white-space: nowrap;
896
+ }
897
+ .mail-reader-address {
898
+ min-width: 0;
899
+ font-size: 12px;
900
+ color: var(--muted);
901
+ overflow: hidden;
902
+ text-overflow: ellipsis;
903
+ white-space: nowrap;
904
+ }
905
+ .mail-reader-time {
906
+ margin-left: auto;
907
+ flex-shrink: 0;
908
+ font-size: 12px;
909
+ color: var(--muted);
910
+ font-variant-numeric: tabular-nums;
911
+ }
912
+ .mail-reader-recipients {
913
+ display: flex;
914
+ flex-wrap: wrap;
915
+ column-gap: 14px;
916
+ font-size: 12px;
917
+ line-height: 1.6;
918
+ color: var(--muted);
919
+ overflow-wrap: anywhere;
920
+ }
921
+
922
+ /* Inline notices */
923
+ .mail-alert {
924
+ margin: 0;
925
+ padding: 8px 10px 8px 12px;
926
+ border-radius: 8px;
927
+ font-size: 12px;
928
+ line-height: 1.55;
929
+ display: flex;
930
+ align-items: flex-start;
931
+ gap: 8px;
932
+ }
933
+ .mail-alert > svg { flex-shrink: 0; margin-top: 2px; }
934
+ .mail-alert > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
935
+ .mail-alert.error {
936
+ background: var(--danger-bg);
937
+ color: var(--danger);
938
+ }
939
+ .mail-alert.success {
940
+ background: var(--surface);
941
+ color: var(--text-secondary);
942
+ }
943
+ .mail-alert.success > svg { color: var(--brand-green); }
944
+ .mail-alert-close {
945
+ flex-shrink: 0;
946
+ width: 20px;
947
+ height: 20px;
948
+ display: inline-flex;
949
+ align-items: center;
950
+ justify-content: center;
951
+ border-radius: 4px;
952
+ color: inherit;
953
+ opacity: 0.7;
954
+ }
955
+ .mail-alert-close:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
956
+
957
+ .mail-notice-enter-active {
958
+ transition:
959
+ opacity var(--motion-base, 220ms) var(--ease-standard),
960
+ translate var(--motion-spring, 380ms) var(--ease-spring);
961
+ }
962
+ .mail-notice-leave-active {
963
+ transition: opacity var(--motion-quick, 140ms) var(--ease-exit);
964
+ }
965
+ .mail-notice-enter-from { opacity: 0; translate: 0 -4px; }
966
+ .mail-notice-leave-to { opacity: 0; }
967
+
968
+ /* Calendar invitations */
969
+ .mail-invites-section {
970
+ padding: 14px 36px 0;
971
+ display: flex;
972
+ flex-direction: column;
973
+ gap: 10px;
974
+ }
975
+ .mail-invite-card {
976
+ display: flex;
977
+ flex-wrap: wrap;
978
+ align-items: center;
979
+ gap: 12px 14px;
980
+ padding: 14px;
981
+ border: 1px solid var(--line);
982
+ border-radius: var(--radius-card, 10px);
983
+ background: var(--surface);
984
+ }
985
+ .mail-invite-date {
986
+ flex-shrink: 0;
987
+ width: 44px;
988
+ height: 48px;
989
+ border-radius: 8px;
990
+ display: inline-flex;
991
+ flex-direction: column;
992
+ align-items: center;
993
+ justify-content: center;
994
+ background: var(--paper);
995
+ border: 1px solid var(--line);
996
+ color: var(--text-secondary);
997
+ line-height: 1.1;
998
+ }
999
+ .mail-invite-date small { font-size: 10px; color: var(--danger); font-weight: 600; }
1000
+ .mail-invite-date b { font-size: 18px; font-weight: 600; color: var(--text); }
1001
+ .mail-invite-info {
1002
+ flex: 1;
1003
+ min-width: 180px;
1004
+ display: flex;
1005
+ flex-direction: column;
1006
+ gap: 3px;
1007
+ }
1008
+ .mail-invite-info strong { font-size: 14px; font-weight: 600; }
1009
+ .mail-invite-time { font-size: 12px; color: var(--text-secondary); }
1010
+ .mail-conflict-tag {
1011
+ align-self: flex-start;
1012
+ display: inline-flex;
1013
+ align-items: center;
1014
+ gap: 4px;
1015
+ margin-top: 2px;
1016
+ padding: 2px 7px;
1017
+ border-radius: 999px;
1018
+ font-size: 11px;
1019
+ color: var(--warning);
1020
+ background: var(--warning-bg);
1021
+ }
1022
+ .mail-invite-actions {
1023
+ display: flex;
1024
+ flex-wrap: wrap;
1025
+ align-items: center;
1026
+ gap: 6px;
1027
+ }
1028
+ /* RSVP as one segmented control: the current answer stays visibly chosen. */
1029
+ .mail-rsvp {
1030
+ display: inline-flex;
1031
+ padding: 2px;
1032
+ border-radius: 8px;
1033
+ background: var(--paper);
1034
+ border: 1px solid var(--line);
1035
+ }
1036
+ .mail-rsvp button {
1037
+ height: 24px;
1038
+ padding: 0 11px;
1039
+ border-radius: 6px;
1040
+ font-size: 12px;
1041
+ color: var(--text-secondary);
1042
+ transition:
1043
+ background-color var(--motion-quick, 140ms) var(--ease-standard),
1044
+ color var(--motion-quick, 140ms) var(--ease-standard);
1045
+ }
1046
+ .mail-rsvp button:not(:disabled):hover { background: var(--hover); color: var(--text); }
1047
+ .mail-rsvp button.selected {
1048
+ background: var(--green-fill);
1049
+ color: var(--on-accent, #fff);
1050
+ font-weight: 500;
1051
+ }
1052
+ .mail-rsvp button.decline.selected {
1053
+ background: var(--danger-bg);
1054
+ color: var(--danger);
1055
+ }
1056
+
1057
+ .mail-remote-banner {
1058
+ margin-top: 14px;
1059
+ padding: 0 36px;
1060
+ display: flex;
1061
+ align-items: center;
1062
+ gap: 8px;
1063
+ font-size: 12px;
1064
+ color: var(--muted);
1065
+ }
1066
+ .mail-remote-banner > svg { flex-shrink: 0; }
1067
+ .mail-remote-banner > span { flex: 1; min-width: 0; }
1068
+
1069
+ .mail-body-wrap {
1070
+ flex: 1;
1071
+ min-height: 320px;
1072
+ padding: 18px 36px 24px;
1073
+ display: flex;
1074
+ flex-direction: column;
1075
+ }
1076
+ .mail-body-wrap:has(> .mail-body-plain) {
1077
+ flex: 0 0 auto;
1078
+ min-height: 0;
1079
+ padding-bottom: 28px;
1080
+ }
1081
+ .mail-body-iframe {
1082
+ width: 100%;
1083
+ flex: 1;
1084
+ min-height: 420px;
1085
+ border: 0;
1086
+ border-radius: 8px;
1087
+ background: #ffffff;
1088
+ }
1089
+ :root[data-theme='dark'] .mail-body-iframe {
1090
+ /* Email HTML assumes white paper; keep it, but frame it as a sheet. */
1091
+ box-shadow: 0 0 0 1px var(--line);
1092
+ }
1093
+ .mail-body-plain {
1094
+ margin: 0;
1095
+ white-space: pre-wrap;
1096
+ word-break: break-word;
1097
+ font-family: var(--font-prose, inherit);
1098
+ font-size: 14px;
1099
+ line-height: 1.8;
1100
+ color: var(--text);
1101
+ }
1102
+
1103
+ .mail-attachments-bar {
1104
+ padding: 0 36px 32px;
1105
+ }
1106
+ .mail-attachments-bar h3 {
1107
+ margin: 0 0 10px;
1108
+ display: inline-flex;
1109
+ align-items: center;
1110
+ gap: 6px;
1111
+ font-size: 12px;
1112
+ font-weight: 500;
1113
+ color: var(--muted);
1114
+ }
1115
+ .mail-attachments-list {
1116
+ display: grid;
1117
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
1118
+ gap: 8px;
1119
+ }
1120
+ .mail-attachment-card {
1121
+ display: flex;
1122
+ align-items: center;
1123
+ gap: 10px;
1124
+ min-width: 0;
1125
+ padding: 8px 10px;
1126
+ border: 1px solid var(--line);
1127
+ border-radius: var(--radius-card, 10px);
1128
+ text-align: left;
1129
+ transition:
1130
+ background-color var(--motion-quick, 140ms) var(--ease-standard),
1131
+ border-color var(--motion-quick, 140ms) var(--ease-standard);
1132
+ }
1133
+ .mail-attachment-card:not(:disabled):hover {
1134
+ background: var(--hover);
1135
+ border-color: var(--control-border);
1136
+ }
1137
+ .mail-attachment-icon {
1138
+ flex-shrink: 0;
1139
+ width: 32px;
1140
+ height: 32px;
1141
+ border-radius: 7px;
1142
+ display: inline-flex;
1143
+ align-items: center;
1144
+ justify-content: center;
1145
+ background: var(--surface);
1146
+ color: var(--text-secondary);
1147
+ }
1148
+ .mail-attachment-text {
1149
+ flex: 1;
1150
+ min-width: 0;
1151
+ display: flex;
1152
+ flex-direction: column;
1153
+ gap: 1px;
1154
+ }
1155
+ .mail-attachment-name {
1156
+ font-size: 12px;
1157
+ color: var(--text);
1158
+ overflow: hidden;
1159
+ text-overflow: ellipsis;
1160
+ white-space: nowrap;
1161
+ }
1162
+ .mail-attachment-text small { font-size: 11px; color: var(--muted); }
1163
+ .mail-attachment-dl {
1164
+ flex-shrink: 0;
1165
+ color: var(--muted);
1166
+ opacity: 0;
1167
+ transition: opacity var(--motion-quick, 140ms) var(--ease-standard);
1168
+ }
1169
+ .mail-attachment-card:is(:hover, :focus-visible) .mail-attachment-dl { opacity: 1; }
1170
+
1171
+ /* ===================================================================== */
1172
+ /* Dialogs */
1173
+ /* ===================================================================== */
1174
+ .mail-modal-backdrop {
1175
+ position: fixed;
1176
+ inset: 0;
1177
+ z-index: 900;
1178
+ display: flex;
1179
+ align-items: center;
1180
+ justify-content: center;
1181
+ padding: 24px;
1182
+ /* Same veil as the workbench .modal-backdrop. */
1183
+ background: #0f0f0f35;
1184
+ backdrop-filter: blur(2px);
1185
+ }
1186
+ .mail-modal {
1187
+ width: min(600px, 100%);
1188
+ max-height: min(760px, 90vh);
1189
+ display: flex;
1190
+ flex-direction: column;
1191
+ overflow: hidden;
1192
+ background: var(--paper);
1193
+ color: var(--text);
1194
+ border: 1px solid var(--line);
1195
+ border-radius: var(--radius-dialog, 14px);
1196
+ box-shadow: var(--dialog-shadow, 0 24px 80px #00000026, 0 4px 16px #00000014);
1197
+ }
1198
+ .mail-modal-enter-active { transition: opacity var(--motion-base, 220ms) var(--ease-standard); }
1199
+ .mail-modal-leave-active { transition: opacity var(--motion-quick, 140ms) var(--ease-exit); }
1200
+ .mail-modal-enter-active .mail-modal {
1201
+ transition:
1202
+ scale var(--motion-spring, 380ms) var(--ease-spring),
1203
+ translate var(--motion-spring, 380ms) var(--ease-spring),
1204
+ opacity var(--motion-base, 220ms) var(--ease-standard);
1205
+ }
1206
+ .mail-modal-leave-active .mail-modal {
1207
+ transition:
1208
+ scale var(--motion-quick, 140ms) var(--ease-exit),
1209
+ opacity var(--motion-quick, 140ms) var(--ease-exit);
1210
+ }
1211
+ .mail-modal-enter-from,
1212
+ .mail-modal-leave-to { opacity: 0; }
1213
+ .mail-modal-enter-from .mail-modal { scale: 0.97; translate: 0 8px; opacity: 0; }
1214
+ .mail-modal-leave-to .mail-modal { scale: 0.98; opacity: 0; }
1215
+
1216
+ .mail-modal-header {
1217
+ flex-shrink: 0;
1218
+ display: flex;
1219
+ align-items: flex-start;
1220
+ justify-content: space-between;
1221
+ gap: 16px;
1222
+ padding: 22px 18px 6px 24px;
1223
+ }
1224
+ .mail-modal-header.compact {
1225
+ align-items: center;
1226
+ padding: 12px 12px 4px 20px;
1227
+ }
1228
+ .mail-modal-header h2 {
1229
+ margin: 0;
1230
+ font-size: 17px;
1231
+ font-weight: 600;
1232
+ color: var(--text);
1233
+ overflow: hidden;
1234
+ text-overflow: ellipsis;
1235
+ white-space: nowrap;
1236
+ }
1237
+ .mail-modal-header.compact h2 { font-size: 14px; }
1238
+ .mail-modal-heading { min-width: 0; }
1239
+ .mail-modal-heading p {
1240
+ margin: 6px 0 0;
1241
+ display: flex;
1242
+ align-items: flex-start;
1243
+ gap: 6px;
1244
+ font-size: 12px;
1245
+ line-height: 1.6;
1246
+ color: var(--muted);
1247
+ }
1248
+ .mail-modal-heading p svg { flex-shrink: 0; margin-top: 2px; }
1249
+
1250
+ .mail-modal-body {
1251
+ flex: 1;
1252
+ min-height: 0;
1253
+ overflow-y: auto;
1254
+ padding: 14px 24px 20px;
1255
+ display: flex;
1256
+ flex-direction: column;
1257
+ gap: 22px;
1258
+ }
1259
+ .mail-modal-section h3 {
1260
+ margin: 0 0 10px;
1261
+ font-size: 12px;
1262
+ font-weight: 500;
1263
+ color: var(--muted);
1264
+ }
1265
+ .mail-modal-footer {
1266
+ flex-shrink: 0;
1267
+ display: flex;
1268
+ align-items: center;
1269
+ gap: 8px;
1270
+ padding: 14px 20px 14px 24px;
1271
+ border-top: 1px solid var(--line);
1272
+ background: var(--paper);
1273
+ }
1274
+ .mail-modal-footer-start {
1275
+ flex: 1;
1276
+ min-width: 0;
1277
+ display: flex;
1278
+ align-items: center;
1279
+ flex-wrap: wrap;
1280
+ gap: 2px 8px;
1281
+ }
1282
+ .mail-cache-text { font-size: 11px; color: var(--muted); }
1283
+ .mail-modal-footer-start .mail-link-btn { font-size: 11px; color: var(--text-secondary); padding: 2px 0; }
1284
+
1285
+ /* Account dialog */
1286
+ .mail-saved-accounts {
1287
+ list-style: none;
1288
+ margin: 0;
1289
+ padding: 0;
1290
+ display: flex;
1291
+ flex-direction: column;
1292
+ border: 1px solid var(--line);
1293
+ border-radius: var(--radius-card, 10px);
1294
+ overflow: hidden;
1295
+ }
1296
+ .mail-saved-account-row {
1297
+ display: flex;
1298
+ align-items: center;
1299
+ gap: 12px;
1300
+ padding: 10px 8px 10px 12px;
1301
+ transition: background-color var(--motion-quick, 140ms) var(--ease-standard);
1302
+ }
1303
+ .mail-saved-account-row + .mail-saved-account-row { border-top: 1px solid var(--line); }
1304
+ .mail-saved-account-row:hover { background: var(--surface); }
1305
+ .mail-saved-account-text {
1306
+ flex: 1;
1307
+ min-width: 0;
1308
+ display: flex;
1309
+ flex-direction: column;
1310
+ gap: 1px;
1311
+ }
1312
+ .mail-saved-account-text strong { font-size: 13px; font-weight: 600; }
1313
+ .mail-saved-account-text span {
1314
+ font-size: 12px;
1315
+ color: var(--muted);
1316
+ overflow: hidden;
1317
+ text-overflow: ellipsis;
1318
+ white-space: nowrap;
1319
+ }
1320
+ .mail-saved-account-row .icon-button { opacity: 0.6; }
1321
+ .mail-saved-account-row:hover .icon-button,
1322
+ .mail-saved-account-row .icon-button:focus-visible { opacity: 1; }
1323
+
1324
+ /* Account dialog: a narrow two-step sheet (choose provider → credentials). */
1325
+ .mail-account-modal { width: min(480px, 100%); }
1326
+ .mail-account-modal .mail-modal-body { gap: 18px; padding-top: 10px; }
1327
+ .mail-account-modal .mail-provider {
1328
+ height: 46px;
1329
+ font-size: 13px;
1330
+ animation-delay: 0ms;
1331
+ }
1332
+ .mail-account-modal .mail-provider-icon { width: 26px; height: 26px; }
1333
+ .mail-account-modal .mail-provider-icon img { width: 20px; height: 20px; }
1334
+ .mail-cache-line {
1335
+ margin: 8px 2px 0;
1336
+ display: flex;
1337
+ flex-wrap: wrap;
1338
+ align-items: center;
1339
+ gap: 2px 8px;
1340
+ font-size: 11px;
1341
+ color: var(--muted);
1342
+ }
1343
+ .mail-cache-line .mail-link-btn { font-size: 11px; padding: 0; color: var(--text-secondary); }
1344
+
1345
+ .mail-form-title {
1346
+ display: flex;
1347
+ align-items: center;
1348
+ gap: 8px;
1349
+ min-width: 0;
1350
+ margin-left: -10px;
1351
+ }
1352
+ .mail-form-title .mail-provider-icon { width: 24px; height: 24px; }
1353
+ .mail-form-title .mail-provider-icon img { width: 20px; height: 20px; }
1354
+ .mail-account-form { gap: 14px; }
1355
+ .mail-account-form > .mail-advanced { margin-top: 0; }
1356
+ .mail-auth-hint {
1357
+ margin: 0;
1358
+ font-size: 12px;
1359
+ line-height: 1.7;
1360
+ color: var(--muted);
1361
+ }
1362
+ .mail-footer-note {
1363
+ flex: 1;
1364
+ min-width: 0;
1365
+ margin: 0;
1366
+ display: flex;
1367
+ align-items: center;
1368
+ gap: 6px;
1369
+ font-size: 11px;
1370
+ color: var(--muted);
1371
+ }
1372
+ .mail-footer-note svg { flex-shrink: 0; }
1373
+
1374
+ .mail-form-grid {
1375
+ display: grid;
1376
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1377
+ gap: 14px 12px;
1378
+ }
1379
+ .mail-form-full { grid-column: 1 / -1; }
1380
+ .mail-field {
1381
+ display: flex;
1382
+ flex-direction: column;
1383
+ gap: 6px;
1384
+ min-width: 0;
1385
+ }
1386
+ .mail-field > span {
1387
+ font-size: 12px;
1388
+ color: var(--text-secondary);
1389
+ }
1390
+ .mail-field input,
1391
+ .mail-field select {
1392
+ width: 100%;
1393
+ height: 34px;
1394
+ padding: 0 10px;
1395
+ border: 1px solid var(--control-border);
1396
+ border-radius: var(--radius-control, 6px);
1397
+ background: var(--paper);
1398
+ color: var(--text);
1399
+ font-size: 13px;
1400
+ }
1401
+ .mail-field input::placeholder { color: var(--muted); }
1402
+ .mail-field input:hover,
1403
+ .mail-field select:hover { border-color: color-mix(in srgb, var(--control-border) 60%, var(--text)); }
1404
+ .mail-field input:focus,
1405
+ .mail-field select:focus {
1406
+ border-color: var(--text-secondary);
1407
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent);
1408
+ }
1409
+ .mail-field input:focus-visible,
1410
+ .mail-field select:focus-visible { outline: none; }
1411
+ .mail-inline-pair {
1412
+ display: grid;
1413
+ grid-template-columns: 84px minmax(0, 1fr);
1414
+ gap: 6px;
1415
+ }
1416
+
1417
+ .mail-advanced { margin-top: 16px; }
1418
+ .mail-advanced summary {
1419
+ display: inline-flex;
1420
+ align-items: center;
1421
+ gap: 4px;
1422
+ padding: 4px 6px 4px 2px;
1423
+ margin-left: -2px;
1424
+ border-radius: 5px;
1425
+ list-style: none;
1426
+ cursor: pointer;
1427
+ font-size: 12px;
1428
+ color: var(--text-secondary);
1429
+ }
1430
+ .mail-advanced summary::-webkit-details-marker { display: none; }
1431
+ .mail-advanced summary:hover { background: var(--hover); color: var(--text); }
1432
+ .mail-advanced[open] .mail-advanced-chevron { rotate: 90deg; }
1433
+ .mail-advanced > .mail-form-grid {
1434
+ margin-top: 12px;
1435
+ animation: tano-rise-in var(--motion-base, 220ms) var(--ease-spring-smooth) both;
1436
+ }
1437
+ .mail-modal-section > .mail-alert { margin-top: 16px; }
1438
+
1439
+ /* Composer — a sheet of paper: borderless fields on hairline rows. */
1440
+ .mail-composer-modal {
1441
+ width: min(720px, 100%);
1442
+ height: min(640px, 88vh);
1443
+ max-height: none;
1444
+ transition: box-shadow var(--motion-base, 220ms) var(--ease-standard);
1445
+ }
1446
+ .mail-composer-modal.drag-over {
1447
+ box-shadow: var(--dialog-shadow), 0 0 0 2px var(--text-secondary);
1448
+ }
1449
+ .mail-composer-fields {
1450
+ flex-shrink: 0;
1451
+ padding: 0 20px;
1452
+ }
1453
+ .mail-composer-row {
1454
+ display: flex;
1455
+ align-items: center;
1456
+ gap: 12px;
1457
+ min-height: 40px;
1458
+ border-bottom: 1px solid var(--line);
1459
+ cursor: text;
1460
+ transition: border-color var(--motion-base, 220ms) var(--ease-standard);
1461
+ }
1462
+ .mail-composer-row:focus-within { border-bottom-color: var(--control-border); }
1463
+ .mail-composer-row > span {
1464
+ flex-shrink: 0;
1465
+ width: 52px;
1466
+ font-size: 13px;
1467
+ color: var(--muted);
1468
+ }
1469
+ .mail-composer-row input,
1470
+ .mail-composer-row select {
1471
+ flex: 1;
1472
+ min-width: 0;
1473
+ height: 38px;
1474
+ padding: 0;
1475
+ border: 0;
1476
+ background: transparent;
1477
+ color: var(--text);
1478
+ font-size: 13px;
1479
+ }
1480
+ .mail-composer-row select { cursor: pointer; }
1481
+ .mail-composer-row input::placeholder { color: var(--muted); }
1482
+ .mail-composer-row :is(input, select):focus-visible { outline: none; }
1483
+ .mail-composer-row input.mail-composer-subject { font-weight: 500; }
1484
+
1485
+ .mail-composer-editor {
1486
+ flex: 1;
1487
+ min-height: 120px;
1488
+ margin: 0;
1489
+ padding: 16px 20px;
1490
+ border: 0;
1491
+ background: transparent;
1492
+ color: var(--text);
1493
+ font-family: var(--font-prose, inherit);
1494
+ font-size: 14px;
1495
+ line-height: 1.75;
1496
+ resize: none;
1497
+ }
1498
+ .mail-composer-editor::placeholder { color: var(--muted); }
1499
+ .mail-composer-editor:focus-visible { outline: none; }
1500
+
1501
+ .mail-composer-attachments {
1502
+ flex-shrink: 0;
1503
+ display: flex;
1504
+ flex-wrap: wrap;
1505
+ gap: 6px;
1506
+ padding: 0 20px 10px;
1507
+ }
1508
+ .mail-att-chip {
1509
+ display: inline-flex;
1510
+ align-items: center;
1511
+ gap: 6px;
1512
+ max-width: 260px;
1513
+ height: 28px;
1514
+ padding: 0 4px 0 9px;
1515
+ border-radius: 6px;
1516
+ background: var(--surface);
1517
+ font-size: 12px;
1518
+ color: var(--text-secondary);
1519
+ }
1520
+ .mail-att-chip > svg { flex-shrink: 0; color: var(--muted); }
1521
+ .mail-att-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
1522
+ .mail-att-chip small { flex-shrink: 0; font-size: 11px; color: var(--muted); }
1523
+ .mail-att-chip button {
1524
+ flex-shrink: 0;
1525
+ width: 20px;
1526
+ height: 20px;
1527
+ display: inline-flex;
1528
+ align-items: center;
1529
+ justify-content: center;
1530
+ border-radius: 4px;
1531
+ color: var(--muted);
1532
+ }
1533
+ .mail-att-chip button:hover { background: var(--hover); color: var(--text); }
1534
+ .mail-chip-enter-active { transition: opacity var(--motion-base, 220ms) var(--ease-standard), scale var(--motion-spring, 380ms) var(--ease-spring); }
1535
+ .mail-chip-leave-active { transition: opacity var(--motion-quick, 140ms) var(--ease-exit); }
1536
+ .mail-chip-enter-from { opacity: 0; scale: 0.92; }
1537
+ .mail-chip-leave-to { opacity: 0; }
1538
+
1539
+ .mail-composer-error { margin: 0 20px 10px; }
1540
+
1541
+ .mail-composer-footer {
1542
+ flex-shrink: 0;
1543
+ display: flex;
1544
+ align-items: center;
1545
+ gap: 6px;
1546
+ padding: 10px 14px 12px 14px;
1547
+ border-top: 1px solid var(--line);
1548
+ }
1549
+ .mail-composer-hint {
1550
+ margin-left: auto;
1551
+ margin-right: 4px;
1552
+ font-size: 11px;
1553
+ color: var(--muted);
1554
+ font-variant-numeric: tabular-nums;
1555
+ }
1556
+
1557
+ @media (max-width: 900px) {
1558
+ .mail-split { grid-template-columns: 1fr; grid-template-rows: minmax(0, 42vh) minmax(0, 1fr); }
1559
+ .mail-list-pane { border-right: 0; border-bottom: 1px solid var(--line); }
1560
+ .mail-reader-header,
1561
+ .mail-invites-section,
1562
+ .mail-remote-banner,
1563
+ .mail-body-wrap,
1564
+ .mail-attachments-bar { padding-left: 20px; padding-right: 20px; }
1565
+ }
1566
+ @media (max-width: 560px) {
1567
+ .mail-form-grid { grid-template-columns: 1fr; }
1568
+ }