dictation4me 0.3.0__py3-none-any.whl

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.
@@ -0,0 +1,3 @@
1
+ """Dictation4me — local-first native notebook and dictation assistant."""
2
+ __version__ = "0.3.0"
3
+ APP_ID = "org.bigbatmanorg.dictation4me"
@@ -0,0 +1,4 @@
1
+ from .cli import main
2
+
3
+ if __name__ == "__main__":
4
+ raise SystemExit(main())
@@ -0,0 +1,18 @@
1
+ :root { color-scheme: dark; font-family: Inter, "Noto Sans", "Segoe UI", system-ui, sans-serif; }
2
+ html, body { margin: 0; height: 100%; background: #171a22; color: #d6dbe6; overflow: hidden; }
3
+ .live { height: 100%; box-sizing: border-box; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px;
4
+ border: 1px solid rgba(157, 183, 255, .26); border-left: 2px solid #ff7b7b; }
5
+ .bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
6
+ .bar strong { color: #ffd3d3; font-weight: 600; }
7
+ .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff7b7b; animation: pulse 1.2s ease-in-out infinite; }
8
+ .hint { margin-left: auto; color: #7d879b; font-size: 11.5px; }
9
+ .text { margin: 0; flex: 1; overflow: hidden; font-size: 16px; line-height: 1.45;
10
+ display: flex; flex-direction: column; justify-content: flex-end; }
11
+ .placeholder { color: #7d879b; font-style: italic; }
12
+ .live.state-busy { border-left-color: #7cc4ff; }
13
+ .live.state-busy .dot { background: #7cc4ff; }
14
+ .live.state-busy .bar strong { color: #7cc4ff; }
15
+ .live.state-error { border-left-color: #ffb86b; }
16
+ .live.state-error .dot { background: #ffb86b; animation: none; }
17
+ @keyframes pulse { 50% { opacity: .3; } }
18
+ @media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Dictation4me — live</title>
6
+ <link rel="stylesheet" href="live.css">
7
+ </head>
8
+ <body data-nativehtmlkit-drag>
9
+ <main id="live" class="live state-recording" aria-live="polite">
10
+ <header class="bar">
11
+ <i class="dot" aria-hidden="true"></i>
12
+ <strong id="live-state">Listening</strong>
13
+ <span id="live-hint" class="hint">Press Ctrl+Alt+D to stop</span>
14
+ </header>
15
+ <p id="live-text" class="text placeholder">Start speaking — your words appear here.</p>
16
+ </main>
17
+ </body>
18
+ </html>
@@ -0,0 +1,322 @@
1
+ /* Dictation4me — docs-style, flat and compact (NativeHTMLKit Core CSS profile, no JavaScript).
2
+ Palette and typography follow nativehtmlkit.github.io: neutral near-black, soft text,
3
+ colour-coded structure (blue titles, teal sections, amber emphasis), hairlines not boxes. */
4
+ :root {
5
+ --bg: #171a22;
6
+ --bar: #13151c;
7
+ --raise: #1d212b;
8
+ --field: #12141b;
9
+ --hair: rgba(157, 183, 255, .13);
10
+ --hair-strong: rgba(157, 183, 255, .26);
11
+ --text: #d6dbe6;
12
+ --text-2: #aab3c5;
13
+ --text-3: #7d879b;
14
+ --h1: #9db7ff;
15
+ --h2: #7fd3c7;
16
+ --h3: #c3a6ff;
17
+ --link: #7cc4ff;
18
+ --amber: #ffb86b;
19
+ --strong: #ffc98a;
20
+ --green: #a8e6a1;
21
+ --pink: #ffa3c4;
22
+ --red: #ff7b7b;
23
+ --red-soft: rgba(255, 123, 123, .12);
24
+ --blue-soft: rgba(124, 196, 255, .12);
25
+ --green-soft: rgba(168, 230, 161, .12);
26
+ --amber-soft: rgba(255, 184, 107, .12);
27
+ color-scheme: dark;
28
+ font-family: Inter, "Noto Sans", "Segoe UI", system-ui, sans-serif;
29
+ font-size: 13px;
30
+ line-height: 1.5;
31
+ }
32
+ * { box-sizing: border-box; }
33
+ html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
34
+ .hidden { display: none !important; }
35
+ .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
36
+ .muted { color: var(--text-3); font-weight: 400; }
37
+ .small { font-size: 11.5px; }
38
+ .grow { flex: 1; }
39
+ p { margin: 0; }
40
+ h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.005em; }
41
+ h1 { color: var(--h1); font-size: 21px; font-weight: 700; }
42
+ h2 { color: var(--h2); font-size: 15px; padding-bottom: 4px; border-bottom: 1px solid rgba(127, 211, 199, .22); }
43
+ h3 { color: var(--h3); font-size: 13.5px; }
44
+ h4 { color: var(--h2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
45
+ strong { color: var(--strong); font-weight: 600; }
46
+ em { color: var(--green); font-style: normal; }
47
+ kbd, code { font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace; font-size: 11px; }
48
+ kbd { padding: 1px 5px; border-radius: 4px; border: 1px solid var(--hair-strong); background: var(--raise);
49
+ color: var(--text-2); white-space: nowrap; }
50
+ code { color: var(--pink); background: #262038; border-radius: 3px; padding: 0 4px; }
51
+ svg { width: 16px; height: 16px; flex: none; }
52
+
53
+ /* ── Controls: small, flat, outlined ─────────────────────── */
54
+ button, input, select, textarea { font: inherit; color: inherit; }
55
+ button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px;
56
+ padding: 0 10px; border-radius: 6px; border: 1px solid var(--hair-strong); background: transparent;
57
+ color: var(--text); cursor: pointer; white-space: nowrap; transition: border-color .12s, color .12s, background .12s; }
58
+ button:hover { border-color: var(--amber); color: #fff; }
59
+ button.primary { border-color: rgba(124, 196, 255, .55); background: var(--blue-soft); color: var(--link); font-weight: 600; }
60
+ button.primary:hover { border-color: var(--amber); color: var(--amber); }
61
+ button.link { height: auto; padding: 0; border: 0; background: none; color: var(--link);
62
+ border-bottom: 1px dotted rgba(124, 196, 255, .45); border-radius: 0; }
63
+ button.link:hover { color: var(--amber); border-bottom-color: var(--amber); }
64
+ button.link.active { color: var(--text); border-bottom: 1px solid var(--h2); }
65
+ button.danger, .item.danger, button.link.danger { color: var(--red); }
66
+ button.danger-solid { border-color: var(--red); background: var(--red-soft); color: var(--red); }
67
+ button.icon { width: 28px; padding: 0; }
68
+ button.icon.primary { color: var(--link); }
69
+ button[disabled] { opacity: .4; cursor: default; }
70
+ button[disabled]:hover { border-color: var(--hair-strong); color: inherit; }
71
+ :focus-visible { outline: 1.5px solid var(--amber); outline-offset: 1px; }
72
+
73
+ input[type=text], input[type=url], input[type=search], input[type=password], select, textarea {
74
+ width: 100%; height: 28px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--hair-strong);
75
+ background: var(--field); outline: none; }
76
+ textarea { height: auto; padding: 7px 9px; line-height: 1.55; resize: vertical; }
77
+ input:focus, select:focus, textarea:focus { border-color: var(--link); }
78
+ input::placeholder, textarea::placeholder { color: #5f687a; }
79
+ label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--text-2); }
80
+ label.check { flex-direction: row; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--text); cursor: pointer; }
81
+ label.check input { margin: 2px 0 0; accent-color: var(--link); }
82
+ .row { display: flex; gap: 6px; align-items: center; }
83
+ .row > select, .row > input { flex: 1; min-width: 0; }
84
+ .row.narrow { max-width: 460px; }
85
+ .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
86
+ .actions.end { justify-content: flex-end; }
87
+ .hint { margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
88
+ .hint em { color: var(--text-2); }
89
+
90
+ /* ── Shell: top bar with tabs (docs header) ───────────────── */
91
+ .app { display: grid; grid-template-rows: 44px minmax(0, 1fr) 22px; height: 100vh; min-height: 440px; overflow: hidden; }
92
+ .topbar { display: flex; align-items: stretch; gap: 22px; padding: 0 14px; background: var(--bar); border-bottom: 1px solid var(--hair); }
93
+ .brand { display: flex; align-items: center; gap: 7px; font-weight: 650; font-size: 13.5px; }
94
+ .brand .logo { width: 18px; height: 18px; color: var(--h1); }
95
+ .tabs { display: flex; align-items: stretch; gap: 2px; }
96
+ .tab { height: auto; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0 10px;
97
+ color: var(--text-3); font-weight: 500; }
98
+ .tab:hover { color: var(--text); border-color: transparent; border-bottom-color: var(--hair-strong); }
99
+ .tab.active { color: var(--h1); border-bottom-color: var(--h1); }
100
+ .badge { margin-left: 5px; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--amber-soft);
101
+ color: var(--amber); font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; }
102
+ .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
103
+ .search-pill { height: 26px; gap: 8px; padding: 0 6px 0 9px; background: var(--raise); border-color: transparent; color: var(--text-3); }
104
+ .search-pill kbd { font-size: 10px; }
105
+ .dict-chip { height: 26px; gap: 7px; padding: 0 6px 0 9px; border-radius: 13px; font-weight: 600; }
106
+ .dict-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
107
+ .dict-chip kbd { font-size: 10px; }
108
+ .dict-chip.state-recording { border-color: rgba(255, 123, 123, .6); background: var(--red-soft); color: #ffd3d3; }
109
+ .dict-chip.state-recording .dot { background: var(--red); animation: pulse 1.2s ease-in-out infinite; }
110
+ .dict-chip.state-busy .dot { background: var(--link); animation: pulse 1s ease-in-out infinite; }
111
+ .dict-chip.state-ready { border-color: rgba(168, 230, 161, .55); background: var(--green-soft); }
112
+ .dict-chip.state-error { border-color: rgba(255, 184, 107, .6); background: var(--amber-soft); }
113
+ .dict-chip.state-error .dot { background: var(--amber); }
114
+ .dict-chip.state-offline .dot { background: var(--text-3); }
115
+ @keyframes pulse { 50% { opacity: .3; } }
116
+ @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
117
+ .statusbar { display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 11px; color: var(--text-3);
118
+ background: var(--bar); border-top: 1px solid var(--hair); }
119
+ .service-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
120
+ .app:has(.dict-chip.state-offline) .service-dot { background: var(--red); }
121
+ .main { min-height: 0; position: relative; }
122
+ .screen { height: 100%; min-height: 0; }
123
+
124
+ /* ── Notes: list · document · rail ────────────────────────── */
125
+ .notes { display: grid; grid-template-columns: 272px minmax(0, 1fr) auto; }
126
+ .list-pane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--hair); }
127
+ .pane-head { display: flex; gap: 6px; padding: 10px 10px 6px; }
128
+ .search { position: relative; flex: 1; }
129
+ .search svg { position: absolute; left: 8px; top: 6px; width: 15px; height: 15px; color: var(--text-3); }
130
+ .search input { padding-left: 28px; }
131
+ .filters { display: flex; align-items: center; gap: 8px; padding: 2px 10px 8px; border-bottom: 1px solid var(--hair); min-width: 0; }
132
+ .links { display: flex; gap: 10px; font-size: 12px; }
133
+ .links .link { color: var(--text-3); border-bottom-color: transparent; }
134
+ .links .link.active { color: var(--h2); border-bottom: 1px solid var(--h2); }
135
+ .folder { margin-left: auto; display: flex; gap: 4px; align-items: center; }
136
+ .folder select { width: 92px; height: 24px; font-size: 11.5px; padding: 0 4px; }
137
+ .folder .icon { width: 24px; height: 24px; }
138
+ .note-items { flex: 1; min-height: 0; overflow-y: auto; }
139
+ .note-entry { display: block; width: 100%; height: auto; padding: 8px 12px 8px 14px; text-align: left; border: 0;
140
+ border-bottom: 1px solid var(--hair); border-left: 2px solid transparent; border-radius: 0;
141
+ color: var(--text); font-weight: 400; white-space: normal; }
142
+ .note-entry:hover { background: rgba(157, 183, 255, .04); border-color: var(--hair); border-left-color: var(--hair-strong); color: var(--text); }
143
+ .note-entry.selected { background: rgba(157, 183, 255, .07); border-left-color: var(--h1); }
144
+ .entry-title { display: flex; gap: 5px; align-items: baseline; font-weight: 600; font-size: 13px;
145
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
146
+ .note-entry.selected .entry-title { color: var(--h1); }
147
+ .entry-title .pin { color: var(--amber); font-size: 10px; }
148
+ .entry-excerpt { margin-top: 1px; color: var(--text-3); font-size: 12px; line-height: 1.4;
149
+ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
150
+ .entry-meta { margin-top: 2px; font-size: 10.5px; color: #626b7e; }
151
+ .empty-message, .empty-row { padding: 14px; color: var(--text-3); font-size: 12px; }
152
+ .pane-foot { display: flex; justify-content: space-between; align-items: center; padding: 5px 12px; font-size: 11px; color: var(--text-3); border-top: 1px solid var(--hair); }
153
+ .pager { display: flex; gap: 8px; align-items: center; }
154
+
155
+ .doc-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; container-type: inline-size; container-name: doc; }
156
+ .banner { display: flex; gap: 12px; align-items: center; padding: 6px 18px; font-size: 12px; background: var(--amber-soft); color: var(--amber); }
157
+ .doc-bar { position: relative; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 22px; border-bottom: 1px solid var(--hair); }
158
+ .crumb { flex: 1; min-width: 0; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
159
+ .toolbar { display: flex; gap: 2px; align-items: center; }
160
+ .tool { height: 26px; border-color: transparent; color: var(--text-2); font-weight: 500; }
161
+ .tool:hover { border-color: var(--hair-strong); }
162
+ .tool.icon { width: 26px; padding: 0; }
163
+ .tool.active { color: var(--h1); border-color: rgba(157, 183, 255, .35); }
164
+ .tool.pinned { color: var(--amber); }
165
+ .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
166
+ .stop-sq { width: 8px; height: 8px; border-radius: 1px; background: currentColor; }
167
+ .tool.rec.on { color: #ffd3d3; border-color: rgba(255, 123, 123, .5); background: var(--red-soft); }
168
+ .doc-scroll { flex: 1; min-height: 0; overflow-y: auto; }
169
+ .doc { max-width: 720px; margin: 0 auto; padding: 18px 28px 16px; display: flex; flex-direction: column; min-height: 100%; }
170
+ .title { height: auto !important; padding: 0 !important; border: 0 !important; background: none !important;
171
+ color: var(--h1); font-size: 22px; font-weight: 700; }
172
+ .meta { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(127, 211, 199, .18); }
173
+ .meta-select { width: auto !important; height: 22px !important; padding: 0 2px !important; border: 0 !important; background: none !important;
174
+ color: var(--h2); font-size: 12px; }
175
+ .meta-input { height: 22px !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 12px; color: var(--text-2); }
176
+ .sep { color: var(--text-3); }
177
+ #note-editor { flex: 1; min-height: 240px; padding: 0; border: 0; background: none; resize: none;
178
+ font-size: 14.5px; line-height: 1.7; }
179
+ .markdown { flex: 1; font-size: 14.5px; line-height: 1.7; }
180
+ .markdown h1 { font-size: 20px; margin: 14px 0 6px; }
181
+ .markdown h2 { margin: 16px 0 6px; }
182
+ .markdown h3 { margin: 12px 0 4px; }
183
+ .markdown p, .markdown ul, .markdown ol, .markdown blockquote, .markdown pre { margin: 0 0 10px; }
184
+ .markdown a { color: var(--link); border-bottom: 1px dotted rgba(124, 196, 255, .45); text-decoration: none; }
185
+ .markdown blockquote { padding-left: 10px; border-left: 2px solid var(--hair-strong); color: var(--text-2); }
186
+ .markdown pre { padding: 8px 10px; background: #1b2030; border-radius: 6px; overflow-x: auto; }
187
+ .live-strip { margin-top: 10px; padding: 8px 12px; border-left: 2px solid var(--red); background: var(--red-soft); border-radius: 0 6px 6px 0; }
188
+ .live-strip.busy { border-left-color: var(--link); background: var(--blue-soft); }
189
+ .live-head { display: flex; align-items: center; gap: 7px; font-size: 11.5px; }
190
+ .live-head strong { color: #ffd3d3; }
191
+ .live-strip.busy .live-head strong { color: var(--link); }
192
+ .live-head .muted { margin-left: auto; }
193
+ .live-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.2s ease-in-out infinite; }
194
+ .live-strip.busy .dot { background: var(--link); }
195
+ .live-text { margin-top: 4px; font-size: 14.5px; line-height: 1.6; }
196
+ .live-text.placeholder { color: var(--text-3); font-style: italic; }
197
+ .fold { margin-top: 10px; }
198
+ .fold summary { cursor: pointer; font-size: 12px; color: var(--h2); font-weight: 600; padding: 3px 0; }
199
+ .count { margin-left: 4px; font-weight: 400; color: var(--text-3); }
200
+ .rows { display: flex; flex-direction: column; }
201
+ .compact-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--hair); font-size: 12px; }
202
+ .compact-row > span { flex: 1; min-width: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
203
+ .compact-row button { height: 22px; padding: 0 7px; font-size: 11.5px; }
204
+ .compact-row button.ghost { border-color: transparent; color: var(--link); }
205
+ .doc-foot { display: flex; justify-content: space-between; padding: 4px 22px; font-size: 11px; color: var(--text-3); border-top: 1px solid var(--hair); }
206
+ #save-status.error { color: var(--red); font-weight: 600; }
207
+
208
+ .rail { display: none; width: 320px; min-height: 0; overflow-y: auto; padding: 10px 14px; flex-direction: column; gap: 8px; border-left: 1px solid var(--hair); }
209
+ .rail.drawer-open { display: flex; }
210
+ .rail-head { display: flex; align-items: center; justify-content: space-between; }
211
+ .rail-head h3 { color: var(--h2); }
212
+ .rail h4 { margin-top: 8px; }
213
+ .proposal { min-height: 130px; font-size: 12.5px; }
214
+ .rail .actions { margin-top: 0; }
215
+
216
+ @container doc (max-width: 560px) {
217
+ .crumb { display: none; }
218
+ .doc { padding: 14px 16px; }
219
+ }
220
+
221
+ /* Popovers / menus / dialog / toast */
222
+ .popover { margin: 0; padding: 8px; width: 230px; border: 1px solid var(--hair-strong); border-radius: 8px; background: var(--raise); color: var(--text);
223
+ box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
224
+ .popover label { margin-bottom: 4px; }
225
+ #btn-folder-menu { anchor-name: --folder; }
226
+ #folder-popover { position-anchor: --folder; top: anchor(bottom); right: anchor(right); left: auto; margin-top: 4px; }
227
+ #btn-more { anchor-name: --more; }
228
+ #note-menu { position-anchor: --more; top: anchor(bottom); right: anchor(right); left: auto; margin-top: 4px; width: 200px; padding: 4px; }
229
+ .item { width: 100%; justify-content: space-between; height: 28px; border: 0; color: var(--text); font-weight: 400; }
230
+ .item:hover { background: var(--blue-soft); color: #fff; }
231
+ .item kbd { font-size: 9.5px; }
232
+ .menu hr { border: 0; border-top: 1px solid var(--hair); margin: 3px 0; }
233
+ dialog { width: 380px; max-width: 90vw; padding: 16px 18px; border: 1px solid var(--hair-strong); border-radius: 10px; background: var(--raise); color: var(--text); }
234
+ dialog::backdrop { background: rgba(5, 7, 12, .6); }
235
+ dialog p { margin-top: 6px; color: var(--text-2); }
236
+ dialog .actions { margin-top: 14px; }
237
+ .toast { position: fixed; right: 14px; bottom: 30px; z-index: 10; max-width: 420px; padding: 7px 12px; font-size: 12px;
238
+ border: 1px solid var(--hair-strong); border-left: 2px solid var(--h2); border-radius: 6px; background: var(--raise);
239
+ box-shadow: 0 8px 24px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; pointer-events: none; }
240
+ .toast.show { opacity: 1; transform: none; }
241
+ .toast.error { border-left-color: var(--red); }
242
+
243
+ /* ── Article pages (Dictation, Recovery, Settings) ───────── */
244
+ .page { overflow-y: auto; }
245
+ .article { max-width: 760px; margin: 0 auto; padding: 20px 28px 32px; }
246
+ .article h1 { display: flex; align-items: baseline; gap: 12px; }
247
+ .article h2 { margin-top: 20px; margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
248
+ .article h2 .small { margin-left: auto; font-weight: 400; color: var(--text-3); }
249
+ .article h3 { margin-top: 16px; margin-bottom: 6px; }
250
+ .lead { margin-top: 6px; color: var(--text-2); }
251
+ .lead kbd { font-size: 10.5px; }
252
+
253
+ .status-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 10px 8px 12px;
254
+ border: 1px solid var(--hair); border-left: 2px solid var(--green); border-radius: 0 6px 6px 0; }
255
+ .status-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
256
+ .status-line strong { color: var(--text); }
257
+ .status-line .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
258
+ .status-line.state-recording { border-left-color: var(--red); background: var(--red-soft); }
259
+ .status-line.state-recording .dot { background: var(--red); animation: pulse 1.2s ease-in-out infinite; }
260
+ .status-line.state-recording strong { color: #ffd3d3; }
261
+ .status-line.state-busy { border-left-color: var(--link); }
262
+ .status-line.state-busy .dot { background: var(--link); animation: pulse 1s ease-in-out infinite; }
263
+ .status-line.state-ready { border-left-color: var(--green); background: var(--green-soft); }
264
+ .status-line.state-ready strong { color: var(--green); }
265
+ .status-line.state-error { border-left-color: var(--amber); background: var(--amber-soft); }
266
+ .status-line.state-error .dot { background: var(--amber); }
267
+ .status-line.state-recording #btn-quick-primary { border-color: var(--red); background: var(--red-soft); color: #ffd3d3; }
268
+ .status-line.state-ready #btn-quick-primary { border-color: var(--green); background: var(--green-soft); color: var(--green); }
269
+ .tag { font-size: 10.5px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--hair-strong); color: var(--text-3); }
270
+ .result { min-height: 110px; font-size: 14px; }
271
+
272
+ .recovery-card { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
273
+ .recovery-card .info { flex: 1; min-width: 0; }
274
+ .recovery-card .title { font-weight: 600; color: var(--text); }
275
+ .recovery-card .sub { font-size: 11.5px; color: var(--text-3); }
276
+ .recovery-card .reason { display: inline-block; margin-top: 2px; font-size: 11.5px; color: var(--amber); }
277
+ .recovery-card .fix { margin-top: 2px; font-size: 11.5px; color: var(--text-2); }
278
+ .recovery-card button { height: 24px; font-size: 11.5px; }
279
+ .empty-state { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; color: var(--text-2); border-bottom: 1px solid var(--hair); }
280
+ .empty-state svg { display: none; }
281
+ .empty-state strong { color: var(--green); }
282
+ .empty-state p { color: var(--text-3); font-size: 12px; }
283
+
284
+ /* Settings: tree (docs left nav) + article + save bar */
285
+ .settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
286
+ .tree { grid-row: 1 / 3; padding: 20px 10px 20px 18px; border-right: 1px solid var(--hair); display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
287
+ .tree-title { justify-content: flex-start; height: 26px; margin-top: 8px; padding: 0 6px; border: 0; color: var(--h2); font-weight: 600; }
288
+ .tree-title:first-child { margin-top: 0; }
289
+ .tree-group { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(127, 211, 199, .25); display: flex; flex-direction: column; }
290
+ .tree-item { justify-content: flex-start; height: 24px; padding: 0 6px; border: 0; color: var(--text-2); font-weight: 400; }
291
+ .tree-title:hover, .tree-item:hover { color: var(--amber); }
292
+ .tree-title.active, .tree-item.active { color: var(--link); }
293
+ .settings-scroll { overflow-y: auto; min-height: 0; }
294
+ .form .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
295
+ .form .grid .wide { grid-column: 1 / -1; }
296
+ .form .status { margin-top: 8px; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
297
+ .ok { color: var(--green) !important; }
298
+ .bad { color: var(--amber) !important; }
299
+ .preset { min-height: 90px; }
300
+ .about { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 12px; }
301
+ .about dt { color: var(--text-3); }
302
+ .about dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
303
+ .savebar { display: flex; align-items: center; gap: 12px; padding: 7px 28px; border-top: 1px solid var(--hair); background: var(--bar); }
304
+ .feedback { flex: 1; font-size: 12px; color: var(--green); }
305
+ .feedback.error { color: var(--red); }
306
+ .dirty { font-size: 11.5px; color: var(--amber); }
307
+
308
+ @media (max-width: 860px) {
309
+ .brand span, .search-pill span { display: none; }
310
+ .topbar { gap: 10px; }
311
+ .notes { grid-template-columns: 220px minmax(0, 1fr); }
312
+ .rail.drawer-open { position: absolute; right: 0; top: 0; bottom: 0; z-index: 4; background: var(--bg); box-shadow: -8px 0 24px rgba(0, 0, 0, .4); }
313
+ .settings { grid-template-columns: minmax(0, 1fr); }
314
+ .tree { display: none; }
315
+ .form .grid { grid-template-columns: minmax(0, 1fr); }
316
+ }
317
+
318
+ /* List row: title + short date on one line, one-line excerpt below */
319
+ .entry-title .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
320
+ .entry-title .when { flex: none; font-size: 10.5px; font-weight: 400; color: #626b7e; }
321
+ .note-entry { padding-top: 7px; padding-bottom: 7px; }
322
+ #quick-state { display: none !important; } /* the status title already says it */