@lemoncat7/dsh-knowledge 2.2.10 → 2.2.13

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 (74) hide show
  1. package/README.md +3 -3
  2. package/docs/architecture.md +6 -2
  3. package/lib/api.d.ts.map +1 -1
  4. package/lib/api.js +20 -0
  5. package/lib/api.js.map +1 -1
  6. package/lib/client.js +22 -22
  7. package/lib/client.js.map +2 -2
  8. package/lib/local-provider.d.ts +8 -1
  9. package/lib/local-provider.d.ts.map +1 -1
  10. package/lib/local-provider.js +12 -0
  11. package/lib/local-provider.js.map +1 -1
  12. package/lib/management-proxy.js +1 -1
  13. package/lib/management-proxy.js.map +1 -1
  14. package/lib/notes/domain.d.ts +10 -0
  15. package/lib/notes/domain.d.ts.map +1 -1
  16. package/lib/notes/domain.js.map +1 -1
  17. package/lib/notes/store.d.ts +15 -1
  18. package/lib/notes/store.d.ts.map +1 -1
  19. package/lib/notes/store.js +277 -28
  20. package/lib/notes/store.js.map +1 -1
  21. package/lib/provider.d.ts +8 -1
  22. package/lib/provider.d.ts.map +1 -1
  23. package/lib/remote-provider.d.ts +8 -1
  24. package/lib/remote-provider.d.ts.map +1 -1
  25. package/lib/remote-provider.js +22 -0
  26. package/lib/remote-provider.js.map +1 -1
  27. package/lib/theme-bridge.js +7 -7
  28. package/lib/theme-bridge.js.map +1 -1
  29. package/lib/tool-authorization.js +11 -16
  30. package/lib/tool-authorization.js.map +1 -1
  31. package/lib/web-note-editor-chrome.d.ts +17 -0
  32. package/lib/web-note-editor-chrome.d.ts.map +1 -0
  33. package/lib/web-note-editor-chrome.js +38 -0
  34. package/lib/web-note-editor-chrome.js.map +1 -0
  35. package/lib/web-note-editor-find.d.ts +17 -0
  36. package/lib/web-note-editor-find.d.ts.map +1 -0
  37. package/lib/web-note-editor-find.js +225 -0
  38. package/lib/web-note-editor-find.js.map +1 -0
  39. package/lib/web-note-editor-outline.d.ts +15 -0
  40. package/lib/web-note-editor-outline.d.ts.map +1 -0
  41. package/lib/web-note-editor-outline.js +169 -0
  42. package/lib/web-note-editor-outline.js.map +1 -0
  43. package/lib/web-note-editor-search.d.ts +30 -0
  44. package/lib/web-note-editor-search.d.ts.map +1 -0
  45. package/lib/web-note-editor-search.js +143 -0
  46. package/lib/web-note-editor-search.js.map +1 -0
  47. package/lib/web-note-editor-selection.d.ts +15 -0
  48. package/lib/web-note-editor-selection.d.ts.map +1 -0
  49. package/lib/web-note-editor-selection.js +255 -0
  50. package/lib/web-note-editor-selection.js.map +1 -0
  51. package/lib/web-note-editor.d.ts +7 -0
  52. package/lib/web-note-editor.d.ts.map +1 -1
  53. package/lib/web-note-editor.js +36 -6
  54. package/lib/web-note-editor.js.map +1 -1
  55. package/lib/web-note-history.d.ts +28 -0
  56. package/lib/web-note-history.d.ts.map +1 -0
  57. package/lib/web-note-history.js +163 -0
  58. package/lib/web-note-history.js.map +1 -0
  59. package/lib/web-workspace-effects.d.ts.map +1 -1
  60. package/lib/web-workspace-effects.js +1 -2
  61. package/lib/web-workspace-effects.js.map +1 -1
  62. package/lib/web.d.ts.map +1 -1
  63. package/lib/web.js +4 -0
  64. package/lib/web.js.map +1 -1
  65. package/package.json +1 -1
  66. package/web/api-client.js +94 -0
  67. package/web/app.js +248 -230
  68. package/web/host-theme.js +63 -0
  69. package/web/index.html +1 -0
  70. package/web/note-editor.js +70 -70
  71. package/web/note-history.js +1 -0
  72. package/web/styles.css +353 -154
  73. package/web/ui-primitives.js +77 -0
  74. package/web/workspace-effects.js +1 -1
package/web/styles.css CHANGED
@@ -5,12 +5,12 @@
5
5
  --font-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei UI", Arial, sans-serif;
6
6
  --font-reading: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei UI", Arial, sans-serif;
7
7
  --font-mono: "SFMono-Regular", "Cascadia Code", "Cascadia Mono", Menlo, Consolas, monospace;
8
- --bg: #e9e9ed;
9
- --surface: #f2f3f7;
10
- --surface-raised: #ffffff;
11
- --surface-soft: #eceef1;
12
- --surface-hover: #e5e5e7;
13
- --dialog-surface: #ffffff;
8
+ --bg: #ebebeb;
9
+ --surface: #f4f4f4;
10
+ --surface-raised: #fafafa;
11
+ --surface-soft: #eeeeef;
12
+ --surface-hover: rgb(118 118 128 / 9%);
13
+ --dialog-surface: #f4f4f4;
14
14
  --text: #1d1d1f;
15
15
  --text-secondary: #515154;
16
16
  --text-tertiary: #6e6e73;
@@ -30,21 +30,21 @@
30
30
  --radius: 14px;
31
31
  --radius-control: 9px;
32
32
  --radius-small: 7px;
33
- --material-sidebar: color-mix(in srgb, var(--surface) 76%, transparent);
34
- --material-toolbar: color-mix(in srgb, var(--surface) 78%, transparent);
35
- --material-panel: color-mix(in srgb, var(--surface-raised) 82%, transparent);
36
- --material-control: color-mix(in srgb, var(--surface-raised) 76%, transparent);
37
- --material-control-hover: color-mix(in srgb, var(--surface-raised) 94%, transparent);
33
+ --material-sidebar: var(--surface);
34
+ --material-toolbar: var(--surface);
35
+ --material-panel: color-mix(in srgb, var(--surface-raised) 88%, var(--surface));
36
+ --material-control: var(--surface-raised);
37
+ --material-control-hover: color-mix(in srgb, var(--surface-raised) 92%, var(--surface-hover));
38
38
  --separator: color-mix(in srgb, var(--border) 76%, transparent);
39
39
  --panel-border: color-mix(in srgb, var(--border-strong) 58%, var(--border));
40
40
  --surface-highlight: color-mix(in srgb, var(--surface-raised) 74%, transparent);
41
41
  --shadow-soft: 0 1px 2px color-mix(in srgb, var(--text) 5%, transparent);
42
- --shadow-panel: 0 1px 2px rgb(0 0 0 / 5%), 0 14px 36px rgb(0 0 0 / 7%);
42
+ --shadow-panel: 0 1px 2px rgb(0 0 0 / 5%), 0 9px 24px rgb(31 31 35 / 7.5%);
43
43
  --surface-canvas: var(--bg);
44
- --surface-pane: color-mix(in srgb, var(--surface) 74%, transparent);
45
- --surface-editor: color-mix(in srgb, var(--surface-raised) 88%, var(--bg));
46
- --surface-overlay: color-mix(in srgb, var(--surface-raised) 92%, transparent);
47
- --shadow-control: 0 1px 2px rgb(0 0 0 / 8%), 0 4px 12px rgb(0 0 0 / 5.5%), inset 0 1px 0 rgb(255 255 255 / 68%);
44
+ --surface-pane: color-mix(in srgb, var(--surface) 92%, var(--surface-raised));
45
+ --surface-editor: var(--surface-raised);
46
+ --surface-overlay: var(--surface-raised);
47
+ --shadow-control: 0 1px 2px rgb(0 0 0 / 5.5%), inset 0 1px 0 rgb(255 255 255 / 58%);
48
48
  --shadow-floating: 0 22px 70px color-mix(in srgb, var(--text) 18%, transparent), 0 2px 8px color-mix(in srgb, var(--text) 8%, transparent);
49
49
  --glass-clear: color-mix(in srgb, var(--surface-raised) 20%, transparent);
50
50
  --glass-regular: color-mix(in srgb, var(--surface-raised) 36%, transparent);
@@ -53,7 +53,7 @@
53
53
  --glass-separator: var(--border);
54
54
  --glass-rim-light: color-mix(in srgb, var(--surface-raised) 58%, transparent);
55
55
  --glass-rim-shadow: color-mix(in srgb, var(--text) 12%, transparent);
56
- --glass-filter: saturate(1.18) contrast(1.025) blur(28px);
56
+ --glass-filter: saturate(1.08) contrast(1.02) blur(18px);
57
57
  --glass-shadow: inset 0 1px 0 var(--glass-rim-light), inset 0 -1px 0 var(--glass-rim-shadow), 0 10px 28px rgb(0 0 0 / 8.5%);
