codeapp-js 0.3.0 → 1.0.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 (158) hide show
  1. package/AI/codeapp.agent.md +105 -0
  2. package/AI/skills/connections/SKILL.md +47 -0
  3. package/AI/skills/dataverse/SKILL.md +99 -0
  4. package/AI/skills/environment-variables/SKILL.md +89 -0
  5. package/AI/skills/frontend-design/SKILL.md +34 -0
  6. package/AI/skills/jira/SKILL.md +81 -0
  7. package/AI/skills/office365-groups/SKILL.md +61 -0
  8. package/AI/skills/office365-outlook/SKILL.md +52 -0
  9. package/AI/skills/office365-users/SKILL.md +78 -0
  10. package/AI/skills/sharepoint/SKILL.md +77 -0
  11. package/AI/skills/sql/SKILL.md +85 -0
  12. package/AI/skills/start/SKILL.md +46 -0
  13. package/AI/skills/teams/SKILL.md +55 -0
  14. package/{examples/combined demo/.power/schemas/office365groups/office365groups.Schema.json → codeApp/.power/schemas/office365groups/office365groups.Schema.json} +2203 -2203
  15. package/codeApp/dist/codeapp.js +95 -1792
  16. package/codeApp/dist/connectors/azureKeyvault.js +459 -0
  17. package/codeApp/dist/connectors/jira.js +1247 -0
  18. package/codeApp/dist/connectors/office365groups.js +642 -0
  19. package/codeApp/dist/connectors/office365users.js +513 -0
  20. package/codeApp/dist/connectors/outlook.js +1393 -0
  21. package/{dev files/sharepoint.js → codeApp/dist/connectors/sharepoint.js} +239 -112
  22. package/codeApp/dist/connectors/sql.js +149 -0
  23. package/codeApp/dist/connectors/teams.js +280 -0
  24. package/codeApp/dist/power-apps-data.js +16 -2
  25. package/examples/{kanban → apps/kanban}/dist/dataverse.js +94 -94
  26. package/examples/{kanban → apps/kanban}/dist/environmentVar.js +55 -55
  27. package/examples/{kanban → apps/kanban}/dist/index.css +605 -605
  28. package/examples/{kanban → apps/kanban}/dist/index.html +21 -21
  29. package/examples/{kanban → apps/kanban}/dist/index.js +860 -860
  30. package/examples/{kanban → apps/kanban}/dist/office365groups.js +97 -97
  31. package/examples/apps/kanban/dist/office365users.js +451 -0
  32. package/examples/{kanban → apps/kanban}/dist/outlook.js +162 -162
  33. package/examples/{planning Poker/dist/power-apps-data.js → apps/kanban/dist/power-apps-data.js} +2953 -2953
  34. package/examples/{kanban → apps/kanban}/dist/sharepoint.js +435 -339
  35. package/examples/{kanban → apps/kanban}/power.config.json +35 -35
  36. package/examples/{planning Poker → apps/planning Poker}/additional files/customizations (tables).xml +6428 -6428
  37. package/examples/{planning Poker → apps/planning Poker}/additional files/dataverse-tables.json +165 -165
  38. package/examples/{planning Poker → apps/planning Poker}/additional files/readme.md +122 -122
  39. package/examples/{planning Poker → apps/planning Poker}/dist/dataverse.js +78 -78
  40. package/examples/{planning Poker → apps/planning Poker}/dist/index.html +198 -198
  41. package/examples/{planning Poker → apps/planning Poker}/dist/index.js +954 -954
  42. package/examples/{todo/dist/power-apps-data.js → apps/planning Poker/dist/power-apps-data.js } +2953 -2953
  43. package/examples/{planning Poker → apps/planning Poker}/dist/styles.css +815 -815
  44. package/examples/{planning Poker → apps/planning Poker}/power.config.json +50 -50
  45. package/examples/{outlook Demo2 → apps/solution explorer}/dist/codeapp.js +9 -245
  46. package/examples/apps/solution explorer/dist/index.html +80 -0
  47. package/examples/apps/solution explorer/dist/index.js +735 -0
  48. package/examples/apps/solution explorer/dist/styles.css +571 -0
  49. package/examples/apps/solution explorer/power.config.json +151 -0
  50. package/examples/{todo → apps/todo}/dist/dataverse.js +64 -64
  51. package/examples/{todo → apps/todo}/dist/index.html +75 -75
  52. package/examples/{todo → apps/todo}/dist/index.js +8 -8
  53. package/examples/{kanban → apps/todo}/dist/power-apps-data.js +2953 -2953
  54. package/examples/{todo → apps/todo}/dist/renderer.js +375 -375
  55. package/examples/{todo → apps/todo}/dist/styles.css +691 -691
  56. package/examples/{todo → apps/todo}/power.config.json +34 -34
  57. package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +6275 -7830
  58. package/examples/combined demo/.power/schemas/jira/jira.Schema.json +6903 -0
  59. package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +1600 -0
  60. package/examples/combined demo/.power/schemas/teams/teams.Schema.json +11112 -0
  61. package/examples/combined demo/dist/codeapp.js +394 -1098
  62. package/examples/{outlook Demo2/OutlookDemo_1_0_0_1.zip → combined demo/dist/icon-512.png} +0 -0
  63. package/examples/combined demo/dist/index.html +29 -511
  64. package/examples/combined demo/dist/index.js +490 -470
  65. package/examples/combined demo/dist/office365users.js +513 -0
  66. package/examples/combined demo/dist/outlook.js +1393 -0
  67. package/examples/combined demo/dist/power-apps-data.js +3079 -3006
  68. package/examples/combined demo/dist/styles.css +483 -0
  69. package/examples/combined demo/power.config.json +33 -42
  70. package/examples/combined demo/src/generated/index.ts +12 -14
  71. package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +107 -0
  72. package/examples/combined demo/src/generated/models/JiraModel.ts +501 -0
  73. package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +257 -0
  74. package/examples/combined demo/src/generated/services/JiraService.ts +1124 -0
  75. package/examples/dataverse Demo/dist/codeapp.js +394 -1085
  76. package/examples/dataverse Demo/dist/icon-512.png +0 -0
  77. package/examples/dataverse Demo/dist/index.html +146 -54
  78. package/examples/dataverse Demo/dist/index.js +693 -83
  79. package/examples/dataverse Demo/dist/power-apps-data.js +3079 -2911
  80. package/examples/dataverse Demo/dist/styles.css +528 -0
  81. package/examples/dataverse Demo/power.config.json +41 -35
  82. package/examples/dataverse Demo/readme.md +79 -79
  83. package/examples/groups Demo/dist/codeapp.js +394 -1085
  84. package/examples/groups Demo/dist/icon-512.png +0 -0
  85. package/examples/groups Demo/dist/index.html +21 -25
  86. package/examples/groups Demo/dist/index.js +304 -113
  87. package/examples/groups Demo/dist/office365groups.js +642 -0
  88. package/examples/groups Demo/dist/power-apps-data.js +3079 -2911
  89. package/examples/groups Demo/dist/styles.css +509 -0
  90. package/examples/groups Demo/power.config.json +25 -25
  91. package/examples/myProfile/dist/codeapp.js +398 -0
  92. package/examples/myProfile/dist/index.html +21 -184
  93. package/examples/myProfile/dist/index.js +324 -141
  94. package/examples/myProfile/dist/office365users.js +517 -169
  95. package/examples/myProfile/dist/power-apps-data.js +3080 -2953
  96. package/examples/myProfile/dist/styles.css +458 -0
  97. package/examples/myProfile/power.config.json +24 -23
  98. package/examples/outlook Demo/dist/codeapp.js +394 -1085
  99. package/examples/outlook Demo/dist/index.html +150 -35
  100. package/examples/outlook Demo/dist/index.js +516 -170
  101. package/examples/outlook Demo/dist/outlook.js +1393 -121
  102. package/examples/outlook Demo/dist/power-apps-data.js +3079 -2911
  103. package/examples/outlook Demo/dist/styles.css +408 -84
  104. package/examples/outlook Demo/power.config.json +24 -23
  105. package/examples/outlook Demo/readme.md +92 -82
  106. package/examples/sharePoint Demo/dist/codeapp.js +394 -1085
  107. package/examples/sharePoint Demo/dist/icon-512.png +0 -0
  108. package/examples/sharePoint Demo/dist/index.html +22 -255
  109. package/examples/sharePoint Demo/dist/index.js +899 -262
  110. package/examples/sharePoint Demo/dist/power-apps-data.js +3079 -2911
  111. package/examples/sharePoint Demo/dist/sharepoint.js +466 -0
  112. package/examples/sharePoint Demo/dist/styles.css +587 -0
  113. package/examples/sharePoint Demo/power.config.json +23 -22
  114. package/package.json +1 -1
  115. package/readme.md +465 -76
  116. package/.vscode/settings.json +0 -6
  117. package/dev files/customConnector.js +0 -98
  118. package/dev files/dataverse.js +0 -120
  119. package/dev files/environmentVar.js +0 -55
  120. package/dev files/office365groups.js +0 -65
  121. package/dev files/office365users.js +0 -169
  122. package/dev files/outlook.js +0 -330
  123. package/dev files/power-apps-data.js +0 -2952
  124. package/examples/combined demo/.power/schemas/office365/office365.Schema.json +0 -21098
  125. package/examples/combined demo/.power/schemas/office365users/office365users.Schema.json +0 -2094
  126. package/examples/kanban/agent/decision-log.md +0 -9
  127. package/examples/kanban/agent/mockup-01-editorial-glass.html +0 -159
  128. package/examples/kanban/agent/mockup-02-dark-rail.html +0 -147
  129. package/examples/kanban/agent/mockup-03-paper-grid.html +0 -114
  130. package/examples/kanban/agent/mockup-04-neon-minimal.html +0 -141
  131. package/examples/kanban/agent/mockup-05-mono-architect.html +0 -119
  132. package/examples/kanban/dist/office365users.js +0 -169
  133. package/examples/kanban/src/generated/index.ts +0 -14
  134. package/examples/kanban/src/generated/models/Office365GroupsModel.ts +0 -363
  135. package/examples/kanban/src/generated/models/Office365OutlookModel.ts +0 -2046
  136. package/examples/kanban/src/generated/models/Office365UsersModel.ts +0 -254
  137. package/examples/kanban/src/generated/services/Office365GroupsService.ts +0 -326
  138. package/examples/kanban/src/generated/services/Office365OutlookService.ts +0 -2476
  139. package/examples/kanban/src/generated/services/Office365UsersService.ts +0 -358
  140. package/examples/outlook Demo2/agent/decision-log.md +0 -7
  141. package/examples/outlook Demo2/dist/index.html +0 -98
  142. package/examples/outlook Demo2/dist/index.js +0 -272
  143. package/examples/outlook Demo2/dist/styles.css +0 -639
  144. package/examples/outlook Demo2/power.config.json +0 -23
  145. package/examples/planning Poker/.vscode/settings.json +0 -5
  146. package/examples/sharePoint Demo/agent/decision-log.md +0 -17
  147. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/index.ts +0 -0
  148. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365GroupsModel.ts +0 -0
  149. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365OutlookModel.ts +0 -0
  150. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365UsersModel.ts +0 -0
  151. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365GroupsService.ts +0 -0
  152. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365OutlookService.ts +0 -0
  153. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365UsersService.ts +0 -0
  154. /package/examples/{planning Poker → apps/planning Poker}/additional files/AgilePoker_1_0_0_1.zip +0 -0
  155. /package/examples/{planning Poker → apps/planning Poker}/additional files/PokerTables_1_0_0_1.zip +0 -0
  156. /package/examples/{outlook Demo2 → apps/solution explorer}/dist/icon-512.png +0 -0
  157. /package/examples/{outlook Demo2 → apps/solution explorer}/dist/power-apps-data.js +0 -0
  158. /package/examples/{todo → apps/todo}/dist/icon192.png +0 -0
