diff --git a/.impeccable/critique/2026-10-18T09-24-01Z__crates-musyx-src.md b/.impeccable/critique/2026-10-18T09-24-01Z__crates-musyx-src.md
new file mode 100644
index 0000000..e353a9c
--- /dev/null
+++ b/.impeccable/critique/2026-10-18T09-24-01Z__crates-musyx-src.md
@@ -0,0 +1,163 @@
+---
+target: whole app (crates/musyx/src)
+total_score: 22
+max_score: 40
+na_heuristics:
+p0_count: 1
+p1_count: 2
+target_identity: "file:/Users/yp/Projects/musyx/crates/musyx/src"
+timestamp: 2026-10-18T09-24-01Z
+slug: crates-musyx-src
+---
+Method: dual-agent (A: design review · B: detector + pixel/source evidence). The app is native iced, so the web detector ran only on design/mockup.html. B replaced the browser overlay with contrast measured from snapshot pixels, hit-target measurements and static source scans. The evidence is 21 snapshots: dark/English and light/Russian, sample data, no network.
+
+## Design Health Score
+
+| # | Heuristic | Score | Key Issue |
+|---|-----------|-------|-----------|
+| 1 | Visibility of System Status | 2 | Every loading state is a grey sentence. Buffering is drawn as a half-alpha pause glyph that renders as a normal one, because the SVG tint drops alpha. The playing row can't show paused. |
+| 2 | Match System / Real World | 3 | Copy and Russian plurals are strong. "Tap the heart" is phone wording in a desktop app. Up to three "Go to artist" items appear without names. |
+| 3 | User Control and Freedom | 2 | Dislike can't be undone, and nothing lists disliked tracks. One click replaces the queue. The queue is read-only. Esc closes nothing. |
+| 4 | Consistency and Standards | 2 | The track menu opens as a centred modal, with no right-click. Space doesn't toggle playback. Play sits in a different place on list screens than on detail screens. |
+| 5 | Error Prevention | 2 | The one-click Dislike sits 12px from Like. It skips the track and silently unlikes it. |
+| 6 | Recognition Rather Than Recall | 2 | 16 icon-only buttons have no tooltips. Chart is missing from the nav. |
+| 7 | Flexibility and Efficiency | 1 | There are no in-app shortcuts, no multi-select, no filter on Liked tracks and no drag reordering. |
+| 8 | Aesthetic and Minimalist Design | 3 | The design is quiet and coherent. The hero is repeated on Home and My Wave, and "more" shows on every row. |
+| 9 | Error Recovery | 3 | Every failure names the next step and offers "Try again". Failures look the same as loading text. |
+| 10 | Help and Documentation | 2 | The sign-in steps and quality explanations are good. There is no shortcut list or tuning hint, and "OAuth token" appears on the first screen. |
+| **Total** | | **22/40** | **Acceptable** |
+
+## Design Specificity Verdict
+
+**LLM assessment:** The structure belongs to Yandex Music; the interaction layer could belong to any player. My Wave is the hero, mood, character and language tuning is built in, Dislike sits in the player bar, Plus status and 30-second previews are explained, and "Podcasts and books" mirrors Yandex's catalogue. Aubergine with a single amber, Unbounded and the dotted wordmark make a real identity, and it holds in both themes. But the shell is the standard Spotify layout: a 232px sidebar, pill search, a three-zone player bar and a numbered table with a clock icon over durations. The "tape-deck VU needle" behind the accent appears only in DESIGN.md: nothing in the app moves like a needle. The hero is 14 generic sine lines, identical on Home and My Wave, and they hold still until My Wave plays. The build also loses most of the mockup's character: the Tune button in the hero, display-face chart ranks, the card hover play, the animated equaliser on the playing row, and the live sign-in canvas.
+
+**Deterministic scan:** On design/mockup.html the detector found 10 low-contrast findings, all in the light palette. Nine are `#FFF7E6` on `#A86C05` at 4.1:1, which covers primary buttons and pressed segments. One is `#2E8A55` on white at 4.3:1 ("Plus subscription"). Both carry over to the iced app, and the second is worse there: the sidebar renders on `bg`, not `panel`, so "Подписка Плюс" measures 3.83:1 in pixels. The play-fab finding is mockup-only. The scan found no false positives for the native app. Beyond what the review saw, the measurements show:
+- Disabled prev/next render at full `muted`, so the 0.45 alpha is lost.
+- The seek rail is 1.13:1 against the player bar, so it is invisible when idle.
+- Line borders on ghost buttons and chips are 1.3–1.5:1.
+- The danger button is white on `like` at 2.79:1 in dark.
+- 19 hardcoded colours sit outside theme.rs, including a non-token `#4A4458`.
+- 16 font sizes and 52 spacing values are off the scale.
+
+theme.rs matches DESIGN.md exactly, 10 of 10 tokens.
+
+**Visual overlays:** None. iced exposes no DOM or CDP, so nothing was injected.
+
+## Overall Impression
+
+Musyx is a well-built, disciplined player: the tokens are exact, the copy is excellent in both languages, and the OS integration is real. The weak spot is how the app reacts to input. It ignores the keyboard, routine track actions open a modal, the most destructive one-click action has no undo, and several state changes never reach the screen. The biggest opportunity is to make it behave like a desktop app: keys, right-click, focus, undo. After that, give the VU-needle idea a real form so the identity lives in the controls and not just in the colours.
+
+## What's Working
+
+1. **Token discipline and dark-mode legibility.** Every sampled pixel matched its token. Every dark-mode text pair passes: muted on bg is 6.5:1, accent_ink on accent 8.7:1, accent on bg 9.1:1. The chip, tab and ghost styles are shared by Settings, My Wave and Search.
+2. **Copy and localisation craft.**
+ - 253 keys, none missing in Russian.
+ - Correct Russian plurals, genitive months and "4,1 млн"-style numbers.
+ - Quality options state their cost.
+ - Every error names the next step. "You're still signed in" on the offline screen is exactly the reassurance that moment needs.
+3. **Native integration.**
+ - Media keys and Now Playing through souvlaki.
+ - A macOS menu-bar mini player that appears only when the window is minimised.
+ - Lazy track lists that don't rebuild on every position tick.
+
+## Priority Issues
+
+**[P0] There is no keyboard path.**
+- *Why:* app.rs:265 subscribes to theme, audio, media keys and timers, and nothing else. Buttons have no focused style, so Tab reaches only text inputs. Space, Cmd/Ctrl+F and Esc do nothing. `topbar::SEARCH_ID` is defined but never focused, even when you click Search. People keep a player open for hours, and a keyboard-only user can't use it at all.
+- *Fix:* add an `iced::event::listen_with` keyboard subscription, ignored while a text input has focus:
+ - Space: play/pause.
+ - Cmd/Ctrl+F or `/`: focus search.
+ - Esc: close the sheet, then the drawer, then suggestions.
+ - Cmd+←/→: previous/next track.
+ - Cmd+↑/↓: volume.
+ - Cmd+L: like.
+ - Cmd+[: back.
+ - Cmd+1–5: nav items.
+
+ Also focus the field on `Navigate(Route::Search)`, and add a focus ring through a focusable wrapper.
+- *Suggested command:* /impeccable harden
+
+**[P1] The track menu is a modal centred on the window.**
+- *Why:* sheet.rs:40 dims the whole window for routine actions. It lists 8–13 items with one divider, repeats "Go to artist" without names, and stays open after an action. Reordering a playlist means reopening it once per position. There is no right-click, which breaks the most basic desktop convention for a list.
+- *Fix:*
+ - Open the menu from `mouse_area::on_right_press` on rows, or from "…", as a popover at the cursor.
+ - Use three groups: (Play next, Add to queue) · (Like, Add to playlist…, Don't recommend) · (Go to album, Go to {artist name}).
+ - Close the menu on action and confirm with a toast.
+ - Bring back the mockup's grip column for drag reordering.
+- *Suggested command:* /impeccable shape
+
+**[P1] Dislike fires on one click, with hidden side effects and no recovery.**
+- *Why:* the unlabelled ban icon sits 12px from the heart (player_bar.rs:86). One click skips the track, removes it from Liked tracks (edit.rs:76) and shows a toast with no undo. The Disliked tab from the mockup was dropped, so nothing in the app lists dislikes. A mis-click silently loses a liked track.
+- *Fix:*
+ - Add Undo to the toast: re-like the track and send `DislikeTrack(track, false)`.
+ - Add a tooltip.
+ - Space Dislike away from Like.
+ - Restore the Disliked tab in collection.rs.
+- *Suggested command:* /impeccable harden
+
+**[P2] The light theme and the boundaries fail contrast.** The detector and the pixels agree.
+- *Why:* light accent_ink on accent is 4.09:1, which covers every primary button and selected chip. Light accent as text is 3.89:1: the playing row, the current track in the drawer, the Lossless badge. ok text is 3.83:1. In both themes, the seek and volume rails are about 1.1–1.2:1 and the line borders 1.3–1.5:1. The dark danger button is 2.79:1. Genre tiles put white text on colours from the API without checking contrast. In light, the selected nav fill is about 1.1:1 against bg, so only the amber icon marks the current page.
+- *Fix:*
+ - Light accent `#8F5B00` (5.4:1 with ink, 5.1:1 on bg).
+ - Light ok `#25744A`.
+ - Rail track at `line` or brighter.
+ - A dark-ink label on the danger button.
+ - A luminance-based text colour or a scrim on genre tiles.
+ - A 2–3px amber bar on the active nav row.
+ - Update DESIGN.md alongside theme.rs.
+- *Suggested command:* /impeccable colorize (palette correction), then /impeccable audit
+
+**[P2] Several states never reach the screen.**
+- *Why:* `svg::Style::color` ignores alpha. B measured disabled prev/next at full `muted`. The same code path should make the Loading disc look identical to Playing (player_bar.rs:116), and the idle row heart look like an enabled control (track_row.rs:97); these two weren't captured in snapshots. The playing row uses a static glyph, so pause doesn't show. Errors use the loading paragraph style. The album column is cut mid-glyph with no ellipsis ("Солнц", "любов" with the drawer open). On light/RU Home, the two-line subtitle pushes the hero title 14pt into the wave lines.
+- *Fix:*
+ - Pass fully opaque tints that are pre-mixed with the surface instead of using `scale_alpha` on icons.
+ - Show buffering as a spinner or pulsing ring on the disc.
+ - Make the playing indicator an animated meter that freezes when paused.
+ - Give errors an icon and a `like` lead line.
+ - Add ellipsis truncation or a fade mask for the album column.
+ - Anchor the wave band to the hero's top, or add a scrim under the title.
+- *Suggested command:* /impeccable polish
+
+## Persona Red Flags
+
+**Alex (power user)**
+- No shortcuts.
+- A single click plays and replaces the queue, so there is no selection or batch "Add to playlist".
+- No filter or sort on a Liked list of 1,000+ tracks.
+- The queue can't be edited: no remove, reorder or clear.
+- Reordering a playlist takes one modal per position.
+- Chart is reachable only through Home's "Show all".
+- The window title doesn't show the track that is playing.
+
+**Sam (keyboard-only, low vision)**
+- Tab reaches no button, and there is no focus indicator.
+- 16 icon buttons have no tooltip. iced 0.14 exposes no accessibility tree, so screen readers get nothing; the README should say so.
+- Light-theme failures at 3.8–4.1:1.
+- The paused and playing states differ only by colour and a static glyph.
+- Text sizes are 11.5–12.5pt for the quality badge, the plan line and the player times.
+
+**Jordan (first-timer)**
+- Sign-in adds a "Get sign-in code" click before any code appears.
+- The QR area is a white card with a grey lock, which reads as locked or broken.
+- "OAuth token" appears on the first screen.
+- Clicking Search opens a page titled "Browse" with no cursor in the field.
+- The microphone icon means lyrics, and nothing labels it.
+- First Home is a stack of "Loading…" lines next to a disabled grey play disc that could have offered "Play My Wave".
+
+## Minor Observations
+
+- **Detail pages:** Play and Shuffle sit in a separate right-aligned row with an empty left half (detail.rs:181). On your own playlist, Delete sits next to the title while Play is lower down. Put Play, Shuffle, heart and "…" together in the header, and move Rename, visibility and Delete into "…".
+- **Sidebar:** DESIGN.md says it uses the `panel` fill, but it renders on `bg` (app.rs:1037). The playlist list mixes owned and liked playlists without a divider.
+- **"More" on rows:** DESIGN.md says it appears on hover, but it is always visible.
+- **Volume fill:** it uses `fg`, which makes it the brightest mark in the player bar and pulls attention from the amber progress bar.
+- **Scroll position:** the page scrollable has no id and is never reset, so new routes may open at the old offset and Back doesn't restore position. This was not confirmed at runtime.
+- **"Show all":** the links use the tab style, which reads as a tab rather than a link.
+- **Collection tabs:** the counts pop in one at a time.
+- **Off-scale values:** about 16 font sizes (13.5 ×6, 12, 15, 17, 11.5, 9) and 52 spacing values (16 ×9, 9 ×8, 24 ×7) are off the DESIGN.md scale. Either fold them in or record them.
+- **Podcasts:** the mockup's "Continue listening" is gone, so there is no resume point for podcasts or audiobooks.
+
+## Questions to Consider
+
+- If the accent is a VU needle, why does nothing move like one? Should the seek or volume control become the needle, with a sweep and settle on each track change, and the generic sine lines retired?
+- Home and My Wave show the same hero. Once My Wave is playing, should Home give that space to "Continue" content, or should My Wave simply be the home screen?
+- What would Musyx feel like with desktop selection rules: click selects, double-click or Enter plays, Space toggles, right-click opens the menu? Does a one-click Dislike belong in the player bar during a session that lasts hours?
diff --git a/.impeccable/design.json b/.impeccable/design.json
new file mode 100644
index 0000000..74c5328
--- /dev/null
+++ b/.impeccable/design.json
@@ -0,0 +1,487 @@
+{
+ "schemaVersion": 2,
+ "generatedAt": "2026-10-18T13:49:28+00:00",
+ "title": "Design System: Musyx",
+ "extensions": {
+ "colorMeta": {
+ "bg": {
+ "role": "neutral",
+ "displayName": "Aubergine Graphite",
+ "canonical": "#1C1A22",
+ "tonalRamp": [
+ "#24212B",
+ "#3F3A4C",
+ "#5A546D",
+ "#756D8E",
+ "#948DA8",
+ "#B3AEC1",
+ "#D2D0DB",
+ "#F1F1F4"
+ ]
+ },
+ "panel": {
+ "role": "neutral",
+ "displayName": "Casing Panel",
+ "canonical": "#23202B",
+ "tonalRamp": [
+ "#24212C",
+ "#3F3A4D",
+ "#5A526F",
+ "#756B90",
+ "#948CAA",
+ "#B3AEC2",
+ "#D2CFDB",
+ "#F1F0F4"
+ ]
+ },
+ "raised": {
+ "role": "neutral",
+ "displayName": "Raised Plate",
+ "canonical": "#2D2937",
+ "tonalRamp": [
+ "#24212C",
+ "#3F3A4D",
+ "#5B526F",
+ "#766B90",
+ "#958CA9",
+ "#B4AEC2",
+ "#D2CFDB",
+ "#F1F0F4"
+ ]
+ },
+ "line": {
+ "role": "neutral",
+ "displayName": "Seam",
+ "canonical": "#3A3546",
+ "tonalRamp": [
+ "#24212C",
+ "#403A4D",
+ "#5B536E",
+ "#776C8F",
+ "#958DA9",
+ "#B4AEC2",
+ "#D3CFDB",
+ "#F2F0F4"
+ ]
+ },
+ "fg": {
+ "role": "neutral",
+ "displayName": "Label White",
+ "canonical": "#EEEAF3",
+ "tonalRamp": [
+ "#251C31",
+ "#413156",
+ "#5E467B",
+ "#7A5BA0",
+ "#9880B6",
+ "#B6A5CB",
+ "#D4CAE1",
+ "#F2EFF6"
+ ]
+ },
+ "muted": {
+ "role": "neutral",
+ "displayName": "Faded Label",
+ "canonical": "#A39CB0",
+ "tonalRamp": [
+ "#25222B",
+ "#413C4B",
+ "#5D566B",
+ "#79708C",
+ "#9790A6",
+ "#B6B0C0",
+ "#D4D0DA",
+ "#F2F1F4"
+ ]
+ },
+ "accent": {
+ "role": "primary",
+ "displayName": "Indicator Amber",
+ "canonical": "#F0B23E",
+ "tonalRamp": [
+ "#473006",
+ "#7D550A",
+ "#B37A0E",
+ "#E99E12",
+ "#F1B545",
+ "#F5CA7B",
+ "#F9E0B1",
+ "#FDF6E7"
+ ]
+ },
+ "accent-ink": {
+ "role": "primary",
+ "displayName": "Amber Ink",
+ "canonical": "#2A1D04",
+ "tonalRamp": [
+ "#463007",
+ "#7B550C",
+ "#B07A11",
+ "#E69E16",
+ "#EEB548",
+ "#F3CA7D",
+ "#F8E0B3",
+ "#FDF6E8"
+ ]
+ },
+ "like": {
+ "role": "secondary",
+ "displayName": "Heart Rose",
+ "canonical": "#F27286",
+ "tonalRamp": [
+ "#460610",
+ "#7B0B1D",
+ "#B11029",
+ "#E61536",
+ "#EE4862",
+ "#F37D8F",
+ "#F8B2BD",
+ "#FDE8EB"
+ ]
+ },
+ "ok": {
+ "role": "secondary",
+ "displayName": "Signal Green",
+ "canonical": "#7FCB9B",
+ "tonalRamp": [
+ "#163622",
+ "#27603C",
+ "#388956",
+ "#49B370",
+ "#71C590",
+ "#9AD6B0",
+ "#C3E7D0",
+ "#EDF8F1"
+ ]
+ },
+ "bg-light": {
+ "role": "neutral",
+ "displayName": "Aubergine Graphite (light)",
+ "canonical": "#F3F1F6",
+ "tonalRamp": [
+ "#251E2F",
+ "#403552",
+ "#5C4C76",
+ "#786299",
+ "#9685B1",
+ "#B5A9C7",
+ "#D3CCDE",
+ "#F2EFF5"
+ ]
+ },
+ "panel-light": {
+ "role": "neutral",
+ "displayName": "Casing Panel (light)",
+ "canonical": "#FFFFFF",
+ "tonalRamp": [
+ "#262626",
+ "#434343",
+ "#616161",
+ "#7E7E7E",
+ "#9B9B9B",
+ "#B8B8B8",
+ "#D5D5D5",
+ "#F2F2F2"
+ ]
+ },
+ "raised-light": {
+ "role": "neutral",
+ "displayName": "Raised Plate (light)",
+ "canonical": "#EAE6F0",
+ "tonalRamp": [
+ "#241D30",
+ "#403354",
+ "#5C4879",
+ "#775E9D",
+ "#9682B4",
+ "#B4A6CA",
+ "#D3CBE0",
+ "#F2EFF5"
+ ]
+ },
+ "line-light": {
+ "role": "neutral",
+ "displayName": "Seam (light)",
+ "canonical": "#DCD6E4",
+ "tonalRamp": [
+ "#251E2E",
+ "#413651",
+ "#5E4D74",
+ "#7A6498",
+ "#9886AF",
+ "#B6A9C7",
+ "#D4CCDE",
+ "#F2F0F5"
+ ]
+ },
+ "fg-light": {
+ "role": "neutral",
+ "displayName": "Label White (light)",
+ "canonical": "#1F1B27",
+ "tonalRamp": [
+ "#241F2D",
+ "#3F3750",
+ "#5B4F72",
+ "#766795",
+ "#9589AD",
+ "#B4ABC5",
+ "#D3CDDD",
+ "#F1F0F5"
+ ]
+ },
+ "muted-light": {
+ "role": "neutral",
+ "displayName": "Faded Label (light)",
+ "canonical": "#686178",
+ "tonalRamp": [
+ "#25222A",
+ "#413C4B",
+ "#5D566B",
+ "#78708B",
+ "#9790A5",
+ "#B5B0BF",
+ "#D3D1DA",
+ "#F2F1F4"
+ ]
+ },
+ "accent-light": {
+ "role": "primary",
+ "displayName": "Indicator Amber (light)",
+ "canonical": "#A86C05",
+ "tonalRamp": [
+ "#4A3002",
+ "#835404",
+ "#BB7906",
+ "#F49D07",
+ "#F9B43C",
+ "#FBCA75",
+ "#FDE0AE",
+ "#FEF5E6"
+ ]
+ },
+ "accent-ink-light": {
+ "role": "primary",
+ "displayName": "Amber Ink (light)",
+ "canonical": "#FFF7E6",
+ "tonalRamp": [
+ "#4C3400",
+ "#875C00",
+ "#C18300",
+ "#FBAB00",
+ "#FFBF37",
+ "#FFD271",
+ "#FFE4AB",
+ "#FFF7E6"
+ ]
+ },
+ "like-light": {
+ "role": "secondary",
+ "displayName": "Heart Rose (light)",
+ "canonical": "#D2405A",
+ "tonalRamp": [
+ "#3E0F17",
+ "#6D1A29",
+ "#9C253A",
+ "#CB304C",
+ "#D95D73",
+ "#E48C9C",
+ "#EFBBC4",
+ "#FAEAED"
+ ]
+ },
+ "ok-light": {
+ "role": "secondary",
+ "displayName": "Signal Green (light)",
+ "canonical": "#2E8A55",
+ "tonalRamp": [
+ "#133923",
+ "#22653E",
+ "#309159",
+ "#3FBD74",
+ "#69CD93",
+ "#94DBB3",
+ "#C0EAD2",
+ "#ECF9F1"
+ ]
+ }
+ },
+ "typographyMeta": {
+ "display": {
+ "displayName": "Display",
+ "purpose": "My Wave hero, detail titles, sign-in headline, screen titles (46/40/34/30)."
+ },
+ "wordmark": {
+ "displayName": "Wordmark",
+ "purpose": "musyx plus the amber dot."
+ },
+ "section": {
+ "displayName": "Section",
+ "purpose": "Section headings, sheet and settings card titles."
+ },
+ "body": {
+ "displayName": "Body",
+ "purpose": "Rows, menu entries, buttons, paragraphs."
+ },
+ "meta": {
+ "displayName": "Meta",
+ "purpose": "Artist lines, album column, durations, help text."
+ },
+ "small": {
+ "displayName": "Small",
+ "purpose": "Column headers, sidebar labels, player times."
+ }
+ },
+ "shadows": [
+ {
+ "name": "primary-lift",
+ "value": "0 4px 12px rgba(0,0,0,0.18)",
+ "purpose": "Primary pill buttons only."
+ },
+ {
+ "name": "menu-float",
+ "value": "0 10px 28px rgba(0,0,0,0.30)",
+ "purpose": "Context menu and its submenu."
+ },
+ {
+ "name": "toast-float",
+ "value": "0 6px 18px rgba(0,0,0,0.30)",
+ "purpose": "The status pill above the player bar."
+ },
+ {
+ "name": "dialog-float",
+ "value": "0 18px 50px rgba(0,0,0,0.35)",
+ "purpose": "Dialogs, over a 45% black backdrop."
+ }
+ ],
+ "motion": [],
+ "breakpoints": []
+ },
+ "components": [
+ {
+ "name": "Primary Button",
+ "kind": "button",
+ "refersTo": "button-primary",
+ "description": "The one amber action on a screen: Play, Create, Rename.",
+ "html": "",
+ "css": ".ds-btn-primary { display:inline-flex; align-items:center; gap:8px; font-family: Onest, system-ui, sans-serif; font-weight:600; font-size:14px; background:#F0B23E; color:#2A1D04; border:none; border-radius:999px; padding:10px 18px; box-shadow:0 4px 12px rgba(0,0,0,0.18); cursor:pointer; } .ds-btn-primary:hover { background:#F1BC59; } .ds-btn-primary:active { background:#D59E3B; } .ds-btn-primary:focus-visible { outline:2px solid #EEEAF3; outline-offset:2px; }"
+ },
+ {
+ "name": "Ghost Button",
+ "kind": "button",
+ "refersTo": "button-ghost",
+ "description": "Secondary action beside Primary, e.g. Shuffle, Cancel.",
+ "html": "",
+ "css": ".ds-btn-ghost { font-family: Onest, system-ui, sans-serif; font-weight:500; font-size:14px; background:transparent; color:#EEEAF3; border:1px solid #3A3546; border-radius:999px; padding:10px 18px; cursor:pointer; } .ds-btn-ghost:hover { background:#2D2937; } .ds-btn-ghost:focus-visible { outline:2px solid #F0B23E; outline-offset:2px; }"
+ },
+ {
+ "name": "Chip",
+ "kind": "chip",
+ "refersTo": "chip",
+ "description": "Single-choice settings: quality, appearance, language, wave tuning.",
+ "html": "
",
+ "css": ".ds-toast { display:inline-block; font-family: Onest, system-ui, sans-serif; font-weight:500; font-size:14px; background:#EEEAF3; color:#1C1A22; border-radius:999px; padding:10px 18px; box-shadow:0 6px 18px rgba(0,0,0,0.30); }"
+ }
+ ],
+ "narrative": {
+ "northStar": "The Late-Night Tape Deck",
+ "overview": "Musyx looks like a piece of dark hardware playing in a dim room late at night. The casing is aubergine graphite. The controls are quiet and almost the same colour as the casing. Exactly one thing glows: an amber lamp that marks what is playing, what you chose and what you can press next. People leave the window open for hours, so nothing moves or competes for attention unless the music asks for it.\n\nThe layout is the familiar desktop player shell: sidebar, content, player bar, and an optional drawer. Its brand shows in the details, not the structure. There is one display face for titles and one plain face for everything else. Depth comes from three close tonal steps, not from shadows. Interactions follow desktop rules: right-click menus at the pointer, keyboard shortcuts, and drag to reorder. The My Wave hero is the one place that animates. Its amber lines drift only while My Wave is actually playing.\n\nThe theme is dark first. The light theme follows the system setting, or the choice in Settings, and keeps every role.",
+ "keyCharacteristics": [
+ "One amber accent on an aubergine ground. Amber means \"this one, now\".",
+ "Three tonal surfaces (bg, panel, raised) do the layering. Shadows appear only on things that float.",
+ "Unbounded for titles, Onest for everything else. Icons are Lucide at 18pt.",
+ "Dense, scannable lists with 52pt track rows.",
+ "Desktop-native interaction: context menus, shortcuts, drag reorder, media keys, and a macOS menu-bar mini player."
+ ],
+ "rules": [
+ {
+ "name": "The One Lit Lamp Rule",
+ "body": "Amber marks state (playing, selected, primary, focused) and nothing else. Never use it to decorate. If a screen has two amber things, they must be the same \"now\".",
+ "section": "colors"
+ },
+ {
+ "name": "The Light-Theme Contrast Rule",
+ "body": "In the light theme, amber text on `bg` measures 3.9:1 and `ok` text measures 3.8:1. Both are below AA for body text. Until the light accent is darkened, keep amber text in light mode to titles of 14pt medium or larger, and never use it for small meta text.",
+ "section": "colors"
+ },
+ {
+ "name": "The Two Faces Rule",
+ "body": "Unbounded appears only at display sizes and in the wordmark. Everything interactive is Onest.",
+ "section": "typography"
+ },
+ {
+ "name": "The Float-Only Shadow Rule",
+ "body": "If it isn't floating above the content (menu, toast, dialog) and it isn't the primary button, it has no shadow.",
+ "section": "elevation"
+ },
+ {
+ "name": "The No-Dim Rule",
+ "body": "Only dialogs dim the window. Menus, the drawer and toasts never do.",
+ "section": "elevation"
+ }
+ ],
+ "dos": [
+ "**Do** take every colour from `Tokens` in `theme.rs`, and change DESIGN.md in the same commit.",
+ "**Do** use Lucide 0.460 icons at 18pt, tinted with the colour of the text they sit beside. New icons go in `assets/icons` with the Lucide license header.",
+ "**Do** put routine actions on an item in its context menu, and confirm them with a toast.",
+ "**Do** give every new action a keyboard path, and add it to the Settings shortcut list.",
+ "**Do** translate every string through `tr`/`trf` with a Russian entry in `i18n/ru.rs`. The test suite fails otherwise.",
+ "**Do** test new screens in both themes and both languages with the snapshot tool (`MUSYX_SNAPSHOT_*`, see `snapshot.rs`). Russian labels run about 30% longer."
+ ],
+ "donts": [
+ "**Don't** use amber for decoration, borders or illustrations other than the My Wave hero.",
+ "**Don't** open a dialog for anything that doesn't need typing or a destructive confirmation.",
+ "**Don't** dim the window for menus, the drawer or toasts.",
+ "**Don't** fade icons with `scale_alpha`. iced's SVG tint drops alpha, so a faded icon renders at full strength. Disabled previous/next already do this. Pre-mix the colour with the surface.",
+ "**Don't** add hardcoded colours outside `theme.rs`. About 19 still exist (sign-in, genre tiles, dialogs) and should move into tokens when touched.",
+ "**Don't** add shadows to resting surfaces. Depth comes from `bg` → `panel` → `raised`."
+ ]
+ }
+}
diff --git a/DESIGN.md b/DESIGN.md
index f6f8b18..91d2157 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -1,63 +1,475 @@
-# Musyx design system
+---
+name: Musyx
+description: A dark-first desktop player for Yandex Music, built with iced.
+colors:
+ bg: "#1C1A22"
+ panel: "#23202B"
+ raised: "#2D2937"
+ line: "#3A3546"
+ fg: "#EEEAF3"
+ muted: "#A39CB0"
+ accent: "#F0B23E"
+ accent-ink: "#2A1D04"
+ like: "#F27286"
+ ok: "#7FCB9B"
+ bg-light: "#F3F1F6"
+ panel-light: "#FFFFFF"
+ raised-light: "#EAE6F0"
+ line-light: "#DCD6E4"
+ fg-light: "#1F1B27"
+ muted-light: "#686178"
+ accent-light: "#A86C05"
+ accent-ink-light: "#FFF7E6"
+ like-light: "#D2405A"
+ ok-light: "#2E8A55"
+typography:
+ display:
+ fontFamily: "Unbounded"
+ fontSize: "46px"
+ fontWeight: 600
+ display-l:
+ fontFamily: "Unbounded"
+ fontSize: "40px"
+ fontWeight: 600
+ display-m:
+ fontFamily: "Unbounded"
+ fontSize: "34px"
+ fontWeight: 600
+ display-s:
+ fontFamily: "Unbounded"
+ fontSize: "30px"
+ fontWeight: 600
+ wordmark:
+ fontFamily: "Unbounded"
+ fontSize: "20px"
+ fontWeight: 600
+ section:
+ fontFamily: "Onest"
+ fontSize: "19px"
+ fontWeight: 600
+ body:
+ fontFamily: "Onest"
+ fontSize: "14px"
+ fontWeight: 400
+ lineHeight: 1.45
+ body-medium:
+ fontFamily: "Onest"
+ fontSize: "14px"
+ fontWeight: 500
+ meta:
+ fontFamily: "Onest"
+ fontSize: "13px"
+ fontWeight: 400
+ small:
+ fontFamily: "Onest"
+ fontSize: "12.5px"
+ fontWeight: 400
+rounded:
+ small-cover: "6px"
+ control: "8px"
+ cover: "10px"
+ card: "14px"
+ hero: "16px"
+ pill: "999px"
+spacing:
+ xs: "4px"
+ s: "8px"
+ m: "12px"
+ l: "18px"
+ xl: "22px"
+ gutter: "28px"
+ section: "34px"
+components:
+ button-primary:
+ backgroundColor: "{colors.accent}"
+ textColor: "{colors.accent-ink}"
+ typography: "{typography.body-medium}"
+ rounded: "{rounded.pill}"
+ padding: "10px 18px"
+ button-ghost:
+ backgroundColor: "transparent"
+ textColor: "{colors.fg}"
+ rounded: "{rounded.pill}"
+ padding: "10px 18px"
+ button-ghost-hover:
+ backgroundColor: "{colors.raised}"
+ chip:
+ textColor: "{colors.fg}"
+ rounded: "{rounded.pill}"
+ padding: "7px 13px"
+ chip-selected:
+ backgroundColor: "{colors.accent}"
+ textColor: "{colors.accent-ink}"
+ icon-button:
+ textColor: "{colors.muted}"
+ rounded: "{rounded.control}"
+ size: "34px"
+ icon-button-hover:
+ backgroundColor: "{colors.raised}"
+ textColor: "{colors.fg}"
+ nav-item-active:
+ backgroundColor: "{colors.raised}"
+ textColor: "{colors.fg}"
+ rounded: "{rounded.control}"
+ search-field:
+ backgroundColor: "{colors.panel}"
+ textColor: "{colors.fg}"
+ rounded: "{rounded.pill}"
+ padding: "10px 16px"
+ width: "420px"
+ track-row:
+ textColor: "{colors.fg}"
+ rounded: "{rounded.control}"
+ height: "52px"
+ track-row-lit:
+ backgroundColor: "{colors.raised}"
+ context-menu:
+ backgroundColor: "{colors.panel}"
+ rounded: "{rounded.cover}"
+ padding: "6px"
+ width: "280px"
+ context-menu-item:
+ textColor: "{colors.fg}"
+ typography: "{typography.body}"
+ rounded: "{rounded.control}"
+ height: "32px"
+ card:
+ textColor: "{colors.fg}"
+ rounded: "{rounded.cover}"
+ width: "168px"
+ dialog:
+ backgroundColor: "{colors.panel}"
+ rounded: "{rounded.card}"
+ padding: "18px"
+ width: "380px"
+ toast:
+ backgroundColor: "{colors.fg}"
+ textColor: "{colors.bg}"
+ rounded: "{rounded.pill}"
+ padding: "10px 18px"
+ key-cap:
+ backgroundColor: "{colors.raised}"
+ textColor: "{colors.fg}"
+ typography: "{typography.meta}"
+ rounded: "{rounded.small-cover}"
+ padding: "2px 8px"
+---
-The approved mockup is [`design/mockup.html`](design/mockup.html) (published at
-https://claude.ai/artifact/2gmswtceJM61fcE2F5uYYM). This file records its tokens. They map
-1:1 to [`crates/musyx/src/ui/theme.rs`](crates/musyx/src/ui/theme.rs), so change both together.
+# Design System: Musyx
-## Direction
+The source of truth is the build. The tokens above map 1:1 to
+[`crates/musyx/src/ui/theme.rs`](crates/musyx/src/ui/theme.rs), so change both together. Keys
+without a suffix are the dark theme. The `-light` keys are the same roles in the light theme.
+[`design/mockup.html`](design/mockup.html) is the original exploration (see [History](#history)).
+It is no longer the authority.
-The ground is aubergine graphite, with one amber accent taken from a tape deck's VU needle.
-The app is dark-first, and the light theme follows the system setting. Everything stays quiet
-except the My Wave hero, which is the one animated, accent-heavy surface.
+## Overview
-## Colour
+**Creative North Star: "The Late-Night Tape Deck"**
-| Token | Dark | Light | Used for |
-|--------------|-----------|-----------|----------|
-| `bg` | `#1C1A22` | `#F3F1F6` | Window and content background |
-| `panel` | `#23202B` | `#FFFFFF` | Sidebar, player bar, drawer, cards that need separation |
-| `raised` | `#2D2937` | `#EAE6F0` | Hover and selected rows, chip fills, progress track |
-| `line` | `#3A3546` | `#DCD6E4` | 1px dividers and outlines |
-| `fg` | `#EEEAF3` | `#1F1B27` | Primary text, the play/pause disc |
-| `muted` | `#A39CB0` | `#686178` | Secondary text, idle icons |
-| `accent` | `#F0B23E` | `#A86C05` | Current track, progress fill, primary buttons, active nav icon |
-| `accent_ink` | `#2A1D04` | `#FFF7E6` | Text and icons on `accent` |
-| `like` | `#F27286` | `#D2405A` | Filled heart, falling chart position |
-| `ok` | `#7FCB9B` | `#2E8A55` | Subscription status, rising chart position |
+Musyx looks like a piece of dark hardware playing in a dim room late at night. The casing is
+aubergine graphite. The controls are quiet and almost the same colour as the casing. Exactly
+one thing glows: an amber lamp that marks what is playing, what you chose and what you can
+press next. People leave the window open for hours, so nothing moves or competes for attention
+unless the music asks for it.
-Covers that have no artwork yet get a placeholder made of two hues (`h1`, `h2`) derived from
-the item id, painted as a diagonal gradient between them.
+The layout is the familiar desktop player shell: sidebar, content, player bar, and an optional
+drawer. Its brand shows in the details, not the structure. There is one display face for titles
+and one plain face for everything else. Depth comes from three close tonal steps, not from
+shadows. Interactions follow desktop rules: right-click menus at the pointer, keyboard shortcuts,
+and drag to reorder. The My Wave hero is the one place that animates. Its amber lines drift only
+while My Wave is actually playing.
-## Type
+The theme is dark first. The light theme follows the system setting, or the choice in Settings,
+and keeps every role.
-| Role | Face | Size / weight | Where |
-|---------|----------------------|--------------------|-------|
-| Display | Unbounded SemiBold | 46 / 40 / 34 / 30 | My Wave hero, detail page titles, sign-in headline, screen titles |
-| Wordmark| Unbounded SemiBold | 20 | `musyx` + amber dot |
-| Section | Onest SemiBold | 19 | Section headings ("Made for you") |
-| Body | Onest Regular/Medium | 14 (rows 14, meta 13, small 12.5) | Everything else |
+**Key Characteristics:**
+- One amber accent on an aubergine ground. Amber means "this one, now".
+- Three tonal surfaces (bg, panel, raised) do the layering. Shadows appear only on things that float.
+- Unbounded for titles, Onest for everything else. Icons are Lucide at 18pt.
+- Dense, scannable lists with 52pt track rows.
+- Desktop-native interaction: context menus, shortcuts, drag reorder, media keys, and a macOS
+ menu-bar mini player.
-The fonts are bundled from `crates/musyx/assets/fonts` and licensed under OFL. Durations and
-counts use tabular figures.
+## Colors
-## Space and shape
+A near-monochrome violet-grey palette with a single warm amber and two quiet status colours.
-- Spacing steps: 2 · 4 · 6 · 8 · 10 · 12 · 14 · 18 · 22 · 28 · 34. Content gutter is 28,
- and the gap between sections is 34.
-- Radii: cover 10 · control 8 · small cover 6 · pill/round 999 · hero 16 · window cards 14.
-- Shell: sidebar 232 · player bar 80 · drawer 320 · track row 52 tall.
-- Icons: Lucide 0.460 (ISC), 18px and tinted via `currentColor`. The `-fill` variants are for
- liked, play and pause.
+### Primary
+- **Indicator Amber** (`accent`): the playing track's title, the progress fill, primary buttons,
+ selected chips, the active nav icon, the active tab underline, the focused search border, the
+ wordmark dot and the My Wave hero lines. The Lossless quality badge also turns amber when Yandex
+ serves FLAC.
+- **Amber Ink** (`accent-ink`): text and icons placed on amber.
+
+### Secondary
+- **Heart Rose** (`like`): a filled heart, a falling chart position, destructive menu entries
+ ("Remove from this playlist", "Delete…") and the player's error notice line.
+- **Signal Green** (`ok`): subscription status and a rising chart position.
+
+### Neutral
+- **Aubergine Graphite** (`bg`): the window, the content area and the sidebar.
+- **Casing Panel** (`panel`): the player bar, the drawer, cards that need separation, the search
+ field, dialogs and the context menu.
+- **Raised Plate** (`raised`): hover and selected rows, lit track rows, chip hover, the slider
+ rail and key caps.
+- **Seam** (`line`): 1px dividers, outlines on ghost buttons and chips, the menu border and the
+ scrollbar thumb.
+- **Label White** (`fg`): primary text, the play/pause disc, the volume fill and the toast fill.
+- **Faded Label** (`muted`): secondary text, idle icons, column headers and placeholders.
+
+Covers with no artwork yet get a placeholder: a diagonal gradient between two hues derived from
+the item's id.
+
+### Named Rules
+**The One Lit Lamp Rule.** Amber marks state (playing, selected, primary, focused) and nothing
+else. Never use it to decorate. If a screen has two amber things, they must be the same "now".
+
+**The Light-Theme Contrast Rule.** In the light theme, amber text on `bg` measures 3.9:1 and
+`ok` text measures 3.8:1. Both are below AA for body text. Until the light accent is darkened,
+keep amber text in light mode to titles of 14pt medium or larger, and never use it for small
+meta text.
+
+## Typography
+
+**Display Font:** Unbounded SemiBold (bundled, OFL)
+**Body Font:** Onest Regular / Medium / SemiBold (bundled, OFL)
+
+**Character:** Unbounded's wide geometric letters give titles the look of a label on hardware.
+Onest is a neutral grotesque that holds dense lists and covers Cyrillic well.
+
+### Hierarchy
+- **Display** (600, 46 / 40 / 34 / 30): the My Wave hero, detail page titles, the sign-in
+ headline and screen titles ("Collection", "Settings").
+- **Wordmark** (600, 20): `musyx` followed by the amber dot.
+- **Section** (Onest 600, 19): section headings ("Made for you"), sheet titles, and settings card
+ titles.
+- **Body** (400–500, 14; 1.45 for running text): row titles (medium), menu entries (regular),
+ buttons (medium/semibold) and paragraphs.
+- **Meta** (400, 13): artist lines, album columns, durations and help text.
+- **Small** (400, 12.5): column headers, sidebar section labels and the player's times.
+
+### Named Rules
+**The Two Faces Rule.** Unbounded appears only at display sizes and in the wordmark. Everything
+interactive is Onest.
+
+## Layout
+
+The window is a fixed desktop shell. The minimum size is 960×620 and the default is 1280×800.
+
+- **Shell:** a 232pt sidebar, a 1px seam, then the content column, which holds the top bar and
+ the scrolling page. An optional 320pt drawer sits at the right edge and narrows the content
+ while it is open. An 80pt player bar spans the full width at the bottom.
+- **Content gutter:** 28pt. Sections are 34pt apart.
+- **Spacing steps:** 4 · 8 · 12 · 18 · 22 · 28 · 34 are the named tokens. Tight in-component gaps
+ use 2, 6, 10 and 14. About 50 one-off values (16, 9, 24 and others) predate the scale and should
+ move onto it when touched.
+- **Lists:** track rows are 52pt tall with 2pt between rows. Cards are 168pt wide and wrap, with
+ 12pt between cards and 14pt between rows.
+- **Overlays:** the toast floats 96pt above the bottom edge. Menus are pinned to the pointer or to
+ their button. Dialogs are centred in the window.
+
+## Elevation & Depth
+
+The resting UI is flat. Depth comes from tonal steps: `bg` → `panel` → `raised`, about one
+lightness step apart, with `line` seams where two surfaces meet. Shadows are kept for elements
+that float above the content.
+
+### Shadow Vocabulary
+- **Primary lift** (0 4px 12px, black 18%): primary pill buttons only, so the amber action sits
+ slightly proud of the page.
+- **Menu float** (0 10px 28px, black 30%): the context menu and its submenu.
+- **Toast float** (0 6px 18px, black 30%): the status pill above the player bar.
+- **Dialog float** (0 18px 50px, black 35%), over a 45% black backdrop: dialogs only.
+
+### Named Rules
+**The Float-Only Shadow Rule.** If it isn't floating above the content (menu, toast, dialog) and
+it isn't the primary button, it has no shadow.
+
+**The No-Dim Rule.** Only dialogs dim the window. Menus, the drawer and toasts never do.
+
+## Shapes
+
+Shapes are soft and functional. Controls are pills or gently rounded squares, and covers have
+rounded corners.
+
+- **Pills** (999): primary, ghost and chip buttons, the search field, the toast and the
+ play/pause disc.
+- **Controls** (8): icon buttons, nav items, track rows and menu entries.
+- **Covers** (10) and **small covers** (6): album and playlist art at card and row size. Artist
+ covers are round. The context menu also uses the cover radius.
+- **Cards** (14): settings cards, the empty-state card and dialogs. **Hero** (16): the My Wave hero.
+- **Key caps** (6): the shortcut list in Settings.
## Components
-- **Sidebar**: wordmark, five nav items (Home, My Wave, Search, Collection, Podcasts), a
- playlist list, and an account chip with sign-out. The active item sits on a `raised` fill
- and has an amber icon.
-- **Player bar**: shows cover, title/artist, like and dislike on the left. The centre has
- transport (shuffle, previous, play disc, next, repeat) over a progress bar with times. On
- the right are a quality badge, lyrics, queue and a volume bar.
-- **Track row**: index (or an equaliser when playing), cover, title/artist, album, like,
- duration and a "more" button that appears on hover. The playing row is amber.
-- **Cards**: a cover with a hover play button, the title, and one muted subtitle line.
-- **Drawer**: Queue | Lyrics tabs, sliding in from the right over the content edge.
+### Buttons
+- **Primary:** an amber pill with amber-ink label, medium or semibold, padded 10×18, with the
+ primary lift. On hover it mixes 12% toward `fg`. When pressed it mixes 12% toward `bg`. When
+ disabled it is `raised` with a `muted` label.
+- **Ghost:** a transparent pill with a 1px `line` outline and an `fg` label. It fills `raised` on
+ hover. It pairs with Primary, as in Play + Shuffle.
+- **Icon button:** a 34pt square holding an 18pt icon. Idle it is `muted`. On hover the icon turns
+ `fg` on a `raised` fill. A toggle that is on is tinted `accent`, and a liked heart is `like`.
+- **Play disc:** a 40pt `fg` circle with a `bg` glyph. When nothing is queued it becomes a
+ `raised` circle with a `muted` glyph.
+
+### Chips
+- **Style:** pills padded 7×13, with a `line` outline and an `fg` label.
+- **State:** a selected chip fills `accent` with an `accent-ink` label, and can't be clicked
+ again. Chips are used for quality, appearance, language and the My Wave mood, character and
+ language settings.
+
+### Tabs
+- Text only: `muted` labels that turn `fg` on hover or when selected, with a 2pt amber underline
+ under the selected tab. Collection tabs are Liked tracks, Albums, Artists, Playlists and Clips.
+ A count appears next to a tab once its list has loaded.
+
+### Cards / Containers
+- **Cover cards:** a 168pt cover with a medium title and a muted subtitle. A raised fill shows on
+ hover. Clicking opens the page. Right-click opens a menu for albums, playlists and artists:
+ Play, Shuffle, and add to or remove from the collection. Your own playlists get Rename… and
+ Delete… instead of the collection item. Clips have a heart instead of a menu.
+- **Settings cards:** a `panel` fill, 1px `line`, card radius, 24pt padding, and a section title.
+
+### Inputs / Fields
+- **Search:** a 420pt pill with a `panel` fill and a 1px `line` border that turns `accent` on
+ focus. Selected text is highlighted in amber at 35%. Suggestions float in a list under it.
+ Opening Search, ⌘F or `/` puts the cursor in it with the text selected.
+- **Dialog inputs:** use the same style.
+
+### Navigation
+- **Sidebar:** sits on `bg`, not `panel`, and is separated from the content by a seam. From top
+ to bottom: the wordmark, five nav items (Home, My Wave, Search, Collection, Podcasts), Playlists
+ with a + button, the playlist list, and an account chip with a settings gear. The active item
+ has a `raised` fill, an `fg` label and an amber icon. Idle items are `muted`.
+- **Top bar:** a back chevron, disabled when there is no history, and the search field.
+
+### Player bar
+- `panel` fill, 80pt tall, in three zones.
+- **Left:** a 52pt cover with the title and artist, then like and dislike buttons. Right-clicking
+ the cover or title opens the track's menu.
+- **Centre:** shuffle, previous, the play disc, next and repeat, above a 4pt seek rail with an
+ amber fill. The rail's handle appears only on hover or drag. Times sit on either side.
+- **Right:** the quality badge, lyrics, queue, and a volume rail with an `fg` fill.
+
+### Track row
+- 52pt tall, built as a button. Columns in order:
+ - a grip (your own playlists only)
+ - the index, or an amber `audio-lines` glyph for the playing track (static; it doesn't show
+ pause)
+ - a 40pt cover
+ - title and artist
+ - album
+ - the heart
+ - the duration
+ - "…"
+- **Playing:** the title turns amber.
+- **Unavailable:** the title is `muted` and clicking does nothing.
+- Clicking plays the row and replaces the queue.
+- Right-click, or "…", opens the context menu.
+- A row stays lit (`raised`) while its menu is open, and while it is being dragged.
+- The heart and "…" are always visible.
+- **Dragging (your own playlists):** press the grip and move. The list reorders live to show
+ where the row will land. Drop to save, or press Esc to cancel. The wheel scrolls during a drag.
+ The list doesn't auto-scroll near its edges yet.
+
+### Context menu (signature)
+- A 280pt `panel` card with a 1px `line` border, cover radius, 6pt padding and the menu float.
+ There is no backdrop.
+- **Placement:** it opens at the pointer on right-click, or hangs under "…" with the right edges
+ lined up. Near a window edge it flips left or up, and it always stays 8pt inside the window.
+- **Entries:** 32pt tall, with an 18pt `muted` icon and a 14pt `fg` label. The entry under the
+ pointer, or chosen with the arrow keys, gets a `raised` fill. Destructive entries are `like`.
+ Disabled entries are `muted` and skipped by the arrow keys.
+- **Groups:** separated by hairlines.
+ - **Track menus:** play actions (Play next or Next track, Add to queue, Play similar tracks);
+ library actions (Liked tracks, Add to playlist ▸, Don't recommend); go-to (album, then up to
+ three artists by name). Your own playlists add Move to top, Move to bottom, and Remove from
+ this playlist. In the queue the first group is Play now, Play next and Remove from queue.
+ - **Card menus:** Play and Shuffle; then the collection item, or Rename… and Delete… for your
+ own playlists; then go-to artist for albums.
+- **Add to playlist ▸:** opens a submenu beside the menu on hover, click or →. The submenu holds
+ New playlist… and your own playlists, and scrolls after 10 rows.
+- **Closing:** every action closes the menu, and a toast confirms what happened. Clicking outside,
+ scrolling or Esc also closes it. ↑/↓ move, Enter picks, → and ← open and close the submenu.
+
+### Drawer
+- 320pt on `panel`, with Queue | Lyrics tabs and a close button.
+- **Queue:** shows Now playing, then Next up with a count. It lists up to 100 rows, then
+ "and N more". Clicking a row jumps to it. Right-click opens the queue version of the track menu.
+- **Lyrics:** synced lyrics follow playback.
+
+### Dialogs
+- 380pt `panel` card with card radius and the dialog float over a dimmed window.
+- Used only when you type or confirm: New playlist, Rename playlist, and Delete playlist.
+- Cancel is a ghost button. Confirm is primary, or `like` for Delete. Delete's white label on
+ `like` measures 2.8:1 in the dark theme, which is below AA, and is a known issue.
+
+### Toast
+- An `fg` pill with `bg` text, 96pt above the bottom edge. It reports every action from menus,
+ likes and edits, and clears itself after a few seconds.
+
+### My Wave hero
+- A 16pt-radius panel holding a canvas of 14 amber sine lines, the title, a line describing how
+ the wave is tuned, and Play / Pause / Resume.
+- It is the same hero on Home and on My Wave, larger on My Wave.
+- The lines drift only while My Wave plays. Otherwise they hold still at reduced energy.
+
+### Keyboard shortcuts
+- Listed in Settings → Keyboard shortcuts as label + key caps. The list is capped at 560pt wide so
+ the caps sit near their labels.
+- The shortcuts:
+ - Space: play/pause
+ - ⌘←/→: previous/next
+ - ⇧←/→: seek 10s
+ - ⌘↑/↓: volume
+ - ⌘L: like
+ - ⌘F or `/`: search
+ - ⌘[ or ⌥←: back
+ - Esc: closes a drag, menu, dialog, suggestions or the drawer, in that order
+ - ⌘1–5: nav sections
+ - ⌘,: Settings
+- ⌘ is Ctrl on Windows and Linux.
+- Letter shortcuts follow the key's position on non-Latin layouts.
+
+## Do's and Don'ts
+
+### Do:
+- **Do** take every colour from `Tokens` in `theme.rs`, and change DESIGN.md in the same commit.
+- **Do** use Lucide 0.460 icons at 18pt, tinted with the colour of the text they sit beside. New
+ icons go in `assets/icons` with the Lucide license header.
+- **Do** put routine actions on an item in its context menu, and confirm them with a toast.
+- **Do** give every new action a keyboard path, and add it to the Settings shortcut list.
+- **Do** translate every string through `tr`/`trf` with a Russian entry in `i18n/ru.rs`. The test
+ suite fails otherwise.
+- **Do** test new screens in both themes and both languages with the snapshot tool
+ (`MUSYX_SNAPSHOT_*`, see `snapshot.rs`). Russian labels run about 30% longer.
+
+### Don't:
+- **Don't** use amber for decoration, borders or illustrations other than the My Wave hero.
+- **Don't** open a dialog for anything that doesn't need typing or a destructive confirmation.
+- **Don't** dim the window for menus, the drawer or toasts.
+- **Don't** fade icons with `scale_alpha`. iced's SVG tint drops alpha, so a faded icon renders at
+ full strength. Disabled previous/next already do this. Pre-mix the colour with the surface.
+- **Don't** add hardcoded colours outside `theme.rs`. About 19 still exist (sign-in, genre tiles,
+ dialogs) and should move into tokens when touched.
+- **Don't** add shadows to resting surfaces. Depth comes from `bg` → `panel` → `raised`.
+
+## History
+
+`design/mockup.html` (published at https://claude.ai/artifact/2gmswtceJM61fcE2F5uYYM) was the
+first approved exploration, and it set the palette, type and shell. The build kept those and
+deliberately dropped or replaced these parts of it:
+- the hero's Tune button and the separate My Wave copy
+- the hover play button on cards
+- the display-face, two-column chart ranks
+- the Podcasts and Disliked collection tabs (Clips was added)
+- the Continue listening shelf for podcasts
+- the drag grip with an edit bar (replaced by a grip column and live drag)
+- Artist wave
+- the hover-only "…"
+- the animated equaliser on the playing row
+- the live sign-in canvas
+
+Treat the mockup as history. Where it and this file disagree, this file and the build win.
diff --git a/README.md b/README.md
index 5728a27..95c741c 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,9 @@ and it isn't affiliated with or endorsed by Yandex.
- `crates/ym-api`: the Yandex Music API client, with no UI dependencies.
- `crates/musyx`: the iced app (screens, widgets, player, theme).
-- `design/mockup.html`: the approved design. `DESIGN.md` records its tokens.
+- `DESIGN.md`: the design system as built; its tokens map 1:1 to `crates/musyx/src/ui/theme.rs`.
+- `design/mockup.html`: the first design exploration, kept for history. Where it differs from
+ `DESIGN.md`, the build wins.
## Run
diff --git a/crates/musyx/assets/icons/arrow-down-to-line.svg b/crates/musyx/assets/icons/arrow-down-to-line.svg
new file mode 100644
index 0000000..857cf2b
--- /dev/null
+++ b/crates/musyx/assets/icons/arrow-down-to-line.svg
@@ -0,0 +1,17 @@
+
+
diff --git a/crates/musyx/assets/icons/arrow-up-to-line.svg b/crates/musyx/assets/icons/arrow-up-to-line.svg
new file mode 100644
index 0000000..097179f
--- /dev/null
+++ b/crates/musyx/assets/icons/arrow-up-to-line.svg
@@ -0,0 +1,17 @@
+
+
diff --git a/crates/musyx/assets/icons/user.svg b/crates/musyx/assets/icons/user.svg
new file mode 100644
index 0000000..4b7a65b
--- /dev/null
+++ b/crates/musyx/assets/icons/user.svg
@@ -0,0 +1,16 @@
+
+
diff --git a/crates/musyx/src/app.rs b/crates/musyx/src/app.rs
index 8d70f3d..cdcb462 100644
--- a/crates/musyx/src/app.rs
+++ b/crates/musyx/src/app.rs
@@ -25,12 +25,14 @@ use crate::screens::wave::WaveScreen;
use crate::screens::detail::{self, Page};
use crate::screens::{self, Loadable, sign_in};
use crate::session::{self, Restored};
+use crate::shortcuts::{self, Shortcut};
use crate::store::{self, Appearance, Locale, Quality, Settings};
use crate::ui::theme::{self, shell};
use crate::widgets::drawer::{self, Panel};
+use crate::widgets::menu::{self, Menu};
use crate::widgets::player_bar;
use crate::widgets::sheet::{self, Sheet};
-use crate::widgets::track_list::Env;
+use crate::widgets::track_list::{Drag, Env};
use crate::widgets::{sidebar, topbar};
/// Where sign-in stands. Everything but `SignedIn` takes the whole window.
@@ -65,6 +67,11 @@ pub struct App {
/// Albums, artists and playlists liked, and tracks disliked, by id.
likes: LikedIds,
sheet: Option,
+ menu: Option