58
58
  --liquid-glass-large: color-mix(in srgb, var(--surface) 68%, transparent);
59
59
  --liquid-glass-regular: color-mix(in srgb, var(--surface-raised) 52%, transparent);
@@ -73,30 +73,35 @@
73
73
  --motion-slow: 280ms;
74
74
  --ease-out: cubic-bezier(.22, 1, .36, 1);
75
75
  --ease-spring: cubic-bezier(.2, .9, .25, 1.04);
76
- --sidebar-width: 236px;
77
- --chrome-inset: 10px;
78
- --topbar-inline-inset: 12px;
76
+ --font-caption: 12px;
77
+ --font-body: 13px;
78
+ --font-label: 14px;
79
+ --font-title: 18px;
80
+ --font-heading: 22px;
81
+ --sidebar-width: 214px;
82
+ --chrome-inset: 8px;
83
+ --topbar-inline-inset: 0px;
79
84
  --scrollbar-thumb: color-mix(in srgb, var(--text-tertiary) 42%, transparent);
80
85
  --scrollbar-thumb-hover: color-mix(in srgb, var(--text-secondary) 58%, transparent);
81
86
  }
82
87
 
83
88
  @media (prefers-color-scheme: dark) {
84
89
  :root:not([data-color-scheme]) {
85
- --bg: transparent;
86
- --surface: rgb(8 10 12 / 20%);
87
- --surface-raised: rgb(10 12 15 / 44%);
90
+ --bg: #101719;
91
+ --surface: #182022;
92
+ --surface-raised: #20292b;
88
93
  --surface-soft: rgb(255 255 255 / 6%);
89
94
  --surface-hover: rgb(255 255 255 / 7.5%);
90
- --dialog-surface: rgb(10 12 15 / 72%);
91
- --text: #f5f5f7;
92
- --text-secondary: #d1d1d6;
93
- --text-tertiary: #98989d;
94
- --border: rgb(255 255 255 / 10%);
95
- --border-strong: rgb(255 255 255 / 18%);
96
- --accent: #e5e5ea;
97
- --accent-hover: #ffffff;
98
- --accent-soft: rgb(255 255 255 / 9%);
99
- --on-accent: #1d1d1f;
95
+ --dialog-surface: #20292b;
96
+ --text: #e3eaeb;
97
+ --text-secondary: #bbc9cc;
98
+ --text-tertiary: #95a7ab;
99
+ --border: rgb(184 204 205 / 10%);
100
+ --border-strong: rgb(184 204 205 / 18%);
101
+ --accent: #69b6ba;
102
+ --accent-hover: #8aced0;
103
+ --accent-soft: rgb(105 182 186 / 13%);
104
+ --on-accent: #101819;
100
105
  --success: #30d158;
101
106
  --success-soft: rgb(48 209 88 / 13%);
102
107
  --warning: #ff9f0a;
@@ -146,18 +151,17 @@ html, body { min-height: 100%; }
146
151
 
147
152
  body {
148
153
  margin: 0;
149
- background:
150
- radial-gradient(ellipse 46% 72% at -8% 28%, color-mix(in srgb, var(--surface-raised) 88%, transparent), transparent 74%),
151
- radial-gradient(ellipse 58% 42% at 84% -12%, color-mix(in srgb, var(--text-tertiary) 9%, transparent), transparent 72%),
152
- var(--surface-canvas);
154
+ background: var(--surface-canvas);
153
155
  color: var(--text);
154
- font-size: 14px;
156
+ font-size: var(--font-body);
155
157
  line-height: 1.5;
156
158
  text-rendering: optimizeLegibility;
157
159
  -webkit-font-smoothing: antialiased;
158
160
  }
159
161
 
160
- /* The embedded console borrows the host canvas; app-shell stays layout-only. */
162
+ /* Embedded workspaces expose the host canvas only between their own opaque
163
+ panels. Standalone management pages still keep a stable plugin-owned base. */
164
+ :root[data-dsh-host-theme="true"],
161
165
  :root[data-dsh-host-theme="true"] body { background: transparent; }
162
166
 
163
167
  button, input, select, textarea { font: inherit; }
@@ -259,6 +263,7 @@ html,
259
263
  .mount-table,
260
264
  .notes-tree,
261
265
  .note-picker-results,
266
+ .notes-document-scroll,
262
267
  .notes-inline-viewer,
263
268
  .note-tree,
264
269
  .note-editor-scroll,
@@ -271,16 +276,16 @@ html,
271
276
  scrollbar-color: var(--scrollbar-thumb) transparent;
272
277
  }
273
278
 
274
- :where(html, .mount-table, .notes-tree, .note-picker-results, .notes-inline-viewer, .note-tree, .note-editor-scroll, .markdown-preview pre, .markdown-table-scroll, .diff-viewer, .dialog-body, .textarea)::-webkit-scrollbar {
279
+ :where(html, .mount-table, .notes-tree, .note-picker-results, .notes-document-scroll, .notes-inline-viewer, .note-tree, .note-editor-scroll, .markdown-preview pre, .markdown-table-scroll, .diff-viewer, .dialog-body, .textarea)::-webkit-scrollbar {
275
280
  width: 8px;
276
281
  height: 8px;
277
282
  }
278
283
 
279
- :where(html, .mount-table, .notes-tree, .note-picker-results, .notes-inline-viewer, .note-tree, .note-editor-scroll, .markdown-preview pre, .markdown-table-scroll, .diff-viewer, .dialog-body, .textarea)::-webkit-scrollbar-track {
284
+ :where(html, .mount-table, .notes-tree, .note-picker-results, .notes-document-scroll, .notes-inline-viewer, .note-tree, .note-editor-scroll, .markdown-preview pre, .markdown-table-scroll, .diff-viewer, .dialog-body, .textarea)::-webkit-scrollbar-track {
280
285
  background: transparent;
281
286
  }
282
287
 
283
- :where(html, .mount-table, .notes-tree, .note-picker-results, .notes-inline-viewer, .note-tree, .note-editor-scroll, .markdown-preview pre, .markdown-table-scroll, .diff-viewer, .dialog-body, .textarea)::-webkit-scrollbar-thumb {
288
+ :where(html, .mount-table, .notes-tree, .note-picker-results, .notes-document-scroll, .notes-inline-viewer, .note-tree, .note-editor-scroll, .markdown-preview pre, .markdown-table-scroll, .diff-viewer, .dialog-body, .textarea)::-webkit-scrollbar-thumb {
284
289
  min-width: 28px;
285
290
  min-height: 28px;
286
291
  border: 2px solid transparent;
@@ -289,7 +294,7 @@ html,
289
294
  background-clip: padding-box;
290
295
  }
291
296
 
292
- :where(html, .mount-table, .notes-tree, .note-picker-results, .notes-inline-viewer, .note-tree, .note-editor-scroll, .markdown-preview pre, .markdown-table-scroll, .diff-viewer, .dialog-body, .textarea)::-webkit-scrollbar-thumb:hover {
297
+ :where(html, .mount-table, .notes-tree, .note-picker-results, .notes-document-scroll, .notes-inline-viewer, .note-tree, .note-editor-scroll, .markdown-preview pre, .markdown-table-scroll, .diff-viewer, .dialog-body, .textarea)::-webkit-scrollbar-thumb:hover {
293
298
  background: var(--scrollbar-thumb-hover);
294
299
  background-clip: padding-box;
295
300
  }
@@ -393,8 +398,8 @@ html,
393
398
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-base) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
394
399
  }
395
400
 
396
- .button:hover:not(:disabled) { background: var(--material-control-hover); border-color: var(--border-strong); box-shadow: 0 2px 4px rgb(0 0 0 / 9%), 0 8px 18px rgb(0 0 0 / 7.5%); transform: translateY(-1px) scale(1.012); }
397
- .button:active:not(:disabled) { box-shadow: var(--shadow-control); transform: translateY(0) scale(.97); }
401
+ .button:hover:not(:disabled) { background: var(--material-control-hover); border-color: var(--border-strong); box-shadow: 0 6px 16px rgb(31 31 35 / 8%); transform: translateY(-1px); }
402
+ .button:active:not(:disabled) { box-shadow: var(--shadow-control); transform: translateY(0) scale(.98); }
398
403
  .button.primary { border-color: color-mix(in srgb, var(--accent) 82%, var(--border)); background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-accent) 24%, transparent), 0 1px 3px color-mix(in srgb, var(--text) 16%, transparent); }
399
404
  .button.primary:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--accent-hover); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-accent) 26%, transparent), 0 2px 6px color-mix(in srgb, var(--text) 14%, transparent); }
400
405
  .button.danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); color: var(--danger); }
@@ -430,10 +435,10 @@ html,
430
435
  margin-left: var(--chrome-inset);
431
436
  padding: 18px 13px 13px;
432
437
  border: 1px solid var(--glass-border);
433
- border-radius: 20px;
438
+ border-radius: 15px;
434
439
  overflow: hidden;
