@nimiplatform/app-tools 0.13.1 → 0.16.0-rc.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +65 -8
  2. package/bin/nimi-app.mjs +26 -10
  3. package/lib/app-access-declaration.mjs +3 -0
  4. package/lib/app-dependency-combinations.mjs +70 -20
  5. package/lib/app-doctor-update.mjs +95 -36
  6. package/lib/app-host-support.mjs +6 -0
  7. package/lib/app-icons.mjs +181 -0
  8. package/lib/app-identifiers.mjs +27 -0
  9. package/lib/app-info.mjs +21 -33
  10. package/lib/app-lifecycle-guidance.mjs +2 -1
  11. package/lib/app-pack.mjs +14 -36
  12. package/lib/app-project-lifecycle.mjs +141 -243
  13. package/lib/app-scaffold-capabilities.mjs +13 -109
  14. package/lib/app-scaffold-profiles.mjs +108 -117
  15. package/lib/app-scaffold.mjs +70 -165
  16. package/lib/app-toolchain-updates.mjs +45 -0
  17. package/lib/canonical-capability-ids.generated.mjs +2 -0
  18. package/lib/development-environment.d.mts +10 -0
  19. package/lib/development-environment.mjs +39 -0
  20. package/lib/hosted-web-release.mjs +98 -0
  21. package/lib/index.mjs +40 -1
  22. package/lib/mobile-development.mjs +19 -0
  23. package/lib/realm-environments.generated.mjs +5 -0
  24. package/lib/web-coordination.mjs +59 -0
  25. package/lib/web-development.d.mts +23 -0
  26. package/lib/web-development.mjs +118 -0
  27. package/lib/web-scaffold.mjs +125 -0
  28. package/package.json +39 -27
  29. package/scripts/dev-shell.mjs +4 -1
  30. package/scripts/sync-scaffold-versions.mjs +0 -2
  31. package/skills/nimi-app-lifecycle/SKILL.md +13 -5
  32. package/skills/nimi-app-lifecycle/references/acceptance.md +6 -2
  33. package/skills/nimi-app-lifecycle/references/adapt.md +7 -3
  34. package/skills/nimi-app-lifecycle/references/audit.md +3 -2
  35. package/skills/nimi-app-lifecycle/references/create.md +8 -2
  36. package/skills/nimi-app-lifecycle/references/release.md +2 -0
  37. package/skills/nimi-app-lifecycle/references/upgrade-platform.md +15 -1
  38. package/templates/app-source/src/ai-studio-core/ai-studio-core.css +87 -52
  39. package/templates/app-source/src/ai-studio-core/history-policy.ts +45 -11
  40. package/templates/app-source/src/ai-studio-core/history.ts +22 -11
  41. package/templates/app-source/src/ai-studio-core/host-context.tsx +9 -4
  42. package/templates/app-source/src/ai-studio-core/index.ts +2 -0
  43. package/templates/app-source/src/ai-studio-core/job-recovery-panel.tsx +15 -5
  44. package/templates/app-source/src/ai-studio-core/job-recovery.ts +2 -2
  45. package/templates/app-source/src/ai-studio-core/messages/en.json +79 -19
  46. package/templates/app-source/src/ai-studio-core/messages/zh.json +79 -19
  47. package/templates/app-source/src/ai-studio-core/module-registration.ts +1 -0
  48. package/templates/app-source/src/ai-studio-core/non-success-presentation.ts +40 -5
  49. package/templates/app-source/src/ai-studio-core/parameter-fields.tsx +12 -6
  50. package/templates/app-source/src/ai-studio-core/parameters.ts +4 -0
  51. package/templates/app-source/src/ai-studio-core/prompt-drafts.ts +42 -0
  52. package/templates/app-source/src/ai-studio-core/runtime-types.ts +9 -2
  53. package/templates/app-source/src/ai-studio-core/runtime.ts +8 -4
  54. package/templates/app-source/src/ai-studio-core/section-ai-testing-composer.tsx +98 -90
  55. package/templates/app-source/src/ai-studio-core/section-ai-testing-exchange-result.tsx +1 -1
  56. package/templates/app-source/src/ai-studio-core/section-ai-testing-history.tsx +205 -48
  57. package/templates/app-source/src/ai-studio-core/section-ai-testing-input.ts +1 -0
  58. package/templates/app-source/src/ai-studio-core/section-ai-testing-output.tsx +36 -14
  59. package/templates/app-source/src/ai-studio-core/section-ai-testing-result.tsx +102 -77
  60. package/templates/app-source/src/ai-studio-core/section-ai-testing-run.ts +62 -16
  61. package/templates/app-source/src/ai-studio-core/section-ai-testing-session-result.tsx +2 -0
  62. package/templates/app-source/src/ai-studio-core/section-ai-testing-studio-result.tsx +12 -21
  63. package/templates/app-source/src/ai-studio-core/section-ai-testing-transcription-result.tsx +26 -9
  64. package/templates/app-source/src/ai-studio-core/section-ai-testing-vision-result.tsx +3 -3
  65. package/templates/app-source/src/ai-studio-core/section-ai-testing.tsx +182 -81
  66. package/templates/app-source/src/ai-studio-core/workspace.tsx +49 -22
  67. package/templates/app-source/src/product-modules/agent-center/index.tsx +2 -3
  68. package/templates/app-source/src/product-modules/agent-conversation/index.tsx +2 -3
  69. package/templates/app-source/src/studio-modules/studio-create/messages/en.json +17 -3
  70. package/templates/app-source/src/studio-modules/studio-create/messages/zh.json +17 -3
  71. package/templates/app-source/src/studio-modules/studio-create/parameter-panel.tsx +33 -1
  72. package/templates/app-source/src/studio-modules/studio-create/parameters.ts +3 -1
  73. package/templates/app-source/src/studio-modules/studio-create/runtime.ts +47 -4
  74. package/templates/app-source/src/studio-modules/studio-media/messages/en.json +59 -8
  75. package/templates/app-source/src/studio-modules/studio-media/messages/zh.json +59 -8
  76. package/templates/app-source/src/studio-modules/studio-media/music-parameters.tsx +2 -1
  77. package/templates/app-source/src/studio-modules/studio-media/parameter-panel.tsx +271 -83
  78. package/templates/app-source/src/studio-modules/studio-media/parameters.ts +120 -2
  79. package/templates/app-source/src/studio-modules/studio-media/registration.ts +1 -0
  80. package/templates/app-source/src/studio-modules/studio-media/runtime.ts +24 -14
  81. package/templates/app-source/src/studio-modules/studio-voice/descriptors.ts +1 -1
  82. package/templates/app-source/src/studio-modules/studio-voice/messages/en.json +3 -2
  83. package/templates/app-source/src/studio-modules/studio-voice/messages/zh.json +3 -2
  84. package/templates/app-source/src/studio-modules/studio-voice/parameter-panel.tsx +46 -23
  85. package/templates/app-source/src/studio-modules/studio-voice/registration.ts +2 -1
  86. package/templates/app-source/src/studio-modules/studio-voice/runtime.ts +2 -2
  87. package/templates/app-source/src/workbench-core/workbench-core.tsx +27 -3
  88. package/templates/default-starter/AGENTS.md +8 -5
  89. package/templates/default-starter/NIMI_APP.md +7 -0
  90. package/templates/default-starter/README.md +3 -1
  91. package/templates/default-starter/src/shell/App.tsx +12 -20
  92. package/templates/default-starter/src/shell/auth/local-app-client.ts +6 -15
  93. package/templates/default-starter/src/shell/auth/runtime-platform.ts +7 -107
  94. package/templates/default-starter/src/shell/workbench-target-adapter.ts +9 -126
  95. package/templates/default-starter.manifest.json +4 -16
  96. package/templates/hosted-web-release.yml +88 -0
  97. package/templates/default-starter/src-tauri/Cargo.toml +0 -17
  98. package/templates/default-starter/src-tauri/build.rs +0 -32
  99. package/templates/default-starter/src-tauri/capabilities/default.json +0 -7
  100. package/templates/default-starter/src-tauri/tauri.conf.json +0 -26