@@ -1,691 +1,691 @@
1
- /* ============================================
2
- BRUTALIST THEME - Power DevBox Notes
3
- ============================================ */
4
- :root {
5
- --bg: #f5f0eb;
6
- --bg-elev: #fff;
7
- --surface: #fff;
8
- --text: #111;
9
- --muted: #888;
10
- --primary: #2962ff;
11
- --accent: #4163be;
12
- --danger: #ff3d00;
13
- --black: #111;
14
- --border: 3px solid #111;
15
- --border-thin: 2px solid #111;
16
- --radius: 0px;
17
- --shadow: 4px 4px 0 #111;
18
- --shadow-lg: 6px 6px 0 #111;
19
- }
20
-
21
- /* Prevent text overflow and improve mobile experience */
22
- *, *::before, *::after {
23
- box-sizing: border-box;
24
- max-width: 100%;
25
- }
26
-
27
- /* Improve word wrapping for long content */
28
- .preview, .content, .title, .note-item .title {
29
- word-wrap: break-word;
30
- overflow-wrap: break-word;
31
- hyphens: auto;
32
- }
33
-
34
- /* Ensure inputs don't exceed container width */
35
- input, textarea, select {
36
- max-width: 100%;
37
- font-size: 16px;
38
- }
39
-
40
- #btn-preview {
41
- margin-right: 5px;
42
- }
43
-
44
- /* Specific mobile input fixes */
45
- @media screen and (max-width: 768px) {
46
- input[type="email"], input[type="password"], input[type="text"], textarea {
47
- font-size: 16px;
48
- -webkit-appearance: none;
49
- appearance: none;
50
- border-radius: 0;
51
- }
52
- }
53
-
54
- /* Prevent code blocks from causing horizontal scroll */
55
- .preview pre, .preview code {
56
- overflow-x: auto;
57
- max-width: 100%;
58
- }
59
-
60
- /* Ensure images in preview don't overflow */
61
- .preview img {
62
- max-width: 100%;
63
- height: auto;
64
- }
65
-
66
- html { height: 100%; }
67
- body {
68
- margin: 0;
69
- font-family: 'Space Grotesk', system-ui, sans-serif;
70
- color: var(--text);
71
- background: var(--bg);
72
- overflow-x: hidden;
73
- min-height: 100vh;
74
- display: flex;
75
- flex-direction: column;
76
- }
77
-
78
- /* App bar */
79
- .app-bar {
80
- display: flex;
81
- align-items: center;
82
- justify-content: space-between;
83
- padding: 12px 16px;
84
- position: sticky;
85
- top: 0;
86
- background: var(--bg);
87
- border-bottom: var(--border);
88
- min-width: 0;
89
- z-index: 1000;
90
- }
91
- .app-bar h1 {
92
- margin: 0;
93
- font-family: 'Space Mono', monospace;
94
- font-size: 16px;
95
- font-weight: 700;
96
- text-transform: uppercase;
97
- letter-spacing: 2px;
98
- min-width: 0;
99
- }
100
- .app-bar .left {
101
- display: flex;
102
- gap: 12px;
103
- align-items: center;
104
- min-width: 0;
105
- flex: 1;
106
- }
107
- .app-bar .right {
108
- display: flex;
109
- gap: 8px;
110
- align-items: center;
111
- flex-shrink: 0;
112
- }
113
- .app-bar-logo {
114
- height: 20px;
115
- }
116
- #sync-status {
117
- font-family: 'Space Mono', monospace;
118
- font-size: 11px;
119
- color: var(--muted);
120
- padding: 4px 10px;
121
- background: var(--bg);
122
- border: var(--border-thin);
123
- white-space: nowrap;
124
- text-transform: uppercase;
125
- letter-spacing: 1px;
126
- }
127
-
128
- /* Container layout */
129
- .container {
130
- display: grid;
131
- grid-template-columns: 300px 1fr;
132
- gap: 16px;
133
- padding: 16px;
134
- max-width: 960px;
135
- margin: 0 auto;
136
- min-width: 0;
137
- width: 100%;
138
- flex: 1;
139
- }
140
-
141
- /* Sidebar */
142
- .sidebar {
143
- background: var(--surface);
144
- border: var(--border);
145
- box-shadow: var(--shadow);
146
- padding: 0;
147
- display: flex;
148
- flex-direction: column;
149
- min-height: 70vh;
150
- min-width: 0;
151
- }
152
- .search {
153
- padding: 12px;
154
- border-bottom: var(--border-thin);
155
- display: flex;
156
- gap: 8px;
157
- align-items: center;
158
- }
159
- .search input {
160
- flex: 1;
161
- padding: 10px 12px;
162
- border: var(--border-thin);
163
- background: var(--bg);
164
- color: var(--text);
165
- font-family: 'Space Grotesk', sans-serif;
166
- font-size: 14px;
167
- min-width: 0;
168
- }
169
- .search input:focus {
170
- outline: none;
171
- background: var(--accent);
172
- }
173
- .tags {
174
- display: flex;
175
- flex-wrap: wrap;
176
- gap: 6px;
177
- padding: 8px 12px;
178
- }
179
- .tag {
180
- background: var(--bg);
181
- border: var(--border-thin);
182
- color: var(--text);
183
- padding: 4px 10px;
184
- font-size: 11px;
185
- font-family: 'Space Mono', monospace;
186
- text-transform: uppercase;
187
- letter-spacing: 1px;
188
- cursor: pointer;
189
- white-space: nowrap;
190
- transition: background 0.15s;
191
- }
192
- .tag:hover {
193
- background: var(--accent);
194
- }
195
-
196
- .note-list {
197
- margin: 0;
198
- padding: 0;
199
- list-style: none;
200
- display: flex;
201
- flex-direction: column;
202
- gap: 0;
203
- flex: 1;
204
- overflow-y: auto;
205
- }
206
- .note-item {
207
- display: flex;
208
- align-items: center;
209
- gap: 8px;
210
- padding: 12px 12px;
211
- background: var(--surface);
212
- border-bottom: var(--border-thin);
213
- cursor: grab;
214
- min-width: 0;
215
- font-weight: 700;
216
- transition: background 0.15s;
217
- }
218
- .note-item:hover {
219
- background: var(--accent);
220
- }
221
- .note-item .note-del {
222
- margin-left: auto;
223
- background: transparent;
224
- border: var(--border-thin);
225
- color: var(--text);
226
- width: 24px;
227
- height: 24px;
228
- cursor: pointer;
229
- font-size: 16px;
230
- line-height: 1;
231
- display: flex;
232
- align-items: center;
233
- justify-content: center;
234
- transition: all 0.15s;
235
- }
236
- .note-item .note-del:hover {
237
- background: var(--danger);
238
- color: #fff;
239
- border-color: var(--danger);
240
- }
241
- .note-item .note-del:active {
242
- transform: scale(0.9);
243
- }
244
- .note-item.dragging {
245
- opacity: 0.6;
246
- }
247
- .note-item .title {
248
- flex: 1;
249
- overflow: hidden;
250
- text-overflow: ellipsis;
251
- white-space: nowrap;
252
- min-width: 0;
253
- }
254
-
255
- /* Editor */
256
- .editor {
257
- background: var(--surface);
258
- border: var(--border);
259
- box-shadow: var(--shadow);
260
- padding: 0;
261
- display: flex;
262
- flex-direction: column;
263
- min-height: 70vh;
264
- min-width: 0;
265
- }
266
- .toolbar {
267
- display: flex;
268
- gap: 0;
269
- align-items: center;
270
- flex-wrap: wrap;
271
- border-bottom: var(--border);
272
- padding: 0;
273
- }
274
- .toolbar button {
275
- background: var(--surface);
276
- color: var(--text);
277
- border: none;
278
- border-right: var(--border-thin);
279
- padding: 10px 12px;
280
- cursor: pointer;
281
- white-space: nowrap;
282
- font-family: 'Space Mono', monospace;
283
- font-size: 13px;
284
- font-weight: 700;
285
- text-transform: uppercase;
286
- transition: background 0.15s;
287
- }
288
- .toolbar button:hover {
289
- background: var(--accent);
290
- }
291
- .toolbar .spacer {
292
- flex: 1;
293
- min-width: 8px;
294
- border: none;
295
- }
296
- .title {
297
- font-family: 'Space Grotesk', sans-serif;
298
- font-size: 20px;
299
- font-weight: 700;
300
- text-transform: uppercase;
301
- padding: 12px 16px;
302
- border: none;
303
- border-bottom: var(--border);
304
- background: var(--surface);
305
- color: var(--text);
306
- width: 100%;
307
- min-width: 0;
308
- }
309
- .title:focus {
310
- outline: none;
311
- background: #fffde7;
312
- }
313
- .content {
314
- min-height: 280px;
315
- resize: vertical;
316
- padding: 16px;
317
- border: none;
318
- background: var(--bg);
319
- color: var(--text);
320
- line-height: 1.6;
321
- width: 100%;
322
- min-width: 0;
323
- font-family: 'Space Grotesk', sans-serif;
324
- font-size: 15px;
325
- flex: 1;
326
- }
327
- .content:focus {
328
- outline: none;
329
- background: #fff;
330
- }
331
- .preview {
332
- min-height: 280px;
333
- padding: 16px;
334
- border-top: var(--border);
335
- background: #fff;
336
- width: 100%;
337
- overflow-wrap: break-word;
338
- word-wrap: break-word;
339
- overflow-x: hidden;
340
- flex: 1;
341
- overflow-y: auto;
342
- }
343
- .status-bar {
344
- position: sticky;
345
- bottom: 0;
346
- background: var(--black);
347
- border-top: var(--border);
348
- padding: 8px 16px;
349
- color: #999;
350
- font-family: 'Space Mono', monospace;
351
- font-size: 12px;
352
- text-transform: uppercase;
353
- letter-spacing: 2px;
354
- overflow: hidden;
355
- text-overflow: ellipsis;
356
- white-space: nowrap;
357
- flex-shrink: 0;
358
- z-index: 100;
359
- }
360
-
361
- /* Buttons */
362
- button {
363
- font-family: 'Space Grotesk', sans-serif;
364
- transition: all 0.15s;
365
- }
366
- button:hover {
367
- transform: translate(2px, 2px);
368
- }
369
- button.primary {
370
- background: var(--primary);
371
- color: #fff;
372
- border: var(--border);
373
- box-shadow: var(--shadow);
374
- font-weight: 700;
375
- text-transform: uppercase;
376
- letter-spacing: 1px;
377
- padding: 8px 16px;
378
- }
379
- button.primary:hover {
380
- box-shadow: 2px 2px 0 var(--black);
381
- }
382
- button.tonal {
383
- background: var(--bg);
384
- border: var(--border);
385
- color: var(--text);
386
- box-shadow: var(--shadow);
387
- font-weight: 700;
388
- text-transform: uppercase;
389
- letter-spacing: 1px;
390
- padding: 8px 10px 8px 10px;
391
- }
392
- button.tonal:hover {
393
- background: var(--accent);
394
- box-shadow: 2px 2px 0 var(--black);
395
- }
396
- button.danger {
397
- background: var(--danger);
398
- color: #fff;
399
- border: var(--border);
400
- box-shadow: var(--shadow);
401
- font-weight: 700;
402
- text-transform: uppercase;
403
- letter-spacing: 1px;
404
- padding: 8px 16px;
405
- }
406
- button.danger:hover {
407
- box-shadow: 2px 2px 0 var(--black);
408
- }
409
-
410
- /* New Note button */
411
- #btn-new {
412
- display: flex;
413
- align-items: center;
414
- justify-content: center;
415
- width: 38px;
416
- height: 38px;
417
- padding: 0;
418
- flex-shrink: 0;
419
- font-size: 0;
420
- background: var(--accent);
421
- border: var(--border-thin);
422
- color: var(--black);
423
- box-shadow: 2px 2px 0 var(--black);
424
- cursor: pointer;
425
- transition: all 0.15s;
426
- }
427
- #btn-new::before {
428
- content: '+';
429
- font-size: 22px;
430
- line-height: 1;
431
- font-weight: 700;
432
- color: var(--black);
433
- }
434
- #btn-new:hover {
435
- transform: translate(2px, 2px);
436
- box-shadow: 0 0 0 var(--black);
437
- background: var(--primary);
438
- color: #fff;
439
- }
440
- #btn-new:hover::before {
441
- color: #fff;
442
- }
443
- #btn-new:active {
444
- transform: translate(2px, 2px);
445
- box-shadow: 0 0 0 var(--black);
446
- }
447
- #btn-new:focus-visible {
448
- outline: 3px solid var(--primary);
449
- outline-offset: 2px;
450
- }
451
-
452
- /* Preview content */
453
- .preview h1, .preview h2, .preview h3 {
454
- margin: 16px 0 8px;
455
- font-family: 'Space Grotesk', sans-serif;
456
- text-transform: uppercase;
457
- }
458
- .preview code {
459
- background: var(--bg);
460
- padding: 2px 6px;
461
- border: var(--border-thin);
462
- font-family: 'Space Mono', monospace;
463
- }
464
- .preview pre {
465
- background: var(--black);
466
- color: #e0e0e0;
467
- padding: 16px;
468
- border: var(--border);
469
- overflow: auto;
470
- }
471
- .preview a {
472
- color: var(--primary);
473
- text-decoration: underline;
474
- text-underline-offset: 3px;
475
- }
476
-
477
- /* Muted text utility */
478
- .muted { color: var(--muted); }
479
-
480
- /* Form spacer */
481
- .form-spacer { height: 8px; }
482
-
483
- /* Modal */
484
- .modal[hidden] { display: none; }
485
- .modal {
486
- position: fixed;
487
- inset: 0;
488
- display: grid;
489
- place-items: center;
490
- z-index: 1000;
491
- padding: 16px;
492
- }
493
- .modal__backdrop {
494
- position: absolute;
495
- inset: 0;
496
- background: rgba(0, 0, 0, 0.6);
497
- }
498
- .modal__dialog {
499
- position: relative;
500
- width: min(480px, 92vw);
501
- background: var(--surface);
502
- border: var(--border);
503
- box-shadow: var(--shadow-lg);
504
- padding: 24px;
505
- max-width: 100%;
506
- box-sizing: border-box;
507
- }
508
- .modal__dialog h2 {
509
- margin: 0 0 8px 0;
510
- font-family: 'Space Grotesk', sans-serif;
511
- text-transform: uppercase;
512
- letter-spacing: 1px;
513
- }
514
- .modal__dialog input {
515
- width: 100%;
516
- padding: 10px 12px;
517
- border: var(--border-thin);
518
- background: var(--bg);
519
- color: var(--text);
520
- font-family: 'Space Grotesk', sans-serif;
521
- box-sizing: border-box;
522
- }
523
- .modal__dialog input:focus {
524
- outline: none;
525
- background: var(--accent);
526
- }
527
- .modal__actions {
528
- margin-top: 16px;
529
- display: flex;
530
- justify-content: flex-end;
531
- gap: 8px;
532
- flex-wrap: wrap;
533
- }
534
-
535
- /* Responsive: tablet */
536
- @media (max-width: 900px) {
537
- .container {
538
- grid-template-columns: 1fr;
539
- padding: 12px;
540
- gap: 12px;
541
- }
542
- }
543
-
544
- /* Responsive: mobile */
545
- @media (max-width: 600px) {
546
- .app-bar {
547
- padding: 8px 12px;
548
- gap: 8px;
549
- z-index: 1000;
550
- }
551
- .app-bar h1 {
552
- font-size: 13px;
553
- letter-spacing: 1px;
554
- }
555
- .app-bar .left {
556
- gap: 8px;
557
- }
558
- .app-bar .right {
559
- gap: 6px;
560
- }
561
- .app-bar .right button {
562
- padding: 6px 8px;
563
- font-size: 12px;
564
- }
565
- #sync-status {
566
- font-size: 10px;
567
- padding: 3px 6px;
568
- }
569
- .container {
570
- padding: 8px;
571
- gap: 8px;
572
- padding-bottom: 40px;
573
- }
574
- .sidebar {
575
- padding: 0;
576
- max-height: 35vh !important;
577
- }
578
- .editor {
579
- padding: 0;
580
- overflow-x: hidden;
581
- }
582
- .toolbar {
583
- gap: 0;
584
- flex-wrap: wrap;
585
- }
586
- .toolbar button {
587
- padding: 6px 8px;
588
- font-size: 11px;
589
- }
590
- .toolbar .spacer {
591
- display: none;
592
- }
593
- .title {
594
- font-size: 16px;
595
- padding: 8px 12px;
596
- }
597
- .content {
598
- padding: 10px;
599
- font-size: 14px;
600
- }
601
- .preview {
602
- padding: 10px;
603
- font-size: 14px;
604
- overflow-x: hidden;
605
-
606
- }
607
- .modal__dialog {
608
- width: min(360px, 95vw);
609
- padding: 16px;
610
- }
611
- .sidebar { min-height: auto; }
612
- .note-list { max-height: 50vh; overflow-y: auto; }
613
- }
614
-
615
- /* Responsive: small mobile */
616
- @media (max-width: 400px) {
617
- .sidebar {
618
- max-height: 35vh !important;
619
- }
620
- .app-bar {
621
- flex-wrap: wrap;
622
- gap: 6px;
623
- z-index: 1000;
624
- }
625
- .app-bar .left, .app-bar .right {
626
- gap: 4px;
627
- }
628
- .toolbar button {
629
- padding: 4px 6px;
630
- font-size: 10px;
631
- }
632
- .modal__dialog {
633
- width: min(320px, 98vw);
634
- padding: 12px;
635
- }
636
- .preview {
637
- overflow-y: auto;
638
- }
639
- }
640
-
641
- /* --- Task list checkbox custom style --- */
642
- .preview .task-item input.task-box {
643
- position: absolute;
644
- opacity: 0;
645
- inset: 0;
646
- width: 16px;
647
- height: 16px;
648
- margin: 0;
649
- pointer-events: none;
650
- }
651
- .preview .task-item label {
652
- position: relative;
653
- display: flex;
654
- align-items: flex-start;
655
- gap: 8px;
656
- cursor: pointer;
657
- }
658
- .preview .task-item .checkbox-ui {
659
- position: relative;
660
- width: 16px;
661
- height: 16px;
662
- flex-shrink: 0;
663
- border: 2px solid var(--black);
664
- background: #fff;
665
- transition: border-color 0.15s, background 0.15s;
666
- display: inline-block;
667
- }
668
- .preview .task-item .checkbox-ui:hover {
669
- background: var(--accent);
670
- }
671
- .preview .task-item input.task-box:focus + .checkbox-ui {
672
- outline: 3px solid var(--primary);
673
- outline-offset: 2px;
674
- }
675
- .preview .task-item input.task-box:checked + .checkbox-ui::after {
676
- content: '\2713';
677
- position: absolute;
678
- inset: 0;
679
- display: flex;
680
- align-items: center;
681
- justify-content: center;
682
- font-size: 14px;
683
- font-weight: 700;
684
- color: var(--black);
685
- line-height: 1;
686
- background: none;
687
- }
688
- .preview .task-item .task-text {
689
- line-height: 1.4;
690
- }
691
- /* --- End task list checkbox custom style --- */
1
+ /* ============================================
2
+ BRUTALIST THEME - Power DevBox Notes
3
+ ============================================ */
4
+ :root {
5
+ --bg: #f5f0eb;
6
+ --bg-elev: #fff;
7
+ --surface: #fff;
8
+ --text: #111;
9
+ --muted: #888;
10
+ --primary: #2962ff;
11
+ --accent: #4163be;
12
+ --danger: #ff3d00;
13
+ --black: #111;
14
+ --border: 3px solid #111;
15
+ --border-thin: 2px solid #111;
16
+ --radius: 0px;
17
+ --shadow: 4px 4px 0 #111;
18
+ --shadow-lg: 6px 6px 0 #111;
19
+ }
20
+
21
+ /* Prevent text overflow and improve mobile experience */
22
+ *, *::before, *::after {
23
+ box-sizing: border-box;
24
+ max-width: 100%;
25
+ }
26
+
27
+ /* Improve word wrapping for long content */
28
+ .preview, .content, .title, .note-item .title {
29
+ word-wrap: break-word;
30
+ overflow-wrap: break-word;
31
+ hyphens: auto;
32
+ }
33
+
34
+ /* Ensure inputs don't exceed container width */
35
+ input, textarea, select {
36
+ max-width: 100%;
37
+ font-size: 16px;
38
+ }
39
+
40
+ #btn-preview {
41
+ margin-right: 5px;
42
+ }
43
+
44
+ /* Specific mobile input fixes */
45
+ @media screen and (max-width: 768px) {
46
+ input[type="email"], input[type="password"], input[type="text"], textarea {
47
+ font-size: 16px;
48
+ -webkit-appearance: none;
49
+ appearance: none;
50
+ border-radius: 0;
51
+ }
52
+ }
53
+
54
+ /* Prevent code blocks from causing horizontal scroll */
55
+ .preview pre, .preview code {
56
+ overflow-x: auto;
57
+ max-width: 100%;
58
+ }
59
+
60
+ /* Ensure images in preview don't overflow */
61
+ .preview img {
62
+ max-width: 100%;
63
+ height: auto;
64
+ }
65
+
66
+ html { height: 100%; }
67
+ body {
68
+ margin: 0;
69
+ font-family: 'Space Grotesk', system-ui, sans-serif;
70
+ color: var(--text);
71
+ background: var(--bg);
72
+ overflow-x: hidden;
73
+ min-height: 100vh;
74
+ display: flex;
75
+ flex-direction: column;
76
+ }
77
+
78
+ /* App bar */
79
+ .app-bar {
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: space-between;
83
+ padding: 12px 16px;
84
+ position: sticky;
85
+ top: 0;
86
+ background: var(--bg);
87
+ border-bottom: var(--border);
88
+ min-width: 0;
89
+ z-index: 1000;
90
+ }
91
+ .app-bar h1 {
92
+ margin: 0;
93
+ font-family: 'Space Mono', monospace;
94
+ font-size: 16px;
95
+ font-weight: 700;
96
+ text-transform: uppercase;
97
+ letter-spacing: 2px;
98
+ min-width: 0;
99
+ }
100
+ .app-bar .left {
101
+ display: flex;
102
+ gap: 12px;
103
+ align-items: center;
104
+ min-width: 0;
105
+ flex: 1;
106
+ }
107
+ .app-bar .right {
108
+ display: flex;
109
+ gap: 8px;
110
+ align-items: center;
111
+ flex-shrink: 0;
112
+ }
113
+ .app-bar-logo {
114
+ height: 20px;
115
+ }
116
+ #sync-status {
117
+ font-family: 'Space Mono', monospace;
118
+ font-size: 11px;
119
+ color: var(--muted);
120
+ padding: 4px 10px;
121
+ background: var(--bg);
122
+ border: var(--border-thin);
123
+ white-space: nowrap;
124
+ text-transform: uppercase;
125
+ letter-spacing: 1px;
126
+ }
127
+
128
+ /* Container layout */
129
+ .container {
130
+ display: grid;
131
+ grid-template-columns: 300px 1fr;
132
+ gap: 16px;
133
+ padding: 16px;
134
+ max-width: 960px;
135
+ margin: 0 auto;
136
+ min-width: 0;
137
+ width: 100%;
138
+ flex: 1;
139
+ }
140
+
141
+ /* Sidebar */
142
+ .sidebar {
143
+ background: var(--surface);
144
+ border: var(--border);
145
+ box-shadow: var(--shadow);
146
+ padding: 0;
147
+ display: flex;
148
+ flex-direction: column;
149
+ min-height: 70vh;
150
+ min-width: 0;
151
+ }
152
+ .search {
153
+ padding: 12px;
154
+ border-bottom: var(--border-thin);
155
+ display: flex;
156
+ gap: 8px;
157
+ align-items: center;
158
+ }
159
+ .search input {
160
+ flex: 1;
161
+ padding: 10px 12px;
162
+ border: var(--border-thin);
163
+ background: var(--bg);
164
+ color: var(--text);
165
+ font-family: 'Space Grotesk', sans-serif;
166
+ font-size: 14px;
167
+ min-width: 0;
168
+ }
169
+ .search input:focus {
170
+ outline: none;
171
+ background: var(--accent);
172
+ }
173
+ .tags {
174
+ display: flex;
175
+ flex-wrap: wrap;
176
+ gap: 6px;
177
+ padding: 8px 12px;
178
+ }
179
+ .tag {
180
+ background: var(--bg);
181
+ border: var(--border-thin);
182
+ color: var(--text);
183
+ padding: 4px 10px;
184
+ font-size: 11px;
185
+ font-family: 'Space Mono', monospace;
186
+ text-transform: uppercase;
187
+ letter-spacing: 1px;
188
+ cursor: pointer;
189
+ white-space: nowrap;
190
+ transition: background 0.15s;
191
+ }
192
+ .tag:hover {
193
+ background: var(--accent);
194
+ }
195
+
196
+ .note-list {
197
+ margin: 0;
198
+ padding: 0;
199
+ list-style: none;
200
+ display: flex;
201
+ flex-direction: column;
202
+ gap: 0;
203
+ flex: 1;
204
+ overflow-y: auto;
205
+ }
206
+ .note-item {
207
+ display: flex;
208
+ align-items: center;
209
+ gap: 8px;
210
+ padding: 12px 12px;
211
+ background: var(--surface);
212
+ border-bottom: var(--border-thin);
213
+ cursor: grab;
214
+ min-width: 0;
215
+ font-weight: 700;
216
+ transition: background 0.15s;
217
+ }
218
+ .note-item:hover {
219
+ background: var(--accent);
220
+ }
221
+ .note-item .note-del {
222
+ margin-left: auto;
223
+ background: transparent;
224
+ border: var(--border-thin);
225
+ color: var(--text);
226
+ width: 24px;
227
+ height: 24px;
228
+ cursor: pointer;
229
+ font-size: 16px;
230
+ line-height: 1;
231
+ display: flex;
232
+ align-items: center;
233
+ justify-content: center;
234
+ transition: all 0.15s;
235
+ }
236
+ .note-item .note-del:hover {
237
+ background: var(--danger);
238
+ color: #fff;
239
+ border-color: var(--danger);
240
+ }
241
+ .note-item .note-del:active {
242
+ transform: scale(0.9);
243
+ }
244
+ .note-item.dragging {
245
+ opacity: 0.6;
246
+ }
247
+ .note-item .title {
248
+ flex: 1;
249
+ overflow: hidden;
250
+ text-overflow: ellipsis;
251
+ white-space: nowrap;
252
+ min-width: 0;
253
+ }
254
+
255
+ /* Editor */
256
+ .editor {
257
+ background: var(--surface);
258
+ border: var(--border);
259
+ box-shadow: var(--shadow);
260
+ padding: 0;
261
+ display: flex;
262
+ flex-direction: column;
263
+ min-height: 70vh;
264
+ min-width: 0;
265
+ }
266
+ .toolbar {
267
+ display: flex;
268
+ gap: 0;
269
+ align-items: center;
270
+ flex-wrap: wrap;
271
+ border-bottom: var(--border);
272
+ padding: 0;
273
+ }
274
+ .toolbar button {
275
+ background: var(--surface);
276
+ color: var(--text);
277
+ border: none;
278
+ border-right: var(--border-thin);
279
+ padding: 10px 12px;
280
+ cursor: pointer;
281
+ white-space: nowrap;
282
+ font-family: 'Space Mono', monospace;
283
+ font-size: 13px;
284
+ font-weight: 700;
285
+ text-transform: uppercase;
286
+ transition: background 0.15s;
287
+ }
288
+ .toolbar button:hover {
289
+ background: var(--accent);
290
+ }
291
+ .toolbar .spacer {
292
+ flex: 1;
293
+ min-width: 8px;
294
+ border: none;
295
+ }
296
+ .title {
297
+ font-family: 'Space Grotesk', sans-serif;
298
+ font-size: 20px;
299
+ font-weight: 700;
300
+ text-transform: uppercase;
301
+ padding: 12px 16px;
302
+ border: none;
303
+ border-bottom: var(--border);
304
+ background: var(--surface);
305
+ color: var(--text);
306
+ width: 100%;
307
+ min-width: 0;
308
+ }
309
+ .title:focus {
310
+ outline: none;
311
+ background: #fffde7;
312
+ }
313
+ .content {
314
+ min-height: 280px;
315
+ resize: vertical;
316
+ padding: 16px;
317
+ border: none;
318
+ background: var(--bg);
319
+ color: var(--text);
320
+ line-height: 1.6;
321
+ width: 100%;
322
+ min-width: 0;
323
+ font-family: 'Space Grotesk', sans-serif;
324
+ font-size: 15px;
325
+ flex: 1;
326
+ }
327
+ .content:focus {
328
+ outline: none;
329
+ background: #fff;
330
+ }
331
+ .preview {
332
+ min-height: 280px;
333
+ padding: 16px;
334
+ border-top: var(--border);
335
+ background: #fff;
336
+ width: 100%;
337
+ overflow-wrap: break-word;
338
+ word-wrap: break-word;
339
+ overflow-x: hidden;
340
+ flex: 1;
341
+ overflow-y: auto;
342
+ }
343
+ .status-bar {
344
+ position: sticky;
345
+ bottom: 0;
346
+ background: var(--black);
347
+ border-top: var(--border);
348
+ padding: 8px 16px;
349
+ color: #999;
350
+ font-family: 'Space Mono', monospace;
351
+ font-size: 12px;
352
+ text-transform: uppercase;
353
+ letter-spacing: 2px;
354
+ overflow: hidden;
355
+ text-overflow: ellipsis;
356
+ white-space: nowrap;
357
+ flex-shrink: 0;
358
+ z-index: 100;
359
+ }
360
+
361
+ /* Buttons */
362
+ button {
363
+ font-family: 'Space Grotesk', sans-serif;
364
+ transition: all 0.15s;
365
+ }
366
+ button:hover {
367
+ transform: translate(2px, 2px);
368
+ }
369
+ button.primary {
370
+ background: var(--primary);
371
+ color: #fff;
372
+ border: var(--border);
373
+ box-shadow: var(--shadow);
374
+ font-weight: 700;
375
+ text-transform: uppercase;
376
+ letter-spacing: 1px;
377
+ padding: 8px 16px;
378
+ }
379
+ button.primary:hover {
380
+ box-shadow: 2px 2px 0 var(--black);
381
+ }
382
+ button.tonal {
383
+ background: var(--bg);
384
+ border: var(--border);
385
+ color: var(--text);
386
+ box-shadow: var(--shadow);
387
+ font-weight: 700;
388
+ text-transform: uppercase;
389
+ letter-spacing: 1px;
390
+ padding: 8px 10px 8px 10px;
391
+ }
392
+ button.tonal:hover {
393
+ background: var(--accent);
394
+ box-shadow: 2px 2px 0 var(--black);
395
+ }
396
+ button.danger {
397
+ background: var(--danger);
398
+ color: #fff;
399
+ border: var(--border);
400
+ box-shadow: var(--shadow);
401
+ font-weight: 700;
402
+ text-transform: uppercase;
403
+ letter-spacing: 1px;
404
+ padding: 8px 16px;
405
+ }
406
+ button.danger:hover {
407
+ box-shadow: 2px 2px 0 var(--black);
408
+ }
409
+
410
+ /* New Note button */
411
+ #btn-new {
412
+ display: flex;
413
+ align-items: center;
414
+ justify-content: center;
415
+ width: 38px;
416
+ height: 38px;
417
+ padding: 0;
418
+ flex-shrink: 0;
419
+ font-size: 0;
420
+ background: var(--accent);
421
+ border: var(--border-thin);
422
+ color: var(--black);
423
+ box-shadow: 2px 2px 0 var(--black);
424
+ cursor: pointer;
425
+ transition: all 0.15s;
426
+ }
427
+ #btn-new::before {
428
+ content: '+';
429
+ font-size: 22px;
430
+ line-height: 1;
431
+ font-weight: 700;
432
+ color: var(--black);
433
+ }
434
+ #btn-new:hover {
435
+ transform: translate(2px, 2px);
436
+ box-shadow: 0 0 0 var(--black);
437
+ background: var(--primary);
438
+ color: #fff;
439
+ }
440
+ #btn-new:hover::before {
441
+ color: #fff;
442
+ }
443
+ #btn-new:active {
444
+ transform: translate(2px, 2px);
445
+ box-shadow: 0 0 0 var(--black);
446
+ }
447
+ #btn-new:focus-visible {
448
+ outline: 3px solid var(--primary);
449
+ outline-offset: 2px;
450
+ }
451
+
452
+ /* Preview content */
453
+ .preview h1, .preview h2, .preview h3 {
454
+ margin: 16px 0 8px;
455
+ font-family: 'Space Grotesk', sans-serif;
456
+ text-transform: uppercase;
457
+ }
458
+ .preview code {
459
+ background: var(--bg);
460
+ padding: 2px 6px;
461
+ border: var(--border-thin);
462
+ font-family: 'Space Mono', monospace;
463
+ }
464
+ .preview pre {
465
+ background: var(--black);
466
+ color: #e0e0e0;
467
+ padding: 16px;
468
+ border: var(--border);
469
+ overflow: auto;
470
+ }
471
+ .preview a {
472
+ color: var(--primary);
473
+ text-decoration: underline;
474
+ text-underline-offset: 3px;
475
+ }
476
+
477
+ /* Muted text utility */
478
+ .muted { color: var(--muted); }
479
+
480
+ /* Form spacer */
481
+ .form-spacer { height: 8px; }
482
+
483
+ /* Modal */
484
+ .modal[hidden] { display: none; }
485
+ .modal {
486
+ position: fixed;
487
+ inset: 0;
488
+ display: grid;
489
+ place-items: center;
490
+ z-index: 1000;
491
+ padding: 16px;
492
+ }
493
+ .modal__backdrop {
494
+ position: absolute;
495
+ inset: 0;
496
+ background: rgba(0, 0, 0, 0.6);
497
+ }
498
+ .modal__dialog {
499
+ position: relative;
500
+ width: min(480px, 92vw);
501
+ background: var(--surface);
502
+ border: var(--border);
503
+ box-shadow: var(--shadow-lg);
504
+ padding: 24px;
505
+ max-width: 100%;
506
+ box-sizing: border-box;
507
+ }
508
+ .modal__dialog h2 {
509
+ margin: 0 0 8px 0;
510
+ font-family: 'Space Grotesk', sans-serif;
511
+ text-transform: uppercase;
512
+ letter-spacing: 1px;
513
+ }
514
+ .modal__dialog input {
515
+ width: 100%;
516
+ padding: 10px 12px;
517
+ border: var(--border-thin);
518
+ background: var(--bg);
519
+ color: var(--text);
520
+ font-family: 'Space Grotesk', sans-serif;
521
+ box-sizing: border-box;
522
+ }
523
+ .modal__dialog input:focus {
524
+ outline: none;
525
+ background: var(--accent);
526
+ }
527
+ .modal__actions {
528
+ margin-top: 16px;
529
+ display: flex;
530
+ justify-content: flex-end;
531
+ gap: 8px;
532
+ flex-wrap: wrap;
533
+ }
534
+
535
+ /* Responsive: tablet */
536
+ @media (max-width: 900px) {
537
+ .container {
538
+ grid-template-columns: 1fr;
539
+ padding: 12px;
540
+ gap: 12px;
541
+ }
542
+ }
543
+
544
+ /* Responsive: mobile */
545
+ @media (max-width: 600px) {
546
+ .app-bar {
547
+ padding: 8px 12px;
548
+ gap: 8px;
549
+ z-index: 1000;
550
+ }
551
+ .app-bar h1 {
552
+ font-size: 13px;
553
+ letter-spacing: 1px;
554
+ }
555
+ .app-bar .left {
556
+ gap: 8px;
557
+ }
558
+ .app-bar .right {
559
+ gap: 6px;
560
+ }
561
+ .app-bar .right button {
562
+ padding: 6px 8px;
563
+ font-size: 12px;
564
+ }
565
+ #sync-status {
566
+ font-size: 10px;
567
+ padding: 3px 6px;
568
+ }
569
+ .container {
570
+ padding: 8px;
571
+ gap: 8px;
572
+ padding-bottom: 40px;
573
+ }
574
+ .sidebar {
575
+ padding: 0;
576
+ max-height: 35vh !important;
577
+ }
578
+ .editor {
579
+ padding: 0;
580
+ overflow-x: hidden;
581
+ }
582
+ .toolbar {
583
+ gap: 0;
584
+ flex-wrap: wrap;
585
+ }
586
+ .toolbar button {
587
+ padding: 6px 8px;
588
+ font-size: 11px;
589
+ }
590
+ .toolbar .spacer {
591
+ display: none;
592
+ }
593
+ .title {
594
+ font-size: 16px;
595
+ padding: 8px 12px;
596
+ }
597
+ .content {
598
+ padding: 10px;
599
+ font-size: 14px;
600
+ }
601
+ .preview {
602
+ padding: 10px;
603
+ font-size: 14px;
604
+ overflow-x: hidden;
605
+
606
+ }
607
+ .modal__dialog {
608
+ width: min(360px, 95vw);
609
+ padding: 16px;
610
+ }
611
+ .sidebar { min-height: auto; }
612
+ .note-list { max-height: 50vh; overflow-y: auto; }
613
+ }
614
+
615
+ /* Responsive: small mobile */
616
+ @media (max-width: 400px) {
617
+ .sidebar {
618
+ max-height: 35vh !important;
619
+ }
620
+ .app-bar {
621
+ flex-wrap: wrap;
622
+ gap: 6px;
623
+ z-index: 1000;
624
+ }
625
+ .app-bar .left, .app-bar .right {
626
+ gap: 4px;
627
+ }
628
+ .toolbar button {
629
+ padding: 4px 6px;
630
+ font-size: 10px;
631
+ }
632
+ .modal__dialog {
633
+ width: min(320px, 98vw);
634
+ padding: 12px;
635
+ }
636
+ .preview {
637
+ overflow-y: auto;
638
+ }
639
+ }
640
+
641
+ /* --- Task list checkbox custom style --- */
642
+ .preview .task-item input.task-box {
643
+ position: absolute;
644
+ opacity: 0;
645
+ inset: 0;
646
+ width: 16px;
647
+ height: 16px;
648
+ margin: 0;
649
+ pointer-events: none;
650
+ }
651
+ .preview .task-item label {
652
+ position: relative;
653
+ display: flex;
654
+ align-items: flex-start;
655
+ gap: 8px;
656
+ cursor: pointer;
657
+ }
658
+ .preview .task-item .checkbox-ui {
659
+ position: relative;
660
+ width: 16px;
661
+ height: 16px;
662
+ flex-shrink: 0;
663
+ border: 2px solid var(--black);
664
+ background: #fff;
665
+ transition: border-color 0.15s, background 0.15s;
666
+ display: inline-block;
667
+ }
668
+ .preview .task-item .checkbox-ui:hover {
669
+ background: var(--accent);
670
+ }
671
+ .preview .task-item input.task-box:focus + .checkbox-ui {
672
+ outline: 3px solid var(--primary);
673
+ outline-offset: 2px;
674
+ }
675
+ .preview .task-item input.task-box:checked + .checkbox-ui::after {
676
+ content: '\2713';
677
+ position: absolute;
678
+ inset: 0;
679
+ display: flex;
680
+ align-items: center;
681
+ justify-content: center;
682
+ font-size: 14px;
683
+ font-weight: 700;
684
+ color: var(--black);
685
+ line-height: 1;
686
+ background: none;
687
+ }
688
+ .preview .task-item .task-text {
689
+ line-height: 1.4;
690
+ }
691
+ /* --- End task list checkbox custom style --- */