435
440
  background: var(--material-sidebar);
436
- box-shadow: 10px 0 36px rgb(0 0 0 / 3%);
441
+ box-shadow: inset 0 1px 0 var(--surface-highlight), var(--shadow-soft);
437
442
  -webkit-backdrop-filter: var(--glass-filter);
438
443
  backdrop-filter: var(--glass-filter);
439
444
  transform-origin: left center;
@@ -546,28 +551,43 @@ html,
546
551
  .app-sidebar-resizer.is-dragging span { opacity: 1; background: var(--text-secondary); }
547
552
  .app-sidebar-resizer:hover,
548
553
  .app-sidebar-resizer.is-dragging { background: color-mix(in srgb, var(--accent) 8%, transparent); }
549
- .main { min-width: 0; width: 100%; height: 100vh; height: 100dvh; grid-column: 3; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
554
+ .main {
555
+ min-width: 0;
556
+ width: auto;
557
+ height: calc(100vh - var(--chrome-inset) * 2);
558
+ height: calc(100dvh - var(--chrome-inset) * 2);
559
+ grid-column: 3;
560
+ margin: var(--chrome-inset) 10px var(--chrome-inset) 2px;
561
+ overflow-x: hidden;
562
+ overflow-y: auto;
563
+ overscroll-behavior: contain;
564
+ border: 1px solid var(--border);
565
+ border-radius: 15px;
566
+ background: var(--surface);
567
+ box-shadow: inset 0 1px 0 var(--surface-highlight), var(--shadow-soft);
568
+ }
550
569
  .topbar {
551
570
  position: sticky;
552
- top: var(--chrome-inset);
571
+ top: 0;
553
572
  z-index: 10;
554
- min-height: 78px;
573
+ min-height: 68px;
555
574
  display: flex;
556
575
  align-items: center;
557
576
  justify-content: space-between;
558
577
  gap: 18px;
559
- margin: var(--chrome-inset) var(--topbar-inline-inset) 0;
560
- border: 1px solid var(--glass-border);
561
- border-radius: 18px;
578
+ margin: 0;
579
+ border: 0;
580
+ border-bottom: 1px solid var(--border);
581
+ border-radius: 0;
562
582
  padding: 14px clamp(18px, 3vw, 38px);
563
583
  overflow: hidden;
564
- background: var(--material-toolbar);
565
- box-shadow: 0 8px 24px rgb(0 0 0 / 3%);
584
+ background: color-mix(in srgb, var(--material-toolbar) 94%, transparent);
585
+ box-shadow: none;
566
586
  -webkit-backdrop-filter: var(--glass-filter);
567
587
  backdrop-filter: var(--glass-filter);
568
588
  }
569
- .topbar h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
570
- .topbar p { margin: 3px 0 0; color: var(--text-tertiary); font-size: 11px; text-wrap: pretty; }
589
+ .topbar h1 { margin: 0; font-size: var(--font-title); line-height: 1.2; font-weight: 650; letter-spacing: -.025em; text-wrap: balance; }
590
+ .topbar p { margin: 3px 0 0; color: var(--text-tertiary); font-size: var(--font-caption); text-wrap: pretty; }
571
591
  .topbar-title { display: flex; align-items: center; gap: 12px; }
572
592
  .topbar-heading { min-width: 0; }
573
593
  .topbar-kicker { display: block; margin-bottom: 2px; color: var(--text-tertiary); font: 8px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; letter-spacing: .12em; }
@@ -663,15 +683,16 @@ html,
663
683
  .app-shell[data-view="notes"] .page {
664
684
  width: 100%;
665
685
  max-width: none;
666
- height: calc(100dvh - 74px);
686
+ height: calc(100% - 64px);
667
687
  margin: 0;
668
688
  overflow: hidden;
669
689
  padding: 0;
670
690
  }
671
691
  .app-shell[data-view="notes"] .view-stage { height: 100%; min-height: 0; overflow: hidden; }
672
692
 
673
- .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
674
- .section-heading h2 { margin: 0; font-size: 16px; }
693
+ .section-heading { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-left: 14px; }
694
+ .section-heading::before { position: absolute; top: 3px; bottom: 2px; left: 0; width: 2px; border-radius: 2px; background: linear-gradient(var(--text-secondary), transparent 92%); content: ''; }
695
+ .section-heading h2 { margin: 0; font-size: var(--font-title); font-weight: 650; letter-spacing: -.025em; }
675
696
  .section-heading p { margin: 4px 0 0; color: var(--text-tertiary); font-size: 12px; }
676
697
  .candidate-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
677
698
 
@@ -738,44 +759,43 @@ html,
738
759
  .base-result-summary { margin-left: auto; color: var(--text-tertiary); font-size: 12px; white-space: nowrap; }
739
760
  .base-grid {
740
761
  display: grid;
741
- grid-template-columns: minmax(210px, .85fr) minmax(240px, 1.25fr) minmax(170px, .7fr) 244px;
742
- overflow: hidden;
743
- border: 1px solid var(--glass-border);
744
- border-radius: var(--radius);
745
- background: var(--material-panel);
746
- box-shadow: var(--glass-shadow);
762
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
763
+ gap: 12px;
747
764
  }
748
765
  .base-card {
766
+ position: relative;
749
767
  min-width: 0;
750
- grid-column: 1 / -1;
751
768
  display: grid;
752
- grid-template-columns: subgrid;
753
- grid-template-rows: auto auto;
754
- align-items: center;
755
- gap: 8px 22px;
756
- border-bottom: 1px solid var(--separator);
757
- padding: 16px 18px;
758
- background: transparent;
759
- transition: background .18s ease;
769
+ grid-template-columns: minmax(0, 1fr) auto;
770
+ align-content: start;
771
+ gap: 12px 16px;
772
+ min-height: 218px;
773
+ overflow: hidden;
774
+ border: 1px solid var(--border);
775
+ border-radius: 15px;
776
+ padding: 16px;
777
+ background: var(--material-panel);
778
+ box-shadow: inset 0 1px 0 var(--surface-highlight), var(--shadow-soft);
779
+ transition: background .16s ease, border-color .16s ease, box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
760
780
  content-visibility: auto;
761
- contain-intrinsic-size: auto 94px;
781
+ contain-intrinsic-size: auto 218px;
762
782
  }
763
- .base-card:last-child { border-bottom: 0; }
764
- .base-card:hover { background: var(--surface-hover); }
783
+ .base-card::after { position: absolute; top: 0; right: 18px; left: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--surface-highlight), transparent); pointer-events: none; content: ''; }
784
+ .base-card:hover { border-color: var(--border-strong); background: color-mix(in srgb, var(--surface-raised) 92%, var(--surface-hover)); box-shadow: inset 0 1px 0 var(--surface-highlight), var(--shadow-panel); transform: translateY(-1px); }
765
785
  .base-card.is-archived { opacity: .78; }