@@ -26,6 +26,7 @@ const TERMINAL_STATES = new Set([
26
26
 
27
27
  // @nimi-authority: rule.nimi.platform.app-ecosystem.p-scaf-018a
28
28
  export async function runDevShell(cwd, options = {}) {
29
+ if (options.realm) throw new Error('Native Apps use the active Nimi Home and its Realm. Select the Realm when starting source Nimi.');
29
30
  if ([options.listRegistrations, options.resume, options.newRegistration].filter(Boolean).length > 1) {
30
31
  throw new DevShellError('local-development-intent-invalid', '--list-registrations, --resume and --new-registration cannot be combined.');
31
32
  }
@@ -308,7 +309,9 @@ async function postJson(fetchImpl, desktop, route, body) {
308
309
  } catch {
309
310
  throw new DevShellError(
310
311
  'local-development-desktop-not-running',
311
- 'The Nimi development supervisor is unavailable.',
312
+ route === '/v1/status'
313
+ ? 'Nimi Home did not return the final App status. To confirm a planned stop, press Ctrl+C in the App terminal before quitting Home.'
314
+ : 'The Nimi development supervisor is unavailable.',
312
315
  );
313
316
  }
314
317
  if (!response || response.status !== 200) {
@@ -4,7 +4,6 @@ import { readFileSync, writeFileSync } from 'node:fs';
4
4
  import path from 'node:path';
5
5
  import { fileURLToPath } from 'node:url';
6
6
 
7
- import { validateAppScaffoldCargoDependencyValue } from '../lib/app-scaffold-capabilities.mjs';
8
7
 
9
8
  const SCRIPT_DIR = path.dirname(fileURLToPath(import.meta.url));
10
9
  const APP_TOOLS_ROOT = path.resolve(SCRIPT_DIR, '..');
@@ -35,7 +34,6 @@ export function buildScaffoldVersionProjection() {
35
34
  if (!current || typeof current !== 'object' || Array.isArray(current)) {
36
35
  throw new Error('app-tools package manifest is missing nimiScaffoldVersions');
37
36
  }
38
- validateAppScaffoldCargoDependencyValue(current.nimiShellTauriVersion, 'nimiScaffoldVersions.nimiShellTauriVersion');
39
37
  return Object.freeze({
40
38
  ...current,
41
39
  appToolsVersion: publicPackageRange(appToolsManifest, '@nimiplatform/app-tools'),
@@ -5,7 +5,9 @@ description: Audit Nimi App adaptation feasibility, capability fit and cost, or
5
5
 
6
6
  # Nimi App lifecycle
7
7
 
8
- Start with the repository's package manifest, actual product entry and nearest instructions. Preserve the user's current product scope and stage. Read only the scenario needed now:
8
+ Native App Tools supports Electron on Windows x64 and macOS arm64. Use Node, pnpm and the prebuilt Kit native package for standard builds. Apps own their additional toolchains. An existing Tauri primary profile needs its original tools or an explicit migration to Electron.
9
+
10
+ Start with the repository's package manifest, actual product entry and nearest instructions. Preserve the user's current product scope and stage. Reuse sufficient existing evidence; inspect further only to resolve uncertainty affecting the task. Read only the scenario needed now:
9
11
 
10
12
  | Task | Guide |
11
13
  | --- | --- |
@@ -19,16 +21,22 @@ Start with the repository's package manifest, actual product entry and nearest i
19
21
  | Prepare a Release or Registry submission | [Release](references/release.md) |
20
22
  | Verify real App behavior or installation | [Acceptance](references/acceptance.md) |
21
23
 
22
- An audit or planning request produces findings and a proposal; the future adaptation goal does not authorize implementation. If implementation is also explicitly requested, continue within that authorization after resolving the necessary decisions. For an ordinary product edit, follow its existing code and tests. Do not reinitialize or run the entire release journey unless affected inputs or behavior require it.
24
+ An audit or planning request delivers findings and a proposal; continue implementation only when it is also authorized. For ordinary product edits, follow existing code and tests and keep logic direct. Extract helpers or add layers for current reuse, a complex boundary, or a clear concept that improves readability. New fallback, retry, compatibility, concurrency, or recovery machinery must address a concrete failure mode in a supported path or an explicit contract; supported uncommon cases remain in scope. Reinitialize or run a release journey only when affected inputs or behavior require it.
25
+
26
+ ## App introduction
27
+
28
+ Every App has an App-owned root `NIMI_APP.md`, the only source of its Home introduction. `metadata.readme` and README fallback are not supported. Write for actual users: current purpose, principal tasks and first-use actions, necessary configuration, relevant data handling and limitations, and help. Preserve technical precision for developer-tool users. Keep repository setup, architecture, build/release commands and acceptance logs in README or developer documentation. Never infer completed functionality from tests or planned features. Home supports inert Markdown and absolute HTTP(S) links; images become alt text and relative links/anchors are not navigable.
29
+
30
+ Create supplies a truthful unfinished-product introduction; the App author maintains it. Check/pack reject missing, blank, invalid UTF-8, non-regular or over-96-KiB introductions and the removed metadata field. Sync preserves the file without creating or rewriting it. Update the introduction when user behavior changes and review its content against the affected real journey; structural validation alone does not establish truthful product copy.
23
31
 
24
32
  ## Boundaries that matter
25
33
 
26
- - App-owned workflows, tool handlers, business accounts, non-AI services and product presentation stay with the App. Nimi AI, configuration, managed storage and protected sessions use public SDK/Kit Local App surfaces. Display identity is not a business login ticket.
34
+ - App-owned workflows, tool handlers, business accounts, non-AI services and product presentation stay with the App. Nimi AI, configuration, managed storage and protected sessions use public SDK/Kit Local App surfaces. Validate unknown inputs once at their owning trust boundary; pass typed values inward without rechecking guarantees established by schemas, constructors, or internal contracts unless crossing a new trust boundary. Display identity is not a business login ticket.
27
35
  - When implementing an existing App's first Nimi integration or foundation wiring change, follow the adaptation guide's same-package generated reference first. Reuse its Host, preload, renderer, session, App Access, AIConfig and AI call wiring; documentation complements that implementation. Preserve the original product journeys and settings rather than treating the reference workbench as the finished App. Reuse passing baseline results for ordinary business edits; creating or running a reference App is not a default audit prerequisite.
28
36
  - Fresh Apps use pnpm, Vite and Desktop-supervised Electron. Existing Apps may use another renderer framework with an App-owned development command and the `electron-pnpm` build profile. A Next/server or Python project still needs real Host and backend lifecycle/build work. Preserve its original user tasks and framework where they fit; initialization does not convert the product.
29
- - Read the selected app-tools package's `nimiScaffoldVersions` and the SDK/Kit migration notes. Fresh Apps use the tool default SDK/Kit combination; an existing App keeps its current supported SDK/Kit combination through sync and check while only the app-tools and nimi-coding tool dependencies follow the tool, and a declaration or tool update never upgrades business dependencies. Development can consume complete local npm tarballs through explicit pnpm-workspace overrides; keep the selected combination and lockfile, follow the package README, and do not require publication before iteration. Public release preflight requires registry resolutions; local package acceptance is not public installation evidence.
37
+ - Read the selected app-tools package's `nimiScaffoldVersions` and the SDK/Kit migration notes. Fresh Apps use the tool default SDK/Kit combination; an existing App keeps its current supported SDK/Kit combination through sync and check while tool dependencies and supported security floors are reported separately, and a declaration or tool update never upgrades business dependencies. Development can consume complete local npm tarballs through explicit pnpm-workspace overrides; keep the selected combination and lockfile, follow the package README, and do not require publication before iteration. Public release preflight requires registry resolutions; local package acceptance is not public installation evidence.
30
38
  - App Tools maintains its fixed lifecycle skill, AGENTS block and declared engineering projections. Existing Apps have no fresh scaffold intent/lock. Preserve their Host, product source and license; report unknown file collisions rather than inventing ownership.
31
39
  - GitHub owns publisher builds and Releases; Registry owns candidate validation and human admission; Runtime owns packages and App access; Desktop owns exact processes. These are separate facts. The external AI host owns the development task.
32
- - Continue authorized work through verification. Missing prerequisites pause dependent steps only. Never infer publication or human approval from a passing command. Mark relevant unrun product paths NOT-VERIFIED.
40
+ - Verify the requested behavior with checks for a concrete risk or project requirement. Add tests for important behavior or regression risks not already covered, without copying implementation logic or merely asserting structure; low-impact prose, styling, or mechanical edits do not automatically need new tests. Reuse passing results and stop when the requested behavior, required checks, and identified risks are sufficiently covered. Reopen verification only for new changes, failures, or unresolved risks affecting the conclusion; do not create extra evidence artifacts to restate established results. Missing prerequisites pause only dependent steps; mark unrun product paths affecting the conclusion NOT-VERIFIED and explain the impact. Passing checks do not prove publication or human approval.
33
41
 
34
42
  The package's README and `nimi-app --help` expose this same guide before init. Explicit init/sync projects it into the App; dependency installation does not activate repository instructions.
@@ -2,9 +2,11 @@
2
2
 
3
3
  Select the actual user journey and affected capability. Reuse the App's package scripts, existing tests and prior sufficient evidence; a small source or wording change does not require the whole release chain.
4
4
 
5
- For development, run the official `nimi-app dev` launcher with Desktop supervising Electron. Attach only to the exact App's reported loopback CDP target. Renderer URLs or independently launched processes cannot prove protected access. Use the existing `--list-registrations` and explicit `--resume <selector>` when continuing the same development data; do not persist selectors or reopen by App ID/path. Plain dev requests an explicit selection when registrations exist; non-interactive runs must pass --resume. Use --new-registration only for deliberately separate App data, never as a fallback from a rejected resume. Native and installed UI use their owner-supported paths, not production CDP additions.
5
+ Distinguish installed Nimi + official Realm (the ordinary default), source Nimi + official Realm (platform contribution), and explicit source/local Realm integration. Run only one Runtime on the machine; quit it before switching installed/source or Realm. Native App commands use the active Home and do not change its Realm. Web/mobile `--realm local` selects their declared local inputs, not a primary Runtime bypass. Confirm the actual Host/environment before interpreting results. Debug Android official acceptance uses the real registered App Link; local Scheme success does not cover it.
6
6
 
7
- On Windows the project must have its Electron binary installed. If the launcher reports a missing `node_modules/electron/dist/electron.exe`, run the matched package's explicit `pnpm exec install-electron --no`, then retry the original launch. An installed npm wrapper or a successful `pnpm rebuild electron` alone does not prove that binary is present. Keep the explicit installer in the App's normal dependency setup; no empty renderer or alternate Host is needed.
7
+ For native Desktop development, run the official `nimi-app dev` launcher with Desktop supervising Electron. Attach only to the exact App's reported loopback CDP target. Renderer URLs or independently launched processes cannot prove protected access. Use the existing `--list-registrations` and explicit `--resume <selector>` when continuing the same development data; do not persist selectors or reopen by App ID/path. Plain dev requests an explicit selection when registrations exist; non-interactive runs must pass --resume. Use --new-registration only for deliberately separate App data, never as a fallback from a rejected resume. Native and installed UI use their owner-supported paths, not production CDP additions.
8
+
9
+ For native Windows development the project must have its Electron binary installed. If the launcher reports a missing `node_modules/electron/dist/electron.exe`, run the matched package's explicit `pnpm exec install-electron --no`, then retry the original launch. An installed npm wrapper or a successful `pnpm rebuild electron` alone does not prove that binary is present. Keep the explicit installer in the App's normal dependency setup; no empty renderer or alternate Host is needed.
8
10
 
9
11
  Verify the real output the user needs: a cited research result, a correctly indexed document, or a playable/exported media artifact. Check cancellation, reconnect or account change when that behavior is affected. Tests and mocks can establish a contract; they cannot replace actual AI or App acceptance.
10
12
 
@@ -19,3 +21,5 @@ Runtime uninstall removes its exact managed package after Desktop stops the Host
19
21
  Report the tested App/version, target and result, plus relevant NOT-VERIFIED paths. Tool-core checks, a representative App slice, first release/install and a later update are separate completion levels. Keep necessary local output under `.nimi/local/`; do not create another task or proof ledger.
20
22
 
21
23
  Separate results obtained now from prior actual acceptance that still applies to the same behavior and combination. Reuse sufficient evidence until a change, failure or concrete risk invalidates it; not rerunning a journey does not mean it never passed. Keep contract correctness and the user's required business result distinct from model-content quality. Maintain a current summary in existing project notes, label historical stages, and do not promote a bounded platform fix into completion of an ongoing App adaptation.
24
+
25
+ For Web, use `nimi-app dev --platform web` (or the project's declared Web entry) and its exact HTTPS origin in the browser. Official login, source admission and the first PC Home confirmation are real prerequisites; a direct browser tab is the supported Web carrier, never evidence of a native Host. Reuse existing source approval and ordinary configuration authorization across iterations. Verify a real task in the App; source startup and static build do not prove AI consumption. Do not run native pack/signing/installation checks for this Web path. Keep unrun user-account, mobile and network scenarios with the corresponding App iteration instead of opening a separate platform-wide acceptance campaign.
@@ -1,5 +1,7 @@
1
1
  # Existing project
2
2
 
3
+ Choose the actual carrier first. For an existing website, keep its UI, business services, website accounts and renderer/build owners. Declare `platform: web`, the exact `local_development.web` inputs and a `web-pnpm` build profile, then use the same `init --adopt` flow. It adds tool-owned inputs and guidance without replacing the product or adding Electron. The Desktop Host paragraphs below apply to native Desktop projects. Web clients use official scoped Runtime-client login; a site with its own accounts supplies its current verified user-context generation and ends the Nimi context on account switch or unlink.
4
+
3
5
  When starting from an earlier assessment, apply [Audit handoff](audit.md#handoff-to-implementation): reuse confirmed user decisions and sufficient evidence, and check the assumptions relevant to the next consequential change. An audit recommendation does not become a platform contract or a reason to preserve a disproved design.
4
6
 
5
7
  Before changing code, identify the upstream URL and baseline commit, license, user journeys, actual AI/auth/storage entry points, business services, helper processes and active instruction loaders. Record a short upstream/range note in the existing App README or product document; do not create another integration state file.
@@ -19,13 +21,13 @@ uncompiled. Verify a long model list and its confirmation button in the real
19
21
  App before treating an overflow or transparent dialog as a missing primitive;
20
22
  follow the Kit README rather than adding App-local overlay overrides.
21
23
 
22
- Before writing Nimi foundation wiring, use that same app-tools package to generate a minimal reference App with its own identity under `.nimi/local/`. Choose the smallest admitted feature closure that exposes the needed session, App Access, AIConfig and AI call surfaces; use `nimi-app --help` for the actual features and create options. Install the same SDK/Kit/native package combination in the reference, then run its generated setup and Desktop-supervised path. Start from its working Host, preload, renderer bridge and public client calls when integrating the existing App. Align or reuse that code; do not reconstruct these foundation pieces freely from API prose. SDK/Kit documentation defines the contracts and fills gaps in the generated implementation.
24
+ Before writing Nimi foundation wiring, use that same app-tools package to generate a minimal reference App with its own identity under `.nimi/local/`. Choose the smallest admitted feature closure that exposes the needed session, App Access, AIConfig and AI call surfaces; use `nimi-app --help` for the actual features and create options. Use the same selected package combination and carrier. For native Desktop, reuse the reference Host, preload and renderer bridge through the Desktop-supervised entry. For Web, use its admitted HTTPS source and scoped public client. For mobile, follow the existing App-owned native entry. Align or reuse that code; do not reconstruct these foundation pieces freely from API prose. SDK/Kit documentation defines the contracts and fills gaps in the generated implementation.
23
25
 
24
26
  When installation and launch are in scope, establish the reference's local installed Access baseline using the acceptance guide before attributing an installed failure to App wiring. A reference failure under the same conditions points to the toolchain or environment; a passing reference makes its wiring differences with the App the next inspection target. Direct evidence of a platform defect remains actionable. Reuse current passing reference results; repeat this baseline for first integration or affected foundation changes, not ordinary business edits. Record only the necessary result in existing project notes, with no extra proof files or state ledger. Missing prerequisites pause the dependent wiring checks, not independent product restoration.
25
27
 
26
28
  Prepare the existing App's actual pnpm/Electron Host, renderer and test/production-build commands from that integration. Preserve its framework and business code where they fit; do not make init manufacture a test success or convert a server deployment implicitly.
27
29
 
28
- Prepare the actual Electron binary as well as its npm wrapper. The matched Electron 42 package exposes `install-electron` and has no package lifecycle script, so `pnpm rebuild electron` does not install its binary. Run `pnpm exec install-electron --no` from the App. The official fresh scaffold uses `postinstall: "install-electron --no"`; an adopted App owns its existing installation hooks, so add that step to the App's normal setup without discarding other postinstall work. Do not use the installer's `--help` as a read-only probe: this version does not parse that flag.
30
+ Prepare the actual Electron binary as well as its npm wrapper. The scaffold’s selected Electron package exposes `install-electron` and has no package lifecycle script, so `pnpm rebuild electron` does not install its binary. Run `pnpm exec install-electron --no` from the App. The official fresh scaffold uses `postinstall: "install-electron --no"`; an adopted App owns its existing installation hooks, so add that step to the App's normal setup without discarding other postinstall work. Do not use the installer's `--help` as a read-only probe: this version does not parse that flag.
29
31
 
30
32
  For a Next.js or other existing renderer, declare the framework-neutral `electron-pnpm` build profile and a real `dev:renderer` package script serving the manifest's loopback origin. Init/sync preserve that command and the App's build owners. The official `dev` launcher still asks Desktop to supervise the Host; `build:electron` must produce `dist-electron/main.js`. Keep any required local backend under App lifecycle management. A Desktop that still requires the old exact Vite command must be upgraded before this project's real launch; do not add an empty Vite server or lose server routes to pass checks.
31
33
 
@@ -55,7 +57,7 @@ reference does not cover this custom-protocol path.
55
57
 
56
58
  - Renderer code can use `createNimiClient` with Kit's `createNimiLocalAppStandardShellSurface`. Node business work uses `registerNimiElectronAppBridge(...).services` from the same protected Host, fixed app commands and session invalidation callbacks. Consult the installed SDK/Kit public types for exact inputs.
57
59
  - Keep the App's tool loop, IDs, ordered tool results and any opaque continuity needed in subsequent turns. An SDK model step does not run business callbacks.
58
- - For an existing Vercel AI SDK 6 App, use the matching independent `@nimiplatform/sdk-adapter-vercel-ai` package and its Host-bound Local App factory. Read its README for image upload and complete UI message metadata; keep `useChat`/`streamText` and App-owned tools instead of rebuilding their wire protocol inside the App.
60
+ - For a Vercel AI SDK App, match the adapter’s published `ai`, `@ai-sdk/provider` and Nimi SDK peer ranges to the App’s lockfile. Include any framework-major migration in the estimate before choosing a release. Use the matching adapter’s Host-bound Local App factory. Read its README for image upload and complete UI message metadata; keep `useChat`/`streamText` and App-owned tools instead of rebuilding their wire protocol inside the App.
59
61
  - Preserve Runtime-issued embedding space across batches; do not combine incompatible results. Carry cancellation and session invalidation into outstanding work and prevent late writes to a new session.
60
62
  - Local media helpers receive bounded business inputs and an explicit environment; they do not receive Nimi credentials or a generic protected forwarding endpoint.
61
63
  - Non-AI services, such as search engines, stay App-owned with honest setup requirements. Do not turn all external HTTP into an AI bypass finding.
@@ -72,3 +74,5 @@ directories (including the `dev` layout) are also excluded. A similarly named
72
74
  App source directory without those output markers remains checked.
73
75
 
74
76
  Separate development instructions from product-operation guides, including other host entry files actually used by the repository. Upstream supplier examples may remain as knowledge; check the active product/agent route instead of deleting by keyword. Keep unimplemented original workflows explicit rather than counting a visible menu or retained source as completion.
77
+
78
+ Maintain the App-owned root `NIMI_APP.md` as the user introduction under the lifecycle guide. Remove `metadata.readme`; check and pack use only the fixed file, and sync never supplies missing product prose. Keep engineering setup and verification records in repository/developer documentation.
@@ -8,7 +8,7 @@ For an unspecified Nimi ecosystem adaptation, assess preserving the core product
8
8
 
9
9
  Pin the upstream revision and the Nimi source/package combination available to this audit. Note only local uncommitted changes relevant to a conclusion. Distinguish current source capability from what the selected installed or published packages expose.
10
10
 
11
- Read the target's nearest instructions, package manifests and actual product entry to identify its core tasks. Then establish Nimi's existing public consumption route from the selected lifecycle guidance, SDK public types/support notes, and the implicated Kit Host entry before estimating integration work. Host business services and existing framework adapters are reusable inputs, not discoveries to defer until after a broad platform search. This reading does not require installing a package or initializing the target App.
11
+ Read the target's nearest instructions, package manifests and actual product entry to identify its core tasks. Then establish Nimi's existing public consumption route from the selected lifecycle guidance, SDK public types/support notes, and the entry for the selected carrier (Kit Host for native Desktop, the scoped client for Web or mobile) before estimating integration work. Host business services and existing framework adapters are reusable inputs, not discoveries to defer until after a broad platform search. This reading does not require installing a package or initializing the target App.
12
12
 
13
13
  Trace the App's actual task and AI call paths: required inputs/outputs, tool and structured-output behavior, retrieval and persisted results, cancellation/recovery, and any helper-process or hosting boundaries that the task uses. For each material need, identify whether it is essential to the requested user task, an explicitly selected option, conditional on a provider/backend, or an implementation detail of the old foundation. Use actual consumers, defaults and activation conditions as evidence. Defaults alone do not define importance: an optional feature is required when the user's requested workflow depends on it. Do not turn every reachable code path into mandatory adaptation scope, or silently remove a selected feature to make the assessment easier.
14
14
 
@@ -18,6 +18,7 @@ Follow the unresolved dependency into its exact Nimi owner. Start with bounded f
18
18
 
19
19
  For each behavior in scope, connect the App consumer and expected result to the Nimi public contract, actual execution/carrier support and applicable conditions. A blocker must name the workflow, option or delivery stage it blocks. Separate preserving a user capability from reproducing an old provider/configuration control; a difference in controls does not by itself establish that Nimi's configuration ownership must expand. Distinguish:
20
20
 
21
+ - App Tools or dependency-resolution failures during create, init, sync or check. Inspect the running tool, declarations and resolved lock before attributing these to Runtime.
21
22
  - Existing support and the configuration or documented usage needed to use it.
22
23
  - An existing-contract implementation defect, or a missing SDK/Kit/native/framework carrier.
23
24
  - A missing exact Driver/adapter behavior, a contract-local feature/result extension, or an independent new CapabilityContract.
@@ -26,7 +27,7 @@ For each behavior in scope, connect the App consumer and expected result to the
26
27
 
27
28
  Check a proposed public call through its admission, allowed execution mode and dispatch to the required result. A request union or projection branch may still describe a path rejected by the owner. An available alternative mode is usable only if it satisfies the workflow's required interaction and lifetime. Catalog membership, a method name or a previous success alone does not prove the combination; unread code, missing setup or an unrun platform does not prove absence. A code-confirmed missing operation does not require Desktop startup to report.
28
29
 
29
- Use current Nimi authority for semantic ownership and source/tests for actual implementation. For example, distinguish the App's tool loop from Runtime model execution, a framework adapter from a provider Driver, and task data from canonical long-term Memory/Knowledge. Do not preassign every backend subsystem to Runtime or count shared SDK/Kit behavior as new App-specific work.
30
+ Use current Nimi authority for semantic ownership and source/tests for actual implementation. For example, distinguish the App's tool loop from Runtime model execution, a framework adapter from a provider Driver, and App-owned documents and retrieval indexes from Cognition V1 long-term Memory. Do not preassign every backend subsystem to Runtime or count shared SDK/Kit behavior as new App-specific work.
30
31
 
31
32
  Estimate residual work after reuse for the stated scope. Keep App integration, shared Nimi changes and environment/acceptance costs distinct. When options materially change effort, separate the viable core journey, selected extensions and conditional coverage increments rather than summing every upstream option into one headline. A full-coverage estimate is useful when clearly labeled; it is not automatically the entry cost or an accepted scope. State the effort basis, assumptions and confidence, using comparable work where available; do not equate human person-weeks with AI-assisted elapsed time. If the basis is weak, give difficulty and decisive uncertainties instead of a precise schedule. A bounded prototype is useful only when its answer could change the decision, not as another mandatory audit gate.
32
33
 
@@ -1,7 +1,13 @@
1
1
  # New project
2
2
 
3
- Use `nimi-app create` with an App ID, title and the admitted features the user's task needs. `--features all` means the tool's admitted catalog, not all Nimi Lab code. `nimi-app --help` lists the actual options and capability names.
3
+ Use `nimi-app create --platform desktop|web` with an App ID, title and the admitted features the user's task needs. `--features all` means the selected carrier's admitted catalog, not all Nimi Lab code. Web generation currently admits `studio-create` and a base-only App; mobile generation is not yet available. `nimi-app --help` lists the actual options and capability names.
4
4
 
5
5
  After creation: install dependencies, run `pnpm exec nimi-app init`, then sync/check. Init can be previewed with `--dry-run --json`. The lifecycle skill becomes project-local at init; create's package content can already be read for guidance.
6
6
 
7
- Build App-owned routes and workflows on the generated carrier. Preserve the selected App identity and direct feature selection. Use existing package test/build commands and exercise the affected real App task through the official launcher. Placeholder artwork or an empty feature list does not make a release-ready product: complete the App's portable information before production packaging.
7
+ Build App-owned routes and workflows on the generated carrier. Preserve the selected App identity and direct feature selection. Add the first business test before relying on the native scaffold’s default test command. The Web scaffold starts with a typecheck. Use existing package test/build commands and exercise the affected real App task through the official launcher. Placeholder artwork or an empty feature list does not make a release-ready product: complete the App's portable information before production packaging.
8
+
9
+ Maintain the App-owned root `NIMI_APP.md` as the user introduction under the lifecycle guide. Remove `metadata.readme`; check and pack use only the fixed file, and sync never supplies missing product prose. Keep engineering setup and verification records in repository/developer documentation.
10
+
11
+ Native development normally uses installed Nimi and official Realm. The App's dev command uses the active Home. Reuse it when its packages and Realm meet the task. Runtime, SDK and Kit contributors can run source Nimi against official Realm. Choose local explicitly for Realm integration or controlled data. Coordinate with other users of the host before switching its Runtime.
12
+
13
+ Web projects use official Runtime-client login and the direct carrier. Configure their initially empty exact HTTPS origin, callback and real registered client id in `local_development.web` before init/check/dev, and browser-trusted TLS paths in .env.local. Untrusted Apps must not reuse one browser origin. Explicit local Realm inputs belong in `local_development.web.local` and require `--realm local`; ordinary developers need no local Realm. `@nimiplatform/app-tools/web` supplies the bounded coordinator. Source admission and first Home confirmation remain owner actions, not generated permissions. Web build produces files, not hosting or Runtime acceptance.
@@ -17,3 +17,5 @@ An external publisher submits from its own fork; an authorized publisher sharing
17
17
  Real matching unsigned or unnotarized posture is not automatically a blocker. Do not require KYC, non-null SBOM or purchased signing as a generic prerequisite. State proof strength according to what the existing verifier actually checks.
18
18
 
19
19
  First publication and admission can precede installed acceptance. Verify first Catalog installation and business use afterward. Test an update only once a second, higher version is separately admitted; a future N+1 is not a prerequisite for the first release.
20
+
21
+ Maintain the App-owned root `NIMI_APP.md` as the user introduction under the lifecycle guide. Remove `metadata.readme`; check and pack use only the fixed file, and sync never supplies missing product prose. Keep engineering setup and verification records in repository/developer documentation.
@@ -1,5 +1,15 @@
1
1
  # Platform upgrade
2
2
 
3
+ Read the selected package's `nimiScaffoldVersions` for its SDK/Kit combination
4
+ and native crate versions. Upgrade complete matching packages with the Runtime
5
+ contract in their migration notes; a numbered RC is a local candidate, not a
6
+ publication claim. Never replace an archive's content under the same version.
7
+ A compatible CLI patch may initialize the existing scaffold. Keep the bounded tool declaration and freeze its installed version in pnpm-lock.yaml. Exact pins and equivalent SDK/Kit ranges remain valid within a verified pair. Select a new pair explicitly for a contract migration.
8
+
9
+ Before first init there is no managed-file lock. If the selected patch reports changed Host source, review the differences. For unchanged files from an older creator, run init with that exact published creator or original tarball, then use the selected CLI for sync. The initialized lock gives sync the hashes for that Host. Every App owns `NIMI_APP.md`; the retired
10
+ `metadata.readme` field is unsupported. The 0.24 Integration provider context
11
+ requires Runtime-derived `consumerRef` and matching SDK/Kit/native projections.
12
+
3
13
  Fresh App Tools 0.13 scaffolds require Kit `^0.21.0` or a later admitted pair
4
14
  with the standard navigation contract. The combination list also contains
5
15
  existing-adoption pairs; those do not permit older Kit in a new scaffold.
@@ -25,7 +35,9 @@ Read the current and selected target app-tools version matrix plus SDK/Kit migra
25
35
 
26
36
  Install the target app-tools and its exact nimi-coding first. The App-local nimi-coding executable performs its own projections, so running an old installed executable is not a target-version sync. Use the target tool for `nimi-app sync --dry-run --json`; this previews app-tools files and lists the separate owner step without pretending to preview nimi-coding's internals.
27
37
 
28
- Review App-owned instructions outside managed blocks when the upgrade changes an ownership boundary or command. Correct obsolete routing against the current owner; adding another conflicting paragraph is not a migration of those instructions.
38
+ Inspect `dependencyChanges`, `toolchainUpdates` and `retainedHostFiles` in the sync preview. On a maintained SDK/Kit combination, differing renderer and Host wiring keeps its verified file hashes so it can still consume the App's feature modules. Restore drifted managed files or migrate the Host and modules together. For Vite or Electron, review the locked version, proposed range and any manual migration. After sync, run pnpm install, check and the App build. Use pnpm audit for the wider dependency graph.
39
+
40
+ Review App-owned instructions outside managed blocks when the upgrade changes an ownership boundary or command. In older starter AGENTS files, correct the description of Cognition V1 to long-term Memory and bounded Agent Source custody, and identify App Access declarations as App-authored. Sync preserves the author's surrounding text.
29
41
 
30
42
  Upgrading app-tools does not by itself move an existing App's SDK/Kit combination: sync preserves a supported combination and check rejects an unlisted SDK x Kit pairing rather than normalizing it. Selecting a new SDK/Kit combination is a deliberate App decision. When it is made, migrate the affected App-owned API uses, run sync, then install the full normalized dependency set and regenerate the package-manager lockfile. Run check and the relevant tests/build and real journey. Fresh scaffold identity and direct features remain fixed; the tool updates derived version/matrix projections. Existing Apps continue without a fresh lock.
31
43
 
@@ -36,3 +48,5 @@ For existing Apps, sync preserves the exact `package.json` text when its managed
36
48
  Do not downgrade away required features, edit installed package code or disable checks to get a green result. A platform capability awaiting publication blocks public release reproducibility, not independent engineering work. Validate a representative actual old-to-new combination; do not build a general migration framework.
37
49
 
38
50
  README.md and SECURITY.md belong to the App after creation. If an earlier lock lists them as managed, explicit sync transfers ownership without rewriting their contents or recreating missing documents. Run sync and commit the updated lock; subsequent sync and check preserve the App-authored documents.
51
+
52
+ Maintain the App-owned root `NIMI_APP.md` as the user introduction under the lifecycle guide. Remove `metadata.readme`; check and pack use only the fixed file, and sync never supplies missing product prose. Keep engineering setup and verification records in repository/developer documentation.
@@ -1,6 +1,6 @@
1
1
  @scope (.nimi-ui-module--lab) {
2
2
  @scope (.nimi-workbench-host) {
3
- .workbench{ --nimi-ui-module-lab-studio-work-width: 760px; --nimi-ui-module-lab-studio-side-panel-width: min(360px, calc(100cqw - 48px));}
3
+ .workbench{ --nimi-ui-module-lab-studio-work-width: 840px; --nimi-ui-module-lab-studio-gutter: clamp(14px, 3cqw, 24px); --nimi-ui-module-lab-studio-side-panel-width: min(360px, calc(100cqw - 48px));}
4
4
  .studio-history-toggle{ display: grid; place-items: center; width: 40px; height: 38px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; color: color-mix(in srgb, var(--nimi-text-muted) 64%, transparent); cursor: pointer; transition: background-color 180ms ease, color 180ms ease;}
5
5
  .studio-history-toggle:hover{ background: var(--nimi-action-ghost-hover); color: color-mix(in srgb, var(--nimi-text-secondary) 62%, transparent);}
6
6
  .studio-history-toggle:focus-visible{ outline: 2px solid var(--nimi-focus-ring-color); outline-offset: 2px;}
@@ -13,11 +13,24 @@
13
13
  .studio{ min-width: 0; height: 100%;}
14
14
  .studio__workspace{ display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; height: 100%;}
15
15
  .studio__workspace--with-history{ grid-template-columns: minmax(0, 1fr) auto;}
16
- .studio__primary{ display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0;}
17
- .studio__head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 104px; padding: 26px 26px 16px 18px;}
16
+ .studio__workspace--overlay-history{ position: relative; grid-template-rows: minmax(0, 1fr);}
17
+ .studio__workspace--overlay-history .studio-history-shell{ position: absolute; inset-block: 0; inset-inline-end: 0; width: min(380px, 100%); transition: none;}
18
+ .studio__workspace--overlay-history .studio-history-shell--collapsed{ visibility: hidden;}
19
+ .studio__workspace--overlay-history .studio-history{ box-shadow: var(--nimi-elevation-raised);}
20
+ .studio-history__comparison{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; font-size: var(--nimi-type-caption-size);}
21
+ .studio-recent__compare-row{ display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px;}
22
+ .studio-recent__compare-row > input{ margin: 12px 2px 0;}
23
+ .studio__primary{ display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; background: var(--nimi-surface-panel);}
24
+ .studio__head{ display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; border-bottom: 1px solid var(--nimi-border-subtle); padding: 14px max(var(--nimi-ui-module-lab-studio-gutter), calc((100% - var(--nimi-ui-module-lab-studio-work-width)) / 2));}
25
+ .studio__heading{ display: grid; gap: 6px; min-width: 0;}
18
26
  .studio__title,
19
- .studio__head-actions{ display: flex; align-items: center; gap: 10px; min-width: 0;}
20
- .studio__title{ flex-wrap: wrap; overflow: visible; row-gap: 6px;}
27
+ .studio__status,
28
+ .studio__head-actions{ display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0;}
29
+ .studio__title h2{ margin: 0; color: var(--nimi-text-primary); font-size: 22px; font-weight: var(--nimi-type-page-title-weight); line-height: 1.2;}
30
+ .studio__title code{ color: var(--nimi-text-secondary); font-size: 11px; overflow-wrap: anywhere;}
31
+ .studio__head-actions{ justify-content: end;}
32
+ .studio__head-alert{ grid-column: 1 / -1;}
33
+ .studio__runtime-state{ color: var(--nimi-text-secondary); font-size: var(--nimi-type-caption-size);}
21
34
  .studio__stage{ min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); grid-auto-rows: auto;}
22
35
  .studio-recovery{ min-width: 0; border-top: 1px solid var(--nimi-border-subtle);}
23
36
  .studio-recovery > summary{ padding: 10px 18px; cursor: pointer; color: var(--nimi-text-secondary); font-size: 13px; line-height: 20px;}
@@ -25,26 +38,40 @@
25
38
  .studio-recovery__state{ float: right; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nimi-text-muted); font-size: 12px;}
26
39
  .studio-recovery__body{ display: grid; gap: 12px; max-height: min(320px, 40vh); overflow: auto; padding: 0 18px 12px;}
27
40
  .studio-recovery__body p{ margin: 0; overflow-wrap: anywhere;}
28
- .studio-start{ display: grid; place-items: center; min-height: 0; padding: 24px 24px 108px;}
29
- .studio-start__center{ display: grid; gap: 31px; width: min(842px, 100%);}
30
- .studio-start__center h2{ margin: 0; text-align: center; font-size: 36px; line-height: 1.08; font-weight: var(--nimi-type-page-title-weight); letter-spacing: 0;}
31
- .studio-thread{ --nimi-ui-module-lab-studio-scrollbar-gutter: 17px; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0;}
32
- .studio-thread__scroll{ container-type: size; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px;}
33
- .studio-thread__composer{ border-top: 0; padding: 12px calc(18px + var(--nimi-ui-module-lab-studio-scrollbar-gutter)) 16px 18px; background: transparent;}
34
- .studio-turn{ display: grid; gap: 14px; max-width: var(--nimi-ui-module-lab-studio-work-width); margin: 0 auto 28px;}
35
- .studio-turn__label{ display: flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--nimi-text-muted) 88%, var(--nimi-text-secondary)); font-size: 12px; font-weight: var(--nimi-type-page-title-weight); letter-spacing: 0.12em; text-transform: uppercase;}
36
- .studio-turn--user p{ margin: 0; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-lg); background: color-mix(in srgb, var(--nimi-surface-card) 72%, transparent); padding: 22px 28px; color: var(--nimi-text-secondary); font-family: var(--nimi-font-sans); font-size: 15px; font-weight: var(--nimi-type-body-weight); line-height: 1.55; letter-spacing: 0; white-space: pre-wrap;}
41
+ .studio-start,
42
+ .studio-thread__scroll{ min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px var(--nimi-ui-module-lab-studio-gutter) 32px;}
43
+ .studio-start:focus-visible,
44
+ .studio-thread__scroll:focus-visible{ outline: 2px solid var(--nimi-focus-ring-color); outline-offset: -2px;}
45
+ .studio-thread{ display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0;}
46
+ .studio-thread__scroll{ container-type: size;}
47
+ .studio-turn{ display: grid; gap: 10px; max-width: var(--nimi-ui-module-lab-studio-work-width); margin: 0 auto 14px;}
48
+ .studio-turn__label{ display: flex; align-items: center; gap: 7px; color: var(--nimi-text-primary); font-size: 14px; font-weight: var(--nimi-type-label-weight);}
49
+ .studio-review-disclosure{ max-width: var(--nimi-ui-module-lab-studio-work-width); margin: 0 auto 8px; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-md); background: var(--nimi-surface-card);}
50
+ .studio-review-disclosure > summary{ display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; color: var(--nimi-text-secondary); font-size: 13px; font-weight: var(--nimi-type-label-weight); list-style: none;}
51
+ .studio-review-disclosure > summary::-webkit-details-marker{ display: none;}
52
+ .studio-review-disclosure > summary::after{ content: ""; width: 6px; height: 6px; margin-inline-start: auto; border-inline-end: 1px solid currentColor; border-block-end: 1px solid currentColor; transform: rotate(-45deg);}
53
+ .studio-review-disclosure[open] > summary::after{ transform: rotate(45deg);}
54
+ .studio-review-disclosure > summary:hover{ background: var(--nimi-surface-hover);}
55
+ .studio-review-disclosure > summary:focus-visible{ outline: 2px solid var(--nimi-focus-ring-color); outline-offset: -2px;}
56
+ .studio-review-disclosure__body{ display: grid; gap: 10px; border-top: 1px solid var(--nimi-border-subtle); padding: 12px 14px;}
57
+ .studio-review-disclosure__body .studio-input{ border: 0; padding: 0;}
58
+ .studio-review-disclosure__prompt{ margin: 0; color: var(--nimi-text-secondary); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;}
37
59
  .studio-composer{ display: grid; gap: 10px; width: 100%; max-width: var(--nimi-ui-module-lab-studio-work-width); margin: 0 auto;}
38
- .studio-input{ position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 136px; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-xl); background: var(--nimi-material-glass-chrome-bg); box-shadow: var(--nimi-elevation-raised), 0 1px 0 var(--nimi-material-glass-thick-bg) inset; padding: 18px 17px 24px 24px;}
39
- .studio-input--readonly{ min-height: 126px; border-color: var(--nimi-border-subtle); background: var(--nimi-material-glass-thick-bg); box-shadow: var(--nimi-elevation-raised), 0 1px 0 var(--nimi-material-glass-thick-bg) inset; padding-bottom: 17px;}
40
- .studio-input__note{ min-height: 46px; color: color-mix(in srgb, var(--nimi-text-secondary) 88%, var(--nimi-text-primary)); font-weight: var(--nimi-type-caption-weight);}
60
+ .studio-input{ position: relative; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-md); background: var(--nimi-surface-card); padding: 16px;}
61
+ .studio-input__note{ margin: 0; color: var(--nimi-text-secondary);}
62
+ .studio-composer__heading{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; min-width: 0;}
63
+ .studio-composer__heading h3{ margin: 0; color: var(--nimi-text-primary); font-size: 16px; font-weight: var(--nimi-type-label-weight);}
64
+ .studio-composer__field{ display: grid; gap: 5px; min-width: 0; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-sm); background: var(--nimi-surface-panel); padding: 9px 11px;}
65
+ .studio-composer__field > label{ color: var(--nimi-text-secondary); font-size: 12px; font-weight: var(--nimi-type-label-weight);}
66
+ .studio-composer__field:focus-within{ outline: 2px solid var(--nimi-focus-ring-color); outline-offset: 1px;}
41
67
  .studio-context{ display: none;}
42
68
  .studio-context--open{ display: block; border-top: 1px solid var(--nimi-border-subtle); padding-top: 10px;}
43
69
  .studio-parameters-drawer{ display: none;}
44
70
  .studio-parameters-drawer--open{ display: block; max-height: min(420px, 52cqh); overflow: auto; border-top: 1px solid var(--nimi-border-subtle); padding: 12px 6px 2px 0;}
71
+ .studio-parameters-drawer--with-primary{ display: block; max-height: min(480px, 48vh); overflow: auto;}
72
+ .studio-parameters-drawer--with-primary:not(.studio-parameters-drawer--open) .studio-parameters__advanced{ display: none;}
73
+ .studio-parameters__advanced{ display: grid; gap: 10px; min-width: 0;}
45
74
  .studio-parameters{ display: grid; gap: 12px;}
46
- .studio-start--vision{ overflow-y: auto; align-items: start; padding-bottom: 32px;}
47
- .studio-start--vision .studio-start__center{ gap: 24px;}
48
75
  .studio-composer--vision{ gap: 16px;}
49
76
  .studio-locate-input{ min-width: 0; overflow: hidden; border-radius: var(--nimi-radius-lg); background: var(--nimi-surface-card);}
50
77
  .studio-locate-input__empty{ display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 156px; padding: 24px;}
@@ -52,7 +79,6 @@
52
79
  .studio-locate-input__preview{ display: block; width: 100%; height: 220px; object-fit: contain; image-orientation: from-image;}
53
80
  .studio-locate-input__file{ display: flex; align-items: center; gap: 8px; padding: 8px 12px;}
54
81
  .studio-locate-input__file > span{ flex: 1; min-width: 0; overflow: hidden; color: var(--nimi-text-secondary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap;}
55
- .studio-locate-input__label{ color: var(--nimi-text-primary); font-size: 13px; font-weight: var(--nimi-type-label-weight);}
56
82
  .studio-locate-parameters{ padding: 12px 0;}
57
83
  .studio-locate-parameters p{ margin: 0; color: var(--nimi-text-secondary); font-size: 12px; line-height: 1.5;}
58
84
  .studio-composer--vision .studio-composer__bar{ flex-wrap: wrap; justify-content: flex-end;}
@@ -98,37 +124,36 @@
98
124
  .studio-parameters__file-input{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);}
99
125
  .studio-parameters__file-row{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0;}
100
126
  .studio-parameters__file-row > span{ min-width: 0; overflow: hidden; color: var(--nimi-text-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap;}
101
- .studio-composer__bar{ display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; margin-top: auto;}
127
+ .studio-composer__bar{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-width: 0; border-top: 1px solid var(--nimi-border-subtle); padding-top: 10px;}
102
128
  .studio-composer__controls,
103
- .studio-composer__actions{ display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0;}
129
+ .studio-composer__actions{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0;}
130
+ .studio-composer__actions{ justify-content: end; margin-inline-start: auto;}
131
+ .studio-composer__shortcut{ color: var(--nimi-text-secondary); font-size: 11px; white-space: nowrap;}
104
132
  .studio-context-chip,
105
- .studio-intent-chip{ display: inline-flex; align-items: center; border: 1px solid var(--nimi-border-subtle); border-radius: 999px; background: color-mix(in srgb, var(--nimi-surface-panel) 72%, transparent); color: var(--nimi-text-secondary); box-shadow: var(--nimi-elevation-base);}
106
- .studio-context-chip{ box-sizing: border-box; gap: 8px; min-height: 38px; height: 38px; padding: 0 14px; font-size: 12px; font-weight: var(--nimi-type-page-title-weight); cursor: pointer;}
133
+ .studio-intent-chip{ display: inline-flex; align-items: center; border-radius: var(--nimi-radius-sm); color: var(--nimi-text-secondary);}
134
+ .studio-context-chip{ gap: 6px; min-height: 32px; padding-inline: 8px; font-size: 12px;}
135
+ .studio-context-chip[aria-expanded="true"],
136
+ .studio-context-chip--attached{ background: var(--nimi-surface-active);}
107
137
  .studio-context-chip svg{ color: inherit;}
108
- .studio-intent-chip{ min-height: 42px; gap: 8px; max-width: 240px; padding: 0 14px; font-size: 12px; font-weight: var(--nimi-type-page-title-weight); cursor: pointer;}
138
+ .studio-intent-chip{ gap: 6px; min-height: 32px; max-width: min(420px, 100%); padding-inline: 8px; background: var(--nimi-surface-panel); font-size: 12px; font-weight: var(--nimi-type-label-weight);}
109
139
  .studio-intent-chip--static{ cursor: default; }
110
140
  .studio-intent-chip svg{ color: inherit;}
111
141
  .studio-intent-chip span{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
112
- .studio-generate-action{ display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 999px; background: var(--nimi-action-primary-bg); color: var(--nimi-action-primary-text); box-shadow: 0 16px 34px color-mix(in srgb, var(--nimi-action-primary-bg) 32%, transparent); cursor: pointer;}
113
- .studio-generate-action--configure{ background: var(--nimi-action-primary-bg-hover); box-shadow: 0 18px 38px color-mix(in srgb, var(--nimi-action-primary-bg) 36%, transparent);}
114
- .studio-generate-action:disabled{ cursor: not-allowed; opacity: 0.5; box-shadow: none;}
115
142
  .studio-result__plain,
116
143
  .studio-result__hint{ margin: 0; color: var(--nimi-text-secondary); line-height: 1.55;}
117
- .studio-result{ overflow: hidden; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-xl); background: var(--nimi-material-glass-chrome-bg); box-shadow: none !important;}
118
- .studio-result__top{ display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 108px; padding: 26px 34px 28px; border-bottom: 1px solid var(--nimi-border-subtle);}
144
+ .studio-result{ overflow: hidden; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-md); background: var(--nimi-surface-card); box-shadow: none !important;}
145
+ .studio-result__top{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; border-bottom: 1px solid var(--nimi-border-subtle);}
119
146
  .studio-result__summary{ display: grid; gap: 10px; min-width: 0;}
120
147
  .studio-result__identity,
121
148
  .studio-result__time,
122
149
  .studio-result__actions{ display: flex; align-items: center; gap: 12px; min-width: 0;}
123
- .studio-result__actions{ gap: 8px; padding-top: 6px;}
150
+ .studio-result__actions{ flex-wrap: wrap; gap: 4px;}
124
151
  .studio-result__action{ display: inline-grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: var(--nimi-radius-sm); background: transparent; color: color-mix(in srgb, var(--nimi-text-secondary) 82%, var(--nimi-text-secondary)); cursor: pointer;}
125
152
  .studio-result__action svg{ display: block; width: 16px; height: 16px; flex: none; stroke: currentColor; stroke-width: 2;}
126
153
  .studio-result__action:hover:not(:disabled){ border-color: var(--nimi-border-subtle); background: var(--nimi-surface-hover); color: var(--nimi-text-primary);}
127
154
  .studio-result__action:disabled{ cursor: not-allowed; opacity: 0.45;}
128
- .studio-result__title-stack{ display: grid; gap: 7px; min-width: 0;}
129
- .studio-result__title-stack strong{ color: var(--nimi-text-primary); font-size: 18px; font-weight: var(--nimi-type-page-title-weight); line-height: 1.15;}
130
- .studio-result__time{ color: var(--nimi-text-muted); font-size: 14px; line-height: 1.2;}
131
- .studio-result__meta{ display: flex; align-items: center; gap: 18px; min-width: 0; border-bottom: 1px solid var(--nimi-border-subtle); background: color-mix(in srgb, var(--nimi-surface-panel) 82%, transparent); padding: 15px 34px;}
155
+ .studio-result__time{ color: var(--nimi-text-secondary); font-size: 12px; line-height: 1.2;}
156
+ .studio-result__meta{ display: flex; align-items: center; gap: 12px; min-width: 0; border-bottom: 1px solid var(--nimi-border-subtle); background: var(--nimi-surface-panel); padding: 8px 16px;}
132
157
  .studio-result__stats{ display: flex; flex-wrap: wrap; gap: 18px; min-width: 0;}
133
158
  .studio-result__metric{ display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--nimi-text-muted);}
