codetta 0.8.1__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.
Files changed (63) hide show
  1. codetta/CHANGELOG.md +153 -0
  2. codetta/__init__.py +8 -0
  3. codetta/__main__.py +5 -0
  4. codetta/cli/__init__.py +0 -0
  5. codetta/cli/__main__.py +59 -0
  6. codetta/cli/run.py +129 -0
  7. codetta/core/__init__.py +0 -0
  8. codetta/core/acoustid.py +225 -0
  9. codetta/core/activity.py +161 -0
  10. codetta/core/artwork.py +238 -0
  11. codetta/core/auth.py +362 -0
  12. codetta/core/avatar.py +92 -0
  13. codetta/core/changelog.py +51 -0
  14. codetta/core/connections.py +159 -0
  15. codetta/core/describe.py +69 -0
  16. codetta/core/engine.py +470 -0
  17. codetta/core/health.py +520 -0
  18. codetta/core/inbox.py +195 -0
  19. codetta/core/index.py +672 -0
  20. codetta/core/library.py +177 -0
  21. codetta/core/musicbrainz.py +662 -0
  22. codetta/core/notifications.py +77 -0
  23. codetta/core/onboarding.py +39 -0
  24. codetta/core/organize.py +490 -0
  25. codetta/core/plugins.py +183 -0
  26. codetta/core/presets.py +452 -0
  27. codetta/core/providers.py +203 -0
  28. codetta/core/rawtags.py +135 -0
  29. codetta/core/slskd.py +650 -0
  30. codetta/core/tagmap.py +538 -0
  31. codetta/core/undo.py +186 -0
  32. codetta/core/updates.py +132 -0
  33. codetta/plugins/__init__.py +63 -0
  34. codetta/plugins/builtin/__init__.py +3 -0
  35. codetta/plugins/builtin/tidy.py +70 -0
  36. codetta/web/__init__.py +0 -0
  37. codetta/web/app.py +2909 -0
  38. codetta/web/security.py +170 -0
  39. codetta/web/static/app.css +2684 -0
  40. codetta/web/static/app.js +5694 -0
  41. codetta/web/static/apple-touch-icon.png +0 -0
  42. codetta/web/static/fonts/LICENSE-Inter.txt +93 -0
  43. codetta/web/static/fonts/LICENSE-SchibstedGrotesk.txt +93 -0
  44. codetta/web/static/fonts/inter-cyrillic.woff2 +0 -0
  45. codetta/web/static/fonts/schibsted-grotesk.woff2 +0 -0
  46. codetta/web/static/icon.svg +1 -0
  47. codetta/web/static/icons/codetta-dark.png +0 -0
  48. codetta/web/static/icons/codetta-dark.svg +1 -0
  49. codetta/web/static/icons/codetta-dark.webp +0 -0
  50. codetta/web/static/icons/codetta-light.png +0 -0
  51. codetta/web/static/icons/codetta-light.svg +1 -0
  52. codetta/web/static/icons/codetta-light.webp +0 -0
  53. codetta/web/static/icons/codetta.png +0 -0
  54. codetta/web/static/icons/codetta.svg +1 -0
  55. codetta/web/static/icons/codetta.webp +0 -0
  56. codetta/web/static/index.html +473 -0
  57. codetta/web/static/theme.js +12 -0
  58. codetta-0.8.1.dist-info/METADATA +282 -0
  59. codetta-0.8.1.dist-info/RECORD +63 -0
  60. codetta-0.8.1.dist-info/WHEEL +5 -0
  61. codetta-0.8.1.dist-info/entry_points.txt +2 -0
  62. codetta-0.8.1.dist-info/licenses/LICENSE +661 -0
  63. codetta-0.8.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,2684 @@