766
- .base-card-header { min-width: 0; grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
786
+ .base-card-header { min-width: 0; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
767
787
  .base-card-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
768
788
  .base-card-identity > div { min-width: 0; }
769
789
  .base-card-header > .badge { flex: none; }
770
790
  .base-symbol { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 11px; background: var(--material-control); color: var(--text-secondary); box-shadow: var(--shadow-control); font-size: 14px; font-weight: 700; }
771
791
  .base-card h3 { overflow: hidden; margin: 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
772
792
  .base-card small { display: block; overflow: hidden; margin-top: 3px; color: var(--text-tertiary); text-overflow: ellipsis; white-space: nowrap; }
773
- .base-description { min-height: 38px; grid-column: 2; grid-row: 1; display: -webkit-box; overflow: hidden; margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
774
- .base-card-tags { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 5px; }
775
- .base-card-meta { grid-column: 3; grid-row: 1 / span 2; display: grid; gap: 7px; color: var(--text-secondary); font-size: 11px; }
793
+ .base-description { min-height: 42px; grid-column: 1 / -1; display: -webkit-box; overflow: hidden; margin: 0; color: var(--text-secondary); font-size: var(--font-body); line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
794
+ .base-card-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-content: start; gap: 5px; min-height: 21px; }
795
+ .base-card-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; color: var(--text-secondary); font-size: var(--font-caption); }
776
796
  .base-card-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
777
- .base-card-meta strong { display: block; margin-bottom: 1px; color: var(--text-tertiary); font-size: 10px; font-weight: 550; }
778
- .base-card-actions { grid-column: 4; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
797
+ .base-card-meta strong { display: inline; margin-right: 5px; color: var(--text-tertiary); font-size: var(--font-caption); font-weight: 550; }
798
+ .base-card-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 6px; }
779
799
  .archived-bases { margin-top: 18px; }
780
800
  .archived-bases summary { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; border-radius: 10px; padding: 9px 12px; background: var(--surface-soft); color: var(--text-secondary); cursor: pointer; font-size: 12px; font-weight: 600; list-style: none; }
781
801
  .archived-bases summary::-webkit-details-marker { display: none; }
@@ -1017,20 +1037,66 @@ html,
1017
1037
  .notes-folder-empty > div { display: flex; gap: 8px; }
1018
1038
  .notes-empty-folder-mark { position: relative; width: 58px; height: 40px; border: 1.5px solid var(--border-strong); border-radius: 7px; background: var(--surface-soft); }
1019
1039
  .notes-empty-folder-mark::before { content: ""; position: absolute; top: -8px; left: 4px; width: 24px; height: 8px; border: 1.5px solid var(--border-strong); border-bottom: 0; border-radius: 5px 5px 0 0; background: var(--surface-soft); }
1020
- .notes-content.is-document { --notes-document-inline: clamp(24px, 4.5vw, 76px); display: block; background: var(--surface-editor); }
1040
+ .notes-content.is-document, .notes-content.is-file { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
1041
+ .notes-content.is-document { --notes-document-inline: clamp(24px, 4.5vw, 76px); background: var(--surface-editor); }
1021
1042
  .notes-content.is-document.has-line-numbers { --notes-document-inline: clamp(34px, 3.2vw, 48px); }
1022
- .notes-document-toolbar { position: sticky; top: 0; z-index: 2; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--separator); padding: 5px 14px 5px 20px; background: var(--material-toolbar); -webkit-backdrop-filter: blur(16px) saturate(108%); backdrop-filter: blur(16px) saturate(108%); }
1023
- .notes-toolbar-leading { min-width: 0; display: flex; align-items: center; gap: 16px; overflow: hidden; }
1024
- .notes-file-info { min-width: 0; display: flex; align-items: center; gap: 5px 12px; overflow: hidden; color: var(--text-tertiary); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
1043
+ .notes-editor-frame { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 0; overflow: hidden; }
1044
+ .notes-editor-frame[data-outline-open="true"] { grid-template-columns: minmax(0, 1fr) minmax(190px, 236px); }
1045
+ .notes-document-toolbar { position: relative; z-index: 2; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--separator); padding: 5px 14px 5px 20px; background: var(--material-toolbar); -webkit-backdrop-filter: blur(16px) saturate(108%); backdrop-filter: blur(16px) saturate(108%); }
1046
+ .notes-toolbar-leading { min-width: 0; display: flex; flex: 1 1 auto; align-items: center; overflow: hidden; }
1047
+ .notes-file-info { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; color: var(--text-tertiary); font-size: 11px; font-variant-numeric: tabular-nums; }
1025
1048
  .notes-file-info-item { min-width: 0; display: inline-flex; align-items: baseline; gap: 4px; }
1026
- .notes-file-info-item strong { color: var(--text-secondary); font-size: 10px; font-weight: 590; }
1049
+ .notes-file-info-item strong { color: var(--text-secondary); font-size: inherit; font-weight: 590; }
1027
1050
  .notes-file-info-item > span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
1051
+ .notes-file-info-item[data-note-info="id"] > span { font-family: var(--font-mono); }
1028
1052
  .notes-document-actions { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 5px; }
1029
- .notes-save-state { color: var(--text-tertiary); font-size: 10px; }
1053
+ .notes-save-state { color: var(--text-tertiary); font-size: 10px; white-space: nowrap; }
1030
1054
  .notes-save-state[data-dirty="true"] { color: var(--warning); }
1055
+ .notes-outline-action { display: inline-flex; align-items: center; gap: 6px; }
1056
+ .notes-toolbar-action-icon { width: 16px; height: 16px; display: block; flex: none; color: currentColor; stroke-width: 2; }
1057
+ .notes-document-more { position: relative; display: none; flex: none; }
1058
+ .notes-document-more > summary { width: 44px; min-width: 44px; display: inline-grid; place-items: center; list-style: none; padding: 0; color: var(--text); user-select: none; }
1059
+ .notes-document-more > summary::-webkit-details-marker { display: none; }
1060
+ .notes-document-more > summary:hover, .notes-document-more[open] > summary { background: var(--surface-hover); color: var(--text); }
1061
+ .notes-document-more-icon { width: 22px; height: 22px; display: block; color: var(--text); stroke-width: 3.2; }
1062
+ .notes-document-more-menu {
1063
+ position: absolute;
1064
+ top: calc(100% + 7px);
1065
+ right: 0;
1066
+ z-index: 24;
1067
+ width: min(230px, calc(100vw - 16px));
1068
+ display: grid;
1069
+ grid-template-columns: minmax(0, 1fr);
1070
+ gap: 2px;
1071
+ border: 1px solid var(--panel-border);
1072
+ border-radius: 12px;
1073
+ padding: 6px;
1074
+ background: var(--dialog-surface);
1075
+ box-shadow: var(--shadow-floating);
1076
+ }
1077
+ .notes-document-more-menu::before {
1078
+ position: absolute;
1079
+ top: -5px;
1080
+ right: 17px;
1081
+ width: 8px;
1082
+ height: 8px;
1083
+ border-top: 1px solid var(--panel-border);
1084
+ border-left: 1px solid var(--panel-border);
1085
+ background: var(--dialog-surface);
1086
+ content: "";
1087
+ transform: rotate(45deg);
1088
+ }
1089
+ .notes-document-more:not([open]) > .notes-document-more-menu { display: none; }
1090
+ .notes-document-more-menu .button { min-width: 0; width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; justify-content: stretch; gap: 10px; border-color: transparent; padding: 8px 10px; box-shadow: none; text-align: left; }
1091
+ .notes-document-more-menu .button:hover:not(:disabled) { border-color: transparent; background: var(--surface-hover); box-shadow: none; transform: none; }
1092
+ .notes-document-menu-icon { width: 18px; height: 18px; display: block; color: var(--text); stroke-width: 2; }
1093
+ .notes-document-menu-label { min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
1094
+ .notes-document-menu-divider { height: 1px; margin: 4px 7px; background: var(--separator); }
1095
+ .notes-document-scroll { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
1096
+ .notes-document-scroll { scroll-padding-block: 72px 48px; }
1031
1097
  .notes-document-title { min-width: 0; margin: 0; padding: clamp(26px, 4vw, 48px) var(--notes-document-inline) 0; outline: 0; color: var(--text); font-family: var(--font-reading); font-size: clamp(25px, 2.5vw, 32px); font-weight: 700; line-height: 1.22; letter-spacing: -.025em; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; caret-color: var(--accent); }
1032
1098
  .notes-document-title:focus, .notes-document-title:focus-visible { outline: 0; box-shadow: none; }
1033
- .notes-content.is-document > .notes-live-editor, .notes-content.is-document > .notes-plain-editor { width: 100%; min-width: 0; min-height: max(520px, calc(100% - 116px)); margin-top: 0; padding: 16px var(--notes-document-inline) 72px; }
1099
+ .notes-document-scroll > .notes-live-editor, .notes-document-scroll > .notes-plain-editor { width: 100%; min-width: 0; min-height: max(520px, calc(100% - 74px)); margin-top: 0; padding: 16px var(--notes-document-inline) 72px; }
1034
1100
  .notes-content.is-document, .note-paper { font-family: var(--font-reading); }
1035
1101
  .notes-live-editor { width: 100%; min-height: 520px; color: color-mix(in srgb, var(--text) 82%, var(--text-secondary)); font-family: var(--font-reading); }
1036
1102
  .notes-plain-editor { max-width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); cursor: text; }
@@ -1040,6 +1106,7 @@ html,
1040
1106
  .notes-plain-editor-surface > p::before { content: counter(note-line); position: absolute; right: calc(100% + 8px); top: 0; width: 22px; color: color-mix(in srgb, var(--text-tertiary) 54%, transparent); font: 11px/2.25 var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; pointer-events: none; user-select: none; }
1041
1107
  .notes-plain-editor-surface ::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
1042
1108
  .notes-live-editor-surface { width: 100%; min-width: 0; max-width: 100%; min-height: 520px; border: 0; outline: 0; background: transparent; color: color-mix(in srgb, var(--text) 82%, var(--text-secondary)); font: 16px/1.55 var(--font-reading); letter-spacing: normal; overflow-wrap: anywhere; word-break: break-word; caret-color: var(--accent); }
1109
+ .notes-live-editor-surface p.is-editor-empty:first-child::before { height: 0; float: left; color: var(--text-tertiary); content: attr(data-placeholder); pointer-events: none; }
1043
1110
  .notes-live-editor-surface:focus, .notes-live-editor-surface:focus-visible { border: 0; outline: 0; box-shadow: none; }
1044
1111
  .notes-live-editor-surface > :first-child { margin-top: 0; }
1045
1112
  .notes-live-editor-surface > :last-child { margin-bottom: 0; }
@@ -1058,18 +1125,89 @@ html,
1058
1125
  .notes-live-editor-surface hr { border: 0; border-top: 1px solid var(--border); margin: 1.8em 0; }
1059
1126
  .notes-live-editor-surface img { display: block; max-width: 100%; height: auto; margin: 1.2em auto; border-radius: 7px; }
1060
1127
  .notes-live-editor-surface table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .94em; }
1128
+ .notes-live-editor-surface .tableWrapper { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
1061
1129
  .notes-live-editor-surface th, .notes-live-editor-surface td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
1062
1130
  .notes-live-editor-surface th { background: var(--surface-soft); color: var(--text); font-weight: 620; }
1063
1131
  .notes-live-editor-surface ul[data-type="taskList"] { list-style: none; padding-left: 0; }
1064
1132
  .notes-live-editor-surface ul[data-type="taskList"] li { display: flex; align-items: flex-start; gap: 8px; }
1065
1133
  .notes-live-editor-surface ul[data-type="taskList"] label { margin-top: 3px; }
1066
1134
  .notes-live-editor-surface ul[data-type="taskList"] li > div { flex: 1; min-width: 0; }
1135
+ .notes-editor-outline { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border-left: 1px solid var(--separator); background: var(--surface-pane); opacity: 1; }
1136
+ .notes-editor-outline[aria-hidden="true"] { visibility: hidden; opacity: 0; pointer-events: none; }
1137
+ .notes-editor-outline-header { min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px; border-bottom: 1px solid var(--separator); padding: 7px 9px 7px 13px; }
1138
+ .notes-editor-outline-header strong { font-size: 12px; font-weight: 650; }
1139
+ .notes-editor-outline-header span { color: var(--text-tertiary); font-size: 9px; font-variant-numeric: tabular-nums; }
1140
+ .notes-editor-outline-close { min-height: 30px; border: 0; border-radius: 7px; padding: 4px 7px; background: transparent; color: var(--text-tertiary); font: inherit; font-size: 10px; }
1141
+ .notes-editor-outline-close:hover { background: var(--surface-hover); color: var(--text); }
1142
+ .notes-editor-outline-list { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px 6px 20px; }
1143
+ .notes-editor-outline-link { width: 100%; min-height: 32px; display: block; overflow: hidden; border: 0; border-radius: 7px; padding: 5px 8px 5px calc(8px + var(--outline-depth) * 11px); background: transparent; color: var(--text-tertiary); font: inherit; font-size: 11px; line-height: 1.45; text-align: left; text-overflow: ellipsis; white-space: nowrap; transition: background var(--motion-fast) ease, color var(--motion-fast) ease; }
1144
+ .notes-editor-outline-link:hover { background: var(--surface-hover); color: var(--text); }
1145
+ .notes-editor-outline-link[aria-current="location"] { background: var(--material-control); color: var(--text); font-weight: 620; box-shadow: inset 2px 0 0 var(--accent); }
1146
+ .notes-editor-outline-empty { margin: 0; padding: 18px 10px; color: var(--text-tertiary); font-size: 11px; line-height: 1.65; }
1147
+ .notes-find-panel { position: absolute; top: 10px; right: 10px; z-index: 20; width: min(720px, calc(100% - 20px)); border: 1px solid var(--panel-border); border-radius: 11px; padding: 7px; background: var(--dialog-surface); box-shadow: var(--shadow); }
1148
+ .notes-find-panel[hidden], .notes-replace-row[hidden], .notes-selection-menu[hidden], .notes-selection-block-menu[hidden], .notes-selection-link-form[hidden] { display: none; }
1149
+ .notes-find-row { min-width: 0; display: grid; grid-template-columns: minmax(150px, 1fr) auto repeat(5, auto); align-items: center; gap: 4px; }
1150
+ .notes-find-input, .notes-selection-link-input { box-sizing: border-box; min-width: 0; height: 34px; border: 1px solid var(--panel-border); border-radius: 7px; padding: 6px 9px; background: var(--material-control); color: var(--text); font: inherit; font-size: 12px; box-shadow: var(--shadow-control); }
1151
+ .notes-find-input:focus, .notes-selection-link-input:focus { border-color: var(--border-strong); outline: 3px solid color-mix(in srgb, var(--accent) 20%, transparent); outline-offset: 1px; }
1152
+ .notes-find-status { min-width: 48px; color: var(--text-tertiary); font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; }
1153
+ .notes-find-button, .notes-selection-control { min-height: 34px; border: 0; border-radius: 7px; padding: 5px 8px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 11px; font-weight: 590; white-space: nowrap; transition: background var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease; }
1154
+ .notes-find-button:hover:not(:disabled), .notes-selection-control:hover { background: var(--surface-hover); color: var(--text); }
1155
+ .notes-find-button[aria-pressed="true"], .notes-selection-control[aria-pressed="true"], .notes-selection-control[aria-checked="true"] { background: var(--material-control); color: var(--accent); box-shadow: var(--shadow-control); }
1156
+ .notes-find-button:disabled { opacity: .42; }
1157
+ .notes-find-close { color: var(--text-tertiary); }
1158
+ .notes-replace-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 4px; border-top: 1px solid var(--separator); margin-top: 6px; padding-top: 6px; }
1159
+ .notes-search-result { border-radius: 2px; background: var(--warning-soft); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--warning) 55%, transparent); }
1160
+ .notes-search-result-current { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); box-shadow: inset 0 -2px 0 var(--accent); }
1161
+ .notes-selection-menu { position: fixed; z-index: 70; max-width: calc(100vw - 16px); border: 1px solid var(--panel-border); border-radius: 10px; padding: 4px; background: var(--dialog-surface); box-shadow: var(--shadow); }
1162
+ .notes-selection-primary { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
1163
+ .notes-selection-primary::-webkit-scrollbar { display: none; }
1164
+ .notes-selection-block-toggle { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
1165
+ .notes-selection-mark { min-width: 34px; padding-inline: 7px; font-family: var(--font-mono); }
1166
+ .notes-selection-block-menu { display: grid; grid-template-columns: repeat(2, minmax(92px, 1fr)); gap: 3px; border-top: 1px solid var(--separator); margin-top: 4px; padding-top: 4px; }
1167
+ .notes-selection-block-menu .notes-selection-control { text-align: left; }
1168
+ .notes-selection-link-form { min-width: min(390px, calc(100vw - 26px)); display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: center; gap: 4px; border-top: 1px solid var(--separator); margin-top: 4px; padding-top: 4px; }
1169
+ .notes-selection-link-error { grid-column: 1 / -1; color: var(--danger); font-size: 10px; }
1170
+ .dialog.note-history-dialog { width: min(1040px, calc(100vw - 40px)); height: min(760px, calc(100dvh - 48px)); max-height: min(760px, calc(100dvh - 48px)); }
1171
+ .dialog.note-history-dialog .dialog-body { min-height: 0; display: flex; padding: 0; }
1172
+ .note-history-workspace { min-width: 0; min-height: 0; width: 100%; display: grid; grid-template-columns: 224px minmax(0, 1fr); overflow: hidden; background: var(--surface-editor); }
1173
+ .note-history-timeline { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border-right: 1px solid var(--separator); background: var(--surface-pane); }
1174
+ .note-history-timeline-heading { min-height: 54px; display: grid; align-content: center; gap: 2px; border-bottom: 1px solid var(--separator); padding: 9px 12px; }
1175
+ .note-history-timeline-heading strong { font-size: 12px; font-weight: 650; }
1176
+ .note-history-timeline-heading span { color: var(--text-tertiary); font-size: 10px; }
1177
+ .note-history-version-list { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px; }
1178
+ .note-history-version { width: 100%; min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 2px 7px; border: 0; border-radius: 8px; padding: 8px 9px; background: transparent; color: var(--text); text-align: left; transition: background var(--motion-fast) ease, box-shadow var(--motion-fast) ease; }
1179
+ .note-history-version:hover { background: var(--surface-hover); }
1180
+ .note-history-version[aria-current="true"] { background: var(--material-control); box-shadow: inset 2px 0 0 var(--accent), var(--shadow-control); }
1181
+ .note-history-version strong { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
1182
+ .note-history-version span { grid-column: 1; color: var(--text-tertiary); font-size: 10px; }
1183
+ .note-history-version small { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--text-tertiary); font-size: 9px; font-variant-numeric: tabular-nums; }
1184
+ .note-history-detail { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
1185
+ .note-history-detail-header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--separator); padding: 7px 10px 7px 14px; background: var(--material-toolbar); }
1186
+ .note-history-detail-copy { min-width: 0; }
1187
+ .note-history-detail-copy strong, .note-history-detail-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1188
+ .note-history-detail-copy strong { font-size: 12px; }
1189
+ .note-history-detail-copy span { margin-top: 2px; color: var(--text-tertiary); font-size: 10px; }
1190
+ .note-history-detail-actions { display: flex; flex: none; align-items: center; gap: 4px; }
1191
+ .note-history-mode { min-height: 30px; border: 0; border-radius: 7px; padding: 4px 8px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 10px; font-weight: 590; }
1192
+ .note-history-mode:hover { background: var(--surface-hover); color: var(--text); }
1193
+ .note-history-mode[aria-pressed="true"] { background: var(--material-control); color: var(--text); box-shadow: var(--shadow-control); }
1194
+ .note-history-content { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: clamp(22px, 4vw, 54px); }
1195
+ .note-history-content > .markdown-preview { max-width: 760px; margin: 0 auto; }
1196
+ .note-history-plain-preview { max-width: 820px; min-height: 100%; margin: 0 auto; color: var(--text-secondary); font: 13px/1.65 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
1197
+ .note-history-loading, .note-history-error { min-height: 240px; display: grid; place-content: center; color: var(--text-tertiary); font-size: 12px; text-align: center; }
1198
+ .note-history-error { color: var(--danger); }
1199
+ .note-history-diff { min-width: 0; max-width: 900px; margin: 0 auto; overflow: hidden; border: 1px solid var(--panel-border); border-radius: 10px; background: var(--surface); }
1200
+ .note-history-diff-summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--separator); padding: 8px 11px; background: var(--surface-raised); }
1201
+ .note-history-diff-summary strong { font-size: 11px; }
1202
+ .note-history-diff .diff-viewer { max-height: none; }
1067
1203
  .notes-editor-loading, .notes-editor-error { min-height: 300px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--text-tertiary); font-size: 12px; }