134
159
  .studio-result__metric span{ color: var(--nimi-text-muted); font-size: 14px;}
@@ -142,7 +167,7 @@
142
167
  .studio-intent-pill__trigger:hover{ background: color-mix(in srgb, var(--nimi-surface-panel) 92%, transparent); color: var(--nimi-text-secondary);}
143
168
  .studio-intent-pill__trigger svg{ display: block; stroke: currentColor; transition: transform 0.16s ease;}
144
169
  .studio-intent-pill__trigger--open svg{ transform: rotate(90deg);}
145
- .studio-result__body{ display: grid; gap: 18px; padding: 34px 36px 38px;}
170
+ .studio-result__body{ display: grid; gap: 14px; padding: 18px 16px;}
146
171
  .studio-result__text{ white-space: pre-wrap; color: var(--nimi-text-secondary); font-family: var(--nimi-font-sans); font-size: 15px; font-weight: var(--nimi-type-body-weight); line-height: 1.68; letter-spacing: 0;}
147
172
  .studio-result__text--formatted{ display: grid; gap: 22px; white-space: normal;}
148
173
  .studio-result__subject{ margin: 0; color: var(--nimi-text-primary); font-family: var(--nimi-font-sans); font-size: 17px; font-weight: var(--nimi-type-page-title-weight); line-height: 1.25; letter-spacing: 0;}
