Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
feat: app shell redesign, notes actions, onboarding uplift, and 1.10.0 release prep (#2118)
Gabriel Stein2c20b5097cc9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 150cd5a94..ba32da563 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,23 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]-### Added+## [1.10.0] - 2026-09-11-- **Transcribe files from the terminal with your local models.** The CLI bridge gains `POST /v1/transcribe`, which takes a file path and runs whichever local model the app is set to use (whisper.cpp, Parakeet, Nemotron, or Cohere), and `GET /v1/transcribe/models`, which lists downloaded models. Audio never crosses the bridge; the app reads the file itself. Powers `openwhispr transcribe <file>` in `@openwhispr/cli` 0.3.0.+The desktop app gets a new look: an inset content container with a top bar and ⌘K search, a redesigned Home and note editor, the Yowza brand font and Nucleo icons, and one brand-blue glass surface for every primary action, onboarding included. Notes start recording the moment you create them, offer an AI summary when a recording ends, and gain Detailed Notes and Follow-up email as built-in actions. Orukeet arrives as the recommended local speech-to-text model and local models run up to three times faster on Apple silicon. Managed enterprise speech-to-text lands for workspaces on Azure OpenAI or AI Foundry, transcription gains streaming from Deepgram, AssemblyAI and Gemini Live plus Cohere Transcribe as a local engine, gpt-transcribe becomes the OpenAI default, onboarding was rebuilt and reordered, Insights gains an opt-in leaderboard and backfilled history, updates install themselves, Arabic joins as the eleventh UI language, and Astra and Fable 5.1 join the reasoning models.-### Changed+### Look and feel-- **Automatic updates replace the update popup.** A new Automatic updates toggle under Settings → System downloads updates in the background and installs them when the app next quits. It is on for new installs; existing installs keep today's flow until they opt in: the app still checks for updates, and the sidebar Update Available button and Settings → System let you download and install by hand. The update-available popup window and the App updates notification toggle are gone. On Linux the toggle and the check only appear for AppImage installs, since deb, rpm and tar.gz packages are updated by the package manager.+- **A new shell.** The main window's content sits in an inset, rounded container on a sunken backdrop, with a top bar carrying the sidebar toggle, the page title, and a ⌘K search for notes and transcripts. The sidebar drops its own search box and border, scrollbars are hidden on the content area and the notes tree, and the toggle glides with the sidebar when it collapses instead of jumping. Back to notes now also works with a note open in a narrow window; it only handled meeting mode before.+- **Home redesigned.** Transcriptions are grouped by day in one rounded container with hairline dividers, time on top, and Copy plus a kebab menu revealed on hover. Upcoming events show up to five day cards with weekday headers, today in brand blue, attendee stacks, and a hover-revealed Join & transcribe that fades over long titles. Events with nobody but you are hidden. Empty states are proper cards with guidance and one action.+- **Yowza and Nucleo.** The UI is set in the Yowza brand font with Yowza Soft for headings, and the lucide icons are replaced by the vendored Nucleo outline set behind the same names. The font files are licensed and fetched at build time from the private brand-assets release; builds without access fall back to Noto Sans. (#2117)+- **Brand glass.** Primary buttons, the mic and send circles, the today header, and the onboarding brand tile share one blue glass surface derived from the app icon, and the primary colour tokens follow it. Onboarding speaks the same blue as the rest of the app in both themes.+- **A contrast floor.** Labels, icons, borders, and placeholders across the control panel were raised to a minimum contrast so nothing sits below legibility.+- **Arabic.** The eleventh UI language, with full right-to-left layout, bidi isolation for user text, and localized prompts. (#1869)-### Fixed+### Updates-- **Back to notes works in narrow windows.** The button only handled meeting mode, so with a note open in a narrow window it did nothing. It now returns to the notes list.+- **Automatic updates replace the update popup.** A new Automatic updates toggle under Settings → System downloads updates in the background and installs them when the app next quits. It is on for new installs; existing installs keep today's flow until they opt in: the app still checks for updates, and the sidebar Update Available button and Settings → System let you download and install by hand. The update-available popup window and the App updates notification toggle are gone. On Linux the toggle and the check only appear for AppImage installs, since deb, rpm and tar.gz packages are updated by the package manager. (#2120)- **No more update error popups.** A failed background update check used to raise a modal the next time Settings opened, and a destructive toast in the control panel. Background failures are now silent and retried on the next check; only a manual Check for Updates reports its own failure inline.-- **Smoother notification swipe.** The meeting notification card follows your pointer, fades as it goes, and leaves through the edge you dragged it toward. The window no longer shows scrollbars mid-animation, and on macOS it now sits above every other window, including OpenWhispr's own floating panels.--## [1.10.0] - 2026-09-10--Managed enterprise speech-to-text arrives for workspaces on Azure OpenAI or AI Foundry: a deployment an administrator distributes to every member, with no API keys on user machines. Transcription also gains streaming from Deepgram, AssemblyAI and Gemini Live, Cohere Transcribe as a local engine, and gpt-transcribe as the OpenAI default now that whisper-1 and the gpt-4o transcribe models are on their way out. Onboarding was rebuilt to preserve progress, Insights gains an opt-in leaderboard, and Astra and Fable 5.1 join the reasoning models.### Enterprise@@ -33,6 +33,8 @@ Managed enterprise speech-to-text arrives for workspaces on Azure OpenAI or AI F### Transcription+- **Orukeet is the recommended local model.** A multilingual Parakeet fine-tune from Oruk, about 672 MB, served by the same sherpa-onnx runtime as Parakeet, so there is no new sidecar. Oruk is the first tab wherever local models are listed, and a fresh install that picks the local route starts on Orukeet instead of the Whisper fallback. (#2085, #2114)+- **Local models are up to three times faster on Apple silicon.** sherpa-onnx now ships the arm64-native ONNX Runtime build instead of the universal binary, whose arm64 slice ran INT8 models far slower. On an M-series Mac an 11-second clip drops from 605 ms to 173 ms on Orukeet and from 665 ms to 230 ms on Parakeet, with identical transcripts. (#2116)- **gpt-transcribe is the new OpenAI default.** OpenAI deprecated whisper-1, gpt-4o-transcribe and gpt-4o-mini-transcribe on 2026-08-26, with removal set for 2027-02-26. New bring-your-own-key selections land on gpt-transcribe instead. Nothing stored is rewritten — the three deprecated models stay selectable and reach the API untouched — so an existing setup keeps working until you change it. On gpt-transcribe your custom dictionary rides the model's dedicated keywords channel, one term per field, rather than being flattened into the prompt. (#2076)- **Deepgram and AssemblyAI join as streaming providers.** Both are bring-your-own-key and streaming-only. AssemblyAI offers Universal-3.5 Pro and warns when a request would silently fall back to a lesser model. (#2063)- **Gemini Live streams dictation.** Google's live speech model is available as a streaming bring-your-own-key provider, with cold-start audio flushed on readiness so the opening of a dictation is not clipped. (#2062)@@ -45,11 +47,14 @@ Managed enterprise speech-to-text arrives for workspaces on Azure OpenAI or AI F### Meetings+- **Recording works again after a reload.** A renderer reload mid-recording left the main process holding the session, so every later start failed with "Operation in progress" until the app restarted. The session now stops when its window navigates away, and a restart from the same window retires the stale session first.+- **Smoother notification swipe.** The meeting notification card follows your pointer, fades as it goes, and leaves through the edge you dragged it toward. The window no longer shows scrollbars mid-animation, and on macOS it now sits above every other window, including OpenWhispr's own floating panels.- **Meeting recordings that went silent partway through on macOS.** The macOS audio tap is built once against the devices present when recording starts and never follows the machine afterwards, so a route change — headphones connecting, a device going away — could stop capture while the helper process stayed alive. Nothing noticed: no exit, no error, and silence from a dead tap is indistinguishable from a quiet call, so the rest of the meeting was lost. A watchdog now restarts the helper when no audio arrives for 6 seconds or the pinned device reports that it changed, up to three attempts, and tells you either way. A genuinely quiet call only warns, since restarting a working capture would cost real audio. (#2040, thanks @alekc)- **Playback no longer raises a meeting prompt.** Combined input/output devices report audio activity while merely playing sound, so on macOS watching a video could prompt you to start a meeting note. Aggregate-device activity now prompts only while a known meeting app is running, background speech services are excluded from microphone ownership, and a detection listener that crashes respawns with backoff instead of staying down for the rest of the session. (#2071)### Dictation+- **Push-to-talk no longer loses a dictation that hits the safety ceiling.** When a hold reaches its time limit with the keys still down, the stop used to paste into the held modifiers, land nowhere, and discard the transcript. The text is now kept on the clipboard behind the usual dictation-error surface. Linux's watchdog matches the five-minute ceiling of the other platforms. (#2102)- **The cancel button pours out of the recording pill.** Hovering the pill grows a single fused outline rather than placing a separate control beside it, tweened between pill states so it never pops mid-animation. The compact pill and its window widened to match, fixing a cancel button that could clip outside the window edge on hover. Inside the Live Transcript panel the button keeps its bordered look with the same motion. (#1886)- **Copying part of an Assistant response.** Selecting a passage and pressing Cmd/Ctrl+C copies just that selection. Previously a partial copy also flipped the footer button to "Copied" although the full response had never been copied; the two are now separate. (#2035, thanks @dajiaohuang)- **A failed paste no longer costs you the transcript.** When clipboard delivery failed, the dictation was dropped instead of written to history, so the text was gone with nowhere to recover it. The transcript is now saved either way, and a clipboard-only result is reported as clipboard-only rather than as a completed paste. (#1979)@@ -57,6 +62,12 @@ Managed enterprise speech-to-text arrives for workspaces on Azure OpenAI or AI F### Notes+- **The note editor was redesigned.** A larger title, a combined date and attendees capsule, folder and space capsules, and one toolbar row: Transcript, Notes, and AI Summary on the left, the record control and a split Share on the right. Recording widens the record circle into a stop, waveform, and timer pill, and the Transcript tab shows a live wave while recording. Export moved into the Share dialog. The chat panel no longer opens by itself on notes with history, and starting a recording keeps you on the Notes tab.+- **The Transcript tab is always reachable.** Notes without a transcript show an empty state with a Start recording action instead of a disabled tab.+- **New notes start recording.** Creating a note begins a meeting recording for it right away, unless workspace policy blocks recording or another recording is live.+- **Generate AI Summary after a recording.** Once a recording ends, the Transcript view offers a Generate AI Summary pill until a summary exists. It runs the new Detailed Notes action.+- **Two new built-in actions.** Detailed Notes turns a transcript and your manual notes into accurate, comprehensive meeting notes that keep every client, project, number, and date, separate decisions from proposals, and give action items an owner and a due date. Follow-up email drafts the email you would send afterwards, and is the ask bar's default action, labelled Draft a follow-up email. Generate Notes is unchanged. Every built-in prompt stays editable in Custom Actions, and an edited prompt is never overwritten by an update.+- **Folder search in the note header is legible again.**- **Notes created offline could take a long time to reach mobile.** Note creation sent the note's local last-edit time as `updated_at` and the server stored it verbatim. Mobile's delta cursor is the newest `updated_at` it has already seen, so a note uploaded well after it was written — offline work, or backup switched on after a stretch of local use — landed behind that cursor and stayed invisible on mobile until some later edit happened to push it forward. The server now stamps the creation time itself. (#2065)- **Granola imports silently dropped notes that shared a title and date.** Two notes with the same title on the same day collided on the same generated id, and the later one was discarded without a word. Colliding rows now get versioned ids allocated deterministically across sorted files, so a reimport produces the same result, and the identity no longer includes note content — editing a note cannot change which id it owns. (#1955, thanks @hsusul)- **Transcript scroll stopped following the live meeting.** Scrolling up inside a speaker picker — which renders in a portal, so its wheel events bubbled to the transcript even though the pointer was never over it — latched the transcript out of follow mode, and a wheel over non-scrolling chrome such as the recording header wedged it off with no way back. The scroller now only counts gestures actually aimed at it, and a recording that opens with partial text before its first final segment is followed from the start. (#1896, thanks @boseq)@@ -67,11 +78,16 @@ Managed enterprise speech-to-text arrives for workspaces on Azure OpenAI or AI F### Onboarding & accounts+- **Onboarding runs dictation, then Notes, then a live assistant demo.** The demo is answered by the real assistant through the same pipeline the app uses, instead of echoing your own transcript back. (#2122)+- **A new welcome screen.** A brand-blue hero with the app icon in a glass tile, glass primary buttons, a borderless email field, and the tagline "The power of your voice. On your terms."+- **Voice Assistant wording and scope.** Onboarding consistently says Voice Assistant, spoken commands run on the model chosen under Settings → Voice Assistant rather than the Chat model, and sending a screenshot as context is an explicit opt-in. (#2106)- **Onboarding was rebuilt and now keeps your progress.** The setup flow was reworked end to end, and leaving partway through no longer starts you over. Provider secrets entered during setup stay out of the persisted session, and a cancelled model download no longer leaves Proceed disabled on a model you had already downloaded. (#1984, thanks @boseq)- **Plus-addressed email accounts could not sign in.** The desktop rejected any address containing a `+` before the request ever left the app, so an account the website had happily created with a plus alias was locked out of every in-app sign-in surface, re-authentication included. Neither the website nor the API had that restriction, so it blocked legitimate logins without stopping anything. (#2088, thanks @boseq)### AI models & routing+- **The voice assistant can read and edit your dictionary and snippets.** Three new tools fetch a snippet by its trigger, add or remove dictionary words, and create, replace, or delete snippets, with a confirmation step before any bulk cleanup. The CLI bridge gains matching snippet routes and the API key picker exposes dictionary and snippet scopes. (#2119)+- **The separate vision model override is bring-your-own-key only.** OpenWhispr Cloud already routes screenshot commands to a vision model, so offering it there was a no-op. Cloud reasoning requests now declare their purpose, so translation and note formatting can use their own fallback chains. (#2115)- **Astra and Fable 5.1 are available as reasoning models.** (#2107)- **Gemini replies could come back empty.** Responses split across multiple parts, or carrying the model's thinking alongside its answer, were not reassembled — so a perfectly good reply could surface as nothing at all. (#1969, thanks @hsusul)- **Dictation cleanup was sampling at temperature 0.7.** Cleanup has been specified as deterministic since it was introduced, but neither cleanup config actually passed a temperature, so the three IPC-bridged providers fell back to their own defaults — 0.7 for a local llama-server model, 0.3 for Anthropic and enterprise. Both cleanup routes now pass 0 explicitly, and only where the model registry says the model accepts the parameter. The agent, translation, and selection-edit steps are unchanged. (#2007, thanks @xlurie)@@ -84,6 +100,7 @@ Managed enterprise speech-to-text arrives for workspaces on Azure OpenAI or AI F### Insights+- **History before Insights existed is backfilled.** Content-free counters are reconstructed from your retained local transcription history, so Insights is not empty for dictation that predates the feature. Reconstructed rows sort behind live events and never block current analytics. (#2075)- **A usage Insights view.** A new tab summarizing your dictation activity over time, computed locally by default. Syncing insights to your account is opt-in and off unless you turn it on, activity is never attributed to an account other than the one signed in when it was recorded, and clearing history or deleting your account removes the underlying rows. A workspace that enforces local history off writes nothing at all. (#1959, thanks @boseq)- **An opt-in leaderboard.** Compare your dictation activity with colleagues who have also joined. Joining is an explicit action that is never inherited from the Insights sync toggle, declining the sync prompt never joins you, and leaving is one button on the leaderboard header. The share card shows a name or an email local part, never a colleague's full address. (#2011, thanks @boseq)@@ -94,8 +111,17 @@ Managed enterprise speech-to-text arrives for workspaces on Azure OpenAI or AI F- **Note recordings could go to OpenWhispr Cloud for a user who is Local everywhere else.** Profiles that upgraded straight from 1.6.7 or earlier to 1.6.10 or later copied their Note Recording settings from dictation before the modes those settings are read from existed, so Note Recording fell back to OpenWhispr Cloud while every other setting said Local. Those profiles now have the mode re-derived from what was copied. Running 1.6.8 or 1.6.9 in between avoided it — a six-day window, 14 to 20 April 2026. Where the copied settings name an endpoint or provider that cannot stream, Note Recording now says so instead of quietly using OpenWhispr Cloud. (#2097)- **Note formatting could follow dictation cleanup to OpenWhispr Cloud after a local setup was skipped by the same copy.** Note formatting falls back to the dictation cleanup model when its own mode was never written, so those profiles kept working locally until they switched cleanup to OpenWhispr Cloud, at which point their note text followed. A skipped local setup is now restored to Local. A skipped cloud setup is deliberately left alone so it keeps following cleanup, rather than being pinned to a provider the user may have moved away from. (#2097)+### CLI++- **Transcribe files from the terminal with your local models.** The CLI bridge gains `POST /v1/transcribe`, which takes a file path and runs whichever local model the app is set to use (whisper.cpp, Parakeet, Nemotron, Cohere, or Orukeet), and `GET /v1/transcribe/models`, which lists downloaded models. Audio never crosses the bridge; the app reads the file itself. Powers `openwhispr transcribe <file>` in `@openwhispr/cli` 0.3.0. (#2121)++### macOS++- **Accessibility features wait for their permission.** Startup no longer touches accessibility APIs before the permission is granted, which removes the premature system prompt and the races it caused during first launch and onboarding. (#2101)+### Windows+- **winget manifests are published from CI with tag-pinned URLs.** Every manifest since 1.7.5 pointed at the releases/latest download path, which broke as soon as the next release shipped. Manifests are now submitted on publish with permanent asset URLs, minutes after a release rather than days. (#2089)- **Local transcription was dead on arrival without the VC++ redistributable.** The bundled `whisper-server.exe` links the dynamic MSVC runtime but shipped as a bare executable, so on any machine missing the VC++ 2015–2022 redistributable the Windows loader killed every spawn before it started — with empty output, so nothing explained the failure. The runtime DLLs now ship alongside the binary. (#1687)- **Parakeet failed to start on machines with an older system ONNX Runtime.** Windows 11 ships ONNX Runtime 1.17 in System32, and on some machines the loader resolved the bundled sherpa-onnx binaries' runtime to that copy rather than the newer one sitting beside the executable. The process then died before it could listen, reported only as "parakeet-ws process died during startup". The bundled runtime now ships under a private name that no system loader rule can shadow. (#2074)diff --git a/README.md b/README.mdindex beeddae19..e9140c42c 100644--- a/README.md+++ b/README.md@@ -27,7 +27,7 @@----OpenWhispr turns your voice into text, notes, and actions from your desktop. Press a hotkey, speak, and your words appear at your cursor. Choose between fully private offline transcription with local speech-to-text engines like Whisper and NVIDIA Parakeet — where your audio never leaves your device — or cloud processing for speed. No data collection, no telemetry, fully open source.+OpenWhispr turns your voice into text, notes, and actions from your desktop. Press a hotkey, speak, and your words appear at your cursor. Choose between fully private offline transcription with local speech-to-text models like Orukeet, Whisper, NVIDIA Parakeet, and Cohere Transcribe — where your audio never leaves your device — or cloud processing for speed. No data collection, no telemetry, fully open source.## Downloaddiff --git a/src/assets/onboarding-hero-dither-dark.webp b/src/assets/onboarding-hero-dither-dark.webpdeleted file mode 100644index 8c6ca490b..000000000Binary files a/src/assets/onboarding-hero-dither-dark.webp and /dev/null differdiff --git a/src/assets/onboarding-hero-dither.webp b/src/assets/onboarding-hero-dither.webpdeleted file mode 100644index cfb4452ad..000000000Binary files a/src/assets/onboarding-hero-dither.webp and /dev/null differdiff --git a/src/brandFonts.ts b/src/brandFonts.tsindex 296dae8f2..a06581727 100644--- a/src/brandFonts.ts+++ b/src/brandFonts.ts@@ -21,11 +21,18 @@ const fontUrls = import.meta.glob("./assets/fonts/yowza/*.otf", {import: "default",}) as Record<string, string>;+// Yowza ships ascent 0.94 / descent 0.24, which paints lowercase about 1px above+// the centre of a 16px icon beside it (measured from rendered pixels, not font+// tables). Rebalancing the same 1.18em content area to 0.965 / 0.215 drops the+// baseline one pixel at UI sizes without changing any line height, so icon ++// label rows centre optically app-wide.+const METRICS = "ascent-override:96.5%;descent-override:21.5%;line-gap-override:0%";+const rules = Object.entries(fontUrls).flatMap(([file, url]) => {const face = FACES[file.slice(file.lastIndexOf("/") + 1, -".otf".length)];return face? [- `@font-face{font-family:"${face.family}";font-style:normal;font-weight:${face.weight};font-display:swap;src:url("${url}") format("opentype")}`,+ `@font-face{font-family:"${face.family}";font-style:normal;font-weight:${face.weight};font-display:swap;${METRICS};src:url("${url}") format("opentype")}`,]: [];});diff --git a/src/components/ApiKeysSection.tsx b/src/components/ApiKeysSection.tsxindex b29b6fe46..c299c28b7 100644--- a/src/components/ApiKeysSection.tsx+++ b/src/components/ApiKeysSection.tsx@@ -115,7 +115,7 @@ export default function ApiKeysSection() {<SettingsPanel><SettingsPanelRow><div className="flex flex-col items-center py-4 text-center">- <Key className="h-5 w-5 text-muted-foreground/40 mb-2" />+ <Key className="h-5 w-5 text-muted-foreground/70 mb-2" /><p className="text-xs text-muted-foreground mb-3">{t("apiKeysSection.empty")}</p><Button variant="outline" size="sm" onClick={() => setCreateOpen(true)}><Plus className="h-3.5 w-3.5 me-1.5" />@@ -136,7 +136,7 @@ export default function ApiKeysSection() {</span><codedir="ltr"- className="text-[10px] font-mono text-muted-foreground/60 shrink-0"+ className="text-[10px] font-mono text-muted-foreground/70 shrink-0">{apiKey.key_prefix}...</code>@@ -149,7 +149,7 @@ export default function ApiKeysSection() {{t(`apiKeysSection.scopes.${API_SCOPE_I18N_KEY[scope as ApiScope]}`)}</Badge>))}- <span className="text-[10px] text-muted-foreground/50 ms-1">+ <span className="text-[10px] text-muted-foreground/70 ms-1">{apiKey.last_used_at? t("apiKeysSection.lastUsed", {time: formatRelativeTime(apiKey.last_used_at),@@ -172,7 +172,7 @@ export default function ApiKeysSection() {{keys.length >= MAX_API_KEYS && (<SettingsPanelRow>- <p className="text-[10px] text-muted-foreground/50 text-center">+ <p className="text-[10px] text-muted-foreground/70 text-center">{t("apiKeysSection.maxKeysReached", { max: MAX_API_KEYS })}</p></SettingsPanelRow>@@ -304,7 +304,7 @@ function CreateKeyDialog({</DialogHeader><div className="space-y-3">- <div className="rounded-lg border border-border/50 bg-muted/30 dark:bg-surface-raised/30 p-3">+ <div className="rounded-lg border border-border/70 bg-muted/30 dark:bg-surface-raised/30 p-3"><codedir="ltr"className="text-xs font-mono text-foreground break-all select-all leading-relaxed"diff --git a/src/components/AuthenticationStep.tsx b/src/components/AuthenticationStep.tsxindex cb0e1f411..9c90f1714 100644--- a/src/components/AuthenticationStep.tsx+++ b/src/components/AuthenticationStep.tsx@@ -75,14 +75,14 @@ function ProviderTile({disabled={disabled}title={title}aria-label={label}- className="flex h-13 min-w-0 flex-1 flex-col items-center justify-center gap-1.5 rounded-xl bg-[var(--onboarding-surface-secondary)] px-2 text-[var(--onboarding-text-primary)] transition-colors hover:bg-[var(--onboarding-surface-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--onboarding-accent)_40%,transparent)] disabled:pointer-events-none disabled:opacity-100"+ className="flex h-12 min-w-0 flex-1 flex-col items-center justify-center gap-1 rounded-xl bg-[var(--onboarding-surface-secondary)] px-2 text-[var(--onboarding-text-primary)] transition-colors hover:bg-[var(--onboarding-surface-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--onboarding-accent)_40%,transparent)] disabled:pointer-events-none disabled:opacity-100">{loading ? (<Loader2 className="size-4 animate-spin text-muted-foreground" />) : (<Icon className="size-4" />)}- <span className="truncate text-sm font-normal">{label}</span>+ <span className="truncate text-[13px]">{label}</span></button>);}@@ -423,7 +423,7 @@ export default function AuthenticationStep({if (!AUTH_URL || !authClient) {return (<CompactOnboardingFrame embedded={embedded}>- <div className={`${frameInset("pt-44")} text-center`}>+ <div className={`${frameInset("pt-48")} text-center`}><h1 className={titleClass}>{t("auth.welcomeTitle")}</h1><p className="mt-3 text-base text-muted-foreground">{t("auth.welcomeSubtitle")}</p><div className="mt-8 rounded-xl border border-warning/20 bg-warning/5 p-3 text-sm text-warning">@@ -473,7 +473,7 @@ export default function AuthenticationStep({if (forgotPasswordOpen) {return (<CompactOnboardingFrame embedded={embedded}>- <div className={frameInset("pt-42")}>+ <div className={frameInset("pt-48")}><ForgotPasswordView email={email} onBack={handleBackFromForgotPassword} /></div></CompactOnboardingFrame>@@ -483,7 +483,7 @@ export default function AuthenticationStep({if (showSSOEmailStep) {return (<CompactOnboardingFrame embedded={embedded}>- <div className={`${frameInset("pt-38")} text-center`}>+ <div className={`${frameInset("pt-48")} text-center`}><h1 className={titleClass}>{t("auth.welcomeTitle")}</h1><p className="mt-2 text-base text-[var(--onboarding-text-secondary)]">{t("auth.welcomeSubtitle")}@@ -516,7 +516,7 @@ export default function AuthenticationStep({<Buttontype="submit"disabled={!email.trim() || isSSOLoading || !oauthProtocolRegistered}- className="h-10 w-full rounded-full border-transparent bg-[var(--onboarding-inverse-surface)] text-base font-normal text-[var(--onboarding-inverse-text)] shadow-none hover:opacity-90 disabled:border-transparent disabled:bg-[var(--onboarding-surface-tertiary)] disabled:text-[var(--onboarding-text-tertiary)] disabled:opacity-100"+ className="h-10 w-full text-[15px]">{isSSOLoading ? <Loader2 className="size-4 animate-spin" /> : null}{isSSOLoading@@ -631,7 +631,7 @@ export default function AuthenticationStep({if (authMode !== null) {return (<CompactOnboardingFrame embedded={embedded}>- <div className={`${frameInset("pt-38")} text-center`}>+ <div className={`${frameInset("pt-48")} text-center`}><h1 className={titleClass}>{t("auth.welcomeTitle")}</h1><p className="mt-2 text-base text-[var(--onboarding-text-secondary)]">{t("auth.welcomeSubtitle")}@@ -722,7 +722,7 @@ export default function AuthenticationStep({<Buttontype="submit"disabled={isSubmitting || !password}- className="h-10 w-full rounded-full border-transparent bg-[var(--onboarding-inverse-surface)] text-base font-normal text-[var(--onboarding-inverse-text)] shadow-none hover:opacity-90 disabled:border-transparent disabled:bg-[var(--onboarding-surface-tertiary)] disabled:text-[var(--onboarding-text-tertiary)] disabled:opacity-100"+ className="h-10 w-full text-[15px]">{isSubmitting ? (<>@@ -804,9 +804,9 @@ export default function AuthenticationStep({return (<CompactOnboardingFrame embedded={embedded}>- <div className={`${frameInset("pt-38")} text-center`}>+ <div className={`${frameInset("pt-48")} text-center`}><h1 className={titleClass}>{t("auth.welcomeTitle")}</h1>- <p className="mt-2 text-base text-[var(--onboarding-text-secondary)]">+ <p className="mt-2.5 text-[15px] text-[var(--onboarding-text-secondary)]">{t("auth.welcomeSubtitle")}</p>@@ -815,7 +815,7 @@ export default function AuthenticationStep({event.preventDefault();handleEmailContinue();}}- className="mt-3 space-y-3"+ className="mt-5 space-y-3"><Inputdir="ltr"@@ -830,11 +830,7 @@ export default function AuthenticationStep({<Buttontype="submit"disabled={!email.trim() || busy}- className={`h-10 w-full rounded-full border-transparent bg-[var(--onboarding-inverse-surface)] text-base font-normal text-[var(--onboarding-inverse-text)] shadow-none hover:opacity-90 disabled:border-transparent disabled:opacity-100 ${- email.trim()- ? ""- : "disabled:bg-[var(--onboarding-surface-tertiary)] disabled:text-[var(--onboarding-text-tertiary)]"- }`}+ className="h-10 w-full text-[15px]">{isCheckingEmail ? <Loader2 className="size-4 animate-spin" /> : null}{isCheckingEmail@@ -843,9 +839,11 @@ export default function AuthenticationStep({</Button></form>- <p className="pb-3 pt-4 text-sm font-normal uppercase text-[var(--onboarding-text-secondary)]">+ <div className="my-4 flex items-center gap-3 text-[11px] font-medium uppercase tracking-[0.08em] text-[var(--onboarding-text-secondary)]">+ <span className="h-px flex-1 bg-[var(--onboarding-control-border)]" />{t("auth.common.or")}- </p>+ <span className="h-px flex-1 bg-[var(--onboarding-control-border)]" />+ </div><div className="flex gap-3">{providers.map((provider) => (@@ -875,18 +873,14 @@ export default function AuthenticationStep({)}{onContinueWithoutAccount && (- <div className="pt-5">- <Button- type="button"- variant="ghost"- size="sm"- onClick={onContinueWithoutAccount}- className="w-full rounded-full text-base font-normal text-[var(--onboarding-text-secondary)] hover:bg-[var(--onboarding-surface-hover)] hover:text-[var(--onboarding-text-primary)]"- disabled={isSocialLoading !== null || isCheckingEmail || isSSOLoading}- >- {t("auth.emailStep.continueWithoutAccount")}- </Button>- </div>+ <button+ type="button"+ onClick={onContinueWithoutAccount}+ className="mt-5 text-sm text-[var(--onboarding-text-secondary)] underline-offset-4 transition-colors hover:text-[var(--onboarding-text-primary)] hover:underline disabled:opacity-50"+ disabled={isSocialLoading !== null || isCheckingEmail || isSSOLoading}+ >+ {t("auth.emailStep.continueWithoutAccount")}+ </button>)}</div></CompactOnboardingFrame>diff --git a/src/components/CliIntegrationCard.tsx b/src/components/CliIntegrationCard.tsxindex fbb52a684..d7f7c18e7 100644--- a/src/components/CliIntegrationCard.tsx+++ b/src/components/CliIntegrationCard.tsx@@ -39,10 +39,10 @@ export default function CliIntegrationCard({ isPaid, onUpgrade }: CliIntegration};return (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 backdrop-blur-sm p-4">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 backdrop-blur-sm p-4"><div className="flex items-center gap-2 mb-4"><LogoTile src={logo} alt="OpenWhispr" />- <div className="w-9 h-9 rounded-lg bg-white dark:bg-surface-raised shadow-[0_0_0_1px_rgba(0,0,0,0.04)] dark:shadow-none dark:border dark:border-white/5 flex items-center justify-center shrink-0">+ <div className="w-9 h-9 rounded-lg bg-white dark:bg-surface-raised shadow-[0_0_0_1px_rgba(0,0,0,0.04)] dark:shadow-none dark:border dark:border-white/10 flex items-center justify-center shrink-0"><Terminal className="w-4 h-4 text-foreground/70" strokeWidth={2} /></div></div>@@ -53,7 +53,7 @@ export default function CliIntegrationCard({ isPaid, onUpgrade }: CliIntegration</p><div className="mb-3">- <div className="text-[10px] font-medium uppercase tracking-wider text-muted-foreground/50 mb-1.5">+ <div className="text-[10px] font-medium uppercase tracking-wider text-muted-foreground/70 mb-1.5">{t("integrations.cli.installLabel")}</div><CopyableCommand command={INSTALL_CMD} />diff --git a/src/components/CommandSearch.tsx b/src/components/CommandSearch.tsxindex fec6e9594..f3be63e03 100644--- a/src/components/CommandSearch.tsx+++ b/src/components/CommandSearch.tsx@@ -333,7 +333,7 @@ export default function CommandSearch({}}className={cn("fixed left-[50%] top-[18%] z-50 w-full max-w-xl translate-x-[-50%]",- "rounded-xl border border-border/60 bg-card shadow-2xl overflow-hidden",+ "rounded-xl border border-border/70 bg-card shadow-2xl overflow-hidden","dark:bg-surface-2 dark:border-border dark:shadow-modal","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",@@ -350,15 +350,15 @@ export default function CommandSearch({</DialogPrimitive.Description>{/* Search input */}- <div className="flex items-center gap-2.5 px-3.5 py-3 border-b border-border/40">- <Search size={14} className="shrink-0 text-muted-foreground/50" />+ <div className="flex items-center gap-2.5 px-3.5 py-3 border-b border-border/70">+ <Search size={14} className="shrink-0 text-muted-foreground/70" />{!isConversationsMode && spaces.length > 1 && (<DropdownMenu><DropdownMenuTrigger asChild><buttontype="button"className={cn(- "flex items-center gap-1 shrink-0 rounded-md border border-border/50 bg-muted/40",+ "flex items-center gap-1 shrink-0 rounded-md border border-border/70 bg-muted/40","px-1.5 py-0.5 text-[11px] transition-colors outline-none",scopeSpace ? "text-foreground" : "text-muted-foreground hover:text-foreground")}@@ -370,7 +370,7 @@ export default function CommandSearch({t("commandSearch.allSpaces"))}</span>- <ChevronDown size={11} className="shrink-0 text-muted-foreground/50" />+ <ChevronDown size={11} className="shrink-0 text-muted-foreground/70" /></button></DropdownMenuTrigger><DropdownMenuContent@@ -400,7 +400,7 @@ export default function CommandSearch({onKeyDown={handleKeyDown}placeholder={isConversationsMode ? t("chat.search") : t("commandSearch.placeholder")}autoFocus- className="flex-1 text-sm text-foreground placeholder:text-muted-foreground/40"+ className="flex-1 text-sm text-foreground placeholder:text-muted-foreground/70"style={{background: "transparent",border: "none",@@ -412,7 +412,7 @@ export default function CommandSearch({{query && (<buttononClick={() => setQuery("")}- className="text-[11px] text-muted-foreground/40 hover:text-muted-foreground transition-colors outline-none"+ className="text-[11px] text-muted-foreground/70 hover:text-muted-foreground transition-colors outline-none">✕</button>@@ -423,7 +423,7 @@ export default function CommandSearch({<div ref={listRef} className="overflow-y-auto max-h-[340px] p-1.5">{!hasResults ? (<div className="flex items-center justify-center py-10">- <p className="text-xs text-muted-foreground/50">+ <p className="text-xs text-muted-foreground/70">{query.trim()? t("commandSearch.noResults"): isConversationsMode@@ -450,7 +450,7 @@ export default function CommandSearch({size={13}className={cn("shrink-0 mt-px transition-colors",- selectedIndex === idx ? "text-primary" : "text-muted-foreground/40"+ selectedIndex === idx ? "text-primary" : "text-muted-foreground/70")}/><div className="flex-1 min-w-0">@@ -463,7 +463,7 @@ export default function CommandSearch({</p>)}</div>- <span className="text-[10px] text-muted-foreground/35 tabular-nums shrink-0">+ <span className="text-[10px] text-muted-foreground/70 tabular-nums shrink-0">{formatRelativeTime(conv.updated_at, t, locale)}</span></button>@@ -553,7 +553,7 @@ export default function CommandSearch({</div>{/* Footer */}- <div className="flex items-center gap-4 px-3.5 py-2 border-t border-border/30 bg-muted/15">+ <div className="flex items-center gap-4 px-3.5 py-2 border-t border-border/70 bg-muted/15"><FooterHint keys={["↑", "↓"]} label={t("commandSearch.footer.navigate")} /><FooterHint keys={["↵"]} label={t("commandSearch.footer.open")} /><FooterHint keys={["Esc"]} label={t("commandSearch.footer.dismiss")} />@@ -567,8 +567,8 @@ export default function CommandSearch({function SectionHeader({ icon, label }: { icon: React.ReactNode; label: string }) {return (<div className="flex items-center gap-1.5 px-2.5 pt-2 pb-1">- <span className="text-muted-foreground/45">{icon}</span>- <span className="text-[10px] font-semibold uppercase tracking-wide text-muted-foreground/50">+ <span className="text-muted-foreground/70">{icon}</span>+ <span className="text-[10px] font-semibold uppercase tracking-wide text-muted-foreground/70">{label}</span></div>@@ -595,7 +595,7 @@ function ContainerRow({const { space } = target;const iconClass = cn("shrink-0 transition-colors",- isSelected ? "text-primary" : "text-muted-foreground/40"+ isSelected ? "text-primary" : "text-muted-foreground/70");return (<button@@ -627,7 +627,7 @@ function ContainerRow({{showSpaceHint && space && (<spandir="auto"- className="text-[10px] text-muted-foreground/45 truncate shrink-0 max-w-32"+ className="text-[10px] text-muted-foreground/70 truncate shrink-0 max-w-32">{spaceLabel(space)}</span>@@ -675,7 +675,7 @@ function NoteRow({size={13}className={cn("shrink-0 mt-px transition-colors",- isSelected ? "text-primary" : "text-muted-foreground/40"+ isSelected ? "text-primary" : "text-muted-foreground/70")}/><div className="flex-1 min-w-0">@@ -683,7 +683,7 @@ function NoteRow({dir="auto"className={cn("text-xs font-medium truncate",- note.title ? "text-foreground" : "italic text-muted-foreground/50"+ note.title ? "text-foreground" : "italic text-muted-foreground/70")}>{note.title || t("notes.list.untitled")}@@ -691,11 +691,11 @@ function NoteRow({{(breadcrumb || preview) && (<p className="text-[10px] truncate mt-px">{breadcrumb && (- <span dir="auto" className="text-muted-foreground/45">+ <span dir="auto" className="text-muted-foreground/70">{breadcrumb}</span>)}- {breadcrumb && preview && <span className="text-muted-foreground/35"> · </span>}+ {breadcrumb && preview && <span className="text-muted-foreground/70"> · </span>}{preview && (<span dir="auto" className="text-muted-foreground/55">{preview}@@ -704,7 +704,7 @@ function NoteRow({</p>)}</div>- <span className="text-[10px] text-muted-foreground/35 tabular-nums shrink-0">+ <span className="text-[10px] text-muted-foreground/70 tabular-nums shrink-0">{formatRelativeTime(note.updated_at, t, locale)}</span></button>@@ -745,13 +745,13 @@ function TranscriptRow({size={13}className={cn("shrink-0 mt-px transition-colors",- isSelected ? "text-primary" : "text-muted-foreground/40"+ isSelected ? "text-primary" : "text-muted-foreground/70")}/><p dir="auto" className="flex-1 text-xs text-foreground/75 truncate min-w-0">{transcript.text}</p>- <span className="text-[10px] text-muted-foreground/35 tabular-nums shrink-0">+ <span className="text-[10px] text-muted-foreground/70 tabular-nums shrink-0">{formatRelativeTime(transcript.created_at, t, locale)}</span></button>@@ -765,13 +765,13 @@ function FooterHint({ keys, label }: { keys: string[]; label: string }) {{keys.map((k) => (<kbdkey={k}- className="text-[10px] px-1 py-px rounded border border-border/40 bg-muted/50 text-muted-foreground/55 font-mono leading-tight"+ className="text-[10px] px-1 py-px rounded border border-border/70 bg-muted/50 text-muted-foreground/55 font-mono leading-tight">{k}</kbd>))}</span>- <span className="text-[10px] text-muted-foreground/40 ms-0.5">{label}</span>+ <span className="text-[10px] text-muted-foreground/70 ms-0.5">{label}</span></div>);}diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsxindex b600441ec..0b24df645 100644--- a/src/components/ControlPanel.tsx+++ b/src/components/ControlPanel.tsx@@ -3,16 +3,7 @@ import { useTranslation } from "react-i18next";import { useShallow } from "zustand/react/shallow";import { Button } from "./ui/button";import { BIDI_VALUE_TOKEN, BidiInterpolatedText } from "./ui/BidiInterpolatedText";-import {- Download,- RefreshCw,- Loader2,- AlertTriangle,- Zap,- ChevronLeft,- PanelLeftOpen,- PanelLeftClose,-} from "./icons";+import { Download, RefreshCw, Loader2, AlertTriangle, Zap } from "./icons";import UpgradePrompt from "./UpgradePrompt";import PostMigrationOnboarding from "./PostMigrationOnboarding";import { RequiredModelsBanner } from "./RequiredModelsBanner";@@ -55,10 +46,11 @@ import {useIsNarrowWindow,useMeetingRecordingStore,} from "../stores/meetingRecordingStore";-import ControlPanelSidebar, { type ControlPanelView } from "./ControlPanelSidebar";+import ControlPanelSidebar from "./ControlPanelSidebar";+import ControlPanelTopBar from "./ControlPanelTopBar";+import { useControlPanelNavItems, type ControlPanelView } from "./controlPanelNav";import MeetingRecordingMount from "./MeetingRecordingMount";import MeetingRecordingPill from "./notes/MeetingRecordingPill";-import WindowControls from "./WindowControls";import { getCachedPlatform } from "../utils/platform";import { isAccessibilitySkipped } from "../utils/permissions";@@ -98,9 +90,6 @@ const SIDEBAR_WIDTH_PX = 192;// reindex effect for the per-version history).const SEMANTIC_REINDEX_VERSION = 2;-const toggleIconClass =- "text-foreground/60 group-hover:text-foreground/75 dark:text-foreground/50 dark:group-hover:text-foreground/65 transition-colors duration-150 rtl:scale-x-[-1]";-const SettingsModal = React.lazy(() => import("./SettingsModal"));const ReferralModal = React.lazy(() => import("./ReferralModal"));const PersonalNotesView = React.lazy(() => import("./notes/PersonalNotesView"));@@ -140,6 +129,7 @@ export default function ControlPanel({ initialSettingsSection }: ControlPanelProconst [showSearch, setShowSearch] = useState(false);const showDiscarded = useShowDiscarded();const [activeView, setActiveView] = useState<ControlPanelView>("home");+ const navItems = useControlPanelNavItems();const {collapsed: sidebarCollapsed,peek: sidebarPeek,@@ -847,7 +837,7 @@ export default function ControlPanel({ initialSettingsSection }: ControlPanelPro};return (- <div className="h-screen bg-background flex flex-col">+ <div className="h-screen bg-surface-window flex flex-col"><MeetingRecordingMount /><MeetingRecordingPillactiveView={activeView}@@ -924,28 +914,27 @@ export default function ControlPanel({ initialSettingsSection }: ControlPanelProonJoined={() => setActiveView("personal-notes")}/>- {showSearch && (- <Suspense fallback={null}>- <CommandSearch- open={showSearch}- onOpenChange={setShowSearch}- transcriptions={history}- onNoteSelect={(id, folderId, spaceId) => {- if (folderId != null) setActiveFolderId(folderId);- else if (spaceId != null) navigateToContainer(spaceId, null);- setActiveNoteId(id);- setActiveView("personal-notes");- }}- onContainerSelect={(spaceId, folderId) => {- navigateToContainer(spaceId, folderId);- setActiveView("personal-notes");- }}- onTranscriptSelect={() => {- setActiveView("home");- }}- />- </Suspense>- )}+ {/* Always mounted so the palette chunk is warm and Radix can play its exit animation. */}+ <Suspense fallback={null}>+ <CommandSearch+ open={showSearch}+ onOpenChange={setShowSearch}+ transcriptions={history}+ onNoteSelect={(id, folderId, spaceId) => {+ if (folderId != null) setActiveFolderId(folderId);+ else if (spaceId != null) navigateToContainer(spaceId, null);+ setActiveNoteId(id);+ setActiveView("personal-notes");+ }}+ onContainerSelect={(spaceId, folderId) => {+ navigateToContainer(spaceId, folderId);+ setActiveView("personal-notes");+ }}+ onTranscriptSelect={() => {+ setActiveView("home");+ }}+ />+ </Suspense><div className="flex flex-1 overflow-hidden relative"><div@@ -968,7 +957,6 @@ export default function ControlPanel({ initialSettingsSection }: ControlPanelPro<ControlPanelSidebaractiveView={activeView}onViewChange={setActiveView}- onOpenSearch={() => setShowSearch(true)}onOpenSettings={() => {setSettingsSection(undefined);setShowSettings(true);@@ -1004,253 +992,210 @@ export default function ControlPanel({ initialSettingsSection }: ControlPanelPro}/></div>- <main className="flex-1 flex flex-col overflow-hidden">- <div- className="flex items-center justify-between w-full h-10 shrink-0"- style={{ WebkitAppRegion: "drag" } as React.CSSProperties}- >- {isSidePanelLayout && (- <div- className={platform === "darwin" ? "ltr:ml-[84px] rtl:mr-2 mt-[16px]" : "ms-2"}- data-no-window-drag=""- style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}- >- <Button- variant="outline-flat"- size="sm"- onClick={handleExitSidePanel}- className="h-7 px-2.5 ps-1.5 gap-1"- >- <ChevronLeft size={14} strokeWidth={1.8} className="rtl:rotate-180" />- {t("controlPanel.backToNotes")}- </Button>- </div>- )}- <div className="flex-1" />- {platform !== "darwin" && (- <div- className="pe-1"- data-no-window-drag=""- style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}- >- <WindowControls />- </div>- )}- </div>- <div className="flex-1 overflow-y-auto pt-1">- {updateRequiredByOrg && (- <div className="max-w-3xl mx-auto w-full mb-3">- <div className="rounded-lg border border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-950/50 p-3">- <div className="flex items-start gap-3">- <div className="shrink-0 w-8 h-8 rounded-md bg-amber-100 dark:bg-amber-900/50 flex items-center justify-center">- <AlertTriangle size={16} className="text-amber-600 dark:text-amber-400" />- </div>- <div className="flex-1 min-w-0">- <p className="text-xs font-medium text-amber-900 dark:text-amber-200 mb-0.5">- {t("controlPanel.updateRequiredByOrg.title")}- </p>- <p className="text-xs text-amber-700 dark:text-amber-300/80">- <BidiInterpolatedText- text={t("controlPanel.updateRequiredByOrg.description", {- version: BIDI_VALUE_TOKEN,- })}- value={policyMinAppVersion}- />- </p>- </div>- </div>- </div>- </div>- )}- <RequiredModelsBanner />- {usage?.isPastDue && activeView === "home" && (- <div className="max-w-3xl mx-auto w-full mb-3">- <div className="rounded-lg border border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-950/50 p-3">- <div className="flex items-start gap-3">- <div className="shrink-0 w-8 h-8 rounded-md bg-amber-100 dark:bg-amber-900/50 flex items-center justify-center">- <AlertTriangle size={16} className="text-amber-600 dark:text-amber-400" />- </div>- <div className="flex-1 min-w-0">- <p className="text-xs font-medium text-amber-900 dark:text-amber-200 mb-0.5">- {t("controlPanel.billing.pastDueTitle")}- </p>- <p className="text-xs text-amber-700 dark:text-amber-300/80 mb-2">- {t("controlPanel.billing.bannerDescription", {- limit: usage.limit.toLocaleString(),- })}- </p>- <Button- variant="default"- size="sm"- className="h-7 text-xs"- onClick={() => {- setSettingsSection("account");- setShowSettings(true);- }}- >- {t("controlPanel.billing.updatePayment")}- </Button>+ <main className="flex-1 flex flex-col overflow-hidden p-2">+ <div className="flex min-h-0 flex-1 flex-col overflow-clip rounded-(--radius-shell) border border-border bg-background dark:border-white/10">+ <ControlPanelTopBar+ title={navItems.find((item) => item.id === activeView)?.label ?? ""}+ sidebarCollapsed={sidebarCollapsed}+ onToggleSidebar={toggleSidebar}+ onToggleMouseEnter={sidebarCollapsed ? showSidebarPeek : undefined}+ onToggleMouseLeave={sidebarCollapsed ? leaveSidebarToggle : undefined}+ onOpenSearch={() => setShowSearch(true)}+ isSidePanelLayout={isSidePanelLayout}+ onExitSidePanel={handleExitSidePanel}+ />+ <div className="scrollbar-hidden flex-1 overflow-y-auto">+ {updateRequiredByOrg && (+ <div className="max-w-3xl mx-auto w-full mb-3">+ <div className="rounded-lg border border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-950/50 p-3">+ <div className="flex items-start gap-3">+ <div className="shrink-0 w-8 h-8 rounded-md bg-amber-100 dark:bg-amber-900/50 flex items-center justify-center">+ <AlertTriangle size={16} className="text-amber-600 dark:text-amber-400" />+ </div>+ <div className="flex-1 min-w-0">+ <p className="text-xs font-medium text-amber-900 dark:text-amber-200 mb-0.5">+ {t("controlPanel.updateRequiredByOrg.title")}+ </p>+ <p className="text-xs text-amber-700 dark:text-amber-300/80">+ <BidiInterpolatedText+ text={t("controlPanel.updateRequiredByOrg.description", {+ version: BIDI_VALUE_TOKEN,+ })}+ value={policyMinAppVersion}+ />+ </p>+ </div></div></div></div>- </div>- )}- {(gpuAccelAvailable.transcription || gpuAccelAvailable.intelligence) &&- activeView === "home" &&- !gpuBannerDismissed && (+ )}+ <RequiredModelsBanner />+ {usage?.isPastDue && activeView === "home" && (<div className="max-w-3xl mx-auto w-full mb-3">- <div className="rounded-lg border border-primary/20 dark:border-primary/15 bg-primary/5 p-3">+ <div className="rounded-lg border border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-950/50 p-3"><div className="flex items-start gap-3">- <div className="shrink-0 w-8 h-8 rounded-md bg-primary/10 dark:bg-primary/15 flex items-center justify-center">- <Zap size={16} className="text-primary" />+ <div className="shrink-0 w-8 h-8 rounded-md bg-amber-100 dark:bg-amber-900/50 flex items-center justify-center">+ <AlertTriangle size={16} className="text-amber-600 dark:text-amber-400" /></div><div className="flex-1 min-w-0">- <p className="text-xs font-medium text-foreground mb-0.5">- {t("controlPanel.gpu.bannerTitle")}+ <p className="text-xs font-medium text-amber-900 dark:text-amber-200 mb-0.5">+ {t("controlPanel.billing.pastDueTitle")}</p>- <p className="text-xs text-muted-foreground mb-2">- {t("controlPanel.gpu.bannerDescription")}+ <p className="text-xs text-amber-700 dark:text-amber-300/80 mb-2">+ {t("controlPanel.billing.bannerDescription", {+ limit: usage.limit.toLocaleString(),+ })}</p>- <div className="flex items-center gap-3">- <Button- variant="default"- size="sm"- className="h-7 text-xs"- onClick={() => {- setSettingsSection(- gpuAccelAvailable.transcription- ? "transcription"- : gpuAccelAvailable.intelligence === "dictationAgent"- ? "dictationAgent"- : "intelligence"- );- setShowSettings(true);- }}- >- {t("controlPanel.gpu.enableButton")}- </Button>- <button- onClick={() => {- setGpuBannerDismissed(true);- localStorage.setItem("gpuBannerDismissedUnified", "true");- }}- className="text-xs text-muted-foreground hover:text-foreground transition-colors"- >- {t("controlPanel.gpu.dismissButton")}- </button>- </div>+ <Button+ variant="default"+ size="sm"+ className="h-7 text-xs"+ onClick={() => {+ setSettingsSection("account");+ setShowSettings(true);+ }}+ >+ {t("controlPanel.billing.updatePayment")}+ </Button></div></div></div></div>)}- {activeView === "home" && (- <HistoryView- history={history}- isLoading={isLoading}- hotkey={hotkey}- aiCTADismissed={aiCTADismissed}- setAiCTADismissed={setAiCTADismissed}- useCleanupModel={useCleanupModel}- copyToClipboard={copyToClipboard}- deleteTranscription={deleteTranscription}- clearAllTranscriptions={clearAllTranscriptions}- onShowAudioInFolder={showAudioInFolder}- onRetryTranscription={retryTranscription}- showDiscarded={showDiscarded}- onToggleDiscarded={toggleShowDiscarded}- onOpenSettings={(section) => {- setSettingsSection(section);- setShowSettings(true);- }}- onOpenIntegrations={() => setActiveView("integrations")}- />- )}- {activeView === "insights" && (- <Suspense fallback={null}>- <InsightsView- onSignIn={() => {- setSettingsSection("account");- setShowSettings(true);- }}- />- </Suspense>- )}- {activeView === "chat" && agentAllowedByPolicy && (- <Suspense fallback={null}>- <ChatView />- </Suspense>- )}- {activeView === "personal-notes" && (- <Suspense fallback={null}>- <PersonalNotesView- onOpenSettings={(section) => {- setSettingsSection(section);- setShowSettings(true);- }}- meetingRecordingRequest={meetingRecordingRequest}- onMeetingRecordingRequestHandled={handleMeetingRecordingRequestHandled}- invitationEntry={invitationNotesEntry}- onInvitationEntryHandled={() => setInvitationNotesEntry(null)}- />- </Suspense>- )}- {activeView === "dictionary" && (- <Suspense fallback={null}>- <DictionaryView />- </Suspense>- )}- {activeView === "upload" && policyActionsAllowed && (- <Suspense fallback={null}>- <UploadAudioView- onNoteCreated={(noteId, folderId) => {- setActiveNoteId(noteId);- if (folderId) setActiveFolderId(folderId);- setActiveView("personal-notes");- }}+ {(gpuAccelAvailable.transcription || gpuAccelAvailable.intelligence) &&+ activeView === "home" &&+ !gpuBannerDismissed && (+ <div className="max-w-3xl mx-auto w-full mb-3">+ <div className="rounded-lg border border-primary/20 dark:border-primary/15 bg-primary/5 p-3">+ <div className="flex items-start gap-3">+ <div className="shrink-0 w-8 h-8 rounded-md bg-primary/10 dark:bg-primary/15 flex items-center justify-center">+ <Zap size={16} className="text-primary" />+ </div>+ <div className="flex-1 min-w-0">+ <p className="text-xs font-medium text-foreground mb-0.5">+ {t("controlPanel.gpu.bannerTitle")}+ </p>+ <p className="text-xs text-muted-foreground mb-2">+ {t("controlPanel.gpu.bannerDescription")}+ </p>+ <div className="flex items-center gap-3">+ <Button+ variant="default"+ size="sm"+ className="h-7 text-xs"+ onClick={() => {+ setSettingsSection(+ gpuAccelAvailable.transcription+ ? "transcription"+ : gpuAccelAvailable.intelligence === "dictationAgent"+ ? "dictationAgent"+ : "intelligence"+ );+ setShowSettings(true);+ }}+ >+ {t("controlPanel.gpu.enableButton")}+ </Button>+ <button+ onClick={() => {+ setGpuBannerDismissed(true);+ localStorage.setItem("gpuBannerDismissedUnified", "true");+ }}+ className="text-xs text-muted-foreground hover:text-foreground transition-colors"+ >+ {t("controlPanel.gpu.dismissButton")}+ </button>+ </div>+ </div>+ </div>+ </div>+ </div>+ )}+ {activeView === "home" && (+ <HistoryView+ history={history}+ isLoading={isLoading}+ hotkey={hotkey}+ aiCTADismissed={aiCTADismissed}+ setAiCTADismissed={setAiCTADismissed}+ useCleanupModel={useCleanupModel}+ copyToClipboard={copyToClipboard}+ deleteTranscription={deleteTranscription}+ clearAllTranscriptions={clearAllTranscriptions}+ onShowAudioInFolder={showAudioInFolder}+ onRetryTranscription={retryTranscription}+ showDiscarded={showDiscarded}+ onToggleDiscarded={toggleShowDiscarded}onOpenSettings={(section) => {setSettingsSection(section);setShowSettings(true);}}+ onOpenIntegrations={() => setActiveView("integrations")}/>- </Suspense>- )}- {activeView === "integrations" && (- <Suspense fallback={null}>- <IntegrationsView- isPaid={usage?.hasPaidAccessOptimistic ?? false}- onUpgrade={() => {- setSettingsSection("plansBilling");- setShowSettings(true);- }}- />- </Suspense>- )}- </div>- </main>- {!isSidePanelLayout && (- <div- className={`absolute z-40 flex h-10 items-center ${- platform === "darwin" ? "ltr:left-21 rtl:right-2 top-2" : "start-2 top-0"- }`}- data-no-window-drag=""- style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}- onMouseEnter={sidebarCollapsed ? showSidebarPeek : undefined}- onMouseLeave={sidebarCollapsed ? leaveSidebarToggle : undefined}- >- <button- onClick={toggleSidebar}- aria-label={sidebarCollapsed ? t("sidebar.expand") : t("sidebar.collapse")}- className="group flex items-center justify-center h-7 w-7 rounded-md outline-none hover:bg-foreground/5 dark:hover:bg-white/5 focus-visible:ring-1 focus-visible:ring-primary/30 transition-colors duration-150"- >- {sidebarCollapsed ? (- <PanelLeftOpen size={15} className={toggleIconClass} />- ) : (- <PanelLeftClose size={15} className={toggleIconClass} />)}- </button>+ {activeView === "insights" && (+ <Suspense fallback={null}>+ <InsightsView+ onSignIn={() => {+ setSettingsSection("account");+ setShowSettings(true);+ }}+ />+ </Suspense>+ )}+ {activeView === "chat" && agentAllowedByPolicy && (+ <Suspense fallback={null}>+ <ChatView />+ </Suspense>+ )}+ {activeView === "personal-notes" && (+ <Suspense fallback={null}>+ <PersonalNotesView+ onOpenSettings={(section) => {+ setSettingsSection(section);+ setShowSettings(true);+ }}+ meetingRecordingRequest={meetingRecordingRequest}+ onMeetingRecordingRequestHandled={handleMeetingRecordingRequestHandled}+ invitationEntry={invitationNotesEntry}+ onInvitationEntryHandled={() => setInvitationNotesEntry(null)}+ />+ </Suspense>+ )}+ {activeView === "dictionary" && (+ <Suspense fallback={null}>+ <DictionaryView />+ </Suspense>+ )}+ {activeView === "upload" && policyActionsAllowed && (+ <Suspense fallback={null}>+ <UploadAudioView+ onNoteCreated={(noteId, folderId) => {+ setActiveNoteId(noteId);+ if (folderId) setActiveFolderId(folderId);+ setActiveView("personal-notes");+ }}+ onOpenSettings={(section) => {+ setSettingsSection(section);+ setShowSettings(true);+ }}+ />+ </Suspense>+ )}+ {activeView === "integrations" && (+ <Suspense fallback={null}>+ <IntegrationsView+ isPaid={usage?.hasPaidAccessOptimistic ?? false}+ onUpgrade={() => {+ setSettingsSection("plansBilling");+ setShowSettings(true);+ }}+ />+ </Suspense>+ )}+ </div></div>- )}+ </main></div><BackgroundActionToastListener /><SpaceSyncToastListener />diff --git a/src/components/ControlPanelSidebar.tsx b/src/components/ControlPanelSidebar.tsxindex 54660f231..8871e3eb1 100644--- a/src/components/ControlPanelSidebar.tsx+++ b/src/components/ControlPanelSidebar.tsx@@ -1,48 +1,26 @@import React, { useState } from "react";-import {- Home,- BarChart3,- MessageSquare,- NotebookPen,- BookOpen,- Upload,- Blocks,- Gift,- Lock,- Settings,- ShieldCheck,- HelpCircle,- UserCircle,- X,- Search,- Zap,-} from "./icons";+import { Gift, Lock, Settings, ShieldCheck, HelpCircle, UserCircle, X, Zap } from "./icons";import logoIcon from "../assets/icon.png";import { useTranslation } from "react-i18next";import { cn } from "./lib/utils";import SupportDropdown from "./ui/SupportDropdown";-import { getCachedPlatform } from "../utils/platform";+import { Button } from "./ui/button";import type { UpsellDecision } from "../lib/upsell";-import { isAgentAllowed, isPolicyActionAllowed } from "../stores/policyRules";-import { usePolicyStore } from "../stores/policyStore";+import { useControlPanelNavItems, type ControlPanelView } from "./controlPanelNav";-const platform = getCachedPlatform();+export type { ControlPanelView };const rowIconClass =- "shrink-0 text-foreground/60 group-hover:text-foreground/75 dark:text-foreground/50 dark:group-hover:text-foreground/65 transition-colors duration-150";+ "shrink-0 text-foreground/70 group-hover:text-foreground/90 dark:text-foreground/65 dark:group-hover:text-foreground/85 transition-colors duration-150";const rowLabelClass =- "text-xs text-foreground/80 group-hover:text-foreground dark:text-foreground/70 dark:group-hover:text-foreground/85 transition-colors duration-150";+ "text-[13px] text-foreground/90 group-hover:text-foreground dark:text-foreground/85 dark:group-hover:text-foreground transition-colors duration-150";const rowButtonClass ="group flex items-center gap-2.5 w-full h-8 px-2.5 rounded-md text-start outline-none hover:bg-foreground/4 dark:hover:bg-white/4 focus-visible:ring-1 focus-visible:ring-primary/30 transition-colors duration-150";-export type ControlPanelView =- "home" | "insights" | "chat" | "personal-notes" | "dictionary" | "upload" | "integrations";-interface ControlPanelSidebarProps {activeView: ControlPanelView;onViewChange: (view: ControlPanelView) => void;onOpenSettings: () => void;- onOpenSearch?: () => void;onOpenReferrals?: () => void;onUpgrade?: () => void;isOverLimit?: boolean;@@ -59,7 +37,6 @@ export default function ControlPanelSidebar({activeView,onViewChange,onOpenSettings,- onOpenSearch,onOpenReferrals,onUpgrade,isOverLimit,@@ -79,56 +56,15 @@ export default function ControlPanelSidebar({const showLimitBanner = upsell === "show" && Boolean(isSignedIn) && Boolean(isOverLimit);const showUpgradeBanner = upsell === "show" && !showLimitBanner && !upgradeDismissed;- const agentAllowed = usePolicyStore(isAgentAllowed);- const policyActionsAllowed = usePolicyStore((state) => isPolicyActionAllowed(state));-- const navItems: {- id: ControlPanelView;- label: string;- icon: React.ComponentType<{ size?: number; className?: string }>;- }[] = [- { id: "home", label: t("sidebar.home"), icon: Home },- { id: "insights", label: t("sidebar.insights"), icon: BarChart3 },- ...(agentAllowed- ? [{ id: "chat" as const, label: t("sidebar.chat"), icon: MessageSquare }]- : []),- { id: "personal-notes", label: t("sidebar.notes"), icon: NotebookPen },- ...(policyActionsAllowed- ? [{ id: "upload" as const, label: t("sidebar.upload"), icon: Upload }]- : []),- { id: "dictionary", label: t("sidebar.dictionary"), icon: BookOpen },- { id: "integrations", label: t("sidebar.integrations"), icon: Blocks },- ];+ const navItems = useControlPanelNavItems();return (- <div className="w-48 h-full shrink-0 border-e border-border/15 dark:border-white/6 flex flex-col bg-surface-1/60 dark:bg-surface-1">+ <div className="w-48 h-full shrink-0 flex flex-col bg-surface-window"><divclassName="w-full h-10 shrink-0"style={{ WebkitAppRegion: "drag" } as React.CSSProperties}/>- {onOpenSearch && (- <div className="px-2 pt-2 pb-1">- <button- onClick={onOpenSearch}- className="group flex items-center w-full h-7 px-2.5 rounded-md border border-border/70 dark:border-white/25 bg-transparent hover:bg-foreground/5 dark:hover:bg-white/5 transition-colors gap-2 outline-none focus-visible:ring-1 focus-visible:ring-primary/30"- >- <Search size={11} className="text-muted-foreground/50 shrink-0" />- <span className="flex-1 text-[11px] text-start text-muted-foreground/50">- {t("commandSearch.shortPlaceholder")}- </span>- <div dir="ltr" className="flex items-center gap-0.5 shrink-0">- <kbd className="text-[10px] px-1 py-px rounded border border-border/30 dark:border-white/8 bg-muted/40 text-muted-foreground/40 font-mono leading-tight">- {platform === "darwin" ? "⌘" : "Ctrl"}- </kbd>- <kbd className="text-[10px] px-1 py-px rounded border border-border/30 dark:border-white/8 bg-muted/40 text-muted-foreground/40 font-mono leading-tight">- K- </kbd>- </div>- </button>- </div>- )}-<nav className="flex flex-col gap-0.5 px-2 pt-2 pb-2">{navItems.map((item) => {const Icon = item.icon;@@ -147,20 +83,20 @@ export default function ControlPanelSidebar({)}><Icon- size={15}+ size={16}className={cn("shrink-0 transition-colors duration-150",isActive? "text-primary"- : "text-foreground/60 group-hover:text-foreground/75 dark:text-foreground/55 dark:group-hover:text-foreground/70"+ : "text-foreground/70 group-hover:text-foreground/90 dark:text-foreground/65 dark:group-hover:text-foreground/85")}/><spanclassName={cn(- "text-xs transition-colors duration-150",+ "text-[13px] transition-colors duration-150",isActive? "text-foreground font-medium"- : "text-foreground/80 group-hover:text-foreground dark:text-foreground/75 dark:group-hover:text-foreground/90"+ : "text-foreground/90 group-hover:text-foreground dark:text-foreground/85 dark:group-hover:text-foreground")}>{item.label}@@ -183,12 +119,9 @@ export default function ControlPanelSidebar({<p className="text-[11px] leading-snug text-muted-foreground mb-2.5">{t("sidebar.limitReachedDescription")}</p>- <button- onClick={onUpgrade}- className="w-full h-7 rounded-md bg-primary text-primary-foreground text-xs font-medium hover:bg-primary/90 transition-colors"- >+ <Button size="sm" onClick={onUpgrade} className="h-7 w-full text-xs">{t("sidebar.viewPlans")}- </button>+ </Button></div></div></div>@@ -228,12 +161,9 @@ export default function ControlPanelSidebar({</div>))}</div>- <button- onClick={onUpgrade}- className="w-full h-7 rounded-full bg-[#4079ed] text-white text-xs font-medium hover:bg-[#3568d9] active:bg-[#2f5dc4] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#4079ed]/40 transition-colors"- >+ <Button size="sm" onClick={onUpgrade} className="h-7 w-full text-xs">{t("sidebar.learnMore")}- </button>+ </Button></div></div>)}@@ -251,7 +181,7 @@ export default function ControlPanelSidebar({aria-label={t("sidebar.referral")}className={rowButtonClass}>- <Gift size={15} className={rowIconClass} />+ <Gift size={16} className={rowIconClass} /><span className={rowLabelClass}>{t("sidebar.referral")}</span></button>)}@@ -261,14 +191,14 @@ export default function ControlPanelSidebar({aria-label={t("sidebar.settings")}className={rowButtonClass}>- <Settings size={15} className={rowIconClass} />+ <Settings size={16} className={rowIconClass} /><span className={rowLabelClass}>{t("sidebar.settings")}</span></button><SupportDropdowntrigger={<button aria-label={t("sidebar.support")} className={rowButtonClass}>- <HelpCircle size={15} className={rowIconClass} />+ <HelpCircle size={16} className={rowIconClass} /><span className={rowLabelClass}>{t("sidebar.support")}</span></button>}diff --git a/src/components/ControlPanelTopBar.tsx b/src/components/ControlPanelTopBar.tsxnew file mode 100644index 000000000..617236a6d--- /dev/null+++ b/src/components/ControlPanelTopBar.tsx@@ -0,0 +1,122 @@+import React from "react";+import { useTranslation } from "react-i18next";+import { ChevronLeft, PanelLeftClose, Search } from "./icons";+import { Button } from "./ui/button";+import WindowControls from "./WindowControls";+import { cn } from "./lib/utils";+import { getCachedPlatform } from "../utils/platform";++const platform = getCachedPlatform();++// Controls inside the drag region must opt out or the click starts a window drag.+const noDragStyle = { WebkitAppRegion: "no-drag" } as React.CSSProperties;++const toggleIconClass =+ "text-foreground/60 group-hover:text-foreground/75 dark:text-foreground/50 dark:group-hover:text-foreground/65 transition-colors duration-150 rtl:scale-x-[-1]";++interface ControlPanelTopBarProps {+ title: string;+ sidebarCollapsed: boolean;+ onToggleSidebar: () => void;+ onToggleMouseEnter?: () => void;+ onToggleMouseLeave?: () => void;+ onOpenSearch: () => void;+ /** Meeting mode or a narrow window with an open note: sidebar hidden, back button shown. */+ isSidePanelLayout: boolean;+ onExitSidePanel: () => void;+}++export default function ControlPanelTopBar({+ title,+ sidebarCollapsed,+ onToggleSidebar,+ onToggleMouseEnter,+ onToggleMouseLeave,+ onOpenSearch,+ isSidePanelLayout,+ onExitSidePanel,+}: ControlPanelTopBarProps) {+ const { t } = useTranslation();+ // With the sidebar out of the way the container's start edge sits under the+ // macOS traffic lights, so the leading controls shift past them.+ const clearTrafficLights = platform === "darwin" && (sidebarCollapsed || isSidePanelLayout);++ return (+ <header+ className={cn(+ "grid h-12 shrink-0 grid-cols-[minmax(0,1fr)_minmax(0,340px)_minmax(0,1fr)] items-center gap-4 border-b border-border px-3 dark:border-white/10",+ // Eased with the sidebar spacer so the toggle glides instead of jumping when the+ // clearance switches; a jump would drag it back under the cursor and re-trigger peek.+ "transition-[padding] duration-300 ease-out",+ clearTrafficLights && "ltr:ps-[76px]"+ )}+ style={{ WebkitAppRegion: "drag" } as React.CSSProperties}+ >+ <div className="flex min-w-0 items-center gap-2.5">+ {isSidePanelLayout ? (+ <Button+ variant="outline-flat"+ size="sm"+ onClick={onExitSidePanel}+ className="h-7 gap-1 px-2.5 ps-1.5"+ data-no-window-drag=""+ style={noDragStyle}+ >+ <ChevronLeft size={14} strokeWidth={1.8} className="rtl:rotate-180" />+ {t("controlPanel.backToNotes")}+ </Button>+ ) : (+ <>+ <button+ type="button"+ onClick={onToggleSidebar}+ onMouseEnter={onToggleMouseEnter}+ onMouseLeave={onToggleMouseLeave}+ aria-label={sidebarCollapsed ? t("sidebar.expand") : t("sidebar.collapse")}+ data-no-window-drag=""+ style={noDragStyle}+ // z-40 keeps the toggle above the peeking sidebar (z-30) so the panel slides in+ // underneath it and the button stays clickable while collapsed.+ className="group relative z-40 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg outline-none transition-colors duration-150 hover:bg-foreground/5 focus-visible:ring-1 focus-visible:ring-primary/30 dark:hover:bg-white/5"+ >+ <PanelLeftClose size={16} className={toggleIconClass} />+ </button>+ {/* Global h1 styles are display-sized; this is chrome, so pin it down. */}+ <h1 className="truncate text-sm! font-medium! leading-none! tracking-normal! text-foreground">+ {title}+ </h1>+ </>+ )}+ </div>++ {!isSidePanelLayout && (+ <button+ type="button"+ onClick={onOpenSearch}+ data-no-window-drag=""+ style={noDragStyle}+ className="flex h-8 w-full items-center gap-2.5 rounded-full bg-foreground/4 px-4 text-start outline-none transition-colors duration-150 hover:bg-foreground/6 focus-visible:ring-1 focus-visible:ring-primary/30 dark:bg-white/5 dark:hover:bg-white/8"+ >+ <Search size={14} className="shrink-0 text-muted-foreground/70" />+ <span className="flex-1 truncate text-[13px] text-muted-foreground/70">+ {t("commandSearch.placeholder")}+ </span>+ <kbd+ dir="ltr"+ className="shrink-0 rounded-full bg-foreground/6 px-1.5 py-px font-sans text-[10px] font-medium text-muted-foreground/70 dark:bg-white/8"+ >+ {platform === "darwin" ? "⌘ + K" : "Ctrl + K"}+ </kbd>+ </button>+ )}++ <div className="col-start-3 flex items-center justify-self-end">+ {platform !== "darwin" && (+ <div data-no-window-drag="" style={noDragStyle}>+ <WindowControls />+ </div>+ )}+ </div>+ </header>+ );+}diff --git a/src/components/CreateTeamDialog.tsx b/src/components/CreateTeamDialog.tsxindex 023c94295..5eab8108c 100644--- a/src/components/CreateTeamDialog.tsx+++ b/src/components/CreateTeamDialog.tsx@@ -149,7 +149,7 @@ export default function CreateTeamDialog({{t("settingsPage.workspace.teams.addMembersLabel")}</label>{membersError ? (- <div className="rounded border border-border/70 dark:border-border-subtle/50 px-3 py-2.5 flex items-center justify-between gap-2">+ <div className="rounded border border-border/70 dark:border-border-subtle/60 px-3 py-2.5 flex items-center justify-between gap-2"><p className="text-xs text-muted-foreground">{t("settingsPage.workspace.members.loadError")}</p>diff --git a/src/components/DeveloperSection.tsx b/src/components/DeveloperSection.tsxindex f2095d91a..9bd951728 100644--- a/src/components/DeveloperSection.tsx+++ b/src/components/DeveloperSection.tsx@@ -123,7 +123,7 @@ export default function DeveloperSection() {</div>{/* Debug Toggle */}- <div className="rounded-xl border border-border/60 dark:border-border-subtle bg-card dark:bg-surface-2 divide-y divide-border/40 dark:divide-border-subtle">+ <div className="rounded-xl border border-border/70 dark:border-border-subtle bg-card dark:bg-surface-2 divide-y divide-border/60 dark:divide-border-subtle"><div className="px-5 py-4"><div className="flex items-center justify-between gap-6"><div className="min-w-0 flex-1">@@ -156,13 +156,13 @@ export default function DeveloperSection() {{/* Log Path — only when active */}{debugEnabled && logPath && (<div className="px-5 py-4">- <p className="text-xs font-medium text-muted-foreground/60 uppercase tracking-wider mb-2">+ <p className="text-xs font-medium text-muted-foreground/70 uppercase tracking-wider mb-2">{t("developerSection.currentLogFile")}</p><div className="flex items-center gap-2"><codedir="ltr"- className="flex-1 text-xs text-muted-foreground font-mono break-all leading-relaxed bg-muted/30 dark:bg-surface-raised/30 px-3 py-2 rounded-lg border border-border/30"+ className="flex-1 text-xs text-muted-foreground font-mono break-all leading-relaxed bg-muted/30 dark:bg-surface-raised/30 px-3 py-2 rounded-lg border border-border/70">{logPath}</code>@@ -200,7 +200,7 @@ export default function DeveloperSection() {{t("developerSection.whatGetsLogged.title")}</h3></div>- <div className="rounded-xl border border-border/60 dark:border-border-subtle bg-card dark:bg-surface-2">+ <div className="rounded-xl border border-border/70 dark:border-border-subtle bg-card dark:bg-surface-2"><div className="px-5 py-4"><divclassName={`grid gap-y-2 ${isCompact ? "grid-cols-1 gap-x-0" : "grid-cols-2 gap-x-6"}`}@@ -245,7 +245,7 @@ export default function DeveloperSection() {{t("developerSection.sharing.title")}</h3></div>- <div className="rounded-xl border border-border/60 dark:border-border-subtle bg-card dark:bg-surface-2">+ <div className="rounded-xl border border-border/70 dark:border-border-subtle bg-card dark:bg-surface-2"><div className="px-5 py-4"><div className="space-y-2">{[@@ -254,14 +254,14 @@ export default function DeveloperSection() {t("developerSection.sharing.steps.2"),].map((step, i) => (<div key={i} className="flex items-start gap-3">- <span className="mt-0.5 w-4 shrink-0 text-end font-mono text-xs text-muted-foreground/40">+ <span className="mt-0.5 w-4 shrink-0 text-end font-mono text-xs text-muted-foreground/70">{i + 1}</span><p className="text-xs text-muted-foreground leading-relaxed">{step}</p></div>))}</div>- <p className="text-xs text-muted-foreground/40 mt-4 pt-3 border-t border-border/20">+ <p className="text-xs text-muted-foreground/70 mt-4 pt-3 border-t border-border/70">{t("developerSection.sharing.footer")}</p></div>diff --git a/src/components/DictionaryView.tsx b/src/components/DictionaryView.tsxindex 8a1f442f9..a186b9b7f 100644--- a/src/components/DictionaryView.tsx+++ b/src/components/DictionaryView.tsx@@ -119,7 +119,7 @@ export default function DictionaryView() {<BookOpen size={17} strokeWidth={1.5} className="text-primary/50 dark:text-primary/60" /></div><h4 className="text-xs font-semibold text-foreground mb-1">{t("dictionary.emptyTitle")}</h4>- <p className="text-xs text-foreground/30 leading-relaxed max-w-[240px] mb-4">+ <p className="text-xs text-foreground/45 leading-relaxed max-w-[240px] mb-4">{t("dictionary.emptyDescription", { agentName })}</p><Button size="sm" onClick={() => addInputRef.current?.focus()}>@@ -128,7 +128,7 @@ export default function DictionaryView() {</Button><buttononClick={() => setShowBulkImport(true)}- className="mt-3 flex items-center gap-1.5 text-xs text-foreground/30 hover:text-foreground/60 transition-colors"+ className="mt-3 flex items-center gap-1.5 text-xs text-foreground/45 hover:text-foreground/60 transition-colors"><Upload size={11} />{t("dictionary.importList")}@@ -172,14 +172,14 @@ export default function DictionaryView() {onKeyDown={(e) => {if (e.key === "Enter") handleAdd();}}- className="w-full h-8 text-xs pe-24 placeholder:text-foreground/20"+ className="w-full h-8 text-xs pe-24 placeholder:text-foreground/45"/><div className="absolute end-2.5 top-1/2 -translate-y-1/2 flex items-center gap-2"><buttononClick={handleAdd}disabled={!newWord.trim()}aria-label={t("dictionary.addWord")}- className="flex items-center gap-1 text-xs text-foreground/30 enabled:hover:text-primary disabled:text-foreground/15 transition-colors"+ className="flex items-center gap-1 text-xs text-foreground/45 enabled:hover:text-primary disabled:text-foreground/45 transition-colors">{t("dictionary.add")}<CornerDownLeft size={10} />@@ -188,7 +188,7 @@ export default function DictionaryView() {<buttononClick={() => setShowBulkImport(true)}aria-label={t("dictionary.importWords")}- className="text-foreground/30 hover:text-foreground/60 transition-colors"+ className="text-foreground/45 hover:text-foreground/60 transition-colors"><Upload size={11} /></button>@@ -206,10 +206,10 @@ export default function DictionaryView() {onChange={(e) => setBulkText(e.target.value)}placeholder={t("dictionary.importPlaceholder")}rows={4}- className="min-h-[72px] resize-none border-0 shadow-none rounded-none bg-transparent p-0 text-xs text-foreground placeholder:text-foreground/20 hover:border-0 focus:border-0 focus:ring-0"+ className="min-h-[72px] resize-none border-0 shadow-none rounded-none bg-transparent p-0 text-xs text-foreground placeholder:text-foreground/45 hover:border-0 focus:border-0 focus:ring-0"/><div className="flex items-center justify-between pt-1.5">- <p className="text-xs text-foreground/20">+ <p className="text-xs text-foreground/45">{t("dictionary.separateWithCommas")}{pendingImportCount > 0 && (<span className="text-success">@@ -245,44 +245,44 @@ export default function DictionaryView() {{agentName}</span></div>- <span className="text-xs text-foreground/25 shrink-0">+ <span className="text-xs text-foreground/45 shrink-0">{t("dictionary.agentDefault")}</span></div>{/* ─── Dictionary list ─── */}- <div className="rounded-md border border-foreground/8 dark:border-white/6 bg-foreground/[0.02] dark:bg-white/[0.03] px-4 py-3">+ <div className="rounded-md border border-foreground/8 dark:border-white/10 bg-foreground/[0.02] dark:bg-white/[0.03] px-4 py-3">{userWords.length > 0 && (<><div className="flex items-center justify-between">- <h3 className="text-xs font-semibold text-foreground/40">+ <h3 className="text-xs font-semibold text-foreground/45">{t("dictionary.yourDictionary")}</h3><div className="flex items-center gap-3"><buttononClick={() => setConfirmClear(true)}aria-label={t("dictionary.clearAll")}- className="text-xs text-foreground/15 hover:text-destructive/70 transition-colors"+ className="text-xs text-foreground/45 hover:text-destructive/70 transition-colors">{t("dictionary.clearAll")}</button><buttononClick={handleExport}aria-label={t("dictionary.exportDictionary")}- className="text-foreground/25 hover:text-foreground/60 transition-colors"+ className="text-foreground/45 hover:text-foreground/60 transition-colors"><Download size={12} /></button></div></div>- <div className="mt-2.5 border-t border-dashed border-foreground/10 dark:border-white/8" />+ <div className="mt-2.5 border-t border-dashed border-foreground/10 dark:border-white/10" /></>)}{userWords.length === 0 ? (emptyState) : visibleWords.length === 0 ? (- <p className="py-6 text-xs text-foreground/20 text-center">+ <p className="py-6 text-xs text-foreground/45 text-center">{t("dictionary.noMatches", { word: newWord.trim() })}</p>) : (@@ -292,7 +292,7 @@ export default function DictionaryView() {return (<likey={word}- className="group flex items-center gap-2 h-9 border-b border-foreground/4 dark:border-white/3 last:border-b-0"+ className="group flex items-center gap-2 h-9 border-b border-foreground/4 dark:border-white/10 last:border-b-0">{isEditing ? (<Input@@ -317,14 +317,14 @@ export default function DictionaryView() {<buttononClick={() => startEdit(word)}aria-label={t("dictionary.editWord", { word })}- className="p-1 text-foreground/25 hover:text-foreground/60 transition-colors"+ className="p-1 text-foreground/45 hover:text-foreground/60 transition-colors"><Pencil size={11} /></button><buttononClick={() => handleRemove(word)}aria-label={t("dictionary.removeWord", { word })}- className="p-1 text-foreground/25 hover:text-destructive/70 transition-colors"+ className="p-1 text-foreground/45 hover:text-destructive/70 transition-colors"><X size={11} strokeWidth={2} /></button>@@ -339,7 +339,7 @@ export default function DictionaryView() {{/* ─── Provider prompt-limit notice ─── */}{promptChars > WHISPER_DECODER_PROMPT_CHARS && (- <p className="text-xs text-foreground/30 leading-relaxed">+ <p className="text-xs text-foreground/45 leading-relaxed">{t("dictionary.promptLimitNotice", { chars: promptChars })}</p>)}diff --git a/src/components/ForgotPasswordView.tsx b/src/components/ForgotPasswordView.tsxindex ee439d715..48a111ecd 100644--- a/src/components/ForgotPasswordView.tsx+++ b/src/components/ForgotPasswordView.tsx@@ -87,7 +87,7 @@ export default function ForgotPasswordView({setIsSuccess(false);setEmail("");}}- className="h-10 w-full rounded-full border-transparent bg-[var(--onboarding-inverse-surface)] text-[var(--onboarding-inverse-text)] shadow-none hover:opacity-90"+ className="h-10 w-full"><span className="text-sm font-medium">{t("forgotPassword.success.tryAnother")}</span></Button>@@ -136,11 +136,7 @@ export default function ForgotPasswordView({</div>)}- <Button- type="submit"- disabled={isSubmitting || !email.trim()}- className="h-10 w-full rounded-full border-transparent bg-[var(--onboarding-inverse-surface)] text-[var(--onboarding-inverse-text)] shadow-none hover:opacity-90 disabled:border-transparent disabled:bg-[var(--onboarding-surface-tertiary)] disabled:text-[var(--onboarding-text-tertiary)] disabled:opacity-100"- >+ <Button type="submit" disabled={isSubmitting || !email.trim()} className="h-10 w-full">{isSubmitting ? (<><Loader2 className="size-3.5 animate-spin" />diff --git a/src/components/HistoryView.tsx b/src/components/HistoryView.tsxindex cae457800..f445f5ef2 100644--- a/src/components/HistoryView.tsx+++ b/src/components/HistoryView.tsx@@ -1,9 +1,11 @@import { Fragment, useMemo } from "react";import { useTranslation } from "react-i18next";+import { cn } from "./lib/utils";import { useUiLocale } from "../hooks/useUiLocale";import { Button } from "./ui/button";import { Loader2, Sparkles, X, Mic, Trash2, Archive } from "./icons";import TranscriptionItem from "./ui/TranscriptionItem";+import EmptyStateCard from "./ui/EmptyStateCard";import type { TranscriptionItem as TranscriptionItemType } from "../types/electron";import { formatHotkeyLabel, parseHotkeyList } from "../utils/hotkeys";import { formatDateGroup } from "../utils/dateFormatting";@@ -13,6 +15,8 @@ import { useSettingsStore } from "../stores/settingsStore";import { effectiveLocalHistoryEnabled } from "../stores/policyRules";import { usePolicyStore } from "../stores/policyStore";+const EMPTY_PREVIEW_WIDTHS = ["w-full", "w-4/5", "w-3/5"];+interface HistoryViewProps {history: TranscriptionItemType[];isLoading: boolean;@@ -79,7 +83,7 @@ export default function HistoryView({const discardedToggle = (<buttononClick={onToggleDiscarded}- className="flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] text-muted-foreground/60 hover:!text-foreground hover:!bg-black/5 dark:hover:!bg-white/5 active:scale-[0.98] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/30 transition-all duration-200"+ className="flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] text-muted-foreground/70 hover:!text-foreground hover:!bg-black/5 dark:hover:!bg-white/5 active:scale-[0.98] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/30 transition-all duration-200"><Archive size={11} /><span>@@ -93,7 +97,6 @@ export default function HistoryView({return (<div className="px-4 pt-4 pb-6"><div className="mx-auto max-w-5xl">- {history.length === 0 && <div className="mb-2 flex justify-end">{discardedToggle}</div>}{!useCleanupModel && !aiCTADismissed && (<div className="mb-3 relative rounded-lg border border-primary/20 bg-primary/5 dark:bg-primary/10 p-3"><button@@ -130,14 +133,8 @@ export default function HistoryView({</div>)}- <div className="flex gap-6">+ <div className="flex gap-8"><div className="min-w-0 flex-1">- <div className="flex items-center gap-1.5 pb-2.5">- <Mic size={12} className="text-muted-foreground" />- <span className="text-[11px] font-semibold text-muted-foreground uppercase tracking-wide">- {t("upcoming.transcriptions")}- </span>- </div>{!dataRetentionEnabled && (<div className="mb-3 rounded-lg border border-amber-500/30 bg-amber-500/5 dark:bg-amber-500/10 px-3.5 py-2.5 flex items-center gap-2.5"><span className="text-amber-600 dark:text-amber-400 shrink-0 text-sm">⊘</span>@@ -147,132 +144,62 @@ export default function HistoryView({</div>)}{isLoading && history.length === 0 ? (- <div className="rounded-lg border border-border bg-card/50 dark:bg-card/60 backdrop-blur-sm">- <div className="flex items-center justify-center gap-2 py-8">+ <div className="rounded-2xl border border-border/70 bg-card/50 dark:border-white/10 dark:bg-surface-2/60">+ <div className="flex items-center justify-center gap-2 py-10"><Loader2 size={14} className="animate-spin text-primary" /><span className="text-sm text-muted-foreground">{t("controlPanel.loading")}</span></div></div>) : history.length === 0 ? (- <div className="rounded-lg border border-border bg-card/50 dark:bg-card/60 backdrop-blur-sm">- <div className="flex flex-col items-center justify-center py-16 px-4">- <svg- className="text-foreground dark:text-white mb-5"- width="64"- height="64"- viewBox="0 0 64 64"- fill="none"- >- <rect- x="24"- y="6"- width="16"- height="28"- rx="8"- fill="currentColor"- fillOpacity={0.04}- stroke="currentColor"- strokeOpacity={0.1}- />- <rect- x="28"- y="12"- width="8"- height="3"- rx="1.5"- fill="currentColor"- fillOpacity={0.06}- />- <path- d="M18 28c0 7.7 6.3 14 14 14s14-6.3 14-14"- fill="none"- stroke="currentColor"- strokeOpacity={0.07}- strokeWidth={1.5}- strokeLinecap="round"- />- <line- x1="32"- y1="42"- x2="32"- y2="50"- stroke="currentColor"- strokeOpacity={0.07}- strokeWidth={1.5}- strokeLinecap="round"- />- <line- x1="26"- y1="50"- x2="38"- y2="50"- stroke="currentColor"- strokeOpacity={0.07}- strokeWidth={1.5}- strokeLinecap="round"- />- <path- d="M12 20a2 2 0 0 1 0 8"- stroke="currentColor"- strokeOpacity={0.04}- strokeWidth={1.5}- strokeLinecap="round"- />- <path- d="M8 18a2 2 0 0 1 0 12"- stroke="currentColor"- strokeOpacity={0.03}- strokeWidth={1.5}- strokeLinecap="round"- />- <path- d="M52 20a2 2 0 0 0 0 8"- stroke="currentColor"- strokeOpacity={0.04}- strokeWidth={1.5}- strokeLinecap="round"- />- <path- d="M56 18a2 2 0 0 0 0 12"- stroke="currentColor"- strokeOpacity={0.03}- strokeWidth={1.5}- strokeLinecap="round"- />- </svg>- <h3 className="text-xs font-semibold text-foreground/70 dark:text-foreground/60 mb-2">- {t("controlPanel.history.empty")}- </h3>- <div className="flex items-center gap-2 text-xs text-foreground/50 dark:text-foreground/25">- <span>{t("controlPanel.history.press")}</span>- <span dir="ltr" className="inline-flex items-center gap-2">+ <>+ <p className="pt-2 pb-2.5 text-sm text-muted-foreground">+ {t("controlPanel.history.sectionTitle")}+ </p>+ <EmptyStateCard+ icon={Mic}+ title={t("controlPanel.history.empty")}+ description={t("controlPanel.history.emptyDescription")}+ >+ {/* Ghost rows preview the list this card becomes. */}+ <div aria-hidden="true" className="mb-1 w-56 space-y-2">+ {EMPTY_PREVIEW_WIDTHS.map((width) => (+ <span+ key={width}+ className={cn(+ "block h-2 rounded-full bg-foreground/6 dark:bg-white/8",+ width+ )}+ />+ ))}+ </div>+ <span className="inline-flex h-[30px] items-center gap-1.5 rounded-full bg-surface-3 px-3 text-xs font-medium text-foreground/70 dark:bg-surface-3">+ {t("controlPanel.history.press")}+ <span dir="ltr" className="inline-flex items-center gap-1">{parseHotkeyList(hotkey).map((hk, index) => (<Fragment key={hk}>- {index > 0 && <span className="text-foreground/30">/</span>}- <kbd className="inline-flex items-center h-5 px-1.5 rounded-sm bg-surface-1 dark:bg-white/6 border border-border/50 text-xs font-mono font-medium text-foreground/60 dark:text-foreground/40">+ {index > 0 && <span className="text-foreground/45">/</span>}+ <kbd className="rounded-md bg-background px-1.5 py-px font-sans text-[11px] font-medium text-foreground/80 shadow-sm dark:bg-surface-2">{formatHotkeyLabel(hk)}</kbd></Fragment>))}</span>- <span>{t("controlPanel.history.toStart")}</span>- </div>- </div>- </div>+ {t("controlPanel.history.toStart")}+ </span>+ </EmptyStateCard>+ </>) : (<div className="group">{groupedHistory.map((group, index) => (- <div key={group.label} className={index > 0 ? "mt-4" : ""}>- <div className="sticky -top-1 z-10 -mx-4 px-5 pt-2 pb-2 bg-background flex items-center justify-between">- <span className="text-[11px] font-semibold text-muted-foreground dark:text-muted-foreground uppercase tracking-wide">- {group.label}- </span>+ <div key={group.label} className={index > 0 ? "mt-6" : ""}>+ <div className="sticky -top-1 z-10 -mx-4 px-4 pt-2 pb-2.5 bg-background flex items-center justify-between">+ <span className="text-sm text-muted-foreground">{group.label}</span>{index === 0 && (<div className="flex items-center gap-1.5 opacity-0 group-hover:opacity-100 focus-within:opacity-100 transition-opacity duration-200">{discardedToggle}<buttononClick={clearAllTranscriptions}- className="flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] text-muted-foreground/60 hover:!text-destructive hover:!bg-destructive/8 dark:hover:!bg-destructive/10 active:scale-[0.98] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/30 transition-all duration-200"+ className="flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] text-muted-foreground/70 hover:!text-destructive hover:!bg-destructive/8 dark:hover:!bg-destructive/10 active:scale-[0.98] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/30 transition-all duration-200"><Trash2 size={11} /><span>{t("controlPanel.history.clearAll")}</span>@@ -280,7 +207,7 @@ export default function HistoryView({</div>)}</div>- <div className="space-y-1.5 relative z-0">+ <div className="relative z-0 overflow-clip rounded-2xl border border-border/70 bg-card/50 divide-y divide-border/60 dark:border-white/10 dark:bg-surface-2/60">{group.items.map((item) => (<TranscriptionItemkey={item.id}@@ -299,15 +226,13 @@ export default function HistoryView({)}</div>- <div className="w-64 shrink-0 hidden sm:block">- <div className="sticky top-4">- <UpcomingMeetings- events={events}- isLoading={eventsLoading}- isConnected={isConnected}- onConnectCalendar={onOpenIntegrations}- />- </div>+ <div className="hidden w-80 shrink-0 md:block">+ <UpcomingMeetings+ events={events}+ isLoading={eventsLoading}+ isConnected={isConnected}+ onConnectCalendar={onOpenIntegrations}+ /></div></div></div>diff --git a/src/components/InsightsView.tsx b/src/components/InsightsView.tsxindex bae228710..bcef45621 100644--- a/src/components/InsightsView.tsx+++ b/src/components/InsightsView.tsx@@ -199,7 +199,7 @@ function MetricCard({largeValue?: boolean;}) {return (- <div className="rounded-xl border border-border/40 dark:border-white/8 bg-card/70 p-4">+ <div className="rounded-xl border border-border/70 dark:border-white/10 bg-card/70 p-4"><div className="flex items-center gap-2 text-muted-foreground"><Icon size={14} /><span className="text-xs">{label}</span>@@ -340,7 +340,7 @@ function YourUsage({{summary.totalDictations === 0 ? (<div className="rounded-lg border border-border bg-card/50 backdrop-blur-sm dark:bg-card/60"><div className="flex flex-col items-center justify-center px-4 py-16 text-center">- <BarChart3 size={40} className="mb-4 text-foreground/15" aria-hidden="true" />+ <BarChart3 size={40} className="mb-4 text-foreground/45" aria-hidden="true" /><h2 className="text-sm font-medium text-foreground">{t("insights.emptyTitle")}</h2><p className="mt-1.5 max-w-sm text-xs text-muted-foreground">{t("insights.emptyBody")}@@ -379,7 +379,7 @@ function YourUsage({/></div>- <div className="mt-5 rounded-2xl border border-border/50 bg-card/70 px-5 py-2.5 dark:border-white/8">+ <div className="mt-5 rounded-2xl border border-border/70 bg-card/70 px-5 py-2.5 dark:border-white/10"><h2 className="text-base font-medium text-foreground">{t("insights.activity")}</h2><div className="mt-2"><Heatmap daily={summary.daily} />@@ -432,12 +432,8 @@ export default function InsightsView({ onSignIn }: InsightsViewProps) {: t("insights.onDevice");return (- <div className="mx-auto flex min-h-full w-full max-w-5xl flex-col px-6 py-8">- <h1 className="text-base! font-semibold! leading-none! tracking-normal! text-foreground">- {t("insights.title")}- </h1>-- <Tabs value={activeTab} onValueChange={setActiveTab} className="mt-6 flex flex-1 flex-col">+ <div className="mx-auto flex min-h-full w-full max-w-5xl flex-col px-6 py-6">+ <Tabs value={activeTab} onValueChange={setActiveTab} className="flex flex-1 flex-col"><div className="flex min-h-8 items-center justify-between gap-4"><TabsList className="h-7 p-0.5 rounded-[7px]"><TabsTrigger value="usage" className="h-6 px-2.5 text-xs rounded-[5px]">diff --git a/src/components/IntegrationsView.tsx b/src/components/IntegrationsView.tsxindex a26db9b1f..8d46113dd 100644--- a/src/components/IntegrationsView.tsx+++ b/src/components/IntegrationsView.tsx@@ -35,7 +35,7 @@ interface IntegrationsViewProps {function SectionLabel({ children }: { children: React.ReactNode }) {return (- <div className="text-[10px] font-medium uppercase tracking-wider text-muted-foreground/50 mb-2 ps-1">+ <div className="text-[10px] font-medium uppercase tracking-wider text-muted-foreground/70 mb-2 ps-1">{children}</div>);@@ -54,7 +54,7 @@ function ProviderRow({ icon, i18nKey, connected, isConnecting, onConnect }: Provreturn (<SettingsPanelRow><div className="flex items-center gap-3">- <div className="w-9 h-9 rounded-lg bg-white dark:bg-surface-raised shadow-[0_0_0_1px_rgba(0,0,0,0.04)] dark:shadow-none dark:border dark:border-white/5 flex items-center justify-center shrink-0">+ <div className="w-9 h-9 rounded-lg bg-white dark:bg-surface-raised shadow-[0_0_0_1px_rgba(0,0,0,0.04)] dark:shadow-none dark:border dark:border-white/10 flex items-center justify-center shrink-0"><img src={icon} alt="" className="w-5 h-5" /></div><div className="flex-1 min-w-0">@@ -114,7 +114,7 @@ function CalendarAccountRows({{accounts.map((account) => (<SettingsPanelRow key={account.email}><div className="group flex items-center gap-3 ps-12">- <Mail className="h-3.5 w-3.5 text-muted-foreground/50 shrink-0" />+ <Mail className="h-3.5 w-3.5 text-muted-foreground/70 shrink-0" /><span className="text-xs text-muted-foreground truncate flex-1"><bdi dir="ltr">{account.email}</bdi></span>@@ -358,10 +358,7 @@ export default function IntegrationsView({ isPaid, onUpgrade }: IntegrationsViewreturn (<div className="max-w-lg mx-auto w-full px-6 py-6 space-y-5">- <div>- <h2 className="text-base font-semibold text-foreground">{t("integrations.title")}</h2>- <p className="text-xs text-muted-foreground/70 mt-0.5">{t("integrations.description")}</p>- </div>+ <p className="text-xs text-muted-foreground/70">{t("integrations.description")}</p><div><SectionLabel>{t("integrations.sections.calendar")}</SectionLabel>@@ -415,7 +412,7 @@ export default function IntegrationsView({ isPaid, onUpgrade }: IntegrationsView{isMac && appleCalendarConnected && (<SettingsPanelRow><div className="group flex items-center gap-3 ps-12">- <CalendarDays className="h-3.5 w-3.5 text-muted-foreground/50 shrink-0" />+ <CalendarDays className="h-3.5 w-3.5 text-muted-foreground/70 shrink-0" /><span className="text-xs text-muted-foreground truncate flex-1">{appleSourceNames.join(" · ")}</span>@@ -478,13 +475,13 @@ export default function IntegrationsView({ isPaid, onUpgrade }: IntegrationsView</div>{!hasAccounts && (- <div className="rounded-lg border border-border/40 dark:border-border-subtle/40 bg-muted/20 dark:bg-surface-2/30 p-4 flex items-start gap-3">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/60 bg-muted/20 dark:bg-surface-2/30 p-4 flex items-start gap-3"><Info size={15} className="text-primary/60 shrink-0 mt-0.5" /><div className="flex-1 min-w-0"><p className="text-xs font-medium text-foreground/80">{t("integrations.notABot.title")}</p>- <p className="text-xs text-muted-foreground/60 mt-0.5 leading-relaxed">+ <p className="text-xs text-muted-foreground/70 mt-0.5 leading-relaxed">{t("integrations.notABot.description")}</p></div>@@ -498,7 +495,7 @@ export default function IntegrationsView({ isPaid, onUpgrade }: IntegrationsView<DialogDescription asChild><span className="text-xs text-muted-foreground/80 leading-relaxed">{t("apiKeysSection.description")}- <span className="mx-1.5 text-muted-foreground/30">·</span>+ <span className="mx-1.5 text-muted-foreground/70">·</span><buttontype="button"className="inline-flex items-center gap-1 text-primary/80 hover:text-primary transition-colors"diff --git a/src/components/InviteTeammateDialog.tsx b/src/components/InviteTeammateDialog.tsxindex 3c9fe2b62..e8727e66b 100644--- a/src/components/InviteTeammateDialog.tsx+++ b/src/components/InviteTeammateDialog.tsx@@ -171,7 +171,7 @@ export default function InviteTeammateDialog({"outline-none focus-visible:ring-1 focus-visible:ring-primary/30",role === r? "border-primary/40 bg-primary/8"- : "border-border/60 hover:bg-foreground/4"+ : "border-border/70 hover:bg-foreground/4")}><spandiff --git a/src/components/JoinYourTeamModal.tsx b/src/components/JoinYourTeamModal.tsxindex de8de6920..8cf7f8f4d 100644--- a/src/components/JoinYourTeamModal.tsx+++ b/src/components/JoinYourTeamModal.tsx@@ -117,7 +117,7 @@ export default function JoinYourTeamModal({return (<divkey={entry.workspace_id}- className="flex items-center gap-3 rounded-md border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-3 py-2.5"+ className="flex items-center gap-3 rounded-md border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-3 py-2.5"><span className="w-8 h-8 shrink-0 rounded-md bg-primary/10 text-primary text-[11px] font-semibold flex items-center justify-center">{workspaceMonogram(entry.workspace_name)}diff --git a/src/components/LeaderboardEmptyStrip.tsx b/src/components/LeaderboardEmptyStrip.tsxindex e66d6b8aa..5b965a0e7 100644--- a/src/components/LeaderboardEmptyStrip.tsx+++ b/src/components/LeaderboardEmptyStrip.tsx@@ -24,7 +24,7 @@ export default function LeaderboardEmptyStrip({ missingCount }: { missingCount:return (<divdata-leaderboard-state="empty_strip"- className="flex flex-wrap items-center justify-between gap-3 border-b border-border/40 bg-primary/5 px-5 py-3"+ className="flex flex-wrap items-center justify-between gap-3 border-b border-border/70 bg-primary/5 px-5 py-3"><div className="flex min-w-0 items-center gap-3"><div className="flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary">diff --git a/src/components/LeaderboardPreview.tsx b/src/components/LeaderboardPreview.tsxindex 0b4feeef1..5f77eaf47 100644--- a/src/components/LeaderboardPreview.tsx+++ b/src/components/LeaderboardPreview.tsx@@ -44,12 +44,12 @@ export default function LeaderboardPreview({<sectiondata-leaderboard-state={dataState}className={cn(- "relative min-h-96 overflow-hidden rounded-2xl border border-border/50 bg-card/70 dark:border-white/8",+ "relative min-h-96 overflow-hidden rounded-2xl border border-border/70 bg-card/70 dark:border-white/10",className)}><div className="pointer-events-none select-none opacity-35 blur-[1px]" aria-hidden="true">- <div className="flex items-center gap-2 border-b border-border/40 px-5 py-4">+ <div className="flex items-center gap-2 border-b border-border/70 px-5 py-4"><Trophy size={17} className="text-amber-500" /><div className="h-4 w-28 rounded bg-foreground/20" /></div>@@ -59,7 +59,7 @@ export default function LeaderboardPreview({<divkey={rank}className={cn(- "flex flex-col items-center rounded-xl border border-border/40 bg-background/40 px-3 py-4",+ "flex flex-col items-center rounded-xl border border-border/70 bg-background/40 px-3 py-4",rank === 1 && "py-6")}>@@ -72,7 +72,7 @@ export default function LeaderboardPreview({))}</div>- <div className="border-t border-border/40 px-5 py-3">+ <div className="border-t border-border/70 px-5 py-3"><div className="mb-2 grid grid-cols-[3rem_1fr_6rem] gap-3 text-[10px] uppercase tracking-wide text-muted-foreground"><span>{t("insights.leaderboard.rank")}</span><span>{t("insights.leaderboard.member")}</span>@@ -81,7 +81,7 @@ export default function LeaderboardPreview({{PREVIEW_ROWS.map((width, index) => (<divkey={width}- className="grid grid-cols-[3rem_1fr_6rem] items-center gap-3 border-t border-border/30 py-3"+ className="grid grid-cols-[3rem_1fr_6rem] items-center gap-3 border-t border-border/70 py-3"><span className="text-xs tabular-nums text-muted-foreground">{index + 1}</span><div className="flex items-center gap-2.5">@@ -95,7 +95,7 @@ export default function LeaderboardPreview({</div><div className="absolute inset-0 flex items-center justify-center bg-gradient-to-b from-background/20 via-background/60 to-background/90 p-6 backdrop-blur-[2px]">- <div className="w-full max-w-sm rounded-2xl border border-border/60 bg-background/95 p-6 text-center shadow-xl">+ <div className="w-full max-w-sm rounded-2xl border border-border/70 bg-background/95 p-6 text-center shadow-xl"><div className="mx-auto flex size-11 items-center justify-center rounded-full bg-primary/10 text-primary"><Icon size={20} /></div>diff --git a/src/components/LeaderboardSection.tsx b/src/components/LeaderboardSection.tsxindex 1e694835a..75d982bd6 100644--- a/src/components/LeaderboardSection.tsx+++ b/src/components/LeaderboardSection.tsx@@ -105,7 +105,8 @@ interface LeaderboardSectionProps {ssoStarting: boolean;}-const ERROR_CARD_CHROME = "mt-6 rounded-2xl border border-border/50 bg-card/70 dark:border-white/8";+const ERROR_CARD_CHROME =+ "mt-6 rounded-2xl border border-border/70 bg-card/70 dark:border-white/10";function LeaderboardRetryCard({actionLabel,@@ -643,7 +644,7 @@ export default function LeaderboardSection({if (!isSignedIn) return <LeaderboardSignInPreview className="mt-6" onSignIn={onSignIn} />;if (accessLoading && !access) {return (- <section className="mt-6 flex min-h-48 items-center justify-center rounded-2xl border border-border/50 bg-card/70 text-muted-foreground dark:border-white/8">+ <section className="mt-6 flex min-h-48 items-center justify-center rounded-2xl border border-border/70 bg-card/70 text-muted-foreground dark:border-white/10"><Loader2 size={18} className="animate-spin" /></section>);@@ -727,7 +728,7 @@ export default function LeaderboardSection({}if (surface === "participation_loading") {return (- <section className="mt-6 flex min-h-48 items-center justify-center rounded-2xl border border-border/50 bg-card/70 text-muted-foreground dark:border-white/8">+ <section className="mt-6 flex min-h-48 items-center justify-center rounded-2xl border border-border/70 bg-card/70 text-muted-foreground dark:border-white/10"><Loader2 size={18} className="animate-spin" /></section>);@@ -843,9 +844,9 @@ export default function LeaderboardSection({return (<sectiondata-leaderboard-state="board"- className="mt-6 overflow-hidden rounded-2xl border border-border/50 bg-card/70 dark:border-white/8"+ className="mt-6 overflow-hidden rounded-2xl border border-border/70 bg-card/70 dark:border-white/10">- <div className="flex flex-wrap items-center justify-between gap-4 border-b border-border/40 px-5 py-4">+ <div className="flex flex-wrap items-center justify-between gap-4 border-b border-border/70 px-5 py-4"><div className="flex min-w-0 items-center gap-3"><div className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-primary/8 text-primary">{selectedScope.kind === "workspace" ? <Building2 size={16} /> : <Globe2 size={16} />}@@ -897,7 +898,7 @@ export default function LeaderboardSection({setPage(0);}}>- <SelectTrigger className="h-8 w-44 rounded-lg border border-border/40 bg-background/30 px-2.5 text-xs font-medium shadow-none hover:bg-muted/40">+ <SelectTrigger className="h-8 w-44 rounded-lg border border-border/70 bg-background/30 px-2.5 text-xs font-medium shadow-none hover:bg-muted/40"><CalendarDays size={13} className="text-muted-foreground" /><SelectValue>{range === "all"@@ -1047,7 +1048,7 @@ export default function LeaderboardSection({<div className="overflow-x-auto"><table className="w-full min-w-[560px] text-sm"><thead className="bg-muted/10">- <tr className="border-y border-border/40 text-start text-[11px] uppercase tracking-wide text-muted-foreground">+ <tr className="border-y border-border/70 text-start text-[11px] uppercase tracking-wide text-muted-foreground"><th scope="col" className="w-16 px-5 py-2.5 font-medium">{t("insights.leaderboard.rank")}</th>@@ -1065,7 +1066,7 @@ export default function LeaderboardSection({setPage(0);}}>- <SelectTrigger className="ml-auto h-8 w-48 rounded-lg border border-border/40 bg-background/30 px-2.5 text-xs font-medium normal-case tracking-normal shadow-none hover:bg-muted/40">+ <SelectTrigger className="ml-auto h-8 w-48 rounded-lg border border-border/70 bg-background/30 px-2.5 text-xs font-medium normal-case tracking-normal shadow-none hover:bg-muted/40"><ArrowUpDown size={12} className="text-muted-foreground" /><SelectValue /></SelectTrigger>@@ -1088,7 +1089,7 @@ export default function LeaderboardSection({id={`leaderboard-rank-${member.rank}`}key={member.userId}className={cn(- "border-b border-border/30 transition-colors last:border-0 hover:bg-muted/20",+ "border-b border-border/70 transition-colors last:border-0 hover:bg-muted/20",isViewer && "bg-primary/5 hover:bg-primary/7")}>@@ -1142,7 +1143,7 @@ export default function LeaderboardSection({</div>{(showJumpToMe || visibleLeaderboard.totalMembers > pageSize) && (- <div className="flex flex-wrap items-center justify-between gap-3 border-t border-border/40 bg-muted/10 px-5 py-3">+ <div className="flex flex-wrap items-center justify-between gap-3 border-t border-border/70 bg-muted/10 px-5 py-3">{showJumpToMe && (<Tooltipcontent={diff --git a/src/components/LeaderboardSetupCard.tsx b/src/components/LeaderboardSetupCard.tsxindex e84027df0..e2e2315de 100644--- a/src/components/LeaderboardSetupCard.tsx+++ b/src/components/LeaderboardSetupCard.tsx@@ -20,7 +20,7 @@ export default function LeaderboardSetupCard({<sectiondata-leaderboard-state="create"className={cn(- "flex min-h-64 flex-col items-center justify-center rounded-2xl border border-border/50 bg-card/70 px-6 py-10 text-center dark:border-white/8",+ "flex min-h-64 flex-col items-center justify-center rounded-2xl border border-border/70 bg-card/70 px-6 py-10 text-center dark:border-white/10",className)}>diff --git a/src/components/LeaderboardSoloEmptyState.tsx b/src/components/LeaderboardSoloEmptyState.tsxindex dea876488..38035b5cd 100644--- a/src/components/LeaderboardSoloEmptyState.tsx+++ b/src/components/LeaderboardSoloEmptyState.tsx@@ -28,7 +28,7 @@ export default function LeaderboardSoloEmptyState({<div className="relative flex max-w-lg flex-col items-center"><div aria-hidden="true" className="flex items-center">- <div className="flex size-11 items-center justify-center rounded-full border border-dashed border-border/70 bg-muted/30 text-muted-foreground/45">+ <div className="flex size-11 items-center justify-center rounded-full border border-dashed border-border/70 bg-muted/30 text-muted-foreground/70"><UserRound size={18} /></div><div className="w-9 border-t border-dashed border-border/70" />@@ -36,12 +36,12 @@ export default function LeaderboardSoloEmptyState({<UserPlus size={24} /></div><div className="w-9 border-t border-dashed border-border/70" />- <div className="flex size-11 items-center justify-center rounded-full border border-dashed border-border/70 bg-muted/30 text-muted-foreground/45">+ <div className="flex size-11 items-center justify-center rounded-full border border-dashed border-border/70 bg-muted/30 text-muted-foreground/70"><UserRound size={18} /></div></div>- <div className="mt-6 inline-flex items-center gap-1.5 rounded-full border border-border/50 bg-muted/30 px-3 py-1 text-[11px] font-medium text-muted-foreground">+ <div className="mt-6 inline-flex items-center gap-1.5 rounded-full border border-border/70 bg-muted/30 px-3 py-1 text-[11px] font-medium text-muted-foreground"><ScopeIcon size={12} /><span>{scopeName}</span></div>@@ -61,7 +61,7 @@ export default function LeaderboardSoloEmptyState({{t("insights.leaderboard.soloHint")}</p>{pendingInvites.length > 0 && (- <div className="mt-4 flex max-w-full items-start gap-2 rounded-lg border border-border/50 bg-muted/25 px-3 py-2 text-left text-[11px] text-muted-foreground">+ <div className="mt-4 flex max-w-full items-start gap-2 rounded-lg border border-border/70 bg-muted/25 px-3 py-2 text-left text-[11px] text-muted-foreground"><Clock3 size={13} className="mt-0.5 shrink-0" /><p className="min-w-0 break-words">{t("insights.leaderboard.invitedList", { emails: pendingInvites.join(", ") })}diff --git a/src/components/LeaderboardWorkspaceNudge.tsx b/src/components/LeaderboardWorkspaceNudge.tsxindex 7b933f3d7..21cc198dc 100644--- a/src/components/LeaderboardWorkspaceNudge.tsx+++ b/src/components/LeaderboardWorkspaceNudge.tsx@@ -26,7 +26,7 @@ export default function LeaderboardWorkspaceNudge({return (<divdata-leaderboard-state="workspace_nudge"- className="flex flex-wrap items-center justify-between gap-3 border-b border-border/40 bg-primary/5 px-5 py-3"+ className="flex flex-wrap items-center justify-between gap-3 border-b border-border/70 bg-primary/5 px-5 py-3"><div className="flex min-w-0 items-center gap-3"><div className="flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary">diff --git a/src/components/McpIntegrationCard.tsx b/src/components/McpIntegrationCard.tsxindex 9d5ed777e..1a2733a5b 100644--- a/src/components/McpIntegrationCard.tsx+++ b/src/components/McpIntegrationCard.tsx@@ -35,10 +35,10 @@ export default function McpIntegrationCard({ isPaid, onUpgrade }: McpIntegration};return (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 backdrop-blur-sm p-4">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 backdrop-blur-sm p-4"><div className="flex items-center gap-2 mb-4"><LogoTile src={logo} alt="OpenWhispr" />- <Plus className="h-3 w-3 text-muted-foreground/40 shrink-0" />+ <Plus className="h-3 w-3 text-muted-foreground/70 shrink-0" /><div className="flex items-center gap-1"><LogoTile src={claudeIcon} alt="Claude" monochrome /><LogoTile src={openaiIcon} alt="ChatGPT" monochrome />@@ -59,7 +59,7 @@ export default function McpIntegrationCard({ isPaid, onUpgrade }: McpIntegration</p>{isPaid && (- <ol className="space-y-1.5 text-xs text-muted-foreground mb-4 list-decimal ps-4 marker:text-muted-foreground/40">+ <ol className="space-y-1.5 text-xs text-muted-foreground mb-4 list-decimal ps-4 marker:text-muted-foreground/70"><li className="leading-relaxed">{t("integrations.mcp.step1")}{" "}<spandiff --git a/src/components/MeetingNotificationCard.tsx b/src/components/MeetingNotificationCard.tsxindex f9e295dad..b6d1ec1ab 100644--- a/src/components/MeetingNotificationCard.tsx+++ b/src/components/MeetingNotificationCard.tsx@@ -1,4 +1,6 @@import { X } from "./icons";+import { cn } from "./lib/utils";+import { BRAND_GLASS_SURFACE } from "./ui/gradientCircle";interface MeetingNotificationCardProps {title: string;@@ -37,7 +39,7 @@ export function MeetingNotificationCard({className={["relative","bg-card/95 dark:bg-surface-2/95 backdrop-blur-xl",- "border border-border/40 dark:border-border-subtle/40",+ "border border-border/70 dark:border-border-subtle/60","rounded-xl shadow-lg p-2.5",className,].join(" ")}@@ -50,7 +52,7 @@ export function MeetingNotificationCard({className={["absolute -left-2.5 -top-2.5 z-10 size-6 rounded-full","flex items-center justify-center",- "bg-card dark:bg-surface-2 border border-border/40 dark:border-border-subtle/40 shadow-sm",+ "bg-card dark:bg-surface-2 border border-border/70 dark:border-border-subtle/60 shadow-sm","text-muted-foreground/70 hover:text-foreground hover:bg-muted","transition-all duration-150",closeVisible ? "opacity-100 scale-100" : "opacity-0 scale-75 pointer-events-none",@@ -87,7 +89,10 @@ export function MeetingNotificationCard({<buttononClick={onStart}- className="shrink-0 whitespace-nowrap bg-primary text-primary-foreground hover:bg-primary/90 text-[11px] font-medium px-2.5 py-1 rounded-md transition-colors"+ className={cn(+ BRAND_GLASS_SURFACE,+ "shrink-0 whitespace-nowrap rounded-full px-2.5 py-1 text-[11px] font-medium transition-[filter] hover:brightness-110 active:brightness-95"+ )}>{startLabel}</button>diff --git a/src/components/MemberPickList.tsx b/src/components/MemberPickList.tsxindex a015fe6eb..e53de7c34 100644--- a/src/components/MemberPickList.tsx+++ b/src/components/MemberPickList.tsx@@ -37,18 +37,18 @@ export default function MemberPickList({const { t } = useTranslation();const filteredMembers = useMemo(() => filterMemberCandidates(members, search), [members, search]);return (- <div className="rounded border border-border/70 dark:border-border-subtle/50 overflow-hidden">- <div className="relative border-b border-border/40 dark:border-border-subtle/40">+ <div className="rounded border border-border/70 dark:border-border-subtle/60 overflow-hidden">+ <div className="relative border-b border-border/70 dark:border-border-subtle/60"><Searchsize={11}- className="absolute start-2.5 top-1/2 -translate-y-1/2 text-foreground/25 pointer-events-none"+ className="absolute start-2.5 top-1/2 -translate-y-1/2 text-foreground/45 pointer-events-none"/><inputdir="auto"value={search}onChange={(e) => onSearchChange(e.target.value)}placeholder={t("notes.spaces.members.searchPlaceholder")}- className="w-full h-8 ps-7 pe-2 bg-transparent text-xs text-foreground placeholder:text-foreground/25 outline-none"+ className="w-full h-8 ps-7 pe-2 bg-transparent text-xs text-foreground placeholder:text-foreground/45 outline-none"/></div><div className={cn("overflow-y-auto p-1", listClassName ?? "max-h-36")}>@@ -75,7 +75,7 @@ export default function MemberPickList({{member.name || member.email}</span>{member.user_id === currentUserId && (- <span className="text-[10px] text-foreground/40 shrink-0">+ <span className="text-[10px] text-foreground/45 shrink-0">{t("notes.spaces.members.you")}</span>)}@@ -87,7 +87,7 @@ export default function MemberPickList({);})}{filteredMembers.length === 0 && !footer && (- <p className="text-xs text-foreground/25 text-center py-2">+ <p className="text-xs text-foreground/45 text-center py-2">{t("notes.spaces.members.noResults")}</p>)}diff --git a/src/components/ReferralDashboard.tsx b/src/components/ReferralDashboard.tsxindex 1270ff6d4..3e52e0b4e 100644--- a/src/components/ReferralDashboard.tsx+++ b/src/components/ReferralDashboard.tsx@@ -188,7 +188,7 @@ function StatGauge({><AnimatedCounter value={value} delay={delay} /></div>- <div className="text-xs text-foreground/30 mt-1 leading-tight">{label}</div>+ <div className="text-xs text-foreground/45 mt-1 leading-tight">{label}</div></div>);}@@ -320,7 +320,7 @@ export function ReferralDashboard() {if (error || !stats) {return (<div className="flex flex-col items-center justify-center h-85 bg-card text-center px-6">- <p className="text-xs text-foreground/40 mb-3">+ <p className="text-xs text-foreground/45 mb-3">{error || t("referral.errors.unableToLoad")}</p><button@@ -354,19 +354,19 @@ export function ReferralDashboard() {<h2 className="text-xl font-bold tracking-tight leading-tight text-foreground">{t("referral.title")}</h2>- <p className="text-xs text-foreground/30 mt-1">{t("referral.subtitle")}</p>+ <p className="text-xs text-foreground/45 mt-1">{t("referral.subtitle")}</p><Tabs defaultValue="refer" className="mt-4"><TabsList className="w-full justify-start bg-transparent! p-0! h-auto! gap-4 rounded-none! border-b border-foreground/6"><TabsTriggervalue="refer"- className="rounded-none! bg-transparent! shadow-none! px-0! pb-2! pt-0! text-xs border-b-2 border-transparent text-foreground/30 hover:text-foreground/50 data-[state=active]:bg-transparent! data-[state=active]:shadow-none! data-[state=active]:border-foreground/50 data-[state=active]:text-foreground"+ className="rounded-none! bg-transparent! shadow-none! px-0! pb-2! pt-0! text-xs border-b-2 border-transparent text-foreground/45 hover:text-foreground/50 data-[state=active]:bg-transparent! data-[state=active]:shadow-none! data-[state=active]:border-foreground/50 data-[state=active]:text-foreground">{t("referral.tabs.refer")}</TabsTrigger><TabsTriggervalue="history"- className="rounded-none! bg-transparent! shadow-none! px-0! pb-2! pt-0! text-xs border-b-2 border-transparent text-foreground/30 hover:text-foreground/50 data-[state=active]:bg-transparent! data-[state=active]:shadow-none! data-[state=active]:border-foreground/50 data-[state=active]:text-foreground"+ className="rounded-none! bg-transparent! shadow-none! px-0! pb-2! pt-0! text-xs border-b-2 border-transparent text-foreground/45 hover:text-foreground/50 data-[state=active]:bg-transparent! data-[state=active]:shadow-none! data-[state=active]:border-foreground/50 data-[state=active]:text-foreground">{t("referral.tabs.pastInvites")} ({invites.length})</TabsTrigger>@@ -381,17 +381,17 @@ export function ReferralDashboard() {<div className="space-y-1.5"><div className="flex items-center gap-2.5"><div className="w-5 h-5 rounded bg-foreground/4 flex items-center justify-center shrink-0">- <Link className="w-2.5 h-2.5 text-foreground/30" />+ <Link className="w-2.5 h-2.5 text-foreground/45" /></div>- <span className="text-xs text-foreground/40">+ <span className="text-xs text-foreground/45">{t("referral.howItWorks.shareLink")}</span></div><div className="flex items-center gap-2.5"><div className="w-5 h-5 rounded bg-foreground/4 flex items-center justify-center shrink-0">- <UserPlus className="w-2.5 h-2.5 text-foreground/30" />+ <UserPlus className="w-2.5 h-2.5 text-foreground/45" /></div>- <span className="text-xs text-foreground/40">+ <span className="text-xs text-foreground/45">{t("referral.howItWorks.theySignUp")}<strong className="text-foreground/60">{t("referral.howItWorks.freeMonthOfPro")}@@ -400,9 +400,9 @@ export function ReferralDashboard() {</div><div className="flex items-center gap-2.5"><div className="w-5 h-5 rounded bg-foreground/4 flex items-center justify-center shrink-0">- <Gift className="w-2.5 h-2.5 text-foreground/30" />+ <Gift className="w-2.5 h-2.5 text-foreground/45" /></div>- <span className="text-xs text-foreground/40">+ <span className="text-xs text-foreground/45">{t("referral.howItWorks.youGet")}<strong className="text-foreground/60">{t("referral.howItWorks.freeMonth")}@@ -413,12 +413,12 @@ export function ReferralDashboard() {</div><div className="space-y-2">- <h4 className="text-xs font-medium text-foreground/25 uppercase tracking-wider">+ <h4 className="text-xs font-medium text-foreground/45 uppercase tracking-wider">{t("referral.inviteLink.title")}</h4><div className="flex items-center gap-2"><div className="flex-1 flex items-center gap-2 h-8 px-3 rounded-md bg-foreground/4 border border-foreground/7 overflow-hidden">- <Link className="w-3 h-3 text-foreground/20 shrink-0" />+ <Link className="w-3 h-3 text-foreground/45 shrink-0" /><spandir="ltr"className="text-xs text-foreground/50 font-mono truncate select-all"@@ -443,7 +443,7 @@ export function ReferralDashboard() {</div><div className="space-y-2">- <h4 className="text-xs font-medium text-foreground/25 uppercase tracking-wider">+ <h4 className="text-xs font-medium text-foreground/45 uppercase tracking-wider">{t("referral.sendInvites.title")}</h4><div className="flex items-center gap-2">@@ -455,7 +455,7 @@ export function ReferralDashboard() {onChange={(e) => setEmailInput(e.target.value)}onKeyDown={handleKeyDown}disabled={sendingInvite}- className="flex-1 h-8 px-3 text-xs rounded-md bg-foreground/4 border border-foreground/7 text-foreground/70 placeholder:text-foreground/20 focus:outline-none focus:border-foreground/15 focus:ring-1 focus:ring-foreground/10 disabled:opacity-50"+ className="flex-1 h-8 px-3 text-xs rounded-md bg-foreground/4 border border-foreground/7 text-foreground/70 placeholder:text-foreground/45 focus:outline-none focus:border-foreground/15 focus:ring-1 focus:ring-foreground/10 disabled:opacity-50"/><buttononClick={sendInvite}@@ -500,7 +500,7 @@ export function ReferralDashboard() {{/* Friends section — actual signups with word progress */}{stats.referrals.length > 0 && (<div className="mt-5">- <h4 className="text-xs font-medium text-foreground/25 uppercase tracking-wider mb-2">+ <h4 className="text-xs font-medium text-foreground/45 uppercase tracking-wider mb-2">{t("referral.friends.title")}</h4><div className="space-y-1.5">@@ -517,7 +517,7 @@ export function ReferralDashboard() {><div className="flex items-center justify-between mb-1.5"><div className="flex items-center gap-2 min-w-0 flex-1">- <User className="w-3 h-3 text-foreground/20 shrink-0" />+ <User className="w-3 h-3 text-foreground/45 shrink-0" /><span dir="auto" className="text-xs text-foreground/60 truncate">{displayName}</span>@@ -530,7 +530,7 @@ export function ReferralDashboard() {</span></div>) : (- <span className="text-xs text-foreground/30 tabular-nums ms-2 shrink-0">+ <span className="text-xs text-foreground/45 tabular-nums ms-2 shrink-0">{wordsUsed.toLocaleString()} / {REFERRAL_WORD_GOAL.toLocaleString()}</span>)}@@ -554,7 +554,7 @@ export function ReferralDashboard() {{/* Sent Invites section */}{invites.length > 0 ? (<div className="mt-5">- <h4 className="text-xs font-medium text-foreground/25 uppercase tracking-wider mb-2">+ <h4 className="text-xs font-medium text-foreground/45 uppercase tracking-wider mb-2">{t("referral.friends.sentInvites")}</h4><div className="space-y-1">@@ -567,11 +567,11 @@ export function ReferralDashboard() {className="flex items-center justify-between py-1.5 px-2.5 rounded-md bg-foreground/3 border border-foreground/5 hover:border-foreground/8 transition-colors"><div className="flex items-center gap-2 min-w-0 flex-1">- <Mail className="w-3 h-3 text-foreground/20 shrink-0" />+ <Mail className="w-3 h-3 text-foreground/45 shrink-0" /><span dir="ltr" className="text-xs text-foreground/60 truncate">{invite.recipientEmail}</span>- <span className="text-xs text-foreground/15 shrink-0">+ <span className="text-xs text-foreground/45 shrink-0">{formatDate(invite.sentAt)}</span></div>@@ -585,9 +585,9 @@ export function ReferralDashboard() {</div>) : !stats.referrals?.length ? (<div className="flex flex-col items-center justify-center py-12 text-center">- <Mail className="w-5 h-5 text-foreground/10 mb-2" />- <p className="text-xs text-foreground/25">{t("referral.empty.title")}</p>- <p className="text-xs text-foreground/15 mt-0.5">+ <Mail className="w-5 h-5 text-foreground/45 mb-2" />+ <p className="text-xs text-foreground/45">{t("referral.empty.title")}</p>+ <p className="text-xs text-foreground/45 mt-0.5">{t("referral.empty.description")}</p></div>diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsxindex 351e93f46..b0bdd2a02 100644--- a/src/components/SettingsModal.tsx+++ b/src/components/SettingsModal.tsx@@ -181,7 +181,7 @@ export default function SettingsModal({ open, onOpenChange, initialSection }: Se}>{policyManaged && (- <div className="mx-4 mt-4 rounded-md border border-blue-200 bg-blue-50 px-3 py-2 text-sm text-blue-800 dark:border-blue-900 dark:bg-blue-950/40 dark:text-blue-200">+ <div className="mx-4 mt-4 rounded-lg border border-primary/20 bg-primary/8 px-3 py-2 text-sm text-primary dark:border-primary/30 dark:bg-primary/15">{t("settingsModal.managedByOrg")}</div>)}diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsxindex f0abd3647..c718d701a 100644--- a/src/components/SettingsPage.tsx+++ b/src/components/SettingsPage.tsx@@ -205,7 +205,7 @@ function SettingsPanel({}) {return (<div- className={`rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 backdrop-blur-sm divide-y divide-border/30 dark:divide-border-subtle/50 ${className}`}+ className={`rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 backdrop-blur-sm divide-y divide-border/60 dark:divide-border-subtle/50 ${className}`}>{children}</div>@@ -752,7 +752,7 @@ function TranscriptionSection({</div></div>{managed.mode !== "managed_required" && managed.allowManualSetup && (- <div className="flex flex-wrap items-center gap-2 border-t border-border/60 pt-3">+ <div className="flex flex-wrap items-center gap-2 border-t border-border/70 pt-3"><Buttontype="button"variant="ghost"@@ -1122,7 +1122,7 @@ function GpuDeviceSelector({ purpose }: { purpose: "transcription" | "intelligenif (!loaded || gpus.length < 2) return null;return (- <div className="border-t border-border/40 pt-4 mt-4">+ <div className="border-t border-border/70 pt-4 mt-4"><SectionHeadertitle={t(`settingsPage.${purpose}.gpuDevice.title`)}description={t(`settingsPage.${purpose}.gpuDevice.description`)}@@ -2555,7 +2555,7 @@ export default function SettingsPage({!usage?.isTrial &&!isWorkspaceCovered? "border-2 border-primary/30 bg-primary/3 dark:border-primary/20 dark:bg-primary/5"- : "border border-border/50 dark:border-border-subtle/60 bg-card/30 dark:bg-surface-2/30"+ : "border border-border/70 dark:border-border-subtle/60 bg-card/30 dark:bg-surface-2/30")}><p className="text-xs font-semibold text-foreground">@@ -2578,7 +2578,7 @@ export default function SettingsPage({feature.startsWith("## ") ? (<likey={i}- className={`text-[8px] font-semibold uppercase tracking-wide text-muted-foreground/60 ${i > 0 ? "pt-1.5" : ""}`}+ className={`text-[8px] font-semibold uppercase tracking-wide text-muted-foreground/70 ${i > 0 ? "pt-1.5" : ""}`}>{feature.slice(3)}</li>@@ -2804,7 +2804,7 @@ export default function SettingsPage({)}</div>- <div className="rounded-md border border-border/50 dark:border-border-subtle/60 bg-card/30 dark:bg-surface-2/30 p-2.5 flex flex-col">+ <div className="rounded-md border border-border/70 dark:border-border-subtle/60 bg-card/30 dark:bg-surface-2/30 p-2.5 flex flex-col"><p className="text-xs font-semibold text-foreground">{t("settingsPage.account.pricing.enterprise.name")}</p>@@ -2928,7 +2928,7 @@ export default function SettingsPage({</DialogDescription></DialogHeader>{switchPreview && (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/60 overflow-hidden">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/60 overflow-hidden"><div className="flex justify-between items-center px-3 py-2.5 bg-muted/40 dark:bg-surface-2/50"><span className="text-xs text-muted-foreground">{switchPreview.immediateAmount < 0@@ -2949,7 +2949,7 @@ export default function SettingsPage({)}</span></div>- <div className="divide-y divide-border/40">+ <div className="divide-y divide-border/60"><div className="flex justify-between items-center px-3 py-2"><span className="text-xs text-muted-foreground">{t("settingsPage.account.pricing.confirmSwitch.newPrice")}@@ -4097,7 +4097,7 @@ EOF`,maxHotkeys={isUsingNativeShortcut ? 1 : undefined}/></SettingsPanelRow>- <SettingsPanelRow className="flex items-center justify-between gap-3 border-t border-border/40 dark:border-white/5">+ <SettingsPanelRow className="flex items-center justify-between gap-3 border-t border-border/70 dark:border-white/10"><span className="text-xs text-muted-foreground/80">{t("settingsPage.general.meetingHotkey.layoutLabel")}</span>@@ -4316,7 +4316,7 @@ EOF`,</div>{/* Audio Retention */}- <div className="border-t border-border/40 pt-6">+ <div className="border-t border-border/70 pt-6"><SectionHeadertitle={t("settingsPage.privacy.audioRetention")}description={t("settingsPage.privacy.audioRetentionDescription")}@@ -4385,7 +4385,7 @@ EOF`,</div>{/* Data Retention */}- <div className="border-t border-border/40 pt-6">+ <div className="border-t border-border/70 pt-6"><SettingsPanel><SettingsPanelRow><SettingsRow@@ -4441,7 +4441,7 @@ EOF`,</div>{/* Permissions */}- <div className="border-t border-border/40 pt-6">+ <div className="border-t border-border/70 pt-6"><SectionHeadertitle={t("settingsPage.permissions.title")}description={t("settingsPage.permissions.description")}@@ -4720,7 +4720,7 @@ EOF`,</div>{updateInfo?.releaseNotes && (- <div className="mt-4 pt-4 border-t border-border/30">+ <div className="mt-4 pt-4 border-t border-border/70"><p className="text-xs font-medium text-muted-foreground uppercase tracking-wider mb-2"><BidiInterpolatedTexttext={t("settingsPage.general.updates.whatsNew", {@@ -4740,12 +4740,12 @@ EOF`,</div>{/* Developer Tools */}- <div className="border-t border-border/40 pt-6">+ <div className="border-t border-border/70 pt-6"><DeveloperSection /></div>{/* Data Management */}- <div className="border-t border-border/40 pt-6">+ <div className="border-t border-border/70 pt-6"><SectionHeadertitle={t("settingsPage.developer.dataManagementTitle")}description={t("settingsPage.developer.dataManagementDescription")}@@ -4983,7 +4983,7 @@ EOF`,}}toast={toast}/>- <div className="border-t border-border/40 pt-6">+ <div className="border-t border-border/70 pt-6"><SectionHeadertitle={t("settingsPage.prompts.title")}description={t("settingsPage.prompts.description")}diff --git a/src/components/SnippetsView.tsx b/src/components/SnippetsView.tsxindex 168bbdd3e..a1ad16bc3 100644--- a/src/components/SnippetsView.tsx+++ b/src/components/SnippetsView.tsx@@ -188,13 +188,13 @@ export default function SnippetsView() {if (e.key === "Enter") openPanel();}}maxLength={80}- className="w-full h-8 text-xs pe-16 placeholder:text-foreground/20"+ className="w-full h-8 text-xs pe-16 placeholder:text-foreground/45"/><buttononClick={openPanel}disabled={!trimmedTrigger || duplicate}aria-label={t("dictionary.snippets.create")}- className="absolute end-2.5 top-1/2 -translate-y-1/2 flex items-center gap-1 text-xs text-foreground/30 enabled:hover:text-primary disabled:text-foreground/15 transition-colors"+ className="absolute end-2.5 top-1/2 -translate-y-1/2 flex items-center gap-1 text-xs text-foreground/45 enabled:hover:text-primary disabled:text-foreground/45 transition-colors">{t("dictionary.add")}<CornerDownLeft size={10} />@@ -219,14 +219,14 @@ export default function SnippetsView() {}}placeholder={t("dictionary.snippets.replacementPlaceholder")}rows={4}- className="min-h-[72px] resize-none border-0 shadow-none rounded-none bg-transparent p-0 text-xs text-foreground placeholder:text-foreground/20 hover:border-0 focus:border-0 focus:ring-0"+ className="min-h-[72px] resize-none border-0 shadow-none rounded-none bg-transparent p-0 text-xs text-foreground placeholder:text-foreground/45 hover:border-0 focus:border-0 focus:ring-0"/><div className="flex items-center justify-between pt-1.5"><div dir="ltr" className="flex items-center gap-0.5">- <kbd className="text-[10px] px-1 py-px rounded border border-border/30 dark:border-white/8 bg-muted/40 text-muted-foreground/40 font-mono leading-tight">+ <kbd className="text-[10px] px-1 py-px rounded border border-border/70 dark:border-white/10 bg-muted/40 text-muted-foreground/70 font-mono leading-tight">{getCachedPlatform() === "darwin" ? "⌘" : "Ctrl"}</kbd>- <kbd className="text-[10px] px-1 py-px rounded border border-border/30 dark:border-white/8 bg-muted/40 text-muted-foreground/40 font-mono leading-tight">+ <kbd className="text-[10px] px-1 py-px rounded border border-border/70 dark:border-white/10 bg-muted/40 text-muted-foreground/70 font-mono leading-tight">⏎</kbd></div>@@ -243,13 +243,13 @@ export default function SnippetsView() {)}{/* ─── Snippet list ─── */}- <div className="rounded-md border border-foreground/8 dark:border-white/6 bg-foreground/[0.02] dark:bg-white/[0.03] px-4 py-3">+ <div className="rounded-md border border-foreground/8 dark:border-white/10 bg-foreground/[0.02] dark:bg-white/[0.03] px-4 py-3">{snippets.length > 0 && (<>- <h3 className="text-xs font-semibold text-foreground/40">+ <h3 className="text-xs font-semibold text-foreground/45">{t("dictionary.snippets.title")}</h3>- <div className="mt-2.5 border-t border-dashed border-foreground/10 dark:border-white/8" />+ <div className="mt-2.5 border-t border-dashed border-foreground/10 dark:border-white/10" /></>)}@@ -260,7 +260,7 @@ export default function SnippetsView() {{t("dictionary.snippets.emptyTitle")}{" "}<span className="text-primary">{t("dictionary.snippets.emptyTitleAccent")}</span></h4>- <p className="mt-1.5 text-xs text-foreground/30 leading-relaxed">+ <p className="mt-1.5 text-xs text-foreground/45 leading-relaxed">{t("dictionary.snippets.emptyDescription")}</p><Button size="sm" className="mt-4" onClick={() => triggerInputRef.current?.focus()}>@@ -268,15 +268,15 @@ export default function SnippetsView() {{t("dictionary.snippets.new")}</Button></div>- <div className="flex-1 min-w-[260px] rounded-md border border-foreground/8 dark:border-white/6 bg-foreground/[0.02] dark:bg-white/[0.03] px-3.5 py-3 flex flex-col gap-2.5">+ <div className="flex-1 min-w-[260px] rounded-md border border-foreground/8 dark:border-white/10 bg-foreground/[0.02] dark:bg-white/[0.03] px-3.5 py-3 flex flex-col gap-2.5">{EXAMPLE_KEYS.map((key) => (<div key={key} className="flex items-start gap-2"><span className="shrink-0 inline-flex items-center gap-1 rounded-[5px] bg-primary/10 dark:bg-primary/15 border border-primary/15 dark:border-primary/20 px-1.5 py-0.5 text-xs text-primary"><Mic size={9} />{t(`dictionary.snippets.examples.${key}Trigger`)}</span>- <span className="shrink-0 text-xs text-foreground/20 mt-0.5">→</span>- <span className="min-w-0 text-xs text-foreground/40 leading-relaxed">+ <span className="shrink-0 text-xs text-foreground/45 mt-0.5">→</span>+ <span className="min-w-0 text-xs text-foreground/45 leading-relaxed">{t(`dictionary.snippets.examples.${key}Text`)}</span></div>@@ -284,7 +284,7 @@ export default function SnippetsView() {</div></div>) : visibleSnippets.length === 0 ? (- <p className="py-6 text-xs text-foreground/20 text-center">+ <p className="py-6 text-xs text-foreground/45 text-center">{t("dictionary.noMatches", { word: trimmedTrigger })}</p>) : (@@ -292,14 +292,14 @@ export default function SnippetsView() {{visibleSnippets.map((snippet) => (<likey={snippet.trigger}- className="group flex items-center gap-2 h-9 border-b border-foreground/4 dark:border-white/3 last:border-b-0"+ className="group flex items-center gap-2 h-9 border-b border-foreground/4 dark:border-white/10 last:border-b-0"><div className="flex-1 min-w-0 flex items-center gap-2"><span dir="auto" className="text-xs text-foreground/60 shrink-0">{snippet.trigger}</span>- <span className="text-xs text-foreground/20 shrink-0">→</span>- <span dir="auto" className="text-xs text-foreground/35 truncate">+ <span className="text-xs text-foreground/45 shrink-0">→</span>+ <span dir="auto" className="text-xs text-foreground/45 truncate">{snippet.replacement}</span></div>@@ -307,14 +307,14 @@ export default function SnippetsView() {<buttononClick={() => setEditing(snippet)}aria-label={t("dictionary.snippets.edit", { trigger: snippet.trigger })}- className="p-1 text-foreground/25 hover:text-foreground/60 transition-colors"+ className="p-1 text-foreground/45 hover:text-foreground/60 transition-colors"><Pencil size={11} /></button><buttononClick={() => handleRemove(snippet.trigger)}aria-label={t("dictionary.snippets.remove", { trigger: snippet.trigger })}- className="p-1 text-foreground/25 hover:text-destructive/70 transition-colors"+ className="p-1 text-foreground/45 hover:text-destructive/70 transition-colors"><X size={11} strokeWidth={2} /></button>diff --git a/src/components/TeamRosterSection.tsx b/src/components/TeamRosterSection.tsxindex 56b8014ad..6a71f94f5 100644--- a/src/components/TeamRosterSection.tsx+++ b/src/components/TeamRosterSection.tsx@@ -131,7 +131,7 @@ export default function TeamRosterSection({{loading && members.length === 0 ? (<div className="h-24 rounded-lg bg-foreground/5 dark:bg-white/5 animate-pulse" />) : loadFailed && members.length === 0 ? (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-4 py-6 flex items-center justify-between gap-2">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-4 py-6 flex items-center justify-between gap-2"><p className="text-xs text-muted-foreground">{t("settingsPage.workspace.members.loadError")}</p>@@ -140,7 +140,7 @@ export default function TeamRosterSection({</Button></div>) : (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 divide-y divide-border/30 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50 max-h-64 overflow-y-auto">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 divide-y divide-border/60 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50 max-h-64 overflow-y-auto">{members.map((member) => {const isSelf = member.user_id === currentUserId;const isBusy = busyUserIds.has(member.user_id);diff --git a/src/components/TranscriptionModelPicker.tsx b/src/components/TranscriptionModelPicker.tsxindex 225a06ab2..77119e0f1 100644--- a/src/components/TranscriptionModelPicker.tsx+++ b/src/components/TranscriptionModelPicker.tsx@@ -134,14 +134,14 @@ function LocalModelCard({<span className="font-semibold text-sm text-foreground truncate tracking-tight">{name}</span>- <span className="text-xs text-muted-foreground/50 tabular-nums shrink-0">+ <span className="text-xs text-muted-foreground/70 tabular-nums shrink-0">{actualSizeMb ? `${actualSizeMb}MB` : size}</span>{recommended && (<span className={cardStyles.badges.recommended}>{t("common.recommended")}</span>)}{languageLabel && (- <span className="text-xs text-muted-foreground/50 font-medium shrink-0">+ <span className="text-xs text-muted-foreground/70 font-medium shrink-0">{languageLabel}</span>)}@@ -162,7 +162,7 @@ function LocalModelCard({}}size="sm"variant="ghost"- className="h-6 w-6 p-0 text-muted-foreground/40 hover:text-destructive opacity-0 group-hover:opacity-100 transition-[color,opacity,transform] active:scale-95"+ className="h-6 w-6 p-0 text-muted-foreground/70 hover:text-destructive opacity-0 group-hover:opacity-100 transition-[color,opacity,transform] active:scale-95"><Trash2 size={12} /></Button>@@ -346,9 +346,9 @@ interface ModeToggleProps {function ModeToggle({ useLocalWhisper, onModeChange }: ModeToggleProps) {const { t } = useTranslation();return (- <div className="relative flex p-0.5 rounded-lg bg-surface-1/80 backdrop-blur-xl dark:bg-surface-1 border border-border/60 dark:border-white/8 shadow-(--shadow-metallic-light) dark:shadow-(--shadow-metallic-dark)">+ <div className="relative flex p-0.5 rounded-lg bg-surface-1/80 backdrop-blur-xl dark:bg-surface-1 border border-border/70 dark:border-white/10 shadow-(--shadow-metallic-light) dark:shadow-(--shadow-metallic-dark)"><div- className={`absolute top-0.5 bottom-0.5 w-[calc(50%-2px)] rounded-md bg-card border border-border/60 dark:border-border-subtle shadow-(--shadow-metallic-light) dark:shadow-(--shadow-metallic-dark) transition-transform duration-200 ease-out ${+ className={`absolute top-0.5 bottom-0.5 w-[calc(50%-2px)] rounded-md bg-card border border-border/70 dark:border-border-subtle shadow-(--shadow-metallic-light) dark:shadow-(--shadow-metallic-dark) transition-transform duration-200 ease-out ${useLocalWhisper? "translate-x-[calc(100%)] rtl:-translate-x-[calc(100%)]": "translate-x-0"diff --git a/src/components/UpcomingMeetings.tsx b/src/components/UpcomingMeetings.tsxindex 68e13a860..a04b19c63 100644--- a/src/components/UpcomingMeetings.tsx+++ b/src/components/UpcomingMeetings.tsx@@ -4,8 +4,11 @@ import { Calendar, ExternalLink, Loader2, Mic, Monitor, Video } from "./icons";import { Button } from "./ui/button";import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover";import PersonAvatar from "./ui/PersonAvatar";+import EmptyStateCard from "./ui/EmptyStateCard";+import { GRADIENT_CIRCLE } from "./ui/gradientCircle";import { cn } from "./lib/utils";import type { CalendarAttendee, CalendarEvent } from "../types/calendar";+import { parseAttendees } from "../utils/calendarAttendees";import { useSystemAudioPermission } from "../hooks/useSystemAudioPermission";import { canManageSystemAudioInApp } from "../utils/systemAudioAccess";import { getMeetingJoinUrl } from "../helpers/meetingJoinUrl";@@ -26,22 +29,17 @@ const openJoinUrl = (url: string) => {}};-function parseAttendees(event: CalendarEvent): CalendarAttendee[] {- if (!event.attendees) return [];- try {- const parsed = JSON.parse(event.attendees);- return Array.isArray(parsed) ? parsed : [];- } catch {- return [];- }-}-function formatTimeRange(locale: string, startTime: string, endTime: string): string {const format = (value: string) =>new Date(value).toLocaleTimeString(locale, { hour: "numeric", minute: "2-digit" });return `${format(startTime)} – ${format(endTime)}`;}+// Today plus the next days that have events, capped at a working week.+const MAX_DAY_CARDS = 5;+// Avatars shown before the "+N" overflow pill.+const MAX_STACKED_AVATARS = 2;+interface DayGroup {key: string;date: Date;@@ -69,9 +67,12 @@ function groupEventsByDay(events: CalendarEvent[], now: Date): DayGroup[] {if (groups.length > 0 && !groups.some((g) => g.isToday)) {groups.unshift({ key: now.toDateString(), date: now, isToday: true, items: [] });}- return groups;+ return groups.slice(0, MAX_DAY_CARDS);}+const ATTENDEE_COUNT_PILL_CLASS =+ "flex h-[18px] min-w-[18px] items-center justify-center rounded-full bg-surface-3 px-0.5 text-[9px] font-medium tabular-nums text-muted-foreground ring-1 ring-background";+const RSVP_DOT: Record<string, string> = {accepted: "bg-green-500",declined: "bg-red-400",@@ -96,26 +97,26 @@ function AttendeePopover({<PopoverTrigger asChild><buttonaria-label={`${attendees.length} ${t("notes.participants.attendees")}`}- className="flex shrink-0 items-center -space-x-1.5 rounded-full pt-0.5 outline-none transition-opacity hover:opacity-80 focus-visible:ring-1 focus-visible:ring-ring/40"+ className="flex shrink-0 items-center -space-x-1 rounded-full outline-none transition-opacity hover:opacity-80 focus-visible:ring-1 focus-visible:ring-ring/40">- {attendees.slice(0, 3).map((a) => (+ {attendees.slice(0, MAX_STACKED_AVATARS).map((a) => (<PersonAvatarkey={a.email}email={a.email}displayName={a.displayName}- size={16}+ size={18}className="ring-1 ring-background"/>))}- {attendees.length > 3 && (- <span className="flex h-4 min-w-4 items-center justify-center rounded-full bg-muted px-0.5 text-[9px] font-medium text-muted-foreground ring-1 ring-background">- +{attendees.length - 3}+ {attendees.length > MAX_STACKED_AVATARS && (+ <span className={ATTENDEE_COUNT_PILL_CLASS}>+ +{attendees.length - MAX_STACKED_AVATARS}</span>)}</button></PopoverTrigger><PopoverContent align="end" className="w-72 p-0">- <div className="border-b border-border/50 px-3 py-2.5">+ <div className="border-b border-border/70 px-3 py-2.5"><p dir="auto" className="text-xs font-medium leading-snug text-foreground">{event.summary || t("upcoming.untitledEvent")}</p>@@ -129,10 +130,10 @@ function AttendeePopover({<p dir="auto" className="truncate text-xs text-foreground/80">{a.displayName || a.email.split("@")[0]}{a.self && (- <span className="ms-1 text-foreground/30">{t("notes.participants.me")}</span>+ <span className="ms-1 text-foreground/45">{t("notes.participants.me")}</span>)}</p>- <p dir="ltr" className="truncate text-[11px] text-foreground/35">+ <p dir="ltr" className="truncate text-[11px] text-foreground/45">{a.email}</p></div>@@ -146,7 +147,7 @@ function AttendeePopover({))}</div>{joinUrl && (- <div className="border-t border-border/50 p-1">+ <div className="border-t border-border/70 p-1"><buttononClick={() => openJoinUrl(joinUrl)}className="flex w-full cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-xs text-foreground/70 transition-colors hover:bg-foreground/5"@@ -172,125 +173,106 @@ function EventRow({ event, isNow }: { event: CalendarEvent; isNow: boolean }) {window.electronAPI?.joinCalendarMeeting?.(event.id);};- return (- <div- className={cn(- "group/event border-s-2 ps-2.5",- isNow ? "border-green-500/60" : "border-primary/25"- )}+ const joinButton = (+ <Button+ size="sm"+ variant="ghost"+ onClick={startNotes}+ className="pointer-events-auto h-7 shrink-0 gap-1.5 rounded-full bg-surface-3 px-3 text-xs text-foreground hover:bg-surface-raised dark:bg-surface-2 dark:hover:bg-surface-3">- <div className="flex items-start gap-2">- <p- dir="auto"- className="min-w-0 flex-1 text-[13px] font-medium leading-snug text-foreground line-clamp-2"- >+ {joinUrl ? <Video size={12} /> : <Mic size={12} />}+ {joinUrl ? t("upcoming.joinAndTranscribe") : t("upcoming.takeNotes")}+ </Button>+ );++ return (+ <div className="group/event relative flex items-center gap-3 px-1 py-2">+ {attendees.length > 1 ? (+ <AttendeePopover+ event={event}+ attendees={attendees}+ timeRange={timeRange}+ joinUrl={joinUrl}+ />+ ) : event.attendees_count > 1 ? (+ <span className={ATTENDEE_COUNT_PILL_CLASS}>+{event.attendees_count - 1}</span>+ ) : null}+ <div className="min-w-0 flex-1">+ <p dir="auto" className="truncate text-sm font-medium leading-tight text-foreground">{event.summary || t("upcoming.untitledEvent")}</p>- {attendees.length > 1 ? (- <AttendeePopover- event={event}- attendees={attendees}- timeRange={timeRange}- joinUrl={joinUrl}- />- ) : event.attendees_count > 1 ? (- <span className="shrink-0 pt-0.5 text-[11px] tabular-nums text-muted-foreground/70">- +{event.attendees_count - 1}- </span>- ) : null}- </div>- <div className="mt-1 flex items-center justify-between gap-2">{isNow ? (- <span className="flex items-center gap-1.5">+ <span className="mt-1 flex items-center gap-1.5"><span className="relative flex h-1.5 w-1.5"><span className="absolute inline-flex h-full w-full animate-pulse rounded-full bg-green-500 opacity-75" /><span className="relative inline-flex h-1.5 w-1.5 rounded-full bg-green-500" /></span>- <span className="text-[11px] font-medium tabular-nums text-green-600 dark:text-green-400">+ <span className="text-xs font-medium text-green-600 dark:text-green-400">{t("upcoming.now")}</span></span>) : (- <span className="text-[11px] tabular-nums text-muted-foreground">{timeRange}</span>+ <p className="mt-0.5 truncate text-xs tabular-nums text-muted-foreground">{timeRange}</p>)}- <Button- size="sm"- variant={isNow ? "default" : "ghost"}- onClick={startNotes}- className={cn(- "h-6 min-w-0 gap-1 px-2 text-[11px] font-medium",- !isNow &&- "text-muted-foreground opacity-0 transition-opacity duration-150 hover:text-foreground focus-visible:opacity-100 group-hover/event:opacity-100"- )}- >- {joinUrl ? (- <Video size={11} className="shrink-0" />- ) : (- <Mic size={11} className="shrink-0" />- )}- <span className="truncate">- {joinUrl ? t("upcoming.joinAndTakeNotes") : t("upcoming.takeNotes")}- </span>- </Button></div>+ {/* Always shown once the meeting is live; otherwise revealed on hover so you can join early. */}+ {isNow ? (+ joinButton+ ) : (+ <span+ // Overlaid so the row keeps its full width until hovered; the scrim fades the+ // covered end of a long title out instead of slicing it.+ className="pointer-events-none absolute inset-y-0 end-0 flex items-center bg-linear-to-r from-transparent to-background to-[2rem] ps-8 pe-1 opacity-0 transition-opacity duration-150 group-hover/event:opacity-100 has-[:focus-visible]:opacity-100 dark:to-surface-2"+ >+ {joinButton}+ </span>+ )}</div>);}function DayCard({ group, isNowFn }: { group: DayGroup; isNowFn: (e: CalendarEvent) => boolean }) {const { t, i18n } = useTranslation();- const locale = i18n.language;return (- <div className="rounded-lg border border-border/40 bg-card/50 px-3 py-2.5 dark:border-border-subtle/60 dark:bg-surface-2/60">- <div className="flex items-center gap-2 pb-2">- <span className="text-[22px] font-semibold leading-none tabular-nums text-foreground">- {group.date.getDate()}+ <div+ className={cn(+ "rounded-2xl border border-border/70 dark:border-white/10",+ !group.isToday && "overflow-clip"+ )}+ >+ <div+ className={cn(+ "flex items-center gap-1.5 px-2.5 py-2 text-xs font-medium",+ // Today's glass strip sits over the card's hairline on three sides so the blue meets+ // the rounded edge directly instead of being outlined in grey.+ group.isToday+ ? cn(GRADIENT_CIRCLE, "-mx-px -mt-px rounded-t-2xl")+ : "bg-surface-3 text-foreground dark:bg-surface-2"+ )}+ >+ <Calendar size={12} className="shrink-0" />+ <span>+ {group.date.toLocaleDateString(i18n.language, {+ weekday: "short",+ day: "numeric",+ month: "short",+ })}</span>- <div className="flex flex-col justify-center">- <span className="inline-flex items-center gap-1 text-[11px] font-medium leading-tight text-foreground">- {group.date.toLocaleDateString(locale, { month: "long" })}- {group.isToday && <span className="h-1 w-1 rounded-full bg-red-500" />}- </span>- <span className="text-[10px] leading-tight text-muted-foreground">- {group.date.toLocaleDateString(locale, { weekday: "short" })}- </span>- </div></div>- {group.items.length === 0 ? (- <div className="border-s-2 border-border/40 ps-2.5 text-xs text-muted-foreground/60">- {t("upcoming.noEventsToday")}- </div>- ) : (- <div className="space-y-2.5">- {group.items.map((event) => (- <EventRow key={event.id} event={event} isNow={isNowFn(event)} />- ))}- </div>- )}- </div>- );-}--function SidebarCard({- icon: Icon,- title,- description,- children,-}: {- icon: typeof Calendar;- title?: string;- description?: string;- children?: React.ReactNode;-}) {- return (- <div className="flex flex-col items-center rounded-lg border border-border bg-card/50 px-4 py-6 text-center dark:bg-surface-2/60">- <Icon size={20} className="mb-2 text-muted-foreground/40" />- {title && <p className="text-xs font-medium text-foreground/80">{title}</p>}- {description && (- <p className="mt-1 text-xs leading-relaxed text-muted-foreground/60">{description}</p>- )}- {children && <div className="mt-3">{children}</div>}+ <div className="rounded-b-[15px] bg-background px-2 dark:bg-surface-2/60">+ {group.items.length === 0 ? (+ <p className="px-1 py-3 text-xs text-muted-foreground/70">+ {t("upcoming.noEventsToday")}+ </p>+ ) : (+ <div className="divide-y divide-border/60">+ {group.items.map((event) => (+ <EventRow key={event.id} event={event} isNow={isNowFn(event)} />+ ))}+ </div>+ )}+ </div></div>);}@@ -315,14 +297,8 @@ export default function UpcomingMeetings({};return (- <div className="w-64 sticky top-0 self-start max-h-screen overflow-y-auto">- {/* Header */}- <div className="flex items-center gap-1.5 pb-2.5">- <Calendar size={12} className="text-muted-foreground" />- <span className="text-[11px] font-semibold uppercase tracking-wide text-muted-foreground">- {t("upcoming.title")}- </span>- </div>+ <div>+ <p className="pt-2 pb-2.5 text-sm text-muted-foreground">{t("upcoming.title")}</p>{/* Loading state */}{isLoading && (@@ -333,15 +309,20 @@ export default function UpcomingMeetings({{/* Calendar not connected */}{!isLoading && !isConnected && (- <SidebarCard+ <EmptyStateCard+ className="px-4 py-8"icon={Calendar}title={t("upcoming.connectCalendar")}description={t("upcoming.connectCalendarDescription")}>- <Button size="sm" onClick={onConnectCalendar} className="h-7 text-xs">+ <Button+ size="sm"+ onClick={onConnectCalendar}+ className="h-[30px] rounded-full px-3.5 text-xs"+ >{t("upcoming.connectCalendarButton")}</Button>- </SidebarCard>+ </EmptyStateCard>)}{/* Connected, nothing scheduled */}@@ -349,20 +330,25 @@ export default function UpcomingMeetings({isConnected &&events.length === 0 &&(needsSystemAudioGrant ? (- <SidebarCard icon={Monitor} description={t("upcoming.systemAudioRequired")}>+ <EmptyStateCard+ className="px-4 py-8"+ icon={Monitor}+ description={t("upcoming.systemAudioRequired")}+ ><Buttonsize="sm"variant="outline"onClick={() => systemAudio.request()}- className="h-7 text-xs"+ className="h-[30px] rounded-full px-3.5 text-xs">{systemAudio.mode === "native"? t("upcoming.openSettings"): t("onboarding.permissions.grantAccess")}</Button>- </SidebarCard>+ </EmptyStateCard>) : (- <SidebarCard+ <EmptyStateCard+ className="px-4 py-8"icon={Calendar}title={t("upcoming.noUpcomingEvents")}description={t("upcoming.moreCalendarsHint")}@@ -373,12 +359,12 @@ export default function UpcomingMeetings({>{t("upcoming.connectHere")}</button>- </SidebarCard>+ </EmptyStateCard>))}{/* Day cards */}{!isLoading && isConnected && groupedEvents.length > 0 && (- <div className="space-y-2">+ <div className="space-y-2.5">{groupedEvents.map((group) => (<DayCard key={group.key} group={group} isNowFn={isNowFn} />))}diff --git a/src/components/UpgradePrompt.tsx b/src/components/UpgradePrompt.tsxindex 2530a1049..3069588d6 100644--- a/src/components/UpgradePrompt.tsx+++ b/src/components/UpgradePrompt.tsx@@ -92,7 +92,7 @@ export default function UpgradePrompt({/></div>- <p className="text-xs text-muted-foreground/60 text-center">+ <p className="text-xs text-muted-foreground/70 text-center">{t("upgradePrompt.rollingWeeklyLimit")}</p></DialogContent>@@ -127,7 +127,7 @@ function OptionCard({<div className="font-medium text-foreground">{title}</div><div className="text-sm text-muted-foreground">{description}</div></div>- <ChevronRight className="h-4 w-4 text-muted-foreground/60 shrink-0 rtl:rotate-180" />+ <ChevronRight className="h-4 w-4 text-muted-foreground/70 shrink-0 rtl:rotate-180" /></button>);}diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsxindex f9a3c26e5..88f72bfbd 100644--- a/src/components/chat/ChatInput.tsx+++ b/src/components/chat/ChatInput.tsx@@ -163,7 +163,7 @@ export function ChatInput({title={t("common.cancel")}className={cn("flex items-center justify-center w-7 h-7 rounded-full shrink-0",- "text-muted-foreground/60 hover:text-foreground hover:bg-foreground/8",+ "text-muted-foreground/70 hover:text-foreground hover:bg-foreground/8","focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30","transition-colors duration-100")}@@ -211,9 +211,9 @@ export function ChatInput({placeholder={placeholder ?? t("agentMode.input.typeMessage")}className={cn("input-inline flex-1 outline-none bg-transparent caret-primary",- "text-[13px] text-foreground placeholder:text-muted-foreground/40",+ "text-[13px] text-foreground placeholder:text-muted-foreground/70","min-w-0 p-0",- isBusy && "text-muted-foreground/30 cursor-not-allowed"+ isBusy && "text-muted-foreground/70 cursor-not-allowed")}/>{isBusy && onCancel ? (@@ -224,7 +224,7 @@ export function ChatInput({title={t("common.cancel")}className={cn("flex items-center justify-center w-7 h-7 rounded-full shrink-0",- "text-muted-foreground/60 hover:text-foreground hover:bg-foreground/8",+ "text-muted-foreground/70 hover:text-foreground hover:bg-foreground/8","focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30","transition-colors duration-100")}diff --git a/src/components/chat/ChatMessage.tsx b/src/components/chat/ChatMessage.tsxindex 23c5caaac..9378cd31f 100644--- a/src/components/chat/ChatMessage.tsx+++ b/src/components/chat/ChatMessage.tsx@@ -58,7 +58,7 @@ function ToolCallStep({ toolCall }: { toolCall: ToolCallInfo }) {className={cn("shrink-0 transition-colors duration-300",isExecuting && "text-primary/70",- isCompleted && !isError && !isClipboard && "text-muted-foreground/50",+ isCompleted && !isError && !isClipboard && "text-muted-foreground/70",isClipboard && "text-emerald-500/70",isError && "text-destructive/60")}@@ -96,7 +96,7 @@ function ToolCallStep({ toolCall }: { toolCall: ToolCallInfo }) {<ChevronDownsize={10}className={cn(- "ms-auto text-muted-foreground/40 shrink-0 transition-transform duration-200",+ "ms-auto text-muted-foreground/70 shrink-0 transition-transform duration-200",expanded && "rotate-180")}/>@@ -110,7 +110,7 @@ function ToolCallStep({ toolCall }: { toolCall: ToolCallInfo }) {><predir="ltr"- className="text-[10px] text-muted-foreground/60 px-2.5 pb-1.5 whitespace-pre-wrap leading-tight"+ className="text-[10px] text-muted-foreground/70 px-2.5 pb-1.5 whitespace-pre-wrap leading-tight">{toolCall.result}</pre>@@ -152,11 +152,11 @@ function NoteCard({<p dir="auto" className="text-[12px] font-medium text-foreground truncate">{title}</p>- <p className="text-[10px] text-muted-foreground/50">{t("agentMode.tools.openNote")}</p>+ <p className="text-[10px] text-muted-foreground/70">{t("agentMode.tools.openNote")}</p></div><ChevronRightsize={12}- className="text-muted-foreground/30 group-hover/note:text-primary/50 shrink-0 transition-colors duration-150 rtl:rotate-180"+ className="text-muted-foreground/70 group-hover/note:text-primary/50 shrink-0 transition-colors duration-150 rtl:rotate-180"/></button>);@@ -215,14 +215,14 @@ export function ChatMessage({data-chat-bubbleclassName={cn("max-w-[85%] px-3 py-2 rounded-lg rounded-es-sm",- "bg-surface-1 border border-border/30 text-foreground",+ "bg-surface-1 border border-border/70 text-foreground","text-[13px] leading-relaxed")}>{hasToolCalls && (<divclassName={cn(- (hasContent || noteCards.length > 0) && "mb-2 pb-1.5 border-b border-border/15"+ (hasContent || noteCards.length > 0) && "mb-2 pb-1.5 border-b border-border/70")}>{toolCalls.map((tc) => (@@ -270,7 +270,7 @@ export function ChatMessage({onClick={handleCopy}className={cn("p-1 rounded-sm",- "text-muted-foreground/40 hover:text-foreground hover:bg-foreground/8",+ "text-muted-foreground/70 hover:text-foreground hover:bg-foreground/8","opacity-0 group-hover/msg:opacity-100 transition-all duration-150","focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30")}diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsxindex 330ddadc3..b35acff5c 100644--- a/src/components/chat/ChatView.tsx+++ b/src/components/chat/ChatView.tsx@@ -21,7 +21,7 @@ function NewChatEmptyState() {return (<div className="flex flex-col items-center justify-center h-full -mt-6 select-none"><ChatEmptyIllustration />- <p className="text-xs text-foreground/50 dark:text-foreground/25 text-center max-w-48 mt-4">+ <p className="text-xs text-foreground/50 dark:text-foreground/45 text-center max-w-48 mt-4">{t("chat.newChatEmpty")}</p></div>@@ -149,7 +149,7 @@ export default function ChatView() {</Suspense>)}<div className="flex h-full">- <div className="w-56 min-w-50 shrink-0 border-e border-border/15 dark:border-white/6">+ <div className="w-56 min-w-50 shrink-0 border-e border-border dark:border-white/10"><ConversationListactiveConversationId={activeConversationId}onSelectConversation={handleSelectConversation}diff --git a/src/components/chat/ConversationDateGroup.tsx b/src/components/chat/ConversationDateGroup.tsxindex b73c720dc..2bc1169cf 100644--- a/src/components/chat/ConversationDateGroup.tsx+++ b/src/components/chat/ConversationDateGroup.tsx@@ -9,7 +9,7 @@ export default function ConversationDateGroup({ label }: ConversationDateGroupPr<divclassName={cn("px-3 pt-3 pb-1",- "text-[10px] font-semibold text-muted-foreground/40 uppercase tracking-wider",+ "text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider","select-none")}>diff --git a/src/components/chat/ConversationItem.tsx b/src/components/chat/ConversationItem.tsxindex 4d4565255..e4f535b1b 100644--- a/src/components/chat/ConversationItem.tsx+++ b/src/components/chat/ConversationItem.tsx@@ -76,7 +76,7 @@ export default function ConversationItem({{conversation.title}</p><div className="flex items-center gap-0.5 shrink-0">- <span className="text-[10px] text-muted-foreground/40 tabular-nums group-hover:opacity-0 transition-opacity">+ <span className="text-[10px] text-muted-foreground/70 tabular-nums group-hover:opacity-0 transition-opacity">{formatTimestamp(conversation.updated_at, locale)}</span><DropdownMenu>@@ -85,7 +85,7 @@ export default function ConversationItem({size="icon"variant="ghost"onClick={(e) => e.stopPropagation()}- className="h-5 w-5 rounded-sm opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity absolute end-2 text-muted-foreground/60 dark:text-muted-foreground/40 hover:text-foreground/60 hover:bg-foreground/5 active:bg-foreground/8"+ className="h-5 w-5 rounded-sm opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity absolute end-2 text-muted-foreground/70 dark:text-muted-foreground/70 hover:text-foreground/60 hover:bg-foreground/5 active:bg-foreground/8"><MoreHorizontal size={12} /></Button>@@ -126,7 +126,7 @@ export default function ConversationItem({</div></div>{conversation.preview && (- <p dir="auto" className="text-[11px] text-muted-foreground/50 line-clamp-1 mt-0.5">+ <p dir="auto" className="text-[11px] text-muted-foreground/70 line-clamp-1 mt-0.5">{conversation.preview}</p>)}diff --git a/src/components/chat/EmptyChatState.tsx b/src/components/chat/EmptyChatState.tsxindex 67602447c..1df55726c 100644--- a/src/components/chat/EmptyChatState.tsx+++ b/src/components/chat/EmptyChatState.tsx@@ -7,7 +7,7 @@ export default function EmptyChatState() {return (<div className="flex flex-col items-center justify-center h-full -mt-6 select-none"><ChatEmptyIllustration />- <p className="text-xs text-muted-foreground/40 mt-4">{t("chat.selectChat")}</p>+ <p className="text-xs text-muted-foreground/70 mt-4">{t("chat.selectChat")}</p></div>);}diff --git a/src/components/chat/EmptyConversationList.tsx b/src/components/chat/EmptyConversationList.tsxindex 0bbb7fc75..715d0cb38 100644--- a/src/components/chat/EmptyConversationList.tsx+++ b/src/components/chat/EmptyConversationList.tsx@@ -11,7 +11,7 @@ export default function EmptyConversationList({ onNewChat }: EmptyConversationLireturn (<div className="flex flex-col items-center justify-center h-full gap-2 px-4 select-none">- <p className="text-xs text-muted-foreground/40 text-center">{t("chat.noConversations")}</p>+ <p className="text-xs text-muted-foreground/70 text-center">{t("chat.noConversations")}</p><buttononClick={onNewChat}className={cn(diff --git a/src/components/controlPanelNav.ts b/src/components/controlPanelNav.tsnew file mode 100644index 000000000..f8af82102--- /dev/null+++ b/src/components/controlPanelNav.ts@@ -0,0 +1,39 @@+import type React from "react";+import { useTranslation } from "react-i18next";+import { Home, BarChart3, MessageSquare, NotebookPen, BookOpen, Upload, Blocks } from "./icons";+import { isAgentAllowed, isPolicyActionAllowed } from "../stores/policyRules";+import { usePolicyStore } from "../stores/policyStore";++export type ControlPanelView =+ "home" | "insights" | "chat" | "personal-notes" | "dictionary" | "upload" | "integrations";++export interface ControlPanelNavItem {+ id: ControlPanelView;+ label: string;+ icon: React.ComponentType<{ size?: number; className?: string }>;+}++/**+ * Single source of truth for main-window navigation. The sidebar renders these+ * rows and the top bar shows the active item's label as the page title, so the+ * two can never disagree.+ */+export function useControlPanelNavItems(): ControlPanelNavItem[] {+ const { t } = useTranslation();+ const agentAllowed = usePolicyStore(isAgentAllowed);+ const policyActionsAllowed = usePolicyStore((state) => isPolicyActionAllowed(state));++ return [+ { id: "home", label: t("sidebar.home"), icon: Home },+ { id: "insights", label: t("sidebar.insights"), icon: BarChart3 },+ ...(agentAllowed+ ? [{ id: "chat" as const, label: t("sidebar.chat"), icon: MessageSquare }]+ : []),+ { id: "personal-notes", label: t("sidebar.notes"), icon: NotebookPen },+ ...(policyActionsAllowed+ ? [{ id: "upload" as const, label: t("sidebar.upload"), icon: Upload }]+ : []),+ { id: "dictionary", label: t("sidebar.dictionary"), icon: BookOpen },+ { id: "integrations", label: t("sidebar.integrations"), icon: Blocks },+ ];+}diff --git a/src/components/notes/ActionManagerDialog.tsx b/src/components/notes/ActionManagerDialog.tsxindex e23e66361..8d6c1f487 100644--- a/src/components/notes/ActionManagerDialog.tsx+++ b/src/components/notes/ActionManagerDialog.tsx@@ -117,7 +117,7 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManage<div className="flex h-120">{/* Left panel — action list */}- <div className="w-56 shrink-0 border-e border-border/15 dark:border-white/4 flex flex-col bg-card/50 dark:bg-surface-1/30">+ <div className="w-56 shrink-0 border-e border-border dark:border-white/10 flex flex-col bg-card/50 dark:bg-surface-1/30">{/* List header */}<div className="flex items-center justify-between px-3 pt-3.5 pb-2"><span className="text-xs font-semibold tracking-tight text-foreground/70">@@ -127,7 +127,7 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManageonClick={handleNewAction}className={cn("p-1 rounded-md",- "text-muted-foreground/50 hover:text-foreground/70",+ "text-muted-foreground/70 hover:text-foreground/70","hover:bg-foreground/5 dark:hover:bg-white/6","active:bg-foreground/8 dark:active:bg-white/8","transition-colors duration-150"@@ -142,8 +142,8 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManage<div className="flex-1 overflow-y-auto px-1.5 pb-2">{actions.length === 0 && !isCreating ? (<div className="flex flex-col items-center justify-center h-full px-4 text-center">- <Zap size={20} className="text-muted-foreground/20 mb-2" />- <p className="text-xs text-muted-foreground/40 leading-relaxed">+ <Zap size={20} className="text-muted-foreground/70 mb-2" />+ <p className="text-xs text-muted-foreground/70 leading-relaxed">{t("notes.actions.noActions")}</p><button@@ -173,7 +173,7 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManage"shrink-0 transition-colors duration-150",selectedId === action.id && !isCreating? "text-accent/60"- : "text-muted-foreground/30"+ : "text-muted-foreground/70")}/><div className="flex-1 min-w-0">@@ -189,7 +189,7 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManage{getActionName(action, t)}</span>{action.is_builtin === 1 && (- <span className="text-[10px] font-medium px-1 py-px rounded bg-foreground/5 dark:bg-white/6 text-muted-foreground/40 shrink-0">+ <span className="text-[10px] font-medium px-1 py-px rounded bg-foreground/5 dark:bg-white/6 text-muted-foreground/70 shrink-0">{t("notes.actions.builtIn")}</span>)}@@ -204,7 +204,7 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManagearia-label={t("notes.context.delete")}className={cn("p-1 rounded-md shrink-0",- "text-muted-foreground/0 group-hover:text-muted-foreground/30",+ "text-muted-foreground/0 group-hover:text-muted-foreground/70","hover:text-destructive/60! hover:bg-destructive/5","active:bg-destructive/8","transition-all duration-150"@@ -225,8 +225,8 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManage{showEditor ? (<>{/* Editor header — pe-12 clears the dialog close X button */}- <div className="flex items-center justify-between ps-5 pe-12 pt-4 pb-3 border-b border-border/10 dark:border-white/3">- <span className="text-xs font-medium text-muted-foreground/50">+ <div className="flex items-center justify-between ps-5 pe-12 pt-4 pb-3 border-b border-border/70 dark:border-white/10">+ <span className="text-xs font-medium text-muted-foreground/70">{isCreating ? t("notes.actions.addAction") : t("notes.actions.editAction")}</span><div className="flex items-center gap-2">@@ -296,10 +296,10 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManagedisabled={isSaving}className={cn("flex-1 min-h-50 w-full rounded border border-border/70 bg-input px-3.5 py-3 text-sm text-foreground leading-relaxed transition-colors duration-200 outline-none resize-none",- "placeholder:text-muted-foreground/40",+ "placeholder:text-muted-foreground/70","hover:border-border-hover","focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary/10",- "dark:bg-surface-1 dark:border-border-subtle/50",+ "dark:bg-surface-1 dark:border-border-subtle/60","dark:focus-visible:border-border-active dark:focus-visible:ring-ring/10","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-muted","font-mono text-[13px]"@@ -314,10 +314,10 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManage<div className="w-10 h-10 rounded-xl bg-accent/5 dark:bg-accent/8 flex items-center justify-center mb-3"><Sparkles size={18} className="text-accent/30" /></div>- <p className="text-sm font-medium text-foreground/40 mb-1">+ <p className="text-sm font-medium text-foreground/45 mb-1">{t("notes.actions.emptyEditorTitle", { defaultValue: "Select an action" })}</p>- <p className="text-xs text-muted-foreground/30 mb-4 max-w-52 leading-relaxed">+ <p className="text-xs text-muted-foreground/70 mb-4 max-w-52 leading-relaxed">{t("notes.actions.emptyEditorDescription", {defaultValue: "Choose an action from the list or create a new one",})}diff --git a/src/components/notes/ActionPicker.tsx b/src/components/notes/ActionPicker.tsxindex 893d9d1be..bda347add 100644--- a/src/components/notes/ActionPicker.tsx+++ b/src/components/notes/ActionPicker.tsx@@ -13,9 +13,15 @@ import {useActions,initializeActions,getActionName,+ getActionCta,getActionDescription,} from "../../stores/actionStore";import type { ActionItem } from "../../types/electron";+import { FOLLOW_UP_EMAIL_KEY } from "../../helpers/builtinActions";++// Keyed fresh so the follow-up email default reaches installs that had+// "Generate Notes" remembered under the old key.+const ASK_BAR_ACTION_KEY = "askBarActionId";interface ActionPickerProps {onRunAction: (action: ActionItem) => void;@@ -31,7 +37,7 @@ export default function ActionPicker({const { t } = useTranslation();const actions = useActions();const [lastUsedId, setLastUsedId] = useState<number | null>(() => {- const stored = localStorage.getItem("lastUsedActionId");+ const stored = localStorage.getItem(ASK_BAR_ACTION_KEY);return stored ? Number(stored) : null;});@@ -39,11 +45,15 @@ export default function ActionPicker({initializeActions();}, []);- const activeAction = actions.find((a) => a.id === lastUsedId) ?? actions[0] ?? null;+ const activeAction =+ actions.find((a) => a.id === lastUsedId) ??+ actions.find((a) => a.translation_key === FOLLOW_UP_EMAIL_KEY) ??+ actions[0] ??+ null;const handleRun = (action: ActionItem) => {setLastUsedId(action.id);- localStorage.setItem("lastUsedActionId", String(action.id));+ localStorage.setItem(ASK_BAR_ACTION_KEY, String(action.id));onRunAction(action);};@@ -74,7 +84,7 @@ export default function ActionPicker({><Sparkles size={11} /><span className="text-[11px] font-semibold tracking-tight">- {getActionName(activeAction, t)}+ {getActionCta(activeAction, t)}</span></button>@@ -85,7 +95,7 @@ export default function ActionPicker({aria-label={t("notes.actions.selectAction")}className={cn("flex items-center justify-center h-7 w-6 pe-0.5",- "border-s border-black/6 dark:border-white/8",+ "border-s border-black/6 dark:border-white/10","text-accent/40 dark:text-accent/30","transition-colors duration-150","hover:bg-accent/8 dark:hover:bg-accent/12",@@ -109,7 +119,7 @@ export default function ActionPicker({<div className="flex-1 min-w-0"><div className="font-medium truncate">{getActionName(action, t)}</div>{action.description && (- <div className="text-xs text-muted-foreground/50 truncate">+ <div className="text-xs text-muted-foreground/70 truncate">{getActionDescription(action, t)}</div>)}@@ -119,7 +129,7 @@ export default function ActionPicker({<DropdownMenuSeparator /><DropdownMenuItemonClick={onManageActions}- className="text-xs gap-2.5 rounded-md px-2.5 py-1.5 text-muted-foreground/60"+ className="text-xs gap-2.5 rounded-md px-2.5 py-1.5 text-muted-foreground/70"><Settings2 size={12} />{t("notes.actions.manage")}diff --git a/src/components/notes/AddNotesToFolderDialog.tsx b/src/components/notes/AddNotesToFolderDialog.tsxindex 2640e5eba..43e67e6ac 100644--- a/src/components/notes/AddNotesToFolderDialog.tsx+++ b/src/components/notes/AddNotesToFolderDialog.tsx@@ -102,14 +102,14 @@ export default function AddNotesToFolderDialog({<div className="relative"><Searchsize={13}- className="absolute start-2.5 top-1/2 -translate-y-1/2 text-foreground/20"+ className="absolute start-2.5 top-1/2 -translate-y-1/2 text-foreground/45"/><inputdir="auto"placeholder={t("notes.addToFolder.searchPlaceholder")}value={search}onChange={(e) => setSearch(e.target.value)}- className="w-full h-8 rounded-md bg-foreground/[0.03] dark:bg-white/[0.04] border border-foreground/8 dark:border-white/8 ps-8 pe-3 text-xs text-foreground placeholder:text-foreground/20 outline-none focus:border-primary/30 transition-colors"+ className="w-full h-8 rounded-md bg-foreground/[0.03] dark:bg-white/[0.04] border border-foreground/8 dark:border-white/10 ps-8 pe-3 text-xs text-foreground placeholder:text-foreground/45 outline-none focus:border-primary/30 transition-colors"autoFocus/></div>@@ -118,7 +118,7 @@ export default function AddNotesToFolderDialog({<div className="max-h-80 overflow-y-auto px-2 pb-2">{grouped.length === 0 ? (<div className="flex items-center justify-center py-10">- <p className="text-xs text-foreground/20">+ <p className="text-xs text-foreground/45">{search? t("notes.addToFolder.noResults"): t("notes.addToFolder.noNotesAvailable")}@@ -127,7 +127,7 @@ export default function AddNotesToFolderDialog({) : (grouped.map(([dateLabel, notes]) => (<div key={dateLabel}>- <p className="text-xs font-medium text-foreground/30 px-2 pt-3 pb-1.5">+ <p className="text-xs font-medium text-foreground/45 px-2 pt-3 pb-1.5">{dateLabel}</p>{notes.map((note) => {@@ -142,8 +142,8 @@ export default function AddNotesToFolderDialog({isSelected && "bg-primary/5 dark:bg-primary/8")}>- <div className="w-7 h-7 rounded-md bg-foreground/[0.03] dark:bg-white/[0.04] border border-foreground/6 dark:border-white/6 flex items-center justify-center shrink-0">- <FileText size={12} className="text-foreground/20" />+ <div className="w-7 h-7 rounded-md bg-foreground/[0.03] dark:bg-white/[0.04] border border-foreground/6 dark:border-white/10 flex items-center justify-center shrink-0">+ <FileText size={12} className="text-foreground/45" /></div><div className="flex-1 min-w-0 text-start"><p className="text-xs text-foreground/80 truncate">@@ -168,7 +168,7 @@ export default function AddNotesToFolderDialog({)}</div>- <div className="px-4 py-3 border-t border-border/30 dark:border-white/5 flex justify-end">+ <div className="px-4 py-3 border-t border-border/70 dark:border-white/10 flex justify-end"><Buttonvariant="default"size="sm"diff --git a/src/components/notes/BatchQueueView.tsx b/src/components/notes/BatchQueueView.tsxindex cb1243b0e..d04918d47 100644--- a/src/components/notes/BatchQueueView.tsx+++ b/src/components/notes/BatchQueueView.tsx@@ -25,7 +25,7 @@ function StatusIcon({ status }: { status: QueueItem["status"] }) {case "error":return <X size={12} className="text-destructive/70" />;case "queued":- return <Clock size={12} className="text-foreground/20" />;+ return <Clock size={12} className="text-foreground/45" />;default:return <Loader2 size={12} className="text-primary/60 animate-spin" />;}@@ -95,7 +95,7 @@ export default function BatchQueueView({variant="ghost"size="sm"onClick={onClearQueue}- className="h-6 text-[10px] text-foreground/30"+ className="h-6 text-[10px] text-foreground/45">{t("notes.upload.clearQueue")}</Button>@@ -115,7 +115,7 @@ export default function BatchQueueView({key={item.id}className={cn("flex items-center gap-2 px-2.5 py-1.5 rounded-md text-xs",- "bg-surface-1/30 dark:bg-white/[0.02] border border-foreground/4 dark:border-white/4",+ "bg-surface-1/30 dark:bg-white/[0.02] border border-foreground/4 dark:border-white/10",item.status === "error" && "border-destructive/15")}>@@ -171,7 +171,7 @@ export default function BatchQueueView({{item.status === "queued" && (<buttononClick={() => onRemoveItem(item.id)}- className="text-foreground/15 hover:text-foreground/40 transition-colors"+ className="text-foreground/45 transition-colors"aria-label={t("notes.upload.removeFromQueue")}><Trash2 size={10} />@@ -187,7 +187,7 @@ export default function BatchQueueView({variant="ghost"size="sm"onClick={onCancelAll}- className="h-7 text-xs text-foreground/30"+ className="h-7 text-xs text-foreground/45">{t("notes.upload.cancelAll")}</Button>diff --git a/src/components/notes/ConversationPicker.tsx b/src/components/notes/ConversationPicker.tsxindex 3c09c35cf..68ecd89a0 100644--- a/src/components/notes/ConversationPicker.tsx+++ b/src/components/notes/ConversationPicker.tsx@@ -41,12 +41,12 @@ export function ConversationPicker({<span className={cn("truncate max-w-40", titleClassName)}>{activeConversation?.title || t("embeddedChat.newChat")}</span>- <ChevronDown size={10} className="shrink-0 text-foreground/30" />+ <ChevronDown size={10} className="shrink-0 text-foreground/45" /></button></DropdownMenuTrigger><DropdownMenuContent align="start" sideOffset={4} className="min-w-44 max-w-56 p-1"><DropdownMenuItem onClick={onNewChat} className="text-xs gap-2 rounded-md px-2 py-1.5">- <Plus size={10} className="text-foreground/40 shrink-0" />+ <Plus size={10} className="text-foreground/45 shrink-0" />{t("embeddedChat.newChat")}</DropdownMenuItem>{conversations.length > 0 && (@@ -62,7 +62,7 @@ export function ConversationPicker({)}><span className="truncate flex-1">{conversation.title}</span>- <span className="text-[10px] text-foreground/30 shrink-0">+ <span className="text-[10px] text-foreground/45 shrink-0">{formatShortDate(conversation.updated_at, locale)}</span></DropdownMenuItem>diff --git a/src/components/notes/CreateSpaceDialog.tsx b/src/components/notes/CreateSpaceDialog.tsxindex 18d0e4f7c..79f4921d9 100644--- a/src/components/notes/CreateSpaceDialog.tsx+++ b/src/components/notes/CreateSpaceDialog.tsx@@ -272,7 +272,7 @@ export default function CreateSpaceDialog({</DialogHeader>{workspacesFailed ? (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-4 py-6 flex items-center justify-between gap-3">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-4 py-6 flex items-center justify-between gap-3"><div className="min-w-0"><p className="text-xs font-medium text-foreground">{t("settingsPage.workspace.loadError.title")}@@ -375,7 +375,7 @@ export default function CreateSpaceDialog({{t("notes.spaces.teams.assignLabel")}</p>{teamsError && teams.length === 0 ? (- <div className="rounded border border-border/70 dark:border-border-subtle/50 px-3 py-2.5 flex items-center justify-between gap-2">+ <div className="rounded border border-border/70 dark:border-border-subtle/60 px-3 py-2.5 flex items-center justify-between gap-2"><p className="text-xs text-muted-foreground">{t("notes.spaces.teams.loadError")}</p>@@ -395,7 +395,7 @@ export default function CreateSpaceDialog({) : (<>{teams.length > 0 && (- <div className="rounded border border-border/70 dark:border-border-subtle/50 overflow-y-auto max-h-36 p-1">+ <div className="rounded border border-border/70 dark:border-border-subtle/60 overflow-y-auto max-h-36 p-1">{teams.map((team) => {const isSelected = selectedTeamIds.has(team.id);return (@@ -414,7 +414,7 @@ export default function CreateSpaceDialog({<span dir="auto" className="text-xs text-foreground truncate flex-1">{team.name}</span>- <span className="text-[10px] text-foreground/40 shrink-0">+ <span className="text-[10px] text-foreground/45 shrink-0">{t("settingsPage.workspace.teams.memberCount", {count: team.member_count ?? 0,})}@@ -426,7 +426,7 @@ export default function CreateSpaceDialog({</div>)}{newTeamOpen ? (- <div className="rounded border border-border/70 dark:border-border-subtle/50 p-2.5 space-y-2">+ <div className="rounded border border-border/70 dark:border-border-subtle/60 p-2.5 space-y-2"><div className="space-y-1.5"><labelhtmlFor="create-space-new-team-name"diff --git a/src/components/notes/EmbeddedChat.tsx b/src/components/notes/EmbeddedChat.tsxindex 7d454098b..0eb03c324 100644--- a/src/components/notes/EmbeddedChat.tsx+++ b/src/components/notes/EmbeddedChat.tsx@@ -31,7 +31,7 @@ function EmptyState() {const { t } = useTranslation();return (<div className="flex items-center justify-center h-full select-none">- <p className="text-xs text-foreground/30 dark:text-foreground/20 text-center max-w-44">+ <p className="text-xs text-foreground/45 dark:text-foreground/45 text-center max-w-44">{t("embeddedChat.emptyState")}</p></div>@@ -94,7 +94,7 @@ export default function EmbeddedChat({<divclassName={cn("h-9 flex items-center px-3 shrink-0",- mode === "sidebar" && "border-b border-border/10 dark:border-white/5"+ mode === "sidebar" && "border-b border-border/70 dark:border-white/10")}>{headerTitle}@@ -103,7 +103,7 @@ export default function EmbeddedChat({{mode === "floating" ? (<buttononClick={() => onModeChange("sidebar")}- className="h-6 w-6 flex items-center justify-center rounded-md text-foreground/25 hover:text-foreground/40 hover:bg-foreground/6 transition-colors"+ className="h-6 w-6 flex items-center justify-center rounded-md text-foreground/45 hover:bg-foreground/6 transition-colors"aria-label={t("embeddedChat.dock")}><PanelRight size={13} className="rtl:scale-x-[-1]" />@@ -111,7 +111,7 @@ export default function EmbeddedChat({) : (<buttononClick={() => onModeChange("floating")}- className="h-6 w-6 flex items-center justify-center rounded-md text-foreground/25 hover:text-foreground/40 hover:bg-foreground/6 transition-colors"+ className="h-6 w-6 flex items-center justify-center rounded-md text-foreground/45 hover:bg-foreground/6 transition-colors"aria-label={t("embeddedChat.undock")}><PanelRightClose size={13} className="rtl:scale-x-[-1]" />@@ -119,7 +119,7 @@ export default function EmbeddedChat({)}<buttononClick={() => onModeChange("hidden")}- className="h-6 w-6 flex items-center justify-center rounded-md text-foreground/25 hover:text-foreground/40 hover:bg-foreground/6 transition-colors"+ className="h-6 w-6 flex items-center justify-center rounded-md text-foreground/45 hover:bg-foreground/6 transition-colors"aria-label={t("embeddedChat.close")}><X size={13} />diff --git a/src/components/notes/MeetingTranscriptChat.tsx b/src/components/notes/MeetingTranscriptChat.tsxindex 704da0feb..3879a7ce7 100644--- a/src/components/notes/MeetingTranscriptChat.tsx+++ b/src/components/notes/MeetingTranscriptChat.tsx@@ -24,7 +24,7 @@ const BUBBLE_STYLES = {system: {align: "justify-end",radius: "rounded-ee-sm",- bg: "bg-surface-2/70 border border-border/20 text-foreground/80",+ bg: "bg-surface-2/70 border border-border/70 text-foreground/80",cursor: "bg-foreground/40",},} as const;@@ -112,7 +112,7 @@ function PartialBubble({{speakerLabel}</span>{speakerState === "provisional" && (- <span className="inline-flex items-center gap-0.5 text-[10px] font-medium text-muted-foreground/40">+ <span className="inline-flex items-center gap-0.5 text-[10px] font-medium text-muted-foreground/70"><Sparkles size={9} />{getSpeakerStateLabel("provisional", t)}</span>@@ -187,7 +187,7 @@ function AddContactButton({<buttonclassName={cn("inline-flex items-center mb-0.5 px-1.5 py-0.5 rounded-md text-[11px] outline-none cursor-pointer",- "border border-dashed border-border/60 dark:border-white/15",+ "border border-dashed border-border/70 dark:border-white/15","text-foreground/50 hover:text-foreground hover:border-border/90 dark:hover:border-white/30","transition-colors duration-150 focus-visible:ring-1 focus-visible:ring-ring")}@@ -214,8 +214,8 @@ function AddContactButton({placeholder={t("notes.speaker.emailPlaceholder")}className={cn("w-full px-2 py-1.5 rounded-md bg-transparent text-xs text-foreground",- "placeholder:text-foreground/25 outline-none",- "border border-border/50 focus:border-border/90 transition-colors"+ "placeholder:text-foreground/45 outline-none",+ "border border-border/70 focus:border-border/90 transition-colors")}autoFocustype="email"@@ -299,20 +299,20 @@ function SpeakerPicker({ speakerProfiles, participants, onSelectName, t }: Speakreturn (<>- <div className="p-2 border-b border-border/50">+ <div className="p-2 border-b border-border/70"><inputdir="auto"value={search}onChange={(e) => setSearch(e.target.value)}onKeyDown={handleKeyDown}placeholder={t("notes.speaker.nameOrEmailPlaceholder")}- className="w-full px-2 py-1.5 rounded-md bg-transparent text-xs text-foreground placeholder:text-foreground/20 outline-none border-none appearance-none"+ className="w-full px-2 py-1.5 rounded-md bg-transparent text-xs text-foreground placeholder:text-foreground/45 outline-none border-none appearance-none"autoFocus/></div><div className="max-h-52 overflow-y-auto">{filteredParticipants.length > 0 && (- <div className="p-1 border-b border-border/30">+ <div className="p-1 border-b border-border/70"><div className="px-2 py-1 text-[11px] font-medium text-muted-foreground">{t("notes.speaker.meetingAttendees")}</div>@@ -326,7 +326,7 @@ function SpeakerPicker({ speakerProfiles, participants, onSelectName, t }: Speak{p.displayName || p.email}</span>{p.displayName && (- <span dir="ltr" className="text-foreground/30 truncate text-[11px]">+ <span dir="ltr" className="text-foreground/45 truncate text-[11px]">{p.email}</span>)}@@ -335,7 +335,7 @@ function SpeakerPicker({ speakerProfiles, participants, onSelectName, t }: Speak</div>)}{filteredProfiles.length > 0 && (- <div className="p-1 border-b border-border/30">+ <div className="p-1 border-b border-border/70"><div className="px-2 py-1 text-[11px] font-medium text-muted-foreground">{t("notes.speaker.knownSpeakers")}</div>@@ -349,7 +349,7 @@ function SpeakerPicker({ speakerProfiles, participants, onSelectName, t }: Speak{p.display_name}</span>{p.email && (- <span dir="ltr" className="text-foreground/30 truncate text-[11px]">+ <span dir="ltr" className="text-foreground/45 truncate text-[11px]">{p.email}</span>)}@@ -371,7 +371,7 @@ function SpeakerPicker({ speakerProfiles, participants, onSelectName, t }: Speak<span dir="auto" className="text-foreground truncate">{nameFromEmail(trimmed)}</span>- <span dir="ltr" className="text-foreground/30 truncate text-[11px]">+ <span dir="ltr" className="text-foreground/45 truncate text-[11px]">{trimmed.toLowerCase()}</span></>@@ -384,7 +384,7 @@ function SpeakerPicker({ speakerProfiles, participants, onSelectName, t }: Speak</div>)}{isEmpty && (- <div className="px-3 py-4 text-center text-[11px] text-foreground/30">+ <div className="px-3 py-4 text-center text-[11px] text-foreground/45">{t("notes.speaker.nameOrEmailPlaceholder")}</div>)}@@ -436,7 +436,7 @@ function SpeakerLabel({if (hasSuggestion) {return (<span className="group inline-flex items-center gap-1 mb-0.5 px-1">- <span dir="auto" className="text-[11px] font-medium italic text-muted-foreground/60">+ <span dir="auto" className="text-[11px] font-medium italic text-muted-foreground/70">{segment.suggestedName}</span><button@@ -471,7 +471,7 @@ function SpeakerLabel({<buttonclassName={cn("inline-flex items-center text-[11px] font-medium mb-0.5 px-1.5 py-0.5 rounded-md outline-none cursor-pointer",- "border border-border/60 dark:border-white/20",+ "border border-border/70 dark:border-white/20","hover:bg-foreground/5 hover:border-border/90 dark:hover:border-white/30","transition-colors duration-150 focus-visible:ring-1 focus-visible:ring-ring",SPEAKER_COLORS[colorIdx],@@ -517,7 +517,7 @@ function SelectCheckbox({"w-4 h-4 rounded-full border flex items-center justify-center transition-all cursor-pointer",isSelected? "border-primary bg-primary text-primary-foreground opacity-100"- : "border-border/60 bg-background/80 opacity-0 group-hover:opacity-100 hover:border-foreground/50",+ : "border-border/70 bg-background/80 opacity-0 group-hover:opacity-100 hover:border-foreground/50",className)}>@@ -544,7 +544,7 @@ export function SelectionBar({const [open, setOpen] = useState(false);return (<div- className="flex items-center gap-3 rounded-md border border-border/40 bg-surface-2/95 backdrop-blur px-3 py-1.5 text-xs shadow-lg"+ className="flex items-center gap-3 rounded-md border border-border/70 bg-surface-2/95 backdrop-blur px-3 py-1.5 text-xs shadow-lg"style={{ animation: "agent-message-in 150ms ease-out both" }}><span className="text-foreground/70 tabular-nums">@@ -696,7 +696,7 @@ const SegmentRow = memo(function SegmentRow({sameSpeaker ? "rounded-lg rounded-ss-sm" : "rounded-lg rounded-es-sm"): cn(- "bg-surface-2 border border-border/30 text-foreground",+ "bg-surface-2 border border-border/70 text-foreground",sameSpeaker ? "rounded-lg rounded-se-sm" : "rounded-lg rounded-ee-sm",isSystemSpeaker && cn("border-s-2", SPEAKER_BORDER_COLORS[colorIdx])),@@ -846,7 +846,7 @@ export function MeetingTranscriptChat({}, [speakerProfiles]);const consentNotice = (- <div className="shrink-0 flex items-center justify-center gap-1 px-4 pt-2 pb-1 text-[10px] text-muted-foreground/50 select-none">+ <div className="shrink-0 flex items-center justify-center gap-1 px-4 pt-2 pb-1 text-[10px] text-muted-foreground/70 select-none"><ShieldCheck size={10} className="shrink-0" /><span>{t("notes.speaker.consentNotice")}</span></div>@@ -857,7 +857,7 @@ export function MeetingTranscriptChat({<div className="h-full flex flex-col">{consentNotice}<div className="flex-1 flex items-center justify-center px-5">- <p className="text-xs text-muted-foreground/40 select-none">+ <p className="text-xs text-muted-foreground/70 select-none">{t("notes.editor.conversationWillAppear")}</p></div>@@ -884,7 +884,7 @@ export function MeetingTranscriptChat({<div className="h-full flex flex-col">{consentNotice}{(isRecording || isDiarizing) && (- <div className="shrink-0 flex flex-wrap items-center gap-x-3 gap-y-1 mx-4 mb-1.5 px-3 py-1.5 rounded-lg border border-border/60 bg-surface-2/40 text-xs text-foreground">+ <div className="shrink-0 flex flex-wrap items-center gap-x-3 gap-y-1 mx-4 mb-1.5 px-3 py-1.5 rounded-lg border border-border/70 bg-surface-2/40 text-xs text-foreground"><div className="flex items-center gap-1.5 min-w-0">{isDiarizing ? (<Loader2 size={12} className="animate-spin text-muted-foreground shrink-0" />diff --git a/src/components/notes/NoteBottomBar.tsx b/src/components/notes/NoteBottomBar.tsxindex 77e5bdf37..f3fbc0613 100644--- a/src/components/notes/NoteBottomBar.tsx+++ b/src/components/notes/NoteBottomBar.tsx@@ -1,78 +1,40 @@import { useState, useRef, useCallback, useEffect } from "react";import { useTranslation } from "react-i18next";-import { Mic, Square, Loader2 } from "../icons";import { cn } from "../lib/utils";import { SendIcon } from "../ui/SendIcon";-import { LiveWaveform } from "../ui/LiveWaveform";-import { analyserRms } from "../../utils/audioLevel";-import { GRADIENT_CIRCLE } from "../ui/gradientCircle";import { GLASS_SURFACE } from "../ui/glass";-import { formatMmSs } from "../../utils/formatDuration";-import { getMicAnalyser, useMeetingRecordingStore } from "../../stores/meetingRecordingStore";--// Module-level buffer: there is a single meeting mic analyser at a time.-const micLevelBuf: { current: Float32Array<ArrayBuffer> | null } = { current: null };// While recording, the bar sits over the live streaming transcript, and every-// partial would force backdrop-blur to re-blur the strip; the capsules trade+// partial would force backdrop-blur to re-blur the strip; the capsule trades// glass for a near-opaque surface until the recording ends.const RECORDING_SURFACE = "bg-surface-2/95 shadow-(--shadow-glass)";-function readMeetingMicLevel(): number {- const analyser = getMicAnalyser();- if (!analyser) return useMeetingRecordingStore.getState().currentMicLevel;- return analyserRms(analyser, micLevelBuf);-}-interface NoteBottomBarProps {+ /** Swaps the glass surface for an opaque one while the live transcript streams underneath. */isRecording: boolean;- isProcessing: boolean;- recordingDisabled?: boolean;- onStartRecording: () => void;- onStopRecording: () => void;onAskSubmit: (text: string) => void;onInputFocus?: () => void;askDisabled?: boolean;actionPicker?: React.ReactNode;+ /** One centred call to action floated above the ask capsule. */+ callout?: React.ReactNode;hideInput?: boolean;- /** False hides the record control (e.g. read-only shared notes). */- canRecord?: boolean;}export default function NoteBottomBar({isRecording,- isProcessing,- recordingDisabled = false,- onStartRecording,- onStopRecording,onAskSubmit,onInputFocus,askDisabled,actionPicker,+ callout,hideInput,- canRecord = true,}: NoteBottomBarProps) {const { t } = useTranslation();const [inputText, setInputText] = useState("");const [isExpanded, setIsExpanded] = useState(false);const inputRef = useRef<HTMLInputElement>(null);const containerRef = useRef<HTMLDivElement>(null);- const [elapsed, setElapsed] = useState(0);- const [wasRecording, setWasRecording] = useState(isRecording);-- if (isRecording !== wasRecording) {- setWasRecording(isRecording);- if (!isRecording) setElapsed(0);- }-- useEffect(() => {- if (!isRecording) return;- const id = setInterval(() => setElapsed((s) => s + 1), 1000);- return () => clearInterval(id);- }, [isRecording]);-- const elapsedLabel = formatMmSs(elapsed);-const hasText = inputText.trim().length > 0;const handleSubmit = useCallback(() => {@@ -102,10 +64,8 @@ export default function NoteBottomBar({onInputFocus?.();}, [onInputFocus]);- const micHidden = !hideInput && isExpanded && !isRecording;-// Chat panel opening hides the input; drop the expanded state so the bar- // comes back in its idle layout (mic visible) when the panel closes.+ // comes back in its idle layout when the panel closes.useEffect(() => {if (hideInput) setIsExpanded(false);}, [hideInput]);@@ -126,74 +86,10 @@ export default function NoteBottomBar({ref={containerRef}className="absolute bottom-0 left-0 right-0 z-10 px-5 pb-4 pt-6 pointer-events-none bg-gradient-to-t from-background from-45% to-transparent">+ {callout && !hideInput && (+ <div className="pointer-events-auto mb-3 flex justify-center">{callout}</div>+ )}<div className="flex items-end pointer-events-auto w-full max-w-[600px] mx-auto">- {canRecord && (- <div- className={cn(- "shrink-0 overflow-hidden",- "transition-all duration-500 [transition-timing-function:cubic-bezier(0.22,1,0.36,1)]",- isRecording ? "w-[284px]" : micHidden ? "w-0" : "w-11",- !hideInput && !micHidden ? "me-2" : "me-0"- )}- >- {isRecording ? (- <button- onClick={onStopRecording}- aria-label={t("notes.editor.stop")}- title={t("notes.editor.stop")}- className={cn(- "group flex items-center gap-2.5 w-full h-11 ps-0.5 pe-3.5 rounded-full",- RECORDING_SURFACE,- "border border-primary/15 dark:border-primary/25",- "transition-[border-color] duration-200",- "hover:border-primary/30 dark:hover:border-primary/40"- )}- >- <span- className={cn(- "flex items-center justify-center w-8 h-8 rounded-full shrink-0",- GRADIENT_CIRCLE,- "transition-[filter] duration-150 group-hover:brightness-110"- )}- >- <Square size={11} fill="currentColor" />- </span>- <LiveWaveform readLevel={readMeetingMicLevel} />- <span className="text-[13px] font-semibold tabular-nums tracking-[0.08em] text-foreground/85 shrink-0">- {elapsedLabel}- </span>- </button>- ) : (- <button- onClick={onStartRecording}- disabled={recordingDisabled || isProcessing}- tabIndex={micHidden ? -1 : undefined}- className={cn(- "flex items-center justify-center w-11 h-11 rounded-full",- GRADIENT_CIRCLE,- "transition-all duration-500 [transition-timing-function:cubic-bezier(0.22,1,0.36,1)]",- "hover:brightness-110",- "active:scale-95",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",- recordingDisabled && "opacity-40 saturate-0 pointer-events-none",- isProcessing && "pointer-events-none",- micHidden- ? "translate-x-10 rtl:-translate-x-10 opacity-0 pointer-events-none"- : "translate-x-0 opacity-100"- )}- aria-label={t("notes.editor.transcribe")}- title={recordingDisabled ? t("common.managedByOrg") : undefined}- >- {isProcessing ? (- <Loader2 size={16} className="animate-spin text-white/90" />- ) : (- <Mic size={20} />- )}- </button>- )}- </div>- )}-<divaria-hidden={hideInput}className={cn(@@ -226,7 +122,7 @@ export default function NoteBottomBar({className={cn("input-inline flex-1 bg-transparent outline-none min-w-0 p-0 caret-primary","text-[13px] text-foreground",- "placeholder:text-foreground/25 dark:placeholder:text-foreground/15"+ "placeholder:text-foreground/45 dark:placeholder:text-foreground/45")}/>diff --git a/src/components/notes/NoteEditor.tsx b/src/components/notes/NoteEditor.tsxindex f7a0cfd6a..0e1d01138 100644--- a/src/components/notes/NoteEditor.tsx+++ b/src/components/notes/NoteEditor.tsx@@ -2,22 +2,22 @@ import { useState, useRef, useEffect, useMemo, useCallback, type ComponentPropsimport { useTranslation } from "react-i18next";import { useUiLocale } from "../../hooks/useUiLocale";import {- Download,Loader2,FileText,Sparkles,AlignLeft,MessageSquareText,- Calendar,+ Mic,LinkIcon,+ Link2,+ Lock,FolderOpen,Search,Plus,Check,- Share2,Users,} from "../icons";-import ShareNoteDialog from "./ShareNoteDialog";+import ShareNoteDialog, { type NoteExportOption } from "./ShareNoteDialog";import {canOrganizeNote,noteCapabilities,@@ -58,6 +58,9 @@ import type { NoteItem, FolderItem } from "../../types/electron";import type { ActionProcessingState } from "../../hooks/useActionProcessing";import ActionProcessingOverlay from "./ActionProcessingOverlay";import NoteBottomBar from "./NoteBottomBar";+import NoteRecordControl, { RecordingWave } from "./NoteRecordControl";+import EmptyStateCard from "../ui/EmptyStateCard";+import { Button } from "../ui/button";import EmbeddedChat, { type EmbeddedChatMode } from "./EmbeddedChat";import { useEmbeddedChat } from "../../hooks/useEmbeddedChat";import { formatNoteDate, formatRelativeTime, formatShortDate } from "../../utils/dateFormatting";@@ -71,10 +74,25 @@ import {import NoteParticipants from "./NoteParticipants";import type { CalendarAttendee } from "../../types/calendar";import { observeFloatingChatLayout } from "./floatingChatLayout";-import { defaultFolderDisplayName, folderMatchesQuery } from "./shared";--const CHIP_BUTTON_CLASS =- "inline-flex items-center gap-1.5 text-[11px] px-1.5 py-0.5 rounded-md border border-border/70 dark:border-white/25 text-foreground/50 dark:text-foreground/35 hover:text-foreground/60 hover:border-border/60 hover:bg-foreground/3 dark:hover:text-foreground/40 dark:hover:border-white/10 dark:hover:bg-white/3 transition-all duration-150 cursor-pointer outline-none focus-visible:ring-1 focus-visible:ring-ring/30";+import { NOTE_META_CHIP_CLASS, defaultFolderDisplayName, folderMatchesQuery } from "./shared";++const SEGMENT_BUTTON_CLASS =+ "relative z-1 flex h-[26px] items-center gap-1.5 rounded-full px-2.5 text-xs font-medium transition-colors duration-150";+const SHARE_GROUP_CLASS =+ "flex h-[30px] items-stretch overflow-hidden rounded-full border border-border bg-surface-3 dark:border-white/10 dark:bg-surface-2";+const SHARE_SEGMENT_CLASS =+ "flex items-center text-xs font-medium text-foreground/80 outline-none transition-colors duration-150 hover:bg-surface-raised hover:text-foreground focus-visible:bg-surface-raised dark:hover:bg-surface-3";++const TRANSCRIPT_EXPORT_LABEL_KEYS = {+ txt: "notes.editor.asTranscriptText",+ srt: "notes.editor.asSubtitles",+ md: "notes.editor.asTranscriptMarkdown",+ json: "notes.editor.asJson",+} as const;+const NOTE_EXPORT_LABEL_KEYS = {+ md: "notes.editor.asMarkdown",+ txt: "notes.editor.asPlainText",+} as const;export interface Enhancement {content: string;@@ -168,6 +186,8 @@ interface NoteEditorProps {onExportTranscript?: (format: "txt" | "srt" | "json" | "md") => void;enhancement?: Enhancement;actionPicker?: React.ReactNode;+ /** Runs the built-in Generate Notes action; enables the post-recording summary pill. */+ onGenerateSummary?: () => void;actionProcessingState?: ActionProcessingState;actionName?: string | null;diarizationSessionId?: string | null;@@ -200,6 +220,7 @@ export default function NoteEditor({onExportTranscript,enhancement,actionPicker,+ onGenerateSummary,actionProcessingState,actionName,diarizationSessionId,@@ -225,6 +246,7 @@ export default function NoteEditor({const [newFolderName, setNewFolderName] = useState("");const [isDiarizing, setIsDiarizing] = useState(false);const [shareDialogOpen, setShareDialogOpen] = useState(false);+ const [shareIntent, setShareIntent] = useState<"open" | "copy-link">("open");const [membersDialogOpen, setMembersDialogOpen] = useState(false);const [aclRetryVersion, setAclRetryVersion] = useState(0);const [aclRequest, setAclRequest] = useState<{@@ -256,10 +278,6 @@ export default function NoteEditor({locallyOwned: ownsNote(note, user?.id),});const shareCapabilities = noteCapabilities(notePermission);- const canShare =- isSignedIn &&- (!note.cloud_id || isTeamNote || aclState === "loaded") &&- shareCapabilities.canShare;const canEditNote = shareCapabilities.canEdit;// Re-filing is owner-only on shared personal notes (a denied folder_id// PATCH would fork an unexpected Personal copy); team members keep@@ -356,7 +374,6 @@ export default function NoteEditor({});const titleRef = useRef<HTMLDivElement>(null);const prevNoteIdRef = useRef<number>(note.id);- const autoShowDoneRef = useRef(false);const segmentContainerRef = useRef<HTMLDivElement>(null);const [indicatorStyle, setIndicatorStyle] = useState<React.CSSProperties>({ opacity: 0 });@@ -381,6 +398,15 @@ export default function NoteEditor({}, [diarizedSegments, note.transcript]);const hasChatSegments = displaySegments.length > 0;+ // A finished recording with no AI summary yet offers one from the transcript view.+ const showSummaryCallout =+ viewMode === "transcript" &&+ !isRecording &&+ hasChatSegments &&+ !enhancement &&+ canEditNote &&+ !!onGenerateSummary &&+ actionProcessingState !== "processing";const knownSpeakers = useMemo(() => buildKnownSpeakers(speakerProfiles, displaySegments, speakerMappings),@@ -464,22 +490,19 @@ export default function NoteEditor({useEffect(() => {if (note.id !== prevNoteIdRef.current) {prevNoteIdRef.current = note.id;- autoShowDoneRef.current = false;return scheduleUiUpdate(() => {setChatMode("hidden");setDiarizedSegments(null);setIsDiarizing(false);setSpeakerMappings({});- if (!isRecording) {- setViewMode("raw");- }+ setViewMode("raw");if (titleRef.current && titleRef.current.textContent !== note.title) {titleRef.current.textContent = note.title || "";}editorRef.current?.commands.focus();});}- }, [isRecording, note.id, note.title, scheduleUiUpdate]);+ }, [note.id, note.title, scheduleUiUpdate]);useEffect(() => {window.electronAPI?.getSpeakerMappings?.(note.id).then((mappings) => {@@ -490,17 +513,6 @@ export default function NoteEditor({refreshSpeakerProfiles();}, [note.id, refreshSpeakerProfiles]);- useEffect(() => {- if (- !autoShowDoneRef.current &&- embeddedChat.activeConversationId &&- embeddedChat.messages.length > 0- ) {- autoShowDoneRef.current = true;- return scheduleUiUpdate(() => setChatMode("floating"));- }- }, [embeddedChat.activeConversationId, embeddedChat.messages.length, scheduleUiUpdate]);-useEffect(() => {if (titleRef.current && titleRef.current.textContent !== note.title) {titleRef.current.textContent = note.title || "";@@ -700,14 +712,6 @@ export default function NoteEditor({document.execCommand("insertText", false, text);}, []);- const prevRecordingRef = useRef(false);- useEffect(() => {- if (isRecording && !prevRecordingRef.current) {- scheduleUiUpdate(() => setViewMode("transcript"));- }- prevRecordingRef.current = isRecording;- }, [isRecording, scheduleUiUpdate]);-const contentScrollRef = useRef<HTMLDivElement>(null);const getActiveScroller = useCallback((root: HTMLDivElement): HTMLElement | null => {@@ -796,10 +800,31 @@ export default function NoteEditor({const noteDate = formatNoteDate(note.created_at, locale);const shortDate = formatShortDate(note.created_at, locale);+ const openShare = useCallback((intent: "open" | "copy-link") => {+ setShareIntent(intent);+ setShareDialogOpen(true);+ }, []);++ const exportOptions = useMemo<NoteExportOption[]>(() => {+ if (viewMode === "transcript" && onExportTranscript) {+ return (["txt", "srt", "md", "json"] as const).map((format) => ({+ id: format,+ label: t(TRANSCRIPT_EXPORT_LABEL_KEYS[format]),+ onSelect: () => onExportTranscript(format),+ }));+ }+ if (!onExportNote) return [];+ return (["md", "txt"] as const).map((format) => ({+ id: format,+ label: t(NOTE_EXPORT_LABEL_KEYS[format]),+ onSelect: () => onExportNote(format),+ }));+ }, [viewMode, onExportTranscript, onExportNote, t]);+return (<div className="flex h-full min-h-0"><div className="flex-1 min-w-0 flex flex-col">- <div className="px-5 pt-4 pb-0">+ <div className="px-5 pt-5 pb-0"><divdir="auto"ref={titleRef}@@ -809,55 +834,51 @@ export default function NoteEditor({onKeyDown={handleTitleKeyDown}onPaste={handleTitlePaste}data-placeholder={t("notes.editor.untitled")}- className="text-base font-semibold text-foreground bg-transparent outline-none tracking-[-0.01em] empty:before:content-[attr(data-placeholder)] empty:before:text-foreground/15 empty:before:pointer-events-none"+ className="text-3xl font-medium leading-tight text-foreground bg-transparent outline-none tracking-[-0.01em] empty:before:content-[attr(data-placeholder)] empty:before:text-foreground/45 empty:before:pointer-events-none"role="textbox"aria-label={t("notes.editor.noteTitle")}/>- <div className="flex items-center gap-2 mt-1.5">- {shortDate && (- <span- className="inline-flex items-center gap-1.5 text-[11px] text-foreground/50 dark:text-foreground/35"- title={noteDate}- >- <Calendar size={11} className="shrink-0" />- {shortDate}- </span>- )}+ <div className="mt-3 flex flex-wrap items-center gap-2">+ <NoteParticipants+ noteId={note.id}+ participants={parsedParticipants}+ dateLabel={shortDate || undefined}+ dateTitle={noteDate}+ />{calendarEventName && (- <span className="inline-flex items-center gap-1.5 text-[11px] text-foreground/50 dark:text-foreground/35">- <LinkIcon size={11} className="shrink-0" />- <span className="truncate max-w-40">{calendarEventName}</span>+ <span className={cn(NOTE_META_CHIP_CLASS, "cursor-default")}>+ <LinkIcon size={14} className="shrink-0 text-foreground/60" />+ <span className="max-w-40 truncate">{calendarEventName}</span></span>)}- <NoteParticipants noteId={note.id} participants={parsedParticipants} />{isTeamNote && space && (<><buttontype="button"onClick={() => navigateToContainer(space.id, null)}- className={CHIP_BUTTON_CLASS}+ className={NOTE_META_CHIP_CLASS}>{space.emoji ? (<span className="text-[11px] leading-none shrink-0" aria-hidden="true">{space.emoji}</span>) : (- <Users size={11} className="shrink-0" />+ <Users size={14} className="shrink-0 text-foreground/60" />)}<span dir="auto" className="truncate max-w-32">{space.name}</span></button>{folders && onMoveToFolder && (canMoveToFolders || folderName) && (- <span aria-hidden="true" className="text-[11px] text-foreground/25">+ <span aria-hidden="true" className="text-xs text-foreground/45">/</span>)}</>)}{folders && onMoveToFolder && !canMoveToFolders && folderName && (- <span className={cn(CHIP_BUTTON_CLASS, "cursor-default")}>- <FolderOpen size={11} className="shrink-0" />+ <span className={cn(NOTE_META_CHIP_CLASS, "cursor-default")}>+ <FolderOpen size={14} className="shrink-0 text-foreground/60" /><span dir="auto">{folderName}</span></span>)}@@ -872,8 +893,8 @@ export default function NoteEditor({}}><DropdownMenuTrigger asChild>- <button className={CHIP_BUTTON_CLASS}>- <FolderOpen size={11} className="shrink-0" />+ <button className={NOTE_META_CHIP_CLASS}>+ <FolderOpen size={14} className="shrink-0 text-foreground/60" />{folderName ? <span dir="auto">{folderName}</span> : t("notes.editor.noFolder")}</button></DropdownMenuTrigger>@@ -883,7 +904,7 @@ export default function NoteEditor({<div className="relative px-1.5 py-0.5"><Searchsize={9}- className="absolute start-3.5 top-1/2 -translate-y-1/2 text-foreground/15 pointer-events-none"+ className="absolute start-3.5 top-1/2 -translate-y-1/2 text-foreground/45 pointer-events-none"/><inputdir="auto"@@ -891,7 +912,7 @@ export default function NoteEditor({onChange={(e) => setFolderSearch(e.target.value)}onKeyDown={(e) => e.stopPropagation()}placeholder={t("notes.context.searchFolders")}- className="input-inline w-full ps-4.5 pe-1 py-0.5 text-xs text-foreground placeholder:text-foreground/15 outline-none border-none appearance-none"+ className="input-inline w-full ps-4.5 pe-1 py-0.5 text-xs text-foreground placeholder:text-foreground/45 outline-none border-none appearance-none"/></div><DropdownMenuSeparator />@@ -907,7 +928,7 @@ export default function NoteEditor({onClick={() => onMoveToFolder(note.id, folder.id)}className="text-xs gap-2 rounded-md px-2 py-1.5">- <FolderOpen size={11} className="text-foreground/30 shrink-0" />+ <FolderOpen size={11} className="text-foreground/45 shrink-0" /><span dir="auto" className="truncate flex-1">{defaultFolderDisplayName(folder, t)}</span>@@ -916,7 +937,7 @@ export default function NoteEditor({);})}{folderSearch && filteredFolders.length === 0 && (- <p className="text-xs text-foreground/20 text-center py-1.5">+ <p className="text-xs text-foreground/45 text-center py-1.5">{t("notes.context.noResults")}</p>)}@@ -944,7 +965,7 @@ export default function NoteEditor({}}}placeholder={t("notes.folders.folderName")}- className="input-inline w-full px-2 py-1.5 rounded-md bg-transparent text-xs text-foreground placeholder:text-foreground/20 outline-none border-none appearance-none"+ className="input-inline w-full px-2 py-1.5 rounded-md bg-transparent text-xs text-foreground placeholder:text-foreground/45 outline-none border-none appearance-none"/></div>) : (@@ -953,7 +974,7 @@ export default function NoteEditor({e.preventDefault();setIsCreatingFolder(true);}}- className="text-xs gap-2 rounded-md px-2 py-1.5 text-foreground/40"+ className="text-xs gap-2 rounded-md px-2 py-1.5 text-foreground/45"><Plus size={10} />{t("notes.context.newFolder")}@@ -969,172 +990,111 @@ export default function NoteEditor({type="button"onClick={() => setMembersDialogOpen(true)}aria-label={t("notes.spaces.teamsMembers.title", { space: space.name })}- className={CHIP_BUTTON_CLASS}+ className={NOTE_META_CHIP_CLASS}>- <Users size={11} className="shrink-0" />+ <Users size={14} className="shrink-0 text-foreground/60" />{/* member_count tracks explicit rosters only — the audience always includes the viewer */}{Math.max(1, space.member_count ?? 1)}</button>)}{isSaving && (- <span className="inline-flex items-center gap-1 text-[11px] text-foreground/30 dark:text-foreground/15 tabular-nums">- <Loader2 size={8} className="animate-spin" />+ <span className="inline-flex items-center gap-1 text-xs text-foreground/45 tabular-nums">+ <Loader2 size={10} className="animate-spin" />{t("notes.editor.saving")}</span>)}- <div className="flex-1" />- <div className="flex items-center gap-1">- {(enhancement || hasMeetingTranscript || hasChatSegments || isRecording) && (+ </div>+ <div className="mt-5 flex items-center justify-between gap-3">+ <div className="flex min-w-0 items-center">+ <div+ ref={segmentContainerRef}+ className="relative flex shrink-0 items-center rounded-full bg-surface-3 p-0.5 dark:bg-surface-2"+ ><div- ref={segmentContainerRef}- className="relative flex items-center shrink-0 rounded-md bg-foreground/3 dark:bg-white/3 p-0.5"+ className="pointer-events-none absolute top-0.5 left-0 rounded-full bg-background shadow-sm transition-[width,height,transform,opacity] duration-200 ease-out dark:bg-surface-3"+ style={indicatorStyle}+ />+ <button+ data-segment-button+ data-segment-value="transcript"+ onClick={() => setViewMode("transcript")}+ className={cn(+ SEGMENT_BUTTON_CLASS,+ viewMode === "transcript"+ ? "text-foreground"+ : "text-foreground/60 hover:text-foreground/80"+ )}>- <div- className="absolute top-0.5 left-0 rounded bg-background dark:bg-surface-2 shadow-sm transition-[width,height,transform,opacity] duration-200 ease-out pointer-events-none"- style={indicatorStyle}- />- {(hasMeetingTranscript || hasChatSegments || isRecording) && (- <button- data-segment-button- data-segment-value="transcript"- onClick={() => setViewMode("transcript")}- className={cn(- "relative z-1 px-1.5 h-5 rounded text-xs font-medium transition-colors duration-150 flex items-center gap-1",- viewMode === "transcript"- ? "text-foreground/60"- : "text-foreground/25 hover:text-foreground/40"- )}- >- <MessageSquareText size={10} />- {t("notes.editor.transcript")}- </button>+ {isRecording ? <RecordingWave /> : <MessageSquareText size={12} />}+ {t("notes.editor.transcript")}+ </button>+ <button+ data-segment-button+ data-segment-value="raw"+ onClick={() => setViewMode("raw")}+ className={cn(+ SEGMENT_BUTTON_CLASS,+ viewMode === "raw"+ ? "text-foreground"+ : "text-foreground/60 hover:text-foreground/80")}+ >+ <AlignLeft size={12} />+ {t("notes.editor.notes")}+ </button>+ {enhancement && (<buttondata-segment-button- data-segment-value="raw"- onClick={() => setViewMode("raw")}+ data-segment-value="enhanced"+ onClick={() => setViewMode("enhanced")}className={cn(- "relative z-1 px-1.5 h-5 rounded text-xs font-medium transition-colors duration-150 flex items-center gap-1",- viewMode === "raw"- ? "text-foreground/60"- : "text-foreground/25 hover:text-foreground/40"+ SEGMENT_BUTTON_CLASS,+ viewMode === "enhanced"+ ? "text-foreground"+ : "text-foreground/60 hover:text-foreground/80")}>- <AlignLeft size={10} />- {t("notes.editor.notes")}+ <Sparkles size={12} />+ {t("notes.editor.enhanced")}+ {enhancement.isStale && (+ <span+ className="h-1 w-1 rounded-full bg-amber-400/60"+ title={t("notes.editor.staleIndicator")}+ />+ )}</button>- {enhancement && (- <button- data-segment-button- data-segment-value="enhanced"- onClick={() => setViewMode("enhanced")}- className={cn(- "relative z-1 px-1.5 h-5 rounded text-xs font-medium transition-colors duration-150 flex items-center gap-1",- viewMode === "enhanced"- ? "text-foreground/60"- : "text-foreground/25 hover:text-foreground/40"- )}- >- <Sparkles size={9} />- {t("notes.editor.enhanced")}- {enhancement.isStale && (- <span- className="w-1 h-1 rounded-full bg-amber-400/60"- title={t("notes.editor.staleIndicator")}- />- )}- </button>- )}- </div>+ )}+ </div>+ </div>+ <div className="flex shrink-0 items-center gap-2">+ {canEditNote && (+ <NoteRecordControl+ isRecording={isRecording}+ isProcessing={isProcessing}+ disabled={!recordingAllowed}+ onStart={onStartRecording}+ onStop={onStopRecording}+ />)}- {canShare && (+ <div className={SHARE_GROUP_CLASS}><buttontype="button"- onClick={() => setShareDialogOpen(true)}- className={cn(- "shrink-0 h-6 w-6 flex items-center justify-center rounded-md",- "bg-foreground/4 dark:bg-white/5",- "hover:bg-foreground/8 dark:hover:bg-white/10",- "active:bg-foreground/12 dark:active:bg-white/15",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",- "transition-colors duration-150"- )}- aria-label={t("noteEditor.share.button")}+ onClick={() => openShare("open")}+ className={cn(SHARE_SEGMENT_CLASS, "gap-1.5 ps-2.5 pe-3")}>- <Share2- size={11}- className={cn(- "transition-colors",- isShared- ? "text-blue-600 dark:text-blue-400"- : "text-foreground/50 dark:text-foreground/40"- )}- />+ <Lock size={13} className={isShared ? "text-primary" : "text-foreground/60"} />+ {t("noteEditor.share.button")}</button>- )}- {(onExportNote || onExportTranscript) && (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <button- className="shrink-0 h-6 w-6 flex items-center justify-center rounded-md bg-foreground/4 dark:bg-white/5 text-foreground/50 dark:text-foreground/40 hover:text-foreground/70 hover:bg-foreground/8 dark:hover:text-foreground/60 dark:hover:bg-white/8 transition-colors duration-150"- aria-label={t("notes.editor.export")}- >- <Download size={11} />- </button>- </DropdownMenuTrigger>- <DropdownMenuContent align="end" sideOffset={4}>- {viewMode === "transcript" && onExportTranscript ? (- <>- <DropdownMenuItem- onClick={() => onExportTranscript("txt")}- className="text-xs gap-2"- >- <FileText size={13} className="text-foreground/40" />- {t("notes.editor.asTranscriptText")}- </DropdownMenuItem>- <DropdownMenuItem- onClick={() => onExportTranscript("srt")}- className="text-xs gap-2"- >- <FileText size={13} className="text-foreground/40" />- {t("notes.editor.asSubtitles")}- </DropdownMenuItem>- <DropdownMenuItem- onClick={() => onExportTranscript("md")}- className="text-xs gap-2"- >- <FileText size={13} className="text-foreground/40" />- {t("notes.editor.asTranscriptMarkdown")}- </DropdownMenuItem>- <DropdownMenuItem- onClick={() => onExportTranscript("json")}- className="text-xs gap-2"- >- <FileText size={13} className="text-foreground/40" />- {t("notes.editor.asJson")}- </DropdownMenuItem>- </>- ) : (- <>- <DropdownMenuItem- onClick={() => onExportNote?.("md")}- className="text-xs gap-2"- >- <FileText size={13} className="text-foreground/40" />- {t("notes.editor.asMarkdown")}- </DropdownMenuItem>- <DropdownMenuItem- onClick={() => onExportNote?.("txt")}- className="text-xs gap-2"- >- <FileText size={13} className="text-foreground/40" />- {t("notes.editor.asPlainText")}- </DropdownMenuItem>- </>- )}- </DropdownMenuContent>- </DropdownMenu>- )}+ <span aria-hidden="true" className="my-1.5 w-px bg-border dark:bg-white/10" />+ <button+ type="button"+ onClick={() => openShare("copy-link")}+ aria-label={t("noteEditor.share.dialog.copyLink")}+ className={cn(SHARE_SEGMENT_CLASS, "w-[30px] justify-center")}+ >+ <Link2 size={13} className="text-foreground/60" />+ </button>+ </div></div></div></div>@@ -1152,7 +1112,7 @@ export default function NoteEditor({<p className="text-[11px] text-foreground/50 flex-1 truncate">{t("notes.spaces.conflictBanner")}{conflictEditorName && (- <span className="text-foreground/30">+ <span className="text-foreground/45">{" "}{t("notes.spaces.editedBy", {name: conflictEditorName,@@ -1169,7 +1129,7 @@ export default function NoteEditor({</button><buttononClick={handleConflictKeep}- className="text-[11px] font-medium text-foreground/35 hover:text-foreground/55 transition-colors shrink-0 px-1 -mx-1 rounded outline-none focus-visible:ring-1 focus-visible:ring-ring/30"+ className="text-[11px] font-medium text-foreground/45 hover:text-foreground/55 transition-colors shrink-0 px-1 -mx-1 rounded outline-none focus-visible:ring-1 focus-visible:ring-ring/30">{t("notes.spaces.conflictKeep")}</button>@@ -1217,6 +1177,20 @@ export default function NoteEditor({)) : viewMode === "transcript" && hasMeetingTranscript ? (<RichTextEditor value={note.transcript || ""} disabled />+ ) : viewMode === "transcript" ? (+ <EmptyStateCard+ icon={Mic}+ title={t("notes.editor.transcriptEmptyTitle")}+ description={t("notes.editor.transcriptEmptyDescription")}+ className="mt-2"+ >+ {canEditNote && recordingAllowed && (+ <Button size="sm" onClick={onStartRecording} disabled={isProcessing}>+ <Mic size={13} />+ {t("notes.editor.startRecording")}+ </Button>+ )}+ </EmptyStateCard>) : viewMode === "enhanced" && enhancement ? (<RichTextEditorvalue={enhancement.content}@@ -1259,14 +1233,17 @@ export default function NoteEditor({)}<NoteBottomBarisRecording={isRecording}- isProcessing={isProcessing}- recordingDisabled={!recordingAllowed}- onStartRecording={onStartRecording}- onStopRecording={onStopRecording}onAskSubmit={handleAskSubmit}onInputFocus={handleChatInputFocus}- canRecord={canEditNote}actionPicker={isRecording || !canEditNote ? undefined : actionPicker}+ callout={+ showSummaryCallout && (+ <Button className="h-9 gap-2 px-4 text-sm" onClick={onGenerateSummary}>+ <AlignLeft size={16} />+ {t("notes.editor.generateSummary")}+ </Button>+ )+ }hideInput={chatMode !== "hidden"}/>{chatMode === "floating" && (@@ -1300,9 +1277,13 @@ export default function NoteEditor({onNewChat={embeddedChat.startNewChat}/>)}- {canShare && (- <ShareNoteDialog open={shareDialogOpen} onOpenChange={setShareDialogOpen} note={note} />- )}+ <ShareNoteDialog+ open={shareDialogOpen}+ onOpenChange={setShareDialogOpen}+ note={note}+ exportOptions={exportOptions}+ copyLinkOnOpen={shareIntent === "copy-link"}+ />{isTeamNote && space?.cloud_space_id && (<SpaceMembersDialogspace={space}diff --git a/src/components/notes/NoteParticipants.tsx b/src/components/notes/NoteParticipants.tsxindex 59ab7d15c..51013ff51 100644--- a/src/components/notes/NoteParticipants.tsx+++ b/src/components/notes/NoteParticipants.tsx@@ -1,17 +1,29 @@import { useState, useEffect, useCallback, useMemo } from "react";import { useTranslation } from "react-i18next";-import { Users, X } from "../icons";+import { Calendar, ChevronDown, Users, X } from "../icons";+import { cn } from "../lib/utils";+import { NOTE_META_CHIP_CLASS } from "./shared";import { Popover, PopoverTrigger, PopoverContent } from "../ui/popover";import PersonAvatar from "../ui/PersonAvatar";import type { CalendarAttendee } from "../../types/calendar";import { syncSessionExpectedCountFromParticipants } from "../../stores/meetingRecordingStore";+const MAX_STACKED_AVATARS = 2;+interface NoteParticipantsProps {noteId: number;participants: CalendarAttendee[];+ /** When present the capsule leads with the note's date, so date and people read as one fact. */+ dateLabel?: string;+ dateTitle?: string;}-export default function NoteParticipants({ noteId, participants }: NoteParticipantsProps) {+export default function NoteParticipants({+ noteId,+ participants,+ dateLabel,+ dateTitle,+}: NoteParticipantsProps) {const { t } = useTranslation();const [localParticipants, setLocalParticipants] = useState(participants);const [search, setSearch] = useState("");@@ -104,27 +116,61 @@ export default function NoteParticipants({ noteId, participants }: NoteParticipa}}><PopoverTrigger asChild>- <button className="inline-flex items-center gap-1.5 text-[11px] px-1.5 py-0.5 rounded-md border border-border/70 dark:border-white/25 text-foreground/50 dark:text-foreground/35 hover:text-foreground/60 hover:border-border/60 hover:bg-foreground/3 dark:hover:text-foreground/40 dark:hover:border-white/10 dark:hover:bg-white/3 transition-all duration-150 cursor-pointer outline-none">- <Users size={11} className="shrink-0" />- {chipLabel}+ <button+ type="button"+ aria-label={chipLabel}+ title={dateTitle}+ className={cn(NOTE_META_CHIP_CLASS, "pe-2")}+ >+ {dateLabel && (+ <>+ <Calendar size={14} className="shrink-0 text-foreground/60" />+ <span>{dateLabel}</span>+ <span aria-hidden="true" className="mx-0.5 h-3.5 w-px bg-border dark:bg-white/15" />+ </>+ )}+ {localParticipants.length > 0 ? (+ <span className="flex items-center -space-x-1">+ {localParticipants.slice(0, MAX_STACKED_AVATARS).map((p) => (+ <PersonAvatar+ key={p.email}+ email={p.email}+ displayName={p.displayName}+ size={18}+ className="ring-1 ring-surface-3 dark:ring-surface-2"+ />+ ))}+ {localParticipants.length > MAX_STACKED_AVATARS && (+ <span className="flex h-[18px] min-w-[18px] items-center justify-center rounded-full bg-background px-0.5 text-[9px] font-medium tabular-nums text-foreground/70 ring-1 ring-surface-3 dark:bg-surface-3 dark:ring-surface-2">+ +{localParticipants.length - MAX_STACKED_AVATARS}+ </span>+ )}+ </span>+ ) : (+ <>+ <Users size={14} className="shrink-0 text-foreground/60" />+ {chipLabel}+ </>+ )}+ <ChevronDown size={14} className="shrink-0 text-foreground/50" /></button></PopoverTrigger><PopoverContent className="w-72 p-0">- <div className="p-2 border-b border-border/50">+ <div className="p-2 border-b border-border/70"><inputdir="auto"value={search}onChange={(e) => setSearch(e.target.value)}onKeyDown={handleKeyDown}placeholder={t("notes.participants.addPlaceholder", "Add attendees...")}- className="w-full px-2 py-1.5 rounded-md bg-transparent text-xs text-foreground placeholder:text-foreground/20 outline-none border-none appearance-none"+ className="w-full px-2 py-1.5 rounded-md bg-transparent text-xs text-foreground placeholder:text-foreground/45 outline-none border-none appearance-none"autoFocus/></div><div className="max-h-64 overflow-y-auto">{search && suggestions.length > 0 && (- <div className="p-1 border-b border-border/30">+ <div className="p-1 border-b border-border/70">{suggestions.slice(0, 5).map((contact) => (<buttonkey={contact.email}@@ -141,7 +187,7 @@ export default function NoteParticipants({ noteId, participants }: NoteParticipa)}{search && !search.includes("@") && suggestions.length === 0 && (- <div className="px-3 py-2 text-[11px] text-foreground/30">+ <div className="px-3 py-2 text-[11px] text-foreground/45">{t("notes.participants.typeEmail", "Type an email to add...")}</div>)}@@ -161,7 +207,7 @@ export default function NoteParticipants({ noteId, participants }: NoteParticipa<span dir="auto" className="flex-1 min-w-0 truncate text-xs text-foreground/70">{p.displayName || p.email.split("@")[0]}{p.self && (- <span className="ms-1 text-foreground/30">+ <span className="ms-1 text-foreground/45">{t("notes.participants.me", "(me)")}</span>)}@@ -169,7 +215,7 @@ export default function NoteParticipants({ noteId, participants }: NoteParticipa<buttononClick={() => removeParticipant(p.email)}- className="shrink-0 opacity-0 group-hover:opacity-100 p-0.5 rounded text-foreground/30 hover:text-foreground/60 transition-opacity cursor-pointer"+ className="shrink-0 opacity-0 group-hover:opacity-100 p-0.5 rounded text-foreground/45 hover:text-foreground/60 transition-opacity cursor-pointer"><X size={12} /></button>@@ -179,7 +225,7 @@ export default function NoteParticipants({ noteId, participants }: NoteParticipa))}{localParticipants.length === 0 && !search && (- <div className="px-3 py-4 text-center text-[11px] text-foreground/30">+ <div className="px-3 py-4 text-center text-[11px] text-foreground/45">{t("notes.participants.typeEmail", "Type an email to add...")}</div>)}diff --git a/src/components/notes/NoteRecordControl.tsx b/src/components/notes/NoteRecordControl.tsxnew file mode 100644index 000000000..ea4f9294f--- /dev/null+++ b/src/components/notes/NoteRecordControl.tsx@@ -0,0 +1,128 @@+import { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";+import { Loader2, Mic, Square } from "../icons";+import { cn } from "../lib/utils";+import { LiveWaveform } from "../ui/LiveWaveform";+import { GRADIENT_CIRCLE } from "../ui/gradientCircle";+import { analyserRms } from "../../utils/audioLevel";+import { formatMmSs } from "../../utils/formatDuration";+import { getMicAnalyser, useMeetingRecordingStore } from "../../stores/meetingRecordingStore";++// Module-level buffer: there is a single meeting mic analyser at a time.+const micLevelBuf: { current: Float32Array<ArrayBuffer> | null } = { current: null };++function readMeetingMicLevel(): number {+ const analyser = getMicAnalyser();+ if (!analyser) return useMeetingRecordingStore.getState().currentMicLevel;+ return analyserRms(analyser, micLevelBuf);+}++// Same near-opaque surface the ask bar wears while recording, so the two capsules match.+const RECORDING_SURFACE = "bg-surface-2/95 shadow-(--shadow-glass)";++const WAVE_BAR_HEIGHTS = [6, 12, 9, 11];++/** Four-bar pulse shown in the Transcript tab while a recording is running. */+export function RecordingWave({ className }: { className?: string }) {+ return (+ <span aria-hidden="true" className={cn("flex h-3 items-center gap-px", className)}>+ {WAVE_BAR_HEIGHTS.map((height, i) => (+ <span+ key={i}+ className="w-0.5 rounded-full bg-primary animate-[ow-wave_1s_ease-in-out_infinite] motion-reduce:animate-none"+ style={{ height, animationDelay: `${i * 0.15}s` }}+ />+ ))}+ </span>+ );+}++interface NoteRecordControlProps {+ isRecording: boolean;+ isProcessing: boolean;+ disabled?: boolean;+ onStart: () => void;+ onStop: () => void;+}++/** Record button for the note header: a brand circle that widens into a stop + live-wave + timer pill. */+export default function NoteRecordControl({+ isRecording,+ isProcessing,+ disabled = false,+ onStart,+ onStop,+}: NoteRecordControlProps) {+ const { t } = useTranslation();+ const [elapsed, setElapsed] = useState(0);++ useEffect(() => {+ if (!isRecording) {+ setElapsed(0);+ return;+ }+ const id = setInterval(() => setElapsed((s) => s + 1), 1000);+ return () => clearInterval(id);+ }, [isRecording]);++ return (+ <div+ className={cn(+ "h-[30px] shrink-0 overflow-hidden transition-[width] duration-500 [transition-timing-function:cubic-bezier(0.22,1,0.36,1)]",+ isRecording ? "w-40" : "w-[30px]"+ )}+ >+ {isRecording ? (+ <button+ type="button"+ onClick={onStop}+ aria-label={t("notes.editor.stop")}+ title={t("notes.editor.stop")}+ className={cn(+ "group flex h-[30px] w-full items-center gap-2 rounded-full ps-1 pe-3",+ RECORDING_SURFACE,+ "border border-primary/15 transition-[border-color] duration-200 hover:border-primary/30",+ "dark:border-primary/25 dark:hover:border-primary/40",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30"+ )}+ >+ <span+ className={cn(+ "flex h-[22px] w-[22px] shrink-0 items-center justify-center rounded-full",+ GRADIENT_CIRCLE,+ "transition-[filter] duration-150 group-hover:brightness-110"+ )}+ >+ <Square size={8} fill="currentColor" />+ </span>+ <LiveWaveform readLevel={readMeetingMicLevel} bars={10} className="h-3.5 flex-1" />+ <span className="shrink-0 text-xs font-medium tabular-nums text-foreground/85">+ {formatMmSs(elapsed)}+ </span>+ </button>+ ) : (+ <button+ type="button"+ onClick={onStart}+ disabled={disabled || isProcessing}+ aria-label={t("notes.editor.transcribe")}+ title={disabled ? t("common.managedByOrg") : undefined}+ className={cn(+ "flex h-[30px] w-[30px] items-center justify-center rounded-full",+ GRADIENT_CIRCLE,+ "transition-[filter,transform] duration-150 hover:brightness-110 active:scale-95",+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",+ disabled && "pointer-events-none opacity-40 saturate-0",+ isProcessing && "pointer-events-none"+ )}+ >+ {isProcessing ? (+ <Loader2 size={14} className="animate-spin text-white/90" />+ ) : (+ <Mic size={15} />+ )}+ </button>+ )}+ </div>+ );+}diff --git a/src/components/notes/NotesOnboarding.tsx b/src/components/notes/NotesOnboarding.tsxindex 11b0c0e0a..2c770ffca 100644--- a/src/components/notes/NotesOnboarding.tsx+++ b/src/components/notes/NotesOnboarding.tsx@@ -119,7 +119,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {<h2 className="text-sm font-semibold text-foreground mb-1">{t("notes.onboarding.actions.title")}</h2>- <p className="text-xs text-foreground/35 leading-relaxed max-w-[320px]">+ <p className="text-xs text-foreground/45 leading-relaxed max-w-[320px]">{t("notes.onboarding.actions.description")}</p></div>@@ -131,7 +131,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {"rounded-lg border transition-colors duration-200",isLLMConfigured? "border-success/20 bg-success/[0.03]"- : "border-foreground/8 dark:border-white/6 bg-surface-1/30 dark:bg-white/[0.02]"+ : "border-foreground/8 dark:border-white/10 bg-surface-1/30 dark:bg-white/[0.02]")}><button@@ -143,7 +143,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {<div className="flex items-center gap-2.5"><Zapsize={13}- className={cn(isLLMConfigured ? "text-success/60" : "text-foreground/30")}+ className={cn(isLLMConfigured ? "text-success/60" : "text-foreground/45")}/><span className="text-xs font-medium text-foreground/70">{t("notes.onboarding.llm.title")}@@ -157,7 +157,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {<ChevronRightsize={12}className={cn(- "text-foreground/20 transition-transform duration-200",+ "text-foreground/45 transition-transform duration-200",llmExpanded ? "rotate-90" : "rtl:rotate-180")}/>@@ -165,7 +165,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {{llmExpanded && (<div className="px-4 pb-4 space-y-3" style={{ animation: "float-up 0.2s ease-out" }}>- <p className="text-xs text-foreground/30 leading-relaxed">+ <p className="text-xs text-foreground/45 leading-relaxed">{t("notes.onboarding.llm.description")}</p>@@ -192,20 +192,20 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {"rounded-lg border transition-colors duration-200",systemAudioGranted? "border-success/20 bg-success/[0.03]"- : "border-foreground/8 dark:border-white/6 bg-surface-1/30 dark:bg-white/[0.02]"+ : "border-foreground/8 dark:border-white/10 bg-surface-1/30 dark:bg-white/[0.02]")}><div className="flex items-center justify-between w-full px-4 py-3"><div className="flex items-center gap-2.5"><Monitorsize={13}- className={cn(systemAudioGranted ? "text-success/60" : "text-foreground/30")}+ className={cn(systemAudioGranted ? "text-success/60" : "text-foreground/45")}/><div><span className="text-xs font-medium text-foreground/70">{t("notes.onboarding.systemAudio.title")}</span>- <p className="text-xs text-foreground/30 leading-relaxed mt-0.5">+ <p className="text-xs text-foreground/45 leading-relaxed mt-0.5">{t("notes.onboarding.systemAudio.description")}</p></div>@@ -241,7 +241,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {</span></div>{builtInAction && (- <div className="flex items-center gap-3 px-3 py-2.5 rounded-lg border border-foreground/6 dark:border-white/6 bg-surface-1/20 dark:bg-white/[0.02]">+ <div className="flex items-center gap-3 px-3 py-2.5 rounded-lg border border-foreground/6 dark:border-white/10 bg-surface-1/20 dark:bg-white/[0.02]"><div className="w-7 h-7 rounded-md bg-accent/8 dark:bg-accent/12 border border-accent/10 dark:border-accent/15 flex items-center justify-center shrink-0"><Sparkles size={12} className="text-accent/60" /></div>@@ -249,11 +249,11 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {<p className="text-xs font-medium text-foreground/70 truncate">{getActionName(builtInAction, t)}</p>- <p className="text-xs text-foreground/25 truncate">+ <p className="text-xs text-foreground/45 truncate">{getActionDescription(builtInAction, t)}</p></div>- <span className="text-xs text-foreground/15 font-medium shrink-0">+ <span className="text-xs text-foreground/45 font-medium shrink-0">{t("notes.actions.builtIn")}</span></div>@@ -273,7 +273,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {<div className="flex-1 min-w-0"><p className="text-xs font-medium text-foreground/70 truncate">{action.name}</p>{action.description && (- <p className="text-xs text-foreground/25 truncate">{action.description}</p>+ <p className="text-xs text-foreground/45 truncate">{action.description}</p>)}</div></div>@@ -286,7 +286,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {<divclassName={cn("rounded-lg border transition-colors duration-200",- "border-foreground/8 dark:border-white/6 bg-surface-1/30 dark:bg-white/[0.02]"+ "border-foreground/8 dark:border-white/10 bg-surface-1/30 dark:bg-white/[0.02]")}><button@@ -296,7 +296,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {className="flex items-center justify-between w-full px-4 py-3 text-start"><div className="flex items-center gap-2.5">- <Plus size={13} className="text-foreground/30" />+ <Plus size={13} className="text-foreground/45" /><span className="text-xs font-medium text-foreground/70">{t("notes.onboarding.actions.createTitle")}</span>@@ -309,7 +309,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {<ChevronRightsize={12}className={cn(- "text-foreground/20 transition-transform duration-200",+ "text-foreground/45 transition-transform duration-200",createExpanded ? "rotate-90" : "rtl:rotate-180")}/>@@ -317,7 +317,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {{createExpanded && (<div className="px-4 pb-4 space-y-2" style={{ animation: "float-up 0.2s ease-out" }}>- <p className="text-xs text-foreground/30 leading-relaxed">+ <p className="text-xs text-foreground/45 leading-relaxed">{t("notes.onboarding.actions.createDescription")}</p><inputdiff --git a/src/components/notes/NotesStructureIntroDialog.tsx b/src/components/notes/NotesStructureIntroDialog.tsxindex 2b68fa200..ac4c7ad26 100644--- a/src/components/notes/NotesStructureIntroDialog.tsx+++ b/src/components/notes/NotesStructureIntroDialog.tsx@@ -30,7 +30,7 @@ export default function NotesStructureIntroDialog({</DialogHeader><div className="space-y-3">- <div className="rounded-xl border border-border/50 bg-foreground/[0.025] dark:bg-white/[0.025] p-3.5">+ <div className="rounded-xl border border-border/70 bg-foreground/[0.025] dark:bg-white/[0.025] p-3.5"><div className="flex items-start gap-3"><div className="mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-foreground/5 text-foreground/50 dark:bg-white/5"><Lock size={13} />@@ -59,8 +59,8 @@ export default function NotesStructureIntroDialog({{t("notes.structureIntro.workspace.description")}</p>- <div className="mt-3 flex items-center gap-2 rounded-lg border border-border/40 bg-background/70 px-3 py-2.5">- <ChevronRight size={12} className="shrink-0 text-foreground/25 rtl:rotate-180" />+ <div className="mt-3 flex items-center gap-2 rounded-lg border border-border/70 bg-background/70 px-3 py-2.5">+ <ChevronRight size={12} className="shrink-0 text-foreground/45 rtl:rotate-180" /><Users size={13} className="shrink-0 text-primary/60" /><div className="min-w-0"><p className="text-xs font-medium text-foreground/80">diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsxindex 7961c48f3..f5bbe6947 100644--- a/src/components/notes/PersonalNotesView.tsx+++ b/src/components/notes/PersonalNotesView.tsx@@ -12,7 +12,9 @@ import ActionManagerDialog from "./ActionManagerDialog";import AddNotesToFolderDialog from "./AddNotesToFolderDialog";import { useActionProcessing } from "../../hooks/useActionProcessing";import type { NoteMoveTarget } from "../../hooks/useNoteDragAndDrop";-import type { NoteItem } from "../../types/electron";+import type { ActionItem, NoteItem } from "../../types/electron";+import { useActions } from "../../stores/actionStore";+import { DETAILED_NOTES_KEY } from "../../helpers/builtinActions";import {useSettingsStore,selectIsCloudNoteFormattingMode,@@ -244,6 +246,7 @@ export default function PersonalNotesView({const sessionExpectedCount = useMeetingRecordingStore((s) => s.sessionExpectedCount);const userTouchedStepper = useMeetingRecordingStore((s) => s.userTouchedStepper);const meetingRecordingAllowed = useTranscriptionContextAllowed("meeting");+ const actions = useActions();const spaces = useSpaces();const folders = useFolders();@@ -351,12 +354,10 @@ export default function PersonalNotesView({});}, [activeNote?.calendar_event_id]);- const startRecording = useCallback(async () => {- const note = activeNote ?? null;- const noteId = note?.id ?? null;+ const startRecordingForNote = useCallback(async (note: NoteItem | null) => {const seedSegments = note?.transcript ? parseTranscriptSegments(note.transcript) : [];await storeStartRecording({- noteId,+ noteId: note?.id ?? null,noteTitle: note?.title ?? null,folderId: note?.folder_id ?? null,seedSegments,@@ -365,7 +366,12 @@ export default function PersonalNotesView({expectedCountIsExplicit: isExplicitSpeakerCount(note?.expected_speaker_count),autoEndEligible: isMeetingAutoEndEligible(note),});- }, [activeNote]);+ }, []);++ const startRecording = useCallback(+ () => startRecordingForNote(activeNote ?? null),+ [activeNote, startRecordingForNote]+ );const stopRecording = useCallback(async () => {await storeStopRecording();@@ -516,9 +522,11 @@ export default function PersonalNotesView({setActiveContext(result.note.space_id, result.note.folder_id);revealContainer(result.note.space_id, result.note.folder_id);setActiveNoteId(result.note.id);+ // A new note is a recording waiting to happen: start it unless one is already live.+ if (meetingRecordingAllowed && !isTranscribing) void startRecordingForNote(result.note);}},- [t]+ [t, meetingRecordingAllowed, isTranscribing, startRecordingForNote]);const privateSpaceId = useMemo(@@ -693,19 +701,81 @@ export default function PersonalNotesView({);}+ const runNoteAction = async (action: ActionItem) => {+ if (!editorNote) return;+ const { recordingNoteId: liveNoteId, transcript: liveTranscript } =+ useMeetingRecordingStore.getState();+ const rawTranscript =+ (liveNoteId === activeNote?.id ? liveTranscript : "") || activeNoteRawTranscript;+ const noteContent = editorNote.content;+ const hasNotes = !!noteContent.trim();+ if (!hasNotes && !rawTranscript) return;++ let formattedTranscript = "";+ let meetingContext = "";+ let isMeetingNote = false;+ let knownPeople: MentionPerson[] = [];+ if (rawTranscript) {+ const segments = parseTranscriptSegments(rawTranscript);+ if (segments.length > 0) {+ isMeetingNote = true;+ const mappingRows =+ (await window.electronAPI?.getSpeakerMappings?.(editorNote.id).catch(() => [])) || [];+ const speakerMappings: Record<string, string> = {};+ for (const m of mappingRows) speakerMappings[m.speaker_id] = m.display_name;++ const identity: MeetingIdentity = {+ selfName: user?.name?.trim() || null,+ selfEmail: user?.email?.trim() || null,+ participants: parseNoteParticipants(editorNote.participants),+ };+ const selfLabel = identity.selfName || t("notes.speaker.you");+ meetingContext = buildMeetingContext(identity, selfLabel);+ formattedTranscript = buildLlmTranscript(segments, speakerMappings, selfLabel, t);+ knownPeople = collectKnownPeople(identity, speakerMappings, segments);+ }+ if (!formattedTranscript) {+ formattedTranscript = rawTranscript;+ }+ }++ const parts = [+ hasNotes ? noteContent : "",+ meetingContext,+ formattedTranscript ? `## Meeting Transcript\n${formattedTranscript}` : "",+ ]+ .filter(Boolean)+ .join("\n\n");+ runAction(action, parts, makeContentHash(`${noteContent}\n${rawTranscript}`), {+ isCloudMode,+ modelId: effectiveModelId,+ isMeetingNote,+ knownPeople,+ allowTitleGeneration: isRegenerableNoteTitle(+ editorNote.title,+ [t("notes.list.untitledNote"), t("notes.list.newNote"), t("notes.sidebar.newNote")],+ calendarEventName+ ),+ });+ };+ const generateSummary = () => {+ const action = actions.find((a) => a.translation_key === DETAILED_NOTES_KEY);+ if (action) void runNoteAction(action);+ };+return (<div className="flex h-full"><divclassName="shrink-0 overflow-hidden transition-[width] duration-300 ease-out"style={{ width: isSidePanelLayout ? 0 : "13rem" }}>- <div className="w-52 shrink-0 border-e border-border/15 dark:border-white/4 flex flex-col h-full">+ <div className="w-52 shrink-0 border-e border-border dark:border-white/10 flex flex-col h-full"><div className="px-2 pt-2 pb-1 shrink-0 space-y-0.5"><buttononClick={() => setShowActionManager(true)}className={cn("flex items-center gap-2 w-full px-2 py-1.5 rounded-md text-xs",- "text-muted-foreground/80 hover:text-foreground hover:bg-foreground/5",+ "text-foreground/85 hover:text-foreground hover:bg-foreground/5","transition-colors duration-150","focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30")}@@ -765,77 +835,10 @@ export default function PersonalNotesView({onCancelPendingSaves={cancelPendingSaves}actionProcessingState={actionProcessingState}actionName={actionName}+ onGenerateSummary={generateSummary}actionPicker={<ActionPicker- onRunAction={async (action) => {- if (!editorNote) return;- const { recordingNoteId: liveNoteId, transcript: liveTranscript } =- useMeetingRecordingStore.getState();- const rawTranscript =- (liveNoteId === activeNote?.id ? liveTranscript : "") ||- activeNoteRawTranscript;- const noteContent = editorNote.content;- const hasNotes = !!noteContent.trim();- if (!hasNotes && !rawTranscript) return;-- let formattedTranscript = "";- let meetingContext = "";- let isMeetingNote = false;- let knownPeople: MentionPerson[] = [];- if (rawTranscript) {- const segments = parseTranscriptSegments(rawTranscript);- if (segments.length > 0) {- isMeetingNote = true;- const mappingRows =- (await window.electronAPI- ?.getSpeakerMappings?.(editorNote.id)- .catch(() => [])) || [];- const speakerMappings: Record<string, string> = {};- for (const m of mappingRows) speakerMappings[m.speaker_id] = m.display_name;-- const identity: MeetingIdentity = {- selfName: user?.name?.trim() || null,- selfEmail: user?.email?.trim() || null,- participants: parseNoteParticipants(editorNote.participants),- };- const selfLabel = identity.selfName || t("notes.speaker.you");- meetingContext = buildMeetingContext(identity, selfLabel);- formattedTranscript = buildLlmTranscript(- segments,- speakerMappings,- selfLabel,- t- );- knownPeople = collectKnownPeople(identity, speakerMappings, segments);- }- if (!formattedTranscript) {- formattedTranscript = rawTranscript;- }- }-- const parts = [- hasNotes ? noteContent : "",- meetingContext,- formattedTranscript ? `## Meeting Transcript\n${formattedTranscript}` : "",- ]- .filter(Boolean)- .join("\n\n");- runAction(action, parts, makeContentHash(`${noteContent}\n${rawTranscript}`), {- isCloudMode,- modelId: effectiveModelId,- isMeetingNote,- knownPeople,- allowTitleGeneration: isRegenerableNoteTitle(- editorNote.title,- [- t("notes.list.untitledNote"),- t("notes.list.newNote"),- t("notes.sidebar.newNote"),- ],- calendarEventName- ),- });- }}+ onRunAction={runNoteAction}onManageActions={() => setShowActionManager(true)}disabled={(!editorNote?.content?.trim() &&@@ -964,7 +967,7 @@ export default function PersonalNotesView({<h3 className="text-xs font-semibold text-foreground/60 mb-1">{t(notesEmptyTitleKey(activeFolderId != null))}</h3>- <p className="text-xs text-foreground/50 dark:text-foreground/25 text-center max-w-55 mb-4">+ <p className="text-xs text-foreground/50 dark:text-foreground/45 text-center max-w-55 mb-4">{t("notes.empty.description")}</p><div className="flex items-center gap-2">@@ -980,7 +983,7 @@ export default function PersonalNotesView({{activeFolderId != null && (<buttononClick={() => setShowAddNotesDialog(true)}- className="flex items-center gap-1.5 px-4 h-7 rounded-md border border-foreground/8 dark:border-white/8 text-xs text-foreground/40 hover:text-foreground/60 hover:border-foreground/15 hover:bg-foreground/3 dark:hover:bg-white/3 transition-colors"+ className="flex items-center gap-1.5 px-4 h-7 rounded-md border border-foreground/8 dark:border-white/10 text-xs text-foreground/45 hover:text-foreground/60 hover:border-foreground/15 hover:bg-foreground/3 dark:hover:bg-white/3 transition-colors">{t("notes.addToFolder.addExisting")}</button>@@ -992,7 +995,7 @@ export default function PersonalNotesView({<h3 className="text-xs font-semibold text-foreground/60 mb-1">{t("notes.empty.selectTitle")}</h3>- <p className="text-xs text-foreground/50 dark:text-foreground/25 text-center max-w-50">+ <p className="text-xs text-foreground/50 dark:text-foreground/45 text-center max-w-50">{t("notes.empty.selectDescription")}</p></>diff --git a/src/components/notes/ShareNoteDialog.tsx b/src/components/notes/ShareNoteDialog.tsxindex a92e982eb..a882defdd 100644--- a/src/components/notes/ShareNoteDialog.tsx+++ b/src/components/notes/ShareNoteDialog.tsx@@ -1,6 +1,6 @@import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import { Check, Copy, Link2, Loader2, MoreHorizontal, Users } from "../icons";+import { Check, Copy, FileText, Link2, Loader2, MoreHorizontal, Users } from "../icons";import { Dialog, DialogContent, DialogDescription, DialogTitle } from "../ui/dialog";import { Button } from "../ui/button";import {@@ -54,13 +54,29 @@ const SHARE_VISIBILITY_OPTIONS: Array<{ id: ShareVisibility }> = [{ id: "domain" },];+export interface NoteExportOption {+ id: string;+ label: string;+ onSelect: () => void;+}+interface ShareNoteDialogProps {open: boolean;onOpenChange: (open: boolean) => void;note: NoteItem;+ /** Local export formats offered below the sharing controls. */+ exportOptions?: NoteExportOption[];+ /** Opened from the link segment of the Share button: copy the link as soon as it is usable. */+ copyLinkOnOpen?: boolean;}-export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteDialogProps) {+export default function ShareNoteDialog({+ open,+ onOpenChange,+ note,+ exportOptions = [],+ copyLinkOnOpen = false,+}: ShareNoteDialogProps) {const { user } = useAuth();const ownerName: string | null = user?.name ?? null;const ownerEmail: string = user?.email ?? "";@@ -407,6 +423,18 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD}}, [cloudId, share, canUseLink, note.share_token, applyVisibility, copyLink, rotateAndCopy]);+ const copyIntentHandled = useRef(false);+ useEffect(() => {+ if (!open) {+ copyIntentHandled.current = false;+ return;+ }+ if (copyLinkOnOpen && !copyIntentHandled.current && share && !loading && canUseLink) {+ copyIntentHandled.current = true;+ void handleLinkButton();+ }+ }, [open, copyLinkOnOpen, share, loading, canUseLink, handleLinkButton]);+const handleInvite = useCallback(async () => {if (!cloudId || !canInvite) return;const trimmed = emailInput.trim();@@ -732,11 +760,11 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD<div className="absolute z-20 top-9 start-0 end-[72px] max-h-44 overflow-y-auto rounded-lg border border-border bg-popover p-1 shadow-lg">{searchingSuggestions && suggestions.length === 0 ? (<div className="h-8 flex items-center justify-center">- <Loader2 size={12} className="animate-spin text-foreground/40" />+ <Loader2 size={12} className="animate-spin text-foreground/45" /></div>) : suggestions.length === 0 ? (<div className="h-8 flex items-center justify-center">- <span className="text-xs text-foreground/40">+ <span className="text-xs text-foreground/45">{t("noteEditor.share.dialog.noResults")}</span></div>@@ -766,7 +794,7 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD{principal.name && principal.email && (<spandir="ltr"- className="block text-[11px] text-foreground/40 truncate"+ className="block text-[11px] text-foreground/45 truncate">{principal.email}</span>@@ -806,7 +834,7 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD}secondaryDir="ltr"trailing={- <span className="text-[11px] text-foreground/40">+ <span className="text-[11px] text-foreground/45">{t("noteEditor.share.dialog.owner")}</span>}@@ -846,7 +874,7 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteDprimary={space.name}secondary={t("noteEditor.share.dialog.teamAudience")}trailing={- <span className="text-[11px] text-foreground/40">+ <span className="text-[11px] text-foreground/45">{t("noteEditor.share.dialog.editor")}</span>}@@ -900,7 +928,7 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD</DropdownMenuContent></DropdownMenu>) : (- <span className="text-[11px] text-foreground/40">+ <span className="text-[11px] text-foreground/45">{t("noteEditor.share.dialog.viewer")}</span>)@@ -909,7 +937,7 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD))}</div>- <div className="flex items-center gap-2 pt-3 mt-1 border-t border-border/60">+ <div className="flex items-center gap-2 pt-3 mt-1 border-t border-border/70"><ShareVisibilityMenuvalue={share?.visibility ?? "private"}ownerDomain={ownerDomain}@@ -955,6 +983,30 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD</div></>)}++ {exportOptions.length > 0 && (+ <div className="mt-1 border-t border-border/70 pt-3">+ <p className="text-[10px] font-semibold uppercase tracking-[0.08em] text-foreground/55">+ {t("noteEditor.share.dialog.export")}+ </p>+ <div className="mt-2 grid grid-cols-2 gap-2">+ {exportOptions.map((option) => (+ <button+ key={option.id}+ type="button"+ onClick={() => {+ option.onSelect();+ onOpenChange(false);+ }}+ className="flex items-center gap-2.5 rounded-xl border border-border/70 px-3 py-2.5 text-start text-xs font-medium text-foreground/80 transition-colors hover:bg-surface-3 hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/30 dark:border-white/10 dark:hover:bg-surface-2"+ >+ <FileText size={14} className="shrink-0 text-foreground/55" />+ {option.label}+ </button>+ ))}+ </div>+ </div>+ )}</DialogContent></Dialog>);@@ -985,7 +1037,7 @@ function MemberRow({{primary}</p>{secondary && (- <p dir={secondaryDir} className="text-[11px] text-foreground/40 truncate">+ <p dir={secondaryDir} className="text-[11px] text-foreground/45 truncate">{secondary}</p>)}@@ -1109,7 +1161,7 @@ function AccessGrantRow({</DropdownMenuContent></DropdownMenu>) : (- <span className="text-[11px] text-foreground/40">{permissionLabel}</span>+ <span className="text-[11px] text-foreground/45">{permissionLabel}</span>)}/>diff --git a/src/components/notes/ShareVisibilityMenu.tsx b/src/components/notes/ShareVisibilityMenu.tsxindex 133ac8fc5..6e35b98b9 100644--- a/src/components/notes/ShareVisibilityMenu.tsx+++ b/src/components/notes/ShareVisibilityMenu.tsx@@ -51,7 +51,7 @@ export default function ShareVisibilityMenu({>{current.icon}<span className="max-w-44 truncate">{current.label}</span>- <ChevronDown size={12} className="text-foreground/40 shrink-0" />+ <ChevronDown size={12} className="text-foreground/45 shrink-0" /></button></DropdownMenuTrigger><DropdownMenuContent align="start" sideOffset={4} className="min-w-[260px]">diff --git a/src/components/notes/SpaceMembersDialog.tsx b/src/components/notes/SpaceMembersDialog.tsxindex 7d7494096..41ca78326 100644--- a/src/components/notes/SpaceMembersDialog.tsx+++ b/src/components/notes/SpaceMembersDialog.tsx@@ -251,7 +251,7 @@ export default function SpaceMembersDialog({ space, open, onOpenChange }: SpaceM</DialogHeader>{teamsError && space.workspace_id && (- <div className="rounded border border-border/70 dark:border-border-subtle/50 px-3 py-2.5 flex items-center justify-between gap-2">+ <div className="rounded border border-border/70 dark:border-border-subtle/60 px-3 py-2.5 flex items-center justify-between gap-2"><p className="text-xs text-muted-foreground">{t("notes.spaces.teams.loadError")}</p><Buttonvariant="ghost"@@ -298,7 +298,7 @@ export default function SpaceMembersDialog({ space, open, onOpenChange }: SpaceMsize={12}aria-hidden="true"className={cn(- "shrink-0 text-foreground/40 transition-transform duration-150",+ "shrink-0 text-foreground/45 transition-transform duration-150",expanded ? "rotate-90" : "rtl:rotate-180")}/>@@ -306,7 +306,7 @@ export default function SpaceMembersDialog({ space, open, onOpenChange }: SpaceM{teamRef.name}</span>{memberCount != null && (- <span className="ms-auto text-[10px] text-foreground/40 shrink-0">+ <span className="ms-auto text-[10px] text-foreground/45 shrink-0">{t("settingsPage.workspace.teams.memberCount", { count: memberCount })}</span>)}@@ -335,7 +335,7 @@ export default function SpaceMembersDialog({ space, open, onOpenChange }: SpaceM</SelectContent></Select>) : (- <span className="text-[10px] text-foreground/40 shrink-0 px-1">+ <span className="text-[10px] text-foreground/45 shrink-0 px-1">{t((teamRef.access ?? "admin") === "admin"? "notes.spaces.teamsMembers.accessAdmin"diff --git a/src/components/notes/SpacesTree.tsx b/src/components/notes/SpacesTree.tsxindex 7c0abe01d..83f260296 100644--- a/src/components/notes/SpacesTree.tsx+++ b/src/components/notes/SpacesTree.tsx@@ -94,19 +94,20 @@ const FOLDER_INPUT_CLASS ="w-full h-6 bg-foreground/5 dark:bg-white/5 rounded px-2 text-xs text-foreground outline-none border border-primary/30 focus:border-primary/50";const ROW_BASE_CLASS =- "group relative flex items-center gap-1.5 rounded-md cursor-pointer select-none " ++ "group relative flex items-center gap-2 rounded-md cursor-pointer select-none " +"transition-colors duration-150 outline-none focus-visible:ring-1 focus-visible:ring-ring/30";+// Button forces svg children to 16px; these 20px controls want the 12px icon they pass.const KEBAB_BUTTON_CLASS =- "h-5 w-5 rounded-sm opacity-0 group-hover:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100 " +- "transition-opacity text-muted-foreground/60 dark:text-muted-foreground/40 " ++ "h-5 w-5 rounded-sm [&_svg]:size-3! opacity-0 group-hover:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100 " ++ "transition-opacity text-muted-foreground/70 dark:text-muted-foreground/70 " +"hover:text-foreground/60 hover:bg-foreground/5 active:bg-foreground/8";const KEBAB_TRIGGER_CLASS = cn(KEBAB_BUTTON_CLASS, "absolute end-1.5");const HOVER_REVEAL_BUTTON_CLASS =- "h-5 w-5 rounded-sm opacity-0 focus-visible:opacity-100 transition-opacity " +- "text-muted-foreground/60 dark:text-muted-foreground/40 hover:text-foreground/60 " ++ "h-5 w-5 rounded-sm [&_svg]:size-3! opacity-0 focus-visible:opacity-100 transition-opacity " ++ "text-muted-foreground/70 dark:text-muted-foreground/70 hover:text-foreground/60 " +"hover:bg-foreground/5 active:bg-foreground/8";const MENU_ITEM_CLASS = "text-xs gap-2 rounded-md px-2 py-1";@@ -194,15 +195,16 @@ function SectionHeader({isDragOver?: boolean;isDropSuccess?: boolean;}) {+ // All-caps has no descenders, so its optical centre sits ~1px above the line box.const labelClassName =- "text-[10px] font-semibold uppercase tracking-wide text-foreground/50 select-none";+ "translate-y-px text-[11px] font-medium uppercase tracking-[0.08em] text-foreground/55 select-none";return (<divrole="none"{...dropHandlers}className={cn(- "group flex items-center justify-between h-6 px-2 mt-1 rounded-md",+ "group flex items-center justify-between h-7 px-2 rounded-md",isDragOver && DROP_TARGET_CLASS,isDropSuccess && DROP_SUCCESS_CLASS,className@@ -214,11 +216,11 @@ function SectionHeader({type="button"aria-expanded={expanded}onClick={onToggle}- className="flex h-full min-w-0 items-center gap-1 rounded-sm outline-none hover:text-foreground focus-visible:ring-1 focus-visible:ring-ring/30"+ className="flex h-full min-w-0 items-center gap-2 rounded-sm outline-none hover:text-foreground focus-visible:ring-1 focus-visible:ring-ring/30"><spanaria-hidden="true"- className="relative h-3.5 w-3.5 flex items-center justify-center shrink-0"+ className="relative h-4 w-4 flex items-center justify-center shrink-0">{icon && (<span className="absolute inset-0 flex items-center justify-center transition-opacity duration-150 group-hover:opacity-0">@@ -226,9 +228,9 @@ function SectionHeader({</span>)}<ChevronRight- size={11}+ size={12}className={cn(- "text-foreground/40 transition-all duration-150",+ "text-foreground/60 transition-all duration-150",expanded ? "rotate-90" : "rtl:rotate-180",icon && "opacity-0 group-hover:opacity-100")}@@ -294,7 +296,7 @@ function RowToggle({e.stopPropagation();onToggle();}}- className="relative h-4 w-4 flex items-center justify-center shrink-0 rounded-sm text-foreground/30 hover:text-foreground/60 transition-colors duration-150"+ className="relative h-4 w-4 flex items-center justify-center shrink-0 rounded-sm text-foreground/50 hover:text-foreground/80 transition-colors duration-150">{icon && (<span className="absolute inset-0 flex items-center justify-center transition-opacity duration-150 group-hover:opacity-0">@@ -353,8 +355,8 @@ function SearchableMoveSubmenu({<><div className="relative px-1.5 py-0.5"><Search- size={9}- className="absolute start-3.5 top-1/2 -translate-y-1/2 text-foreground/15 pointer-events-none"+ size={12}+ className="absolute start-3 top-1/2 -translate-y-1/2 text-foreground/45 pointer-events-none"/><inputdir="auto"@@ -362,7 +364,7 @@ function SearchableMoveSubmenu({onChange={(event) => onSearchChange(event.target.value)}onKeyDown={(event) => event.stopPropagation()}placeholder={searchPlaceholder}- className="input-inline w-full ps-4.5 pe-1 py-0.5 text-xs text-foreground placeholder:text-foreground/15 outline-none border-none appearance-none"+ className="input-inline w-full ps-8 pe-1 py-1 text-xs text-foreground placeholder:text-foreground/45 outline-none border-none appearance-none"/></div><DropdownMenuSeparator />@@ -382,7 +384,7 @@ function SearchableMoveSubmenu({function SpaceMenuIcon({ space }: { space: SpaceItem }) {if (space.kind === "private") {- return <Lock size={11} className="text-muted-foreground/60 shrink-0" />;+ return <Lock size={11} className="text-muted-foreground/70 shrink-0" />;}if (space.emoji) {return (@@ -391,7 +393,7 @@ function SpaceMenuIcon({ space }: { space: SpaceItem }) {</span>);}- return <Users size={11} className="text-muted-foreground/60 shrink-0" />;+ return <Users size={11} className="text-muted-foreground/70 shrink-0" />;}function SpaceRow({@@ -451,7 +453,7 @@ function SpaceRow({style={treeRowActionClearanceStyle()}className={cn(ROW_BASE_CLASS,- "h-[30px] px-2",+ "h-7 px-2",isActive? "bg-primary/8 dark:bg-primary/10": "hover:bg-foreground/4 dark:hover:bg-white/4",@@ -465,10 +467,10 @@ function SpaceRow({icon={isPrivate ? (<Lock- size={13}+ size={14}className={cn("transition-colors duration-150",- isActive ? "text-primary" : "text-foreground/35 dark:text-foreground/20"+ isActive ? "text-primary" : "text-foreground/55 dark:text-foreground/45")}/>) : space.emoji ? (@@ -477,12 +479,12 @@ function SpaceRow({</span>) : (<Users- size={13}+ size={14}className={cn("transition-colors duration-150",isDragOver || isActive? "text-primary"- : "text-foreground/35 dark:text-foreground/20"+ : "text-foreground/55 dark:text-foreground/45")}/>)@@ -491,8 +493,8 @@ function SpaceRow({<spandir="auto"className={cn(- "text-xs truncate flex-1 transition-colors duration-150",- isDragOver || isActive ? "text-foreground font-medium" : "text-foreground/70"+ "text-[13px] truncate flex-1 transition-colors duration-150",+ isDragOver || isActive ? "text-foreground font-medium" : "text-foreground/85")}>{displayName}@@ -533,7 +535,7 @@ function SpaceRow({}}className={MENU_ITEM_CLASS}>- <Users size={11} className="text-muted-foreground/60" />+ <Users size={11} className="text-muted-foreground/70" />{t("notes.spaces.teamsMembers.menu")}</DropdownMenuItem>)}@@ -546,7 +548,7 @@ function SpaceRow({}}className={MENU_ITEM_CLASS}>- <Pencil size={11} className="text-muted-foreground/60" />+ <Pencil size={11} className="text-muted-foreground/70" />{t("notes.spaces.rename")}</DropdownMenuItem><DropdownMenuItem@@ -556,7 +558,7 @@ function SpaceRow({}}className={MENU_ITEM_CLASS}>- <Smile size={11} className="text-muted-foreground/60" />+ <Smile size={11} className="text-muted-foreground/70" />{t("notes.spaces.changeEmoji")}</DropdownMenuItem></>@@ -676,10 +678,10 @@ function FolderRow({onToggle={onToggle}icon={<Folder- size={13}+ size={14}className={cn("transition-colors duration-150",- isDragOver || isActive ? "text-primary" : "text-foreground/35 dark:text-foreground/20"+ isDragOver || isActive ? "text-primary" : "text-foreground/55 dark:text-foreground/45")}/>}@@ -687,10 +689,10 @@ function FolderRow({<spandir="auto"className={cn(- "text-xs truncate flex-1 transition-colors duration-150",+ "text-[13px] truncate flex-1 transition-colors duration-150",isDragOver || isActive? "text-foreground font-medium"- : "text-foreground/50 group-hover:text-foreground/70"+ : "text-foreground/85 group-hover:text-foreground")}>{displayName}@@ -731,7 +733,7 @@ function FolderRow({}}className={MENU_ITEM_CLASS}>- <ExternalLink size={11} className="text-muted-foreground/60" />+ <ExternalLink size={11} className="text-muted-foreground/70" />{t("notes.context.showInFileManager", { manager: fileManagerName })}</DropdownMenuItem>)}@@ -745,12 +747,12 @@ function FolderRow({}}className={MENU_ITEM_CLASS}>- <Pencil size={11} className="text-muted-foreground/60" />+ <Pencil size={11} className="text-muted-foreground/70" />{t("notes.context.rename")}</DropdownMenuItem>{canMoveToSpace && (<SearchableMoveSubmenu- icon={<Users size={11} className="text-muted-foreground/60" />}+ icon={<Users size={11} className="text-muted-foreground/70" />}label={t("notes.spaces.moveToSpace")}itemCount={spaces.length}search={spaceSearch}@@ -778,7 +780,7 @@ function FolderRow({);})}{spaceSearch && filteredSpaces.length === 0 && (- <p className="text-xs text-foreground/20 text-center py-1.5">+ <p className="text-xs text-foreground/50 text-center py-1.5">{t("notes.spaces.noSpacesFound")}</p>)}@@ -948,21 +950,21 @@ function NoteLeaf({)}><FileText- size={13}+ size={14}className={cn("shrink-0 transition-colors duration-150",isActive? "text-primary"- : "text-foreground/30 dark:text-foreground/20 group-hover:text-foreground/45 dark:group-hover:text-foreground/30"+ : "text-foreground/50 dark:text-foreground/45 group-hover:text-foreground/70 dark:group-hover:text-foreground/55")}/><spandir="auto"className={cn(- "text-xs truncate flex-1 transition-colors duration-150",+ "text-[13px] truncate flex-1 transition-colors duration-150",isActive? "text-foreground font-medium"- : "text-foreground/60 group-hover:text-foreground/80"+ : "text-foreground/85 group-hover:text-foreground")}>{title}@@ -972,7 +974,7 @@ function NoteLeaf({size={11}role="img"aria-label={t("notes.list.shared")}- className="text-foreground/40 shrink-0 transition-opacity group-hover:opacity-0"+ className="text-foreground/45 shrink-0 transition-opacity group-hover:opacity-0"/>)}{hasActions && (@@ -1006,7 +1008,7 @@ function NoteLeaf({}}className={MENU_ITEM_CLASS}>- <ExternalLink size={11} className="text-muted-foreground/60" />+ <ExternalLink size={11} className="text-muted-foreground/70" />{t("notes.context.showInFileManager", { manager: fileManagerName })}</DropdownMenuItem>{(canMove || canDelete) && <DropdownMenuSeparator />}@@ -1014,7 +1016,7 @@ function NoteLeaf({)}{canMove && (<SearchableMoveSubmenu- icon={<FolderOpen size={11} className="text-muted-foreground/60" />}+ icon={<FolderOpen size={11} className="text-muted-foreground/70" />}label={multiSpace ? t("notes.spaces.moveTo") : t("notes.context.moveToFolder")}itemCount={moveOptions.length}search={moveSearch}@@ -1041,7 +1043,7 @@ function NoteLeaf({}}}placeholder={t("notes.folders.folderName")}- className="input-inline w-full px-2 py-1.5 rounded-md bg-transparent text-xs text-foreground placeholder:text-foreground/20 outline-none border-none appearance-none"+ className="input-inline w-full px-2 py-1.5 rounded-md bg-transparent text-xs text-foreground placeholder:text-foreground/45 outline-none border-none appearance-none"/></div>) : (@@ -1050,7 +1052,7 @@ function NoteLeaf({e.preventDefault();setIsCreating(true);}}- className={cn(MENU_ITEM_CLASS, "text-foreground/40")}+ className={cn(MENU_ITEM_CLASS, "text-foreground/70")}><Plus size={10} />{t("notes.context.newFolder")}@@ -1069,7 +1071,7 @@ function NoteLeaf({))}{filteredOptions.length === 0 && (- <p className="text-xs text-foreground/20 text-center py-1.5">+ <p className="text-xs text-foreground/50 text-center py-1.5">{t("notes.context.noResults")}</p>)}@@ -1940,7 +1942,7 @@ export default function SpacesTree({}}onBlur={confirmCreateFolder}placeholder={t("notes.folders.folderName")}- className={cn(FOLDER_INPUT_CLASS, "placeholder:text-foreground/20")}+ className={cn(FOLDER_INPUT_CLASS, "placeholder:text-foreground/45")}/></div>)}@@ -1950,7 +1952,7 @@ export default function SpacesTree({{showSkeletons && <SkeletonRows />}{showEmptySpace && (<div className="ps-[18px] pe-2 py-1">- <p className="text-xs text-foreground/40 leading-relaxed mb-1.5">+ <p className="text-xs text-foreground/60 leading-relaxed mb-1.5">{t("notes.spaces.emptySpace", { space: space.name })}</p><Button@@ -2065,7 +2067,7 @@ export default function SpacesTree({if (isTreeLoading && spaces.length === 0) {return (<div className="flex-1 flex items-start justify-center py-8">- <Loader2 size={12} className="animate-spin text-foreground/15" />+ <Loader2 size={12} className="animate-spin text-foreground/45" /></div>);}@@ -2075,12 +2077,12 @@ export default function SpacesTree({<divrole="tree"aria-label={t("notes.list.title")}- className="flex-1 overflow-y-auto px-1.5 pb-2 space-y-px"+ className="scrollbar-hidden flex-1 overflow-y-auto px-1.5 pb-2 space-y-px"><div role="none" className="group/section"><SectionHeaderlabel={t("notes.spaces.privateSpaces")}- icon={<Lock size={11} className="text-foreground/40" />}+ icon={<Lock size={12} className="text-foreground/55" />}expanded={privateSectionExpanded}onToggle={() => {if (privateSpace) toggleContainerExpanded(spaceContainerKey(privateSpace.id));@@ -2126,7 +2128,7 @@ export default function SpacesTree({? t("workspaces.switcher.workspaces"): t("notes.spaces.teamSpaces")}- className="mt-3"+ className="mt-4"action={<div className="flex items-center gap-px">{onShowStructureIntro && (@@ -2175,7 +2177,7 @@ export default function SpacesTree({<spandir="auto"title={workspace.name}- className="min-w-0 text-[10px] font-medium text-foreground/40 truncate"+ className="min-w-0 text-[10px] font-medium text-foreground/60 truncate">{workspace.name}</span>@@ -2218,7 +2220,7 @@ export default function SpacesTree({</div>)) : (- <p className="ps-[18px] pe-2 py-1 text-xs text-foreground/40 leading-relaxed">+ <p className="ps-[18px] pe-2 py-1 text-xs text-foreground/60 leading-relaxed">{t("notes.spaces.emptyTeamHint")}</p>))}diff --git a/src/components/notes/UploadAudioView.tsx b/src/components/notes/UploadAudioView.tsxindex 35322ce94..c2341a5f3 100644--- a/src/components/notes/UploadAudioView.tsx+++ b/src/components/notes/UploadAudioView.tsx@@ -88,8 +88,8 @@ const MAX_BATCH_URLS = 50;const uploadFieldClass = cn("rounded-lg text-xs","bg-surface-1/40 dark:bg-white/[0.03] backdrop-blur-sm",- "border border-foreground/6 dark:border-white/6",- "text-foreground/70 placeholder:text-foreground/20",+ "border border-foreground/6 dark:border-white/10",+ "text-foreground/70 placeholder:text-foreground/45","focus:outline-none focus:border-foreground/12 dark:focus:border-white/10","transition-colors");@@ -978,7 +978,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa<div className="flex items-center gap-3 my-3"><div className="h-px flex-1 bg-foreground/5 dark:bg-white/5" />- <span className="text-[10px] text-foreground/20 uppercase tracking-wider">+ <span className="text-[10px] text-foreground/45 uppercase tracking-wider">{t("notes.upload.orDivider")}</span><div className="h-px flex-1 bg-foreground/5 dark:bg-white/5" />@@ -1003,7 +1003,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: UploasetUrlExpanded(false);setUrlInput("");}}- className="h-7 text-xs text-foreground/30"+ className="h-7 text-xs text-foreground/45">{t("notes.upload.cancel")}</Button>@@ -1031,12 +1031,12 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa) : /\.(mp3|wav|m4a|ogg|flac|aac|webm|opus)(\?|$)/i.test(urlInput) ? (<FileAudiosize={13}- className="absolute left-2.5 top-1/2 -translate-y-1/2 text-foreground/20 z-10 pointer-events-none"+ className="absolute left-2.5 top-1/2 -translate-y-1/2 text-foreground/45 z-10 pointer-events-none"/>) : (<Link2size={13}- className="absolute left-2.5 top-1/2 -translate-y-1/2 text-foreground/20 z-10 pointer-events-none"+ className="absolute left-2.5 top-1/2 -translate-y-1/2 text-foreground/45 z-10 pointer-events-none"/>)}<input@@ -1070,10 +1070,10 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploaaria-label={t("notes.upload.urlSubmit")}className={cn("absolute right-px top-px bottom-px w-7 rounded-r-[7px] flex items-center justify-center transition-colors",- "border-l border-foreground/6 dark:border-white/6",+ "border-l border-foreground/6 dark:border-white/10",urlInput.trim()- ? "text-foreground/40 hover:text-foreground/60 hover:bg-foreground/[0.03] dark:hover:bg-white/[0.03]"- : "text-foreground/10"+ ? "text-foreground/45 hover:text-foreground/60 hover:bg-foreground/[0.03] dark:hover:bg-white/[0.03]"+ : "text-foreground/45")}><ChevronRight size={14} />@@ -1204,7 +1204,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa</p>{downloadProgress.title && (- <p dir="auto" className="text-xs text-foreground/20 mt-1 truncate max-w-50">+ <p dir="auto" className="text-xs text-foreground/45 mt-1 truncate max-w-50">{downloadProgress.title}</p>)}@@ -1213,7 +1213,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploavariant="ghost"size="sm"onClick={handleCancelDownload}- className="mt-3 h-7 text-xs text-foreground/30"+ className="mt-3 h-7 text-xs text-foreground/45">{t("notes.upload.urlCancelDownload")}</Button>@@ -1255,10 +1255,10 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa<div className="max-w-[320px] mx-auto mt-4"><div className="flex items-center justify-between"><div>- <p className="text-xs text-foreground/40 font-medium">+ <p className="text-xs text-foreground/45 font-medium">{t("notes.upload.speakerDetection")}</p>- <p className="text-[10px] text-foreground/20 mt-0.5">+ <p className="text-[10px] text-foreground/45 mt-0.5">{t("notes.upload.speakerDetectionDescription")}</p></div>@@ -1304,7 +1304,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa!isOpenWhisprCloud &&!isSelfHosted &&cloudTranscriptionProvider === "openai" && (- <p className="text-[10px] text-foreground/25 mt-1.5">+ <p className="text-[10px] text-foreground/45 mt-1.5">{t("notes.upload.openaiDiarizeNote")}</p>)}@@ -1313,7 +1313,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa!isOpenWhisprCloud &&!isSelfHosted &&cloudTranscriptionProvider === "mistral" && (- <p className="text-[10px] text-foreground/25 mt-1.5">+ <p className="text-[10px] text-foreground/45 mt-1.5">{t("notes.upload.mistralDiarizeNote")}</p>)}@@ -1334,7 +1334,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa)}{diarizationEnabled && isOpenWhisprCloud && (- <p className="text-[10px] text-foreground/25 mt-1.5">+ <p className="text-[10px] text-foreground/45 mt-1.5">{t("notes.upload.diarizationRunsLocally")}</p>)}@@ -1368,7 +1368,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa"mt-1 w-full h-8 px-2.5 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none")}/>- <p className="text-[10px] text-foreground/25 mt-1.5">+ <p className="text-[10px] text-foreground/45 mt-1.5">{t("notes.upload.numSpeakersHint")}</p></div>@@ -1428,18 +1428,18 @@ function NoProviderView({ t, onOpenSettings }: NoProviderViewProps) {className="flex flex-col items-center gap-4 py-2"style={{ animation: "float-up 0.4s ease-out" }}>- <div className="w-10 h-10 rounded-[10px] bg-linear-to-b from-foreground/5 to-foreground/2 dark:from-white/8 dark:to-white/3 border border-foreground/8 dark:border-white/8 flex items-center justify-center">+ <div className="w-10 h-10 rounded-[10px] bg-linear-to-b from-foreground/5 to-foreground/2 dark:from-white/8 dark:to-white/3 border border-foreground/8 dark:border-white/10 flex items-center justify-center"><Settingssize={17}strokeWidth={1.5}- className="text-foreground/25 dark:text-foreground/35"+ className="text-foreground/45 dark:text-foreground/45"/></div><div className="text-center"><h2 className="text-xs font-semibold text-foreground mb-1">{t("notes.upload.noProviderTitle")}</h2>- <p className="text-xs text-foreground/30 leading-relaxed max-w-60">+ <p className="text-xs text-foreground/45 leading-relaxed max-w-60">{t("notes.upload.noProviderDescription")}</p></div>@@ -1491,11 +1491,11 @@ function IdleView({return (<><div className="flex flex-col items-center mb-5">- <div className="w-10 h-10 rounded-[10px] bg-linear-to-b from-foreground/5 to-foreground/[0.02] dark:from-white/8 dark:to-white/3 border border-foreground/8 dark:border-white/8 flex items-center justify-center mb-4">+ <div className="w-10 h-10 rounded-[10px] bg-linear-to-b from-foreground/5 to-foreground/[0.02] dark:from-white/8 dark:to-white/3 border border-foreground/8 dark:border-white/10 flex items-center justify-center mb-4"><Uploadsize={17}strokeWidth={1.5}- className="text-foreground/25 dark:text-foreground/35"+ className="text-foreground/45 dark:text-foreground/45"/></div><h2 className="text-xs font-semibold text-foreground mb-1">{t("notes.upload.title")}</h2>@@ -1535,7 +1535,7 @@ function IdleView({className={cn("relative rounded-lg p-8 text-center cursor-pointer transition-[background-color,border-color,transform] duration-300 group","bg-surface-1/40 dark:bg-white/[0.03] backdrop-blur-sm",- "border border-foreground/6 dark:border-white/6",+ "border border-foreground/6 dark:border-white/10","hover:bg-surface-1/60 dark:hover:bg-white/[0.05] hover:border-foreground/12 dark:hover:border-white/10","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/30",isDragOver && "border-primary/30 bg-primary/[0.04] dark:bg-primary/[0.06] scale-[1.01]"@@ -1554,13 +1554,13 @@ function IdleView({<div className="w-8 h-8 rounded-full bg-foreground/[0.03] dark:bg-white/[0.04] flex items-center justify-center mb-1"><Uploadsize={14}- className="text-foreground/20 dark:text-foreground/30 group-hover:text-foreground/40 transition-colors"+ className="text-foreground/45 dark:text-foreground/45 transition-colors"/></div>- <p className="text-xs text-foreground/35 group-hover:text-foreground/50 transition-colors">+ <p className="text-xs text-foreground/45 group-hover:text-foreground/50 transition-colors">{t("notes.upload.dropOrBrowse")}</p>- <p className="text-xs text-foreground/15 tracking-wide">+ <p className="text-xs text-foreground/45 tracking-wide">{t("notes.upload.supportedFormats")}</p></div>@@ -1620,7 +1620,7 @@ function SelectedView({return (<div style={{ animation: "float-up 0.3s ease-out" }}>- <div className="rounded-lg border border-foreground/8 dark:border-white/6 bg-surface-1/40 dark:bg-white/[0.03] backdrop-blur-sm p-4 mb-3">+ <div className="rounded-lg border border-foreground/8 dark:border-white/10 bg-surface-1/40 dark:bg-white/[0.03] backdrop-blur-sm p-4 mb-3"><div className="flex items-center gap-3"><div className="w-9 h-9 rounded-[8px] bg-primary/8 dark:bg-primary/12 border border-primary/10 dark:border-primary/15 flex items-center justify-center shrink-0"><FileAudio size={15} className="text-primary/60" />@@ -1629,7 +1629,7 @@ function SelectedView({<p dir="ltr" className="text-xs text-foreground/70 truncate font-medium">{file.name}</p>- {file.size && <p className="text-xs text-foreground/25 mt-0.5">{file.size}</p>}+ {file.size && <p className="text-xs text-foreground/45 mt-0.5">{file.size}</p>}<UploadModelSettingsButtonlabel={getActiveModelLabel()}actionLabel={t("notes.upload.noProviderAction")}@@ -1637,10 +1637,7 @@ function SelectedView({className="block max-w-full truncate text-start text-xs text-foreground/70 mt-0.5"/></div>- <button- onClick={reset}- className="text-foreground/15 hover:text-foreground/40 transition-colors p-1 rounded"- >+ <button onClick={reset} className="text-foreground/45 transition-colors p-1 rounded"><X size={12} /></button></div>@@ -1661,7 +1658,7 @@ function SelectedView({<p className="text-xs text-foreground/50 leading-relaxed">{t("notes.upload.byokTooLarge", { size: byokMaxFileSizeMb })}</p>- <p className="text-xs text-foreground/35 leading-relaxed mt-1.5">+ <p className="text-xs text-foreground/45 leading-relaxed mt-1.5">{t("notes.upload.byokTooLargeDetail", { size: byokMaxFileSizeMb })}</p><p className="text-xs text-foreground/50 leading-relaxed mt-1.5 font-medium">@@ -1685,7 +1682,7 @@ function SelectedView({{/* Cloud large file info (Pro user, will be chunked) */}{isLargeFile && !requiresUpgrade && !fileTooLarge && isOpenWhisprCloud && (- <p className="text-xs text-foreground/20 text-center mb-3">+ <p className="text-xs text-foreground/45 text-center mb-3">{t("notes.upload.largeFileNote")}</p>)}@@ -1747,7 +1744,7 @@ function SelectedView({variant="ghost"size="sm"onClick={reset}- className="h-8 text-xs text-foreground/35"+ className="h-8 text-xs text-foreground/45">{t("notes.upload.cancel")}</Button>@@ -1800,7 +1797,7 @@ function TranscribingView({<p className="text-xs text-foreground/50 font-medium">{getTranscribingLabel()}</p>{hasChunkInfo ? (- <p className="text-xs text-foreground/20 mt-1">+ <p className="text-xs text-foreground/45 mt-1">{t("notes.upload.chunkProgress", {completed: chunkProgress.chunksCompleted,total: chunkProgress.chunksTotal,@@ -1808,7 +1805,7 @@ function TranscribingView({</p>) : null}{!hasChunkInfo && file ? (- <p dir="ltr" className="text-xs text-foreground/20 mt-1 truncate max-w-50">+ <p dir="ltr" className="text-xs text-foreground/45 mt-1 truncate max-w-50">{file.name}</p>) : null}@@ -1816,7 +1813,7 @@ function TranscribingView({variant="ghost"size="sm"onClick={onCancel}- className="h-7 text-xs text-foreground/30 mt-4"+ className="h-7 text-xs text-foreground/45 mt-4">{t("notes.upload.cancelTranscription")}</Button>@@ -1843,7 +1840,7 @@ function FolderSelect({}: FolderSelectProps) {return (<div className={cn("flex items-center justify-center gap-2", className)}>- <FolderOpen size={12} className="text-foreground/20 shrink-0" />+ <FolderOpen size={12} className="text-foreground/45 shrink-0" /><Select value={value} onValueChange={onChange}><SelectTrigger className="h-7 w-44 text-xs rounded-lg px-2.5 [&>svg]:h-3 [&>svg]:w-3"><SelectValue placeholder={t("notes.upload.selectFolder")} />@@ -1861,7 +1858,7 @@ function FolderSelect({<span className="flex items-center gap-1.5"><span dir="auto">{f.name}</span>{isMeetings && (- <span className="text-[8px] uppercase tracking-wider text-foreground/25 font-medium">+ <span className="text-[8px] uppercase tracking-wider text-foreground/45 font-medium">{t("notes.folders.soon")}</span>)}@@ -1954,7 +1951,7 @@ function CompleteView({<p className="text-xs text-foreground/60 font-medium mb-1">{t("notes.upload.transcriptionComplete")}</p>- <p className="text-xs text-foreground/25 max-w-[240px] text-center line-clamp-2 mb-4">+ <p className="text-xs text-foreground/45 max-w-[240px] text-center line-clamp-2 mb-4">{result.slice(0, 150)}</p>@@ -1992,7 +1989,7 @@ function CompleteView({variant="ghost"size="sm"onClick={reset}- className="h-8 text-xs text-foreground/35"+ className="h-8 text-xs text-foreground/45">{t("notes.upload.uploadAnother")}</Button>@@ -2017,7 +2014,7 @@ function ErrorView({ t, error, reset, onRetry }: ErrorViewProps) {<p className="flex-1 text-xs text-destructive/70 leading-relaxed">{error}</p><buttononClick={reset}- className="text-foreground/15 hover:text-foreground/30 transition-colors shrink-0 p-0.5 rounded"+ className="text-foreground/45 transition-colors shrink-0 p-0.5 rounded"><X size={11} /></button>@@ -2029,7 +2026,7 @@ function ErrorView({ t, error, reset, onRetry }: ErrorViewProps) {variant="ghost"size="sm"onClick={onRetry}- className="h-7 text-xs text-foreground/40"+ className="h-7 text-xs text-foreground/45">{t("notes.upload.retry")}</Button>@@ -2037,7 +2034,7 @@ function ErrorView({ t, error, reset, onRetry }: ErrorViewProps) {variant="ghost"size="sm"onClick={reset}- className="h-7 text-xs text-foreground/25"+ className="h-7 text-xs text-foreground/45">{t("notes.upload.startOver")}</Button>diff --git a/src/components/notes/overview/ContainerIcon.tsx b/src/components/notes/overview/ContainerIcon.tsxindex 2a859d9b4..2c516f67d 100644--- a/src/components/notes/overview/ContainerIcon.tsx+++ b/src/components/notes/overview/ContainerIcon.tsx@@ -9,10 +9,10 @@ interface ContainerIconProps {export function ContainerIcon({ space, folder, size = 14 }: ContainerIconProps) {if (folder) {- return <Folder size={size} className="text-muted-foreground/60 shrink-0" />;+ return <Folder size={size} className="text-muted-foreground/70 shrink-0" />;}if (space.kind === "private") {- return <Lock size={size} className="text-muted-foreground/60 shrink-0" />;+ return <Lock size={size} className="text-muted-foreground/70 shrink-0" />;}if (space.emoji) {return (@@ -21,5 +21,5 @@ export function ContainerIcon({ space, folder, size = 14 }: ContainerIconProps)</span>);}- return <Users size={size} className="text-muted-foreground/60 shrink-0" />;+ return <Users size={size} className="text-muted-foreground/70 shrink-0" />;}diff --git a/src/components/notes/overview/ContainerOverview.tsx b/src/components/notes/overview/ContainerOverview.tsxindex 2f7e00778..ea579f650 100644--- a/src/components/notes/overview/ContainerOverview.tsx+++ b/src/components/notes/overview/ContainerOverview.tsx@@ -103,16 +103,16 @@ export function ContainerOverview({<div className="flex-1 overflow-y-auto min-h-0"><div className="max-w-2xl mx-auto px-6 py-8 flex flex-col gap-5"><div className="flex flex-col items-center text-center gap-2 pt-4">- <div className="h-12 w-12 rounded-xl bg-foreground/4 dark:bg-white/5 border border-border/25 dark:border-white/8 flex items-center justify-center mb-1">+ <div className="h-12 w-12 rounded-xl bg-foreground/4 dark:bg-white/5 border border-border/70 dark:border-white/10 flex items-center justify-center mb-1"><ContainerIcon space={space} folder={folder} size={20} /></div><h1 className="text-xl font-semibold text-foreground tracking-tight">{folder ? defaultFolderDisplayName(folder, t) : space.name}</h1>- <p className="text-[13px] text-foreground/50 dark:text-foreground/40">+ <p className="text-[13px] text-foreground/50 dark:text-foreground/45">{t(`notes.overview.subtitle.${space.kind === "team" ? "team" : "private"}`)}</p>- <p className="text-xs text-foreground/35 dark:text-foreground/25">+ <p className="text-xs text-foreground/45 dark:text-foreground/45">{metaParts.join(" · ")}</p><div className="mt-1 flex items-center gap-2">@@ -120,7 +120,7 @@ export function ContainerOverview({{notes.length > 0 && (<buttononClick={onNewNote}- className="inline-flex items-center gap-1.5 px-3 h-7 rounded-md border border-border/40 dark:border-white/10 text-xs font-medium text-foreground/60 hover:text-foreground/85 hover:border-border/70 hover:bg-foreground/3 dark:hover:bg-white/3 transition-colors duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30"+ className="inline-flex items-center gap-1.5 px-3 h-7 rounded-md border border-border/70 dark:border-white/10 text-xs font-medium text-foreground/60 hover:text-foreground/85 hover:border-border/70 hover:bg-foreground/3 dark:hover:bg-white/3 transition-colors duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30"><Plus size={12} />{t("notes.list.newNote")}@@ -129,7 +129,7 @@ export function ContainerOverview({{canInvite && (<buttononClick={() => setShowInviteDialog(true)}- className="inline-flex items-center gap-1.5 px-3 h-7 rounded-md border border-border/40 dark:border-white/10 text-xs font-medium text-foreground/60 hover:text-foreground/85 hover:border-border/70 hover:bg-foreground/3 dark:hover:bg-white/3 transition-colors duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30"+ className="inline-flex items-center gap-1.5 px-3 h-7 rounded-md border border-border/70 dark:border-white/10 text-xs font-medium text-foreground/60 hover:text-foreground/85 hover:border-border/70 hover:bg-foreground/3 dark:hover:bg-white/3 transition-colors duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30"><UserPlus size={12} />{t("notes.overview.invite")}@@ -152,7 +152,7 @@ export function ContainerOverview({onOpenNote={onOpenNote}/>- <div className="border-t border-border/20 dark:border-white/5">+ <div className="border-t border-border/70 dark:border-white/10"><OverviewNoteListnotes={notes}space={space}diff --git a/src/components/notes/overview/OverviewAskSection.tsx b/src/components/notes/overview/OverviewAskSection.tsxindex fe20481af..ff721f37f 100644--- a/src/components/notes/overview/OverviewAskSection.tsx+++ b/src/components/notes/overview/OverviewAskSection.tsx@@ -50,7 +50,7 @@ export function OverviewAskSection({);return (- <div className="rounded-xl bg-surface-1/50 dark:bg-white/2 border border-border/25 dark:border-white/6">+ <div className="rounded-xl bg-surface-1/50 dark:bg-white/2 border border-border/70 dark:border-white/10">{conversationPicker}{hasMessages && (<div className="max-h-[min(26rem,50vh)] flex flex-col">@@ -71,9 +71,9 @@ export function OverviewAskSection({key={key}onClick={() => onTextSubmit(t(key))}disabled={agentState !== "idle"}- className="inline-flex items-center gap-1.5 px-2.5 h-7 rounded-md border border-border/40 dark:border-white/8 text-[11px] text-foreground/55 hover:text-foreground/80 hover:border-border/70 hover:bg-foreground/3 dark:hover:bg-white/3 disabled:opacity-50 disabled:pointer-events-none transition-colors duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30"+ className="inline-flex items-center gap-1.5 px-2.5 h-7 rounded-md border border-border/70 dark:border-white/10 text-[11px] text-foreground/55 hover:text-foreground/80 hover:border-border/70 hover:bg-foreground/3 dark:hover:bg-white/3 disabled:opacity-50 disabled:pointer-events-none transition-colors duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30">- <Sparkles size={10} className="text-foreground/30 shrink-0" />+ <Sparkles size={10} className="text-foreground/45 shrink-0" />{t(key)}</button>))}diff --git a/src/components/notes/overview/OverviewExplainerBanner.tsx b/src/components/notes/overview/OverviewExplainerBanner.tsxindex 118d6be17..27cd878b1 100644--- a/src/components/notes/overview/OverviewExplainerBanner.tsx+++ b/src/components/notes/overview/OverviewExplainerBanner.tsx@@ -27,7 +27,7 @@ export function OverviewExplainerBanner({ kind }: OverviewExplainerBannerProps)setVisible(false);}}aria-label={t("notes.overview.banner.dismiss")}- className="absolute top-2.5 end-2.5 h-5 w-5 flex items-center justify-center rounded-sm text-foreground/30 hover:text-foreground/60 hover:bg-foreground/6 transition-colors duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30"+ className="absolute top-2.5 end-2.5 h-5 w-5 flex items-center justify-center rounded-sm text-foreground/45 hover:text-foreground/60 hover:bg-foreground/6 transition-colors duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30"><X size={12} /></button>diff --git a/src/components/notes/overview/OverviewNoteList.tsx b/src/components/notes/overview/OverviewNoteList.tsxindex 9e42b7b91..74dd6e321 100644--- a/src/components/notes/overview/OverviewNoteList.tsx+++ b/src/components/notes/overview/OverviewNoteList.tsx@@ -35,7 +35,7 @@ export function OverviewNoteList({if (notes.length === 0) {return (<div className="flex flex-col items-center py-8">- <p className="text-xs text-foreground/40 dark:text-foreground/30 mb-3">+ <p className="text-xs text-foreground/45 dark:text-foreground/45 mb-3">{t("notes.overview.list.empty")}</p><div className="flex items-center gap-2">@@ -49,7 +49,7 @@ export function OverviewNoteList({{onAddExisting && (<buttononClick={onAddExisting}- className="flex items-center gap-1.5 px-4 h-7 rounded-md border border-foreground/8 dark:border-white/8 text-xs text-foreground/40 hover:text-foreground/60 hover:border-foreground/15 hover:bg-foreground/3 dark:hover:bg-white/3 transition-colors"+ className="flex items-center gap-1.5 px-4 h-7 rounded-md border border-foreground/8 dark:border-white/10 text-xs text-foreground/45 hover:text-foreground/60 hover:border-foreground/15 hover:bg-foreground/3 dark:hover:bg-white/3 transition-colors">{t("notes.addToFolder.addExisting")}</button>@@ -63,7 +63,7 @@ export function OverviewNoteList({<div className="pb-6">{groups.map((group) => (<div key={group.label}>- <div className="pt-4 pb-1 text-[10px] font-semibold text-muted-foreground/40 uppercase tracking-wider select-none">+ <div className="pt-4 pb-1 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider select-none">{group.label}</div>{group.items.map((note) => {@@ -81,7 +81,7 @@ export function OverviewNoteList({><FileTextsize={14}- className="text-foreground/30 dark:text-foreground/20 shrink-0"+ className="text-foreground/45 dark:text-foreground/45 shrink-0"/><span className="text-[13px] text-foreground/85 truncate flex-1">{note.title || t("notes.list.untitled")}@@ -94,12 +94,12 @@ export function OverviewNoteList({image={member?.image}size="sm"/>- <span className="text-[11px] text-foreground/40 max-w-28 truncate">+ <span className="text-[11px] text-foreground/45 max-w-28 truncate">{authorName}</span></span>)}- <span className="text-[11px] text-foreground/35 dark:text-foreground/25 shrink-0 tabular-nums">+ <span className="text-[11px] text-foreground/45 dark:text-foreground/45 shrink-0 tabular-nums">{formatRelativeTime(note.updated_at, t, locale)}</span></button>diff --git a/src/components/notes/shared.ts b/src/components/notes/shared.tsindex 9602be885..3b0476f08 100644--- a/src/components/notes/shared.ts+++ b/src/components/notes/shared.ts@@ -80,14 +80,21 @@ export function notesEmptyTitleKey(inFolder: boolean): string {export const notesInputClass = cn("w-full h-8 px-3 rounded-md text-xs",- "bg-foreground/3 dark:bg-white/4 border border-border/30 dark:border-white/6",- "text-foreground/80 placeholder:text-foreground/20 outline-none",+ "bg-foreground/3 dark:bg-white/4 border border-border/70 dark:border-white/10",+ "text-foreground/80 placeholder:text-foreground/45 outline-none","focus:border-primary/30 transition-colors duration-150");export const notesTextareaClass = cn("w-full px-3 py-2 rounded-md text-xs leading-relaxed resize-none",- "bg-foreground/3 dark:bg-white/4 border border-border/30 dark:border-white/6",- "text-foreground/80 placeholder:text-foreground/20 outline-none",+ "bg-foreground/3 dark:bg-white/4 border border-border/70 dark:border-white/10",+ "text-foreground/80 placeholder:text-foreground/45 outline-none","focus:border-primary/30 transition-colors duration-150");++/** Neutral capsule for note header facts (date + attendees, folder, space). */+export const NOTE_META_CHIP_CLASS = cn(+ "inline-flex h-[26px] items-center gap-2 rounded-full bg-surface-3 px-2.5 text-xs font-medium text-foreground/70",+ "hover:bg-surface-raised hover:text-foreground dark:bg-surface-2 dark:hover:bg-surface-3",+ "cursor-pointer outline-none transition-colors duration-150 focus-visible:ring-1 focus-visible:ring-ring/30"+);diff --git a/src/components/onboarding/CalendarConnectionsStep.tsx b/src/components/onboarding/CalendarConnectionsStep.tsxindex 85bbe00a4..ca4cbd8ad 100644--- a/src/components/onboarding/CalendarConnectionsStep.tsx+++ b/src/components/onboarding/CalendarConnectionsStep.tsx@@ -1,6 +1,7 @@import { useCallback, useEffect, useState } from "react";import { CircleCheck, FileSearch, Loader2, MessageCircle, UsersRound } from "../icons";import { useTranslation } from "react-i18next";+import { Button } from "../ui/button";import { useSettingsStore } from "../../stores/settingsStore";import { useSystemAudioPermission } from "../../hooks/useSystemAudioPermission";import { canManageSystemAudioInApp } from "../../utils/systemAudioAccess";@@ -225,17 +226,17 @@ export default function CalendarConnectionsStep() {{t(`integrations.${provider.id}Calendar.connected`)}</span>) : (- <button+ <Buttontype="button"disabled={connecting !== null}onClick={() => void connect(provider.id)}- className="onboarding-pressable inline-flex shrink-0 items-center justify-center gap-1.5 rounded-[38px] bg-[var(--onboarding-inverse-surface)] px-3 py-1.5 text-xs font-medium leading-[1.4] text-[var(--onboarding-inverse-text)] hover:bg-[var(--onboarding-inverse-surface-secondary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--onboarding-accent)_30%,transparent)] disabled:cursor-default disabled:opacity-60"+ className="h-8 shrink-0 gap-1.5 rounded-[38px] px-3 text-xs">{connecting === provider.id && (<Loader2 className="size-3.5 shrink-0 animate-spin" />)}{t("onboarding.rehaul.notes.connectors.connect")}- </button>+ </Button>)}</div>))}diff --git a/src/components/onboarding/CompactPermissionsStep.tsx b/src/components/onboarding/CompactPermissionsStep.tsxindex 6247498fb..2d454f2ac 100644--- a/src/components/onboarding/CompactPermissionsStep.tsx+++ b/src/components/onboarding/CompactPermissionsStep.tsx@@ -1,6 +1,7 @@import { useState, type ReactNode } from "react";import { CircleCheck, Laptop, Undo2 } from "../icons";import { useTranslation } from "react-i18next";+import { Button } from "../ui/button";// Imported (not referenced by path) so Vite fingerprints them and they resolve// under the packaged app's file:// origin. Authored at 88px (2x the original// 44px slot; the row has since tightened to a 40px slot), with their rounded@@ -153,7 +154,7 @@ export default function CompactPermissionsStep({return (<CompactOnboardingFrame showLegalNotice={false}>- <div className="onboarding-shell-scroll relative flex h-full flex-col overflow-y-auto px-5 pb-6 pt-38 text-center">+ <div className="onboarding-shell-scroll relative flex h-full flex-col overflow-y-auto px-5 pb-6 pt-45 text-center">{/* text-balance evens the two lines out ("Set up OpenWhispr" / "in 3minutes") instead of leaving one word stranded. Preferred over ahardcoded <br> because the break point stays correct in all 9@@ -165,7 +166,7 @@ export default function CompactPermissionsStep({{t("auth.welcomeSubtitle")}</p>- <div className="mt-6 rounded-[1.35rem] bg-[var(--onboarding-surface-secondary)] px-3 py-1">+ <div className="mt-3 rounded-[1.35rem] bg-[var(--onboarding-surface-secondary)] px-3 py-1"><PermissionRowtitle={t("onboarding.permissions.microphoneTitle")}description={t("onboarding.rehaul.permissions.microphoneDescription")}@@ -257,7 +258,7 @@ export default function CompactPermissionsStep({element after them rides along on that auto margin, which put therelaunch hint and the two warnings below the buttons — and, on Linuxwhere the paste guidance is the point of the screen, out of view. */}- <div className="mt-auto flex w-full shrink-0 items-center justify-between gap-3 pt-5">+ <div className="mt-auto flex w-full shrink-0 items-center justify-between gap-3 pt-3">{onBack && (<buttontype="button"@@ -269,14 +270,14 @@ export default function CompactPermissionsStep({</button>)}- <button+ <Buttontype="button"onClick={onContinue}disabled={!requiredGranted}- className="onboarding-pressable h-10 flex-1 rounded-full bg-[var(--onboarding-accent)] px-5 text-sm font-medium text-[var(--onboarding-accent-foreground)] transition-colors hover:bg-[var(--onboarding-accent-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--onboarding-accent)_30%,transparent)] disabled:cursor-default disabled:bg-[var(--onboarding-surface-tertiary)] disabled:text-[var(--onboarding-text-tertiary)]"+ className="h-10 flex-1 px-5 text-sm">{t("common.continue")}- </button>+ </Button></div></div></CompactOnboardingFrame>diff --git a/src/components/onboarding/OnboardingShell.tsx b/src/components/onboarding/OnboardingShell.tsxindex 937eb85c7..338b5c187 100644--- a/src/components/onboarding/OnboardingShell.tsx+++ b/src/components/onboarding/OnboardingShell.tsx@@ -2,13 +2,13 @@ import type { CSSProperties, ReactNode } from "react";import type { OnboardingProgressState } from "./flow";import { Copy, Minus, Square, Undo2, X } from "../icons";import { Button } from "../ui/button";+import { BRAND_GLASS_SURFACE } from "../ui/gradientCircle";+import { cn } from "../lib/utils";import { useTranslation } from "react-i18next";import { getPlatform } from "../../utils/platform";import { useWindowControls } from "../../hooks/useWindowControls";// Imported (not referenced by path) so Vite fingerprints it and it resolves// under the packaged app's file:// origin. See .onboarding-compact-hero.-import heroDither from "@/assets/onboarding-hero-dither.webp";-import heroDitherDark from "@/assets/onboarding-hero-dither-dark.webp";import onboardingBackgroundLight from "@/assets/onboarding-bg-light.svg";import onboardingBackgroundDark from "@/assets/onboarding-bg-dark.svg";@@ -332,9 +332,7 @@ export default function OnboardingShell({type="button"onClick={onContinue}disabled={continueDisabled || continueLoading}- // Flat brand fill with no shadow or stroke. It shares the same- // compact height as the Back and Skip controls.- className="h-9 gap-3 rounded-[38px] border-0 bg-[var(--onboarding-accent)] px-5 py-2 text-sm font-medium leading-[1.4] tracking-normal text-[var(--onboarding-accent-foreground)] shadow-none! hover:bg-[var(--onboarding-accent-hover)] hover:shadow-none! disabled:bg-[var(--onboarding-surface-tertiary)] disabled:text-[var(--onboarding-text-tertiary)] disabled:opacity-100!"+ className="h-9 rounded-[38px] px-5 text-sm">{continueLoading ? t("common.loading") : (continueLabel ?? t("common.continue"))}</Button>@@ -361,20 +359,17 @@ export function CompactOnboardingFrame({return (<section className="relative flex h-full min-h-screen w-full flex-col overflow-hidden bg-[var(--onboarding-surface)] text-[var(--onboarding-text-primary)]">- <div- className="onboarding-compact-hero pointer-events-none absolute inset-x-0 top-0 h-52"- // Both strips are handed over as custom properties and .onboarding-compact-hero- // picks one per theme; the URLs have to come from here because only an import- // gets fingerprinted by Vite and resolves under the packaged file:// origin.- style={- {- "--onboarding-hero-dither-light": `url(${heroDither})`,- "--onboarding-hero-dither-dark": `url(${heroDitherDark})`,- } as CSSProperties- }- />+ <div className="onboarding-compact-hero pointer-events-none absolute inset-x-0 top-0 h-33" />{showBrandMark && (- <BrandMark className="pointer-events-none absolute left-1/2 top-13 z-10 size-28 -translate-x-1/2 text-white" />+ <div+ className={cn(+ "pointer-events-none absolute left-1/2 top-23 z-10 flex size-19 -translate-x-1/2 items-center justify-center rounded-[20px]",+ BRAND_GLASS_SURFACE,+ "shadow-(--shadow-brand-tile)"+ )}+ >+ <BrandMark className="size-13" />+ </div>)}{/* The compact BrowserWindow is the authored 480x624 surface. This layer@@ -386,7 +381,7 @@ export function CompactOnboardingFrame({</div>{showLegalNotice && (- <p className="relative z-10 mx-auto mt-auto w-full max-w-xs shrink-0 px-2 pb-4 pt-5 text-center text-sm leading-5 text-[var(--onboarding-text-secondary)]">+ <p className="relative z-10 mx-auto mt-auto w-full max-w-sm shrink-0 px-2 pb-4 pt-5 text-center text-xs leading-[18px] text-[var(--onboarding-text-secondary)]">{t("auth.legal.prefix")}{" "}<ahref="https://openwhispr.com/terms"diff --git a/src/components/onboarding/ProviderConnectionTest.tsx b/src/components/onboarding/ProviderConnectionTest.tsxindex 520862ba5..8fdee9596 100644--- a/src/components/onboarding/ProviderConnectionTest.tsx+++ b/src/components/onboarding/ProviderConnectionTest.tsx@@ -92,7 +92,7 @@ export default function ProviderConnectionTest({type="button"onClick={() => void testConnection()}disabled={status === "testing"}- className="h-7 gap-1 rounded-full border-[var(--onboarding-inverse-surface)]! bg-[var(--onboarding-inverse-surface)] px-2 text-[0.5625rem] font-normal text-[var(--onboarding-inverse-text)] shadow-none! hover:bg-[var(--onboarding-inverse-surface-secondary)] focus-visible:ring-0 disabled:opacity-70"+ className="h-7 gap-1 px-2 text-[0.5625rem]">{status === "testing" && <Loader2 className="size-3 animate-spin" />}{status === "success" && <CheckCircle className="size-3" />}diff --git a/src/components/onboarding/ProviderSetupStep.tsx b/src/components/onboarding/ProviderSetupStep.tsxindex e39269582..1461096f1 100644--- a/src/components/onboarding/ProviderSetupStep.tsx+++ b/src/components/onboarding/ProviderSetupStep.tsx@@ -28,6 +28,7 @@ import {getASRModelOrganization,getSelectedASROrganization,usesParakeetManager,+ DEFAULT_LOCAL_ASR_SELECTION,} from "../../helpers/localASROrganization";import { pickDefaultModelId } from "../../models/providerDefaultModel";import {@@ -111,7 +112,7 @@ function StepPrimaryAction({type="button"onClick={onClick}disabled={disabled}- className={`h-9 rounded-[38px] border-0 bg-[var(--onboarding-accent)] px-5 text-sm font-medium leading-[1.4] text-[var(--onboarding-accent-foreground)] shadow-none! hover:bg-[var(--onboarding-accent-hover)] hover:shadow-none! disabled:bg-[var(--onboarding-surface-tertiary)] disabled:text-[var(--onboarding-text-secondary)] disabled:opacity-100! ${className}`}+ className="h-9 rounded-[38px] px-5 text-sm">{children}</Button>@@ -236,6 +237,13 @@ function resolveInitialLocalSelection(store: ReturnType<typeof useSettingsStore.getState>): OnboardingLocalModelDraft {const pending = readPendingLocalModels()[assistant ? "assistant" : "dictation"];+ // A fresh install has never picked a local provider (the store only falls back+ // to whisper); open on the recommended Oruk model instead of that fallback.+ const hasChosenLocalASR =+ !!store.parakeetModel || localStorage.getItem("localTranscriptionProvider") !== null;+ if (!assistant && !resumeState && !pending && !hasChosenLocalASR) {+ return DEFAULT_LOCAL_ASR_SELECTION;+ }const savedProvider = assistant? modelRegistry.getProvider(store.chatAgentProvider)? store.chatAgentProvider@@ -1075,7 +1083,7 @@ export function LocalModelSetupStep({<Buttontype="button"onClick={() => chooseInstalledModel(model.id)}- className="h-8 gap-1.5 rounded-full border-0! bg-[var(--onboarding-accent)] px-3 text-sm font-normal text-[var(--onboarding-accent-foreground)] shadow-none! hover:bg-[var(--onboarding-accent-hover)] hover:shadow-none!"+ className="h-8 gap-1.5 px-3 text-sm">{t("onboarding.rehaul.local.use")}</Button>@@ -1083,7 +1091,7 @@ export function LocalModelSetupStep({<Buttontype="button"onClick={() => downloadModel(model.id)}- className="h-8 gap-1.5 rounded-full border-[var(--onboarding-inverse-surface)]! bg-[var(--onboarding-inverse-surface)] px-3 text-sm font-normal text-[var(--onboarding-inverse-text)] shadow-none! hover:bg-[var(--onboarding-inverse-surface-secondary)] hover:shadow-none! disabled:bg-[var(--onboarding-surface-tertiary-hover)] disabled:opacity-100"+ className="h-8 gap-1.5 px-3 text-sm"><Download className="size-3.5" />{t("onboarding.rehaul.local.download")}diff --git a/src/components/onboarding/RequiredModelDownloadStep.tsx b/src/components/onboarding/RequiredModelDownloadStep.tsxindex 93e262716..9f20cfb1d 100644--- a/src/components/onboarding/RequiredModelDownloadStep.tsx+++ b/src/components/onboarding/RequiredModelDownloadStep.tsx@@ -147,7 +147,7 @@ export function RequiredModelDownloadStep({<Buttontype="button"onClick={() => startDownload(modelId)}- className="-me-2 h-7 gap-1.5 rounded-full border-0! bg-[var(--onboarding-accent)] px-2.5 text-xs font-normal text-[var(--onboarding-accent-foreground)] shadow-none! hover:bg-[var(--onboarding-accent-hover)] hover:shadow-none!"+ className="-me-2 h-7 gap-1.5 px-2.5 text-xs">{t("common.retry")}</Button>diff --git a/src/components/referral-cards/SpectrogramCard.tsx b/src/components/referral-cards/SpectrogramCard.tsxindex 837c02008..bb662f3d7 100644--- a/src/components/referral-cards/SpectrogramCard.tsx+++ b/src/components/referral-cards/SpectrogramCard.tsx@@ -153,14 +153,14 @@ export function SpectrogramCard({ referralCode }: SpectrogramCardProps) {{/* Brand + Signal ID */}<div className="absolute top-0 inset-x-0 px-5 pt-3.5 flex items-center justify-between z-10">- <span className="text-xs font-medium uppercase tracking-[0.2em] text-foreground/20 select-none">+ <span className="text-xs font-medium uppercase tracking-[0.2em] text-foreground/45 select-none">{t("referral.card.brand")}</span><div className="flex flex-col items-end">- <span className="text-xs font-mono text-foreground/30 tracking-wider select-all">+ <span className="text-xs font-mono text-foreground/45 tracking-wider select-all">{referralCode}</span>- <span className="text-[7px] uppercase tracking-[0.15em] text-foreground/12 select-none">+ <span className="text-[7px] uppercase tracking-[0.15em] text-foreground/45 select-none">{t("referral.card.signalId")}</span></div>@@ -218,7 +218,7 @@ export function SpectrogramCard({ referralCode }: SpectrogramCardProps) {"border border-foreground/10 active:scale-[0.93]",playing? "bg-foreground/12 text-foreground/80"- : "bg-foreground/6 text-foreground/40 hover:bg-foreground/10 hover:text-foreground/70"+ : "bg-foreground/6 text-foreground/45 hover:bg-foreground/10 hover:text-foreground/70")}aria-label={playing ? t("referral.card.stop") : t("referral.card.playSignal")}>diff --git a/src/components/settings/ChatAgentSettings.tsx b/src/components/settings/ChatAgentSettings.tsxindex 238087585..16bcaaeb6 100644--- a/src/components/settings/ChatAgentSettings.tsx+++ b/src/components/settings/ChatAgentSettings.tsx@@ -23,7 +23,7 @@ export default function ChatAgentSettings() {onChange={(e) => setCustomPrompt("chatAgent", e.target.value)}placeholder={t("agentMode.settings.systemPromptPlaceholder")}rows={4}- className="w-full text-xs bg-transparent border border-border/50 rounded-md px-3 py-2 resize-y focus:outline-none focus:ring-2 focus:ring-ring/40 focus:border-primary/30 placeholder:text-muted-foreground/50"+ className="w-full text-xs bg-transparent border border-border/70 rounded-md px-3 py-2 resize-y focus:outline-none focus:ring-2 focus:ring-ring/40 focus:border-primary/30 placeholder:text-muted-foreground/70"/></div></div>diff --git a/src/components/settings/DictationAgentSettings.tsx b/src/components/settings/DictationAgentSettings.tsxindex 61dd4ce50..fba618481 100644--- a/src/components/settings/DictationAgentSettings.tsx+++ b/src/components/settings/DictationAgentSettings.tsx@@ -84,7 +84,7 @@ export default function DictationAgentSettings() {];const voiceAgentSection = (- <div className="border-t border-border/40 pt-6 space-y-5">+ <div className="border-t border-border/70 pt-6 space-y-5"><SectionHeadertitle={t("settingsPage.agentConfig.title")}description={t("settingsPage.agentConfig.description")}@@ -109,7 +109,7 @@ export default function DictationAgentSettings() {{t("settingsPage.agentConfig.save")}</Button></div>- <p className="text-xs text-muted-foreground/60">+ <p className="text-xs text-muted-foreground/70">{t("settingsPage.agentConfig.helper")}</p></div>@@ -175,7 +175,7 @@ export default function DictationAgentSettings() {blocks the agent, since enabling it would grant screen-capturepermission for a route that can never run. */}{useDictationAgent && agentAllowed && (- <div className="border-t border-border/40 pt-6 space-y-3">+ <div className="border-t border-border/70 pt-6 space-y-3"><SectionHeadertitle={t("dictationAgent.screenContext.title")}description={t("dictationAgent.screenContext.description")}@@ -237,7 +237,7 @@ export default function DictationAgentSettings() {{voiceAgentSection}{useDictationAgent && (- <div className="border-t border-border/40 pt-6">+ <div className="border-t border-border/70 pt-6"><SectionHeadertitle={t("dictationAgent.prompt.title")}description={t("dictationAgent.prompt.description")}diff --git a/src/components/settings/DictationTranslationSettings.tsx b/src/components/settings/DictationTranslationSettings.tsxindex 471439847..6885dff50 100644--- a/src/components/settings/DictationTranslationSettings.tsx+++ b/src/components/settings/DictationTranslationSettings.tsx@@ -147,7 +147,7 @@ export default function DictationTranslationSettings() {<InferenceConfigEditor scope="dictationTranslation" />- <div className="border-t border-border/40 pt-6">+ <div className="border-t border-border/70 pt-6"><SectionHeadertitle={t("dictationTranslation.prompt.title")}description={t("dictationTranslation.prompt.description")}diff --git a/src/components/settings/EnterpriseCheckoutDialog.tsx b/src/components/settings/EnterpriseCheckoutDialog.tsxindex f90158268..0b273cc38 100644--- a/src/components/settings/EnterpriseCheckoutDialog.tsx+++ b/src/components/settings/EnterpriseCheckoutDialog.tsx@@ -231,7 +231,7 @@ export default function EnterpriseCheckoutDialog({</div>) : upgradePreview ? (<>- <div className="rounded-lg border border-border/50 divide-y divide-border/40">+ <div className="rounded-lg border border-border/70 divide-y divide-border/60"><div className="flex justify-between px-3 py-2 text-xs"><span className="text-muted-foreground">{t("settingsPage.enterpriseCheckout.proratedCharge")}@@ -262,7 +262,7 @@ export default function EnterpriseCheckoutDialog({</p></>) : previewError ? (- <div className="space-y-2 rounded-lg border border-border/50 px-3 py-3">+ <div className="space-y-2 rounded-lg border border-border/70 px-3 py-3"><p className="text-xs font-medium">{t("settingsPage.enterpriseCheckout.errors.previewFailed")}</p>diff --git a/src/components/settings/EnterpriseConsoleRow.tsx b/src/components/settings/EnterpriseConsoleRow.tsxindex 5272f1968..d25bdf3ee 100644--- a/src/components/settings/EnterpriseConsoleRow.tsx+++ b/src/components/settings/EnterpriseConsoleRow.tsx@@ -26,7 +26,7 @@ export default function EnterpriseConsoleRow({ workspace }: { workspace: Workspa}return (- <div className="rounded-md border border-border/50 dark:border-border-subtle/60 bg-card/30 dark:bg-surface-2/30 p-3 flex items-center justify-between gap-3">+ <div className="rounded-md border border-border/70 dark:border-border-subtle/60 bg-card/30 dark:bg-surface-2/30 p-3 flex items-center justify-between gap-3"><div className="flex items-center gap-2 min-w-0"><ShieldCheck className="h-4 w-4 text-primary shrink-0" /><div className="min-w-0">diff --git a/src/components/settings/InferenceConfigEditor.tsx b/src/components/settings/InferenceConfigEditor.tsxindex 2ee452906..cc13fe050 100644--- a/src/components/settings/InferenceConfigEditor.tsx+++ b/src/components/settings/InferenceConfigEditor.tsx@@ -221,7 +221,7 @@ export default function InferenceConfigEditor({</p></div></div>- <div className="flex flex-wrap items-center gap-2 border-t border-border/60 pt-3">+ <div className="flex flex-wrap items-center gap-2 border-t border-border/70 pt-3"><TestConnectionButtonprovider={managed.provider}getConfig={() => ({diff --git a/src/components/settings/TeamMembersDialog.tsx b/src/components/settings/TeamMembersDialog.tsxindex 35b8ec240..de09fa79d 100644--- a/src/components/settings/TeamMembersDialog.tsx+++ b/src/components/settings/TeamMembersDialog.tsx@@ -132,7 +132,7 @@ export default function TeamMembersDialog({disabled={isLeaving}className={cn("flex items-center gap-2 w-full px-4 h-10 rounded-lg",- "border border-border/50 dark:border-border-subtle/70",+ "border border-border/70 dark:border-border-subtle/70","text-xs font-medium text-destructive","transition-colors duration-150 outline-none","hover:bg-destructive/5 active:bg-destructive/8",diff --git a/src/components/settings/WorkspaceBillingCard.tsx b/src/components/settings/WorkspaceBillingCard.tsxindex a3e2a3132..e44023b44 100644--- a/src/components/settings/WorkspaceBillingCard.tsx+++ b/src/components/settings/WorkspaceBillingCard.tsx@@ -98,7 +98,7 @@ export default function WorkspaceBillingCard({ workspace, onRefreshEntitlement }}return (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-4 space-y-3">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-4 space-y-3"><div className="flex items-start justify-between gap-3"><div className="min-w-0"><p dir="auto" className="text-xs font-semibold text-foreground truncate">@@ -237,7 +237,7 @@ export default function WorkspaceBillingCard({ workspace, onRefreshEntitlement }</DialogDescription></DialogHeader>{seatPreview && (- <div className="rounded-lg border border-border/50 divide-y divide-border/40">+ <div className="rounded-lg border border-border/70 divide-y divide-border/60"><div className="flex justify-between px-3 py-2 text-xs"><span className="text-muted-foreground">{t("settingsPage.unifiedBilling.confirmSeats.newCapacity")}diff --git a/src/components/settings/WorkspaceDeveloperTab.tsx b/src/components/settings/WorkspaceDeveloperTab.tsxindex 8bea44832..1341d8538 100644--- a/src/components/settings/WorkspaceDeveloperTab.tsx+++ b/src/components/settings/WorkspaceDeveloperTab.tsx@@ -182,7 +182,7 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {</Button></div>- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 divide-y divide-border/30 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 divide-y divide-border/60 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">{loadError && (<div className="px-4 py-6 flex items-center justify-between gap-2"><p className="text-xs text-muted-foreground">@@ -195,7 +195,7 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {)}{!loadError && keys.length === 0 && (<div className="py-10 text-center">- <Key className="w-5 h-5 text-muted-foreground/60 mx-auto mb-2" />+ <Key className="w-5 h-5 text-muted-foreground/70 mx-auto mb-2" /><p className="text-xs text-muted-foreground">{t("settingsPage.workspace.developer.empty")}</p>@@ -273,7 +273,7 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {"focus-visible:ring-1 focus-visible:ring-primary/30",checked? "border-primary/40 bg-primary/8 text-foreground"- : "border-border/60 text-muted-foreground hover:bg-foreground/4 hover:text-foreground"+ : "border-border/70 text-muted-foreground hover:bg-foreground/4 hover:text-foreground")}>{t(@@ -336,7 +336,7 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {</DialogHeader><divdir="ltr"- className="rounded-md border border-border/60 bg-foreground/4 dark:bg-white/4 p-3 font-mono text-xs break-all"+ className="rounded-md border border-border/70 bg-foreground/4 dark:bg-white/4 p-3 font-mono text-xs break-all">{newKey?.key}</div>diff --git a/src/components/settings/WorkspaceMembersTab.tsx b/src/components/settings/WorkspaceMembersTab.tsxindex 8dd0741d2..45e665d68 100644--- a/src/components/settings/WorkspaceMembersTab.tsx+++ b/src/components/settings/WorkspaceMembersTab.tsx@@ -254,7 +254,7 @@ export default function WorkspaceMembersTab({ workspace }: Props) {{membersLoading && members.length === 0 ? (<div className="h-24 rounded-lg bg-foreground/5 dark:bg-white/5 animate-pulse" />) : membersError && members.length === 0 ? (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-4 py-6 flex items-center justify-between gap-2">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-4 py-6 flex items-center justify-between gap-2"><p className="text-xs text-muted-foreground">{t("settingsPage.workspace.members.loadError")}</p>@@ -263,7 +263,7 @@ export default function WorkspaceMembersTab({ workspace }: Props) {</Button></div>) : (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 divide-y divide-border/30 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 divide-y divide-border/60 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">{members.map((member) => (<div key={member.user_id} className="flex items-center gap-3 px-4 h-14"><MemberAvatar name={member.name} email={member.email} image={member.image} />@@ -326,7 +326,7 @@ export default function WorkspaceMembersTab({ workspace }: Props) {)}{canManage && invitationsError && (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-4 py-3 flex items-center justify-between gap-2">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-4 py-3 flex items-center justify-between gap-2"><p className="text-xs text-muted-foreground">{t("settingsPage.workspace.invites.loadError")}</p>@@ -341,7 +341,7 @@ export default function WorkspaceMembersTab({ workspace }: Props) {<h4 className="text-xs font-semibold text-foreground mb-2">{t("settingsPage.workspace.joinRequests.title")}</h4>- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 divide-y divide-border/30 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 divide-y divide-border/60 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">{joinRequests.map((request) => (<div key={request.id} className="flex items-center gap-3 px-4 h-12"><MemberAvatar@@ -391,7 +391,7 @@ export default function WorkspaceMembersTab({ workspace }: Props) {<h4 className="text-xs font-semibold text-foreground mb-2">{t("settingsPage.workspace.invites.title")}</h4>- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 divide-y divide-border/30 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 divide-y divide-border/60 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">{invitations.map((inv) => {const daysLeft = invitationDaysLeft(inv);const expired = daysLeft <= 0;diff --git a/src/components/settings/WorkspaceSection.tsx b/src/components/settings/WorkspaceSection.tsxindex c654bb6ca..230ef7706 100644--- a/src/components/settings/WorkspaceSection.tsx+++ b/src/components/settings/WorkspaceSection.tsx@@ -118,7 +118,7 @@ export default function WorkspaceSection({ initialSubTab }: Props) {</p></div>{error ? (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-6 text-center">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-6 text-center"><p className="text-xs font-medium text-foreground mb-1">{t("settingsPage.workspace.loadError.title")}</p>@@ -131,8 +131,8 @@ export default function WorkspaceSection({ initialSubTab }: Props) {</Button></div>) : (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-6 text-center">- <Users className="w-5 h-5 text-muted-foreground/60 mx-auto mb-2" />+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-6 text-center">+ <Users className="w-5 h-5 text-muted-foreground/70 mx-auto mb-2" /><p className="text-xs font-medium text-foreground mb-1">{t("settingsPage.workspace.empty.title")}</p>@@ -199,7 +199,7 @@ export default function WorkspaceSection({ initialSubTab }: Props) {</div></div>- <div className="border-b border-border/40 dark:border-border-subtle/60 -mx-1">+ <div className="border-b border-border/70 dark:border-border-subtle/60 -mx-1"><div role="tablist" className="flex gap-0.5 px-1">{visibleTabs.map((id) => (<buttondiff --git a/src/components/settings/WorkspaceTeamsTab.tsx b/src/components/settings/WorkspaceTeamsTab.tsxindex eafef64fd..b25548f12 100644--- a/src/components/settings/WorkspaceTeamsTab.tsx+++ b/src/components/settings/WorkspaceTeamsTab.tsx@@ -110,7 +110,7 @@ export default function WorkspaceTeamsTab({ workspace }: Props) {{!teamsLoaded ? (<div className="h-24 rounded-lg bg-foreground/5 dark:bg-white/5 animate-pulse" />) : loadFailed && teams.length === 0 ? (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-4 py-6 flex items-center justify-between gap-2">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 px-4 py-6 flex items-center justify-between gap-2"><p className="text-xs text-muted-foreground">{t("settingsPage.workspace.loadError.description")}</p>@@ -119,10 +119,10 @@ export default function WorkspaceTeamsTab({ workspace }: Props) {</Button></div>) : (- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 divide-y divide-border/30 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">+ <div className="rounded-lg border border-border/70 dark:border-border-subtle/70 divide-y divide-border/60 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">{teams.length === 0 && (<div className="py-10 text-center">- <Users className="w-5 h-5 text-muted-foreground/60 mx-auto mb-2" />+ <Users className="w-5 h-5 text-muted-foreground/70 mx-auto mb-2" /><p className="text-xs text-muted-foreground mb-3">{t("settingsPage.workspace.teams.empty")}</p>diff --git a/src/components/ui/ApiKeyInput.tsx b/src/components/ui/ApiKeyInput.tsxindex d1de23cc8..d53c79421 100644--- a/src/components/ui/ApiKeyInput.tsx+++ b/src/components/ui/ApiKeyInput.tsx@@ -125,7 +125,7 @@ export default function ApiKeyInput({<buttontype="button"onClick={cancel}- className="h-6 w-6 flex items-center justify-center rounded text-muted-foreground/50 hover:text-muted-foreground hover:bg-muted/50 active:scale-95 transition-all"+ className="h-6 w-6 flex items-center justify-center rounded text-muted-foreground/70 hover:text-muted-foreground hover:bg-muted/50 active:scale-95 transition-all"aria-label={t("apiKeyInput.cancelEdit")}><X className="w-3.5 h-3.5" />@@ -138,8 +138,8 @@ export default function ApiKeyInput({onClick={enterEdit}className={`w-full h-8 flex items-center px-3 rounded border text-sm transition-all cursor-pointer group ${hasKey- ? "border-border/70 bg-input hover:border-border-hover dark:bg-surface-1 dark:border-border-subtle/50 dark:hover:border-border-hover"- : "border-dashed border-border/40 bg-transparent hover:border-border/70 hover:bg-muted/30"+ ? "border-border/70 bg-input hover:border-border-hover dark:bg-surface-1 dark:border-border-subtle/60 dark:hover:border-border-hover"+ : "border-dashed border-border/70 bg-transparent hover:border-border/70 hover:bg-muted/30"}`}aria-label={hasKey ? t("apiKeyInput.edit") : t("apiKeyInput.add")}>@@ -148,13 +148,13 @@ export default function ApiKeyInput({dir="ltr"className="flex items-center gap-1.5 text-foreground/70 font-mono text-xs tracking-wide">- <KeyRound className="w-3 h-3 text-muted-foreground/50 shrink-0" />+ <KeyRound className="w-3 h-3 text-muted-foreground/70 shrink-0" />{maskKey(apiKey)}</span>) : (- <span className="text-muted-foreground/40 text-xs">{resolvedPlaceholder}</span>+ <span className="text-muted-foreground/70 text-xs">{resolvedPlaceholder}</span>)}- <span className="ms-auto text-muted-foreground/30 text-xs group-hover:text-muted-foreground/60 transition-colors">+ <span className="ms-auto text-muted-foreground/70 text-xs group-hover:text-muted-foreground/70 transition-colors">{hasKey ? t("apiKeyInput.editButton") : t("apiKeyInput.addButton")}</span></button>diff --git a/src/components/ui/CopyableCommand.tsx b/src/components/ui/CopyableCommand.tsxindex 4b80010cb..3e11db1f4 100644--- a/src/components/ui/CopyableCommand.tsx+++ b/src/components/ui/CopyableCommand.tsx@@ -32,7 +32,7 @@ export function CopyableCommand({ command, label, className = "" }: CopyableCommtype="button"onClick={handleCopy}aria-label={copied ? "Copied" : "Copy command"}- className="absolute top-2 right-2 h-6 w-6 flex items-center justify-center rounded text-muted-foreground/40 hover:text-muted-foreground hover:bg-muted/50 active:scale-95 transition-all"+ className="absolute top-2 right-2 h-6 w-6 flex items-center justify-center rounded text-muted-foreground/70 hover:text-muted-foreground hover:bg-muted/50 active:scale-95 transition-all">{copied ? (<Check className="w-3.5 h-3.5 text-success" />diff --git a/src/components/ui/DownloadProgressBar.tsx b/src/components/ui/DownloadProgressBar.tsxindex cb986e830..9d88ef4e6 100644--- a/src/components/ui/DownloadProgressBar.tsx+++ b/src/components/ui/DownloadProgressBar.tsx@@ -55,7 +55,7 @@ export function DownloadProgressBar({)}{etaText && (<>- <span className="text-xs text-muted-foreground/30">·</span>+ <span className="text-xs text-muted-foreground/70">·</span><span className="text-xs text-muted-foreground/70 tabular-nums">{etaText}</span></>)}diff --git a/src/components/ui/EmptyStateCard.tsx b/src/components/ui/EmptyStateCard.tsxnew file mode 100644index 000000000..7df6464ca--- /dev/null+++ b/src/components/ui/EmptyStateCard.tsx@@ -0,0 +1,40 @@+import type { ComponentType, ReactNode } from "react";+import { cn } from "../lib/utils";++interface EmptyStateCardProps {+ icon: ComponentType<{ size?: number; className?: string }>;+ title?: string;+ description?: string;+ /** Actions or previews, stacked and centred under the copy. */+ children?: ReactNode;+ className?: string;+}++/** Card-shaped empty state: icon tile, title, one-line description, then the single next action. */+export default function EmptyStateCard({+ icon: Icon,+ title,+ description,+ children,+ className,+}: EmptyStateCardProps) {+ return (+ <div+ className={cn(+ "flex flex-col items-center rounded-2xl border border-border/70 bg-card/50 px-6 py-10 text-center dark:border-white/10 dark:bg-surface-2/60",+ className+ )}+ >+ <span className="flex h-11 w-11 items-center justify-center rounded-xl bg-surface-3 text-foreground/70 dark:bg-surface-3">+ <Icon size={20} />+ </span>+ {title && <p className="mt-4 text-[15px] font-medium text-foreground">{title}</p>}+ {description && (+ <p className="mt-1 max-w-xs text-[13px] leading-relaxed text-foreground/70">+ {description}+ </p>+ )}+ {children && <div className="mt-5 flex flex-col items-center gap-2">{children}</div>}+ </div>+ );+}diff --git a/src/components/ui/HotkeyInput.tsx b/src/components/ui/HotkeyInput.tsxindex 001aa82e5..30965cada 100644--- a/src/components/ui/HotkeyInput.tsx+++ b/src/components/ui/HotkeyInput.tsx@@ -634,7 +634,7 @@ export function HotkeyInput({e.stopPropagation();onClear();}}- className="rounded opacity-0 group-hover:opacity-100 focus-visible:opacity-100 outline-none focus-visible:ring-2 focus-visible:ring-ring/30 transition-opacity duration-150 text-muted-foreground/50 hover:text-destructive cursor-pointer"+ className="rounded opacity-0 group-hover:opacity-100 focus-visible:opacity-100 outline-none focus-visible:ring-2 focus-visible:ring-ring/30 transition-opacity duration-150 text-muted-foreground/70 hover:text-destructive cursor-pointer"><Trash2 className="w-3.5 h-3.5" /></button>@@ -738,7 +738,7 @@ export function HotkeyInput({hotkeyParts.map((part, i) => (<React.Fragment key={part}>{i > 0 && (- <span className="text-muted-foreground/40 text-lg font-light">+</span>+ <span className="text-muted-foreground/70 text-lg font-light">+</span>)}<kbd className="px-3 py-1.5 bg-surface-raised border border-border rounded-sm text-sm font-semibold text-foreground shadow-sm">{part}@@ -761,7 +761,7 @@ export function HotkeyInput({</kbd>)}</div>- <span className="text-xs text-muted-foreground/60 group-hover:text-muted-foreground transition-colors">+ <span className="text-xs text-muted-foreground/70 group-hover:text-muted-foreground transition-colors">{t("hotkeyInput.clickToChange")}</span></div>@@ -856,7 +856,7 @@ export function HotkeyInput({<div dir="ltr" className="flex items-center gap-1">{hotkeyParts.map((part, i) => (<React.Fragment key={part}>- {i > 0 && <span className="text-muted-foreground/30 text-xs">+</span>}+ {i > 0 && <span className="text-muted-foreground/70 text-xs">+</span>}<kbd className="px-2 py-0.5 bg-surface-raised border border-border rounded-sm text-xs font-semibold text-foreground">{part}</kbd>@@ -881,7 +881,7 @@ export function HotkeyInput({{displayValue}</kbd>)}- <span className="text-xs text-muted-foreground/50">+ <span className="text-xs text-muted-foreground/70">{t("hotkeyInput.clickToChangeLower")}</span>{clearButton}diff --git a/src/components/ui/LanguageSelector.tsx b/src/components/ui/LanguageSelector.tsxindex 6873e714a..4849e7d05 100644--- a/src/components/ui/LanguageSelector.tsx+++ b/src/components/ui/LanguageSelector.tsx@@ -208,7 +208,7 @@ export default function LanguageSelector({className="z-9999 bg-popover/95 backdrop-blur-xl border border-border/70 rounded shadow-xl overflow-hidden">{showSearch && (- <div className="px-2 pt-2 pb-1.5 border-b border-border/50">+ <div className="px-2 pt-2 pb-1.5 border-b border-border/70"><div className="relative"><Search className="absolute start-2 top-1/2 -translate-y-1/2 w-3 h-3 text-muted-foreground pointer-events-none" /><input@@ -219,7 +219,7 @@ export default function LanguageSelector({onChange={(e) => handleSearchQueryChange(e.target.value)}onKeyDown={handleKeyDown}placeholder={t("languageSelector.searchPlaceholder")}- className="w-full h-7 ps-7 pe-6 text-xs bg-transparent text-foreground border-0 focus:outline-none placeholder:text-muted-foreground/50"+ className="w-full h-7 ps-7 pe-6 text-xs bg-transparent text-foreground border-0 focus:outline-none placeholder:text-muted-foreground/70"/>{searchQuery && (<buttondiff --git a/src/components/ui/LogoTile.tsx b/src/components/ui/LogoTile.tsxindex 3858e59bb..826b46049 100644--- a/src/components/ui/LogoTile.tsx+++ b/src/components/ui/LogoTile.tsx@@ -6,7 +6,7 @@ interface LogoTileProps {export function LogoTile({ src, alt, monochrome }: LogoTileProps) {return (- <div className="w-9 h-9 rounded-lg bg-white dark:bg-surface-raised shadow-[0_0_0_1px_rgba(0,0,0,0.04)] dark:shadow-none dark:border dark:border-white/5 flex items-center justify-center shrink-0">+ <div className="w-9 h-9 rounded-lg bg-white dark:bg-surface-raised shadow-[0_0_0_1px_rgba(0,0,0,0.04)] dark:shadow-none dark:border dark:border-white/10 flex items-center justify-center shrink-0"><img src={src} alt={alt} className={`w-5 h-5${monochrome ? " icon-monochrome" : ""}`} /></div>);diff --git a/src/components/ui/MentionChip.tsx b/src/components/ui/MentionChip.tsxindex bb413addc..ac386f08c 100644--- a/src/components/ui/MentionChip.tsx+++ b/src/components/ui/MentionChip.tsx@@ -10,7 +10,7 @@ export default function MentionChip({ node }: NodeViewProps) {<spandata-mentiontitle={email ?? undefined}- className="inline-flex items-center gap-1 rounded-md border border-border/50 bg-foreground/4 dark:bg-white/6 px-1 py-px text-[0.85em] font-medium leading-tight text-foreground/80 whitespace-nowrap"+ className="inline-flex items-center gap-1 rounded-md border border-border/70 bg-foreground/4 dark:bg-white/6 px-1 py-px text-[0.85em] font-medium leading-tight text-foreground/80 whitespace-nowrap"><PersonAvatar email={email} displayName={label} size={13} />{label}diff --git a/src/components/ui/MentionSuggestions.tsx b/src/components/ui/MentionSuggestions.tsxindex cc4c3142c..254473cf9 100644--- a/src/components/ui/MentionSuggestions.tsx+++ b/src/components/ui/MentionSuggestions.tsx@@ -69,7 +69,7 @@ const MentionSuggestions = forwardRef<MentionSuggestionsHandle, MentionSuggestio{item.label}</span>{item.email && (- <span dir="ltr" className="truncate text-[11px] text-foreground/30">+ <span dir="ltr" className="truncate text-[11px] text-foreground/45">{item.email}</span>)}diff --git a/src/components/ui/ModelCardList.tsx b/src/components/ui/ModelCardList.tsxindex a11fe478f..05172dfc5 100644--- a/src/components/ui/ModelCardList.tsx+++ b/src/components/ui/ModelCardList.tsx@@ -33,13 +33,13 @@ const COLOR_CONFIG: Record<selected:"border-primary/30 bg-primary/8 dark:bg-primary/6 dark:border-primary/20 shadow-[0_0_0_1px_oklch(0.62_0.22_260/0.12),0_0_10px_-3px_oklch(0.62_0.22_260/0.18)]",default:- "border-border bg-surface-1 hover:border-border-hover hover:bg-muted dark:border-white/5 dark:bg-white/3 dark:hover:border-white/20 dark:hover:bg-white/8",+ "border-border bg-surface-1 hover:border-border-hover hover:bg-muted dark:border-white/10 dark:bg-white/3 dark:hover:border-white/20 dark:hover:bg-white/8",},blue: {selected:"border-primary/30 bg-primary/10 dark:bg-primary/6 shadow-[0_0_0_1px_oklch(0.62_0.22_260/0.15),0_0_12px_-3px_oklch(0.62_0.22_260/0.2)]",default:- "border-border bg-surface-1 hover:border-border-hover hover:bg-muted dark:border-white/5 dark:bg-white/3 dark:hover:border-white/20 dark:hover:bg-white/8",+ "border-border bg-surface-1 hover:border-border-hover hover:bg-muted dark:border-white/10 dark:bg-white/3 dark:hover:border-white/20 dark:hover:bg-white/8",},};@@ -144,8 +144,8 @@ export function ModelCard({<spanclassName={truncateDescription- ? "text-xs text-muted-foreground/60 truncate min-w-0 flex-1"- : "text-xs text-muted-foreground/50 tabular-nums shrink-0"+ ? "text-xs text-muted-foreground/70 truncate min-w-0 flex-1"+ : "text-xs text-muted-foreground/70 tabular-nums shrink-0"}>{model.description}@@ -185,7 +185,7 @@ export function ModelCard({}}size="sm"variant="ghost"- className="h-6 w-6 p-0 text-muted-foreground/40 hover:text-destructive opacity-0 group-hover:opacity-100 transition-[color,opacity,transform] active:scale-95"+ className="h-6 w-6 p-0 text-muted-foreground/70 hover:text-destructive opacity-0 group-hover:opacity-100 transition-[color,opacity,transform] active:scale-95"><Trash2 size={12} /></Button>diff --git a/src/components/ui/ProcessingModeSelector.tsx b/src/components/ui/ProcessingModeSelector.tsxindex 0392dd6de..e26d9bef2 100644--- a/src/components/ui/ProcessingModeSelector.tsx+++ b/src/components/ui/ProcessingModeSelector.tsx@@ -16,7 +16,7 @@ export default function ProcessingModeSelector({const { t } = useTranslation();return (<div- className={`relative flex p-0.5 rounded-lg bg-white/5 dark:bg-white/3 border border-white/10 dark:border-white/5 ${className}`}+ className={`relative flex p-0.5 rounded-lg bg-white/5 dark:bg-white/3 border border-white/10 dark:border-white/10 ${className}`}>{/* Sliding indicator */}<divdiff --git a/src/components/ui/PromptStudio.tsx b/src/components/ui/PromptStudio.tsxindex 9e0f598f6..e3c896419 100644--- a/src/components/ui/PromptStudio.tsx+++ b/src/components/ui/PromptStudio.tsx@@ -312,8 +312,8 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: Promp/>{/* Tab Navigation + Content in a single panel */}- <div className="rounded-xl border border-border/60 dark:border-border-subtle bg-card dark:bg-surface-2 overflow-hidden">- <div className="flex border-b border-border/40 dark:border-border-subtle">+ <div className="rounded-xl border border-border/70 dark:border-border-subtle bg-card dark:bg-surface-2 overflow-hidden">+ <div className="flex border-b border-border/70 dark:border-border-subtle">{tabs.map((tab) => {const Icon = tab.icon;const isActive = activeTab === tab.id;@@ -336,11 +336,11 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: Promp{/* ── View Tab ── */}{activeTab === "current" && (- <div className="divide-y divide-border/40 dark:divide-border-subtle">+ <div className="divide-y divide-border/60 dark:divide-border-subtle"><div className="px-5 py-4"><div className="flex items-center justify-between mb-3"><div className="flex items-center gap-2">- <p className="text-xs font-medium text-muted-foreground/60 uppercase tracking-wider">+ <p className="text-xs font-medium text-muted-foreground/70 uppercase tracking-wider">{isCustomPrompt? t("promptStudio.view.customPrompt"): t("promptStudio.view.defaultPrompt")}@@ -369,7 +369,7 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: Promp)}</Button></div>- <div className="bg-muted/30 dark:bg-surface-raised/30 border border-border/30 rounded-lg p-4 max-h-80 overflow-y-auto">+ <div className="bg-muted/30 dark:bg-surface-raised/30 border border-border/70 rounded-lg p-4 max-h-80 overflow-y-auto"><predir="auto"className="text-xs font-mono text-muted-foreground whitespace-pre-wrap leading-relaxed"@@ -383,7 +383,7 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: Promp{/* ── Edit Tab ── */}{activeTab === "edit" && (- <div className="divide-y divide-border/40 dark:divide-border-subtle">+ <div className="divide-y divide-border/60 dark:divide-border-subtle"><div className="px-5 py-4"><p className="text-xs text-muted-foreground leading-relaxed"><span className="font-medium text-warning">@@ -406,7 +406,7 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: PrompclassName="font-mono text-xs leading-relaxed"placeholder={t("promptStudio.edit.placeholder")}/>- <p className="text-xs text-muted-foreground/50 mt-2">+ <p className="text-xs text-muted-foreground/70 mt-2">{t("promptStudio.edit.agentNameLabel")}{" "}<span dir="auto" className="font-medium text-foreground">{agentName}@@ -487,7 +487,7 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: Promp: providerConfig.label;return (- <div className="divide-y divide-border/40 dark:divide-border-subtle">+ <div className="divide-y divide-border/60 dark:divide-border-subtle">{!isTranslate && !isAgent && !useCleanupModel && (<div className="px-5 py-4"><div className="rounded-lg border border-warning/20 bg-warning/5 dark:bg-warning/10 px-4 py-3">@@ -508,7 +508,7 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: Promp<div className="px-5 py-4"><div className="flex items-center gap-4"><div className="flex items-center gap-2">- <p className="text-xs text-muted-foreground/60 uppercase tracking-wider">+ <p className="text-xs text-muted-foreground/70 uppercase tracking-wider">{t("promptStudio.test.modelLabel")}</p><p dir="ltr" className="text-xs font-medium text-foreground font-mono">@@ -517,7 +517,7 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: Promp</div><div className="h-3 w-px bg-border/40" /><div className="flex items-center gap-2">- <p className="text-xs text-muted-foreground/60 uppercase tracking-wider">+ <p className="text-xs text-muted-foreground/70 uppercase tracking-wider">{t("promptStudio.test.providerLabel")}</p><p dir="ltr" className="text-xs font-medium text-foreground">@@ -558,7 +558,7 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: Promp/>{/* The agent tab always runs the agent prompt, addressed or not. */}{!isAgent && (- <p className="text-xs text-muted-foreground/40 mt-1.5">+ <p className="text-xs text-muted-foreground/70 mt-1.5">{isTranslate? t("promptStudio.test.translateHint", {language: getLanguageLabel(translationTargetLanguage),@@ -599,7 +599,7 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: Promp<Copy className="w-3 h-3 text-muted-foreground" /></Button></div>- <div className="bg-muted/30 dark:bg-surface-raised/30 border border-border/30 rounded-lg p-4 max-h-48 overflow-y-auto">+ <div className="bg-muted/30 dark:bg-surface-raised/30 border border-border/70 rounded-lg p-4 max-h-48 overflow-y-auto"><predir="auto"className="text-xs text-foreground whitespace-pre-wrap leading-relaxed"diff --git a/src/components/ui/ProviderTabs.tsx b/src/components/ui/ProviderTabs.tsxindex 14888817a..64efb5455 100644--- a/src/components/ui/ProviderTabs.tsx+++ b/src/components/ui/ProviderTabs.tsx@@ -99,7 +99,7 @@ export function ProviderTabs({className={cn("relative z-10 flex items-center gap-1 px-2.5 py-1 rounded-full font-medium text-xs whitespace-nowrap transition-colors duration-150",isDisabled- ? "text-muted-foreground/50 cursor-not-allowed ring-1 ring-border/40 dark:ring-white/5"+ ? "text-muted-foreground/70 cursor-not-allowed ring-1 ring-border/40 dark:ring-white/5": isSelected? "text-foreground [&_svg]:text-primary": "text-muted-foreground ring-1 ring-border/60 dark:ring-white/10 hover:text-foreground hover:bg-foreground/4 dark:hover:bg-white/5"diff --git a/src/components/ui/SearchableModelList.tsx b/src/components/ui/SearchableModelList.tsxindex d00aecd26..bf77ec331 100644--- a/src/components/ui/SearchableModelList.tsx+++ b/src/components/ui/SearchableModelList.tsx@@ -184,7 +184,7 @@ export default function SearchableModelList({<div dir="ltr" className="relative"><Searchsize={14}- className="absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground/50 pointer-events-none"+ className="absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground/70 pointer-events-none"/><Inputdir="ltr"@@ -230,7 +230,7 @@ export default function SearchableModelList({<span className="text-[11px] font-medium uppercase tracking-wide text-muted-foreground/70">{row.label}</span>- <span className="text-[11px] text-muted-foreground/40 tabular-nums">+ <span className="text-[11px] text-muted-foreground/70 tabular-nums">{row.count}</span></div>diff --git a/src/components/ui/SettingsSection.tsx b/src/components/ui/SettingsSection.tsxindex 628eceb4e..0df0d20f1 100644--- a/src/components/ui/SettingsSection.tsx+++ b/src/components/ui/SettingsSection.tsx@@ -44,7 +44,7 @@ export const SettingsGroup: React.FC<SettingsGroupProps> = ({}) => {const baseClasses = "space-y-3 p-3 rounded-lg border";const variantClasses = {- default: "bg-card/50 dark:bg-surface-2/50 border-border/50 dark:border-border-subtle",+ default: "bg-card/50 dark:bg-surface-2/50 border-border/70 dark:border-border-subtle",highlighted: "bg-primary/5 dark:bg-primary/10 border-primary/20 dark:border-primary/30",};@@ -97,7 +97,7 @@ export function SettingsPanel({}) {return (<div- className={`rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 backdrop-blur-sm divide-y divide-border/30 dark:divide-border-subtle/50 ${className}`}+ className={`rounded-lg border border-border/70 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 backdrop-blur-sm divide-y divide-border/60 dark:divide-border-subtle/50 ${className}`}>{children}</div>diff --git a/src/components/ui/SidebarModal.tsx b/src/components/ui/SidebarModal.tsxindex ff279ed60..25b1f1b4f 100644--- a/src/components/ui/SidebarModal.tsx+++ b/src/components/ui/SidebarModal.tsx@@ -132,7 +132,7 @@ export default function SidebarModal<T extends string>({{/* Sidebar */}<div- className={`${actualSidebarWidth} shrink-0 border-e border-border/40 dark:border-border-subtle flex flex-col bg-surface-1 dark:bg-surface-0 transition-[width] duration-200 ease-out`}+ className={`${actualSidebarWidth} shrink-0 border-e border-border/70 dark:border-border-subtle flex flex-col bg-surface-1 dark:bg-surface-0 transition-[width] duration-200 ease-out`}>{/* Identity / custom header */}{header && !isCompact && <div className="px-4 pt-5 pb-1">{header}</div>}@@ -189,7 +189,7 @@ export default function SidebarModal<T extends string>({{item.shortcut && !item.badge && (<kbddir="ltr"- className="ms-auto text-xs text-muted-foreground/25 font-mono shrink-0"+ className="ms-auto text-xs text-muted-foreground/70 font-mono shrink-0">{item.shortcut}</kbd>@@ -210,7 +210,7 @@ export default function SidebarModal<T extends string>({{/* Footer / version */}{version && (<div- className={`border-t border-border/20 dark:border-border-subtle ${+ className={`border-t border-border/70 dark:border-border-subtle ${isCompact ? "flex justify-center py-2.5" : "px-3 py-2.5"}`}>@@ -219,7 +219,7 @@ export default function SidebarModal<T extends string>({{!isCompact && (<spandir="ltr"- className="text-xs text-muted-foreground/40 tabular-nums tracking-wide"+ className="text-xs text-muted-foreground/70 tabular-nums tracking-wide">v{version}</span>diff --git a/src/components/ui/StepProgress.tsx b/src/components/ui/StepProgress.tsxindex 5a4490b80..f6eaf73d0 100644--- a/src/components/ui/StepProgress.tsx+++ b/src/components/ui/StepProgress.tsx@@ -28,7 +28,7 @@ export default function StepProgress({ steps, currentStep, className = "" }: Ste? "bg-primary/10 text-primary": isCompleted? "text-success"- : "text-muted-foreground/40"+ : "text-muted-foreground/70"}`}><div@@ -37,7 +37,7 @@ export default function StepProgress({ steps, currentStep, className = "" }: Ste? "bg-primary text-primary-foreground": isCompleted? "bg-success/15 text-success"- : "bg-muted text-muted-foreground/40"+ : "bg-muted text-muted-foreground/70"}`}>{isCompleted ? (@@ -52,7 +52,7 @@ export default function StepProgress({ steps, currentStep, className = "" }: Ste? "text-primary": isCompleted? "text-success"- : "text-muted-foreground/40"+ : "text-muted-foreground/70"}`}>{step.title}diff --git a/src/components/ui/TranscriptionItem.tsx b/src/components/ui/TranscriptionItem.tsxindex 6be588fd9..3d02c237b 100644--- a/src/components/ui/TranscriptionItem.tsx+++ b/src/components/ui/TranscriptionItem.tsx@@ -2,6 +2,12 @@ import { useState } from "react";import { useTranslation } from "react-i18next";import { Button } from "./button";import { Tooltip } from "./tooltip";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from "./dropdown-menu";import {Copy,Trash2,@@ -11,6 +17,7 @@ import {Loader2,AlertCircle,ArchiveRestore,+ MoreVertical,} from "../icons";import type {TranscriptionItem as TranscriptionItemType,@@ -22,12 +29,23 @@ import { formatMmSs } from "../../utils/formatDuration";const platform = getCachedPlatform();+const ACTION_BUTTON_CLASS =+ "h-7 w-7 rounded-full text-muted-foreground/70 hover:text-foreground hover:bg-foreground/6 dark:hover:bg-white/6";+function getShowInFolderKey(): string {if (platform === "win32") return "controlPanel.history.showInFolderWindows";if (platform === "linux") return "controlPanel.history.showInFolderLinux";return "controlPanel.history.showInFolder";}+interface MenuAction {+ key: string;+ icon: typeof Copy;+ label: string;+ onSelect: () => void;+ destructive?: boolean;+}+interface TranscriptionItemProps {item: TranscriptionItemType;onCopy: (text: string) => void;@@ -46,7 +64,6 @@ export default function TranscriptionItem({onOpenSettings,}: TranscriptionItemProps) {const { t, i18n } = useTranslation();- const [isHovered, setIsHovered] = useState(false);const [isExpanded, setIsExpanded] = useState(false);const [isRetrying, setIsRetrying] = useState(false);@@ -71,14 +88,13 @@ export default function TranscriptionItem({const isFailed = item.status === "failed";const isDiscarded = item.status === "discarded";+ const isTranscribed = !isFailed && !isDiscarded;const discardedDuration =item.audio_duration_ms && item.audio_duration_ms > 0? formatMmSs(Math.round(item.audio_duration_ms / 1000)): null;const rawText = item.raw_text;- const hasRawText = rawText !== null;const hasAudio = item.has_audio === 1;- const showUtilityGroup = hasRawText || hasAudio;const errorCode = item.error_code as TranscriptionErrorCode;const isConfigError =@@ -89,47 +105,137 @@ export default function TranscriptionItem({const isLimitError = errorCode === "LIMIT_REACHED";const isOfflineError = errorCode === "OFFLINE";+ const retryLabel = t(+ item.route_kind === "translation"+ ? "controlPanel.history.retryTranslationMode"+ : "controlPanel.history.retryTranscription"+ );++ // Copy stays visible as the one-tap action; everything else lives in the menu.+ const candidateActions: (MenuAction | false)[] = [+ isDiscarded &&+ hasAudio && {+ key: "recover",+ icon: ArchiveRestore,+ label: t("controlPanel.history.discarded.recover"),+ onSelect: handleRetry,+ },+ !isDiscarded &&+ hasAudio && { key: "retry", icon: RotateCcw, label: retryLabel, onSelect: handleRetry },+ isTranscribed &&+ rawText !== null && {+ key: "raw",+ icon: FileText,+ label: t("controlPanel.history.viewRawTranscript"),+ onSelect: () => setIsExpanded((expanded) => !expanded),+ },+ hasAudio && {+ key: "folder",+ icon: FolderOpen,+ label: t(getShowInFolderKey()),+ onSelect: () => onShowAudioInFolder?.(item.id),+ },+ {+ key: "delete",+ icon: Trash2,+ label: t("controlPanel.history.deleteItem"),+ onSelect: () => onDelete(item.id),+ destructive: true,+ },+ ];+ const menuActions = candidateActions.filter((action): action is MenuAction => action !== false);+return (<divclassName={cn(- "group rounded-md border px-3 py-2.5 transition-colors duration-150",+ "group/row px-4 py-3 transition-colors duration-150",isFailed- ? "border-destructive/30 bg-destructive/5 hover:bg-destructive/10"+ ? "bg-destructive/5": isDiscarded- ? "border-border/30 bg-muted/20 hover:bg-muted/30 opacity-80"- : "border-border/40 dark:border-border-subtle/60 bg-card/50 dark:bg-surface-2/60 hover:bg-muted/30 dark:hover:bg-surface-2/80",- // Translation rows get a 2px primary accent; ps-[11px] keeps text aligned with 1px-bordered rows.- item.route_kind === "translation" && "border-s-2 border-s-primary/70 ps-[11px]"+ ? "bg-muted/20 opacity-80"+ : "hover:bg-muted/20 dark:hover:bg-white/2",+ // Translation rows get a 2px primary accent; ps-[14px] keeps text aligned with the other rows.+ item.route_kind === "translation" && "border-s-2 border-s-primary/70 ps-[14px]")}- onMouseEnter={() => setIsHovered(true)}- onMouseLeave={() => setIsHovered(false)}>- <div className="flex items-start gap-3">- {formattedTime && (- <span className="shrink-0 text-[11px] text-muted-foreground tabular-nums pt-0.5">- {formattedTime}- </span>- )}+ <div className="flex items-center justify-between gap-3">+ <span className="text-xs tabular-nums text-muted-foreground">{formattedTime}</span>+ <div+ className={cn(+ "-me-1.5 flex items-center gap-1 transition-opacity duration-150",+ // Actions surface on hover, keyboard focus, or while the menu is open; failed and+ // discarded rows keep them visible because recovery is the point of the row.+ isTranscribed &&+ "opacity-0 group-hover/row:opacity-100 has-[:focus-visible]:opacity-100 has-[[data-state=open]]:opacity-100"+ )}+ >+ {isTranscribed && (+ <Tooltip content={t("controlPanel.history.copyText")}>+ <Button+ size="icon"+ variant="ghost"+ onClick={() => onCopy(item.text)}+ className={ACTION_BUTTON_CLASS}+ >+ <Copy size={13} />+ </Button>+ </Tooltip>+ )}+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ disabled={isRetrying}+ aria-label={t("controlPanel.history.moreActions")}+ className={ACTION_BUTTON_CLASS}+ >+ {isRetrying ? (+ <Loader2 size={13} className="animate-spin" />+ ) : (+ <MoreVertical size={13} />+ )}+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end">+ {menuActions.map(({ key, icon: Icon, label, onSelect, destructive }) => (+ <DropdownMenuItem+ key={key}+ onSelect={onSelect}+ className={cn(+ "gap-2.5",+ destructive && "text-destructive focus:bg-destructive/8 focus:text-destructive"+ )}+ >+ <Icon size={14} className="shrink-0 opacity-70" />+ {label}+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ </div>+ <div className="mt-1.5">{isFailed ? (- <div className="flex-1 min-w-0 flex items-start gap-2">- <AlertCircle size={14} className="shrink-0 text-destructive mt-0.5" />+ <div className="flex items-start gap-2">+ <AlertCircle size={14} className="mt-0.5 shrink-0 text-destructive" /><div className="min-w-0">- <p className="text-sm text-destructive font-medium">+ <p className="text-sm font-medium text-destructive">{t("controlPanel.history.transcriptionFailed")}</p>{item.error_message && (- <p className="text-xs text-muted-foreground mt-0.5 truncate">+ <p className="mt-0.5 text-xs leading-relaxed wrap-break-word text-muted-foreground">{item.error_message}</p>)}{isConfigError && (- <p className="text-xs text-muted-foreground mt-1">+ <p className="mt-1 text-xs text-muted-foreground">{hasAudio ? (<><buttononClick={() => onOpenSettings?.()}- className="text-primary hover:underline cursor-pointer"+ className="cursor-pointer text-primary hover:underline">{t("controlPanel.history.failedCtaSettings")}</button>{" "}@@ -138,7 +244,7 @@ export default function TranscriptionItem({) : (<buttononClick={() => onOpenSettings?.()}- className="text-primary hover:underline cursor-pointer"+ className="cursor-pointer text-primary hover:underline">{t("controlPanel.history.failedCtaSettingsOnly")}</button>@@ -146,23 +252,23 @@ export default function TranscriptionItem({</p>)}{isLimitError && (- <p className="text-xs text-muted-foreground mt-1">+ <p className="mt-1 text-xs text-muted-foreground">{t("controlPanel.history.failedLimitReached")}</p>)}{isOfflineError && (- <p className="text-xs text-muted-foreground mt-1">+ <p className="mt-1 text-xs text-muted-foreground">{t("controlPanel.history.failedOffline")}</p>)}</div></div>) : isDiscarded ? (- <div className="flex-1 min-w-0 flex items-center gap-2">+ <div className="flex items-center gap-2"><span className="shrink-0 rounded-sm bg-muted px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-muted-foreground">{t("controlPanel.history.discarded.badge")}</span>- <span className="text-sm text-muted-foreground truncate">+ <span className="truncate text-sm text-muted-foreground">{discardedDuration? t("controlPanel.history.discarded.recordingWithDuration", {duration: discardedDuration,@@ -173,135 +279,14 @@ export default function TranscriptionItem({) : (<pdir="auto"- className="flex-1 min-w-0 text-foreground text-sm leading-normal wrap-break-word whitespace-pre-wrap"+ className="text-base leading-normal wrap-break-word whitespace-pre-wrap text-foreground">{item.text}</p>)}-- <div- className={cn(- "flex items-center gap-0.5 shrink-0 transition-opacity duration-150",- isFailed || isDiscarded ? "opacity-100" : isHovered ? "opacity-100" : "opacity-0"- )}- >- {isDiscarded && hasAudio && (- <Tooltip content={t("controlPanel.history.discarded.recover")}>- <Button- size="icon"- variant="ghost"- onClick={handleRetry}- disabled={isRetrying}- className="h-6 w-6 rounded-sm text-muted-foreground hover:text-primary hover:bg-primary/10"- >- {isRetrying ? (- <Loader2 size={12} className="animate-spin" />- ) : (- <ArchiveRestore size={12} />- )}- </Button>- </Tooltip>- )}- {isFailed && hasAudio && (- <Tooltip- content={t(- item.route_kind === "translation"- ? "controlPanel.history.retryTranslationMode"- : "controlPanel.history.retryTranscription"- )}- >- <Button- size="icon"- variant="ghost"- onClick={handleRetry}- disabled={isRetrying}- className="h-6 w-6 rounded-sm text-destructive hover:text-destructive hover:bg-destructive/10"- >- {isRetrying ? (- <Loader2 size={12} className="animate-spin" />- ) : (- <RotateCcw size={12} />- )}- </Button>- </Tooltip>- )}- {!isFailed && !isDiscarded && hasRawText && (- <Tooltip content={t("controlPanel.history.viewRawTranscript")}>- <Button- size="icon"- variant="ghost"- onClick={() => setIsExpanded(!isExpanded)}- className={cn(- "h-6 w-6 rounded-sm text-muted-foreground hover:text-primary hover:bg-primary/10",- isExpanded && "text-primary"- )}- >- <FileText size={12} />- </Button>- </Tooltip>- )}- {hasAudio && (- <Tooltip content={t(getShowInFolderKey())}>- <Button- size="icon"- variant="ghost"- onClick={() => onShowAudioInFolder?.(item.id)}- className="h-6 w-6 rounded-sm text-muted-foreground hover:text-primary hover:bg-primary/10"- >- <FolderOpen size={12} />- </Button>- </Tooltip>- )}- {!isFailed && !isDiscarded && hasAudio && (- <Tooltip- content={t(- item.route_kind === "translation"- ? "controlPanel.history.retryTranslationMode"- : "controlPanel.history.retryTranscription"- )}- >- <Button- size="icon"- variant="ghost"- onClick={handleRetry}- disabled={isRetrying}- className="h-6 w-6 rounded-sm text-muted-foreground hover:text-primary hover:bg-primary/10"- >- {isRetrying ? (- <Loader2 size={12} className="animate-spin" />- ) : (- <RotateCcw size={12} />- )}- </Button>- </Tooltip>- )}- {showUtilityGroup && <div className="w-px h-3 bg-border/30" />}- {!isFailed && !isDiscarded && (- <Tooltip content={t("controlPanel.history.copyText")}>- <Button- size="icon"- variant="ghost"- onClick={() => onCopy(item.text)}- className="h-6 w-6 rounded-sm text-muted-foreground hover:text-foreground hover:bg-foreground/10"- >- <Copy size={12} />- </Button>- </Tooltip>- )}- <Tooltip content={t("controlPanel.history.deleteItem")}>- <Button- size="icon"- variant="ghost"- onClick={() => onDelete(item.id)}- className="h-6 w-6 rounded-sm text-muted-foreground hover:text-destructive hover:bg-destructive/10"- >- <Trash2 size={12} />- </Button>- </Tooltip>- </div></div>- {!isFailed && !isDiscarded && rawText !== null && (+ {isTranscribed && rawText !== null && (<divinert={!isExpanded}className={cn(@@ -310,9 +295,9 @@ export default function TranscriptionItem({)}><div className="min-h-0 overflow-hidden">- <div className="border-t border-border/20 mt-2 pt-2">+ <div className="mt-2 border-t border-border/70 pt-2"><div className="flex items-center justify-between">- <span className="text-[10px] font-medium text-muted-foreground uppercase tracking-wider">+ <span className="text-[10px] font-medium uppercase tracking-wider text-muted-foreground">{t("controlPanel.history.rawTranscript")}</span><Tooltip content={t("controlPanel.history.copyRawTranscript")}>@@ -320,17 +305,17 @@ export default function TranscriptionItem({size="icon"variant="ghost"onClick={() => onCopy(rawText)}- className="h-5 w-5 rounded-sm text-muted-foreground hover:text-foreground hover:bg-foreground/10"+ className="h-5 w-5 rounded-sm text-muted-foreground hover:bg-foreground/10 hover:text-foreground"><Copy size={10} /></Button></Tooltip></div>- <p dir="auto" className="text-xs text-muted-foreground/80 leading-relaxed mt-1">+ <p dir="auto" className="mt-1 text-xs leading-relaxed text-muted-foreground/80">{rawText}</p>{rawText === item.text && (- <p className="text-[10px] text-muted-foreground/50 italic mt-1">+ <p className="mt-1 text-[10px] italic text-muted-foreground/70">{t("controlPanel.history.noAiProcessing")}</p>)}diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsxindex a914c138a..55ab8753e 100644--- a/src/components/ui/button.tsx+++ b/src/components/ui/button.tsx@@ -3,6 +3,7 @@ import { Slot } from "@radix-ui/react-slot";import { cva, type VariantProps } from "class-variance-authority";import { cn } from "../lib/utils";+import { BRAND_GLASS_SURFACE } from "./gradientCircle";const buttonVariants = cva([@@ -16,15 +17,13 @@ const buttonVariants = cva({variants: {variant: {- // Primary CTA — ultra-premium with subtle depth+ // Primary CTA — brand glass capsuledefault: [- "relative text-primary-foreground font-semibold tracking-[0.005em]",- "bg-primary",- "border border-primary/60",- "shadow-sm",- "hover:bg-primary/95 hover:shadow",- "active:bg-primary/85 active:scale-[0.985]",- "transition-[background-color,border-color,color,transform] duration-200 ease-out",+ "relative rounded-full font-semibold tracking-[0.005em]",+ BRAND_GLASS_SURFACE,+ "hover:brightness-110",+ "active:brightness-95 active:scale-[0.985]",+ "transition-[filter,transform] duration-200 ease-out",].join(" "),// Success — uses design tokens@@ -63,7 +62,7 @@ const buttonVariants = cva("outline-flat": ["font-medium","text-muted-foreground/70 bg-transparent",- "border border-border/50",+ "border border-border/70","hover:text-foreground/80 hover:border-border hover:bg-foreground/3","active:scale-[0.98]","dark:border-white/10 dark:hover:bg-white/5 dark:hover:border-white/15",@@ -73,10 +72,10 @@ const buttonVariants = cva(secondary: ["relative font-medium","text-foreground bg-secondary",- "border border-border/50",+ "border border-border/70","hover:bg-muted","active:scale-[0.98]",- "dark:text-foreground/90 dark:bg-white/8 dark:border-white/5 dark:hover:bg-white/12",+ "dark:text-foreground/90 dark:bg-white/8 dark:border-white/10 dark:hover:bg-white/12",].join(" "),// Ghost — uses design tokens@@ -100,7 +99,7 @@ const buttonVariants = cva(social: ["relative font-medium","text-foreground bg-surface-1/80 backdrop-blur-xl",- "border border-border/60",+ "border border-border/70","shadow-sm gap-2","hover:bg-surface-2/90 hover:border-border-hover hover:shadow","active:scale-[0.985] active:shadow-sm",@@ -137,6 +136,7 @@ function Button({return (<Compdata-slot="button"+ data-variant={variant ?? "default"}className={cn(buttonVariants({ variant, size, className }))}{...props}/>diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsxindex df1315164..5164b4f6a 100644--- a/src/components/ui/dialog.tsx+++ b/src/components/ui/dialog.tsx@@ -47,7 +47,7 @@ const DialogContent = React.forwardRef<}}className={cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-2xl duration-200 rounded-2xl",- "bg-card border-border/60",+ "bg-card border-border/70","dark:bg-surface-2 dark:border-border dark:shadow-modal","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",classNamediff --git a/src/components/ui/gradientCircle.ts b/src/components/ui/gradientCircle.tsindex a746842f5..0aefef647 100644--- a/src/components/ui/gradientCircle.ts+++ b/src/components/ui/gradientCircle.ts@@ -1,5 +1,10 @@-// Brand gradient from the Figma mic/send assets (#5B81E4 → #154BD4 → #163992, top-right to bottom-left).-// transform-gpu keeps each circle on its own compositing layer from first paint —-// without it, Chromium can flash a black first frame when one mounts over backdrop-blur.-export const GRADIENT_CIRCLE =- "bg-[linear-gradient(221deg,#5B81E4_0%,#154BD4_55%,#163992_100%)] text-white transform-gpu";+// Brand blue as glass, matched to the app icon: the --gradient-brand-glass ramp under the+// rim stack in --shadow-brand-glass (bright top edge, hairline, darker bottom edge). Every+// primary action wears this: the Button default variant, the mic/send circles, the upcoming+// events today header, the onboarding brand tile.+export const BRAND_GLASS_SURFACE =+ "bg-[image:var(--gradient-brand-glass)] shadow-(--shadow-brand-glass) text-white";++// transform-gpu keeps each circle on its own compositing layer from first paint — without it,+// Chromium can flash a black first frame when one mounts over backdrop-blur.+export const GRADIENT_CIRCLE = `${BRAND_GLASS_SURFACE} transform-gpu`;diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsxindex 12320496a..3eb94b4d9 100644--- a/src/components/ui/input.tsx+++ b/src/components/ui/input.tsx@@ -9,11 +9,11 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {data-slot="input"className={cn("flex h-10 w-full min-w-0 rounded border border-border/70 bg-input px-3 py-2 text-sm text-foreground shadow-none transition-colors duration-200 outline-none",- "placeholder:text-muted-foreground/40",+ "placeholder:text-muted-foreground/70","selection:bg-primary selection:text-primary-foreground","file:text-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-muted",- "dark:bg-surface-1 dark:border-border-subtle/50",+ "dark:bg-surface-1 dark:border-border-subtle/60","hover:border-border-hover","focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary/10","dark:focus-visible:border-border-active dark:focus-visible:ring-ring/10",diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsxindex 7f236d39b..23ee78e93 100644--- a/src/components/ui/select.tsx+++ b/src/components/ui/select.tsx@@ -52,7 +52,7 @@ const SelectContent = React.forwardRef<<SelectPrimitive.Contentref={ref}className={cn(- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border border-border/60 bg-popover text-popover-foreground shadow-xl",+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border border-border/70 bg-popover text-popover-foreground shadow-xl","dark:bg-surface-3 dark:border-border-hover dark:shadow-elevated","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",position === "popper" &&diff --git a/src/helpers/builtinActions.js b/src/helpers/builtinActions.jsnew file mode 100644index 000000000..0fd68038f--- /dev/null+++ b/src/helpers/builtinActions.js@@ -0,0 +1,143 @@+// Built-in note actions. The database seeds any that are missing on startup and+// only rewrites a row whose prompt still equals a previous default, so a user's+// edited prompt is never touched. Generate Notes keeps its original prompt and+// the generic system-prompt wrapper; the newer built-ins are complete+// instructions and are sent standalone (see STANDALONE_PROMPT_KEYS).++export const GENERATE_NOTES_KEY = "notes.actions.builtin.generateNotes";+export const DETAILED_NOTES_KEY = "notes.actions.builtin.detailedNotes";+export const FOLLOW_UP_EMAIL_KEY = "notes.actions.builtin.followUpEmail";++const GENERATE_NOTES_PROMPT =+ "Transform the provided content into clean, well-structured notes in markdown. Preserve the user's intent and all substantive information. Remove filler, small talk, false starts, and redundant content. For personal notes, improve grammar and structure for readability. For meeting transcripts, extract key discussion points, decisions, action items, and follow-ups.";++const DETAILED_NOTES_PROMPT = `You are an expert meeting-notes editor. Convert the provided meeting material into accurate, comprehensive, and easy-to-scan notes in Markdown.++The source may contain:+- meeting context, such as the calendar title or participant names;+- manual notes written by the user;+- a transcript where "You:" is the user and "Them:" is the other participant or participants;+- a glossary of known clients, projects, products, people, acronyms, and specialized terms.++Your priorities, in order, are:+1. Factual accuracy+2. Preservation of important specifics+3. Complete coverage of substantive topics+4. Clear decisions and action items+5. Concise, readable presentation++ACCURACY AND ENTITY RULES:+- Use only information supported by the provided material. Do not invent facts, decisions, owners, deadlines, names, or explanations.+- Preserve the exact names of clients, companies, projects, products, reports, people, tools, and acronyms whenever they are mentioned or clearly referenced.+- Never replace a relevant named entity with a vague substitute such as "items," "things," "the project," or "the client."+- Prefer spellings from meeting context, manual notes, and the glossary when resolving an apparent transcription variant.+- Context and glossary entries are spelling references, not evidence that something was discussed. Include them only when the source indicates they are relevant.+- If an important name is genuinely unclear and cannot be resolved from context, say "[name unclear in transcript]" rather than guessing.+- Preserve exact numbers, dates, deadlines, metrics, commitments, and document names.+- Distinguish clearly between something that was discussed, proposed, requested, agreed, or finally decided.+- Treat manual notes as high-priority signals, but reconcile them with the transcript rather than blindly copying them.++COVERAGE RULES:+- Capture every substantive topic discussed.+- For each topic, preserve the important context: what was raised, why it matters, alternatives or concerns discussed, and the resulting next step.+- Consolidate repeated discussion into one coherent point.+- Remove greetings, filler, false starts, and repetition.+- Be concise by removing redundancy, not by omitting meaningful details.+- Give longer meetings proportionally more detail. Do not reduce a substantial meeting to only a few generic bullets.++OUTPUT FORMAT:+- Do not include a title, date, location, attendee list, preamble, table, or horizontal rule.+- Omit any section that has no supported content.++## Summary+Provide 3–5 concise bullets covering the meeting's purpose, most important named subjects, major outcomes, and immediate next steps.++## Discussion+Organize the discussion under descriptive topic subheadings. Use the actual client, project, product, or initiative name in each relevant topic. Include enough context that someone who missed the meeting can understand what happened and why.++## Decisions+List only decisions that were explicitly made or clearly agreed upon. Do not turn proposals or preferences into decisions.++## Action Items+Use this format:+- [ ] **Owner** — Specific action — **Due:** stated date++If the source does not specify an owner or due date, write "Owner not specified" or "Due date not specified." Use "You" or "Them" only when an actual name is unavailable.++## Open Questions and Follow-ups+List unresolved questions, dependencies, requested follow-ups, and issues requiring confirmation.++FINAL QUALITY CHECK:+Before responding, verify that:+- every important client, project, product, person, acronym, number, and date from the source is preserved where relevant;+- no named entity has been replaced by a generic noun;+- proposals are not presented as decisions;+- action items contain a concrete task, owner status, and due-date status;+- the notes contain no unsupported claims.++Return only the finished Markdown notes.`;++const FOLLOW_UP_EMAIL_PROMPT = `You are an expert at writing follow-up emails after meetings. Draft the follow-up email the user ("You") would send to the other participants, based only on the provided meeting material: meeting context, the user's manual notes, and the transcript.++RULES:+- Use only information supported by the material. Do not invent facts, decisions, owners, deadlines, or names.+- Preserve the exact names of people, clients, projects, products, numbers, dates, and documents.+- Distinguish what was decided from what was proposed or still open.+- Write in the first person as the user, addressed to the other participants. Professional and warm, no filler.+- Keep it short: a two-sentence opener, then the substance, then a clear close. Aim for under 250 words.+- Use [brackets] for anything the email needs that the material does not supply, such as a recipient name.++FORMAT:+Subject: <a specific subject line>++<greeting>++<one short paragraph recapping the purpose and the main outcome>++Decisions+- <one bullet per decision that was clearly agreed>++Next steps+- <Owner> — <action> — <due date, or "date to confirm">++Open questions+- <one bullet per unresolved item, if any>++<sign-off as the user>++Omit any section that has no supported content. Return only the email.`;++export const BUILTIN_ACTIONS = [+ {+ translationKey: GENERATE_NOTES_KEY,+ name: "Generate Notes",+ description: "Clean up, structure, and enhance your notes",+ prompt: GENERATE_NOTES_PROMPT,+ // A pre-release build briefly shipped the detailed prompt under this key.+ previousPrompts: [DETAILED_NOTES_PROMPT],+ icon: "sparkles",+ sortOrder: 0,+ },+ {+ translationKey: DETAILED_NOTES_KEY,+ name: "Detailed Notes",+ description: "Accurate, comprehensive meeting notes with decisions and action items",+ prompt: DETAILED_NOTES_PROMPT,+ previousPrompts: [],+ icon: "sparkles",+ sortOrder: 1,+ },+ {+ translationKey: FOLLOW_UP_EMAIL_KEY,+ name: "Follow-up email",+ description: "Draft a follow-up email from your notes and transcript",+ prompt: FOLLOW_UP_EMAIL_PROMPT,+ previousPrompts: [],+ icon: "mail",+ sortOrder: 2,+ },+];++// Built-ins whose prompt is a complete instruction set and must not be wrapped+// in the generic system prompts.+export const STANDALONE_PROMPT_KEYS = new Set([DETAILED_NOTES_KEY, FOLLOW_UP_EMAIL_KEY]);diff --git a/src/helpers/database.js b/src/helpers/database.jsindex 2f3433792..0d768c760 100644--- a/src/helpers/database.js+++ b/src/helpers/database.js@@ -11,6 +11,7 @@ const { parseEventTime } = require("./calendarAvailability");// keeps the cloud created_at but lets timestamp default to the local pull, so// a naive value must never outrank created_at when dating a historical row.const { hasExplicitTimeZone, parseDbTimestamp, toDbTimestamp } = require("./dbTimestamp");+const { BUILTIN_ACTIONS, GENERATE_NOTES_KEY } = require("./builtinActions");const {ANALYTICS_COUNTER_VERSION,ANALYTICS_HISTORY_BACKFILL_VERSION,@@ -522,33 +523,41 @@ class DatabaseManager {"CREATE INDEX IF NOT EXISTS idx_agent_conversations_container ON agent_conversations(space_id, folder_id)");- const actionCount = this.db.prepare("SELECT COUNT(*) as count FROM actions").get();- if (actionCount.count === 0) {- this.db- .prepare(- "INSERT INTO actions (name, description, prompt, icon, is_builtin, sort_order, translation_key) VALUES (?, ?, ?, ?, 1, 0, ?)"- )- .run(- "Generate Notes",- "Clean up, structure, and enhance your notes",- "Transform the provided content into clean, well-structured notes in markdown. Preserve the user's intent and all substantive information. Remove filler, small talk, false starts, and redundant content. For personal notes, improve grammar and structure for readability. For meeting transcripts, extract key discussion points, decisions, action items, and follow-ups.",- "sparkles",- "notes.actions.builtin.generateNotes"- );- }-- // Migrate built-in action to "Generate Notes"+ // Pre-2026 installs carry one built-in row under an older key: rename it to+ // Generate Notes so the loop below recognizes and upgrades it.+ const builtinKeys = BUILTIN_ACTIONS.map((action) => action.translationKey);this.db.prepare(- "UPDATE actions SET name = ?, description = ?, prompt = ?, translation_key = ? WHERE is_builtin = 1 AND translation_key != ?"+ `UPDATE actions SET translation_key = ? WHERE is_builtin = 1 AND (translation_key IS NULL OR translation_key NOT IN (${builtinKeys.map(() => "?").join(", ")}))`)- .run(- "Generate Notes",- "Clean up, structure, and enhance your notes",- "Transform the provided content into clean, well-structured notes in markdown. Preserve the user's intent and all substantive information. Remove filler, small talk, false starts, and redundant content. For personal notes, improve grammar and structure for readability. For meeting transcripts, extract key discussion points, decisions, action items, and follow-ups.",- "notes.actions.builtin.generateNotes",- "notes.actions.builtin.generateNotes"- );+ .run(GENERATE_NOTES_KEY, ...builtinKeys);++ // Built-in actions: insert any that are missing, and roll a new default prompt+ // out to rows whose prompt is still a previous default (never a user edit).+ const selectBuiltin = this.db.prepare(+ "SELECT id, prompt FROM actions WHERE is_builtin = 1 AND translation_key = ?"+ );+ const insertBuiltin = this.db.prepare(+ "INSERT INTO actions (name, description, prompt, icon, is_builtin, sort_order, translation_key) VALUES (?, ?, ?, ?, 1, ?, ?)"+ );+ const upgradeBuiltin = this.db.prepare(+ "UPDATE actions SET name = ?, description = ?, prompt = ? WHERE id = ?"+ );+ for (const action of BUILTIN_ACTIONS) {+ const existing = selectBuiltin.get(action.translationKey);+ if (!existing) {+ insertBuiltin.run(+ action.name,+ action.description,+ action.prompt,+ action.icon,+ action.sortOrder,+ action.translationKey+ );+ } else if (action.previousPrompts.includes(existing.prompt)) {+ upgradeBuiltin.run(action.name, action.description, action.prompt, existing.id);+ }+ }this.db.exec(`CREATE TABLE IF NOT EXISTS google_calendar_tokens (diff --git a/src/helpers/localASROrganization.ts b/src/helpers/localASROrganization.tsindex e5da5a61a..4450ed7c5 100644--- a/src/helpers/localASROrganization.ts+++ b/src/helpers/localASROrganization.ts@@ -2,15 +2,25 @@ import modelData from "../models/modelRegistryData.json";const catalog = modelData.parakeetModels as Record<string,- { organization?: { id: string }; modelType?: string }+ { organization?: { id: string }; modelType?: string; recommended?: boolean }>;+// Oruk leads: it is the recommended local route, so it is the first tab everywhere.export const LOCAL_ASR_ORGANIZATIONS = [+ { id: "oruk", name: "Oruk" },{ id: "whisper", name: "OpenAI" },{ id: "nvidia", name: "NVIDIA" },{ id: "cohere", name: "Cohere" },- { id: "oruk", name: "Oruk" },];+// What the local route opens on before the user has ever chosen a local model.+export const DEFAULT_LOCAL_ASR_SELECTION = {+ provider: "oruk",+ modelId:+ Object.keys(catalog).find(+ (id) => catalog[id]?.organization?.id === "oruk" && catalog[id]?.recommended+ ) ?? "",+};+export function getASRModelOrganization(modelId: string): string {return (catalog[modelId]?.organization?.id ||diff --git a/src/helpers/meetingTranscriptionLifecycle.js b/src/helpers/meetingTranscriptionLifecycle.jsindex d967ba2d0..5d3d5e840 100644--- a/src/helpers/meetingTranscriptionLifecycle.js+++ b/src/helpers/meetingTranscriptionLifecycle.js@@ -16,7 +16,12 @@ function createMeetingTranscriptionLifecycle({ start, stop, onError = () => {} }session.ownerWebContents?.removeListener?.("destroyed", session.ownerLossHandler);session.ownerWebContents?.removeListener?.("render-process-gone", session.ownerLossHandler);+ session.ownerWebContents?.removeListener?.(+ "did-start-navigation",+ session.ownerNavigationHandler+ );session.ownerLossHandler = null;+ session.ownerNavigationHandler = null;};const removeSession = (session) => {@@ -52,6 +57,18 @@ function createMeetingTranscriptionLifecycle({ start, stop, onError = () => {} }};const startSession = ({ sessionId, ownerWebContents, options }) => {+ // A renderer that reloads mid-recording forgets its session while this side+ // keeps capturing. The same owner asking to start again can only mean that,+ // so retire its stale sessions instead of refusing every start until restart.+ for (const session of sessions.values()) {+ if (+ ownerWebContents &&+ session.ownerWebContents === ownerWebContents &&+ session.state !== "stopping"+ ) {+ void stopSession(session.sessionId).catch((error) => onError(error, session.sessionId));+ }+ }const operationInProgress = [...sessions.values()].some((session) => session.state !== "stopping");@@ -67,6 +84,7 @@ function createMeetingTranscriptionLifecycle({ start, stop, onError = () => {} }stopRequested: false,stopPromise: null,ownerLossHandler: null,+ ownerNavigationHandler: null,};sessions.set(sessionId, session);@@ -97,9 +115,17 @@ function createMeetingTranscriptionLifecycle({ start, stop, onError = () => {} }onError(error, sessionId);});};+ // A main-frame navigation (reload, onboarding restart) replaces the renderer+ // that owns the session, so it counts as owner loss too.+ const handleOwnerNavigation = (details) => {+ if (!details?.isMainFrame || details?.isSameDocument) return;+ handleOwnerLoss();+ };session.ownerLossHandler = handleOwnerLoss;+ session.ownerNavigationHandler = handleOwnerNavigation;ownerWebContents?.once?.("destroyed", handleOwnerLoss);ownerWebContents?.once?.("render-process-gone", handleOwnerLoss);+ ownerWebContents?.on?.("did-start-navigation", handleOwnerNavigation);if (ownerWebContents?.isDestroyed?.()) {handleOwnerLoss();diff --git a/src/hooks/useUpcomingEvents.ts b/src/hooks/useUpcomingEvents.tsindex d79a4a10d..fb6f40249 100644--- a/src/hooks/useUpcomingEvents.ts+++ b/src/hooks/useUpcomingEvents.ts@@ -1,6 +1,7 @@import { useState, useEffect, useCallback } from "react";import { useSettingsStore } from "../stores/settingsStore";import type { CalendarEvent } from "../types/calendar";+import { hasOtherAttendees } from "../utils/calendarAttendees";export interface UseUpcomingEventsReturn {events: CalendarEvent[];@@ -37,7 +38,7 @@ export function useUpcomingEvents(): UseUpcomingEventsReturn {const windowMinutes = getLookaheadMinutes();const result = await window.electronAPI?.gcalGetUpcomingEvents?.(windowMinutes);if (result?.success && Array.isArray(result.events)) {- setEvents(result.events);+ setEvents(result.events.filter(hasOtherAttendees));} else {setEvents([]);}diff --git a/src/index.css b/src/index.cssindex 894b42ac3..7be9304c6 100644--- a/src/index.css+++ b/src/index.css@@ -7,7 +7,8 @@@theme {/* OpenWhispr Theme — registers color tokens with Tailwind v4.These are the light-mode defaults; .dark overrides them below. */- --color-primary: #2563eb;+ /* Midpoint of the brand glass gradient (#5588F0 → #3466E2) so tints, rings and links match it. */+ --color-primary: #4577e9;--color-primary-foreground: #ffffff;--color-secondary: #f5f5f5;--color-secondary-foreground: #171717;@@ -21,19 +22,19 @@--color-destructive-foreground: #ffffff;--color-border: #e5e5e5;--color-input: #f9f6f1;- --color-ring: #2563eb;+ --color-ring: #4577e9;--color-background: #ffffff;--color-foreground: #171717;--color-card: #ffffff;--color-card-foreground: #171717;--color-popover: #ffffff;--color-popover-foreground: #171717;- --color-link: #2563eb;+ --color-link: #4577e9;--color-success: #16a34a;--color-success-foreground: #ffffff;--color-warning: #d97706;--color-warning-foreground: #ffffff;- --color-info: #2563eb;+ --color-info: #4577e9;--color-info-foreground: #ffffff;/* Surface hierarchy — light mode equivalents */@@ -42,11 +43,13 @@--color-surface-2: #ffffff;--color-surface-3: #f5f5f5;--color-surface-raised: #f0f0f0;+ /* Main-window backdrop behind the sidebar and the inset content container. */+ --color-surface-window: #f7f7f7;/* Border states — light mode equivalents */--color-border-subtle: #e5e5e5;--color-border-hover: #d4d4d4;- --color-border-active: #2563eb;+ --color-border-active: #4577e9;}:root {@@ -78,6 +81,7 @@--radius-md: 0.375rem; /* 6px - standard */--radius-lg: 0.5rem; /* 8px - cards, panels */--radius-xl: 0.625rem; /* 10px - large cards */+ --radius-shell: 0.75rem; /* 12px - the inset content container in the main window *//* Custom Light Mode Brand Colors (Parchment Theme) */--color-parchment-bg: #f9f6f1;@@ -98,6 +102,15 @@--shadow-glass:inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.45),0 2px 10px rgba(15, 23, 42, 0.06);+ /* Same rim on brand-blue surfaces (mic/send buttons, today header): the app+ icon's glass. Softer than --shadow-glass because it sits on colour. */+ --shadow-brand-glass:+ inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.16),+ inset 0 -1px 1px rgba(0, 0, 0, 0.12);+ /* The fill under that rim: Button default, mic/send circles, the onboarding brand tile. */+ --gradient-brand-glass: linear-gradient(180deg, #5588f0 0%, #3466e2 100%);+ /* The brand tile floats over the onboarding hero, so it adds a soft coloured lift. */+ --shadow-brand-tile: var(--shadow-brand-glass), 0 10px 24px -8px rgb(52 102 226 / 0.45);}.dark {@@ -136,6 +149,7 @@--color-surface-2: oklch(0.27 0.008 260);--color-surface-3: oklch(0.3 0.009 260);--color-surface-raised: oklch(0.33 0.01 260);+ --color-surface-window: oklch(0.19 0.005 260);/* Border states */--color-border-subtle: oklch(0.33 0.006 260);@@ -159,6 +173,7 @@--shadow-glass:inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05),0 2px 12px rgba(0, 0, 0, 0.35);+ --shadow-brand-tile: var(--shadow-brand-glass), 0 10px 24px -8px rgb(0 0 0 / 0.6);}@layer base {@@ -285,10 +300,9 @@ body:has(.onboarding-canvas) {font-family: var(--font-family-sans);font-optical-sizing: auto;- /* Onboarding design tokens, straight from the Figma library. The accent is- #4079ED, which is close to but NOT Tailwind's blue-500 (#3b82f6) — bind- these rather than re-typing the literals. */- --onboarding-accent: #4079ed;+ /* Onboarding design tokens from the Figma library, except the accent: that is+ the app's one brand blue, so both themes resolve it through --color-primary. */+ --onboarding-accent: var(--color-primary);--onboarding-accent-foreground: #ffffff;/* Hover on a filled accent means "darker" on light and "lighter" on dark, so themix target is a token rather than a literal `black` in the utility class. */@@ -320,7 +334,7 @@ body:has(.onboarding-canvas) {--onboarding-inverse-text: #ffffff;/* Status. Kept separate from the accent so a failed provider test never readsas a brand colour. */- --onboarding-link: #2563eb;+ --onboarding-link: var(--color-link);--onboarding-danger: #ef4444;--onboarding-success: #22c55e;/* Keycap. The cap is lit from above, so it needs its own top/bottom pair rather@@ -345,10 +359,6 @@ body:has(.onboarding-canvas) {.dark .onboarding-canvas,.dark:has(.onboarding-canvas),body.dark:has(.onboarding-canvas) {- /* Lifted off #4079ED: the Figma accent is tuned against white and goes muddy on- a near-black surface, so dark takes the same hue a few steps brighter to hold- the 4.5:1 it has in light. */- --onboarding-accent: #6f9bf5;/* White, same as light: a filled brand CTA reads as the brand in both themes,and flipping its label to near-black made the dark-mode buttons look like adifferent component. */@@ -369,7 +379,6 @@ body.dark:has(.onboarding-canvas) {--onboarding-inverse-surface: #f5f5f5;--onboarding-inverse-surface-secondary: #d4d4d4;--onboarding-inverse-text: #0a0a0a;- --onboarding-link: #7ba6f7;--onboarding-danger: #f87171;--onboarding-success: #4ade80;--onboarding-keycap-top: #3a3a3a;@@ -411,8 +420,6 @@ body.dark:has(.onboarding-canvas) {--color-muted: var(--onboarding-surface-secondary);--color-muted-foreground: var(--onboarding-text-secondary);--color-border: var(--onboarding-control-border);- --color-primary: var(--onboarding-accent);- --color-primary-foreground: var(--onboarding-accent-foreground);--color-ring: var(--onboarding-accent);background-color: var(--onboarding-surface);/* Supplied full-width artwork replaces the generated corner washes. Keeping@@ -712,30 +719,33 @@ body.dark:has(.onboarding-canvas) {background-image: none;}-/* The indigo-to-white hero ramp is a baked Bayer 16x16 ordered dither (2px- cells, 5 steps along the ramp) rather than a CSS gradient plus a dot grid.- The ramp is purely vertical, so one Bayer period — 16 cells at 2px = 32px —- tiles horizontally with no seam, and the whole strip costs ~250 bytes.- background-size pins it to 1 image px per CSS px so the cells stay square;- image-rendering keeps them hard-edged on fractional device pixel ratios- instead of resampling the dither into mush. The background-image URL is set- inline from an imported asset (see CompactOnboardingFrame) so Vite- fingerprints it and it resolves under the packaged file:// origin — which is- also why the theme swap reads two inline custom properties instead of naming- the files here. The strips are 32px-wide Bayer-dither gradients, one per- theme, baked into src/assets/onboarding-hero-dither{,-dark}.webp. */+/* Compact-frame hero: a brand-blue band that dithers into the page surface.+ Drawn from --color-primary so it follows the theme; the dot layer fades in+ as the solid fades out. */.onboarding-compact-hero {- background-image: var(--onboarding-hero-dither-light);- background-repeat: repeat-x;- background-size: 32px 100%;- image-rendering: pixelated;+ background: linear-gradient(+ color-mix(in srgb, var(--color-primary) 88%, white),+ var(--color-primary) 70%,+ transparent+ );+}++.onboarding-compact-hero::after {+ content: "";+ position: absolute;+ inset: 0;+ background: radial-gradient(circle at 2px 2px, var(--color-primary) 1.3px, transparent 1.5px) 0+ 0 / 4px 4px;+ mask-image: linear-gradient(transparent 55%, #000 72%, #000 84%, transparent);}-/* The dark strip resolves into --onboarding-surface rather than white, so it has- to be a separate asset — a filter or blend on the light one would take the- indigo with it. */-.dark .onboarding-compact-hero {- background-image: var(--onboarding-hero-dither-dark);+/* Primary Buttons in onboarding disable into the quiet capsule (sunken fill,+ tertiary text) instead of fading the glass. */+.onboarding-canvas [data-slot="button"][data-variant="default"]:disabled {+ opacity: 1;+ background: var(--onboarding-surface-tertiary);+ box-shadow: none;+ color: var(--onboarding-text-tertiary);}/* The classic typing indicator: each dot hops and brightens in turn, so with a@@ -849,6 +859,11 @@ h1 {color: var(--onboarding-text-primary) !important;}+/* Focus is the brand ring, not a stroke: the field stays borderless at rest. */+.onboarding-canvas .onboarding-light-input:focus-visible {+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 35%, transparent) !important;+}+.onboarding-canvas .onboarding-light-input::placeholder {color: var(--onboarding-text-tertiary);}@@ -1497,6 +1512,27 @@ a:hover {height: 6px;}+/* Scroll containers whose chrome should stay clean (the main-window content+ scroller): trackpad and wheel still scroll, the bar just never draws. */+.scrollbar-hidden {+ scrollbar-width: none;+}++.scrollbar-hidden::-webkit-scrollbar {+ display: none;+}++/* Transcript tab indicator while a meeting is being recorded. */+@keyframes ow-wave {+ 0%,+ 100% {+ transform: scaleY(0.4);+ }+ 50% {+ transform: scaleY(1);+ }+}+::-webkit-scrollbar-track {background: transparent;}diff --git a/src/locales/ar/translation.json b/src/locales/ar/translation.jsonindex f3341ade2..f47768002 100644--- a/src/locales/ar/translation.json+++ b/src/locales/ar/translation.json@@ -504,6 +504,8 @@"couldNotDeleteDescription": "ربما تمت إزالة هذا النص المفرَّغ بالفعل.","couldNotDeleteDescriptionGeneric": "حدث خطأ ما. يرجى المحاولة مرة أخرى.","empty": "لا توجد أي نصوص مفرَّغة حتى الآن",+ "emptyDescription": "اضغط مفتاح الاختصار في أي تطبيق وابدأ الحديث. يُحفظ كل نص هنا بخصوصية على جهازك.",+ "sectionTitle": "النصوص المكتوبة","dataRetentionDisabled": "الاحتفاظ بالبيانات قيد الإيقاف. لا يتم حفظ النصوص المفرَّغة والصوت في السجل.","press": "اضغط","toStart": "للبدء",@@ -512,6 +514,7 @@"yesterday": "أمس"},"copyText": "نسخ النص",+ "moreActions": "مزيد من الإجراءات","copyRawTranscript": "نسخ النص المفرَّغ الخام","deleteItem": "حذف","viewRawTranscript": "عرض النص المفرَّغ الخام",@@ -756,7 +759,7 @@"continueWithMicrosoft": "المتابعة باستخدام Microsoft","protocolUnavailable": "تسجيل الدخول عبر المتصفح غير متوفر — أعد تسجيل بروتوكول openwhispr:// في إعدادات التطبيقات الافتراضية بنظامك."},- "welcomeSubtitle": "استخدم صوتك لكل شيء",+ "welcomeSubtitle": "قوة صوتك. بشروطك.","welcomeTitle": "مرحبًا بك في OpenWhispr","sessionExpired": "انتهت الجلسة. يرجى إعادة بدء عملية التسجيل."},@@ -1265,6 +1268,7 @@"createLink": "إنشاء رابط","copyLink": "نسخ الرابط","copied": "تم النسخ",+ "export": "تصدير","owner": "المالك","editor": "يمكنه التعديل","viewer": "يمكنه العرض",@@ -1374,10 +1378,9 @@},"upcoming": {"title": "القادم",- "transcriptions": "التفريغات الصوتية","now": "الآن","untitledEvent": "حدث بدون عنوان",- "joinAndTakeNotes": "انضمام وتدوين ملاحظات",+ "joinAndTranscribe": "انضمام وتفريغ صوتي","takeNotes": "تدوين ملاحظات","noEventsToday": "لا توجد أحداث اليوم","noUpcomingEvents": "لا توجد أحداث قادمة",@@ -1583,6 +1586,10 @@"raw": "خام","enhanced": "مُحسّن","saving": "جاري الحفظ",+ "transcriptEmptyTitle": "لم يتم تسجيل أي شيء بعد",+ "transcriptEmptyDescription": "اضغط على تسجيل لبدء النسخ. كل ما يُقال يظهر هنا لحظيًا.",+ "startRecording": "بدء التسجيل",+ "generateSummary": "إنشاء ملخص بالذكاء الاصطناعي","startWriting": "ابدأ الكتابة...","staleIndicator": "تم تغيير المحتوى منذ التحسين","live": "مباشر",@@ -1769,6 +1776,15 @@"generateNotes": {"name": "إنشاء ملاحظات","description": "تنظيف وتنظيم وتحسين ملاحظاتك"+ },+ "followUpEmail": {+ "name": "بريد متابعة",+ "description": "صِغ بريد متابعة من ملاحظاتك والنص المكتوب",+ "cta": "صياغة بريد متابعة"+ },+ "detailedNotes": {+ "name": "ملاحظات مفصلة",+ "description": "ملاحظات اجتماع دقيقة وشاملة تتضمن القرارات والمهام"}},"errors": {@@ -4112,7 +4128,6 @@"allSpaces": "جميع المساحات","title": "البحث","description": "البحث في جميع الملاحظات والنصوص المفرَّغة",- "shortPlaceholder": "بحث","placeholder": "البحث في الملاحظات والنصوص المفرَّغة...","sections": {"notes": "الملاحظات",diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex 5a4e99732..f748faf8c 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -636,6 +636,8 @@"couldNotDeleteDescription": "Diese Transkription wurde möglicherweise bereits entfernt.","couldNotDeleteDescriptionGeneric": "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.","empty": "Noch keine Transkriptionen",+ "emptyDescription": "Drücke deinen Hotkey in einer beliebigen App und sprich los. Jede Transkription wird hier privat auf deinem Gerät gespeichert.",+ "sectionTitle": "Transkriptionen","dataRetentionDisabled": "Datenaufbewahrung ist deaktiviert. Transkriptionen und Audio werden nicht im Verlauf gespeichert.","press": "Drücken Sie","toStart": "zum Starten",@@ -644,6 +646,7 @@"yesterday": "Gestern"},"copyText": "Text kopieren",+ "moreActions": "Weitere Aktionen","copyRawTranscript": "Rohtranskript kopieren","deleteItem": "Löschen","viewRawTranscript": "Rohtranskript anzeigen",@@ -908,7 +911,6 @@"managedRouteInvalid": "Die verwaltete Transkription konnte aufgrund einer Konfigurationsabweichung nicht gestartet werden. Versuchen Sie es erneut oder wenden Sie sich an Ihren Administrator.","managedAuthRejected": "Die verwalteten Transkriptions-Anmeldedaten Ihrer Organisation wurden abgelehnt. Wenden Sie sich an Ihren Administrator.","streamingOnlyProvider": "Dieser Anbieter unterstützt nur Live-Transkription. Wähle für Datei-Uploads und Wiederholungen einen anderen Anbieter.",- "streamingOnlyProvider": "Dieser Anbieter unterstützt nur Live-Transkription. Wähle für Datei-Uploads und Wiederholungen einen anderen Anbieter.","providerKeyMissing": "Für Ihren Transkriptionsanbieter ist kein API-Schlüssel hinterlegt. Fügen Sie ihn unter Einstellungen → Sprache zu Text hinzu."},"translationFallback": {@@ -1132,7 +1134,7 @@"continueWithMicrosoft": "Weiter mit Microsoft","protocolUnavailable": "Browser-Anmeldung nicht verfügbar — registrieren Sie das openwhispr://-Protokoll in den Standardanwendungs-Einstellungen Ihres Systems erneut."},- "welcomeSubtitle": "Nutzen Sie Ihre Stimme für alles",+ "welcomeSubtitle": "Die Kraft Ihrer Stimme. Zu Ihren Bedingungen.","welcomeTitle": "Willkommen bei OpenWhispr","sessionExpired": "Sitzung abgelaufen"},@@ -1161,10 +1163,9 @@},"upcoming": {"title": "Demnächst",- "transcriptions": "Transkriptionen","now": "Jetzt","untitledEvent": "Unbenanntes Ereignis",- "joinAndTakeNotes": "Beitreten & Notizen",+ "joinAndTranscribe": "Beitreten & transkribieren","takeNotes": "Notizen machen","noEventsToday": "Heute keine Termine","noUpcomingEvents": "Keine anstehenden Termine",@@ -3244,6 +3245,10 @@"raw": "Roh","enhanced": "Verbessert","saving": "Wird gespeichert",+ "transcriptEmptyTitle": "Noch nichts aufgenommen",+ "transcriptEmptyDescription": "Drücke auf Aufnahme, um mit der Transkription zu beginnen. Alles Gesagte erscheint hier in Echtzeit.",+ "startRecording": "Aufnahme starten",+ "generateSummary": "KI-Zusammenfassung erstellen","startWriting": "Schreibe los...","staleIndicator": "Der Inhalt hat sich seit der Verbesserung geändert","live": "Live",@@ -3424,6 +3429,15 @@"generateNotes": {"name": "Notizen generieren","description": "Notizen bereinigen, strukturieren und verbessern"+ },+ "followUpEmail": {+ "name": "Follow-up-E-Mail",+ "description": "Entwirf eine Follow-up-E-Mail aus Notizen und Transkript",+ "cta": "Follow-up-E-Mail entwerfen"+ },+ "detailedNotes": {+ "name": "Ausführliche Notizen",+ "description": "Präzise, umfassende Meeting-Notizen mit Entscheidungen und Aufgaben"}},"errors": {@@ -3947,6 +3961,7 @@"createLink": "Link erstellen","copyLink": "Link kopieren","copied": "Kopiert",+ "export": "Exportieren","owner": "Eigentümer","editor": "Kann bearbeiten","viewer": "Kann ansehen",@@ -3987,7 +4002,6 @@"allSpaces": "Alle Bereiche","title": "Suche","description": "In Notizen und Transkripten suchen",- "shortPlaceholder": "Suche","placeholder": "Notizen und Transkripte durchsuchen…","sections": {"notes": "Notizen",diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex a870c1c13..684e05c2c 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -636,6 +636,8 @@"couldNotDeleteDescription": "This transcription may have already been removed.","couldNotDeleteDescriptionGeneric": "Something went wrong. Please try again.","empty": "No transcriptions yet",+ "emptyDescription": "Press your hotkey in any app and start talking. Every transcription is saved privately here on your device.",+ "sectionTitle": "Transcriptions","dataRetentionDisabled": "Data retention is off. Transcriptions and audio are not saved to history.","press": "Press","toStart": "to start",@@ -644,6 +646,7 @@"yesterday": "Yesterday"},"copyText": "Copy text",+ "moreActions": "More actions","copyRawTranscript": "Copy raw transcript","deleteItem": "Delete","viewRawTranscript": "View raw transcript",@@ -908,7 +911,6 @@"managedRouteInvalid": "Managed transcription couldn't start due to a configuration mismatch. Try again or contact your administrator.","managedAuthRejected": "Your organization's managed transcription credentials were rejected. Contact your administrator.","streamingOnlyProvider": "This provider only supports live transcription. Choose another provider for file uploads and retries.",- "streamingOnlyProvider": "This provider only supports live transcription. Choose another provider for file uploads and retries.","providerKeyMissing": "No API key is set for your transcription provider. Add it in Settings → Speech to Text."},"translationFallback": {@@ -1132,7 +1134,7 @@"continueWithMicrosoft": "Continue with Microsoft","protocolUnavailable": "Browser sign-in unavailable — re-register the openwhispr:// protocol in your system's Default Apps settings."},- "welcomeSubtitle": "Use voice for everything",+ "welcomeSubtitle": "The power of your voice. On your terms.","welcomeTitle": "Welcome to OpenWhispr","sessionExpired": "Session expired. Please restart the sign-up process."},@@ -1161,10 +1163,9 @@},"upcoming": {"title": "Coming up",- "transcriptions": "Transcriptions","now": "Now","untitledEvent": "Untitled Event",- "joinAndTakeNotes": "Join & take notes",+ "joinAndTranscribe": "Join & transcribe","takeNotes": "Take notes","noEventsToday": "No events today","noUpcomingEvents": "No upcoming events",@@ -3244,6 +3245,10 @@"raw": "Raw","enhanced": "Enhanced","saving": "Saving",+ "transcriptEmptyTitle": "Nothing recorded yet",+ "transcriptEmptyDescription": "Hit record to start transcribing. Everything said shows up here as it happens.",+ "startRecording": "Start recording",+ "generateSummary": "Generate AI Summary","startWriting": "Start writing...","staleIndicator": "Content has changed since enhancement","live": "Live",@@ -3424,6 +3429,15 @@"generateNotes": {"name": "Generate Notes","description": "Clean up, structure, and enhance your notes"+ },+ "followUpEmail": {+ "name": "Follow-up email",+ "description": "Draft a follow-up email from your notes and transcript",+ "cta": "Draft a follow-up email"+ },+ "detailedNotes": {+ "name": "Detailed Notes",+ "description": "Accurate, comprehensive meeting notes with decisions and action items"}},"errors": {@@ -3947,6 +3961,7 @@"createLink": "Create link","copyLink": "Copy link","copied": "Copied",+ "export": "Export","owner": "Owner","editor": "Can edit","viewer": "Can view",@@ -3987,7 +4002,6 @@"allSpaces": "All spaces","title": "Search","description": "Search across notes and transcripts",- "shortPlaceholder": "Search","placeholder": "Search notes and transcripts…","sections": {"notes": "Notes",diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex 70facbdd6..3867ff59d 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -645,6 +645,8 @@"couldNotDeleteDescription": "Puede que esta transcripción ya se haya eliminado.","couldNotDeleteDescriptionGeneric": "Algo salió mal. Inténtalo de nuevo.","empty": "Aún no hay transcripciones",+ "emptyDescription": "Pulsa tu atajo en cualquier app y empieza a hablar. Cada transcripción se guarda aquí de forma privada en tu dispositivo.",+ "sectionTitle": "Transcripciones","dataRetentionDisabled": "La retención de datos está desactivada. Las transcripciones y el audio no se guardan en el historial.","press": "Pulsa","toStart": "para empezar",@@ -666,6 +668,7 @@"clearAllErrorTitle": "No se pudo borrar el historial","clearAllErrorDescription": "Algo salió mal. Inténtalo de nuevo.","copyText": "Copiar texto",+ "moreActions": "Más acciones","copyRawTranscript": "Copiar transcripción sin procesar","deleteItem": "Eliminar","viewRawTranscript": "Ver transcripción sin procesar",@@ -908,7 +911,6 @@"managedRouteInvalid": "La transcripción gestionada no pudo iniciarse debido a una discrepancia de configuración. Inténtalo de nuevo o contacta a tu administrador.","managedAuthRejected": "Las credenciales de transcripción gestionada de tu organización fueron rechazadas. Contacta a tu administrador.","streamingOnlyProvider": "Este proveedor solo admite transcripción en directo. Elige otro proveedor para subir archivos y reintentos.",- "streamingOnlyProvider": "Este proveedor solo admite transcripción en directo. Elige otro proveedor para subir archivos y reintentos.","providerKeyMissing": "No hay ninguna clave de API configurada para tu proveedor de transcripción. Añádela en Ajustes → Voz a texto."},"translationFallback": {@@ -1132,7 +1134,7 @@"continueWithMicrosoft": "Continuar con Microsoft","protocolUnavailable": "Inicio de sesión por navegador no disponible — vuelve a registrar el protocolo openwhispr:// en los ajustes de Aplicaciones predeterminadas del sistema."},- "welcomeSubtitle": "Usa tu voz para todo",+ "welcomeSubtitle": "El poder de tu voz. En tus términos.","welcomeTitle": "Bienvenido a OpenWhispr","sessionExpired": "Sesión expirada"},@@ -2954,6 +2956,10 @@"raw": "Sin procesar","enhanced": "Mejorado","saving": "Guardando",+ "transcriptEmptyTitle": "Aún no hay grabaciones",+ "transcriptEmptyDescription": "Pulsa grabar para empezar a transcribir. Todo lo que se diga aparecerá aquí en tiempo real.",+ "startRecording": "Empezar a grabar",+ "generateSummary": "Generar resumen con IA","startWriting": "Comienza a escribir...","staleIndicator": "El contenido ha cambiado desde la mejora","live": "En vivo",@@ -3118,6 +3124,15 @@"generateNotes": {"name": "Generar notas","description": "Limpiar, estructurar y mejorar tus notas"+ },+ "followUpEmail": {+ "name": "Correo de seguimiento",+ "description": "Redacta un correo de seguimiento a partir de tus notas y la transcripción",+ "cta": "Redactar correo de seguimiento"+ },+ "detailedNotes": {+ "name": "Notas detalladas",+ "description": "Notas de reunión precisas y completas con decisiones y tareas"}},"errors": {@@ -3820,10 +3835,9 @@},"upcoming": {"title": "Próximamente",- "transcriptions": "Transcripciones","now": "Ahora","untitledEvent": "Evento sin título",- "joinAndTakeNotes": "Unirse y tomar notas",+ "joinAndTranscribe": "Unirse y transcribir","takeNotes": "Tomar notas","noEventsToday": "Hoy no hay eventos","noUpcomingEvents": "No hay próximos eventos",@@ -3871,6 +3885,7 @@"createLink": "Crear enlace","copyLink": "Copiar enlace","copied": "Copiado",+ "export": "Exportar","owner": "Propietario","editor": "Puede editar","viewer": "Puede ver",@@ -3911,7 +3926,6 @@"allSpaces": "Todos los espacios","title": "Buscar","description": "Buscar en notas y transcripciones",- "shortPlaceholder": "Buscar","placeholder": "Buscar notas y transcripciones…","sections": {"notes": "Notas",diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex 4702b3c88..78c3af08f 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -636,6 +636,8 @@"couldNotDeleteDescription": "Cette transcription a peut-être déjà été supprimée.","couldNotDeleteDescriptionGeneric": "Une erreur est survenue. Veuillez réessayer.","empty": "Aucune transcription pour le moment",+ "emptyDescription": "Appuyez sur votre raccourci dans n’importe quelle app et parlez. Chaque transcription est enregistrée ici, en privé, sur votre appareil.",+ "sectionTitle": "Transcriptions","dataRetentionDisabled": "La conservation des données est désactivée. Les transcriptions et l'audio ne sont pas sauvegardés dans l'historique.","press": "Appuyez sur","toStart": "pour démarrer",@@ -644,6 +646,7 @@"yesterday": "Hier"},"copyText": "Copier le texte",+ "moreActions": "Plus d’actions","copyRawTranscript": "Copier la transcription brute","deleteItem": "Supprimer","viewRawTranscript": "Voir la transcription brute",@@ -908,7 +911,6 @@"managedRouteInvalid": "La transcription gérée n'a pas pu démarrer en raison d'une incohérence de configuration. Réessayez ou contactez votre administrateur.","managedAuthRejected": "Les identifiants de transcription gérée de votre organisation ont été refusés. Contactez votre administrateur.","streamingOnlyProvider": "Ce fournisseur ne prend en charge que la transcription en direct. Choisissez un autre fournisseur pour les imports de fichiers et les nouvelles tentatives.",- "streamingOnlyProvider": "Ce fournisseur ne prend en charge que la transcription en direct. Choisissez un autre fournisseur pour les imports de fichiers et les nouvelles tentatives.","providerKeyMissing": "Aucune clé API n'est définie pour votre fournisseur de transcription. Ajoutez-la dans Réglages → Parole en texte."},"translationFallback": {@@ -1132,7 +1134,7 @@"continueWithMicrosoft": "Continuer avec Microsoft","protocolUnavailable": "Connexion par navigateur indisponible — réenregistrez le protocole openwhispr:// dans les paramètres Applications par défaut du système."},- "welcomeSubtitle": "Utilisez votre voix pour tout",+ "welcomeSubtitle": "Le pouvoir de votre voix. À vos conditions.","welcomeTitle": "Bienvenue sur OpenWhispr","sessionExpired": "Session expirée. Veuillez relancer le processus d'inscription."},@@ -1161,10 +1163,9 @@},"upcoming": {"title": "À venir",- "transcriptions": "Transcriptions","now": "En cours","untitledEvent": "Événement sans titre",- "joinAndTakeNotes": "Rejoindre et noter",+ "joinAndTranscribe": "Rejoindre et transcrire","takeNotes": "Prendre des notes","noEventsToday": "Aucun événement aujourd'hui","noUpcomingEvents": "Aucun événement à venir",@@ -3244,6 +3245,10 @@"raw": "Brut","enhanced": "Amélioré","saving": "Enregistrement",+ "transcriptEmptyTitle": "Rien d'enregistré pour l'instant",+ "transcriptEmptyDescription": "Lancez l'enregistrement pour commencer la transcription. Tout ce qui est dit s'affiche ici en direct.",+ "startRecording": "Démarrer l'enregistrement",+ "generateSummary": "Générer un résumé IA","startWriting": "Commencez à écrire...","staleIndicator": "Le contenu a changé depuis l'amélioration","live": "En direct",@@ -3424,6 +3429,15 @@"generateNotes": {"name": "Générer des notes","description": "Nettoyer, structurer et améliorer vos notes"+ },+ "followUpEmail": {+ "name": "E-mail de suivi",+ "description": "Rédigez un e-mail de suivi à partir de vos notes et de la transcription",+ "cta": "Rédiger un e-mail de suivi"+ },+ "detailedNotes": {+ "name": "Notes détaillées",+ "description": "Des notes de réunion précises et complètes avec décisions et actions"}},"errors": {@@ -3947,6 +3961,7 @@"createLink": "Créer un lien","copyLink": "Copier le lien","copied": "Copié",+ "export": "Exporter","owner": "Propriétaire","editor": "Peut modifier","viewer": "Peut consulter",@@ -3987,7 +4002,6 @@"allSpaces": "Tous les espaces","title": "Rechercher","description": "Rechercher dans les notes et transcriptions",- "shortPlaceholder": "Rechercher","placeholder": "Rechercher notes et transcriptions…","sections": {"notes": "Notes",diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex d812a42f1..1524d2e90 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -636,6 +636,8 @@"couldNotDeleteDescription": "Questa trascrizione potrebbe essere già stata rimossa.","couldNotDeleteDescriptionGeneric": "Qualcosa è andato storto. Riprova.","empty": "Nessuna trascrizione",+ "emptyDescription": "Premi la scorciatoia in qualsiasi app e inizia a parlare. Ogni trascrizione viene salvata qui, in privato, sul tuo dispositivo.",+ "sectionTitle": "Trascrizioni","dataRetentionDisabled": "La conservazione dei dati è disattivata. Trascrizioni e audio non vengono salvati nella cronologia.","press": "Premi","toStart": "per iniziare",@@ -657,6 +659,7 @@"clearAllErrorTitle": "Impossibile cancellare la cronologia","clearAllErrorDescription": "Qualcosa è andato storto. Riprova.","copyText": "Copia testo",+ "moreActions": "Altre azioni","copyRawTranscript": "Copia trascrizione grezza","deleteItem": "Elimina","viewRawTranscript": "Visualizza trascrizione grezza",@@ -908,7 +911,6 @@"managedRouteInvalid": "La trascrizione gestita non è potuta partire per un'incoerenza di configurazione. Riprova o contatta l'amministratore.","managedAuthRejected": "Le credenziali di trascrizione gestita della tua organizzazione sono state rifiutate. Contatta l'amministratore.","streamingOnlyProvider": "Questo provider supporta solo la trascrizione dal vivo. Scegli un altro provider per i caricamenti di file e i nuovi tentativi.",- "streamingOnlyProvider": "Questo provider supporta solo la trascrizione dal vivo. Scegli un altro provider per i caricamenti di file e i nuovi tentativi.","providerKeyMissing": "Nessuna chiave API impostata per il tuo provider di trascrizione. Aggiungila in Impostazioni → Da voce a testo."},"translationFallback": {@@ -1133,7 +1135,7 @@"continueWithMicrosoft": "Continua con Microsoft","protocolUnavailable": "Accesso dal browser non disponibile — registra di nuovo il protocollo openwhispr:// nelle impostazioni Applicazioni predefinite del sistema."},- "welcomeSubtitle": "Usa la tua voce per tutto",+ "welcomeSubtitle": "Il potere della tua voce. Alle tue condizioni.","welcomeTitle": "Benvenuto in OpenWhispr"},"cleanupPrompt": "Correzione",@@ -2901,6 +2903,10 @@"raw": "Originale","enhanced": "Migliorato","saving": "Salvataggio",+ "transcriptEmptyTitle": "Nessuna registrazione",+ "transcriptEmptyDescription": "Premi registra per iniziare a trascrivere. Tutto ciò che viene detto compare qui in tempo reale.",+ "startRecording": "Avvia registrazione",+ "generateSummary": "Genera riepilogo AI","startWriting": "Inizia a scrivere...","staleIndicator": "Il contenuto è cambiato dall'ultimo miglioramento","live": "Dal vivo",@@ -3065,6 +3071,15 @@"generateNotes": {"name": "Genera note","description": "Pulire, strutturare e migliorare le note"+ },+ "followUpEmail": {+ "name": "Email di follow-up",+ "description": "Scrivi un'email di follow-up a partire da note e trascrizione",+ "cta": "Scrivi un'email di follow-up"+ },+ "detailedNotes": {+ "name": "Note dettagliate",+ "description": "Note di riunione accurate e complete con decisioni e azioni"}},"errors": {@@ -3767,10 +3782,9 @@},"upcoming": {"title": "In arrivo",- "transcriptions": "Trascrizioni","now": "In corso","untitledEvent": "Evento senza titolo",- "joinAndTakeNotes": "Partecipa e prendi note",+ "joinAndTranscribe": "Partecipa e trascrivi","takeNotes": "Prendi note","noEventsToday": "Nessun evento oggi","noUpcomingEvents": "Nessun evento in programma",@@ -3818,6 +3832,7 @@"createLink": "Crea link","copyLink": "Copia link","copied": "Copiato",+ "export": "Esporta","owner": "Proprietario","editor": "Può modificare","viewer": "Può visualizzare",@@ -3858,7 +3873,6 @@"allSpaces": "Tutti gli spazi","title": "Cerca","description": "Cerca tra note e trascrizioni",- "shortPlaceholder": "Cerca","placeholder": "Cerca note e trascrizioni…","sections": {"notes": "Note",diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex e04381fb6..7d14c0dfd 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -636,6 +636,8 @@"couldNotDeleteDescription": "この文字起こしは既に削除されている可能性があります。","couldNotDeleteDescriptionGeneric": "問題が発生しました。もう一度お試しください。","empty": "文字起こし履歴はまだありません",+ "emptyDescription": "どのアプリでもホットキーを押して話し始めてください。すべての文字起こしは、このデバイス上にプライベートに保存されます。",+ "sectionTitle": "文字起こし","dataRetentionDisabled": "データ保持が無効です。文字起こしと音声は履歴に保存されません。","press": "押してください","toStart": "開始するには",@@ -657,6 +659,7 @@"clearAllErrorTitle": "履歴を削除できませんでした","clearAllErrorDescription": "問題が発生しました。もう一度お試しください。","copyText": "テキストをコピー",+ "moreActions": "その他の操作","copyRawTranscript": "生の文字起こしをコピー","deleteItem": "削除","viewRawTranscript": "生の文字起こしを表示",@@ -908,7 +911,6 @@"managedRouteInvalid": "設定の不一致により、マネージド文字起こしを開始できませんでした。もう一度お試しいただくか、管理者にお問い合わせください。","managedAuthRejected": "組織のマネージド文字起こしの認証情報が拒否されました。管理者にお問い合わせください。","streamingOnlyProvider": "このプロバイダーはライブ文字起こしのみに対応しています。ファイルのアップロードや再実行には別のプロバイダーを選択してください。",- "streamingOnlyProvider": "このプロバイダーはライブ文字起こしのみに対応しています。ファイルのアップロードや再実行には別のプロバイダーを選択してください。","providerKeyMissing": "文字起こしプロバイダーのAPIキーが設定されていません。設定 → 音声テキスト変換 から追加してください。"},"translationFallback": {@@ -1133,7 +1135,7 @@"continueWithMicrosoft": "Microsoft で続ける","protocolUnavailable": "ブラウザでのサインインを利用できません — システムの「既定のアプリ」設定で openwhispr:// プロトコルを再登録してください。"},- "welcomeSubtitle": "すべてを声で",+ "welcomeSubtitle": "あなたの声の力を、あなたのやり方で。","welcomeTitle": "OpenWhispr へようこそ"},"cleanupPrompt": "クリーンアップ",@@ -2809,6 +2811,10 @@"raw": "元のテキスト","enhanced": "強化済み","saving": "保存中",+ "transcriptEmptyTitle": "まだ録音がありません",+ "transcriptEmptyDescription": "録音ボタンを押すと文字起こしが始まります。話した内容がここにリアルタイムで表示されます。",+ "startRecording": "録音を開始",+ "generateSummary": "AI要約を生成","startWriting": "書き始める..."},"participants": {@@ -2851,6 +2857,15 @@"generateNotes": {"name": "ノートを生成","description": "ノートを整理、構成、強化する"+ },+ "followUpEmail": {+ "name": "フォローアップメール",+ "description": "メモと文字起こしからフォローアップメールを作成",+ "cta": "フォローアップメールを作成"+ },+ "detailedNotes": {+ "name": "詳細ノート",+ "description": "決定事項とアクションを含む正確で網羅的な会議ノート"}},"errors": {@@ -3767,10 +3782,9 @@},"upcoming": {"title": "今後の予定",- "transcriptions": "文字起こし","now": "進行中","untitledEvent": "無題のイベント",- "joinAndTakeNotes": "参加してメモを取る",+ "joinAndTranscribe": "参加して文字起こし","takeNotes": "メモを取る","noEventsToday": "今日の予定はありません","noUpcomingEvents": "今後の予定はありません",@@ -3818,6 +3832,7 @@"createLink": "リンクを作成","copyLink": "リンクをコピー","copied": "コピーしました",+ "export": "エクスポート","owner": "オーナー","editor": "編集可能","viewer": "閲覧可能",@@ -3858,7 +3873,6 @@"allSpaces": "すべてのスペース","title": "検索","description": "ノートと文字起こしを検索",- "shortPlaceholder": "検索","placeholder": "ノートと文字起こしを検索…","sections": {"notes": "ノート",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex c2530d7c6..2f1c675d6 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -615,6 +615,8 @@"couldNotDeleteDescription": "Esta transcrição pode já ter sido removida.","couldNotDeleteDescriptionGeneric": "Algo deu errado. Tente novamente.","empty": "Ainda sem transcrições",+ "emptyDescription": "Pressione o seu atalho em qualquer app e comece a falar. Cada transcrição é salva aqui, de forma privada, no seu dispositivo.",+ "sectionTitle": "Transcrições","dataRetentionDisabled": "A retenção de dados está desativada. Transcrições e áudio não são salvos no histórico.","press": "Pressione","toStart": "para iniciar",@@ -636,6 +638,7 @@"clearAllErrorTitle": "Não foi possível limpar o histórico","clearAllErrorDescription": "Algo deu errado. Tente novamente.","copyText": "Copiar texto",+ "moreActions": "Mais ações","copyRawTranscript": "Copiar transcrição bruta","deleteItem": "Excluir","viewRawTranscript": "Ver transcrição bruta",@@ -887,7 +890,6 @@"managedRouteInvalid": "A transcrição gerenciada não pôde ser iniciada devido a uma incompatibilidade de configuração. Tente novamente ou entre em contato com o administrador.","managedAuthRejected": "As credenciais de transcrição gerenciada da sua organização foram rejeitadas. Entre em contato com o administrador.","streamingOnlyProvider": "Este provedor só suporta transcrição ao vivo. Escolha outro provedor para uploads de arquivos e novas tentativas.",- "streamingOnlyProvider": "Este provedor só suporta transcrição ao vivo. Escolha outro provedor para uploads de arquivos e novas tentativas.","providerKeyMissing": "Nenhuma chave de API definida para seu provedor de transcrição. Adicione-a em Configurações → Fala para texto."},"translationFallback": {@@ -1112,7 +1114,7 @@"continueWithMicrosoft": "Continuar com a Microsoft","protocolUnavailable": "Login pelo navegador indisponível — registre novamente o protocolo openwhispr:// nas configurações de Aplicativos Padrão do sistema."},- "welcomeSubtitle": "Use sua voz para tudo",+ "welcomeSubtitle": "O poder da sua voz. Nos seus termos.","welcomeTitle": "Boas-vindas ao OpenWhispr"},"cleanupPrompt": "Limpeza",@@ -2901,6 +2903,10 @@"raw": "Original","enhanced": "Aprimorado","saving": "Salvando",+ "transcriptEmptyTitle": "Nada gravado ainda",+ "transcriptEmptyDescription": "Toque em gravar para começar a transcrever. Tudo o que for dito aparece aqui em tempo real.",+ "startRecording": "Começar a gravar",+ "generateSummary": "Gerar resumo com IA","startWriting": "Comece a escrever...","staleIndicator": "O conteúdo mudou desde o aprimoramento","live": "Ao vivo",@@ -3065,6 +3071,15 @@"generateNotes": {"name": "Gerar notas","description": "Limpar, estruturar e aprimorar suas notas"+ },+ "followUpEmail": {+ "name": "E-mail de acompanhamento",+ "description": "Redija um e-mail de acompanhamento a partir das notas e da transcrição",+ "cta": "Redigir e-mail de acompanhamento"+ },+ "detailedNotes": {+ "name": "Notas detalhadas",+ "description": "Notas de reunião precisas e completas com decisões e ações"}},"errors": {@@ -3767,10 +3782,9 @@},"upcoming": {"title": "Em breve",- "transcriptions": "Transcrições","now": "Agora","untitledEvent": "Evento sem título",- "joinAndTakeNotes": "Entrar e fazer anotações",+ "joinAndTranscribe": "Entrar e transcrever","takeNotes": "Fazer anotações","noEventsToday": "Nenhum evento hoje","noUpcomingEvents": "Nenhum evento próximo",@@ -3818,6 +3832,7 @@"createLink": "Criar link","copyLink": "Copiar link","copied": "Copiado",+ "export": "Exportar","owner": "Proprietário","editor": "Pode editar","viewer": "Pode visualizar",@@ -3858,7 +3873,6 @@"allSpaces": "Todos os espaços","title": "Pesquisar","description": "Pesquisar notas e transcrições",- "shortPlaceholder": "Pesquisar","placeholder": "Pesquisar notas e transcrições…","sections": {"notes": "Notas",diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex e813c0dd5..a1439a7f7 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -636,6 +636,8 @@"couldNotDeleteDescription": "Эта транскрипция, возможно, уже была удалена.","couldNotDeleteDescriptionGeneric": "Что-то пошло не так. Попробуйте снова.","empty": "Транскрипций пока нет",+ "emptyDescription": "Нажмите горячую клавишу в любом приложении и начните говорить. Каждая транскрипция сохраняется здесь, приватно, на вашем устройстве.",+ "sectionTitle": "Транскрипции","dataRetentionDisabled": "Хранение данных отключено. Транскрипции и аудио не сохраняются в истории.","press": "Нажмите","toStart": "чтобы начать",@@ -657,6 +659,7 @@"clearAllErrorTitle": "Не удалось очистить историю","clearAllErrorDescription": "Что-то пошло не так. Попробуйте ещё раз.","copyText": "Копировать текст",+ "moreActions": "Другие действия","copyRawTranscript": "Копировать исходную расшифровку","deleteItem": "Удалить","viewRawTranscript": "Показать исходную расшифровку",@@ -908,7 +911,6 @@"managedRouteInvalid": "Не удалось запустить управляемую транскрипцию из-за несоответствия конфигурации. Повторите попытку или обратитесь к администратору.","managedAuthRejected": "Учётные данные управляемой транскрипции вашей организации отклонены. Обратитесь к администратору.","streamingOnlyProvider": "Этот провайдер поддерживает только транскрипцию в реальном времени. Для загрузки файлов и повторных попыток выберите другого провайдера.",- "streamingOnlyProvider": "Этот провайдер поддерживает только транскрипцию в реальном времени. Для загрузки файлов и повторных попыток выберите другого провайдера.","providerKeyMissing": "Для вашего провайдера транскрипции не задан API-ключ. Добавьте его в Настройках → Речь в текст."},"translationFallback": {@@ -1132,7 +1134,7 @@"continueWithMicrosoft": "Продолжить с Microsoft","protocolUnavailable": "Вход через браузер недоступен — повторно зарегистрируйте протокол openwhispr:// в системных настройках приложений по умолчанию."},- "welcomeSubtitle": "Используйте голос для всего",+ "welcomeSubtitle": "Сила вашего голоса. На ваших условиях.","welcomeTitle": "Добро пожаловать в OpenWhispr","sessionExpired": "Сессия истекла. Пожалуйста, войдите снова."},@@ -2923,6 +2925,10 @@"raw": "Исходный","enhanced": "Улучшенный","saving": "Сохранение",+ "transcriptEmptyTitle": "Пока ничего не записано",+ "transcriptEmptyDescription": "Нажмите «Запись», чтобы начать транскрипцию. Всё сказанное появится здесь в реальном времени.",+ "startRecording": "Начать запись",+ "generateSummary": "Создать ИИ-сводку","startWriting": "Начните писать...","staleIndicator": "Содержимое изменилось после улучшения","live": "Живой",@@ -3087,6 +3093,15 @@"generateNotes": {"name": "Сгенерировать заметки","description": "Очистить, структурировать и улучшить заметки"+ },+ "followUpEmail": {+ "name": "Письмо после встречи",+ "description": "Составьте письмо по итогам встречи на основе заметок и транскрипта",+ "cta": "Составить письмо по итогам"+ },+ "detailedNotes": {+ "name": "Подробные заметки",+ "description": "Точные и полные заметки по встрече с решениями и задачами"}},"errors": {@@ -3813,10 +3828,9 @@},"upcoming": {"title": "Скоро",- "transcriptions": "Транскрипции","now": "Сейчас","untitledEvent": "Без названия",- "joinAndTakeNotes": "Присоединиться и вести заметки",+ "joinAndTranscribe": "Присоединиться и вести заметки","takeNotes": "Вести заметки","noEventsToday": "Сегодня событий нет","noUpcomingEvents": "Нет предстоящих событий",@@ -3864,6 +3878,7 @@"createLink": "Создать ссылку","copyLink": "Скопировать ссылку","copied": "Скопировано",+ "export": "Экспорт","owner": "Владелец","editor": "Может редактировать","viewer": "Может просматривать",@@ -3904,7 +3919,6 @@"allSpaces": "Все пространства","title": "Поиск","description": "Поиск по заметкам и транскрипциям",- "shortPlaceholder": "Поиск","placeholder": "Поиск по заметкам и транскрипциям…","sections": {"notes": "Заметки",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex 6e0c9bda2..a1155aa10 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -636,6 +636,8 @@"couldNotDeleteDescription": "此转录记录可能已被删除。","couldNotDeleteDescriptionGeneric": "出了点问题,请重试。","empty": "暂无转录记录",+ "emptyDescription": "在任意应用中按下快捷键开始说话。每条转写都会私密地保存在你的设备上。",+ "sectionTitle": "转写记录","dataRetentionDisabled": "数据保留已关闭。转录和音频不会保存到历史记录。","press": "按下","toStart": "开始",@@ -657,6 +659,7 @@"clearAllErrorTitle": "无法清除历史记录","clearAllErrorDescription": "出了点问题,请重试。","copyText": "复制文本",+ "moreActions": "更多操作","copyRawTranscript": "复制原始转录","deleteItem": "删除","viewRawTranscript": "查看原始转录",@@ -908,7 +911,6 @@"managedRouteInvalid": "由于配置不匹配,托管转录无法启动。请重试或联系管理员。","managedAuthRejected": "您组织的托管转录凭证被拒绝。请联系管理员。","streamingOnlyProvider": "该服务商仅支持实时转录。请为文件上传和重试选择其他服务商。",- "streamingOnlyProvider": "该服务商仅支持实时转录。请为文件上传和重试选择其他服务商。","providerKeyMissing": "尚未为您的转录服务商设置 API 密钥。请在“设置 → 语音转文字”中添加。"},"translationFallback": {@@ -1132,7 +1134,7 @@"continueWithMicrosoft": "使用 Microsoft 继续","protocolUnavailable": "无法通过浏览器登录 — 请在系统的“默认应用”设置中重新注册 openwhispr:// 协议。"},- "welcomeSubtitle": "用语音完成一切",+ "welcomeSubtitle": "你的声音,由你掌控。","welcomeTitle": "欢迎使用 OpenWhispr","sessionExpired": "会话已过期,请重新登录。"},@@ -2901,6 +2903,10 @@"raw": "原始内容","enhanced": "增强内容","saving": "保存中",+ "transcriptEmptyTitle": "尚未录制任何内容",+ "transcriptEmptyDescription": "点击录制开始转写。所说的内容会实时显示在这里。",+ "startRecording": "开始录制",+ "generateSummary": "生成 AI 摘要","startWriting": "开始书写...","staleIndicator": "内容在增强后已更改","live": "实时",@@ -3065,6 +3071,15 @@"generateNotes": {"name": "生成笔记","description": "清理、结构化和增强您的笔记"+ },+ "followUpEmail": {+ "name": "跟进邮件",+ "description": "根据笔记和转写草拟一封跟进邮件",+ "cta": "草拟跟进邮件"+ },+ "detailedNotes": {+ "name": "详细笔记",+ "description": "准确、全面的会议笔记,包含决策和行动项"}},"errors": {@@ -3767,10 +3782,9 @@},"upcoming": {"title": "即将开始",- "transcriptions": "转录","now": "进行中","untitledEvent": "无标题事件",- "joinAndTakeNotes": "加入并记笔记",+ "joinAndTranscribe": "加入并转录","takeNotes": "记笔记","noEventsToday": "今天没有日程","noUpcomingEvents": "暂无即将开始的日程",@@ -3818,6 +3832,7 @@"createLink": "创建链接","copyLink": "复制链接","copied": "已复制",+ "export": "导出","owner": "所有者","editor": "可编辑","viewer": "可查看",@@ -3858,7 +3873,6 @@"allSpaces": "所有空间","title": "搜索","description": "搜索笔记和转录",- "shortPlaceholder": "搜索","placeholder": "搜索笔记和转录…","sections": {"notes": "笔记",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex 05e2f394f..07b096efb 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -636,6 +636,8 @@"couldNotDeleteDescription": "這筆轉錄記錄可能已被移除。","couldNotDeleteDescriptionGeneric": "發生錯誤,請再試一次。","empty": "目前沒有轉錄記錄",+ "emptyDescription": "在任何應用程式中按下快捷鍵開始說話。每則轉錄都會私密地儲存在你的裝置上。",+ "sectionTitle": "轉錄記錄","dataRetentionDisabled": "資料保留已關閉。轉錄和音訊不會儲存至歷史記錄。","press": "按下","toStart": "開始",@@ -657,6 +659,7 @@"clearAllErrorTitle": "無法清除歷史紀錄","clearAllErrorDescription": "發生錯誤,請重試。","copyText": "複製文字",+ "moreActions": "更多操作","copyRawTranscript": "複製原始轉錄","deleteItem": "刪除","viewRawTranscript": "檢視原始轉錄",@@ -908,7 +911,6 @@"managedRouteInvalid": "由於設定不符,託管轉錄無法啟動。請重試或聯絡管理員。","managedAuthRejected": "您組織的託管轉錄憑證遭拒。請聯絡管理員。","streamingOnlyProvider": "此服務商僅支援即時轉錄。請為檔案上傳與重試選擇其他服務商。",- "streamingOnlyProvider": "此服務商僅支援即時轉錄。請為檔案上傳與重試選擇其他服務商。","providerKeyMissing": "尚未為您的轉錄服務商設定 API 金鑰。請在「設定 → 語音轉文字」中新增。"},"translationFallback": {@@ -1132,7 +1134,7 @@"continueWithMicrosoft": "使用 Microsoft 繼續","protocolUnavailable": "無法透過瀏覽器登入 — 請在系統的「預設應用程式」設定中重新註冊 openwhispr:// 協定。"},- "welcomeSubtitle": "用語音完成一切",+ "welcomeSubtitle": "你的聲音,由你掌控。","welcomeTitle": "歡迎使用 OpenWhispr","sessionExpired": "工作階段已過期,請重新登入。"},@@ -2901,6 +2903,10 @@"raw": "原始","enhanced": "已增強","saving": "儲存中",+ "transcriptEmptyTitle": "尚未錄製任何內容",+ "transcriptEmptyDescription": "點擊錄製開始轉錄。所說的內容會即時顯示在這裡。",+ "startRecording": "開始錄製",+ "generateSummary": "產生 AI 摘要","startWriting": "開始撰寫...","staleIndicator": "內容在增強後已變更","live": "即時",@@ -3065,6 +3071,15 @@"generateNotes": {"name": "生成筆記","description": "清理、結構化和增強您的筆記"+ },+ "followUpEmail": {+ "name": "跟進郵件",+ "description": "根據筆記和轉錄草擬一封跟進郵件",+ "cta": "草擬跟進郵件"+ },+ "detailedNotes": {+ "name": "詳細筆記",+ "description": "準確、完整的會議筆記,包含決策和行動項目"}},"errors": {@@ -3767,10 +3782,9 @@},"upcoming": {"title": "即將開始",- "transcriptions": "轉錄","now": "進行中","untitledEvent": "無標題事件",- "joinAndTakeNotes": "加入並記筆記",+ "joinAndTranscribe": "加入並轉錄","takeNotes": "記筆記","noEventsToday": "今天沒有行程","noUpcomingEvents": "暫無即將開始的行程",@@ -3818,6 +3832,7 @@"createLink": "建立連結","copyLink": "複製連結","copied": "已複製",+ "export": "匯出","owner": "擁有者","editor": "可編輯","viewer": "可檢視",@@ -3858,7 +3873,6 @@"allSpaces": "所有空間","title": "搜尋","description": "搜尋筆記與轉錄",- "shortPlaceholder": "搜尋","placeholder": "搜尋筆記與轉錄…","sections": {"notes": "筆記",diff --git a/src/stores/actionProcessingStore.ts b/src/stores/actionProcessingStore.tsindex 175d123fa..472152cbd 100644--- a/src/stores/actionProcessingStore.ts+++ b/src/stores/actionProcessingStore.ts@@ -1,4 +1,5 @@import { create } from "zustand";+import { STANDALONE_PROMPT_KEYS } from "../helpers/builtinActions";import reasoningService from "../services/ReasoningService";import { getSettings, selectResolvedNoteFormatting } from "./settingsStore";import { appendDictionarySuffix } from "../config/prompts";@@ -87,6 +88,15 @@ CONTENT RULES:Instructions: `;+// Standalone built-in prompts are complete instructions, so they only get told+// how the material is laid out instead of being wrapped in the generic prompts.+const MEETING_INPUT_PREAMBLE = `The material is laid out as follows. Transcript lines are prefixed with the speaker's label: a real name when known, otherwise "You" (the note owner), "Them", or "Speaker N". A "## Meeting Context" block may identify the note owner and the invited participants; it is reference material, never something to reproduce. Manual notes the user took may precede the transcript.++`;+const NOTE_INPUT_PREAMBLE = `The material is the user's own notes, possibly voice-transcribed, rough, or unstructured. There is no transcript.++`;+export interface RunActionOptions {isCloudMode: boolean;modelId: string;@@ -137,7 +147,15 @@ export function runBackgroundAction((async () => {try {- const basePrompt = options.isMeetingNote ? MEETING_SYSTEM_PROMPT : BASE_SYSTEM_PROMPT;+ const standalone =+ !!action.translation_key && STANDALONE_PROMPT_KEYS.has(action.translation_key);+ const basePrompt = standalone+ ? options.isMeetingNote+ ? MEETING_INPUT_PREAMBLE+ : NOTE_INPUT_PREAMBLE+ : options.isMeetingNote+ ? MEETING_SYSTEM_PROMPT+ : BASE_SYSTEM_PROMPT;const providerOverrides = buildNoteFormattingOverrides(noteFormatting, options.isCloudMode);const systemPrompt = appendDictionarySuffix(basePrompt + action.prompt,diff --git a/src/stores/actionStore.ts b/src/stores/actionStore.tsindex fd82950cb..4913cb772 100644--- a/src/stores/actionStore.ts+++ b/src/stores/actionStore.ts@@ -84,6 +84,16 @@ export function getActionName(: action.name;}+/** Verb-form label for the ask bar button; falls back to the action name. */+export function getActionCta(+ action: { name: string; translation_key?: string },+ t: TFunction+): string {+ return action.translation_key+ ? t(`${action.translation_key}.cta`, { defaultValue: getActionName(action, t) })+ : action.name;+}+export function getActionDescription(action: { description: string; translation_key?: string },t: TFunctiondiff --git a/src/utils/calendarAttendees.ts b/src/utils/calendarAttendees.tsnew file mode 100644index 000000000..eeb3b1e36--- /dev/null+++ b/src/utils/calendarAttendees.ts@@ -0,0 +1,22 @@+import type { CalendarAttendee, CalendarEvent } from "../types/calendar";++export function parseAttendees(event: CalendarEvent): CalendarAttendee[] {+ if (!event.attendees) return [];+ try {+ const parsed = JSON.parse(event.attendees);+ return Array.isArray(parsed) ? parsed : [];+ } catch {+ return [];+ }+}++/**+ * True when someone other than the current user is on the invite. The user is+ * on every event they can see, so a solo time block or a self-only event is+ * not a meeting and stays out of the upcoming list.+ */+export function hasOtherAttendees(event: CalendarEvent): boolean {+ const attendees = parseAttendees(event);+ if (attendees.length > 0) return attendees.some((attendee) => !attendee.self);+ return event.attendees_count > 1;+}diff --git a/test/components/localModelSetupStep.test.js b/test/components/localModelSetupStep.test.jsindex f578ec710..5296580e6 100644--- a/test/components/localModelSetupStep.test.js+++ b/test/components/localModelSetupStep.test.js@@ -38,6 +38,7 @@ async function createSetupHarness(selectedModel = "",resumeState,capability = { supported: true },+ freshInstall = false,} = {}) {let unmount = async () => {};@@ -120,6 +121,13 @@ async function createSetupHarness(chatAgentModel: assistant ? selectedModel : "",chatAgentMode: "local",});+ // The store setter also persists the choice; only a fresh install has no key.+ if (!assistant && !freshInstall) {+ localStorage.setItem(+ "localTranscriptionProvider",+ provider === "nvidia" ? "nvidia" : "whisper"+ );+ }const { LocalModelSetupStep } = await vite.ssrLoadModule("/components/onboarding/ProviderSetupStep.tsx");@@ -278,6 +286,12 @@ for (const fixture of [});}+test("a fresh install opens the local dictation step on Oruk with Orukeet offered", async (t) => {+ const setup = await createSetupHarness(t, { freshInstall: true });+ assert.ok(setup.row("orukeet-v0.1.0"));+ assert.throws(() => setup.row("base"));+});+test("an explicit installed-model choice supersedes an earlier pending download", async (t) => {const setup = await createSetupHarness(t, { assistant: true, installed: { llm: [SECOND_LLM] } });await setup.click(FIRST_LLM, "onboarding.rehaul.local.download");diff --git a/test/components/noteBottomBar.test.js b/test/components/noteBottomBar.test.jsindex c40defe87..2b1a564af 100644--- a/test/components/noteBottomBar.test.js+++ b/test/components/noteBottomBar.test.js@@ -20,9 +20,6 @@ async function renderBottomBar(t, props) {return renderToStaticMarkup(createElement(mod.default, {isRecording: false,- isProcessing: false,- onStartRecording: () => {},- onStopRecording: () => {},onAskSubmit: () => {},...props,})diff --git a/test/helpers/meetingTranscriptionLifecycle.test.js b/test/helpers/meetingTranscriptionLifecycle.test.jsindex 6890d59a9..29341f219 100644--- a/test/helpers/meetingTranscriptionLifecycle.test.js+++ b/test/helpers/meetingTranscriptionLifecycle.test.js@@ -132,6 +132,62 @@ for (const ownerLossEvent of ["destroyed", "render-process-gone"]) {});}+test("a main-frame navigation of the owner tears down the session; same-document does not", async () => {+ const stopCompleted = createDeferred();+ const ownerWebContents = createOwnerWebContents();+ let stopCalls = 0;+ const lifecycle = createMeetingTranscriptionLifecycle({+ start: async ({ sessionId }) => ({ success: true, sessionId }),+ stop: async () => {+ stopCalls += 1;+ stopCompleted.resolve();+ return { success: true };+ },+ });++ await lifecycle.startSession({ sessionId: "meeting-1", ownerWebContents, options: {} });+ ownerWebContents.emit("did-start-navigation", { isMainFrame: true, isSameDocument: true });+ ownerWebContents.emit("did-start-navigation", { isMainFrame: false, isSameDocument: false });+ await Promise.resolve();+ assert.equal(stopCalls, 0);++ ownerWebContents.emit("did-start-navigation", { isMainFrame: true, isSameDocument: false });+ await stopCompleted.promise;+ await Promise.resolve();++ assert.equal(stopCalls, 1);+ assert.equal(ownerWebContents.listenerCount("did-start-navigation"), 0);+});++test("a restart from the same owner retires its stale session instead of being refused", async () => {+ const ownerWebContents = createOwnerWebContents();+ const otherOwner = createOwnerWebContents();+ const stopped = [];+ const lifecycle = createMeetingTranscriptionLifecycle({+ start: async ({ sessionId }) => ({ success: true, sessionId }),+ stop: async (sessionId) => {+ stopped.push(sessionId);+ return { success: true };+ },+ });++ await lifecycle.startSession({ sessionId: "meeting-1", ownerWebContents, options: {} });+ const refused = await lifecycle.startSession({+ sessionId: "meeting-2",+ ownerWebContents: otherOwner,+ options: {},+ });+ assert.deepEqual(refused, { success: false, error: "Operation in progress" });++ const restarted = await lifecycle.startSession({+ sessionId: "meeting-3",+ ownerWebContents,+ options: {},+ });+ assert.equal(restarted.success, true);+ assert.deepEqual(stopped, ["meeting-1"]);+});+test("a replacement start waits for a deferred accepted stop to finish", async () => {const stopDeferred = createDeferred();const oldOwner = createOwnerWebContents();diff --git a/test/utils/calendarAttendees.test.js b/test/utils/calendarAttendees.test.jsnew file mode 100644index 000000000..3d6a995d5--- /dev/null+++ b/test/utils/calendarAttendees.test.js@@ -0,0 +1,55 @@+const test = require("node:test");+const assert = require("node:assert/strict");++const load = () => import("../../src/utils/calendarAttendees.ts");++const event = (overrides) => ({+ id: "evt",+ attendees: null,+ attendees_count: 0,+ ...overrides,+});++const attendee = (email, self = false) => ({+ email,+ displayName: null,+ responseStatus: "accepted",+ self,+});++test("hasOtherAttendees hides events with nobody invited", async () => {+ const { hasOtherAttendees } = await load();+ assert.equal(hasOtherAttendees(event()), false);+ assert.equal(hasOtherAttendees(event({ attendees: "[]", attendees_count: 0 })), false);+});++test("hasOtherAttendees hides events where the user is the only attendee", async () => {+ const { hasOtherAttendees } = await load();+ const solo = event({+ attendees: JSON.stringify([attendee("[email protected]", true)]),+ attendees_count: 1,+ });+ assert.equal(hasOtherAttendees(solo), false);+});++test("hasOtherAttendees keeps events with at least one other person", async () => {+ const { hasOtherAttendees } = await load();+ const meeting = event({+ attendees: JSON.stringify([attendee("[email protected]", true), attendee("[email protected]")]),+ attendees_count: 2,+ });+ assert.equal(hasOtherAttendees(meeting), true);+});++test("hasOtherAttendees falls back to attendees_count when the list is missing or malformed", async () => {+ const { hasOtherAttendees } = await load();+ assert.equal(hasOtherAttendees(event({ attendees: null, attendees_count: 3 })), true);+ assert.equal(hasOtherAttendees(event({ attendees: "{not json", attendees_count: 3 })), true);+ assert.equal(hasOtherAttendees(event({ attendees: null, attendees_count: 1 })), false);+});++test("parseAttendees returns an empty list for malformed JSON", async () => {+ const { parseAttendees } = await load();+ assert.deepEqual(parseAttendees(event({ attendees: "nope" })), []);+ assert.deepEqual(parseAttendees(event({ attendees: '{"a":1}' })), []);+});