1068
1204
  .notes-editor-loading::before { content: ""; width: 36px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: note-editor-loading 1.1s ease-in-out infinite; }
1069
1205
  .notes-editor-error strong { color: var(--text); font-size: 13px; }
1070
1206
  @keyframes note-editor-loading { 0%, 100% { opacity: .25; transform: scaleX(.72); } 50% { opacity: .75; transform: scaleX(1); } }
1071
1207
  @media (prefers-reduced-motion: reduce) { .notes-editor-loading::before { animation: none; opacity: .55; } }
1072
- .notes-inline-viewer { min-height: calc(100% - 62px); display: grid; place-items: center; overflow: auto; padding: clamp(18px, 3vw, 36px); background: color-mix(in srgb, var(--surface-soft) 35%, var(--surface)); }
1208
+ .notes-document-statusbar { position: relative; z-index: 2; min-height: 36px; display: flex; align-items: center; border-top: 1px solid var(--separator); padding: 6px 20px; background: var(--material-toolbar); -webkit-backdrop-filter: blur(16px) saturate(108%); backdrop-filter: blur(16px) saturate(108%); }
1209
+ .notes-document-statusbar .notes-file-info { width: 100%; }
1210
+ .notes-inline-viewer { min-width: 0; min-height: 0; display: grid; place-items: center; overflow: auto; padding: clamp(18px, 3vw, 36px); background: color-mix(in srgb, var(--surface-soft) 35%, var(--surface)); }
1073
1211
  .notes-inline-viewer.is-pdf { padding: 0; background: var(--surface-soft); }