@@ -223,15 +248,15 @@
223
248
  .studio-diag__note{ margin: 10px 0 0; color: var(--nimi-text-muted); font-size: 12px;}
224
249
  .studio-prompt-settings,
225
250
  .studio-history-settings{ display: grid; gap: 12px; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-lg); padding: 14px; background: linear-gradient(180deg, var(--nimi-material-glass-thick-bg), color-mix(in srgb, var(--nimi-surface-panel) 64%, transparent)), color-mix(in srgb, var(--nimi-surface-card) 72%, transparent);}
226
- .studio-history-result{ display: grid; overflow: hidden; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-xl); background: var(--nimi-material-glass-chrome-bg);}
251
+ .studio-history-result{ display: grid; overflow: hidden; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-md); background: var(--nimi-surface-card);}
227
252
  .studio-prompt-settings__context p{ margin: 0; color: var(--nimi-text-secondary);}
228
253
  .studio-history-settings__head,
229
254
  .studio-history-result__head,
230
255
  .studio-history-result__line{ display: flex; align-items: center; gap: 8px;}
231
- .studio-history-result__head{ min-height: 108px; justify-content: space-between; gap: 18px; padding: 26px 34px 28px; border-bottom: 1px solid var(--nimi-border-subtle);}
232
- .studio-history-result__actions{ margin-left: auto; padding-top: 6px;}
256
+ .studio-history-result__head{ justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; border-bottom: 1px solid var(--nimi-border-subtle);}
257
+ .studio-history-result__actions{ margin-left: auto;}
233
258
  .studio-history-settings__head span,