1
+ /* Codetta: plain CSS, no build step.
2
+ World: liner notes. Booklet stock and ink, one grotesque, hairline rules, and
3
+ one spot colour per album lifted from its cover (see --spot / setSpot()).
4
+ Theme: light by default, dark via the system setting or the theme button
5
+ (data-theme="light" | "dark" on <html> overrides the system). */
6
+
7
+ @font-face {
8
+ font-family: "Schibsted Grotesk";
9
+ font-style: normal;
10
+ font-weight: 400 900;
11
+ font-display: swap;
12
+ src: url(fonts/schibsted-grotesk.woff2) format("woff2");
13
+ }
14
+ @font-face { /* Cyrillic only (Inter's Cyrillic subset): Schibsted Grotesk doesn't cover it */
15
+ font-family: "Codetta Cyrillic";
16
+ font-style: normal;
17
+ font-weight: 100 900;
18
+ font-display: swap;
19
+ src: url(fonts/inter-cyrillic.woff2) format("woff2");
20
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
21
+ }
22
+
23
+ /* The album's spot colour. Registered so it can crossfade when you move
24
+ between albums instead of jumping. */
25
+ @property --spot {
26
+ syntax: "<color>";
27
+ inherits: true;
28
+ initial-value: #0e7c74;
29
+ }
30
+
31
+ /* ---- Theme tokens ------------------------------------------------------- */
32
+
33
+ :root {
34
+ /* Motion: quick, decelerating */
35
+ --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
36
+ --ease-in: cubic-bezier(0.4, 0, 1, 1);
37
+ --dur-fast: 120ms;
38
+ --dur: 200ms;
39
+ --dur-slow: 260ms;
40
+
41
+ --font: "Schibsted Grotesk", "Codetta Cyrillic", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Noto Sans",
42
+ "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", "Noto Sans CJK JP", "PingFang SC", "Microsoft YaHei",
43
+ "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Nirmala UI", "Noto Sans Devanagari",
44
+ "Leelawadee UI", "Noto Sans Thai", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
45
+ --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
46
+
47
+ color-scheme: light;
48
+ --house-spot: #0e7c74; /* used when an album has no cover */
49
+ --spot: var(--house-spot);
50
+ --bg: #f7f8f8; /* booklet stock: neutral, faintly cool */
51
+ --surface: #ffffff;
52
+ --surface-raised: #ffffff;
53
+ --text: #1b1e24; /* ink */
54
+ --muted: #59606d;
55
+ --faint: #6f7581;
56
+ --rule: rgba(27, 30, 36, 0.1); /* hairlines between credit lines */
57
+ --border: rgba(27, 30, 36, 0.1);
58
+ --border-strong: rgba(27, 30, 36, 0.22);
59
+ --hover: rgba(27, 30, 36, 0.04);
60
+ --pressed: rgba(27, 30, 36, 0.07);
61
+ --danger: #c4291c;
62
+ --danger-soft: rgba(196, 41, 28, 0.08);
63
+ --success: #1f7a3a;
64
+ --warning: #9c4f00;
65
+ --warning-soft: rgba(214, 120, 0, 0.12);
66
+ --input-bg: #ffffff;
67
+ --field-line: #8b919b; /* input borders: 3:1 against the field */
68
+ --on-color: #ffffff; /* text and ticks on the spot or status colours */
69
+ --shadow: 0 1px 2px rgba(27, 30, 36, 0.05), 0 10px 28px rgba(27, 30, 36, 0.07);
70
+ --shadow-lg: 0 24px 64px rgba(27, 30, 36, 0.18);
71
+ --backdrop: rgba(18, 20, 24, 0.3);
72
+ --glass: rgba(247, 248, 248, 0.85);
73
+ }
74
+
75
+ @media (prefers-color-scheme: dark) {
76
+ :root:not([data-theme="light"]) {
77
+ color-scheme: dark;
78
+ --house-spot: #4fc3b4;
79
+ --bg: #131418; /* booklet black */
80
+ --surface: #1a1c21;
81
+ --surface-raised: #23252b;
82
+ --text: #f0f0ec;
83
+ --muted: #a4a9b4;
84
+ --faint: #8a909b;
85
+ --rule: rgba(240, 240, 236, 0.1);
86
+ --border: rgba(240, 240, 236, 0.1);
87
+ --border-strong: rgba(240, 240, 236, 0.2);
88
+ --hover: rgba(240, 240, 236, 0.05);
89
+ --pressed: rgba(240, 240, 236, 0.09);
90
+ --danger: #ff6b5e;
91
+ --danger-soft: rgba(255, 107, 94, 0.12);
92
+ --success: #4cd07d;
93
+ --warning: #ffad42;
94
+ --warning-soft: rgba(255, 173, 66, 0.14);
95
+ --input-bg: #1f2126;
96
+ --field-line: #6e737d;
97
+ --on-color: #131418; /* dark spot/status colours are light: dark text on them */
98
+ --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
99
+ --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
100
+ --backdrop: rgba(0, 0, 0, 0.55);
101
+ --glass: rgba(19, 20, 24, 0.82);
102
+ }
103
+ }
104
+
105
+ :root[data-theme="dark"] {
106
+ color-scheme: dark;
107
+ --house-spot: #4fc3b4;
108
+ --bg: #131418;
109
+ --surface: #1a1c21;
110
+ --surface-raised: #23252b;
111
+ --text: #f0f0ec;
112
+ --muted: #a4a9b4;
113
+ --faint: #8a909b;
114
+ --rule: rgba(240, 240, 236, 0.1);
115
+ --border: rgba(240, 240, 236, 0.1);
116
+ --border-strong: rgba(240, 240, 236, 0.2);
117
+ --hover: rgba(240, 240, 236, 0.05);
118
+ --pressed: rgba(240, 240, 236, 0.09);
119
+ --danger: #ff6b5e;
120
+ --danger-soft: rgba(255, 107, 94, 0.12);
121
+ --success: #4cd07d;
122
+ --warning: #ffad42;
123
+ --warning-soft: rgba(255, 173, 66, 0.14);
124
+ --input-bg: #1f2126;
125
+ --field-line: #6e737d;
126
+ --on-color: #131418;
127
+ --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
128
+ --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
129
+ --backdrop: rgba(0, 0, 0, 0.55);
130
+ --glass: rgba(19, 20, 24, 0.82);
131
+ }
132
+
133
+ /* Everything that used to be "accent" is now the album's spot colour. */
134
+ :root {
135
+ --accent: var(--spot);
136
+ --accent-hover: color-mix(in oklab, var(--spot) 82%, var(--text));
137
+ --accent-soft: color-mix(in oklab, var(--spot) 13%, transparent);
138
+ --selected: color-mix(in oklab, var(--spot) 10%, transparent);
139
+ --on-accent: var(--on-color);
140
+ transition: --spot 700ms var(--ease-out);
141
+ }
142
+ @media (prefers-reduced-motion: reduce) { :root { transition: none; } }
143
+
144
+ /* ---- Base ------------------------------------------------------------------- */
145
+
146
+ *, *::before, *::after { box-sizing: border-box; }
147
+
148
+ html {
149
+ -webkit-text-size-adjust: 100%;
150
+ text-size-adjust: 100%;
151
+ scrollbar-color: var(--border-strong) transparent;
152
+ accent-color: var(--spot);
153
+ }
154
+
155
+ body {
156
+ margin: 0;
157
+ background: var(--bg);
158
+ color: var(--text);
159
+ /* Schibsted Grotesk for Latin and Greek, Inter for Cyrillic; good system
160
+ fonts for every other script and colour emoji. */
161
+ font-family: var(--font);
162
+ font-size: 14px;
163
+ line-height: 1.45;
164
+ -webkit-font-smoothing: antialiased;
165
+ -moz-osx-font-smoothing: grayscale;
166
+ -webkit-tap-highlight-color: transparent;
167
+ }
168
+
169
+ ::selection { background: color-mix(in oklab, var(--spot) 26%, transparent); color: inherit; }
170
+ input, textarea { caret-color: var(--spot); }
171
+ a { text-underline-offset: 0.2em; }
172
+
173
+ button, input, select, textarea { font: inherit; color: inherit; }
174
+ button { cursor: pointer; }
175
+ svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
176
+ [hidden] { display: none !important; }
177
+ h1, h2, h3, p { margin: 0; }
178
+
179
+ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
180
+
181
+ .num { font-variant-numeric: normal; }
182
+
183
+ /* ---- App frame ----------------------------------------------------------------- */
184
+
185
+ .app {
186
+ display: flex;
187
+ flex-direction: column;
188
+ height: 100vh;
189
+ height: 100dvh;
190
+ }
191
+
192
+ .topbar {
193
+ display: flex;
194
+ align-items: center;
195
+ gap: 12px;
196
+ padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
197
+ padding-top: max(10px, env(safe-area-inset-top));
198
+ background: var(--glass);
199
+ -webkit-backdrop-filter: saturate(180%) blur(20px);
200
+ backdrop-filter: saturate(180%) blur(20px);
201
+ border-bottom: 1px solid var(--border);
202
+ position: relative;
203
+ z-index: 5;
204
+ }
205
+
206
+ .brand {
207
+ display: flex;
208
+ align-items: center;
209
+ color: var(--text);
210
+ text-decoration: none;
211
+ flex: none;
212
+ padding: 4px 2px;
213
+ }
214
+ /* The wordmark: lowercase, heavy, with a square full stop in the album's spot colour. */
215
+ .wordmark { font-weight: 800; font-size: 21px; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
216
+ .brand-icon { display: none; width: 30px; height: 30px; place-items: center; background: var(--spot); color: var(--on-color); font-weight: 800; font-size: 22px; line-height: 1; padding-bottom: 3px; }
217
+ .spot-dot { display: inline-block; width: 0.29em; height: 0.29em; margin-left: 0.06em; background: var(--spot); }
218
+
219
+ .crumbs {
220
+ display: flex;
221
+ align-items: center;
222
+ gap: 2px;
223
+ min-width: 0;
224
+ flex: 1;
225
+ overflow-x: auto;
226
+ scrollbar-width: none;
227
+ white-space: nowrap;
228
+ }
229
+ .crumbs::-webkit-scrollbar { display: none; }
230
+ .crumbs a {
231
+ color: var(--muted);
232
+ text-decoration: none;
233
+ padding: 4px 6px;
234
+ border-radius: 6px;
235
+ font-weight: 500;
236
+ max-width: 260px;
237
+ overflow: hidden;
238
+ text-overflow: ellipsis;
239
+ }
240
+ .crumbs a:hover { background: var(--hover); color: var(--text); }
241
+ .crumbs a[aria-current="page"] { color: var(--text); font-weight: 600; }
242
+ .crumbs .sep { color: var(--faint); }
243
+
244
+ .topbar-actions { display: flex; align-items: center; gap: 6px; flex: none; }
245
+
246
+ .search {
247
+ display: flex;
248
+ align-items: center;
249
+ gap: 6px;
250
+ height: 34px;
251
+ padding: 0 10px;
252
+ border-radius: 6px;
253
+ background: var(--surface);
254
+ border: 1px solid var(--field-line);
255
+ color: var(--muted);
256
+ width: 240px;
257
+ /* Opens wider while in use and settles back when you leave it (a soft spring, both ways). */
258
+ transition: width 420ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 200ms ease, border-color 200ms ease,
259
+ background-color 200ms ease;
260
+ }
261
+ .search-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; position: relative; }
262
+ .search > svg { transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1), opacity 200ms ease; }
263
+ .search-wrap.active .search > svg { transform: scale(1.08); }
264
+ .search-cancel { display: none; }
265
+ /* Using the search (or searching Soulseek): it widens to make room. */
266
+ .search-wrap.active .search { width: 380px; }
267
+ .search input {
268
+ border: 0;
269
+ outline: 0;
270
+ background: transparent;
271
+ width: 100%;
272
+ min-width: 0;
273
+ color: var(--text);
274
+ }
275
+ .search input::placeholder { color: var(--faint); }
276
+ .search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
277
+
278
+ .layout {
279
+ flex: 1;
280
+ display: flex;
281
+ min-height: 0;
282
+ }
283
+
284
+ .browser {
285
+ flex: 1;
286
+ min-width: 0;
287
+ overflow-y: auto;
288
+ padding: 20px max(24px, env(safe-area-inset-right)) 96px max(24px, env(safe-area-inset-left));
289
+ outline: none;
290
+ }
291
+
292
+ /* ---- Buttons ----------------------------------------------------------------------- */
293
+
294
+ .btn {
295
+ display: inline-flex;
296
+ align-items: center;
297
+ justify-content: center;
298
+ gap: 6px;
299
+ height: 34px;
300
+ padding: 0 14px;
301
+ border-radius: 6px;
302
+ border: 1px solid var(--field-line);
303
+ background: var(--surface);
304
+ font-weight: 600;
305
+ white-space: nowrap;
306
+ }
307
+ .btn:hover { background: var(--hover); }
308
+ .btn:active { background: var(--pressed); }
309
+ .btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
310
+ .btn.primary:hover { background: color-mix(in oklab, var(--text) 84%, var(--spot)); }
311
+ .btn.danger { color: var(--danger); }
312
+ .btn:disabled { opacity: 0.45; cursor: default; pointer-events: none; }
313
+ .btn.primary:disabled { opacity: 1; background: var(--hover); color: var(--faint); border-color: var(--border); }
314
+ .btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
315
+
316
+ .icon-btn {
317
+ display: inline-flex;
318
+ align-items: center;
319
+ justify-content: center;
320
+ width: 32px;
321
+ height: 32px;
322
+ border: 0;
323
+ border-radius: 6px;
324
+ background: transparent;
325
+ color: var(--muted);
326
+ }
327
+ .icon-btn:hover { background: var(--hover); color: var(--text); }
328
+ .icon-btn:active { background: var(--pressed); }
329
+
330
+ .link-btn { border: 0; background: none; color: var(--accent); padding: 0; font-weight: 500; }
331
+
332
+ /* ---- Folder header & banner ------------------------------------------------------- */
333
+
334
+ .banner {
335
+ padding: 14px 16px;
336
+ margin-bottom: 20px;
337
+ border-radius: 12px;
338
+ background: var(--warning-soft);
339
+ color: var(--text);
340
+ }
341
+ .banner strong { display: block; margin-bottom: 2px; }
342
+ .banner code { font-size: 13px; }
343
+
344
+ .folder-head {
345
+ display: flex;
346
+ align-items: flex-end;
347
+ justify-content: space-between;
348
+ gap: 12px;
349
+ flex-wrap: wrap;
350
+ margin-bottom: 16px;
351
+ }
352
+ .folder-head h1 {
353
+ font-size: 40px;
354
+ font-weight: 800;
355
+ letter-spacing: -0.035em;
356
+ line-height: 1.04;
357
+ overflow-wrap: anywhere;
358
+ text-wrap: balance;
359
+ }
360
+ .folder-head p { color: var(--muted); margin-top: 4px; }
361
+ .folder-actions { display: flex; gap: 8px; }
362
+
363
+ /* ---- Album header: cover beside a heavy title, like a booklet spread ---------- */
364
+
365
+ .album-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: end; flex: 1 1 520px; min-width: 0; }
366
+ .album-cover {
367
+ width: 200px; height: 200px; display: block; object-fit: cover; border-radius: 2px;
368
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 24px -10px rgba(0, 0, 0, 0.35);
369
+ background: var(--hover);
370
+ }
371
+ .album-head h1 { font-size: 52px; }
372
+ .album-meta { color: var(--muted); margin-top: 8px; font-size: 15px; }
373
+ .album-meta b { color: var(--text); font-weight: 600; }
374
+ .nowrap { white-space: nowrap; }
375
+ .spot-chip {
376
+ display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 4px;
377
+ background: var(--accent-soft); color: var(--spot); font-weight: 700; font-size: 13px;
378
+ }
379
+
380
+ /* ---- Tag filter chips ---------------------------------------------------------------------- */
381
+
382
+ .filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 16px; }
383
+ .filter-count { color: var(--muted); font-size: 13px; margin-right: 4px; font-variant-numeric: normal; }
384
+ .filter-chip {
385
+ display: inline-flex;
386
+ align-items: center;
387
+ gap: 4px;
388
+ padding: 3px 4px 3px 10px;
389
+ border-radius: 999px;
390
+ background: var(--accent-soft);
391
+ color: var(--text);
392
+ font-size: 13px;
393
+ max-width: 100%;
394
+ }
395
+ .filter-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
396
+ .filter-chip b { font-weight: 600; }
397
+ .chip-x { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); padding: 0; }
398
+ .chip-x:hover { background: var(--hover); color: var(--text); }
399
+ .chip-x svg { width: 12px; height: 12px; }
400
+ #tagfilter-btn.active { color: var(--accent); background: var(--accent-soft); }
401
+ dialog.sheet.small { width: min(420px, calc(100vw - 32px)); }
402
+
403
+ /* ---- Folders ----------------------------------------------------------------------- */
404
+
405
+ .folders {
406
+ display: grid;
407
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
408
+ gap: 8px;
409
+ margin-bottom: 24px;
410
+ }
411
+ .folders:empty { display: none; }
412
+ .folder {
413
+ display: flex;
414
+ align-items: center;
415
+ gap: 10px;
416
+ padding: 10px 12px;
417
+ min-height: 44px;
418
+ border-radius: 6px;
419
+ background: var(--surface);
420
+ border: 1px solid var(--border);
421
+ color: var(--text);
422
+ text-decoration: none;
423
+ font-weight: 500;
424
+ min-width: 0;
425
+ }
426
+ @media (hover: hover) { .folder:hover { background: var(--hover); border-color: var(--border-strong); } }
427
+ .folder:active { background: var(--pressed); }
428
+ .folder svg { color: var(--accent); }
429
+ .folder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
430
+
431
+ /* Grid view: a contents page. Each folder is a ruled entry, not a boxed tile. */
432
+ .folders:not(.as-list) { gap: 4px 28px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
433
+ .folders:not(.as-list) .folder {
434
+ border: 0; border-top: 1.5px solid var(--text); border-radius: 0; background: transparent;
435
+ min-height: 64px; padding: 12px 2px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
436
+ }
437
+ @media (hover: hover) { .folders:not(.as-list) .folder:hover { background: var(--hover); border-color: var(--spot); } }
438
+
439
+ /* List view (default): rows like the track list. */
440
+ .folders.as-list {
441
+ display: block;
442
+ border-top: 1.5px solid var(--text); /* the booklet's ink rule */
443
+ }
444
+ .folders.as-list .folder {
445
+ border: 0;
446
+ border-bottom: 1px solid var(--rule);
447
+ border-radius: 0;
448
+ background: transparent;
449
+ min-height: 48px;
450
+ padding: 0 8px 0 4px;
451
+ font-weight: 600;
452
+ }
453
+ .folders.as-list .folder:last-child { border-bottom: 1px solid var(--rule); }
454
+ .folders.as-list:empty { display: none; }
455
+ .folder-name { flex: 1; min-width: 0; }
456
+ .folder-meta { flex: none; color: var(--muted); font-size: 13px; font-weight: 400; font-variant-numeric: normal; }
457
+ .folders.as-list .folder > svg:last-child { color: var(--faint); width: 15px; height: 15px; }
458
+
459
+ .folder-actions { align-items: center; }
460
+ .phone-only { display: none; }
461
+ @media (max-width: 760px) { .phone-only { display: inline-flex; } }
462
+ .view-toggle { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--hover); }
463
+ .view-toggle .icon-btn { width: 30px; height: 28px; border-radius: 7px; }
464
+ .view-toggle .icon-btn[aria-pressed="true"] { background: var(--surface-raised); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
465
+
466
+ /* ---- Track list --------------------------------------------------------------------- */
467
+
468
+ .tracks {
469
+ border-top: 1.5px solid var(--text); /* the booklet's ink rule */
470
+ }
471
+ .tracks:empty { display: none; }
472
+
473
+ .track-row {
474
+ display: grid;
475
+ grid-template-columns: var(--cols, 44px 40px 48px minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1.4fr) 76px 60px 56px);
476
+ align-items: center;
477
+ min-height: 48px;
478
+ border-bottom: 1px solid var(--rule);
479
+ cursor: default;
480
+ }
481
+ .track-row.head {
482
+ min-height: 34px;
483
+ font-size: 12px;
484
+ font-weight: 600;
485
+ color: var(--muted);
486
+ background: transparent;
487
+ }
488
+ @media (hover: hover) { .track-row:not(.head):hover { background: var(--hover); } }
489
+ .track-row.selected { background: var(--selected); }
490
+ .track-row.editing { background: var(--accent-soft); }
491
+ .track-row.editing .col-title, .track-row.editing .col-num { color: var(--spot); }
492
+ .track-row > * { padding: 0 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
493
+ .track-row .col-num, .track-row .col-dur { color: var(--muted); text-align: right; }
494
+ .track-row .col-num { font-variant-numeric: tabular-nums; font-weight: 600; } /* digits only: tabular keeps 01-99 aligned */
495
+ /* One album: columns that would repeat the same value on every row are dropped. */
496
+ .tracks.one-album .col-art, .tracks.one-album .col-album, .tracks.one-format .col-fmt, .tracks.same-artist .col-artist { display: none; }
497
+ .track-row .col-title { font-weight: 600; }
498
+ .track-row .col-title .untitled { color: var(--muted); font-weight: 400; font-style: italic; }
499
+ .track-row .col-artist, .track-row .col-album { color: var(--muted); }
500
+ .track-row .sub { display: none; }
501
+
502
+ /* Album-art thumbnail on each track */
503
+ .track-row .col-art { display: flex; align-items: center; justify-content: center; padding: 0 4px; overflow: visible; }
504
+ .track-row .col-art img { width: 36px; height: 36px; border-radius: 2px; object-fit: cover; display: block; background: var(--hover); box-shadow: 0 0 0 1px var(--border); }
505
+ .art-none {
506
+ width: 36px; height: 36px; border-radius: 2px; display: grid; place-items: center;
507
+ background: var(--hover); color: var(--faint); border: 1px dashed var(--border-strong);
508
+ }
509
+ .art-none svg { width: 15px; height: 15px; }
510
+
511
+ /* Pending album art in the editor */
512
+ .art-square.pending { box-shadow: 0 0 0 2px var(--accent); }
513
+ .art-square.removing { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
514
+ .art-badge {
515
+ position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px;
516
+ background: var(--accent); color: var(--on-color); font-size: 11px; font-weight: 600;
517
+ }
518
+ .pop-art { display: inline-flex; align-items: center; gap: 6px; }
519
+ .pop-art img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
520
+ /* Right-to-left names (Arabic, Hebrew…) read in their own direction. */
521
+ .track-row > *, .track-row .main, .track-row .sub, .folder-name, .editor-title h2, .editor-title p,
522
+ .act-msg, .preview-item .name, .crumbs a, .filter-chip > span { unicode-bidi: plaintext; }
523
+ /* ...but columns stay aligned to one edge, whatever the script. */
524
+ .track-row .col-title, .track-row .col-artist, .track-row .col-album, .folder-name, .act-msg { text-align: left; }
525
+ .skipped-note { color: var(--warning); cursor: help; }
526
+ .track-row:not(.head) { cursor: pointer; }
527
+ /* Rows off-screen are skipped for layout and painting until scrolled to:
528
+ keeps folders with thousands of tracks fast to draw and filter. */
529
+ .track-row:not(.head), .folders.as-list .folder { content-visibility: auto; contain-intrinsic-size: auto 44px; }
530
+ .track-row.has-error .col-title { color: var(--danger); }
531
+
532
+ .badge {
533
+ display: inline-block;
534
+ padding: 1px 6px;
535
+ border-radius: 5px;
536
+ font-size: 11px;
537
+ font-weight: 600;
538
+ letter-spacing: 0.02em;
539
+ text-transform: uppercase;
540
+ background: var(--hover);
541
+ color: var(--muted);
542
+ }
543
+
544
+ /* Round checkbox, 44px touch target */
545
+ .check-cell {
546
+ display: flex;
547
+ align-items: center;
548
+ justify-content: center;
549
+ height: 44px;
550
+ padding: 0 !important;
551
+ cursor: pointer;
552
+ }
553
+ .check-cell input, .check input {
554
+ appearance: none;
555
+ -webkit-appearance: none;
556
+ width: 18px;
557
+ height: 18px;
558
+ margin: 0;
559
+ border-radius: 50%;
560
+ border: 1.5px solid var(--border-strong);
561
+ background: var(--input-bg);
562
+ display: grid;
563
+ place-content: center;
564
+ cursor: pointer;
565
+ flex: none;
566
+ }
567
+ .check input { border-radius: 5px; }
568
+ .check-cell input:checked, .check input:checked {
569
+ background: var(--accent);
570
+ border-color: var(--accent);
571
+ }
572
+ .check-cell input:checked::after, .check input:checked::after {
573
+ content: "";
574
+ width: 9px;
575
+ height: 5px;
576
+ border: solid var(--on-color);
577
+ border-width: 0 0 2px 2px;
578
+ transform: translateY(-1px) rotate(-45deg);
579
+ }
580
+ .check-cell input:indeterminate { background: var(--accent); border-color: var(--accent); }
581
+ .check-cell input:indeterminate::after { content: ""; width: 8px; height: 2px; background: var(--on-color); border-radius: 1px; }
582
+
583
+ .empty {
584
+ padding: 48px 16px;
585
+ text-align: center;
586
+ color: var(--muted);
587
+ }
588
+ .empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
589
+
590
+ .loading { padding: 32px 0; color: var(--muted); }
591
+
592
+ /* ---- Library-wide search ------------------------------------------------------- */
593
+
594
+ .search-all {
595
+ display: inline-flex;
596
+ align-items: center;
597
+ gap: 8px;
598
+ min-height: 34px;
599
+ padding: 6px 10px 6px 12px;
600
+ border: 1px solid var(--accent-soft);
601
+ border-radius: 999px;
602
+ background: var(--accent-soft);
603
+ color: var(--accent);
604
+ font: inherit;
605
+ font-size: 13px;
606
+ cursor: pointer;
607
+ animation: pop-in var(--dur) var(--ease-out);
608
+ }
609
+ .search-all svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
610
+ .search-all b { font-weight: 600; overflow-wrap: anywhere; }
611
+ .search-all kbd {
612
+ font: inherit; font-size: 11px; padding: 1px 6px; border-radius: 5px;
613
+ background: var(--surface); color: var(--muted); border: 1px solid var(--border);
614
+ }
615
+ .search-all:hover { border-color: var(--accent); }
616
+ .query-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
617
+ .query-chip {
618
+ padding: 3px 9px; border-radius: 999px; font-size: 13px;
619
+ background: var(--surface-raised); border: 1px solid var(--border); color: var(--text);
620
+ unicode-bidi: plaintext;
621
+ }
622
+ .query-chip b { font-weight: 600; }
623
+ .search-note { margin-top: 6px; font-size: 13px; color: var(--muted); }
624
+ .empty code { font-size: 12px; padding: 1px 6px; border-radius: 5px; background: var(--surface-raised); border: 1px solid var(--border); }
625
+ @media (hover: none) { .search-all kbd { display: none; } }
626
+
627
+ /* ---- Selection bar -------------------------------------------------------------- */
628
+
629
+ .selection-bar {
630
+ position: fixed;
631
+ left: 50%;
632
+ bottom: max(16px, env(safe-area-inset-bottom));
633
+ transform: translateX(-50%);
634
+ display: flex;
635
+ align-items: center;
636
+ gap: 16px;
637
+ padding: 8px 8px 8px 16px;
638
+ border-radius: 14px;
639
+ background: var(--surface-raised);
640
+ border: 1px solid var(--border);
641
+ box-shadow: var(--shadow-lg);
642
+ z-index: 10;
643
+ font-weight: 500;
644
+ max-width: calc(100vw - 24px);
645
+ }
646
+ .selection-actions { display: flex; gap: 6px; }
647
+
648
+ /* ---- Editor panel ------------------------------------------------------------------ */
649
+
650
+ .editor {
651
+ width: 500px;
652
+ flex: none;
653
+ display: flex;
654
+ flex-direction: column;
655
+ background: var(--surface);
656
+ border-left: 1px solid var(--border);
657
+ min-height: 0;
658
+ }
659
+
660
+ .editor-head {
661
+ display: flex;
662
+ align-items: center;
663
+ gap: 10px;
664
+ padding: 12px 16px;
665
+ border-bottom: 1px solid var(--border);
666
+ }
667
+ .editor-title { flex: 1; min-width: 0; }
668
+ .editor-title h2 {
669
+ font-size: 19px;
670
+ font-weight: 800;
671
+ letter-spacing: -0.02em;
672
+ line-height: 1.3;
673
+ overflow-wrap: anywhere;
674
+ display: -webkit-box;
675
+ -webkit-line-clamp: 2;
676
+ -webkit-box-orient: vertical;
677
+ overflow: hidden;
678
+ }
679
+ .editor-title p { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
680
+
681
+ .editor-toolbar {
682
+ display: flex;
683
+ align-items: center;
684
+ justify-content: space-between;
685
+ flex-wrap: wrap;
686
+ gap: 8px;
687
+ padding: 8px 16px;
688
+ border-bottom: 1px solid var(--border);
689
+ }
690
+ .toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
691
+ .toolbar-right { margin-left: auto; position: relative; }
692
+
693
+ /* What will be saved: shown when hovering either Save button */
694
+ .changes-pop {
695
+ position: absolute;
696
+ top: calc(100% + 8px);
697
+ right: 0;
698
+ width: min(340px, 80vw);
699
+ padding: 10px 12px;
700
+ border-radius: 12px;
701
+ background: var(--surface-raised);
702
+ border: 1px solid var(--border);
703
+ box-shadow: var(--shadow-lg);
704
+ font-size: 12.5px;
705
+ z-index: 30;
706
+ opacity: 0;
707
+ visibility: hidden;
708
+ transform: translateY(-4px);
709
+ transition: opacity 0.12s, transform 0.12s, visibility 0.12s;
710
+ pointer-events: none;
711
+ }
712
+ .changes-pop:empty { display: none; }
713
+ /* Only with a real mouse (a tap would leave it stuck open) or keyboard focus. */
714
+ @media (hover: hover) {
715
+ .toolbar-right:has(.btn:not(:disabled):hover) .changes-pop { opacity: 1; visibility: visible; transform: none; }
716
+ }
717
+ .toolbar-right:has(.btn:not(:disabled):focus-visible) .changes-pop { opacity: 1; visibility: visible; transform: none; }
718
+
719
+ /* Confirmation sheet */
720
+ dialog.confirm .sheet-head { padding-bottom: 4px; }
721
+ .confirm-msg { color: var(--muted); }
722
+ dialog.confirm .change-list {
723
+ list-style: none; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--hover);
724
+ display: flex; flex-direction: column; gap: 6px; font-size: 13px; max-height: 40vh; overflow-y: auto;
725
+ }
726
+ dialog.confirm .change-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
727
+ .confirm-warning { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warning-soft); color: var(--text); font-size: 13px; }
728
+ .btn.danger-fill { background: var(--danger); border-color: transparent; color: var(--on-color); }
729
+ .btn.danger-fill:hover { filter: brightness(1.08); }
730
+ .changes-pop ul, .change-list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: hidden; }
731
+ .changes-pop li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
732
+ .pop-head { font-weight: 600; }
733
+ .pop-key { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
734
+ .pop-val { overflow-wrap: anywhere; }
735
+ .pop-val s { color: var(--faint); }
736
+ .pop-removed { color: var(--danger); }
737
+ .pop-foot { color: var(--faint); border-top: 1px solid var(--border); padding-top: 6px; }
738
+ .paste-group { display: inline-flex; align-items: center; gap: 2px; }
739
+ .icon-btn.small { width: 26px; height: 26px; }
740
+ .icon-btn.small svg { width: 14px; height: 14px; }
741
+ .btn.small svg { width: 15px; height: 15px; }
742
+
743
+ .editor-body {
744
+ flex: 1;
745
+ overflow-y: auto;
746
+ padding: 8px 16px 32px;
747
+ padding-bottom: max(32px, env(safe-area-inset-bottom));
748
+ }
749
+
750
+ .group { border-bottom: 1px solid var(--rule); padding: 4px 0 14px; }
751
+ .group:last-child { border-bottom: 0; }
752
+ .group > summary {
753
+ list-style: none;
754
+ display: flex;
755
+ align-items: center;
756
+ justify-content: space-between;
757
+ padding: 12px 0 8px;
758
+ font-size: 14px;
759
+ font-weight: 700;
760
+ color: var(--spot);
761
+ cursor: pointer;
762
+ user-select: none;
763
+ -webkit-user-select: none;
764
+ }
765
+ .group > summary::-webkit-details-marker { display: none; }
766
+ .group > summary::after {
767
+ content: "";
768
+ width: 7px;
769
+ height: 7px;
770
+ border: solid var(--faint);
771
+ border-width: 0 1.6px 1.6px 0;
772
+ transform: rotate(45deg);
773
+ margin-right: 4px;
774
+ transition: transform 0.15s;
775
+ }
776
+ .group:not([open]) > summary::after { transform: rotate(-45deg); }
777
+ .group .count { font-weight: 500; color: var(--muted); margin-left: 8px; font-size: 13px; }
778
+
779
+ .field { display: block; margin: 0 0 10px; border: 0; padding: 0; min-width: 0; }
780
+ .field-label {
781
+ display: flex;
782
+ align-items: baseline;
783
+ gap: 6px;
784
+ font-size: 12px;
785
+ font-weight: 500;
786
+ color: var(--muted);
787
+ margin-bottom: 4px;
788
+ padding: 0;
789
+ }
790
+ .field-label .key { color: var(--faint); font-weight: 400; }
791
+ .field-label .flag { margin-left: auto; font-size: 11px; font-weight: 600; }
792
+ .copy-box {
793
+ appearance: none;
794
+ -webkit-appearance: none;
795
+ width: 16px;
796
+ height: 16px;
797
+ margin: 0 2px 0 0;
798
+ border-radius: 4px;
799
+ border: 1.5px solid var(--border-strong);
800
+ background: var(--input-bg);
801
+ display: inline-grid;
802
+ place-content: center;
803
+ align-self: center;
804
+ cursor: pointer;
805
+ flex: none;
806
+ }
807
+ .copy-box:checked { background: var(--accent); border-color: var(--accent); }
808
+ .copy-box:checked::after { content: ""; width: 8px; height: 4px; border: solid var(--on-color); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
809
+ .copy-box:disabled { opacity: 0.35; cursor: default; }
810
+ .field.copyable .field-label { color: var(--text); cursor: pointer; }
811
+ .field-hint {
812
+ display: flex;
813
+ flex-wrap: wrap;
814
+ gap: 4px 10px;
815
+ margin-top: 5px;
816
+ font-size: 12px;
817
+ color: var(--warning);
818
+ }
819
+ .field-hint .link-btn { font-size: 12px; }
820
+
821
+ /* Smart suggestions dropdown */
822
+ .spark { display: inline-flex; color: var(--accent); opacity: 0.8; }
823
+ .spark svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
824
+ .suggest {
825
+ position: absolute;
826
+ top: calc(100% + 4px);
827
+ left: 0;
828
+ right: 0;
829
+ z-index: 25;
830
+ padding: 4px;
831
+ border-radius: 10px;
832
+ background: var(--surface-raised);
833
+ border: 1px solid var(--border);
834
+ box-shadow: var(--shadow-lg);
835
+ min-width: min(260px, calc(100vw - 32px)); /* half-width fields (Genre, Disc) stay readable on phones */
836
+ }
837
+ .row-2 > :last-child .suggest { left: auto; } /* right-hand column: grow leftwards, stay on screen */
838
+ .suggest-head { display: flex; align-items: center; gap: 5px; padding: 4px 8px 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
839
+ .suggest-head svg { width: 11px; height: 11px; fill: var(--accent); stroke: none; }
840
+ .suggest-item {
841
+ display: flex;
842
+ align-items: baseline;
843
+ justify-content: space-between;
844
+ flex-wrap: wrap;
845
+ gap: 2px 12px;
846
+ width: 100%;
847
+ min-height: 34px;
848
+ padding: 6px 8px;
849
+ border: 0;
850
+ border-radius: 7px;
851
+ background: transparent;
852
+ text-align: left;
853
+ }
854
+ .suggest-item:hover, .suggest-item.active { background: var(--accent-soft); }
855
+ .suggest-value { font-weight: 500; overflow-wrap: break-word; min-width: 0; }
856
+ .suggest-note { font-size: 11px; color: var(--faint); white-space: nowrap; flex: none; }
857
+ .field-label .flag.changed { color: var(--accent); }
858
+ .field-label .flag.removed { color: var(--danger); }
859
+
860
+ .input-wrap { position: relative; display: flex; }
861
+
862
+ input[type="text"], input[type="password"], input:not([type]), select, textarea {
863
+ width: 100%;
864
+ min-width: 0;
865
+ height: 36px;
866
+ padding: 0 10px;
867
+ border: 1px solid var(--field-line);
868
+ border-radius: 6px;
869
+ background: var(--input-bg);
870
+ color: var(--text);
871
+ outline: none;
872
+ }
873
+ textarea { height: auto; min-height: 68px; padding: 8px 10px; resize: vertical; line-height: 1.4; }
874
+ select { padding-right: 28px; -webkit-appearance: none; appearance: none;
875
+ background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
876
+ background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
877
+ background-size: 5px 5px;
878
+ background-repeat: no-repeat;
879
+ }
880
+ input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
881
+ input::placeholder, textarea::placeholder { color: var(--faint); }
882
+ .input-wrap input { padding-right: 34px; }
883
+ .input-wrap .clear {
884
+ position: absolute;
885
+ right: 3px;
886
+ top: 50%;
887
+ transform: translateY(-50%);
888
+ width: 28px;
889
+ height: 28px;
890
+ }
891
+ .input-wrap .clear svg { width: 14px; height: 14px; }
892
+ .field.is-changed input, .field.is-changed textarea { border-color: var(--spot); box-shadow: inset 0 -2px 0 var(--spot); }
893
+ .field.is-removed input { border-color: var(--danger); background: var(--danger-soft); }
894
+ .field.is-mixed input::placeholder { font-style: italic; }
895
+
896
+ .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
897
+
898
+ .file-info {
899
+ display: flex;
900
+ flex-wrap: wrap;
901
+ gap: 6px 12px;
902
+ align-items: center;
903
+ padding: 10px 0 4px;
904
+ color: var(--muted);
905
+ font-size: 12px;
906
+ }
907
+ .file-info .path { width: 100%; overflow-wrap: anywhere; color: var(--faint); }
908
+
909
+ .add-tag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 6px; align-items: center; }
910
+
911
+ .hint { color: var(--muted); font-size: 12px; margin: -4px 0 12px; }
912
+ .hint code, .chip {
913
+ font-family: var(--mono);
914
+ font-size: 12px;
915
+ }
916
+ .chip {
917
+ display: inline-block;
918
+ padding: 2px 7px;
919
+ border-radius: 6px;
920
+ border: 1px solid var(--border);
921
+ background: var(--hover);
922
+ color: var(--text);
923
+ margin: 0 4px 4px 0;
924
+ }
925
+ button.chip:hover { border-color: var(--accent); color: var(--accent); }
926
+
927
+ .error-box {
928
+ padding: 10px 12px;
929
+ border-radius: 8px;
930
+ background: var(--danger-soft);
931
+ color: var(--danger);
932
+ font-size: 13px;
933
+ margin: 12px 0;
934
+ overflow-wrap: anywhere;
935
+ }
936
+
937
+ /* ---- Album art ----------------------------------------------------------------------------- */
938
+
939
+ .art {
940
+ display: flex;
941
+ flex-direction: column;
942
+ align-items: center;
943
+ gap: 8px;
944
+ padding: 16px 0 6px;
945
+ }
946
+ .art-square {
947
+ position: relative;
948
+ width: min(100%, 216px);
949
+ aspect-ratio: 1 / 1;
950
+ padding: 0;
951
+ border-radius: 3px;
952
+ border: 1.5px dashed var(--border-strong);
953
+ background: var(--hover);
954
+ color: var(--muted);
955
+ overflow: hidden;
956
+ display: grid;
957
+ place-items: center;
958
+ transition: border-color 0.15s, background 0.15s;
959
+ }
960
+ .art-square.drag { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
961
+ @media (hover: hover) {
962
+ .art-square:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
963
+ }
964
+ .art-square.has-art { border: 1px solid var(--border); background: var(--hover); box-shadow: var(--shadow); }
965
+ .art-square.has-art:hover { border-color: var(--border); }
966
+ .art-square img { width: 100%; height: 100%; object-fit: cover; display: block; }
967
+ .art-square.has-art::after {
968
+ content: "Replace";
969
+ position: absolute;
970
+ inset: auto 0 0 0;
971
+ padding: 18px 0 10px;
972
+ font-size: 12px;
973
+ font-weight: 600;
974
+ color: #fff;
975
+ background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
976
+ opacity: 0;
977
+ transition: opacity 0.15s;
978
+ }
979
+ @media (hover: hover) { .art-square.has-art:hover::after { opacity: 1; } }
980
+ .art-square.busy { pointer-events: none; }
981
+ .art-square.busy::before {
982
+ content: "";
983
+ position: absolute;
984
+ inset: 0;
985
+ background: color-mix(in srgb, var(--surface) 60%, transparent);
986
+ z-index: 1;
987
+ }
988
+ .art-square.busy::after {
989
+ content: "";
990
+ position: absolute;
991
+ z-index: 2;
992
+ width: 26px;
993
+ height: 26px;
994
+ inset: calc(50% - 13px);
995
+ border-radius: 50%;
996
+ border: 2.5px solid var(--accent-soft);
997
+ border-top-color: var(--accent);
998
+ background: none;
999
+ padding: 0;
1000
+ opacity: 1;
1001
+ animation: spin 0.8s linear infinite;
1002
+ }
1003
+ @keyframes spin { to { transform: rotate(360deg); } }
1004
+ .art-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; padding: 0 12px; text-align: center; }
1005
+ .art-empty svg { width: 22px; height: 22px; }
1006
+ .art-meta { font-size: 12px; color: var(--faint); font-variant-numeric: normal; min-height: 1em; }
1007
+ .art-meta:empty { display: none; }
1008
+ .art-actions { display: flex; gap: 6px; }
1009
+ .art-actions:empty { display: none; }
1010
+
1011
+ /* ---- Activity log (bottom of the editor) ------------------------------------------------------ */
1012
+
1013
+ .activity {
1014
+ flex: none;
1015
+ border-top: 1px solid var(--border);
1016
+ background: var(--surface);
1017
+ padding-bottom: env(safe-area-inset-bottom);
1018
+ }
1019
+ .activity-head {
1020
+ display: flex;
1021
+ align-items: center;
1022
+ gap: 8px;
1023
+ width: 100%;
1024
+ min-height: 40px;
1025
+ padding: 8px 16px;
1026
+ border: 0;
1027
+ background: transparent;
1028
+ text-align: left;
1029
+ font-size: 12px;
1030
+ color: var(--muted);
1031
+ }
1032
+ .activity-head:hover { background: var(--hover); }
1033
+ .activity.open .activity-latest { font-weight: 700; font-size: 14px; }
1034
+ .activity-latest { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
1035
+ .activity.open .activity-latest { color: var(--text); }
1036
+ .activity-time { color: var(--faint); font-variant-numeric: normal; flex: none; }
1037
+ .activity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
1038
+ .activity-dot.ok { background: var(--success); }
1039
+ .activity-dot.err { background: var(--danger); }
1040
+ .activity-chevron { width: 14px; height: 14px; color: var(--faint); transition: transform 0.15s; transform: rotate(180deg); }
1041
+ .activity.open .activity-chevron { transform: none; }
1042
+
1043
+ .activity-list {
1044
+ list-style: none;
1045
+ margin: 0;
1046
+ padding: 0 8px 8px;
1047
+ max-height: 200px;
1048
+ overflow-y: auto;
1049
+ overscroll-behavior: contain;
1050
+ }
1051
+ .act {
1052
+ display: grid;
1053
+ grid-template-columns: 18px minmax(0, 1fr) auto;
1054
+ gap: 8px;
1055
+ align-items: start;
1056
+ padding: 7px 8px;
1057
+ border-radius: 8px;
1058
+ font-size: 12.5px;
1059
+ }
1060
+ .act + .act { margin-top: 1px; }
1061
+ .act.related { background: var(--hover); }
1062
+ .act.new { animation: act-in 1.6s ease-out; }
1063
+ @keyframes act-in { from { background: var(--accent-soft); } }
1064
+ .act-icon {
1065
+ width: 16px;
1066
+ height: 16px;
1067
+ margin-top: 1px;
1068
+ border-radius: 50%;
1069
+ display: grid;
1070
+ place-items: center;
1071
+ font-size: 10px;
1072
+ font-weight: 700;
1073
+ color: var(--on-color);
1074
+ background: var(--success);
1075
+ }
1076
+ .act.err .act-icon { background: var(--danger); }
1077
+ .act-msg { font-weight: 500; overflow-wrap: anywhere; }
1078
+ .act-change, .act-err { color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
1079
+ .act-key {
1080
+ display: inline-block;
1081
+ font-family: var(--mono);
1082
+ font-size: 11px;
1083
+ color: var(--faint);
1084
+ margin-right: 6px;
1085
+ }
1086
+ .act-old { text-decoration: line-through; color: var(--faint); }
1087
+ .act-new { color: var(--text); }
1088
+ .act-removed { color: var(--danger); }
1089
+ .act-err { color: var(--danger); }
1090
+ .act time { color: var(--faint); font-size: 11px; font-variant-numeric: normal; white-space: nowrap; margin-top: 1px; }
1091
+ .act-empty { color: var(--faint); font-size: 12px; padding: 4px 8px 6px; }
1092
+ .act-actions { margin-top: 4px; }
1093
+ .act-undo { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 0; }
1094
+ .act-undo svg { width: 13px; height: 13px; }
1095
+ .act-undone { font-size: 11px; color: var(--faint); font-style: italic; }
1096
+ .act.undone .act-msg { color: var(--muted); }
1097
+
1098
+ /* ---- Dialogs (sheets) ----------------------------------------------------------------- */
1099
+
1100
+ dialog.sheet {
1101
+ width: min(560px, calc(100vw - 32px));
1102
+ max-height: min(760px, calc(100dvh - 48px));
1103
+ padding: 0;
1104
+ border: 1px solid var(--border);
1105
+ border-radius: 16px;
1106
+ background: var(--surface);
1107
+ color: var(--text);
1108
+ box-shadow: var(--shadow-lg);
1109
+ overflow: hidden;
1110
+ }
1111
+ dialog.sheet[open] { display: flex; flex-direction: column; }
1112
+ dialog::backdrop { background: var(--backdrop); }
1113
+
1114
+ .sheet-head {
1115
+ display: flex;
1116
+ align-items: center;
1117
+ justify-content: space-between;
1118
+ padding: 14px 16px 10px 20px;
1119
+ }
1120
+ .sheet-head h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
1121
+ .sheet-body { padding: 4px 20px 16px; overflow-y: auto; flex: 1; min-height: 0; }
1122
+ .sheet-foot {
1123
+ display: flex;
1124
+ justify-content: flex-end;
1125
+ align-items: center;
1126
+ gap: 8px;
1127
+ padding: 12px 20px;
1128
+ padding-bottom: max(12px, env(safe-area-inset-bottom));
1129
+ border-top: 1px solid var(--border);
1130
+ }
1131
+ .sheet-foot .spacer { flex: 1; }
1132
+
1133
+ .segmented {
1134
+ display: flex;
1135
+ padding: 2px;
1136
+ border-radius: 9px;
1137
+ background: var(--hover);
1138
+ gap: 2px;
1139
+ }
1140
+ .segmented label { flex: 1; position: relative; }
1141
+ .segmented input { position: absolute; opacity: 0; pointer-events: none; }
1142
+ .segmented span {
1143
+ display: flex;
1144
+ align-items: center;
1145
+ justify-content: center;
1146
+ height: 30px;
1147
+ padding: 0 10px;
1148
+ border-radius: 7px;
1149
+ font-weight: 500;
1150
+ color: var(--muted);
1151
+ cursor: pointer;
1152
+ text-align: center;
1153
+ white-space: nowrap;
1154
+ }
1155
+ .segmented input:checked + span { background: var(--surface-raised); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
1156
+ .segmented input:focus-visible + span { outline: 2px solid var(--accent); }
1157
+ .segmented input:disabled + span { opacity: 0.4; cursor: default; }
1158
+
1159
+ .check { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); cursor: pointer; }
1160
+
1161
+ .preview { margin-top: 8px; }
1162
+ .preview-summary { font-weight: 500; margin-bottom: 8px; }
1163
+ .preview-list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
1164
+ .preview-item { padding: 10px 12px; border-bottom: 1px solid var(--border); }
1165
+ .preview-item:last-child { border-bottom: 0; }
1166
+ .preview-item .name { font-weight: 500; overflow-wrap: anywhere; }
1167
+ .preview-item .changes { margin-top: 4px; font-size: 13px; color: var(--muted); }
1168
+ .preview-item .changes b { color: var(--text); font-weight: 500; }
1169
+ .preview-item .note { font-size: 12px; color: var(--faint); margin-top: 2px; }
1170
+ .preview-item.error .name { color: var(--danger); }
1171
+
1172
+ .preset-list { display: flex; flex-direction: column; gap: 8px; }
1173
+ .preset-card {
1174
+ display: flex;
1175
+ align-items: center;
1176
+ gap: 12px;
1177
+ padding: 12px 14px;
1178
+ border: 1px solid var(--border);
1179
+ border-radius: 12px;
1180
+ }
1181
+ .preset-card .info { flex: 1; min-width: 0; }
1182
+ .preset-card .name { font-weight: 600; }
1183
+ .preset-card .desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
1184
+ .preset-card .tags { color: var(--faint); font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1185
+
1186
+ .tag-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
1187
+
1188
+ /* ---- Sign in ------------------------------------------------------------------------------------ */
1189
+
1190
+ .auth {
1191
+ position: fixed;
1192
+ inset: 0;
1193
+ z-index: 200;
1194
+ display: grid;
1195
+ place-items: center;
1196
+ padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
1197
+ background: var(--bg);
1198
+ overflow-y: auto;
1199
+ animation: fade-in var(--dur) ease;
1200
+ }
1201
+ .auth-card {
1202
+ width: min(440px, 100%);
1203
+ padding: 8px 0 26px;
1204
+ display: flex;
1205
+ flex-direction: column;
1206
+ animation: dialog-in var(--dur-slow) var(--ease-out);
1207
+ }
1208
+ .auth-logo { color: var(--text); margin-bottom: 30px; padding-bottom: 16px; border-bottom: 1.5px solid var(--text); }
1209
+ .auth-logo .wordmark { font-size: 56px; letter-spacing: -0.045em; }
1210
+ .auth-logo .spot-dot { background: var(--house-spot); }
1211
+ .auth-card h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
1212
+ .auth-sub { color: var(--muted); margin: 6px 0 20px; }
1213
+ .auth-sub:empty { margin-bottom: 12px; }
1214
+ .auth-card .field { margin-bottom: 12px; }
1215
+ .auth-card input { height: 40px; }
1216
+ .auth-submit { height: 40px; margin-top: 6px; }
1217
+ .auth-foot { color: var(--muted); font-size: 12px; margin-top: 14px; }
1218
+ .auth-foot:empty { display: none; }
1219
+ .auth-card .error-box { margin: 0 0 12px; }
1220
+ .auth.shake .auth-card { animation: shake 0.35s ease; }
1221
+ @keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
1222
+
1223
+ /* Profile */
1224
+ .profile { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
1225
+ .avatar-lg {
1226
+ width: 68px; height: 68px; flex: none; padding: 0; border: 0; border-radius: 50%; overflow: hidden; position: relative;
1227
+ display: grid; place-items: center; cursor: pointer;
1228
+ background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px var(--border);
1229
+ }
1230
+ .avatar-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
1231
+ .avatar-lg::after {
1232
+ content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(0, 0, 0, 0); transition: background var(--dur-fast) ease;
1233
+ }
1234
+ @media (hover: hover) { .avatar-lg:hover::after { background: rgba(0, 0, 0, 0.18); } }
1235
+ .avatar-initial { font-size: 28px; font-weight: 650; line-height: 1; }
1236
+ .profile-info { min-width: 0; }
1237
+ .profile-sub { font-size: 12px; color: var(--muted); }
1238
+ .profile-name { font-size: 17px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
1239
+ .profile-actions { display: flex; gap: 6px; margin-top: 8px; }
1240
+ .password-form { padding-top: 14px; border-top: 1px solid var(--border); }
1241
+
1242
+ /* Top-bar profile picture */
1243
+ .avatar-img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1px var(--border-strong); }
1244
+ #account-btn.has-avatar:hover .avatar-img { box-shadow: 0 0 0 2px var(--accent-soft); }
1245
+ .about { margin-bottom: 14px; }
1246
+
1247
+ /* ---- Advanced mode switch and raw tags ---------------------------------------------- */
1248
+
1249
+ .advanced { margin: 0 0 16px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
1250
+ .switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; min-height: 44px; }
1251
+ .switch-text { display: flex; flex-direction: column; gap: 2px; }
1252
+ .switch-title { font-weight: 600; color: var(--text); }
1253
+ .switch-sub { font-size: 12px; color: var(--muted); }
1254
+ input[role="switch"] {
1255
+ appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
1256
+ width: 44px; height: 26px; border-radius: 13px; background: var(--border-strong); cursor: pointer;
1257
+ transition: background-color var(--dur) ease;
1258
+ }
1259
+ input[role="switch"]::after {
1260
+ content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
1261
+ background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform var(--dur) var(--ease-out);
1262
+ }
1263
+ input[role="switch"]:checked { background: var(--spot); }
1264
+ input[role="switch"]:checked::after { transform: translateX(18px); }
1265
+ input[role="switch"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1266
+
1267
+ .raw-system { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
1268
+ .raw-list { padding-bottom: 6px; }
1269
+ .raw-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; }
1270
+ .raw-name { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
1271
+ .raw-value { overflow-wrap: anywhere; white-space: pre-wrap; unicode-bidi: plaintext; }
1272
+ .raw-picture .raw-value, .raw-binary .raw-value { color: var(--muted); font-style: italic; }
1273
+ .raw-more { color: var(--faint); font-style: normal; }
1274
+ .about-head { display: flex; align-items: center; gap: 8px; }
1275
+ .about-head h3 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 650; color: var(--text); text-transform: none; letter-spacing: 0; }
1276
+ .about-head .btn { margin-left: auto; }
1277
+ /* Version badge, same look on the sign-in screen and in the About section. */
1278
+ .version-badge, #about-version { text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; line-height: 1; font-variant-numeric: normal; }
1279
+ .about-status { color: var(--muted); font-size: 13px; margin-top: 6px; }
1280
+ .about-status:empty { display: none; }
1281
+ .about-status a { color: var(--accent); }
1282
+ .update-box { margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--hover); }
1283
+ .release-notes {
1284
+ white-space: pre-wrap; font-size: 12.5px; color: var(--text); max-height: 140px; overflow-y: auto;
1285
+ margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
1286
+ }
1287
+ .update-steps {
1288
+ margin: 0 0 8px; padding: 10px 12px; border-radius: 8px; background: var(--input-bg); border: 1px solid var(--border);
1289
+ font: 12px/1.6 var(--mono); white-space: pre; overflow-x: auto;
1290
+ }
1291
+ /* ---- Credit footer: GitHub · Made with ♥ · version ---------------------------------- */
1292
+
1293
+ .credit {
1294
+ display: flex;
1295
+ align-items: center;
1296
+ justify-content: flex-end;
1297
+ gap: 8px;
1298
+ margin-top: 40px;
1299
+ font-size: 12px;
1300
+ color: var(--faint);
1301
+ user-select: none;
1302
+ }
1303
+ .credit > * + *::before { content: "·"; margin-right: 8px; color: var(--faint); }
1304
+ .credit-version:empty { display: none; }
1305
+ .credit-version { font-variant-numeric: normal; }
1306
+ .credit-link {
1307
+ display: inline-flex; align-items: center; justify-content: center;
1308
+ width: 24px; height: 24px; margin: -4px; border-radius: 6px;
1309
+ color: var(--faint); transition: color var(--dur-fast) ease;
1310
+ }
1311
+ .credit-link svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
1312
+ .credit-link:hover, .credit-link:focus-visible { color: var(--text); }
1313
+ .credit-heart { color: var(--faint); }
1314
+ .credit:hover .credit-heart { color: var(--spot); transition: color var(--dur) ease; }
1315
+ .auth-credit {
1316
+ position: absolute;
1317
+ right: max(20px, env(safe-area-inset-right));
1318
+ bottom: max(16px, env(safe-area-inset-bottom));
1319
+ margin: 0;
1320
+ }
1321
+ @media (max-width: 760px) {
1322
+ .credit { justify-content: center; }
1323
+ .auth-credit { left: 0; right: 0; }
1324
+ .credit-link { width: 44px; height: 44px; margin: -14px -10px; } /* touch target */
1325
+ }
1326
+ #account-btn { position: relative; }
1327
+ #account-btn.has-update::after {
1328
+ content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%;
1329
+ background: var(--accent); box-shadow: 0 0 0 2px var(--glass);
1330
+ }
1331
+ .password-form h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--text); }
1332
+
1333
+ /* ---- Toasts -------------------------------------------------------------------------------- */
1334
+
1335
+ .toasts {
1336
+ position: fixed;
1337
+ bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); /* above the selection bar */
1338
+ left: 50%;
1339
+ transform: translateX(-50%);
1340
+ display: flex;
1341
+ flex-direction: column;
1342
+ gap: 8px;
1343
+ z-index: 100;
1344
+ pointer-events: none;
1345
+ width: min(420px, calc(100vw - 32px));
1346
+ }
1347
+ .toast {
1348
+ padding: 10px 14px;
1349
+ border-radius: 12px;
1350
+ background: var(--surface-raised);
1351
+ border: 1px solid var(--border);
1352
+ box-shadow: var(--shadow);
1353
+ font-weight: 500;
1354
+ overflow-wrap: anywhere;
1355
+ }
1356
+ .toast.error { color: var(--danger); }
1357
+ .toast-icon { display: inline-flex; vertical-align: -3px; margin-right: 8px; color: var(--success); }
1358
+ .toast-icon svg { width: 16px; height: 16px; stroke-width: 2.2; }
1359
+ .act-icon svg { width: 11px; height: 11px; stroke-width: 2.6; }
1360
+
1361
+ /* ---- Motion ---------------------------------------------------------------------------------------- */
1362
+
1363
+ /* Small state changes ease instead of snapping. */
1364
+ .btn, .icon-btn, .folder, .track-row, .chip, .chip-x, .link-btn, .segmented span,
1365
+ .suggest-item, .activity-head, .search, .check-cell input, .copy-box,
1366
+ input[type="text"], input:not([type]), select, textarea {
1367
+ transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease,
1368
+ color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, opacity var(--dur-fast) ease;
1369
+ }
1370
+ .btn:active, .icon-btn:active { transform: scale(0.97); }
1371
+ .btn, .icon-btn { transition-property: background-color, border-color, color, box-shadow, opacity, transform; }
1372
+
1373
+ /* Folder navigation: content slides in from the direction you're going. */
1374
+ .nav-forward { animation: nav-in-forward var(--dur-slow) var(--ease-out) both; }
1375
+ .nav-back { animation: nav-in-back var(--dur-slow) var(--ease-out) both; }
1376
+ .nav-fade { animation: fade-in var(--dur) var(--ease-out) both; }
1377
+ #folders.nav-forward, #folders.nav-back { animation-delay: 20ms; }
1378
+ #tracks.nav-forward, #tracks.nav-back, #tracks.nav-fade { animation-delay: 40ms; }
1379
+ /* Keep content readable on very wide monitors. */
1380
+ .browser > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
1381
+
1382
+ /* While a slow folder loads, the current one stays visible, just dimmed. */
1383
+ .browser > * { transition: opacity var(--dur) ease; }
1384
+ .browser.is-loading > * { opacity: 0.55; pointer-events: none; }
1385
+ @keyframes nav-in-forward { from { opacity: 0; translate: 14px 0; } }
1386
+ @keyframes nav-in-back { from { opacity: 0; translate: -14px 0; } }
1387
+ @keyframes fade-in { from { opacity: 0; } }
1388
+ @keyframes fade-out { to { opacity: 0; } }
1389
+
1390
+ /* Editor panel: slides in from the right on desktop. */
1391
+ .editor:not([hidden]) { animation: panel-in var(--dur-slow) var(--ease-out); }
1392
+ .editor.closing { animation: panel-out 160ms var(--ease-in) forwards; pointer-events: none; }
1393
+ @keyframes panel-in { from { opacity: 0; translate: 28px 0; } }
1394
+ @keyframes panel-out { to { opacity: 0; translate: 28px 0; } }
1395
+
1396
+ /* Dialogs: a gentle scale-up with a fading backdrop. */
1397
+ dialog.sheet[open] { animation: dialog-in var(--dur) var(--ease-out); }
1398
+ dialog.sheet[open]::backdrop { animation: fade-in var(--dur) ease; }
1399
+ dialog.sheet.closing { animation: dialog-out 150ms var(--ease-in) forwards; }
1400
+ dialog.sheet.closing::backdrop { animation: fade-out 150ms ease forwards; }
1401
+ @keyframes dialog-in { from { opacity: 0; scale: 0.96; translate: 0 6px; } }
1402
+ @keyframes dialog-out { to { opacity: 0; scale: 0.97; translate: 0 4px; } }
1403
+
1404
+ /* Popovers and small pieces. */
1405
+ .suggest:not([hidden]) { animation: pop-in 140ms var(--ease-out); transform-origin: top center; }
1406
+ .filter-chip { animation: pop-in var(--dur) var(--ease-out); }
1407
+ .activity-list:not([hidden]) { animation: list-open var(--dur) var(--ease-out); }
1408
+ .activity-chevron { transition: transform var(--dur) var(--ease-out); }
1409
+ .group > summary::after { transition: transform var(--dur) var(--ease-out); }
1410
+ @keyframes pop-in { from { opacity: 0; translate: 0 -4px; scale: 0.98; } }
1411
+ @keyframes list-open { from { opacity: 0; translate: 0 6px; } }
1412
+
1413
+ /* Album art fades in once it has loaded. */
1414
+ .art-square img { opacity: 0; transition: opacity var(--dur-slow) ease; }
1415
+ .art-square img.loaded { opacity: 1; }
1416
+
1417
+ /* Selection bar and toasts rise up, and sink away when they leave. */
1418
+ .selection-bar:not([hidden]) { animation: rise-in var(--dur-slow) var(--ease-out); }
1419
+ .selection-bar.leaving { animation: sink-out 160ms var(--ease-in) forwards; }
1420
+ .toast { animation: rise-in var(--dur) var(--ease-out); }
1421
+ .toast.leaving { animation: sink-out 200ms var(--ease-in) forwards; }
1422
+ @keyframes rise-in { from { opacity: 0; translate: 0 14px; } }
1423
+ @keyframes sink-out { to { opacity: 0; translate: 0 10px; } }
1424
+
1425
+ /* Theme switch crossfade (browsers with View Transitions). */
1426
+ ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: ease; }
1427
+
1428
+ @media (prefers-reduced-motion: reduce) {
1429
+ *, *::before, *::after { animation: none !important; transition: none !important; }
1430
+ }
1431
+
1432
+ /* ---- Medium screens: narrower columns ------------------------------------------------------- */
1433
+
1434
+ @media (max-width: 1180px) {
1435
+ .track-row { grid-template-columns: var(--cols-mid, 44px 40px 48px minmax(0, 2fr) minmax(0, 1.4fr) 76px 60px 56px); }
1436
+ .track-row .col-album { display: none; }
1437
+ }
1438
+
1439
+ /* ---- Phones & small tablets ------------------------------------------------------------------------ */
1440
+
1441
+ @media (max-width: 760px) {
1442
+ body { font-size: 15px; }
1443
+
1444
+ /* iOS zooms into inputs smaller than 16px; keep them at 16px. */
1445
+ input, select, textarea { font-size: 16px !important; }
1446
+ input[type="text"], input:not([type]), select { height: 40px; }
1447
+
1448
+ .topbar { flex-wrap: wrap; gap: 8px 10px; padding-bottom: 8px; }
1449
+ .brand .wordmark { display: none; }
1450
+ .brand .brand-icon { display: grid; }
1451
+ .crumbs { order: 3; flex-basis: 100%; margin: 0 -6px; }
1452
+ /* Row 1: logo + tools. Row 2: the search bar, full width. Row 3: where you are. */
1453
+ .topbar-actions { display: contents; }
1454
+ .topbar-actions > .icon-btn:first-of-type { margin-left: auto; }
1455
+ .topbar-actions > .icon-btn { margin-left: -6px; }
1456
+ .search-wrap { order: 2; flex: 1 1 100%; gap: 0; }
1457
+ .search { flex: 1; width: auto; height: 42px; border-radius: 10px; padding: 0 12px; }
1458
+ .search-wrap.active .search { width: auto; }
1459
+ .search-cancel {
1460
+ display: block; flex: none; max-width: 0; overflow: hidden; opacity: 0; padding: 0; margin: 0;
1461
+ height: 44px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 16px; font-weight: 500;
1462
+ white-space: nowrap; cursor: pointer;
1463
+ transition: max-width 320ms var(--ease-out), opacity 220ms ease, padding 320ms var(--ease-out);
1464
+ }
1465
+ .search-wrap.active .search-cancel { max-width: 90px; opacity: 1; padding: 0 2px 0 12px; }
1466
+ .icon-btn { width: 40px; height: 40px; }
1467
+
1468
+ .browser { padding: 16px max(16px, env(safe-area-inset-right)) 120px max(16px, env(safe-area-inset-left)); }
1469
+ .folder-head h1 { font-size: 30px; }
1470
+ .album-head { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
1471
+ .album-cover { width: 96px; height: 96px; }
1472
+ .album-head h1 { font-size: 30px; }
1473
+ .album-meta { font-size: 14px; }
1474
+ .folders { grid-template-columns: 1fr; gap: 0; border-top: 1.5px solid var(--text); }
1475
+ .folder { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; min-height: 52px; background: transparent; }
1476
+
1477
+ .track-row { grid-template-columns: 48px 52px minmax(0, 1fr) auto 52px; min-height: 62px; }
1478
+ .track-row:not(.head) { contain-intrinsic-size: auto 62px; }
1479
+ .track-row.head { display: none; }
1480
+ .track-row .col-num, .track-row .col-artist, .track-row .col-album, .track-row .col-fmt { display: none; }
1481
+ .track-row .col-title { white-space: normal; padding-top: 8px; padding-bottom: 8px; }
1482
+ .track-row .col-title .main { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1483
+ .track-row .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1484
+ .track-row .col-dur { padding-right: 14px; }
1485
+ .check-cell { height: 58px; }
1486
+ .check-cell input { width: 22px; height: 22px; }
1487
+
1488
+ /* Selection circles only appear after tapping "Select". */
1489
+ .tracks:not(.selecting) .track-row { grid-template-columns: 62px minmax(0, 1fr) auto 52px; }
1490
+ .tracks:not(.selecting) .check-cell { display: none; }
1491
+ .tracks:not(.selecting) .track-row .col-art { padding-left: 14px; }
1492
+ .track-row .col-art img, .track-row .art-none { width: 44px; height: 44px; border-radius: 2px; }
1493
+ .tracks.selecting .check-cell { animation: pop-in var(--dur) var(--ease-out); }
1494
+ .folder-actions { flex-wrap: wrap; justify-content: flex-end; }
1495
+
1496
+ /* The editor becomes a full-screen sheet. */
1497
+ .editor {
1498
+ position: fixed;
1499
+ inset: 0;
1500
+ width: auto;
1501
+ z-index: 20;
1502
+ border-left: 0;
1503
+ padding-top: env(safe-area-inset-top);
1504
+ }
1505
+ .editor:not([hidden]) { animation: sheet-up 340ms var(--ease-out); }
1506
+ .editor.closing { animation: sheet-down 240ms var(--ease-in) forwards; }
1507
+ .editor-head { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
1508
+ .editor-body { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
1509
+ .btn { height: 38px; }
1510
+
1511
+ .selection-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; max-width: none; }
1512
+
1513
+ dialog.sheet {
1514
+ width: 100vw;
1515
+ max-width: 100vw;
1516
+ max-height: calc(100dvh - env(safe-area-inset-top) - 12px);
1517
+ margin: auto 0 0;
1518
+ border-radius: 16px 16px 0 0;
1519
+ border-bottom: 0;
1520
+ }
1521
+ dialog.sheet.small { width: 100vw; }
1522
+ dialog.sheet[open] { animation: sheet-up 340ms var(--ease-out); }
1523
+ dialog.sheet.closing { animation: sheet-down 240ms var(--ease-in) forwards; }
1524
+ .row-2 { gap: 8px; }
1525
+ .art-square { width: min(62vw, 220px); }
1526
+ .activity-list { max-height: 34vh; }
1527
+ }
1528
+
1529
+ /* Phone sheets slide fully from the bottom and stay solid, like iOS. */
1530
+ @keyframes sheet-up { from { translate: 0 100%; } }
1531
+ @keyframes sheet-down { to { translate: 0 100%; } }
1532
+
1533
+ /* Phones: a firmer, iOS-like push that never starts fully invisible. */
1534
+ @media (max-width: 760px) {
1535
+ .nav-forward { animation-name: nav-in-forward-phone; animation-duration: 300ms; }
1536
+ .nav-back { animation-name: nav-in-back-phone; animation-duration: 300ms; }
1537
+ #folders.nav-forward, #folders.nav-back, #tracks.nav-forward, #tracks.nav-back { animation-delay: 0ms; }
1538
+ }
1539
+ @keyframes nav-in-forward-phone { from { opacity: 0.35; translate: 36px 0; } }
1540
+ @keyframes nav-in-back-phone { from { opacity: 0.35; translate: -36px 0; } }
1541
+
1542
+ @media (min-width: 761px) {
1543
+ .editor-close { order: 0; }
1544
+ /* With the editor open, centre the selection bar and toasts over the track list,
1545
+ so they never cover the editor (e.g. the activity log's Undo buttons). */
1546
+ body:has(.editor:not([hidden])) .selection-bar,
1547
+ body:has(.editor:not([hidden])) .toasts { left: calc((100% - 500px) / 2); }
1548
+ body:has(.editor:not([hidden])) .selection-bar { max-width: calc(100vw - 500px - 24px); }
1549
+ }
1550
+
1551
+ /* Lyrics: a comfortable box for long (and synced) text. */
1552
+ .lyrics-input { min-height: 220px; line-height: 1.55; resize: vertical; font-variant-numeric: normal; }
1553
+ .lyrics-lookup { margin-top: 8px; }
1554
+ .lyrics-lookup-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
1555
+ .lyrics-lookup-row .btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; margin-right: 4px; }
1556
+ .lyrics-found {
1557
+ margin-top: 10px; padding: 12px; border-radius: 12px;
1558
+ background: var(--accent-soft); border: 1px solid var(--border); animation: pop-in var(--dur) var(--ease-out);
1559
+ }
1560
+ .lyrics-found-head { font-size: 13px; margin-bottom: 8px; }
1561
+ .lyrics-found-head span { color: var(--muted); }
1562
+ .lyrics-preview {
1563
+ margin: 0 0 10px; padding: 10px; border-radius: 8px; background: var(--surface); max-height: 180px; overflow: auto;
1564
+ font: 13px/1.5 inherit; font-family: inherit; white-space: pre-wrap; unicode-bidi: plaintext;
1565
+ }
1566
+ .lyrics-found-actions { display: flex; gap: 8px; flex-wrap: wrap; }
1567
+ .field-hint.is-info { color: var(--muted); }
1568
+
1569
+ /* ---- Credits sheet: the editor's fields set like liner-notes credits ------------------ */
1570
+
1571
+ .editor .field input[type="text"], .editor .field input:not([type]),
1572
+ .auth-card input[type="text"], .auth-card input[type="password"] {
1573
+ border-color: transparent; border-bottom-color: var(--field-line); border-radius: 0; background: transparent; padding-left: 2px;
1574
+ }
1575
+ .editor .field input:hover, .auth-card input:hover { border-bottom-color: var(--text); }
1576
+ .editor .field input:focus, .auth-card input:focus {
1577
+ border-color: var(--spot); border-radius: 4px; background: var(--input-bg); padding-left: 10px;
1578
+ }
1579
+ .editor .field.is-removed input { background: var(--danger-soft); }
1580
+ .editor .input-wrap .clear { opacity: 0; transition: opacity var(--dur-fast) ease; }
1581
+ .editor .input-wrap:hover .clear, .editor .input-wrap:focus-within .clear { opacity: 1; }
1582
+ @media (hover: none) { .editor .input-wrap .clear { opacity: 1; } } /* touch: no hover to reveal it */
1583
+
1584
+ @media (min-width: 761px) {
1585
+ .editor .field { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 14px; align-items: start; margin: 0; padding: 3px 0; }
1586
+ .editor .field > .field-label { grid-column: 1; padding-top: 10px; margin: 0; flex-wrap: wrap; row-gap: 2px; }
1587
+ .editor .field > .field-label .flag { margin-left: 0; flex-basis: 100%; }
1588
+ .editor .field > :not(.field-label) { grid-column: 2; }
1589
+ .editor .row-2 { display: block; }
1590
+ .auth-card .field { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; align-items: center; }
1591
+ .auth-card .field > .field-label { margin: 0; }
1592
+ }
1593
+
1594
+ @media (max-width: 760px) {
1595
+ /* One album on a phone: the track number takes the thumbnail's place, like a booklet. */
1596
+ .tracks.one-album .track-row .col-num { display: block; text-align: left; padding-left: 16px; }
1597
+ /* Breadcrumbs: just the way back, since the page title already names where you are. */
1598
+ .crumbs a, .crumbs .sep { display: none; }
1599
+ .crumbs a:nth-last-of-type(2) { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; color: var(--text); }
1600
+ .crumbs a:nth-last-of-type(2)::before {
1601
+ content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 1.8px 1.8px; transform: rotate(45deg); flex: none;
1602
+ }
1603
+ .crumbs:not(:has(a:nth-last-of-type(2))) { display: none; }
1604
+ }
1605
+
1606
+ /* ---- Connections: first-run choice and Account → Connections ------------------------ */
1607
+
1608
+ .welcome { z-index: 210; } /* above the app; the sign-in overlay is already gone */
1609
+ .welcome-card { width: min(520px, 100%); }
1610
+ .choices { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; min-width: 0; }
1611
+ .choice {
1612
+ display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; min-height: 44px; cursor: pointer;
1613
+ border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface);
1614
+ transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
1615
+ }
1616
+ .choice:hover { border-color: var(--text); }
1617
+ .auth-card .choice input {
1618
+ appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0;
1619
+ border: 1.5px solid var(--field-line); border-radius: 50%; background: var(--input-bg); display: grid; place-items: center;
1620
+ }
1621
+ .choice input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--spot); transform: scale(0); transition: transform var(--dur-fast) var(--ease-out); }
1622
+ .choice input:checked { border-color: var(--spot); }
1623
+ .choice input:checked::after { transform: scale(1); }
1624
+ .choice input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1625
+ .choice:has(input:checked) { border-color: var(--spot); box-shadow: inset 0 0 0 1px var(--spot); }
1626
+ .choice-body { display: flex; flex-direction: column; gap: 3px; }
1627
+ .choice-title { font-weight: 700; }
1628
+ .choice-sub { font-size: 13px; color: var(--muted); }
1629
+ .welcome-list { border-top: 1.5px solid var(--text); margin-bottom: 14px; animation: fade-in var(--dur) ease; }
1630
+ .welcome-list .conn-row { padding: 12px 0; border-bottom: 1px solid var(--rule); }
1631
+
1632
+ .connections { margin: 0 0 16px; }
1633
+ .section-title { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
1634
+ .conn-intro { margin: 0 0 4px; }
1635
+ .connections .conn-row { padding: 10px 0; border-top: 1px solid var(--rule); }
1636
+ .connections .conn-row:first-child { border-top: 0; }
1637
+ .conn-row { align-items: flex-start; }
1638
+ .conn-row input[role="switch"] { margin-top: 2px; }
1639
+ .conn-sends { font-size: 12px; color: var(--faint); margin-top: 2px; }
1640
+ .conn-sends b { font-weight: 600; color: var(--muted); }
1641
+ .conn-hosts { font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }
1642
+ .conn-lock { font-size: 12px; color: var(--warning); margin-top: 2px; }
1643
+ .conn-row.locked { cursor: default; }
1644
+ .conn-row.locked input[role="switch"] { opacity: 0.5; cursor: default; }
1645
+
1646
+ /* ---- Match on MusicBrainz ------------------------------------------------------------- */
1647
+
1648
+ dialog.sheet.wide { width: min(760px, calc(100vw - 32px)); }
1649
+ .mb-lead { color: var(--muted); margin: 0 0 14px; }
1650
+ .mb-search, .mb-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
1651
+ .mb-link { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 14px; }
1652
+ .mb-search .field, .mb-link .field { margin: 0 0 10px; }
1653
+ .mb-search .btn, .mb-link .btn { margin-bottom: 10px; height: 36px; }
1654
+ .mb-empty { color: var(--muted); padding: 20px 0; }
1655
+ .mb-cands { border-top: 1.5px solid var(--text); }
1656
+ .mb-cand {
1657
+ display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%;
1658
+ padding: 10px 4px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; cursor: pointer;
1659
+ border-radius: 0;
1660
+ }
1661
+ .mb-cand:hover { background: var(--hover); }
1662
+ .mb-cand:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
1663
+ .mb-thumb { width: 56px; height: 56px; border-radius: 3px; object-fit: cover; display: block; background: var(--hover); box-shadow: 0 0 0 1px var(--border); }
1664
+ .mb-noart { display: grid; place-items: center; color: var(--faint); padding: 0; }
1665
+ .mb-noart svg { width: 22px; height: 22px; }
1666
+ .mb-cand-main, .mb-release-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
1667
+ .mb-cand-title { font-weight: 650; overflow-wrap: anywhere; }
1668
+ .mb-dis { font-weight: 400; color: var(--muted); }
1669
+ .mb-cand-artist { color: var(--text); font-size: 14px; }
1670
+ .mb-cand-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
1671
+ .mb-cand-side { display: flex; align-items: center; gap: 8px; }
1672
+ .mb-score { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
1673
+ .mb-score.good { color: var(--success); }
1674
+ .mb-score.ok { color: var(--warning); }
1675
+ .mb-score.low { color: var(--faint); }
1676
+ .mb-chev svg { width: 16px; height: 16px; color: var(--faint); display: block; }
1677
+ .mb-credit { font-size: 12px; color: var(--faint); }
1678
+ .mb-credit a { color: inherit; }
1679
+
1680
+ .mb-release { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1.5px solid var(--text); }
1681
+ .mb-release .mb-thumb { width: 72px; height: 72px; }
1682
+ .mb-release-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
1683
+ .mb-release-links a { color: var(--accent); font-weight: 500; }
1684
+
1685
+ .mb-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
1686
+ .mb-group { border-bottom: 1px solid var(--rule); }
1687
+ .mb-group-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
1688
+ .mb-group-row .check { margin: 0; color: var(--text); }
1689
+ .mb-group-more { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; min-height: 32px; }
1690
+ .mb-group-more svg { width: 14px; height: 14px; transition: transform var(--dur-fast) ease; }
1691
+ .mb-group.open .mb-group-more svg { transform: rotate(90deg); }
1692
+ .mb-group-fields { display: grid; gap: 2px; padding: 0 0 10px 28px; }
1693
+ .mb-group-fields .check { margin: 0; min-height: 32px; font-size: 13px; }
1694
+ .mb-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin-top: 8px; }
1695
+
1696
+ .mb-files { border-top: 1.5px solid var(--text); }
1697
+ .mb-file { padding: 10px 0; border-bottom: 1px solid var(--rule); }
1698
+ .mb-file-head { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 46%); gap: 10px; align-items: center; }
1699
+ .mb-file-icon svg { width: 18px; height: 18px; display: block; }
1700
+ .mb-file.ok .mb-file-icon { color: var(--success); }
1701
+ .mb-file.check .mb-file-icon, .mb-file.skip .mb-file-icon { color: var(--warning); }
1702
+ .mb-file-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
1703
+ .mb-file .note { font-size: 12px; color: var(--muted); margin: 4px 0 0 30px; }
1704
+ .mb-file.check .note:first-of-type, .mb-file.skip .note:first-of-type { color: var(--warning); }
1705
+ .mb-file.error .mb-file-name { color: var(--danger); }
1706
+ .mb-diff { margin: 4px 0 0 30px; }
1707
+ .mb-diff summary { font-size: 12px; color: var(--accent); cursor: pointer; min-height: 28px; display: inline-flex; align-items: center; }
1708
+ .mb-diff-list { margin-top: 4px; }
1709
+ .mb-diff-row { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr); gap: 10px; padding: 4px 0; font-size: 13px; border-top: 1px solid var(--rule); }
1710
+ .mb-diff-key { color: var(--muted); }
1711
+ .mb-diff-val { overflow-wrap: anywhere; }
1712
+ .mb-old { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
1713
+ .mb-new { color: var(--text); font-weight: 500; }
1714
+
1715
+ @media (max-width: 760px) {
1716
+ dialog.sheet.wide { width: 100vw; }
1717
+ .mb-search { grid-template-columns: minmax(0, 1fr); gap: 0; }
1718
+ .mb-search .btn, .mb-link .btn { height: 40px; }
1719
+ .mb-groups, .mb-options { grid-template-columns: minmax(0, 1fr); }
1720
+ .mb-file-head { grid-template-columns: 20px minmax(0, 1fr); }
1721
+ .mb-file-head select { grid-column: 2; }
1722
+ .mb-cand { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
1723
+ .mb-cand .mb-thumb { width: 48px; height: 48px; }
1724
+ .mb-chev { display: none; }
1725
+ .choice { padding: 14px; }
1726
+ }
1727
+ .mb-current { margin-top: 4px; }
1728
+ .mb-sound {
1729
+ display: flex; align-items: center; justify-content: space-between; gap: 14px;
1730
+ padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--border-strong); border-radius: 10px;
1731
+ }
1732
+ .mb-sound-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); min-width: 0; }
1733
+ .mb-sound-text strong { color: var(--text); font-size: 14px; }
1734
+ .mb-sound .btn { flex: none; }
1735
+ .mb-heard { font-size: 12px; color: var(--success); font-weight: 500; }
1736
+
1737
+ /* ---- Find in MusicBrainz: hollow button with a MusicBrainz-coloured gradient edge ---- */
1738
+
1739
+ .album-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
1740
+ .album-chips .spot-chip { margin-top: 0; }
1741
+ .mb-find {
1742
+ --mb-plum: #ba478f; --mb-orange: #eb743b;
1743
+ display: inline-flex; padding: 1.5px; border: 0; border-radius: 7px; cursor: pointer; color: var(--text);
1744
+ background: linear-gradient(115deg, var(--mb-plum) 0%, var(--mb-orange) 35%, var(--mb-plum) 70%, var(--mb-orange) 100%);
1745
+ background-size: 240% 240%; background-position: 0% 50%;
1746
+ transition: transform var(--dur) var(--ease-out), box-shadow 280ms ease;
1747
+ }
1748
+ .mb-find-inner {
1749
+ display: inline-flex; align-items: center; gap: 7px; height: 29px; padding: 0 11px;
1750
+ border-radius: 5.5px; background: var(--bg); font-size: 13px; font-weight: 600; white-space: nowrap;
1751
+ transition: background-color var(--dur) ease;
1752
+ }
1753
+ .mb-find .mb-logo { width: 16px; height: 16px; stroke: none; }
1754
+ .mb-logo .mb-l { fill: var(--mb-plum); }
1755
+ .mb-logo .mb-r { fill: var(--mb-orange); }
1756
+ .mb-logo .mb-cut { fill: var(--bg); opacity: 0.3; }
1757
+ .mb-find-short { display: none; }
1758
+ .mb-find:hover {
1759
+ animation: mb-shift 2.2s ease infinite;
1760
+ box-shadow: 0 0 16px -2px rgba(186, 71, 143, 0.45), 0 0 22px -4px rgba(235, 116, 59, 0.35);
1761
+ transform: translateY(-1px);
1762
+ }
1763
+ .mb-find:hover .mb-find-inner { background: color-mix(in oklab, var(--bg) 94%, var(--text)); }
1764
+ .mb-find:active { transform: scale(0.985); }
1765
+ .mb-find:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1766
+ @keyframes mb-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
1767
+ @media (prefers-reduced-motion: reduce) {
1768
+ .mb-find:hover { animation: none; transform: none; }
1769
+ }
1770
+ .mb-find.in-actions { margin-right: auto; } /* far left, opposite Apply preset */
1771
+ .mb-find.phone-only { display: none; }
1772
+
1773
+ @media (max-width: 760px) {
1774
+ .mb-find.beside-genre { display: none; }
1775
+ .mb-find.phone-only { display: inline-flex; }
1776
+ .folder-actions:has(.mb-find) { flex: 1 1 100%; }
1777
+ .mb-find-inner { height: 37px; padding: 0 13px; } /* 40px touch target with the edge */
1778
+ .mb-find-long { display: none; }
1779
+ .mb-find-short { display: inline; }
1780
+ }
1781
+
1782
+ /* Connections: a section you can open and close */
1783
+ .conn-toggle {
1784
+ display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px;
1785
+ padding: 6px 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit;
1786
+ }
1787
+ .conn-toggle svg { color: var(--faint); transition: transform var(--dur) var(--ease-out); }
1788
+ .connections.open .conn-toggle svg { transform: rotate(90deg); }
1789
+ .connections { padding-bottom: 4px; }
1790
+ #conn-body { padding-top: 4px; animation: fade-in var(--dur) ease; }
1791
+
1792
+ /* ---- Multi-disc albums: a "Disc 2" line between discs ------------------------------- */
1793
+
1794
+ .disc-head {
1795
+ display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 18px 14px 8px;
1796
+ border-bottom: 1px solid var(--rule); color: var(--text); font-weight: 700; font-size: 14px;
1797
+ }
1798
+ .disc-head:first-of-type { padding-top: 10px; }
1799
+ .disc-spin { display: inline-grid; color: var(--spot); }
1800
+ .disc-spin svg { width: 20px; height: 20px; }
1801
+ .disc-sub { color: var(--muted); font-weight: 500; }
1802
+ .disc-head:hover .disc-spin, .disc-head.spinning .disc-spin { animation: disc-spin 2.4s linear infinite; }
1803
+ .disc-head.spinning .disc-spin { animation-duration: 4s; }
1804
+ @keyframes disc-spin { to { transform: rotate(360deg); } }
1805
+ .num-disc { display: none; }
1806
+ @media (hover: hover) {
1807
+ .tracks.multi-disc .track-row:hover .num-track { display: none; }
1808
+ .tracks.multi-disc .track-row:hover .num-disc { display: inline; color: var(--spot); }
1809
+ }
1810
+
1811
+ /* ---- Player: a play button at the end of each row ------------------------------------- */
1812
+
1813
+ .col-play { position: relative; align-self: stretch; }
1814
+ .play-btn {
1815
+ position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
1816
+ display: inline-flex; align-items: center; gap: 0; height: 32px; min-width: 32px; padding: 0 8px;
1817
+ border: 1px solid var(--border-strong); border-radius: 16px; background: var(--bg); color: var(--text);
1818
+ font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
1819
+ transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease, gap var(--dur) var(--ease-out),
1820
+ padding var(--dur) var(--ease-out), background-color var(--dur-fast) ease;
1821
+ }
1822
+ .play-btn svg { width: 14px; height: 14px; }
1823
+ .play-label { display: inline-block; max-width: 0; overflow: hidden; opacity: 0;
1824
+ transition: max-width var(--dur) var(--ease-out), opacity var(--dur-fast) ease; }
1825
+ @media (hover: hover) {
1826
+ .play-btn:hover, .play-btn:focus-visible {
1827
+ gap: 6px; padding: 0 12px 0 10px; border-color: var(--spot); color: var(--spot); transform: translateY(-50%) scale(1.06);
1828
+ }
1829
+ .play-btn:hover .play-label, .play-btn:focus-visible .play-label { max-width: 60px; opacity: 1; }
1830
+ }
1831
+ .play-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1832
+ .track-row.is-current .play-btn { background: var(--spot); border-color: var(--spot); color: var(--on-color); }
1833
+ .track-row.is-current .col-title .main { color: var(--spot); }
1834
+ @media (prefers-reduced-motion: reduce) {
1835
+ .disc-head:hover .disc-spin, .disc-head.spinning .disc-spin { animation: none; }
1836
+ }
1837
+ @media (max-width: 760px) {
1838
+ .disc-head { padding-left: 16px; min-height: 48px; }
1839
+ .play-btn { right: 8px; height: 40px; min-width: 40px; border-radius: 20px; padding: 0 12px; } /* touch target */
1840
+ }
1841
+ .track-row .col-play { overflow: visible; } /* the button grows left over the time when pointed at */
1842
+ .tracks.multi-disc .track-row .col-num { overflow: visible; text-overflow: clip; }
1843
+ .num-disc { font-size: 12.5px; letter-spacing: -0.02em; }
1844
+ .col-dur { transition: opacity var(--dur-fast) ease; }
1845
+ .track-row:has(.play-btn:hover) .col-dur, .track-row:has(.play-btn:focus-visible) .col-dur { opacity: 0; }
1846
+
1847
+ /* ---- Organize ------------------------------------------------------------------------------- */
1848
+
1849
+ .org-pattern-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
1850
+ .org-pattern { font-family: var(--mono); font-size: 13px; }
1851
+ .org-pattern-row select { width: auto; }
1852
+ .org-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
1853
+ .chip-btn {
1854
+ min-height: 30px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 6px;
1855
+ background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer;
1856
+ }
1857
+ .chip-btn:hover { border-color: var(--spot); color: var(--spot); }
1858
+ .org-help { margin: 8px 0 0; }
1859
+ .org-example { display: grid; gap: 2px; margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--spot); background: var(--hover); border-radius: 0 6px 6px 0; }
1860
+ .org-example:empty { display: none; }
1861
+ .org-example code { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
1862
+ .org-ex-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
1863
+ .org-example .hint { margin: 2px 0 0; }
1864
+ .org-ex-error { color: var(--danger); font-size: 13px; }
1865
+ .org-list { border-top: 1.5px solid var(--text); }
1866
+ .org-move { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
1867
+ .org-from { color: var(--muted); overflow-wrap: anywhere; }
1868
+ .org-to { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
1869
+ .org-move.conflict .note, .org-move.error .note { color: var(--danger); }
1870
+ .org-move .note { font-size: 12px; color: var(--faint); margin-top: 2px; }
1871
+ @media (max-width: 760px) {
1872
+ .org-pattern-row { grid-template-columns: minmax(0, 1fr); }
1873
+ .chip-btn { min-height: 36px; }
1874
+ }
1875
+ .org-warn { font-size: 13px; color: var(--warning); background: var(--warning-soft); padding: 8px 10px; border-radius: 6px; margin: 0 0 10px; }
1876
+
1877
+ /* ---- Now playing: a long pill at the bottom centre, grown out of a circle ----------------- */
1878
+
1879
+ .now-playing {
1880
+ --np-w: min(580px, calc(100vw - 32px));
1881
+ position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90;
1882
+ width: var(--np-w); height: 68px; transform: translateX(-50%);
1883
+ border-radius: 34px; overflow: hidden;
1884
+ background: var(--surface-raised); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
1885
+ }
1886
+ .np-inner { display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 10px 0 10px; }
1887
+ .np-art {
1888
+ width: 48px; height: 48px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
1889
+ background: var(--hover); color: var(--faint);
1890
+ }
1891
+ .np-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
1892
+ .now-playing.is-playing .np-art img { animation: disc-spin 12s linear infinite; } /* the cover turns like a record */
1893
+ .np-info {
1894
+ flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
1895
+ border: 0; background: none; padding: 4px 2px; text-align: left; cursor: pointer; color: inherit;
1896
+ }
1897
+ .np-title, .np-artist { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1898
+ .np-title { font-weight: 700; font-size: 14px; }
1899
+ .np-artist { font-size: 12.5px; color: var(--muted); }
1900
+ .np-info:hover .np-title { color: var(--spot); }
1901
+ .np-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
1902
+ .np-play {
1903
+ width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
1904
+ background: var(--spot); color: var(--on-color); transition: transform var(--dur-fast) var(--ease-out);
1905
+ }
1906
+ .np-play:hover { transform: scale(1.06); }
1907
+ .np-play svg { width: 18px; height: 18px; }
1908
+ .np-close {
1909
+ width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center;
1910
+ background: none; color: var(--muted); cursor: pointer;
1911
+ }
1912
+ .np-close:hover { background: var(--hover); color: var(--text); }
1913
+ .np-close svg { width: 16px; height: 16px; }
1914
+ .np-play:focus-visible, .np-close:focus-visible, .np-info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1915
+ /* Position: a thin spot-coloured line along the bottom edge; grab it to seek. */
1916
+ .np-seek {
1917
+ position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 12px; margin: 0; cursor: pointer;
1918
+ appearance: none; -webkit-appearance: none; background: transparent;
1919
+ }
1920
+ .np-seek::-webkit-slider-runnable-track {
1921
+ height: 3px; margin-top: 9px;
1922
+ background: linear-gradient(var(--spot), var(--spot)) left / var(--pos, 0%) 100% no-repeat, var(--border);
1923
+ }
1924
+ .np-seek::-moz-range-track { height: 3px; background: var(--border); }
1925
+ .np-seek::-moz-range-progress { height: 3px; background: var(--spot); }
1926
+ .np-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: var(--spot); opacity: 0; transition: opacity var(--dur-fast) ease; }
1927
+ .np-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--spot); opacity: 0; }
1928
+ .now-playing:hover .np-seek::-webkit-slider-thumb, .np-seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
1929
+ .now-playing:hover .np-seek::-moz-range-thumb { opacity: 1; }
1930
+
1931
+ /* Grows out of a circle: appear as a dot, then stretch into the pill; content fades in after. */
1932
+ @keyframes np-grow {
1933
+ 0% { width: 68px; opacity: 0; transform: translateX(-50%) translateY(16px) scale(0.5); }
1934
+ 40% { width: 68px; opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
1935
+ 100% { width: var(--np-w); opacity: 1; transform: translateX(-50%); }
1936
+ }
1937
+ @keyframes np-shrink {
1938
+ 0% { width: var(--np-w); opacity: 1; transform: translateX(-50%); }
1939
+ 55% { width: 68px; opacity: 1; transform: translateX(-50%) scale(1); }
1940
+ 100% { width: 68px; opacity: 0; transform: translateX(-50%) translateY(16px) scale(0.5); }
1941
+ }
1942
+ @keyframes np-content { from { opacity: 0; } to { opacity: 1; } }
1943
+ .now-playing.np-enter { animation: np-grow 520ms var(--ease-out) both; }
1944
+ .now-playing.np-enter .np-inner, .now-playing.np-enter .np-seek { animation: np-content 220ms 300ms ease both; }
1945
+ .now-playing.np-leave { animation: np-shrink 380ms var(--ease-in) both; }
1946
+ .now-playing.np-leave .np-inner, .now-playing.np-leave .np-seek { opacity: 0; transition: opacity 120ms ease; }
1947
+ @media (prefers-reduced-motion: reduce) {
1948
+ .now-playing.np-enter, .now-playing.np-leave, .now-playing.np-enter .np-inner, .now-playing.np-enter .np-seek { animation: none; }
1949
+ .now-playing.is-playing .np-art img { animation: none; }
1950
+ }
1951
+ /* Make room: lift it above the selection bar, and lift toasts above it. */
1952
+ body:has(.selection-bar:not([hidden])) .now-playing { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px); }
1953
+ body:has(.now-playing:not([hidden])) .toasts { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 150px); }
1954
+ body:has(.now-playing:not([hidden])) .browser { padding-bottom: 120px; }
1955
+ @media (max-width: 760px) {
1956
+ .np-time { display: none; }
1957
+ .np-inner { gap: 10px; }
1958
+ }
1959
+
1960
+ /* ---- Setup steps, What's new, Inbox ------------------------------------------------------- */
1961
+
1962
+ .setup-count { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: -12px 0 10px; }
1963
+ .setup-skip { align-self: center; margin-top: 12px; min-height: 36px; }
1964
+ .choice-code { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
1965
+ .inbox-fields { display: grid; gap: 6px; margin-bottom: 14px; }
1966
+ .inbox-fields .switch-row { padding: 6px 0; border-top: 1px solid var(--rule); }
1967
+ .credit-news { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
1968
+ .credit-news:hover { color: var(--text); }
1969
+ .news-version { padding: 4px 0 14px; border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
1970
+ .news-version:last-of-type { border-bottom: 0; }
1971
+ .news-version h3 { font-size: 15px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
1972
+ .news-date { font-size: 12px; font-weight: 500; color: var(--muted); }
1973
+ .news-version ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
1974
+ .news-version li { line-height: 1.45; }
1975
+ .news-version code { font-family: var(--mono); font-size: 12px; background: var(--hover); padding: 0 4px; border-radius: 3px; overflow-wrap: anywhere; }
1976
+ .news-more { min-height: 36px; }
1977
+ #inbox-btn { position: relative; }
1978
+ .badge-count {
1979
+ position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
1980
+ background: var(--spot); color: var(--on-color); font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
1981
+ }
1982
+ .inbox-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
1983
+ .inbox-list { border-top: 1.5px solid var(--text); }
1984
+ .inbox-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
1985
+ .inbox-title { font-weight: 650; overflow-wrap: anywhere; }
1986
+ .inbox-artist { font-weight: 400; color: var(--muted); }
1987
+ .inbox-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 4px; }
1988
+ .inbox-chip { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 1px 7px; border-radius: 4px; background: var(--hover); color: var(--muted); }
1989
+ .inbox-chip.ready, .inbox-chip.filed { background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); }
1990
+ .inbox-chip.review, .inbox-chip.nomatch, .inbox-chip.local { background: var(--warning-soft); color: var(--warning); }
1991
+ .inbox-chip.error { background: var(--danger-soft); color: var(--danger); }
1992
+ .inbox-chip.matching { animation: pulse 1.2s ease-in-out infinite; }
1993
+ @keyframes pulse { 50% { opacity: 0.5; } }
1994
+ .inbox-note { font-size: 12px; color: var(--muted); }
1995
+ .inbox-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
1996
+ .inbox-skip { font-size: 12px; min-height: 30px; }
1997
+ .inbox-item.filed, .inbox-item.skipped { opacity: 0.7; }
1998
+ .inbox-settings-actions { display: flex; justify-content: flex-end; gap: 8px; }
1999
+ @media (max-width: 760px) {
2000
+ .inbox-item { grid-template-columns: 48px minmax(0, 1fr); }
2001
+ .inbox-item .mb-thumb { width: 48px; height: 48px; }
2002
+ .inbox-actions { grid-column: 1 / -1; justify-content: flex-start; }
2003
+ .inbox-actions .btn.small { height: 40px; }
2004
+ }
2005
+
2006
+ /* ---- Notifications: bell, panel, pop-ups ------------------------------------------------- */
2007
+
2008
+ #notif-btn { position: relative; }
2009
+ #notif-btn.ring svg { animation: bell-ring 700ms var(--ease-out); transform-origin: 50% 15%; }
2010
+ @keyframes bell-ring { 15% { rotate: 14deg; } 35% { rotate: -11deg; } 55% { rotate: 7deg; } 75% { rotate: -3deg; } }
2011
+ .notif-panel, .notif-pops { position: fixed; z-index: 120; width: min(380px, calc(100vw - 24px)); }
2012
+ .notif-panel {
2013
+ max-height: min(520px, calc(100dvh - 90px)); overflow-y: auto; padding: 6px;
2014
+ background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow-lg);
2015
+ }
2016
+ .notif-pops { display: grid; gap: 8px; pointer-events: none; }
2017
+ /* Both grow out of the bell: scaled from the corner nearest it. */
2018
+ .notif-panel.notif-in, .notif-pop { animation: notif-grow 260ms var(--ease-out) both; transform-origin: calc(100% - var(--origin-x, 24px)) -8px; }
2019
+ .notif-panel.notif-out, .notif-pop.notif-out { animation: notif-shrink 180ms var(--ease-in) both; transform-origin: calc(100% - var(--origin-x, 24px)) -8px; }
2020
+ @keyframes notif-grow { from { opacity: 0; transform: scale(0.35); } to { opacity: 1; transform: none; } }
2021
+ @keyframes notif-shrink { to { opacity: 0; transform: scale(0.35); } }
2022
+ @media (prefers-reduced-motion: reduce) {
2023
+ .notif-panel.notif-in, .notif-pop, .notif-panel.notif-out, .notif-pop.notif-out, #notif-btn.ring svg { animation: none; }
2024
+ }
2025
+ .notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 6px; }
2026
+ .notif-tools { display: flex; gap: 12px; font-size: 12px; }
2027
+ .notif-list { list-style: none; margin: 0; padding: 0; }
2028
+ .notif-item, .notif-pop {
2029
+ display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%;
2030
+ padding: 10px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer;
2031
+ }
2032
+ .notif-item:hover { background: var(--hover); }
2033
+ .notif-pop {
2034
+ pointer-events: auto; background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow-lg);
2035
+ }
2036
+ .notif-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--spot); }
2037
+ .notif-icon svg { width: 16px; height: 16px; }
2038
+ .notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; color: var(--muted); }
2039
+ .notif-text strong { color: var(--text); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
2040
+ .notif-text span { overflow-wrap: anywhere; }
2041
+ .notif-text time { font-size: 11px; color: var(--faint); }
2042
+ .notif-item.unread .notif-text strong::after {
2043
+ content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--spot); vertical-align: middle;
2044
+ }
2045
+ .notif-empty { padding: 6px 10px 12px; font-size: 13px; color: var(--muted); }
2046
+ .inbox-mount-help { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--hover); font-size: 13px; color: var(--muted); }
2047
+ .inbox-mount-help strong { color: var(--text); }
2048
+ .inbox-mount-help pre { margin: 2px 0; font-family: var(--mono); font-size: 12px; color: var(--text); white-space: pre-wrap; }
2049
+ .inbox-chip.downloading { background: var(--accent-soft); color: var(--spot); animation: pulse 1.6s ease-in-out infinite; }
2050
+
2051
+ /* ---- Soulseek (slskd): the !slskd chip, Find in slskd, the Soulseek sheet ------------------------- */
2052
+
2053
+ .bang-chip {
2054
+ --sk-a: #1f7ae0; --sk-b: #4cc0ff;
2055
+ display: inline-flex; align-items: center; gap: 4px; flex: none; height: 22px; padding: 0 8px 0 6px;
2056
+ border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
2057
+ color: #fff; background: linear-gradient(115deg, var(--sk-a), var(--sk-b));
2058
+ animation: chip-in 220ms var(--ease-out);
2059
+ }
2060
+ .bang-chip[hidden] { display: none; }
2061
+ .bang-chip .sk-logo { width: 13px; height: 13px; }
2062
+ .bang-chip .sk-vane { fill: #fff; }
2063
+ .bang-chip .sk-quill { stroke: #fff; }
2064
+ .search.banged > svg { display: none; }
2065
+ .search.banged:focus-within { box-shadow: 0 0 0 2px var(--sk-focus, #1f7ae0); }
2066
+ @keyframes chip-in { from { transform: scale(0.6); opacity: 0; } }
2067
+ @media (prefers-reduced-motion: reduce) { .bang-chip { animation: none; } }
2068
+
2069
+ .sk-logo { fill: none; }
2070
+ .sk-logo .sk-vane { fill: #2b8ff0; }
2071
+ .sk-logo .sk-quill { fill: none; stroke: #1559b8; stroke-width: 1.6; stroke-linecap: round; }
2072
+ [data-theme="dark"] .sk-logo .sk-quill { stroke: #7cc4ff; }
2073
+ @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sk-logo .sk-quill { stroke: #7cc4ff; } }
2074
+
2075
+ /* Find in slskd: the MusicBrainz button's twin, in slskd's blues */
2076
+ .sk-find { --mb-plum: #1f7ae0; --mb-orange: #4cc0ff; }
2077
+ .sk-find .sk-logo { width: 16px; height: 16px; }
2078
+ .sk-find:hover { box-shadow: 0 0 16px -2px rgba(31, 122, 224, 0.45), 0 0 22px -4px rgba(76, 192, 255, 0.35); }
2079
+ .mb-find.in-actions:has(+ .sk-find.in-actions) { margin-right: 0; }
2080
+ .mb-find.phone-only:has(+ .sk-find.in-actions:not(.phone-only)) { margin-right: 0; }
2081
+
2082
+ .sk-search { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 0 0 0 8px;
2083
+ border: 1px solid var(--field-line); border-radius: 8px; background: var(--surface); }
2084
+ .sk-search:focus-within { box-shadow: 0 0 0 2px #1f7ae0; }
2085
+ .sk-search .bang-chip { cursor: default; animation: none; }
2086
+ .sk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); height: 38px; }
2087
+ .sk-search .btn { border-radius: 0 7px 7px 0; height: 40px; margin: -1px -1px -1px 0; }
2088
+ .sk-thumb { display: grid; place-items: center; }
2089
+ .sk-thumb .sk-logo { width: 26px; height: 26px; }
2090
+ .sk-item.focus { background: color-mix(in oklab, #1f7ae0 7%, transparent); }
2091
+ .sk-progress { height: 4px; margin: 8px 0 2px; border-radius: 2px; background: var(--hover); overflow: hidden; max-width: 360px; }
2092
+ .sk-progress span { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #1f7ae0, #4cc0ff); transition: width 600ms ease; }
2093
+ .inbox-chip.searching, .inbox-chip.downloading, .inbox-chip.fetched { background: color-mix(in oklab, #1f7ae0 13%, transparent); color: #1f6fd0; }
2094
+ .inbox-chip.searching { animation: pulse 1.2s ease-in-out infinite; }
2095
+ .sk-files { margin-top: 6px; font-size: 12px; color: var(--muted); }
2096
+ .sk-files summary { cursor: pointer; min-height: 28px; display: flex; align-items: center; }
2097
+ .sk-files ol { margin: 4px 0 0; padding-left: 20px; max-height: 180px; overflow: auto; }
2098
+ .sk-cands { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--rule); }
2099
+ .sk-cands li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
2100
+ .sk-cands li.current { opacity: 0.65; }
2101
+ .sk-cand-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
2102
+ .sk-cand-text strong { overflow-wrap: anywhere; }
2103
+ .sk-cand-text span { color: var(--muted); font-size: 12px; }
2104
+
2105
+ .sk-warn { display: flex; flex-direction: column; gap: 3px; margin: 0 0 14px; padding: 10px 12px; border-radius: 8px;
2106
+ font-size: 13px; color: var(--text); background: var(--warning-soft); border-left: 3px solid var(--warning); text-align: left; }
2107
+ .sk-warn strong { color: var(--warning); }
2108
+ .sk-warn.soft { margin-top: 4px; }
2109
+ .sk-settings { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
2110
+ .sk-head { display: flex; align-items: center; gap: 6px; margin: 0; }
2111
+ .sk-head .sk-logo { width: 16px; height: 16px; }
2112
+ .sk-fields { display: flex; flex-direction: column; gap: 10px; text-align: left; }
2113
+ .sk-fields .hint code { font-size: 12px; }
2114
+ .sk-check { display: flex; flex-direction: column; gap: 6px; }
2115
+ .sk-check p { margin: 0; }
2116
+ .sk-ok { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--success); }
2117
+ .sk-ok svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
2118
+ @media (max-width: 760px) {
2119
+ .sk-search input { font-size: 16px; }
2120
+ .sk-cands li .btn.small { height: 40px; }
2121
+ .bang-chip { height: 26px; }
2122
+ }
2123
+ .search input:focus { box-shadow: none; border-color: transparent; }
2124
+ .sk-item { grid-template-columns: 56px minmax(0, 1fr); align-items: start; }
2125
+ .sk-item .inbox-actions { grid-column: 2; justify-content: flex-start; }
2126
+ @media (max-width: 760px) {
2127
+ /* Searching Soulseek: the bar takes the room of the tools it doesn't need. */
2128
+ .sk-item { grid-template-columns: 48px minmax(0, 1fr); }
2129
+ .sk-item .inbox-actions { grid-column: 1 / -1; }
2130
+ }
2131
+
2132
+ @media (prefers-reduced-motion: reduce) { .search, .search-cancel { transition: none !important; } }
2133
+
2134
+ /* Inbox: its tools are proper buttons, apart from the text */
2135
+ .inbox-head { align-items: flex-start; flex-wrap: wrap; }
2136
+ .inbox-head .mb-lead { flex: 1 1 260px; margin-bottom: 0; }
2137
+ .inbox-tools { display: flex; gap: 8px; flex: none; }
2138
+ .btn.with-icon { display: inline-flex; align-items: center; gap: 6px; }
2139
+ .btn.with-icon svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
2140
+ .btn.with-icon .sk-logo { stroke: none; }
2141
+ .inbox-head + .inbox-list { margin-top: 14px; }
2142
+ @media (max-width: 760px) {
2143
+ .inbox-tools { flex: 1 1 100%; }
2144
+ .inbox-tools .btn { flex: 1; justify-content: center; height: 44px; }
2145
+ }
2146
+
2147
+ /* Download progress (inbox items still arriving, Soulseek downloads) */
2148
+ .dl-progress { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-width: 360px; }
2149
+ .dl-progress .sk-progress { margin: 0; max-width: none; }
2150
+ .dl-progress-text { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
2151
+
2152
+ /* Notifications on phones: within the screen (12px from each edge), a little more compact. */
2153
+ @media (max-width: 760px) {
2154
+ .notif-panel, .notif-pops { width: min(360px, calc(100vw - 24px)); }
2155
+ .notif-panel { padding: 4px; border-radius: 14px; max-height: min(460px, calc(100dvh - 140px)); }
2156
+ .notif-head { padding: 6px 8px 4px; }
2157
+ .notif-head strong { font-size: 14px; }
2158
+ .notif-tools .link-btn { min-height: 36px; }
2159
+ .notif-item, .notif-pop { grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 8px; border-radius: 10px; }
2160
+ .notif-pop { border-radius: 14px; }
2161
+ .notif-icon { width: 26px; height: 26px; }
2162
+ .notif-icon svg { width: 14px; height: 14px; }
2163
+ .notif-text { font-size: 12.5px; gap: 1px; }
2164
+ .notif-text strong { font-size: 13.5px; }
2165
+ .notif-text time { font-size: 10.5px; }
2166
+ }
2167
+
2168
+ /* ---- Library health: the card on the Library page and its sheet ---------------------------------- */
2169
+
2170
+ .health-slot { margin: -4px auto 18px; } /* auto: centred in the page column like everything else */
2171
+ .health-card {
2172
+ display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px;
2173
+ border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text);
2174
+ font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur) ease, transform var(--dur) var(--ease-out);
2175
+ }
2176
+ .health-card:hover { background: var(--hover); }
2177
+ .health-card:active { transform: scale(0.995); }
2178
+ .health-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
2179
+ .health-card > svg:last-child { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: var(--faint); stroke-width: 1.8; flex: none; }
2180
+ .health-card-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
2181
+ background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); }
2182
+ .health-card.has-issues .health-card-icon { background: var(--warning-soft); color: var(--warning); }
2183
+ .health-card-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
2184
+ .health-card-text { display: flex; flex-direction: column; min-width: 0; }
2185
+ .health-card-text strong { font-size: 15px; font-weight: 650; }
2186
+ .health-card-text span { font-size: 13px; color: var(--muted); }
2187
+ .health-card-count { margin-left: auto; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 11px; display: grid; place-items: center;
2188
+ background: var(--warning-soft); color: var(--warning); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
2189
+ .health-card-count + svg { margin-left: 4px !important; }
2190
+
2191
+ .health-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
2192
+ .health-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px;
2193
+ border: 1px solid var(--border-strong); background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; }
2194
+ .health-chip span { color: var(--muted); font-variant-numeric: tabular-nums; }
2195
+ .health-chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
2196
+ .health-chip.on span { color: color-mix(in oklab, var(--bg) 70%, transparent); }
2197
+ .health-item { grid-template-columns: 56px minmax(0, 1fr); align-items: start; }
2198
+ .health-item .inbox-actions { grid-column: 2; justify-content: flex-start; }
2199
+ .health-thumb { display: grid; place-items: center; }
2200
+ .health-thumb svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
2201
+ .health-folders { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; font-size: 13px; }
2202
+ .health-settings .health-cat { margin-top: 14px; }
2203
+ .health-settings .health-cat h3 { margin: 0 0 4px; }
2204
+ @media (max-width: 760px) {
2205
+ .health-item { grid-template-columns: 48px minmax(0, 1fr); }
2206
+ .health-item .inbox-actions { grid-column: 1 / -1; }
2207
+ .health-chip { min-height: 36px; }
2208
+ .health-card { min-height: 60px; }
2209
+ }
2210
+
2211
+
2212
+ /* ---- Bangs: the chip per service, and the suggestions under the search bar ------------------------ */
2213
+
2214
+ .bang-chip.bang-mb { background: linear-gradient(115deg, #ba478f, #eb743b); }
2215
+ .bang-chip.bang-mb .mb-logo { width: 13px; height: 13px; }
2216
+ .bang-chip.bang-mb .mb-logo .mb-l, .bang-chip.bang-mb .mb-logo .mb-r { fill: #fff; }
2217
+ .bang-chip.bang-mb .mb-logo .mb-cut { fill: #ba478f; opacity: 1; }
2218
+ .search.banged:has(.bang-mb):focus-within { box-shadow: 0 0 0 2px #ba478f; }
2219
+ .bang-suggest {
2220
+ position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; min-width: 300px; padding: 6px;
2221
+ background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-lg);
2222
+ transform-origin: 50% -8px;
2223
+ }
2224
+ .bang-suggest.opening { animation: bang-open 260ms cubic-bezier(0.32, 0.72, 0, 1) both; }
2225
+ .bang-suggest.closing { animation: bang-close 160ms ease-in both; }
2226
+ @keyframes bang-open { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
2227
+ @keyframes bang-close { to { opacity: 0; transform: translateY(-4px) scale(0.97); } }
2228
+ .bang-suggest-head { margin: 4px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
2229
+ .bang-suggest-item {
2230
+ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%;
2231
+ min-height: 44px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--text);
2232
+ font: inherit; font-size: 13px; text-align: left; cursor: pointer;
2233
+ }
2234
+ .bang-suggest-item:hover, .bang-suggest-item:focus-visible { background: var(--hover); outline: none; }
2235
+ .bang-suggest-item .bang-chip { animation: none; cursor: inherit; }
2236
+ .bang-suggest-about { color: var(--muted); }
2237
+ .bang-suggest-item kbd { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--faint); }
2238
+ @media (max-width: 760px) {
2239
+ .bang-suggest { min-width: 0; right: 0; }
2240
+ .bang-suggest-item kbd { display: none; }
2241
+ }
2242
+ @media (prefers-reduced-motion: reduce) {
2243
+ .bang-suggest.opening, .bang-suggest.closing { animation: none; }
2244
+ .search, .search > svg { transition: none !important; }
2245
+ }
2246
+
2247
+ /* ---- Explore MusicBrainz: search results, artists, releases ---------------------------------------- */
2248
+
2249
+ .mbx { display: flex; flex-direction: column; gap: 26px; }
2250
+ .mbx-h { font-size: 13px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
2251
+ .mbx-h span { color: var(--faint); font-variant-numeric: tabular-nums; }
2252
+ .mbx-source { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); margin-top: 8px; }
2253
+ .mbx-source .mb-logo { width: 13px; height: 13px; }
2254
+ .mbx-artists { display: flex; flex-direction: column; border-top: 1.5px solid var(--text); }
2255
+ .mbx-artist { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; border-bottom: 1px solid var(--rule);
2256
+ color: var(--text); text-decoration: none; }
2257
+ .mbx-artist:hover { background: var(--hover); }
2258
+ .mbx-artist > svg { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: var(--faint); stroke-width: 1.8; flex: none; }
2259
+ .mbx-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
2260
+ background: linear-gradient(135deg, color-mix(in oklab, #ba478f 30%, var(--surface)), color-mix(in oklab, #eb743b 30%, var(--surface)));
2261
+ font-weight: 800; font-size: 17px; }
2262
+ .mbx-artist-text { display: flex; flex-direction: column; min-width: 0; }
2263
+ .mbx-artist-text strong { font-weight: 650; overflow-wrap: anywhere; }
2264
+ .mbx-meta, .mbx-dis { color: var(--muted); font-size: 13px; font-weight: 400; }
2265
+ .mbx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
2266
+ .mbx-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
2267
+ .mbx-card a { color: inherit; text-decoration: none; }
2268
+ .mbx-card a:hover strong { text-decoration: underline; }
2269
+ .mbx-cover { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--surface);
2270
+ box-shadow: 0 1px 0 var(--border); display: block; }
2271
+ .mbx-noart { display: grid; place-items: center; color: var(--faint); }
2272
+ .mbx-noart svg { width: 28%; height: 28%; fill: none; stroke: currentColor; stroke-width: 1.4; }
2273
+ .mbx-card-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; }
2274
+ .mbx-card-text strong { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
2275
+ .mbx-card-text > span { color: var(--muted); overflow-wrap: anywhere; }
2276
+ .mbx-owned { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; width: fit-content; padding: 1px 8px 1px 6px;
2277
+ border-radius: 999px; font-size: 11.5px; font-weight: 650; text-decoration: none;
2278
+ background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); }
2279
+ .mbx-owned svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; }
2280
+ .mbx-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; }
2281
+ .mbx-links a { color: var(--accent); }
2282
+ .mbx-tracks { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--text); }
2283
+ .mbx-track { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; min-height: 46px;
2284
+ padding: 12px 4px; border-bottom: 1px solid var(--rule); }
2285
+ .mbx-n { color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; }
2286
+ .mbx-t { overflow-wrap: anywhere; }
2287
+ .mbx-len { color: var(--muted); font-variant-numeric: tabular-nums; }
2288
+ .mbx-disc { padding: 16px 4px 6px; font-size: 12px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
2289
+ @media (max-width: 760px) {
2290
+ .mbx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
2291
+ .mbx-artist { min-height: 64px; }
2292
+ }
2293
+ .folders.mbx-host { display: block; border-top: 0; }
2294
+ .folder-actions a.btn { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
2295
+ .folder-actions a.btn.primary { color: var(--bg); }
2296
+
2297
+
2298
+ /* ---- Account as a Control Center: grows out of the profile picture ------------------------------- */
2299
+
2300
+ .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
2301
+ dialog.cc {
2302
+ position: fixed; inset: auto; top: var(--cc-top, 64px); right: var(--cc-right, 12px); left: auto; margin: 0;
2303
+ width: var(--cc-width, 420px); max-width: none; max-height: calc(100dvh - var(--cc-top, 64px) - 12px);
2304
+ padding: 0; border: 0; background: transparent; overflow: visible; color: var(--text);
2305
+ }
2306
+ dialog.cc::backdrop { background: rgba(0, 0, 0, 0.16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
2307
+ dialog.cc[open]::backdrop { animation: cc-fade 300ms ease both; }
2308
+ dialog.cc.closing::backdrop { animation: cc-fade 200ms ease reverse both; }
2309
+ @keyframes cc-fade { from { opacity: 0; } }
2310
+ .cc-panel {
2311
+ max-height: inherit; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px;
2312
+ padding: 12px; border-radius: 28px;
2313
+ background: color-mix(in oklab, var(--surface-raised) 80%, transparent);
2314
+ -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
2315
+ border: 1px solid color-mix(in oklab, var(--border-strong) 60%, transparent);
2316
+ box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.08);
2317
+ transform-origin: var(--cc-ox, 90%) var(--cc-oy, -20px);
2318
+ }
2319
+ dialog.cc[open] .cc-panel { animation: cc-in 520ms cubic-bezier(0.32, 0.72, 0, 1) both; }
2320
+ dialog.cc.closing .cc-panel { animation: cc-out 240ms cubic-bezier(0.4, 0, 1, 1) both; }
2321
+ @keyframes cc-in { 0% { opacity: 0; transform: scale(0.06); border-radius: 50%; } 35% { opacity: 1; } 100% { transform: none; } }
2322
+ @keyframes cc-out { to { opacity: 0; transform: scale(0.06); border-radius: 50%; } }
2323
+ @media (prefers-reduced-motion: reduce) {
2324
+ dialog.cc[open] .cc-panel, dialog.cc.closing .cc-panel { animation: cc-fade 150ms ease both; }
2325
+ }
2326
+ .cc-tile { margin: 0; padding: 12px 14px; border: 0; border-radius: 20px; background: color-mix(in oklab, var(--text) 5.5%, transparent); }
2327
+ .cc-tile.profile { display: flex; align-items: center; gap: 14px; }
2328
+ .cc-tile .about-head { flex-wrap: wrap; }
2329
+ .cc-tile .conn-toggle { padding: 0; min-height: 40px; }
2330
+ .cc-tile.connections, .cc-tile.password { border-top: 0; }
2331
+ .cc-tile .password-form { margin-top: 10px; border-top: 0; padding-top: 0; }
2332
+ .cc-tile.password.open .conn-toggle svg { transform: rotate(90deg); }
2333
+ .cc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
2334
+ .cc-toggle {
2335
+ position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px;
2336
+ min-height: 92px; padding: 12px 11px; border: 0; border-radius: 20px; background: color-mix(in oklab, var(--text) 5.5%, transparent);
2337
+ color: var(--text); font: inherit; text-align: left; cursor: pointer;
2338
+ transition: background-color 250ms ease, transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
2339
+ }
2340
+ .cc-toggle:hover { background: color-mix(in oklab, var(--text) 9%, transparent); }
2341
+ .cc-toggle:active { transform: scale(0.94); }
2342
+ .cc-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
2343
+ .cc-toggle:has(input:focus-visible), .cc-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
2344
+ .cc-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
2345
+ background: color-mix(in oklab, var(--text) 10%, transparent); transition: background-color 250ms ease, color 250ms ease; }
2346
+ .cc-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
2347
+ .cc-label { font-size: 12.5px; font-weight: 650; line-height: 1.15; }
2348
+ .cc-state { margin-top: -4px; font-size: 11.5px; color: var(--muted); }
2349
+ .cc-toggle:has(input:checked) .cc-ico, .cc-toggle.on .cc-ico { background: var(--accent); color: var(--on-color, #fff); }
2350
+ .cc-onoff::after { content: "Off"; }
2351
+ .cc-toggle:has(input:checked) .cc-onoff::after { content: "On"; }
2352
+ .cc-foot { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; }
2353
+ @media (max-width: 760px) {
2354
+ .cc-panel { border-radius: 26px; }
2355
+ .cc-toggle { min-height: 100px; padding: 11px 9px; }
2356
+ .cc-label { font-size: 12px; }
2357
+ .cc-foot .btn { height: 44px; }
2358
+ }
2359
+
2360
+
2361
+ /* ---- Control Center, touched up: concentric corners (inner radius = outer radius - padding) ------- */
2362
+
2363
+ .cc-panel { --cc-r: 30px; --cc-pad: 10px; border-radius: var(--cc-r); padding: var(--cc-pad); gap: var(--cc-pad); }
2364
+ .cc-tile, .cc-toggle { border-radius: calc(var(--cc-r) - var(--cc-pad)); }
2365
+ .cc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cc-pad); }
2366
+ .cc-toggle { min-height: 96px; }
2367
+ .cc-tile .btn, .cc-foot .btn { border-radius: 999px; padding-left: 14px; padding-right: 14px; }
2368
+ .cc-tile .badge { border-radius: 999px; }
2369
+ .cc-tile .avatar-lg { box-shadow: 0 0 0 3px color-mix(in oklab, var(--text) 6%, transparent); }
2370
+ .cc-foot { padding: 4px 8px 2px; }
2371
+ @media (max-width: 760px) { .cc-panel { --cc-r: 28px; } }
2372
+
2373
+ /* ---- Loading, everywhere: a thin line under the top bar, spinners, skeletons ------------------------ */
2374
+
2375
+ .net-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
2376
+ .net-bar::before { content: ""; position: absolute; inset: 0; width: 38%;
2377
+ background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: net-slide 1.1s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
2378
+ .net-bar.net-in { animation: cc-fade 200ms ease both; }
2379
+ .net-bar.net-out { animation: cc-fade 250ms ease reverse both; }
2380
+ @keyframes net-slide { from { transform: translateX(-100%); } to { transform: translateX(270%); } }
2381
+ .spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none;
2382
+ border: 2px solid color-mix(in oklab, currentColor 22%, transparent); border-top-color: currentColor; animation: spin 700ms linear infinite; }
2383
+ @keyframes spin { to { transform: rotate(360deg); } }
2384
+ .mbx-wait { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 6px; }
2385
+ .sk-shimmer { background: linear-gradient(90deg, color-mix(in oklab, var(--text) 6%, transparent) 0%, color-mix(in oklab, var(--text) 11%, transparent) 50%,
2386
+ color-mix(in oklab, var(--text) 6%, transparent) 100%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
2387
+ @keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
2388
+ .sk-line { display: block; height: 11px; border-radius: 6px; width: 80%; }
2389
+ .sk-line.short { width: 50%; }
2390
+ .mbx-skeleton .mbx-cover { box-shadow: none; }
2391
+ .live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor;
2392
+ vertical-align: 1px; animation: live 1.2s ease-in-out infinite; }
2393
+ @keyframes live { 50% { opacity: 0.25; transform: scale(0.7); } }
2394
+ .bang-chip.busy { pointer-events: none; }
2395
+ .bang-chip.busy svg { animation: spin 900ms linear infinite; }
2396
+ .field-error { margin: 0; font-size: 13px; color: var(--danger); }
2397
+ @media (prefers-reduced-motion: reduce) {
2398
+ .net-bar::before { animation-duration: 2.5s; }
2399
+ .spinner, .bang-chip.busy svg, .sk-shimmer, .live-dot { animation-duration: 2s; }
2400
+ }
2401
+
2402
+
2403
+ /* ==== Frosted glass & motion ====================================================================
2404
+ Glass only on what floats above the page (sheets, menus, toasts, notifications, the selection bar,
2405
+ the now-playing pill), so the blur stays cheap. Motion is transform + opacity only, on one curve. */
2406
+
2407
+ :root {
2408
+ --spring: cubic-bezier(0.32, 0.72, 0, 1); /* settles like iOS sheets: quick start, soft landing */
2409
+ --glass-pane: color-mix(in oklab, var(--surface-raised) 74%, transparent);
2410
+ --glass-line: color-mix(in oklab, var(--border-strong) 55%, transparent);
2411
+ --glass-blur: saturate(180%) blur(22px);
2412
+ --glass-edge: inset 0 1px 0 color-mix(in oklab, #fff 16%, transparent);
2413
+ }
2414
+
2415
+ @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
2416
+ dialog.sheet, .notif-panel, .notif-pop, .toast, .suggest, .bang-suggest, .selection-bar, .now-playing, .changes-pop {
2417
+ background: var(--glass-pane);
2418
+ -webkit-backdrop-filter: var(--glass-blur);
2419
+ backdrop-filter: var(--glass-blur);
2420
+ border-color: var(--glass-line);
2421
+ box-shadow: var(--shadow-lg), var(--glass-edge);
2422
+ }
2423
+ dialog.sheet::backdrop, dialog.confirm::backdrop { -webkit-backdrop-filter: blur(6px) saturate(115%); backdrop-filter: blur(6px) saturate(115%); }
2424
+ .topbar { -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
2425
+ /* Long lists inside a glass sheet get a little more body so text stays crisp. */
2426
+ .sheet-body .inbox-list, .sheet-body .mb-cands, .health-settings { background: transparent; }
2427
+ }
2428
+ @media (prefers-reduced-transparency: reduce) {
2429
+ dialog.sheet, .notif-panel, .notif-pop, .toast, .suggest, .bang-suggest, .selection-bar, .now-playing, .changes-pop, .cc-panel {
2430
+ background: var(--surface-raised); -webkit-backdrop-filter: none; backdrop-filter: none;
2431
+ }
2432
+ }
2433
+
2434
+ /* Rounder floating surfaces, matching the Control Center. */
2435
+ dialog.sheet { border-radius: 22px; }
2436
+ .sheet-foot { border-top-color: var(--glass-line); }
2437
+ .toast { border-radius: 16px; }
2438
+ .suggest, .bang-suggest { border-radius: 14px; }
2439
+ .selection-bar { border-radius: 18px; }
2440
+
2441
+ /* Sheets settle in on the spring; the backdrop fades and blurs behind them. */
2442
+ dialog.sheet[open] { animation: glass-in 380ms var(--spring) both; }
2443
+ dialog.sheet.closing { animation: glass-out 180ms var(--ease-in) forwards; }
2444
+ dialog.sheet[open]::backdrop { animation: fade-in 320ms ease both; }
2445
+ @keyframes glass-in { from { opacity: 0; scale: 0.94; translate: 0 10px; } }
2446
+ @keyframes glass-out { to { opacity: 0; scale: 0.97; translate: 0 6px; } }
2447
+ @media (max-width: 760px) {
2448
+ dialog.sheet { border-radius: 24px 24px 0 0; }
2449
+ dialog.sheet[open] { animation: sheet-up 420ms var(--spring) both; }
2450
+ dialog.sheet.closing { animation: sheet-down 220ms var(--ease-in) forwards; }
2451
+ }
2452
+
2453
+ /* Menus, toasts, the selection bar: same spring, a touch of scale. */
2454
+ .suggest:not([hidden]) { animation: glass-pop 220ms var(--spring); }
2455
+ .toast { animation: toast-in 420ms var(--spring) both; }
2456
+ .toast.leaving { animation: toast-out 200ms var(--ease-in) forwards; }
2457
+ .selection-bar:not([hidden]) { animation: toast-in 420ms var(--spring); }
2458
+ @keyframes glass-pop { from { opacity: 0; scale: 0.96; translate: 0 -6px; } }
2459
+ @keyframes toast-in { from { opacity: 0; scale: 0.92; translate: 0 18px; } }
2460
+ @keyframes toast-out { to { opacity: 0; scale: 0.96; translate: 0 10px; } }
2461
+
2462
+ /* Things you press give a little. */
2463
+ .btn, .icon-btn, .mb-find, .health-card, .health-chip, .bang-suggest-item, .folder {
2464
+ transition: transform 180ms var(--spring), background-color var(--dur) ease, border-color var(--dur) ease, box-shadow 240ms ease;
2465
+ }
2466
+ .btn:active:not(:disabled), .icon-btn:active, .health-chip:active, .bang-suggest-item:active { transform: scale(0.96); }
2467
+ .folders:not(.as-list) .folder:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35); }
2468
+ .folder:active { transform: scale(0.985); }
2469
+
2470
+ /* Changing pages: the first rows ripple in (cheap: a few rows, opacity + a short slide). */
2471
+ .nav-forward > .folder, .nav-back > .folder, .nav-fade > .folder,
2472
+ .nav-forward > .track-row, .nav-back > .track-row, .nav-fade > .track-row { animation: row-in 360ms var(--spring) both; }
2473
+ .nav-forward > .folder:nth-child(1), .nav-back > .folder:nth-child(1), .nav-fade > .folder:nth-child(1),
2474
+ .nav-forward > .track-row:nth-child(1), .nav-back > .track-row:nth-child(1), .nav-fade > .track-row:nth-child(1) { animation-delay: 16ms; }
2475
+ .nav-forward > .folder:nth-child(2), .nav-back > .folder:nth-child(2), .nav-fade > .folder:nth-child(2),
2476
+ .nav-forward > .track-row:nth-child(2), .nav-back > .track-row:nth-child(2), .nav-fade > .track-row:nth-child(2) { animation-delay: 32ms; }
2477
+ .nav-forward > .folder:nth-child(3), .nav-back > .folder:nth-child(3), .nav-fade > .folder:nth-child(3),
2478
+ .nav-forward > .track-row:nth-child(3), .nav-back > .track-row:nth-child(3), .nav-fade > .track-row:nth-child(3) { animation-delay: 48ms; }
2479
+ .nav-forward > .folder:nth-child(4), .nav-back > .folder:nth-child(4), .nav-fade > .folder:nth-child(4),
2480
+ .nav-forward > .track-row:nth-child(4), .nav-back > .track-row:nth-child(4), .nav-fade > .track-row:nth-child(4) { animation-delay: 64ms; }
2481
+ .nav-forward > .folder:nth-child(5), .nav-back > .folder:nth-child(5), .nav-fade > .folder:nth-child(5),
2482
+ .nav-forward > .track-row:nth-child(5), .nav-back > .track-row:nth-child(5), .nav-fade > .track-row:nth-child(5) { animation-delay: 80ms; }
2483
+ .nav-forward > .folder:nth-child(6), .nav-back > .folder:nth-child(6), .nav-fade > .folder:nth-child(6),
2484
+ .nav-forward > .track-row:nth-child(6), .nav-back > .track-row:nth-child(6), .nav-fade > .track-row:nth-child(6) { animation-delay: 96ms; }
2485
+ .nav-forward > .folder:nth-child(7), .nav-back > .folder:nth-child(7), .nav-fade > .folder:nth-child(7),
2486
+ .nav-forward > .track-row:nth-child(7), .nav-back > .track-row:nth-child(7), .nav-fade > .track-row:nth-child(7) { animation-delay: 112ms; }
2487
+ .nav-forward > .folder:nth-child(8), .nav-back > .folder:nth-child(8), .nav-fade > .folder:nth-child(8),
2488
+ .nav-forward > .track-row:nth-child(8), .nav-back > .track-row:nth-child(8), .nav-fade > .track-row:nth-child(8) { animation-delay: 128ms; }
2489
+ .nav-forward > .folder:nth-child(9), .nav-back > .folder:nth-child(9), .nav-fade > .folder:nth-child(9),
2490
+ .nav-forward > .track-row:nth-child(9), .nav-back > .track-row:nth-child(9), .nav-fade > .track-row:nth-child(9) { animation-delay: 144ms; }
2491
+ .nav-forward > .folder:nth-child(10), .nav-back > .folder:nth-child(10), .nav-fade > .folder:nth-child(10),
2492
+ .nav-forward > .track-row:nth-child(10), .nav-back > .track-row:nth-child(10), .nav-fade > .track-row:nth-child(10) { animation-delay: 160ms; }
2493
+ .nav-forward > .folder:nth-child(11), .nav-back > .folder:nth-child(11), .nav-fade > .folder:nth-child(11),
2494
+ .nav-forward > .track-row:nth-child(11), .nav-back > .track-row:nth-child(11), .nav-fade > .track-row:nth-child(11) { animation-delay: 176ms; }
2495
+ .nav-forward > .folder:nth-child(12), .nav-back > .folder:nth-child(12), .nav-fade > .folder:nth-child(12),
2496
+ .nav-forward > .track-row:nth-child(12), .nav-back > .track-row:nth-child(12), .nav-fade > .track-row:nth-child(12) { animation-delay: 192ms; }
2497
+ .nav-forward > .folder:nth-child(13), .nav-back > .folder:nth-child(13), .nav-fade > .folder:nth-child(13),
2498
+ .nav-forward > .track-row:nth-child(13), .nav-back > .track-row:nth-child(13), .nav-fade > .track-row:nth-child(13) { animation-delay: 208ms; }
2499
+ .nav-forward > .folder:nth-child(14), .nav-back > .folder:nth-child(14), .nav-fade > .folder:nth-child(14),
2500
+ .nav-forward > .track-row:nth-child(14), .nav-back > .track-row:nth-child(14), .nav-fade > .track-row:nth-child(14) { animation-delay: 224ms; }
2501
+ @keyframes row-in { from { opacity: 0; translate: 0 6px; } }
2502
+
2503
+ /* Covers settle into place; the album header follows. */
2504
+ .album-cover { animation: cover-in 520ms var(--spring) both; }
2505
+ @keyframes cover-in { from { opacity: 0; scale: 0.94; } }
2506
+ .mbx-card { animation: row-in 360ms var(--spring) both; }
2507
+
2508
+ @media (prefers-reduced-motion: reduce) {
2509
+ dialog.sheet[open], dialog.sheet.closing, .toast, .toast.leaving, .suggest:not([hidden]), .selection-bar:not([hidden]),
2510
+ .nav-forward > *, .nav-back > *, .nav-fade > *, .album-cover, .mbx-card { animation-duration: 1ms !important; animation-delay: 0ms !important; }
2511
+ .btn:active, .icon-btn:active, .folder:hover, .folder:active { transform: none !important; }
2512
+ }
2513
+
2514
+ /* Softer buttons to match the rounder glass surfaces. */
2515
+ .btn { border-radius: 10px; }
2516
+ .btn.small { border-radius: 8px; }
2517
+ .mb-find { border-radius: 10px; }
2518
+ .mb-find-inner { border-radius: 8.5px; }
2519
+ .inbox-chip, .badge { border-radius: 6px; }
2520
+
2521
+ /* Control Center: the same quick, simple motion as the other sheets (inbox, presets), still anchored at the profile picture. */
2522
+ dialog.cc[open] .cc-panel { animation: glass-in 380ms var(--spring) both; }
2523
+ dialog.cc.closing .cc-panel { animation: glass-out 180ms var(--ease-in) forwards; }
2524
+ dialog.cc[open]::backdrop { animation: fade-in 320ms ease both; }
2525
+ dialog.cc.closing::backdrop { animation: fade-out 180ms ease forwards; }
2526
+ @media (prefers-reduced-motion: reduce) {
2527
+ dialog.cc[open] .cc-panel, dialog.cc.closing .cc-panel { animation-duration: 1ms !important; }
2528
+ }
2529
+
2530
+
2531
+ /* ---- Icon buttons that show their name on hover (Apply preset, Organize, Select) ------------------ */
2532
+
2533
+ .btn.icon-expand { display: inline-flex; align-items: center; gap: 0; padding: 0 9px; min-width: 34px; justify-content: center; }
2534
+ .btn.icon-expand > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
2535
+ stroke-linecap: round; stroke-linejoin: round; }
2536
+ .icon-expand-label { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; margin-left: 0;
2537
+ transition: max-width 320ms var(--spring), opacity 180ms ease, margin-left 320ms var(--spring); }
2538
+ @media (hover: hover) {
2539
+ .btn.icon-expand:hover .icon-expand-label, .btn.icon-expand:focus-visible .icon-expand-label { max-width: 150px; opacity: 1; margin-left: 7px; }
2540
+ }
2541
+ .btn.icon-expand.primary > svg { stroke: currentColor; }
2542
+ @media (max-width: 760px) {
2543
+ /* One tidy row: Find buttons on the left, compact icons on the right. */
2544
+ .folder-actions { gap: 6px; flex-wrap: nowrap; align-items: center; }
2545
+ .folder-actions:has(.mb-find) { flex: 1 1 100%; }
2546
+ .btn.icon-expand { width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 12px; }
2547
+ .folder-actions .mb-find-inner { height: 37px; padding: 0 11px; gap: 6px; }
2548
+ }
2549
+ @media (prefers-reduced-motion: reduce) { .icon-expand-label { transition: none; } }
2550
+ .btn.icon-expand.phone-only { display: none; }
2551
+ @media (max-width: 760px) { .btn.icon-expand.phone-only { display: inline-flex; } }
2552
+
2553
+ /* ---- The full player: cover, controls, Up next, lyrics ------------------------------------------- */
2554
+
2555
+ .np-next { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none;
2556
+ color: var(--text); cursor: pointer; flex: none; transition: transform 160ms var(--spring), opacity var(--dur) ease; }
2557
+ .np-next svg { width: 18px; height: 18px; }
2558
+ .np-next:disabled { opacity: 0.35; cursor: default; }
2559
+ .np-next:active:not(:disabled) { transform: scale(0.9); }
2560
+ .np-art { cursor: pointer; }
2561
+ dialog.player-sheet { width: min(480px, calc(100vw - 32px)); }
2562
+ .player-sheet .sheet-head { justify-content: flex-end; padding-bottom: 0; }
2563
+ .ps-grabber { display: none; }
2564
+ .player-sheet .sheet-body { display: flex; flex-direction: column; gap: 14px; padding-top: 0; }
2565
+ .ps-top { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
2566
+ .ps-cover { width: min(260px, 62vw); aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
2567
+ background: var(--surface); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45); transform: scale(0.94);
2568
+ transition: transform 520ms var(--spring); }
2569
+ .ps-cover.playing { transform: none; }
2570
+ .ps-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
2571
+ .ps-cover > svg { width: 30%; height: 30%; fill: none; stroke: var(--faint); stroke-width: 1.4; }
2572
+ .ps-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; max-width: 100%; }
2573
+ .ps-title { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; overflow-wrap: anywhere; }
2574
+ .ps-artist { color: var(--muted); overflow-wrap: anywhere; }
2575
+ .ps-from { font-size: 13px; margin-top: 2px; }
2576
+ .ps-seekrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
2577
+ .ps-seek { position: static; width: 100%; height: 22px; opacity: 1; }
2578
+ .ps-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
2579
+ .ps-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
2580
+ .ps-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--text);
2581
+ cursor: pointer; transition: transform 160ms var(--spring), background-color var(--dur) ease, color var(--dur) ease; }
2582
+ .ps-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
2583
+ .ps-btn:hover { background: var(--hover); }
2584
+ .ps-btn:active:not(:disabled) { transform: scale(0.9); }
2585
+ .ps-btn:disabled { opacity: 0.35; cursor: default; }
2586
+ .ps-play { width: 60px; height: 60px; background: var(--text); color: var(--bg); }
2587
+ .ps-play:hover { background: var(--text); }
2588
+ .ps-play svg { width: 26px; height: 26px; }
2589
+ .ps-shuffle, .ps-tabbtn { color: var(--muted); }
2590
+ .ps-shuffle.on, .ps-tabbtn.on { color: var(--accent); background: var(--accent-soft); }
2591
+ .ps-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: color-mix(in oklab, var(--text) 6%, transparent); }
2592
+ .ps-tabs button { flex: 1; min-height: 34px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 13px;
2593
+ font-weight: 650; cursor: pointer; transition: background-color var(--dur) ease, color var(--dur) ease; }
2594
+ .ps-tabs button[aria-selected="true"] { background: var(--surface-raised); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
2595
+ .ps-panel { min-height: 160px; max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; }
2596
+ .ps-list { list-style: none; margin: 0; padding: 0; }
2597
+ .ps-item { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--rule); }
2598
+ .ps-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 4px; border: 0;
2599
+ background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
2600
+ .ps-item-main:hover { background: var(--hover); }
2601
+ .ps-item-title { font-weight: 600; overflow-wrap: anywhere; }
2602
+ .ps-item-artist { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
2603
+ .ps-remove { flex: none; }
2604
+ .ps-empty { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; padding: 12px 2px; }
2605
+ .ps-plain { white-space: pre-wrap; font-size: 16px; line-height: 1.6; padding: 6px 2px 20px; }
2606
+ .ps-lines { list-style: none; margin: 0; padding: 28% 2px 40%; }
2607
+ .ps-line { padding: 6px 4px; font-size: 21px; font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; color: var(--faint); cursor: pointer;
2608
+ border-radius: 8px; transform-origin: left center; transition: color 300ms ease, transform 420ms var(--spring), opacity 300ms ease; }
2609
+ .ps-line:hover { color: var(--muted); }
2610
+ .ps-line.current { color: var(--text); transform: scale(1.02); }
2611
+ @media (max-width: 760px) {
2612
+ .ps-grabber { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 0 auto 0 calc(50% - 18px); }
2613
+ .player-sheet .sheet-head { justify-content: space-between; }
2614
+ .ps-panel { max-height: 34vh; }
2615
+ .ps-line { font-size: 20px; }
2616
+ }
2617
+ @media (prefers-reduced-motion: reduce) { .ps-line, .ps-cover { transition: none; } }
2618
+
2619
+ .ps-lyrics { position: relative; }
2620
+ /* Lyrics showing: the cover steps aside so the words get the room. */
2621
+ .player-sheet.lyrics-mode .ps-top { flex-direction: row; text-align: left; gap: 12px; }
2622
+ .player-sheet.lyrics-mode .ps-cover { width: 64px; border-radius: 10px; transform: none; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.4); }
2623
+ .player-sheet.lyrics-mode .ps-meta { align-items: flex-start; }
2624
+ .player-sheet.lyrics-mode .ps-panel { max-height: 46vh; min-height: 46vh; }
2625
+ @media (max-width: 760px) {
2626
+ dialog.player-sheet { width: 100vw; }
2627
+ .player-sheet.lyrics-mode .ps-panel { max-height: 44vh; min-height: 44vh; }
2628
+ }
2629
+
2630
+ .health-more { display: block; margin: 14px auto 4px; }
2631
+
2632
+ /* Glass, grounded: more body so what's behind stays a soft hint, never readable text.
2633
+ Menus inside the top bar can't blur the page on iOS (the bar is their backdrop), so they're near-solid. */
2634
+ :root { --glass-pane: color-mix(in oklab, var(--surface-raised) 88%, transparent); --glass-blur: saturate(160%) blur(28px); }
2635
+ .bang-suggest, .topbar .suggest { background: color-mix(in oklab, var(--surface-raised) 97%, transparent); }
2636
+ .cc-panel { background: color-mix(in oklab, var(--surface-raised) 90%, transparent); }
2637
+
2638
+ /* Find & replace */
2639
+ .rep-grid { display: grid; grid-template-columns: 1fr 1fr 170px; gap: 10px; }
2640
+ .rep-options { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 4px; font-size: 13px; }
2641
+ .rep-check { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; }
2642
+ .rep-preview { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
2643
+ .rep-count { font-weight: 650; margin: 0 0 8px; }
2644
+ .rep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
2645
+ .rep-list li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
2646
+ .rep-file { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
2647
+ .rep-change { overflow-wrap: anywhere; }
2648
+ .rep-change del { color: var(--danger); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--danger) 60%, transparent); }
2649
+ .rep-change ins { color: var(--success); text-decoration: none; font-weight: 600; }
2650
+ .rename-input { width: 100%; }
2651
+ @media (max-width: 760px) {
2652
+ .rep-grid { grid-template-columns: 1fr; }
2653
+ .desktop-only-wide { display: none !important; }
2654
+ }
2655
+
2656
+ /* Actions and plugins */
2657
+ .act-group { margin-top: 10px; }
2658
+ .act-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
2659
+ .act-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; min-height: 64px; text-align: left;
2660
+ border: 1px solid var(--border-strong); border-radius: 12px; background: none; color: var(--text); font: inherit; cursor: pointer;
2661
+ transition: border-color var(--dur) ease, background-color var(--dur) ease, transform 160ms var(--spring); }
2662
+ .act-item:hover { background: var(--hover); }
2663
+ .act-item:active { transform: scale(0.98); }
2664
+ .act-item.on { border-color: var(--accent); background: var(--accent-soft); }
2665
+ .act-item strong { font-size: 14px; }
2666
+ .act-item span { font-size: 12.5px; color: var(--muted); }
2667
+ .plugin-meta { color: var(--muted); font-weight: 400; font-size: 12px; }
2668
+ .cc-tile.plugins.open .conn-toggle svg { transform: rotate(90deg); }
2669
+ #plugins-body { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
2670
+ /* Phones: the less-used tools live in a "…" menu */
2671
+ .btn.icon-expand.tool-more { display: none; }
2672
+ .tools-menu { position: fixed; z-index: 60; min-width: 200px; padding: 6px; border-radius: 14px; border: 1px solid var(--glass-line);
2673
+ background: color-mix(in oklab, var(--surface-raised) 94%, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
2674
+ box-shadow: var(--shadow-lg); transform-origin: top right; }
2675
+ .tools-menu.opening { animation: glass-pop 220ms var(--spring); }
2676
+ .tools-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
2677
+ background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
2678
+ .tools-item:hover { background: var(--hover); }
2679
+ .tools-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
2680
+ @media (max-width: 760px) {
2681
+ .btn.icon-expand.tool-desktop { display: none; }
2682
+ .btn.icon-expand.tool-more { display: inline-flex; }
2683
+ }
2684
+ .btn.icon-expand.tool-more .icon-expand-label { display: none; }