1074
1212
  .notes-inline-image { display: block; max-width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 32px color-mix(in srgb, var(--text) 9%, transparent); }
1075
1213
  .notes-inline-frame { width: 100%; height: max(620px, calc(100dvh - 130px)); border: 0; background: var(--surface); }
@@ -1462,20 +1600,18 @@ html,
1462
1600
  .api-access-actions { align-items: center; border-top: 1px solid var(--border); padding-top: 13px; }
1463
1601
  .api-access-actions small { color: var(--text-tertiary); }
1464
1602
 
1465
- .dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgb(8 8 10 / 24%); -webkit-backdrop-filter: blur(14px) saturate(96%); backdrop-filter: blur(14px) saturate(96%); animation: dialog-backdrop-enter var(--motion-base) ease both; }
1603
+ .dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: transparent; animation: dialog-backdrop-enter var(--motion-base) ease both; }
1466
1604
  .dialog {
1467
- width: min(100%, 640px);
1468
- max-height: min(88vh, 820px);
1605
+ width: min(560px, 100%);
1606
+ max-height: min(680px, calc(100dvh - 64px));
1469
1607
  display: flex;
1470
1608
  flex-direction: column;
1471
1609
  overflow: hidden;
1472
- border: 1px solid var(--glass-border);
1473
- border-radius: 18px;
1474
- background: color-mix(in srgb, var(--dialog-surface) 88%, transparent);
1475
- box-shadow: var(--glass-shadow), var(--shadow-floating);
1476
- -webkit-backdrop-filter: var(--glass-filter);
1477
- backdrop-filter: var(--glass-filter);
1478
- animation: dialog-enter var(--motion-base) var(--ease-spring) both;
1610
+ border: 1px solid color-mix(in srgb, var(--text) 18%, var(--border));
1611
+ border-radius: 16px;
1612
+ background: var(--dialog-surface);
1613
+ box-shadow: 0 22px 58px color-mix(in srgb, #000 18%, transparent), 0 4px 14px color-mix(in srgb, #000 8%, transparent), inset 0 1px 0 var(--surface-highlight);
1614
+ animation: dialog-enter 200ms var(--ease-out) both;
1479
1615
  }
1480
1616
  @keyframes dialog-backdrop-enter { from { opacity: 0; } }
1481
1617
  @keyframes dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@@ -1483,8 +1619,7 @@ html,
1483
1619
  .dialog-backdrop.sheet-backdrop {
1484
1620
  place-items: stretch end;
1485
1621
  padding: 0;
1486
- background: rgb(8 10 15 / 22%);
1487
- backdrop-filter: none;
1622
+ background: transparent;
1488
1623
  }
1489
1624
  .dialog.sheet {
1490
1625
  width: min(560px, 100vw);
@@ -1496,11 +1631,12 @@ html,
1496
1631
  animation: sheet-enter .2s cubic-bezier(.2, .8, .2, 1);
1497
1632
  }
1498
1633
  @keyframes sheet-enter { from { opacity: .75; transform: translateX(18px); } }
1499
- .dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--glass-separator); padding: 18px 20px; background: var(--glass-regular); box-shadow: inset 0 1px 0 var(--glass-rim-light); }
1500
- .dialog-header h2 { margin: 0; font-size: 17px; }
1501
- .dialog-header p { margin: 4px 0 0; color: var(--text-tertiary); font-size: 12px; }
1502
- .dialog-body { overflow: auto; padding: 20px; }
1503
- .dialog-footer { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--glass-separator); padding: 13px 20px; background: var(--glass-regular); box-shadow: inset 0 1px 0 var(--glass-rim-light); }
1634
+ .dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--separator); padding: 22px 22px 18px; background: var(--surface-raised); }
1635
+ .dialog-header h2 { margin: 0; font-size: var(--font-title); font-weight: 650; letter-spacing: -.02em; }
1636
+ .dialog-header p { margin: 4px 0 0; color: var(--text-tertiary); font-size: var(--font-caption); }
1637
+ .dialog-header .button { display: grid; place-items: center; width: 32px; min-width: 32px; min-height: 32px; padding: 0; border-color: transparent; border-radius: 9px; box-shadow: none; }
1638
+ .dialog-body { overflow: auto; padding: 20px 22px 24px; }
1639
+ .dialog-footer { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--separator); padding: 14px 22px; background: var(--surface-raised); }
1504
1640
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
1505
1641
  .form-grid .span-2 { grid-column: 1 / -1; }
1506
1642
  .check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@@ -1589,15 +1725,6 @@ html,
1589
1725
  box-shadow: none;
1590
1726
  }
1591
1727
 
1592
- .dialog.knowledge-glass-surface {
1593
- background: var(--liquid-glass-dialog);
1594
- box-shadow:
1595
- inset 0 1px 0 var(--glass-rim-light),
1596
- inset 0 -1px 0 var(--glass-rim-shadow),
1597
- 0 2px 8px rgb(0 0 0 / 8%),
1598
- 0 28px 76px rgb(0 0 0 / 25%);
1599
- }
1600
-
1601
1728
  .knowledge-card-surface {
1602
1729
  --knowledge-pointer-x: 50%;
1603
1730
  --knowledge-pointer-y: 50%;
@@ -1780,11 +1907,11 @@ html,
1780
1907
  }
1781
1908
 