234
- .studio-history-result__line time{ color: var(--nimi-text-muted); font-size: 14px;}
259
+ .studio-history-result__line time{ color: var(--nimi-text-secondary); font-size: 12px;}
235
260
  .studio-history-settings__head{ display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; min-width: 0;}
236
261
  .studio-history-settings__head svg{ color: var(--nimi-text-secondary);}
237
262
  .studio-history-settings__head strong,
@@ -246,7 +271,7 @@
246
271
  .studio-history-result__line{ min-width: 0; gap: 14px;}
247
272
  .studio-history-result__title-stack{ display: grid; gap: 7px; min-width: 0;}
248
273
  .studio-history-result__title-stack strong{ color: var(--nimi-text-primary); font-size: 18px; font-weight: var(--nimi-type-page-title-weight); line-height: 1.15;}
249
- .studio-history-result__meta{ display: flex; align-items: center; gap: 18px; min-width: 0; border-bottom: 1px solid var(--nimi-border-subtle); background: color-mix(in srgb, var(--nimi-surface-panel) 82%, transparent); padding: 15px 34px;}
274
+ .studio-history-result__meta{ display: flex; align-items: center; gap: 12px; min-width: 0; border-bottom: 1px solid var(--nimi-border-subtle); background: var(--nimi-surface-panel); padding: 8px 16px;}
250
275
  .studio-history-result__tags{ display: flex; flex-wrap: wrap; gap: 18px; min-width: 0;}