1782
1909
  @media (prefers-reduced-transparency: reduce) {
1783
- .sidebar, .topbar, .note-tree-panel, .notes-browser, .notes-content-header, .notes-document-toolbar, .note-editor-toolbar, .dialog-backdrop {
1910
+ .sidebar, .topbar, .note-tree-panel, .notes-browser, .notes-content-header, .notes-document-toolbar, .notes-document-statusbar, .note-editor-toolbar, .dialog-backdrop {
1784
1911
  -webkit-backdrop-filter: none;
1785
1912
  backdrop-filter: none;
1786
1913
  }
1787
- .sidebar, .topbar, .note-tree-panel, .notes-browser, .notes-content-header, .notes-document-toolbar, .note-editor-toolbar { background: var(--surface); }
1914
+ .sidebar, .topbar, .note-tree-panel, .notes-browser, .notes-content-header, .notes-document-toolbar, .notes-document-statusbar, .note-editor-toolbar { background: var(--surface); }
1788
1915
  .knowledge-glass-surface,
1789
1916
  .knowledge-glass-surface[data-knowledge-glass="svg"] {
1790
1917
  -webkit-backdrop-filter: none;
@@ -1795,7 +1922,6 @@ html,
1795
1922
  -webkit-backdrop-filter: none;
1796
1923
  backdrop-filter: none;
1797
1924
  }
1798
- .dialog.knowledge-glass-surface { background: var(--dialog-surface); }
1799
1925
  .knowledge-border-surface::before,
1800
1926
  .knowledge-border-surface::after,
1801
1927
  .knowledge-glare-surface::after { display: none; }
@@ -1812,17 +1938,6 @@ html,
1812
1938
  .notes-workspace { grid-template-columns: minmax(240px, 290px) minmax(0, 1fr); }
1813
1939
  }
1814
1940
 
1815
- @media (max-width: 1180px) {
1816
- .base-grid { grid-template-columns: minmax(0, 1fr) 190px; }
1817
- .base-card { grid-template-rows: auto auto auto auto; gap: 7px 18px; }
1818
- .base-card-header { grid-column: 1; grid-row: 1; }
1819
- .base-description { grid-column: 1; grid-row: 2; }
1820
- .base-card-tags { grid-column: 1; grid-row: 3; }
1821
- .base-card-meta { grid-column: 1; grid-row: 4; display: flex; flex-wrap: wrap; gap: 7px 18px; }
1822
- .base-card-meta strong { display: inline; margin-right: 5px; }
1823
- .base-card-actions { grid-column: 2; grid-row: 1 / span 4; max-width: 170px; }
1824
- }
1825
-
1826
1941
  @media (min-width: 761px) {
1827
1942
  .app-shell[data-sidebar-hidden="true"] { grid-template-columns: 0 0 minmax(0, 1fr); }
1828
1943
  .app-shell[data-sidebar-hidden="true"] > .sidebar {
@@ -1839,23 +1954,27 @@ html,
1839
1954
 
1840
1955
  @media (max-width: 760px) {
1841
1956
  :root { --sidebar-width: 0px; --chrome-inset: 8px; --topbar-inline-inset: 8px; }
1957
+ html { min-width: 0; overflow-x: hidden; }
1958
+ body { min-width: 0; overflow-x: hidden; font-size: 14px; }
1842
1959
  .app-shell { height: auto; min-height: 100dvh; display: block; overflow: visible; }
1843
- .main { width: 100%; height: auto; min-height: 100dvh; overflow: visible; }
1960
+ .main { width: 100%; height: auto; min-height: 100dvh; margin: 0; overflow: visible; border: 0; border-radius: 0; }
1844
1961
  .app-sidebar-resizer { display: none; }
1845
1962
  .pane-toggle-button[data-pane="main"] { display: none; }
1846
1963
  .pane-toggle-button[data-pane="library"] { display: inline-grid; }
1847
- .sidebar { position: fixed; top: 8px; bottom: 8px; z-index: 40; width: min(82vw, 270px); height: auto; margin-left: 8px; border-radius: 18px; transform: translateX(-110%); box-shadow: var(--shadow); transition: transform .2s ease; }
1964
+ .sidebar { position: fixed; top: max(8px, env(safe-area-inset-top)); bottom: max(8px, env(safe-area-inset-bottom)); z-index: 40; width: min(82vw, 270px); height: auto; margin-left: max(8px, env(safe-area-inset-left)); border-radius: 18px; transform: translateX(-110%); box-shadow: var(--shadow); transition: transform .2s ease; }
1848
1965
  .app-shell[data-menu-open="true"] .sidebar { transform: translateX(0); }
1849
1966
  .app-sidebar-scrim { position: fixed; inset: 0; z-index: 30; display: block; border: 0; padding: 0; background: rgb(0 0 0 / 35%); touch-action: manipulation; }
1850
1967
  .mobile-menu { display: inline-grid; place-items: center; }
1851
- .topbar { min-height: 64px; padding: 10px 16px; }
1968
+ .topbar { min-height: 64px; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
1852
1969
  .topbar-title { gap: 10px; }
1853
1970
  .topbar h1 { font-size: 17px; }
1854
1971
  .topbar p { display: none; }
1855
- .page { padding: 22px 16px 42px; }
1856
- .app-shell[data-view="notes"] .page { height: auto; min-height: calc(100dvh - 72px); overflow: visible; padding: 0; }
1857
- .app-shell[data-view="notes"] .view-stage { height: auto; min-height: inherit; overflow: visible; }
1858
- .app-shell[data-view="notes"] .notes-page { height: auto; }
1972
+ .page { padding: 22px max(16px, env(safe-area-inset-right)) max(42px, calc(24px + env(safe-area-inset-bottom))) max(16px, env(safe-area-inset-left)); }
1973
+ .app-shell[data-view="notes"] .main { height: 100dvh; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
1974
+ .app-shell[data-view="notes"] .topbar { position: relative; }
1975
+ .app-shell[data-view="notes"] .page { height: auto; min-height: 0; overflow: hidden; padding: 0; }
1976
+ .app-shell[data-view="notes"] .view-stage,
1977
+ .app-shell[data-view="notes"] .notes-page { height: 100%; min-height: 0; overflow: hidden; }
1859
1978
  .workspace-switcher { align-items: stretch; flex-direction: column; gap: 10px; }
1860
1979
  .workspace-switcher-leading { align-items: flex-start; }
1861
1980
  .workspace-switcher p { text-align: left; }
@@ -1917,18 +2036,88 @@ html,
1917
2036
  .candidate-heading-actions > .button { width: 100%; }
1918
2037
  .candidate-footer { gap: 9px; }
1919
2038
  .candidate-actions { width: 100%; justify-content: flex-start; }
1920
- .notes-workspace { height: auto; min-height: calc(100dvh - 72px); grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(320px, 44dvh) minmax(430px, auto); }
1921
- .notes-browser { border-right: 0; border-bottom: 1px solid var(--border); }
1922
- .notes-file-list { min-width: 560px; }
1923
- .button, .tab, .nav-button, .note-tree-base, .note-tree-document, .note-tree-new { min-height: 44px; }
2039
+ .notes-workspace { height: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
2040
+ .notes-browser { display: none; }
2041
+ .notes-content { min-height: 0; }
2042
+ .notes-editor-frame, .notes-editor-frame[data-outline-open="true"] { grid-template-columns: minmax(0, 1fr); }
2043
+ .notes-editor-outline { position: absolute; inset: 0 0 0 auto; z-index: 12; width: min(86vw, 300px); border-left-color: var(--border-strong); box-shadow: -16px 0 34px color-mix(in srgb, var(--text) 13%, transparent); transform: translateX(103%); transition: opacity var(--motion-base) ease, transform var(--motion-base) var(--ease-out); }
2044
+ .notes-editor-frame[data-outline-open="true"] .notes-editor-outline { transform: translateX(0); }
2045
+ .notes-editor-outline-header { padding-right: max(9px, env(safe-area-inset-right)); }
2046
+ .notes-editor-outline-close, .notes-editor-outline-link { min-height: 44px; touch-action: manipulation; }
2047
+ .notes-editor-outline-list { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
2048
+ .notes-document-toolbar { align-items: center; flex-direction: row; gap: 6px; overflow: visible; padding: 4px max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left)); }
2049
+ .notes-toolbar-leading { width: auto; min-height: 44px; flex: 1 1 auto; }
2050
+ .notes-document-actions { width: auto; display: flex; gap: 4px; }
2051
+ .notes-document-actions > [data-note-mobile-overflow] { display: none; }
2052
+ .notes-save-state { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 4px; color: var(--text-secondary); font-size: 11px; }
2053
+ .notes-save-state[data-dirty="true"] { color: var(--warning); }
2054
+ .notes-outline-action { min-width: 44px; padding-inline: 10px; }
2055
+ .notes-document-actions > .button, .notes-document-more > summary { min-height: 44px; justify-content: center; touch-action: manipulation; }
2056
+ .notes-document-more { display: block; }
2057
+ .notes-document-more-menu .button { min-height: 44px; touch-action: manipulation; }
2058
+ .notes-content.is-document { --notes-document-inline: 16px; }
2059
+ .notes-content.is-document.has-line-numbers { --notes-document-inline: 30px; }
2060
+ .notes-document-scroll > .notes-live-editor, .notes-document-scroll > .notes-plain-editor { padding-bottom: max(64px, calc(48px + env(safe-area-inset-bottom))); }
2061
+ .notes-find-panel { top: 8px; right: max(8px, env(safe-area-inset-right)); left: max(8px, env(safe-area-inset-left)); width: auto; }
2062
+ .notes-find-row { display: flex; flex-wrap: wrap; }
2063
+ .notes-find-row .notes-find-input { flex: 1 1 190px; }
2064
+ .notes-find-status { min-width: 54px; }
2065
+ .notes-find-button, .notes-selection-control { min-height: 44px; touch-action: manipulation; }
2066
+ .notes-replace-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
2067
+ .notes-replace-row .notes-find-input { grid-column: 1 / -1; width: 100%; height: 44px; font-size: 16px; }
2068
+ .notes-selection-menu { width: auto; max-width: none; border-radius: 12px; padding: 6px; }
2069
+ .notes-selection-primary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; overflow: visible; }
2070
+ .notes-selection-block-toggle { max-width: none; grid-column: span 2; }
2071
+ .notes-selection-control { min-width: 0; }
2072
+ .notes-selection-link-form { min-width: min(350px, calc(100vw - 28px - env(safe-area-inset-left) - env(safe-area-inset-right))); grid-template-columns: repeat(2, minmax(0, 1fr)); }
2073
+ .notes-selection-link-input { grid-column: 1 / -1; width: 100%; height: 44px; font-size: 16px; }
2074
+ .notes-live-editor-surface pre { max-width: 100%; overflow-x: auto; }
2075
+ .notes-live-editor-surface table { min-width: max-content; }
2076
+ .notes-live-editor-surface .tableWrapper { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
2077
+ .note-history-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(132px, 28dvh) minmax(0, 1fr); }
2078
+ .note-history-timeline { grid-template-rows: auto minmax(0, 1fr); border-right: 0; border-bottom: 1px solid var(--separator); }
2079
+ .note-history-timeline-heading { min-height: 44px; padding-block: 5px; }
2080
+ .note-history-version-list { display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden; padding: 6px max(8px, env(safe-area-inset-right)) 7px max(8px, env(safe-area-inset-left)); }
2081
+ .note-history-version { width: 182px; min-width: 182px; min-height: 66px; }
2082
+ .note-history-version[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--accent), var(--shadow-control); }
2083
+ .note-history-detail-header { align-items: stretch; flex-direction: column; padding: 9px max(10px, env(safe-area-inset-right)) 9px max(10px, env(safe-area-inset-left)); }
2084
+ .note-history-detail-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
2085
+ .note-history-mode, .note-history-detail-actions .button { min-width: 0; min-height: 44px; padding-inline: 5px; }
2086
+ .note-history-content { padding: 18px max(14px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
2087
+ .dialog.note-history-dialog { width: 100%; height: 100dvh; max-height: none; }
2088
+ .notes-file-list { min-width: 0; display: grid; gap: 8px; padding: 10px 12px max(28px, calc(16px + env(safe-area-inset-bottom))); }
2089
+ .notes-file-row { min-width: 0; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; border: 1px solid var(--separator); border-radius: 12px; padding: 10px 11px; background: var(--material-panel); box-shadow: var(--shadow-soft); }
2090
+ .notes-file-row:hover { background: var(--material-panel); }
2091
+ .notes-file-main { grid-column: 1 / -1; min-width: 0; min-height: 44px; padding: 2px 0; }
2092
+ .notes-file-main strong { font-size: 14px; }
2093
+ .notes-file-main small { margin-top: 2px; font-size: 12px; }
2094
+ .notes-file-row > time,
2095
+ .notes-file-row > .notes-file-size { display: inline-flex; min-width: 0; align-items: baseline; gap: 5px; font-size: 12px; }
2096
+ .notes-file-row > time::before,
2097
+ .notes-file-row > .notes-file-size::before { color: var(--text-tertiary); font-size: 10px; content: attr(data-label); }
2098
+ .notes-file-row > time { grid-column: 1; }
2099
+ .notes-file-row > .notes-file-size { grid-column: 2; justify-self: end; }
2100
+ .notes-file-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; opacity: 1; pointer-events: auto; }
2101
+ .notes-file-actions .button { min-width: 0; width: 100%; padding-inline: 5px; }
2102
+ .button, .tab, .nav-button, .note-tree-base, .note-tree-document, .note-tree-new, .note-tree-more, .notes-search-row, .check-option, .range-row { min-height: 44px; touch-action: manipulation; }
2103
+ .notes-breadcrumb button { min-height: 44px; margin-block: -12px; touch-action: manipulation; }
1924
2104
  .note-add-button, .pane-toggle-button, .mobile-menu { width: 44px; min-width: 44px; min-height: 44px; }
2105
+ .input, .select { height: 44px; min-height: 44px; }
2106
+ :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { font-size: 16px; }
2107
+ .dialog-backdrop { place-items: stretch; padding: 0; }
2108
+ .dialog, .dialog.narrow, .dialog.sheet { width: 100%; height: 100dvh; max-height: none; border-width: 0; border-radius: 0; }
2109
+ .dialog-header { padding: max(15px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left)); }
2110
+ .dialog-header .button { width: 44px; min-width: 44px; min-height: 44px; }
2111
+ .dialog-body { padding: 18px max(16px, env(safe-area-inset-right)) max(24px, calc(16px + env(safe-area-inset-bottom))) max(16px, env(safe-area-inset-left)); }
2112
+ .dialog-footer { flex-wrap: wrap; padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
2113
+ .dialog-footer .button { flex: 1 1 120px; }
2114
+ .candidate-actions .button { min-width: min(100%, 112px); }
1925
2115
  .toast-region { right: 12px; bottom: 12px; left: 12px; }
1926
2116
  .toast { max-width: none; }
1927
2117
  }
1928
2118
 
1929
2119
  @media (max-width: 520px) {
1930
2120
  .api-access-heading, .api-access-actions, .api-address-row { align-items: stretch; flex-direction: column; }
1931
- body { font-size: 13px; }
1932
2121
  .login-page { padding: 16px; }
1933
2122
  .login-card { padding: 24px; }
1934
2123
  .metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
@@ -1937,7 +2126,7 @@ html,
1937
2126
  .toolbar { align-items: stretch; }
1938
2127
  .toolbar .select { min-width: 0; flex: 1; }
1939
2128
  .topbar-actions .button:not(.primary) { display: none; }
1940
- .topbar-actions .button.primary { width: 38px; overflow: hidden; padding: 0; font-size: 0; }
2129
+ .topbar-actions .button.primary { width: 44px; min-width: 44px; overflow: hidden; padding: 0; font-size: 0; }
1941
2130
  .topbar-actions .button.primary::before { content: "+"; font-size: 18px; }
1942
2131
  .workspace-tabs { width: 100%; }
1943
2132
  .workspace-tabs .tab { min-width: 0; flex: 1; justify-content: center; padding-inline: 8px; }
@@ -1952,8 +2141,6 @@ html,
1952
2141
  .form-grid .span-2 { grid-column: auto; }
1953
2142
  .mount-context { grid-template-columns: 1fr; }
1954
2143
  .mount-delete { align-items: stretch; flex-direction: column; }
1955
- .dialog-backdrop { align-items: end; padding: 0; }
1956
- .dialog, .dialog.narrow { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
1957
2144
  .secret-value { flex-direction: column; }
1958
2145
  .reader-actions .badge { display: none; }
1959
2146
  .reader-footer { flex-direction: column; gap: 2px; }
@@ -1970,14 +2157,26 @@ html,
1970
2157
  .notes-agent-capabilities { grid-template-columns: 1fr; }
1971
2158
  .notes-content-title { align-items: stretch; flex-direction: column; }
1972
2159
  .notes-content-actions .button { flex: 1 1 auto; }
1973
- .notes-document-toolbar { align-items: center; flex-direction: row; overflow-x: auto; }
1974
- .notes-toolbar-leading { flex: 1 0 240px; }
1975
- .notes-file-info { overflow: hidden; }
1976
- .notes-document-actions { width: auto; flex-wrap: nowrap; justify-content: flex-end; }
1977
- .notes-content.is-document { --notes-document-inline: 16px; }
1978
- .notes-content.is-document.has-line-numbers { --notes-document-inline: 30px; }
2160
+ .notes-document-statusbar { padding-inline: 14px; }
2161
+ .notes-file-info { gap: 3px 14px; }
1979
2162
  .notes-document-title { padding-top: 24px; }
1980
- .notes-content.is-document > .notes-live-editor, .notes-content.is-document > .notes-plain-editor { padding-bottom: 64px; }
2163
+ }
2164
+
2165
+ @media (max-width: 390px) {
2166
+ .topbar { gap: 8px; padding-inline: 10px; }
2167
+ .topbar-title { gap: 6px; }
2168
+ .topbar-heading { max-width: 118px; }
2169
+ .notes-file-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
2170
+ .candidate-actions { display: grid; grid-template-columns: 1fr; }
2171
+ .candidate-actions .button { width: 100%; }
2172
+ .bulk-review-metrics { grid-template-columns: 1fr; }
2173
+ }
2174
+
2175
+ @media (max-width: 760px) and (max-height: 520px) and (orientation: landscape) {
2176
+ .topbar { min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
2177
+ .page { padding-top: 14px; padding-bottom: 20px; }
2178
+ .dialog-header { padding-top: 10px; padding-bottom: 10px; }
2179
+ .dialog-body { padding-top: 14px; }
1981
2180
  }
1982
2181
 
1983
2182
  @media (prefers-reduced-motion: reduce) {