251
276
  .studio-history-result__tags span{ display: inline-flex; align-items: center; gap: 6px; color: var(--nimi-text-muted); font-size: 14px; line-height: 1.2;}
252
277
  .studio-history-result__tags span:first-child{ min-height: 30px; border-radius: 999px; background: var(--nimi-status-success-soft-bg); padding: 0 12px; color: var(--nimi-status-success); font-weight: var(--nimi-type-page-title-weight);}
@@ -255,20 +280,21 @@
255
280
  .studio-history-result__tags span.studio-history-result__tag--neutral{ background: var(--nimi-surface-active); color: var(--nimi-text-muted);}
256
281
  .studio-history-result__intent{ display: inline-flex; align-items: center; gap: 10px; min-width: 0; margin-left: auto;}
257
282
  .studio-history-result__intent > span{ color: var(--nimi-text-muted); font-size: 12px; font-weight: var(--nimi-type-page-title-weight); letter-spacing: 0.1em; text-transform: uppercase;}
258
- .studio-history-result > .studio-history-settings{ margin: 0; border-width: 0 0 1px; border-radius: 0; background: linear-gradient(180deg, var(--nimi-material-glass-thick-bg), color-mix(in srgb, var(--nimi-surface-panel) 86%, transparent)); padding: 18px 34px;}
283
+ .studio-history-result > .studio-history-settings{ margin: 0; border-width: 0 0 1px; border-radius: 0; background: var(--nimi-surface-panel); padding: 14px 16px;}
259
284
  .studio-history-result > .studio-result__text,
260
285
  .studio-history-result > .studio-result__blocked,
261
286
  .studio-history-result > .studio-result__rich,
262
- .studio-history-result > .studio-voice-list{ margin: 0; padding: 34px 36px 38px;}
287
+ .studio-history-result > .studio-voice-list{ margin: 0; padding: 18px 16px;}
263
288
  .studio-history-shell{ position: relative; z-index: 5; width: var(--nimi-ui-module-lab-studio-side-panel-width); min-width: 0; min-height: 0; transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);}
264
289
  .studio-history-shell::before{ content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 8; width: 1px; background: var(--nimi-border-subtle); pointer-events: none;}
265
290
  .studio-history-shell--collapsed{ width: 0; pointer-events: none;}
266
291
  .studio-history-shell--collapsed::before{ display: none;}
267
- .studio-history{ box-sizing: border-box; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: visible; border-left: 1px solid var(--nimi-border-subtle); background: transparent; box-shadow: none; padding: 36px 14px 28px;}
268
- .studio-recent__head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 41px; margin: 0 8px 12px;}
292
+ .studio-history{ box-sizing: border-box; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: visible; border-left: 1px solid var(--nimi-border-subtle); background: var(--nimi-surface-card); box-shadow: none; padding: 14px 12px 16px;}
293
+ .studio-recent__head{ display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; margin: 0 6px 10px;}
269
294
  .studio-history__title{ min-width: 0;}
270
- .studio-history__title strong{ color: color-mix(in srgb, var(--nimi-text-primary) 76%, transparent); font-size: 18px; line-height: 1.05; font-weight: var(--nimi-type-caption-weight);}
271
- .studio-history__actions{ display: flex; align-items: center; gap: 6px; min-width: max-content;}
295
+ .studio-history__title strong{ color: var(--nimi-text-primary); font-size: 16px; line-height: 1.15; font-weight: var(--nimi-type-label-weight);}
296
+ .studio-history__actions{ display: flex; align-items: center; gap: 2px; min-width: max-content;}
297
+ .studio-history__compare-trigger{ min-height: 30px; padding-inline: 6px; font-size: 12px;}
272
298
  .studio-history__filter-trigger{ display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--nimi-radius-sm); background: transparent; color: color-mix(in srgb, var(--nimi-text-muted) 86%, transparent); cursor: pointer;}
273
299
  .studio-history__filter-trigger:hover,
274
300
  .studio-history__filter-trigger--active{ background: var(--nimi-material-glass-regular-bg); color: color-mix(in srgb, var(--nimi-text-muted) 96%, transparent);}
@@ -284,11 +310,11 @@
284
310
  .studio-history__scope-option:hover{ background: var(--nimi-material-glass-regular-bg);}
285
311
  .studio-history__scope-option--active{ background: var(--nimi-material-glass-regular-bg); color: var(--nimi-text-primary); font-weight: var(--nimi-type-page-title-weight);}
286
312
  .studio-history--collapsed .studio-history__toolbar{ display: none;}
287
- .studio-history__search{ display: flex; align-items: center; gap: 6px; margin: 0 9px 8px; padding: 0 10px; height: 30px; border-radius: var(--nimi-radius-sm); background: var(--nimi-material-glass-regular-bg); color: var(--nimi-text-muted);}
313
+ .studio-history__search{ display: flex; align-items: center; gap: 6px; margin: 0 6px 8px; padding: 0 10px; min-height: 32px; border: 1px solid var(--nimi-border-subtle); border-radius: var(--nimi-radius-sm); background: var(--nimi-surface-panel); color: var(--nimi-text-secondary);}
314
+ .studio-history__search:focus-within{ outline: 2px solid var(--nimi-focus-ring-color); outline-offset: 1px;}
288
315
  .studio-history__search input{ flex: 1; min-width: 0; border: 0; background: transparent; font-size: 12px; color: var(--nimi-text-primary); outline: none;}
289
316
  .studio-history__search input::placeholder{ color: var(--nimi-text-muted);}
290
317
  .studio-history--collapsed .studio-history__search{ display: none;}
291
- .studio-history__scope-option--danger{ color: var(--nimi-status-danger-text, #c43d3d);}
292
318
  .studio-recent__rows li{ position: relative;}
293
319
  .studio-recent__row-delete{ position: absolute; top: 6px; right: 6px; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: var(--nimi-radius-sm); background: transparent; color: var(--nimi-text-muted); cursor: pointer; opacity: 0; transition: opacity 120ms ease;}
294
320
  .studio-recent__rows li:hover .studio-recent__row-delete,
@@ -351,10 +377,19 @@
351
377
  this file: Kit Dialog portals its overlay and content to <body>. */
352
378
  @keyframes nimi-ui-module-lab-studio-spin{ to{ transform: rotate(360deg);}}
353
379
  @keyframes nimi-ui-module-lab-studio-caret{ 50%{ opacity: 0;}}
354
- @container nimi-workbench-surface (max-width: 720px){ .studio-history__toolbar, .studio-history__scope{ flex-wrap: wrap;} }
355
380
  @media (prefers-reduced-motion: reduce){ .studio-spin, .studio-result__text--stream::after{ animation: none;} .studio-history-shell{ transition: none;}}
356
- @container nimi-workbench-surface (max-width: 1080px){ .studio__workspace--with-history{ grid-template-columns: minmax(0, 1fr);} .studio-history-shell{ width: auto;} .studio-history-shell--collapsed{ width: 0;} .studio-history-shell::before{ display: none;} .studio-history{ border-left: 0; border-top: 1px solid var(--nimi-border-subtle);} .studio-history--collapsed{ min-height: 0; border-top: 0; padding: 0;}}
357
- @container nimi-workbench-surface (max-width: 720px){ .studio-parameters__grid{ grid-template-columns: minmax(0, 1fr);} .studio__head, .studio-result__top, .studio-history-result__head, .studio-composer__bar{ align-items: stretch; flex-direction: column;} .studio-turn--user p{ padding: 18px 20px; font-size: 15px;} .studio-result__top, .studio-history-result__head{ min-height: 0; padding: 22px;} .studio-result__meta, .studio-history-result__meta{ align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 22px;} .studio-result__intent-pill, .studio-history-result__intent{ width: 100%; margin-left: 0;} .studio-intent-pill__box{ width: 100%; max-width: 100%;} .studio-result__body, .studio-history-result > .studio-result__text, .studio-history-result > .studio-result__blocked, .studio-history-result > .studio-result__rich, .studio-history-result > .studio-voice-list{ padding: 24px 22px 28px;} .studio-start, .studio-thread__scroll, .studio-thread__composer{ padding: 12px;}}
381
+ @container nimi-workbench-surface (max-width: 720px){
382
+ .studio-parameters__grid{ grid-template-columns: minmax(0, 1fr);}
383
+ .studio-history__scope{ flex-wrap: wrap;}
384
+ .studio-result__meta, .studio-history-result__meta{ flex-wrap: wrap; gap: 8px;}
385
+ .studio-result__intent-pill, .studio-history-result__intent{ margin-left: 0;}
386
+ }
387
+ @container nimi-workbench-surface (max-width: 540px){
388
+ .studio__head{ grid-template-columns: minmax(0, 1fr);}
389
+ .studio__head-actions{ justify-content: start;}
390
+ .studio__title h2{ font-size: 20px;}
391
+ .studio-composer__shortcut{ display: none;}
392
+ }
358
393
 
359
394
  }
360
395