feat: add a selectable mist blue appearance for Orven

This commit is contained in:
Agent Workbench Dev
2026-11-06 14:37:59 +08:00
parent 8fe2008af4
commit e32996799b
29 changed files with 730 additions and 270 deletions
+2
View File
@@ -12,6 +12,8 @@
字体为 Segoe UI Variable/Segoe UI 与 Microsoft YaHei UI,代码为 Cascadia Code/Consolas。对话 14px/1.9,导航 12px,说明 11px,元数据 10px;首页问候 28–34px,字标 26px。兼顾中文、英文模型名和长路径。
「外观」提供默认深青绿与可选雾蓝,后者来自用户参考图的 #4F6EF7 靛蓝、#F6F8FC 画布、#EDF1FF 选中和 #24334B 正文;白字按钮稍加深为 #4563E6,强调文字用 #3D58CD。公共 `orven-palettes.css` 定义角色颜色,界面样式引用变量,成功/错误/审批和差异保持语义。右上角与工具箱均有入口,单选即时应用并保存,不刷新或重建任务。桌面/手机使用同一选择面板,偏好按本机浏览器保存。
桌面侧栏 242px,成果区默认 430px 并可调整。940px 以下成果区成为抽屉,620px 以下导航也成为抽屉。输入始终在视口底部,内容内部滚动。长路径截断并可查看完整 title,代码保留横向滚动。控件保留可见焦点、弹窗焦点约束和减少动态效果支持。桌面、390px 及异常状态实际渲染验收。
## 历史设计记录
+4
View File
@@ -50,6 +50,10 @@ Orven 理解你的项目,和你一起研究问题、编写代码,把想法
品牌主色为深青绿 **#176B5B**,配合松墨 **#28382F**、雾灰 **#F3F6F4** 与白色画布。选中和聚焦使用浅绿 **#E7F2EB**;错误、确认与文件差异保持各自的状态语义。此配色取代初版鸢尾色,使 Orven 与用户已有产品形成区别。
工作台提供可选「雾蓝」外观:靛蓝 **#4F6EF7**、雾蓝白画布 **#F6F8FC**、深蓝灰正文 **#24334B**、选中 **#EDF1FF**。依据用户提供的数字教材工作台截图提取配色,保留 Orven 的结构与标识;白字按钮用 **#4563E6**,小字强调用 **#3D58CD**,保证阅读对比。右上角调色盘或「工具箱 → 外观」立即切换,深青绿仍为默认。
选择保存在当前浏览器或桌面窗口所属的本地配置中,刷新和重新打开时恢复;同源标签页同步,手机按自己的浏览器选择。安装图标和品牌页保留深青绿,应用内标识、桌面浏览器图标与网页主题色随配色改变。手机图标沿用配对网关已允许的资源路径。
- `public/brand/orven-symbol.svg`:透明图形标。
- `public/brand/orven-wordmark.svg`:横向图文标;使用 Segoe UI,跨平台交换前需确认字体或转曲。
- `public/favicon.svg`、`public/mobile-icon.svg`:应用图标。
+15
View File
@@ -50,6 +50,21 @@
上方代表截图已更新为深青绿版本,初版截图仍可从先前本地提交 b4b139a1 查看。
## 深青绿 / 雾蓝外观选择
按用户提供的数字教材工作台截图,取 #4F6EF7 强调、#F6F8FC 画布、#EDF1FF 选中与 #24334B 正文,新增「雾蓝」,保留默认「深青绿」。白字按钮采用 #4563E6,小字强调 #3D58CD。公共角色变量覆盖主界面、模型中心、文件/差异、工具面板和手机主题,成功、错误、确认和差异状态保持原语义。
本轮 TypeScript、Vite 与 mobile shell 构建通过;两套配色各完成现有主路径 10 组,共 20 组,各自使用 3 次本机协议请求、0 真实模型调用。选择面板另有 5 组通过:工具箱与直接入口、即时切换且保留草稿、刷新后恢复、原生单选键盘与焦点返回、多标签页同步、一次性预览链接、无效选择回退、390px/实际手机伴随端页面、保存不可用的明确提示。外观验证对后端写请求为 0。实际查看了桌面、差异、外观面板和伴随端截图。
- [深青绿 10 组结果](evidence/themes-green-result.json)
- [雾蓝 10 组结果](evidence/themes-blue-result.json)
- [外观 5 组及文字对比](evidence/appearance-result.json):7 个 DOM 文字样本为 4.94:1–5.79:1;其中白字按钮 5.02:1。不是全应用可访问性认证。
- [雾蓝主界面](screenshots/blue-desktop.png)、[任务与差异](screenshots/blue-task-results.png)、[选择面板](screenshots/appearance.png)、[390px 会话](screenshots/blue-mobile.png)。
首轮将原生 radio 裁成 1px 后,自动点击被标签拦截;改为透明 radio 覆盖整张选择卡,保持原生键盘语义并扩大点击范围。随后存储异常验证误等待窄屏中隐藏的连接状态为可见,修正为核对已连接 DOM 状态,产品连接未改。原本机失败输出保留在 `output/playwright/orven-appearance/`,后续 5 组通过。
复验命令为 `npm run verify:appearance`。现有主路径默认深青绿,设置 `ORVEN_QA_PALETTE=blue` 则验雾蓝。偏好按浏览器来源保存,同源多页同步,实际手机各自保存;未声称跨设备同步或实际 iPhone 配对。品牌展示页与安装图标沿用深青绿,本轮不涉及桌面宿主生命周期和正式安装。
## 边界
全部模型执行来自明确的本机测试接口;未用真实供应商验证新的模型能力。手机伴随端完成品牌和主题,主工作台窄屏已经实际验收;本轮未进行真实 iPhone 配对。安装器显示名更新仅在源码,未重制安装包或更改正式安装。名称的商标、域名和商店可用性尚未核验。
@@ -0,0 +1,57 @@
{
"checks": [
"visible appearance choice updates all surfaces, favicon and metadata; draft survives switching and selection survives reload",
"native keyboard selection, focus return and cross-tab preference sync work without backend mutations",
"preview links select once and preserve other URL data; latest selection wins on reload and invalid stored choices recover",
"390px workbench and actual companion shell expose the same two choices and retain local preference",
"unavailable preference storage keeps switching usable and reports that the choice was not saved"
],
"contrast": [
{
"label": "blue appearance description",
"foreground": "rgb(98, 113, 138)",
"background": "rgb(255, 255, 255)",
"ratio": 4.94
},
{
"label": "blue saved state",
"foreground": "rgb(98, 113, 138)",
"background": "rgb(255, 255, 255)",
"ratio": 4.94
},
{
"label": "blue welcome text",
"foreground": "rgb(82, 100, 127)",
"background": "rgb(246, 248, 252)",
"ratio": 5.66
},
{
"label": "blue selected navigation",
"foreground": "rgb(61, 88, 205)",
"background": "rgb(248, 250, 255)",
"ratio": 5.79
},
{
"label": "blue primary action",
"foreground": "rgb(255, 255, 255)",
"background": "rgb(69, 99, 230)",
"ratio": 5.02
},
{
"label": "blue model category",
"foreground": "rgb(61, 88, 205)",
"background": "rgb(237, 241, 255)",
"ratio": 5.36
},
{
"label": "green appearance description",
"foreground": "rgb(95, 112, 102)",
"background": "rgb(255, 255, 255)",
"ratio": 5.26
}
],
"errors": [],
"backendMutations": [],
"realModelCalls": 0,
"userDataAccessed": false
}
@@ -0,0 +1,20 @@
{
"palette": "blue",
"checks": [
"Orven identity, actual project context and focused new-task surface",
"starter prompts do not execute; missing model preserves input and opens connection setup",
"tool search, no-result recovery, keyboard selection and real file preview preserve the draft",
"model creation and selection persist across refresh; setup emits no model requests",
"real three-request local protocol flow reads and writes the owned project; diff and conversation survive refresh",
"permission choice is saved and restored rather than shown as a cosmetic selection",
"external file conflict preserves external bytes and unsaved editor input, with a visible recovery message",
"1280/1024/768/390 layouts keep the document contained; mobile navigation and result drawer work",
"skills, MCP and diagnostics remain connected through the new tool navigation",
"brand page, interactive mark backgrounds and downloadable SVG/PNG/ICO assets render without browser errors"
],
"errors": [],
"modelCalls": 3,
"realModelCalls": 0,
"fixtureOnly": true,
"userDataAccessed": false
}
@@ -0,0 +1,20 @@
{
"palette": "green",
"checks": [
"Orven identity, actual project context and focused new-task surface",
"starter prompts do not execute; missing model preserves input and opens connection setup",
"tool search, no-result recovery, keyboard selection and real file preview preserve the draft",
"model creation and selection persist across refresh; setup emits no model requests",
"real three-request local protocol flow reads and writes the owned project; diff and conversation survive refresh",
"permission choice is saved and restored rather than shown as a cosmetic selection",
"external file conflict preserves external bytes and unsaved editor input, with a visible recovery message",
"1280/1024/768/390 layouts keep the document contained; mobile navigation and result drawer work",
"skills, MCP and diagnostics remain connected through the new tool navigation",
"brand page, interactive mark backgrounds and downloadable SVG/PNG/ICO assets render without browser errors"
],
"errors": [],
"modelCalls": 3,
"realModelCalls": 0,
"fixtureOnly": true,
"userDataAccessed": false
}
+3
View File
@@ -26,3 +26,6 @@
- 用户要求另选色系后,统一改为深青绿 #176B5B、松墨正文与雾灰导航;同步工作台、模型中心、手机端、品牌页和全部应用标识,重新生成 PNG/ICO。
- 配色调整后的 Vite/mobile shell 构建、现有浏览器 10 组通过;实际检查桌面、模型中心、品牌页与 390px 页面,9 个 DOM 对比样本为 5.11:1–12.38:1。原紫调色值已从本次主题及品牌资源中移除,代表截图更新;未重建服务端或触碰并行工程修复。
- 用户提供新参考图后,新增「雾蓝」外观,保留默认深青绿。统一为公共角色颜色变量,两套配色覆盖工作台、文件/成果、模型中心及工具面板;手机伴随端共用外观面板。右上角与工具箱均可打开,选择即时保存,同源多页同步,存储不可用有实际反馈;预览链接只选择一次,不覆盖之后的用户选择。
- TypeScript/Vite/mobile shell 构建通过,两套各 10 组任务主路径及外观 5 组通过;0 真实模型、0 用户数据,外观切换 0 后端写请求。7 个文字对比样本 4.94:1–5.79:1。已检查雾蓝桌面/差异、外观选择与手机端真实渲染;本轮未改变品牌页和安装图标,不制作发行包或替换正式安装。
Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 102 KiB

+6
View File
@@ -26,3 +26,9 @@
- 系统 Node26 不满足桌面启动测试所需的已核验 Node24;改用仓库 Node24,两项通过。
- 品牌页内联交互脚本被原有 CSP 阻止;改用同源外部脚本,不改变安全策略。
- 初次 patch 同时删除/新增同一图标路径被工具拒绝,未写入;改为原位 Update。
## 可选雾蓝配色
用户补充参考图后,保留默认深青绿,新增「雾蓝」可选主题。参考图实际像素为强调 #4F6EF7、画布 #F6F8FC、选中 #EDF1FF、正文 #24334B;白字按钮采用更深的 #4563E6,小字强调用 #3D58CD。沿用现有布局与任务流程,通过公共颜色变量覆盖文件、模型中心与工具面板。
实现右上角及工具箱「外观」入口、原生单选与即时切换、本机浏览器保存和同源多标签页同步、手机伴随端入口;初始化在 React 渲染前应用选择。验证包含两套各 10 组主路径、切换/保存/恢复/存储不可用 5 组以及实际截图和文字对比。
+1
View File
@@ -13,6 +13,7 @@
"test": "node --test --test-concurrency=2 tests/*.test.mjs",
"verify:ui": "node scripts/verify-ui.mjs",
"verify:orven": "node scripts/verify-orven-ui.mjs",
"verify:appearance": "node scripts/verify-orven-appearance.mjs",
"verify:diagnostics": "node scripts/verify-diagnostics-ui.mjs",
"verify:python": "node scripts/verify-python-ui.mjs",
"verify:react": "node scripts/verify-react-delivery.mjs",
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect x="2" y="2" width="60" height="60" rx="16" fill="#4f6ef7"/><g transform="translate(11 11) scale(1.05)" fill="none" stroke="#fff" stroke-width="5.2" stroke-linecap="round" stroke-linejoin="round"><path d="M30.7 12.3a13.2 13.2 0 1 0 1.7 12.6"/><path d="m21.5 20 6.2 6.2L36 17.9"/></g></svg>

After

Width:  |  Height:  |  Size: 355 B

+121
View File
@@ -0,0 +1,121 @@
import assert from 'node:assert/strict';
import fs from 'node:fs';
import path from 'node:path';
import { chromium, expect } from 'playwright/test';
import { fixture, launchWorkbench } from '../tests/helpers.mjs';
const disposers = [], t = { after: dispose => disposers.push(dispose) };
const f = fixture(t, { modernDefaults: true }); f.store.close();
const host = await launchWorkbench(t, f.data);
assert.notEqual(new URL(host.url).port, '4318');
const output = path.resolve('output/playwright/orven-appearance'); fs.mkdirSync(output, { recursive: true });
const browser = await chromium.launch({ channel: 'msedge', headless: true });
const context = await browser.newContext({ viewport: { width: 1440, height: 960 } });
const page = await context.newPage(), checks = [], errors = [], mutations = [], contrast = [];
context.on('page', page => page.on('pageerror', error => errors.push(error.message)));
page.on('pageerror', error => errors.push(error.message));
context.on('request', request => { if (request.url().includes('/api/') && request.method() !== 'GET') mutations.push(request.method() + ' ' + new URL(request.url()).pathname); });
const mark = value => { checks.push(value); console.log('PASS ' + value); };
const chosen = (page, palette) => expect(page.locator('html')).toHaveAttribute('data-palette', palette);
const appearance = () => page.getByRole('dialog', { name: '外观', exact: true });
const shot = name => page.screenshot({ path: path.join(output, name + '.png'), fullPage: true });
async function sample(locator, label) {
const colors = await locator.evaluate(element => {
let node = element, background = 'rgb(255, 255, 255)';
while (node) { const color = getComputedStyle(node).backgroundColor; if (color !== 'transparent' && color !== 'rgba(0, 0, 0, 0)') { background = color; break; } node = node.parentElement; }
return { foreground: getComputedStyle(element).color, background };
});
const luminance = color => color.match(/[\d.]+/g).slice(0, 3).map(Number).map(value => { const n = value / 255; return n <= .04045 ? n / 12.92 : ((n + .055) / 1.055) ** 2.4; }).reduce((sum, value, index) => sum + value * [.2126, .7152, .0722][index], 0);
const a = luminance(colors.foreground), b = luminance(colors.background), ratio = Math.round((Math.max(a, b) + .05) / (Math.min(a, b) + .05) * 100) / 100;
contrast.push({ label, ...colors, ratio }); assert.ok(ratio >= 4.5, label + ': ' + ratio);
}
try {
await page.goto(host.url);
await page.locator('.connection.connected').waitFor(); await chosen(page, 'green');
await page.getByLabel('任务内容').fill('这段草稿在切换配色后应当保留。');
await page.keyboard.press('Control+k');
await page.getByLabel('搜索工作台工具').fill('外观');
await page.getByRole('dialog', { name: '工具箱', exact: true }).getByRole('button', { name: '外观', exact: true }).click();
await expect(appearance().getByRole('radio', { name: '深青绿', exact: true })).toBeChecked();
await appearance().getByRole('radio', { name: '雾蓝', exact: true }).check();
await chosen(page, 'blue');
await expect(page.locator('.appearance-note')).toContainText('已自动保存');
await expect(page.locator('meta[name="theme-color"]')).toHaveAttribute('content', '#4f6ef7');
await expect(page.locator('link[rel="icon"]')).toHaveAttribute('href', '/brand/orven-icon-blue.svg');
assert.equal(await page.locator('.task-pane').evaluate(element => getComputedStyle(element).backgroundColor), 'rgb(246, 248, 252)');
await sample(page.locator('.appearance-choice.selected .appearance-choice-description'), 'blue appearance description');
await sample(page.locator('.appearance-note'), 'blue saved state');
await shot('appearance-blue');
await page.keyboard.press('Escape');
await expect(page.getByLabel('任务内容')).toHaveValue('这段草稿在切换配色后应当保留。');
await page.reload(); await page.locator('.connection.connected').waitFor(); await chosen(page, 'blue');
await sample(page.locator('.orven-welcome > p'), 'blue welcome text');
await sample(page.locator('.sidebar-view-tabs button[aria-selected="true"]'), 'blue selected navigation');
await shot('blue-desktop');
await page.getByRole('button', { name: '选择与管理模型', exact: true }).click();
await sample(page.getByRole('button', { name: '从上游添加模型', exact: true }), 'blue primary action');
await sample(page.locator('.mc-tabs button[aria-current="page"]'), 'blue model category');
await page.keyboard.press('Escape');
mark('visible appearance choice updates all surfaces, favicon and metadata; draft survives switching and selection survives reload');
const other = await context.newPage(); await other.goto(host.url); await chosen(other, 'blue');
await page.getByRole('button', { name: '外观', exact: true }).click();
const blueRadio = appearance().getByRole('radio', { name: '雾蓝', exact: true });
await blueRadio.focus(); await blueRadio.press('ArrowLeft');
await expect(appearance().getByRole('radio', { name: '深青绿', exact: true })).toBeChecked();
await chosen(page, 'green'); await chosen(other, 'green');
await sample(page.locator('.appearance-choice.selected .appearance-choice-description'), 'green appearance description');
await page.keyboard.press('Escape');
await expect(page.getByRole('button', { name: '外观', exact: true })).toBeFocused();
await shot('green-desktop');
await other.close();
mark('native keyboard selection, focus return and cross-tab preference sync work without backend mutations');
await page.goto(host.url + '/?palette=blue&keep=1#review'); await chosen(page, 'blue');
assert.equal(new URL(page.url()).search, '?keep=1'); assert.equal(new URL(page.url()).hash, '#review');
await page.getByRole('button', { name: '外观', exact: true }).click();
await appearance().getByRole('radio', { name: '深青绿', exact: true }).check();
await page.reload(); await chosen(page, 'green');
await page.evaluate(() => localStorage.setItem('orven-palette', 'invalid-palette'));
await page.reload(); await chosen(page, 'green');
mark('preview links select once and preserve other URL data; latest selection wins on reload and invalid stored choices recover');
await page.goto(host.url + '/?palette=blue'); await page.locator('.connection.connected').waitFor();
await page.setViewportSize({ width: 390, height: 844 });
await page.getByRole('button', { name: '外观', exact: true }).click();
await expect(appearance().getByRole('radio', { name: '雾蓝', exact: true })).toBeChecked();
await shot('appearance-mobile'); await page.keyboard.press('Escape');
await page.goto(host.url + '/mobile.html'); await chosen(page, 'blue');
await expect(page.locator('link[rel="icon"]')).toHaveAttribute('href', '/mobile-icon.svg');
await page.getByRole('button', { name: '外观', exact: true }).click();
await expect(appearance().getByRole('radio', { name: '雾蓝', exact: true })).toBeChecked();
await appearance().getByRole('radio', { name: '深青绿', exact: true }).check();
await page.keyboard.press('Escape'); await page.reload(); await chosen(page, 'green');
await page.getByRole('button', { name: '外观', exact: true }).click();
await appearance().getByRole('radio', { name: '雾蓝', exact: true }).check();
await shot('companion-appearance');
const overflow = await page.evaluate(() => document.documentElement.scrollWidth > innerWidth + 1);
assert.equal(overflow, false);
mark('390px workbench and actual companion shell expose the same two choices and retain local preference');
const restricted = await browser.newContext({ viewport: { width: 390, height: 844 } });
await restricted.addInitScript(() => {
const original = Storage.prototype.setItem;
Storage.prototype.setItem = function (key, value) { if (key === 'orven-palette') throw new DOMException('Storage unavailable', 'QuotaExceededError'); return original.call(this, key, value); };
});
const limited = await restricted.newPage(); limited.on('pageerror', error => errors.push(error.message));
await limited.goto(host.url); await limited.locator('.connection.connected').waitFor({ state: 'attached' });
await limited.getByRole('button', { name: '外观', exact: true }).click();
await limited.getByRole('radio', { name: '雾蓝', exact: true }).check(); await chosen(limited, 'blue');
await expect(limited.locator('.appearance-note')).toContainText('暂时无法保存');
await limited.reload(); await chosen(limited, 'green'); await restricted.close();
mark('unavailable preference storage keeps switching usable and reports that the choice was not saved');
assert.deepEqual(errors, []); assert.deepEqual(mutations, []);
fs.writeFileSync(path.join(output, 'result.json'), JSON.stringify({ checks, contrast, errors, backendMutations: mutations, realModelCalls: 0, userDataAccessed: false }, null, 2));
} catch (error) {
await shot('failure').catch(() => {});
fs.writeFileSync(path.join(output, 'failure.json'), JSON.stringify({ checks, errors, message: error.message }, null, 2)); throw error;
} finally {
await browser.close(); for (const dispose of disposers.reverse()) await dispose();
}
+6 -2
View File
@@ -5,7 +5,9 @@ import { chromium, expect } from 'playwright/test';
import { fixture, compatibleFixture, completion, call, launchWorkbench } from '../tests/helpers.mjs';
// Real browser + real isolated host + local protocol fixture. No real model or user project.
const output = path.resolve('output/playwright/orven');
const palette = process.env.ORVEN_QA_PALETTE ?? 'green';
assert.ok(['green', 'blue'].includes(palette));
const output = path.resolve('output/playwright/' + (palette === 'blue' ? 'orven-blue' : 'orven'));
fs.mkdirSync(output, { recursive: true });
const disposers = [], t = { after: dispose => disposers.push(dispose) };
const f = fixture(t, { modernDefaults: true });
@@ -24,6 +26,7 @@ const host = await launchWorkbench(t, f.data);
assert.notEqual(new URL(host.url).port, '4318');
const browser = await chromium.launch({ channel: 'msedge', headless: true });
const page = await browser.newPage({ viewport: { width: 1440, height: 960 }, deviceScaleFactor: 1 });
await page.addInitScript(palette => localStorage.setItem('orven-palette', palette), palette);
page.setDefaultTimeout(12000);
const errors = [], checks = [];
page.on('pageerror', error => errors.push(error.message));
@@ -47,6 +50,7 @@ const bounds = async () => {
try {
await page.goto(host.url);
await page.locator('.connection.connected').waitFor();
await expect(page.locator('html')).toHaveAttribute('data-palette', palette);
await expect(page).toHaveTitle('Orven · AI 开发工作台');
await expect(page.getByRole('heading', { name: '今天,想实现什么?' })).toBeVisible();
await expect(page.locator('.inspector')).not.toBeVisible();
@@ -185,7 +189,7 @@ try {
for (const asset of ['/brand/orven-symbol.svg', '/brand/orven-wordmark.svg', '/workbench-icon.png', '/workbench-icon.ico']) assert.equal((await fetch(host.url + asset)).status, 200);
assert.deepEqual(errors, []);
mark('brand page, interactive mark backgrounds and downloadable SVG/PNG/ICO assets render without browser errors');
fs.writeFileSync(path.join(output, 'result.json'), JSON.stringify({ checks, errors, modelCalls, realModelCalls: 0, fixtureOnly: true, userDataAccessed: false }, null, 2));
fs.writeFileSync(path.join(output, 'result.json'), JSON.stringify({ palette, checks, errors, modelCalls, realModelCalls: 0, fixtureOnly: true, userDataAccessed: false }, null, 2));
} catch (error) {
await shot('failure').catch(() => {});
fs.writeFileSync(path.join(output, 'failure.json'), JSON.stringify({ checks, errors, modelCalls, message: error.message }, null, 2));
+6 -1
View File
@@ -29,6 +29,8 @@ import { PermissionModeControl } from './PermissionModeControl';
import { BRAND, OrvenMark } from './brand';
import { WorkbenchTools } from './WorkbenchTools';
import type { WorkbenchAction } from './WorkbenchTools';
import { AppearancePanel } from './AppearancePanel';
import { Palette as PaletteIcon } from 'lucide-react';
const activeStates = ['running', 'awaiting_approval', 'stopping'];
const activeMcpStates = ['queued', 'connecting', 'discovering', 'calling', 'closing', 'stopping'];
@@ -78,6 +80,7 @@ export default function App() {
const [sidebarView, setSidebarView] = useState<'sessions' | 'files'>('sessions');
const [inspectorOpen, setInspectorOpen] = useState(false);
const [toolsOpen, setToolsOpen] = useState(false);
const [appearanceOpen, setAppearanceOpen] = useState(false);
const [narrow, setNarrow] = useState(() => window.innerWidth <= 940);
const [viewportWidth,setViewportWidth]=useState(()=>window.innerWidth);
const [mobile, setMobile] = useState(() => window.innerWidth <= 620);
@@ -570,6 +573,7 @@ export default function App() {
{ id: 'rea', label: 'REA 工件研究', description: '研究应用工件,核对分析证据', group: '能力与研究', icon: BookOpenText, disabled: !selectedProject || creatingSession || restrictedWorker, reason: '请先选择可编辑的项目', run: () => void openRea() },
{ id: 'research', label: '机制研究与设计', description: '阅读已有研究报告与机制说明', group: '能力与研究', icon: BookOpenText, run: () => void openResearch() },
{ id: 'models', label: '模型中心', description: '选择模型、管理连接和模型池', group: '设置与连接', icon: ModelServer, run: () => setModelCenterOpen(true) },
{ id: 'appearance', label: '外观', description: '在深青绿和雾蓝之间选择工作台配色', group: '设置与连接', icon: PaletteIcon, run: () => setAppearanceOpen(true) },
{ id: 'diagnostics', label: '运行诊断', description: '检查连接、终端与最近错误', group: '设置与连接', icon: Activity, run: () => void openDiagnostics() },
{ id: 'companion', label: '手机连接', description: '在手机上查看和接续电脑任务', group: '设置与连接', icon: Link2, run: () => setCompanionOpen(true) },
...(desktop ? [{ id: 'desktop', label: '桌面宿主', description: '查看窗口、后台任务与本地宿主', group: '设置与连接', icon: SquareTerminal, run: () => setDesktopOpen(true) }] : []),
@@ -600,7 +604,7 @@ export default function App() {
</aside>
<main className="task-pane">
<header className="work-header"><div className="work-title">{(!sidebarOpen || mobile) && <IconButton label="展开项目栏" onClick={() => setSidebarOpen(true)}><PanelLeftOpen size={18} /></IconButton>}<div><span className="header-breadcrumb">{selectedProject?.name || '工作空间'} <ChevronRight size={12} /> 工作区</span><h1>{session?.title || '新任务'}</h1></div></div>
<div className="model-launch"><button className="header-tools" onClick={() => setToolsOpen(true)} aria-label="打开工具箱"><Settings2 size={16} /><span>工具箱</span><kbd>⌃ K</kbd></button><button className="inspector-toggle" aria-label="文件与成果" aria-pressed={inspectorOpen && (!narrow || wide)} onClick={() => { if (inspectorOpen && (!narrow || wide)) { setInspectorOpen(false); setWide(false); } else showInspector(tab); }}><FileCode2 size={16} /><span>文件与成果</span></button></div>
<div className="model-launch"><IconButton label="外观" onClick={() => setAppearanceOpen(true)}><PaletteIcon size={17} /></IconButton><button className="header-tools" onClick={() => setToolsOpen(true)} aria-label="打开工具箱"><Settings2 size={16} /><span>工具箱</span><kbd>⌃ K</kbd></button><button className="inspector-toggle" aria-label="文件与成果" aria-pressed={inspectorOpen && (!narrow || wide)} onClick={() => { if (inspectorOpen && (!narrow || wide)) { setInspectorOpen(false); setWide(false); } else showInspector(tab); }}><FileCode2 size={16} /><span>文件与成果</span></button></div>
</header>
<div className="task-toolbar"><span className="task-local"><span className="local-dot" />本地工作空间</span>{session ? <Status value={session.status} /> : <span className="subtle">准备就绪</span>}<div className="toolbar-actions">
<button className="text-button" aria-label="查看任务记录" onClick={() => showInspector('task')}><ClipboardCheck size={14} />任务记录</button>
@@ -656,6 +660,7 @@ export default function App() {
<div className="inspector-footer"><ShieldCheck size={13} /><span>{tab === 'changes' ? '应用前会核对文件基线' : tab === 'trace' ? '中断调用保留待核实状态' : tab === 'task' ? '任务目标、检查与结果持久保存' : tab === 'index' ? '结果绑定当前项目及文件 SHA256' : '读取范围限定在当前项目'}</span></div>
</aside>
{toolsOpen && <Modal title="工具箱" description="项目的上下文、能力和连接,都在这里。" onClose={() => setToolsOpen(false)}><WorkbenchTools actions={actions} onClose={() => setToolsOpen(false)} /></Modal>}
{appearanceOpen && <Modal title="外观" description="选择适合你的工作台配色,切换后立即生效。" onClose={() => setAppearanceOpen(false)}><AppearancePanel /></Modal>}
{installationOpen && <Modal title="版本与更新" description="核对本机版本、真实更新阶段与原始结果。" onClose={() => setInstallationOpen(false)}><InstallationStatus /></Modal>}
{projectOpen && <Modal title="打开项目" description="选择这台电脑上的项目文件夹,或输入完整路径。" onClose={() => { if (!projectBusy) { setProjectOpen(false); setDirectoryPickerOpen(false); setProjectError(''); } }}><form onSubmit={event => { event.preventDefault(); if (!directoryPickerOpen) void openProject(); }}><label className="form-field">项目文件夹<input autoFocus value={projectInput} disabled={projectBusy} onChange={event => { setProjectInput(event.target.value); setProjectError(''); }} placeholder="C:\Projects\my-app" aria-label="项目文件夹路径" /></label>{projectError && <p className="local-files-error" role="alert">{projectError}</p>}{directoryPickerOpen && <ProjectDirectoryPicker initialPath={projectInput.trim()} onChoose={value => { setProjectInput(value); setProjectError(''); setDirectoryPickerOpen(false); }} onCancel={() => setDirectoryPickerOpen(false)} />}<div className="modal-actions"><button type="button" className="button secondary" disabled={pickingProject || projectBusy} onClick={() => desktop ? void pickDesktopProject() : setDirectoryPickerOpen(value => !value)}><FolderOpen size={15} />选择文件夹</button>{exampleId && <button type="button" className="button secondary" disabled={projectBusy} onClick={() => { chooseProject(exampleId); setProjectOpen(false); setDirectoryPickerOpen(false); }}>打开示例项目</button>}<button type="submit" className="button primary" disabled={!projectInput.trim() || projectBusy || directoryPickerOpen}>{projectBusy ? <LoaderCircle className="spin" size={15} /> : <FolderOpen size={15} />}{projectBusy ? '正在打开…' : '打开项目'}</button></div></form></Modal>}
{companionOpen && <Modal title="手机连接" description="指定项目和权限,连接到同一个Windows执行宿主。" onClose={() => setCompanionOpen(false)} wide><CompanionPanel projects={projects} selectedProjectId={selectedProject?.id ?? ''} /></Modal>}
+23
View File
@@ -0,0 +1,23 @@
import { Check } from 'lucide-react';
import type { CSSProperties } from 'react';
import { choosePalette, useAppearance } from './appearance';
import './appearance.css';
const choices = [
{ id: 'green', name: '深青绿', description: '沉静的绿,配合雾灰与松墨。', accent: '#176b5b', canvas: '#f3f6f4', selected: '#dfede4', ink: '#28382f' },
{ id: 'blue', name: '雾蓝', description: '通透的雾蓝白,配合靛蓝与深蓝灰。', accent: '#4f6ef7', canvas: '#f6f8fc', selected: '#edf1ff', ink: '#24334b' },
] as const;
export function AppearancePanel() {
const { palette, saved } = useAppearance();
return <div className="appearance-panel">
<fieldset className="appearance-choices"><legend>工作台配色</legend>{choices.map(choice => <label key={choice.id} className={'appearance-choice ' + (palette === choice.id ? 'selected' : '')} style={{ '--preview-accent': choice.accent, '--preview-canvas': choice.canvas, '--preview-selected': choice.selected, '--preview-ink': choice.ink } as CSSProperties}>
<input type="radio" name="orven-palette" aria-label={choice.name} value={choice.id} checked={palette === choice.id} data-autofocus={palette === choice.id ? true : undefined} onChange={() => choosePalette(choice.id)} />
<span className="appearance-preview" aria-hidden="true"><span className="appearance-preview-nav"><i /><i /><i /></span><span className="appearance-preview-work"><i /><i /><span /><b /></span></span>
<span className="appearance-choice-title"><strong>{choice.name}</strong><span className="appearance-selected" aria-hidden="true">{palette === choice.id && <Check size={14} />}</span></span>
<span className="appearance-choice-description">{choice.description}</span>
<span className="appearance-swatches" aria-hidden="true"><i /><i /><i /></span>
</label>)}</fieldset>
<p className="appearance-note" role="status">{saved ? '已自动保存。工作台、文件与成果区、工具面板会一起切换。' : '本次配色已切换,但浏览器暂时无法保存;刷新后可能恢复默认配色。'}</p>
</div>;
}
+43
View File
@@ -0,0 +1,43 @@
.modal-backdrop:has(.appearance-panel) { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgb(var(--orven-shadow-rgb) / 33%); backdrop-filter: blur(2px); }
.modal:has(.appearance-panel) { box-sizing: border-box; width: min(620px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 26px; background: #fff; border: 1px solid var(--orven-border); border-radius: 14px; color: var(--orven-text); box-shadow: 0 24px 100px rgb(var(--orven-shadow-rgb) / 19%); }
.modal:has(.appearance-panel) .modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal:has(.appearance-panel) .modal-heading h2 { margin: 0; color: var(--orven-ink); font-size: 20px; font-weight: 600; line-height: 1.4; }
.modal:has(.appearance-panel) .modal-heading p { margin: 8px 0 0; color: var(--orven-muted); font-size: 12px; line-height: 1.8; }
.modal:has(.appearance-panel) .modal-heading .icon-button { display: grid; place-items: center; min-height: 32px; width: 32px; height: 32px; padding: 0; background: transparent; border: 0; border-radius: 6px; color: var(--orven-text); }
.appearance-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 24px 0 0; border: 0; min-width: 0; }
.appearance-choices legend { padding: 0 0 14px; color: var(--orven-heading); font-size: 13px; font-weight: 600; }
.appearance-choice { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 11px; border: 1px solid var(--orven-border); border-radius: 10px; cursor: pointer; background: #fff; }
.appearance-choice.selected { border-color: var(--orven-accent); box-shadow: 0 0 0 1px var(--orven-accent); }
.appearance-choice:hover { border-color: var(--orven-border-hover); }
.appearance-choice.selected:hover { border-color: var(--orven-accent); }
.appearance-choice:focus-within { outline: 2px solid var(--orven-accent); outline-offset: 4px; }
.appearance-choice > input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.appearance-preview { display: flex; height: 126px; border: 1px solid var(--orven-border-soft); border-radius: 6px; overflow: hidden; background: #fff; }
.appearance-preview-nav { display: flex; flex-direction: column; gap: 9px; width: 28%; padding: 15px 8px; background: var(--preview-canvas); }
.appearance-preview-nav i { display: block; height: 4px; width: 75%; background: var(--preview-ink); opacity: .25; border-radius: 2px; }
.appearance-preview-nav i:first-child { width: 50%; height: 6px; margin-bottom: 9px; background: var(--preview-accent); opacity: 1; }
.appearance-preview-nav i:nth-child(2) { width: 100%; height: 12px; margin: -4px 0; background: var(--preview-selected); opacity: 1; }
.appearance-preview-work { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--preview-canvas); padding: 22px 14px 12px; border-left: 1px solid #ffffff; }
.appearance-preview-work > i { width: 58%; height: 7px; background: var(--preview-ink); opacity: .9; border-radius: 2px; }
.appearance-preview-work > i:nth-child(2) { width: 80%; height: 4px; opacity: .25; }
.appearance-preview-work > span { display: block; height: 24px; width: 100%; margin-top: 1px; background: #fff; border-radius: 4px; }
.appearance-preview-work > b { display: block; width: 19px; height: 13px; margin-top: auto; align-self: flex-end; background: var(--preview-accent); border-radius: 3px; }
.appearance-choice-title { display: flex; align-items: center; justify-content: space-between; margin: 15px 2px 0; color: var(--orven-ink); font-size: 14px; }
.appearance-choice-title strong { font-weight: 600; }
.appearance-selected { display: grid; place-items: center; height: 20px; width: 20px; border: 1px solid var(--orven-border); border-radius: 50%; }
.selected .appearance-selected { color: #fff; background: var(--orven-action); border-color: var(--orven-action); }
.appearance-choice-description { margin: 7px 2px 0; color: var(--orven-muted); font-size: 11px; line-height: 1.8; }
.appearance-swatches { display: flex; gap: 5px; margin: 13px 2px 3px; }
.appearance-swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #24334b14; background: var(--preview-accent); }
.appearance-swatches i:nth-child(2) { background: var(--preview-ink); }
.appearance-swatches i:nth-child(3) { background: var(--preview-canvas); }
.appearance-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--orven-border-soft); color: var(--orven-muted); font-size: 11px; line-height: 1.9; }
@media (max-width: 420px) {
.modal-backdrop:has(.appearance-panel) { padding: 12px; }
.modal:has(.appearance-panel) { padding: 20px 18px; max-height: calc(100dvh - 24px); }
.appearance-choices { gap: 11px; }
.appearance-choice { padding: 8px; }
.appearance-preview { height: 103px; }
.appearance-preview-work { padding: 18px 9px 10px; }
.appearance-choice-description { min-height: 39px; font-size: 10px; }
}
+48
View File
@@ -0,0 +1,48 @@
import { useSyncExternalStore } from 'react';
export type Palette = 'green' | 'blue';
const storageKey = 'orven-palette';
const palettes = { green: { color: '#176b5b', icon: '/favicon.svg' }, blue: { color: '#4f6ef7', icon: '/brand/orven-icon-blue.svg' } };
let snapshot: { palette: Palette; saved: boolean } = { palette: 'green', saved: true };
let initialized = false;
const listeners = new Set<() => void>();
const isPalette = (value: unknown): value is Palette => value === 'green' || value === 'blue';
function apply(palette: Palette, saved = true) {
document.documentElement.dataset.palette = palette;
document.querySelector('meta[name="theme-color"]')?.setAttribute('content', palettes[palette].color);
// The companion keeps its existing gateway-allowed icon route.
if (!document.getElementById('mobile-root')) document.querySelector('link[rel="icon"]')?.setAttribute('href', palettes[palette].icon);
snapshot = { palette, saved };
listeners.forEach(listener => listener());
}
export function choosePalette(palette: Palette) {
let saved = true;
try { localStorage.setItem(storageKey, palette); } catch { saved = false; }
apply(palette, saved);
}
export function initializeAppearance() {
if (initialized) return;
initialized = true;
let palette: Palette = 'green';
try { const stored = localStorage.getItem(storageKey); if (isPalette(stored)) palette = stored; } catch { /* The current page can still use either palette. */ }
const url = new URL(location.href), requested = url.searchParams.get('palette');
if (isPalette(requested)) {
choosePalette(requested);
// A preview link selects once; future reloads honor the user's latest choice.
url.searchParams.delete('palette');
history.replaceState(history.state, '', url.pathname + url.search + url.hash);
} else apply(palette);
window.addEventListener('storage', event => {
if (event.storageArea === localStorage && (event.key === storageKey || event.key === null)) {
apply(isPalette(event.newValue) ? event.newValue : 'green');
}
});
}
const subscribe = (listener: () => void) => { listeners.add(listener); return () => { listeners.delete(listener); }; };
export function useAppearance() {
return useSyncExternalStore(subscribe, () => snapshot);
}
+3
View File
@@ -1,6 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { initializeAppearance } from './appearance';
import './styles.css';
import './orven-palettes.css';
import './orven.css';
initializeAppearance();
ReactDOM.createRoot(document.getElementById('root')!).render(<React.StrictMode><App /></React.StrictMode>);
+6 -1
View File
@@ -7,6 +7,9 @@ import { mobileApi, MobileError, verifiedText, verifyDigest } from './api';
import { MobileInputImage } from './MobileInputImage';
import './file-results.css';
import { BRAND, OrvenMark } from '../brand';
import { AppearancePanel } from '../AppearancePanel';
import { Modal } from '../components';
import { Palette as PaletteIcon } from 'lucide-react';
const stateLabel = (state: string) => ({ idle: '未开始', waiting: '等待审批', validating: '校验中', queued: '排队中', executing: '执行中', error: '错误', running: '执行中', awaiting_approval: '等待审批', stopping: '正在停止', completed: '已完成', needs_review: '待审查', failed: '失败', interrupted: '已中断', cancelled: '已停止', paused: '已暂停', unknown: '需核对', completed_with_changes: '待审查', passed: '通过', pending: '待处理', applied: '已应用', denied: '已拒绝', approved: '已批准', conflict: '有冲突', unverified: '需核对', stale: '已变化' } as Record<string, string>)[state] ?? state;
const time = (value: string) => new Date(value).toLocaleString('zh-CN', { month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit' });
@@ -14,6 +17,7 @@ type Me = { device: CompanionDevice; gatewayId: string; operations: { requestId:
type Decision = { requestId: string; kind: 'approve' | 'stop'; task: MobileTask; approval?: MobileTask['approvals'][number]; allow?: boolean };
export function MobileApp({ initialToken }: { initialToken: string }) {
const [appearanceOpen, setAppearanceOpen] = useState(false);
const [me, setMe] = useState<Me | null>(null), [pairToken, setPairToken] = useState(initialToken), [name, setName] = useState('iPhone');
const [projects, setProjects] = useState<{ id: string; name: string }[]>([]), [sessions, setSessions] = useState<MobileBrief[]>([]), [project, setProject] = useState('');
const [selected, setSelected] = useState(''), [task, setTask] = useState<MobileTask | null>(null), [tab, setTab] = useState('progress');
@@ -109,7 +113,8 @@ export function MobileApp({ initialToken }: { initialToken: string }) {
const projectName = (id: string) => projects.find(value => value.id === id)?.name ?? '原项目';
const selectedTask = task?.id === selected ? task : null;
return <div className="mobile-app">
<header className="mobile-header"><span className="mobile-mark"><OrvenMark size={24} /></span><div><strong>{BRAND.name}</strong><span>手机伴随端 · 接续你的工作</span></div><button aria-label="刷新任务" disabled={!!busy} onClick={() => void refresh()}><RefreshCw size={19} /></button></header>
<header className="mobile-header"><span className="mobile-mark"><OrvenMark size={24} /></span><div><strong>{BRAND.name}</strong><span>手机伴随端 · 接续你的工作</span></div><button type="button" aria-label="外观" onClick={() => setAppearanceOpen(true)}><PaletteIcon size={19} /></button><button aria-label="刷新任务" disabled={!!busy} onClick={() => void refresh()}><RefreshCw size={19} /></button></header>
{appearanceOpen && <Modal title="外观" description="选择适合你的工作台配色,切换后立即生效。" onClose={() => setAppearanceOpen(false)}><AppearancePanel /></Modal>}
{me && <div className={'mobile-connection ' + (fresh ? '' : 'disconnected')}>{fresh ? <Wifi size={14} /> : <WifiOff size={14} />}<span>{fresh ? '已同步 · ' + time(lastSync) : '连接中断 · 当前内容可能已过期'}</span><span>{me.device.permissions.approve ? '可审批' : '观察'}</span></div>}
{error && <div className="mobile-error" role="alert"><strong>{fresh ? '操作未完成' : connectionRequired ? '需要连接' : '连接待恢复'}</strong><p>{error}</p>{me && <button onClick={() => void refresh()} disabled={!!busy}>重新同步</button>}</div>}
{me?.operations?.some(value => value.status === 'unknown') && <div className="mobile-unknown"><strong>手机操作回执需要核对</strong><p>有原审批或停止操作没有完整回执,请在电脑核对;手机不会自动重放。</p>{me.operations.filter(value => value.status === 'unknown').map(value => <code key={value.requestId}>Task {value.taskId} · {value.action === 'stop' ? '停止' : '审批'}</code>)}</div>}
+3
View File
@@ -1,9 +1,12 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { MobileApp } from './MobileApp';
import { initializeAppearance } from '../appearance';
import './mobile.css';
import '../orven-palettes.css';
import './orven-mobile.css';
initializeAppearance();
const fragment = new URLSearchParams(location.hash.slice(1));
const token = fragment.get('pair') ?? '';
if (fragment.has('pair')) history.replaceState(null, '', location.pathname);
+16 -16
View File
@@ -1,20 +1,20 @@
:root { color: #28382f; background: #f3f6f4; --ink: #28382f; --muted: #5f7066; --line: #e8f1eb; --green: #277859; }
button, input, select { border-color: #d8e4dc; border-radius: 8px; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline-color: #176b5b; }
:root { color: var(--orven-ink); background: var(--orven-navigation); --ink: var(--orven-ink); --muted: var(--orven-muted); --line: var(--orven-border-soft); --green: #277859; }
button, input, select { border-color: var(--orven-border-strong); border-radius: 8px; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline-color: var(--orven-accent); }
.mobile-app { background: #fff; }
.mobile-header { background: #fff; color: #28382f; border-bottom: 1px solid #e8f1eb; }
.mobile-mark { border: 0; background: #f5f8f6; color: #176b5b; border-radius: 10px; }
.mobile-header { background: #fff; color: var(--orven-ink); border-bottom: 1px solid var(--orven-border-soft); }
.mobile-mark { border: 0; background: var(--orven-surface); color: var(--orven-accent); border-radius: 10px; }
.mobile-header strong { font-size: 24px; letter-spacing: -.6px; }
.mobile-header div > span { color: #5f7066; font-size: 10px; }
.mobile-header button { color: #5f7066; }
.mobile-primary { background: #176b5b; border-color: #176b5b; border-radius: 8px; }
.mobile-pair-heading > svg { color: #5f7066; }
.mobile-pair-heading h1 { color: #425a4b; font-weight: 600; }
.mobile-pair-heading p, .mobile-pair-help p { color: #5f7066; }
.mobile-pair-help { background: #f8faf9; border-color: #e8f1eb; color: #5f7066; border-radius: 10px; }
.mobile-projects, .mobile-session, .mobile-task-title, .mobile-document { border-color: #e8f1eb; }
.mobile-tabs { background: #fbfcfb; border-color: #dfeae3; }
.mobile-tabs button.active, .mobile-tabs button[aria-selected="true"] { color: #176b5b; border-color: #176b5b; background: #eff5f1; }
.mobile-header div > span { color: var(--orven-muted); font-size: 10px; }
.mobile-header button { color: var(--orven-muted); }
.mobile-primary { color: #fff; background: var(--orven-action); border-color: var(--orven-action); border-radius: 8px; }
.mobile-pair-heading > svg { color: var(--orven-muted); }
.mobile-pair-heading h1 { color: var(--orven-heading); font-weight: 600; }
.mobile-pair-heading p, .mobile-pair-help p { color: var(--orven-muted); }
.mobile-pair-help { background: var(--orven-canvas); border-color: var(--orven-border-soft); color: var(--orven-muted); border-radius: 10px; }
.mobile-projects, .mobile-session, .mobile-task-title, .mobile-document { border-color: var(--orven-border-soft); }
.mobile-tabs { background: var(--orven-surface-faint); border-color: var(--orven-border); }
.mobile-tabs button.active, .mobile-tabs button[aria-selected="true"], .mobile-tabs button[aria-current="page"] { color: var(--orven-accent-ink); border-color: var(--orven-accent); background: var(--orven-hover); }
.mobile-error { color: #8b4255; background: #fff4f7; border-color: #eed6e1; }
.mobile-error button { color: #8b4255; border-color: #dcbac9; }
.mobile-stream { background: #f8faf9; border-left-color: #89ad99; }
.mobile-stream { background: var(--orven-canvas); border-left-color: var(--orven-stream-border); }
+76
View File
@@ -0,0 +1,76 @@
/* Shared by the workbench and companion app. Status colors stay semantic. */
:root {
color-scheme: light;
--orven-accent: #176b5b;
--orven-action: #176b5b;
--orven-accent-ink: #176b5b;
--orven-accent-hover: #105544;
--orven-accent-soft: #e7f2eb;
--orven-ink: #28382f;
--orven-heading: #425a4b;
--orven-text: #52635a;
--orven-muted: #5f7066;
--orven-canvas: #f8faf9;
--orven-workspace: #ffffff;
--orven-navigation: #f3f6f4;
--orven-surface: #f5f8f6;
--orven-surface-faint: #fbfcfb;
--orven-hover: #eff5f1;
--orven-selected: #dfede4;
--orven-selection: #d2e8dc;
--orven-line: #dce5df;
--orven-border: #dfeae3;
--orven-border-soft: #e8f1eb;
--orven-border-strong: #d8e4dc;
--orven-border-hover: #b6cec0;
--orven-scrollbar: #d0ded5;
--orven-focus-border: #81ab98;
--orven-focus-ring: #81ab9815;
--orven-stream-border: #94b3a2;
--orven-handle: #6f9f89;
--orven-unset: #97aaa0;
--orven-icon-muted: #7c9384;
--orven-message: #f1f6f3;
--orven-message-border: #e1eae4;
--orven-toast: #304a3c;
--orven-toast-border: #506e5c;
--orven-toast-text: #e3f0e8;
--orven-shadow-rgb: 24 46 34;
}
:root[data-palette="blue"] {
--orven-accent: #4f6ef7;
--orven-action: #4563e6;
--orven-accent-ink: #3d58cd;
--orven-accent-hover: #354fc5;
--orven-accent-soft: #edf1ff;
--orven-ink: #24334b;
--orven-heading: #3c506f;
--orven-text: #52647f;
--orven-muted: #62718a;
--orven-canvas: #f6f8fc;
--orven-workspace: #f6f8fc;
--orven-navigation: #f8faff;
--orven-surface: #f3f6fc;
--orven-surface-faint: #fafbfe;
--orven-hover: #f0f3fc;
--orven-selected: #edf1ff;
--orven-selection: #dfe6ff;
--orven-line: #dfe6f0;
--orven-border: #dfe6f0;
--orven-border-soft: #e6ebf4;
--orven-border-strong: #d6dff0;
--orven-border-hover: #b9c8ee;
--orven-scrollbar: #cdd6e5;
--orven-focus-border: #879cf2;
--orven-focus-ring: #4f6ef719;
--orven-stream-border: #a2b3ee;
--orven-handle: #8298dc;
--orven-unset: #93a0b8;
--orven-icon-muted: #7c8faa;
--orven-message: #edf1ff;
--orven-message-border: #dfe6ff;
--orven-toast: #2a3c5c;
--orven-toast-border: #4b6086;
--orven-toast-text: #eff3ff;
--orven-shadow-rgb: 28 46 78;
}
+250 -250
View File
@@ -2,37 +2,37 @@
:root {
font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
font-size: 14px;
color: #28382f;
background: #f8faf9;
color: var(--orven-ink);
background: var(--orven-canvas);
font-synthesis: none;
--ink: #24342b;
--muted: #5f7066;
--line: #dce5df;
--ink: var(--orven-ink);
--muted: var(--orven-muted);
--line: var(--orven-line);
--paper: #ffffff;
--teal: #176b5b;
--blue: #176b5b;
--accent: #176b5b;
--accent-soft: #e7f2eb;
--surface: #f5f8f6;
--teal: var(--orven-accent);
--blue: var(--orven-accent);
--accent: var(--orven-accent);
--accent-soft: var(--orven-accent-soft);
--surface: var(--orven-surface);
--success: #277859;
--danger: #ad3f48;
}
::selection { background: #d2e8dc; color: #28382f; }
::selection { background: var(--orven-selection); color: var(--orven-ink); }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [role="separator"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .48; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: #d0ded5 transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--orven-scrollbar) transparent; }
.icon-button { color: var(--muted); width: 32px; height: 32px; border-radius: 7px; }
.icon-button:hover { background: #eff5f1; color: var(--ink); }
.icon-button:hover { background: var(--orven-hover); color: var(--ink); }
.button { min-height: 36px; height: auto; padding: 8px 13px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.primary:hover:not(:disabled) { background: #105544; }
.button.secondary { background: #fff; border: 1px solid #dfeae3; color: #52635a; }
.button.secondary:hover:not(:disabled) { background: #f8faf9; border-color: #b6cec0; }
.text-button { color: #52635a; border-radius: 6px; font-size: 12px; }
.text-button:hover { background: #eff5f1; color: var(--accent); }
.button.primary { color: #fff; background: var(--orven-action); border-color: var(--orven-action); }
.button.primary:hover:not(:disabled) { background: var(--orven-accent-hover); }
.button.secondary { background: #fff; border: 1px solid var(--orven-border); color: var(--orven-text); }
.button.secondary:hover:not(:disabled) { background: var(--orven-canvas); border-color: var(--orven-border-hover); }
.text-button { color: var(--orven-text); border-radius: 6px; font-size: 12px; }
.text-button:hover { background: var(--orven-hover); color: var(--orven-accent-ink); }
/* Project context stays in a continuous navigation surface. */
.orven-workbench { grid-template-columns: 242px minmax(320px, 1fr) 430px; max-width: none; background: #fff; }
@@ -41,293 +41,293 @@ button { touch-action: manipulation; }
.orven-workbench.sidebar-hidden.inspector-closed { grid-template-columns: 0 minmax(0, 1fr) 0; }
.orven-workbench.inspector-wide { grid-template-columns: 242px minmax(310px, 1fr) min(48vw, 760px); }
.orven-workbench.inspector-closed .inspector { display: none; }
.project-sidebar { background: #f3f6f4; color: #52635a; border-color: var(--line); }
.project-sidebar { background: var(--orven-navigation); color: var(--orven-text); border-color: var(--line); }
.brand { height: 84px; min-height: 84px; padding: 0 20px; border: 0; gap: 10px; }
.brand-mark { width: 35px; height: 39px; background: transparent; box-shadow: none; color: var(--accent); border: 0; }
.brand strong { font: 650 26px/1.05 "Segoe UI Variable", "Segoe UI", sans-serif; letter-spacing: -1.1px; color: #28382f; }
.brand div > span { color: #52635a; font-size: 10px; letter-spacing: .1px; margin-top: 6px; }
.brand > .icon-button { margin-left: auto; width: 28px; color: #52635a; }
.project-selector { margin: 4px 14px 0; padding: 12px 12px 14px; border: 1px solid #dfeae3; background: #fbfcfb; border-radius: 9px; }
.field-eyebrow { color: #52635a; font-size: 11px; font-weight: 500; letter-spacing: .1px; }
.project-select-row { color: #52635a; gap: 8px; margin: 7px 0 4px; }
.project-select-row select { color: #28382f; font-size: 13px; font-weight: 600; padding: 3px 0; }
.project-select-row select option { color: #28382f; background: white; }
.project-root { color: #52635a; font-size: 10px; line-height: 1.7; }
.example-tag { display: block; font-size: 10px; color: #52635a; line-height: 1.7; margin-top: 7px; }
.project-sidebar > .new-task-button { flex-shrink: 0; width: calc(100% - 28px); margin: 18px 14px 16px; height: 40px; background: #fff; color: #52635a; border: 1px solid #d8e4dc; border-radius: 8px; font-size: 13px; font-weight: 600; padding: 0 12px; box-shadow: 0 1px 2px #243e2e04; }
.new-task-button > svg:last-child { margin-left: auto; color: #52635a; transform: rotate(45deg); }
.new-task-button:hover { background: #f5f8f6; border-color: #c5d6ca; }
.sidebar-view-tabs { display: flex; align-items: center; margin: 0 16px 0; border-bottom: 1px solid #dfeae3; flex-shrink: 0; gap: 17px; }
.sidebar-view-tabs button { display: flex; align-items: center; gap: 6px; min-height: 37px; border-bottom: 2px solid transparent; color: #52635a; padding: 0 2px; font-size: 12px; }
.sidebar-view-tabs button[aria-selected="true"] { border-color: var(--accent); color: #52635a; font-weight: 600; }
.sidebar-view-tabs button > span { color: #52635a; background: #e8f1eb; border-radius: 4px; font-size: 10px; min-width: 18px; padding: 1px 4px; text-align: center; }
.brand strong { font: 650 26px/1.05 "Segoe UI Variable", "Segoe UI", sans-serif; letter-spacing: -1.1px; color: var(--orven-ink); }
.brand div > span { color: var(--orven-text); font-size: 10px; letter-spacing: .1px; margin-top: 6px; }
.brand > .icon-button { margin-left: auto; width: 28px; color: var(--orven-text); }
.project-selector { margin: 4px 14px 0; padding: 12px 12px 14px; border: 1px solid var(--orven-border); background: var(--orven-surface-faint); border-radius: 9px; }
.field-eyebrow { color: var(--orven-text); font-size: 11px; font-weight: 500; letter-spacing: .1px; }
.project-select-row { color: var(--orven-text); gap: 8px; margin: 7px 0 4px; }
.project-select-row select { color: var(--orven-ink); font-size: 13px; font-weight: 600; padding: 3px 0; }
.project-select-row select option { color: var(--orven-ink); background: white; }
.project-root { color: var(--orven-text); font-size: 10px; line-height: 1.7; }
.example-tag { display: block; font-size: 10px; color: var(--orven-text); line-height: 1.7; margin-top: 7px; }
.project-sidebar > .new-task-button { flex-shrink: 0; width: calc(100% - 28px); margin: 18px 14px 16px; height: 40px; background: #fff; color: var(--orven-text); border: 1px solid var(--orven-border-strong); border-radius: 8px; font-size: 13px; font-weight: 600; padding: 0 12px; box-shadow: 0 1px 2px rgb(var(--orven-shadow-rgb) / 2%); }
.new-task-button > svg:last-child { margin-left: auto; color: var(--orven-text); transform: rotate(45deg); }
.new-task-button:hover { background: var(--orven-surface); border-color: var(--orven-border-hover); }
.sidebar-view-tabs { display: flex; align-items: center; margin: 0 16px 0; border-bottom: 1px solid var(--orven-border); flex-shrink: 0; gap: 17px; }
.sidebar-view-tabs button { display: flex; align-items: center; gap: 6px; min-height: 37px; border-bottom: 2px solid transparent; color: var(--orven-text); padding: 0 2px; font-size: 12px; }
.sidebar-view-tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--orven-accent-ink); font-weight: 600; }
.sidebar-view-tabs button > span { color: var(--orven-text); background: var(--orven-border-soft); border-radius: 4px; font-size: 10px; min-width: 18px; padding: 1px 4px; text-align: center; }
.sidebar-section { padding: 16px 12px; }
.sessions-section { flex: 1; display: flex; flex-direction: column; min-height: 60px; border: 0; overflow: hidden; }
.section-label { font-weight: 500; color: #52635a; font-size: 11px; margin: 0 4px 7px; }
.section-label { font-weight: 500; color: var(--orven-text); font-size: 11px; margin: 0 4px 7px; }
.session-list { margin: 0; max-height: none; min-height: 0; overflow: auto; flex: 1; }
.session-item { border-radius: 6px; margin: 2px 0; }
.session-select { padding: 11px 10px; font-size: 12px; color: #52635a; min-height: 39px; }
.session-item.selected { background: #dfede4; }
.session-item.selected .session-select { color: #52635a; }
.session-item:hover { background: #eff5f1; }
.session-select > svg { color: #52635a; }
.session-select > b { color: #52635a; background: #fff; }
.sidebar-empty { padding: 27px 6px; text-align: center; color: #52635a; }
.sidebar-empty > svg { margin-bottom: 12px; color: #52635a; }
.sidebar-empty strong { display: block; color: #52635a; font-size: 12px; font-weight: 500; }
.sidebar-empty p { margin-top: 8px; color: #52635a; font-size: 11px; line-height: 1.8; }
.session-select { padding: 11px 10px; font-size: 12px; color: var(--orven-text); min-height: 39px; }
.session-item.selected { background: var(--orven-selected); }
.session-item.selected .session-select { color: var(--orven-text); }
.session-item:hover { background: var(--orven-hover); }
.session-select > svg { color: var(--orven-text); }
.session-select > b { color: var(--orven-text); background: #fff; }
.sidebar-empty { padding: 27px 6px; text-align: center; color: var(--orven-text); }
.sidebar-empty > svg { margin-bottom: 12px; color: var(--orven-text); }
.sidebar-empty strong { display: block; color: var(--orven-text); font-size: 12px; font-weight: 500; }
.sidebar-empty p { margin-top: 8px; color: var(--orven-text); font-size: 11px; line-height: 1.8; }
.file-section { flex: 1; padding-top: 13px; }
.file-filter { border: 1px solid #dfeae3; background: #fbfcfb; height: 33px; border-radius: 6px; color: #52635a; margin: 0 3px 9px; }
.file-filter input { font-size: 12px; color: #28382f; }
.file-filter input::placeholder, .file-filter kbd { color: #52635a; }
.tree-row { height: 32px; color: #52635a; font-size: 12px; }
.tree-row svg { color: #52635a; }
.tree-row:hover { background: #eff5f1; }
.tree-row.selected { background: #dfede4; color: #52635a; }
.tree-row.selected svg { color: #52635a; }
.sidebar-footer { padding: 10px 12px 12px; border-color: #dfeae3; background: #f3f6f4; }
.sidebar-footer > button { min-height: 38px; color: #52635a; font-size: 12px; border-radius: 6px; padding: 9px 9px; }
.sidebar-footer > button:hover { background: #e8f1eb; }
.sidebar-footer > button > svg:last-child { color: #52635a; }
.sidebar-footer > button > kbd { margin-left: auto; color: #52635a; font-size: 10px; }
.file-filter { border: 1px solid var(--orven-border); background: var(--orven-surface-faint); height: 33px; border-radius: 6px; color: var(--orven-text); margin: 0 3px 9px; }
.file-filter input { font-size: 12px; color: var(--orven-ink); }
.file-filter input::placeholder, .file-filter kbd { color: var(--orven-text); }
.tree-row { height: 32px; color: var(--orven-text); font-size: 12px; }
.tree-row svg { color: var(--orven-text); }
.tree-row:hover { background: var(--orven-hover); }
.tree-row.selected { background: var(--orven-selected); color: var(--orven-text); }
.tree-row.selected svg { color: var(--orven-text); }
.sidebar-footer { padding: 10px 12px 12px; border-color: var(--orven-border); background: var(--orven-navigation); }
.sidebar-footer > button { min-height: 38px; color: var(--orven-text); font-size: 12px; border-radius: 6px; padding: 9px 9px; }
.sidebar-footer > button:hover { background: var(--orven-border-soft); }
.sidebar-footer > button > svg:last-child { color: var(--orven-text); }
.sidebar-footer > button > kbd { margin-left: auto; color: var(--orven-text); font-size: 10px; }
.sidebar-footer > .model-sidebar-entry { margin-top: 4px; padding: 11px 9px; }
.model-sidebar-entry small { color: #52635a; margin-top: 3px; font-size: 10px; }
.connection { border-top: 1px solid #dfeae3; margin: 7px 5px 0; padding: 13px 0 1px; color: #52635a; font-size: 10px; }
.model-sidebar-entry small { color: var(--orven-text); margin-top: 3px; font-size: 10px; }
.connection { border-top: 1px solid var(--orven-border); margin: 7px 5px 0; padding: 13px 0 1px; color: var(--orven-text); font-size: 10px; }
.connection.connected > span { background: #3e8c6d; }
.version-entry { color: #52635a; font-size: 10px; }
.version-entry { color: var(--orven-text); font-size: 10px; }
/* The conversation is the default work surface; results open alongside it. */
.task-pane { background: #fff; min-height: 0; container-type: inline-size; }
.work-header { min-height: 76px; height: 76px; padding: 0 32px; gap: 18px; border-color: #eff5f1; }
.task-pane { background: var(--orven-workspace); min-height: 0; container-type: inline-size; }
.work-header { min-height: 76px; height: 76px; padding: 0 32px; gap: 18px; border-color: var(--orven-border-soft); background: #fff; }
.work-title { flex: 1; gap: 12px; }
.work-title > div { min-width: 0; }
.header-breadcrumb { color: #52635a; font-size: 11px; margin-bottom: 6px; }
.work-title h1 { font: 600 15px/1.4 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif; color: #28382f; max-width: 570px; }
.header-breadcrumb { color: var(--orven-text); font-size: 11px; margin-bottom: 6px; }
.work-title h1 { font: 600 15px/1.4 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--orven-ink); max-width: 570px; }
.model-launch { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-tools, .inspector-toggle { display: flex; gap: 7px; align-items: center; min-height: 34px; border-radius: 7px; padding: 7px 10px; color: #52635a; font-size: 12px; white-space: nowrap; }
.header-tools:hover, .inspector-toggle:hover { background: #f5f8f6; }
.header-tools kbd { margin-left: 8px; color: #52635a; font-size: 10px; }
.inspector-toggle { border: 1px solid #dfeae3; color: #52635a; }
.inspector-toggle[aria-pressed="true"] { color: var(--accent); background: #f5f8f6; border-color: #d8e4dc; }
.task-toolbar { height: 43px; min-height: 43px; padding: 0 30px; gap: 12px; border: 0; background: #fff; color: #52635a; }
.task-local { color: #52635a; font-size: 11px; gap: 7px; }
.header-tools, .inspector-toggle { display: flex; gap: 7px; align-items: center; min-height: 34px; border-radius: 7px; padding: 7px 10px; color: var(--orven-text); font-size: 12px; white-space: nowrap; }
.header-tools:hover, .inspector-toggle:hover { background: var(--orven-surface); }
.header-tools kbd { margin-left: 8px; color: var(--orven-text); font-size: 10px; }
.inspector-toggle { border: 1px solid var(--orven-border); color: var(--orven-text); }
.inspector-toggle[aria-pressed="true"] { color: var(--orven-accent-ink); background: var(--orven-surface); border-color: var(--orven-border-strong); }
.task-toolbar { height: 43px; min-height: 43px; padding: 0 30px; gap: 12px; border: 0; background: #fff; color: var(--orven-text); }
.task-local { color: var(--orven-text); font-size: 11px; gap: 7px; }
.local-dot { width: 5px; height: 5px; background: #7a998a; border-radius: 50%; }
.task-toolbar .subtle { font-size: 11px; color: #52635a; }
.task-toolbar .subtle { font-size: 11px; color: var(--orven-text); }
.toolbar-actions { gap: 5px; }
.toolbar-actions .text-button { color: #52635a; font-size: 11px; }
.toolbar-actions .text-button { color: var(--orven-text); font-size: 11px; }
.status { font-size: 10px; border-radius: 4px; font-weight: 500; }
.status-idle { color: #52635a; background: #eff5f1; }
.status-running, .status-retrying { color: #52635a; background: #eff5f1; }
.status-idle { color: var(--orven-text); background: var(--orven-hover); }
.status-running, .status-retrying { color: var(--orven-text); background: var(--orven-hover); }
.status-completed, .status-passed, .status-applied { color: #28664f; background: #eaf4ee; }
.status-failed, .status-conflict { color: #a43d48; background: #fff0f1; }
.conversation { padding: 28px 38px 22px; }
.conversation-entries { max-width: 800px; margin: 0 auto; }
.message { gap: 13px; margin-bottom: 27px; }
.message-avatar { width: 30px; height: 30px; border-radius: 8px; color: #52635a; background: #eff5f1; border: 0; font-size: 11px; }
.message-user .message-avatar { color: #52635a; background: #eff5f1; }
.message-user .message-label { color: #52635a; }
.message-user .message-text { color: #425a4b; background: #f1f6f3; border-color: #e1eae4; }
.message-label { color: #52635a; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.message-label time { color: #52635a; font-size: 10px; font-weight: 400; }
.message-text, .message-text .research-content { font-size: 14px; color: #28382f; line-height: 1.9; }
.message-text .research-content h2, .message-text .research-content h3, .message-text .research-content h4 { color: #28382f; }
.message-text .research-content code { background: #f5f8f6; color: #52635a; }
.message-system .message-text { color: #52635a; }
.message-avatar { width: 30px; height: 30px; border-radius: 8px; color: var(--orven-text); background: var(--orven-hover); border: 0; font-size: 11px; }
.message-user .message-avatar { color: var(--orven-text); background: var(--orven-hover); }
.message-user .message-label { color: var(--orven-text); }
.message-user .message-text { color: var(--orven-heading); background: var(--orven-message); border-color: var(--orven-message-border); }
.message-label { color: var(--orven-text); font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.message-label time { color: var(--orven-text); font-size: 10px; font-weight: 400; }
.message-text, .message-text .research-content { font-size: 14px; color: var(--orven-ink); line-height: 1.9; }
.message-text .research-content h2, .message-text .research-content h3, .message-text .research-content h4 { color: var(--orven-ink); }
.message-text .research-content code { background: var(--orven-surface); color: var(--orven-text); }
.message-system .message-text { color: var(--orven-text); }
.inline-event { margin-left: 43px; }
.tool-row { min-height: 43px; border: 1px solid #e8f1eb; border-radius: 7px; background: #fbfcfb; }
.tool-name > strong { color: #52635a; font-size: 12px; }
.tool-name > span, .tool-end { color: #52635a; font-size: 11px; }
.tool-symbol { background: #eff5f1; color: #52635a; }
.tool-row { min-height: 43px; border: 1px solid var(--orven-border-soft); border-radius: 7px; background: var(--orven-surface-faint); }
.tool-name > strong { color: var(--orven-text); font-size: 12px; }
.tool-name > span, .tool-end { color: var(--orven-text); font-size: 11px; }
.tool-symbol { background: var(--orven-hover); color: var(--orven-text); }
.tool-completed .tool-symbol { color: #4f7b64; background: #eaf4ee; }
.working-note { color: #52635a; font-size: 12px; }
.system-event { color: #52635a; }
.system-event-output { margin: 4px 0 0; color: #5f7066; }
.working-note { color: var(--orven-text); font-size: 12px; }
.system-event { color: var(--orven-text); }
.system-event-output { margin: 4px 0 0; color: var(--orven-muted); }
.system-event-output summary { cursor: pointer; display: list-item; font-size: 10px; padding: 3px 0; width: fit-content; }
.system-event-output pre { color: #52635a; background: #f8faf9; border: 1px solid #e8f1eb; border-radius: 6px; padding: 10px; margin: 6px 0; max-height: 220px; overflow: auto; font-size: 11px; line-height: 1.8; }
.model-stream-preview { border-left-color: #94b3a2; background: #f8faf9; color: #52635a; }
.model-stream-preview span, .model-stream-preview p { color: #52635a; }
.system-event-output pre { color: var(--orven-text); background: var(--orven-canvas); border: 1px solid var(--orven-border-soft); border-radius: 6px; padding: 10px; margin: 6px 0; max-height: 220px; overflow: auto; font-size: 11px; line-height: 1.8; }
.model-stream-preview { border-left-color: var(--orven-stream-border); background: var(--orven-canvas); color: var(--orven-text); }
.model-stream-preview span, .model-stream-preview p { color: var(--orven-text); }
/* First task: useful project context and three concrete starting points. */
.orven-welcome { max-width: 740px; width: 100%; margin: clamp(12px, 4vh, 48px) auto 16px; padding: 0; }
.welcome-signature { display: flex; align-items: center; gap: 12px; margin-bottom: 33px; color: var(--accent); }
.welcome-signature > span { font-size: 23px; font-weight: 600; letter-spacing: -.7px; color: #28382f; }
.welcome-signature small { display: block; margin-top: 4px; color: #52635a; font-size: 11px; font-weight: 400; letter-spacing: .4px; }
.orven-welcome h2 { color: #28382f; font: 600 clamp(25px, 2.4vw, 34px)/1.4 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif; letter-spacing: -.9px; margin: 0 0 14px; }
.orven-welcome > p { color: #52635a; font-size: 14px; line-height: 1.9; margin: 0; }
.welcome-project { display: flex; gap: 12px; align-items: center; padding: 18px 0; margin-top: 28px; border-bottom: 1px solid #e8f1eb; }
.welcome-project-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: #f5f8f6; color: #52635a; }
.welcome-signature > span { font-size: 23px; font-weight: 600; letter-spacing: -.7px; color: var(--orven-ink); }
.welcome-signature small { display: block; margin-top: 4px; color: var(--orven-text); font-size: 11px; font-weight: 400; letter-spacing: .4px; }
.orven-welcome h2 { color: var(--orven-ink); font: 600 clamp(25px, 2.4vw, 34px)/1.4 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif; letter-spacing: -.9px; margin: 0 0 14px; }
.orven-welcome > p { color: var(--orven-text); font-size: 14px; line-height: 1.9; margin: 0; }
.welcome-project { display: flex; gap: 12px; align-items: center; padding: 18px 0; margin-top: 28px; border-bottom: 1px solid var(--orven-border-soft); }
.welcome-project-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--orven-surface); color: var(--orven-text); }
.welcome-project > div { min-width: 0; flex: 1; }
.welcome-project strong { font-size: 13px; font-weight: 600; color: #52635a; display: flex; gap: 8px; align-items: center; }
.welcome-project strong > span { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 400; color: #52635a; background: #eff5f1; }
.welcome-project small { display: block; color: #52635a; font-size: 11px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-project > button { display: flex; align-items: center; gap: 7px; min-height: 36px; font-size: 12px; color: #52635a; padding: 6px 10px; border: 1px solid #dfeae3; border-radius: 6px; white-space: nowrap; }
.welcome-project strong { font-size: 13px; font-weight: 600; color: var(--orven-text); display: flex; gap: 8px; align-items: center; }
.welcome-project strong > span { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 400; color: var(--orven-text); background: var(--orven-hover); }
.welcome-project small { display: block; color: var(--orven-text); font-size: 11px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-project > button { display: flex; align-items: center; gap: 7px; min-height: 36px; font-size: 12px; color: var(--orven-text); padding: 6px 10px; border: 1px solid var(--orven-border); border-radius: 6px; white-space: nowrap; }
.welcome-project > button > svg { transform: rotate(45deg); }
.welcome-project > button:hover { background: #f5f8f6; }
.starter-heading { font-size: 11px; color: #52635a; margin: 24px 0 12px; }
.welcome-project > button:hover { background: var(--orven-surface); }
.starter-heading { font-size: 11px; color: var(--orven-text); margin: 24px 0 12px; }
.orven-welcome .starter-prompts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 0; width: 100%; max-width: none; }
.orven-welcome .starter-prompts > button { min-height: 87px; padding: 15px 12px; border: 1px solid #e8f1eb; border-radius: 8px; background: #fff; display: flex; align-items: center; gap: 10px; box-shadow: none; }
.orven-welcome .starter-prompts > button:hover { background: #fbfcfb; border-color: #c5d6ca; }
.orven-welcome .starter-prompts .starter-icon { display: flex; width: 25px; height: 30px; align-items: center; justify-content: flex-start; background: none; color: #52635a; border-radius: 0; }
.orven-welcome .starter-prompts > button { min-height: 87px; padding: 15px 12px; border: 1px solid var(--orven-border-soft); border-radius: 8px; background: #fff; display: flex; align-items: center; gap: 10px; box-shadow: none; }
.orven-welcome .starter-prompts > button:hover { background: var(--orven-surface-faint); border-color: var(--orven-border-hover); }
.orven-welcome .starter-prompts .starter-icon { display: flex; width: 25px; height: 30px; align-items: center; justify-content: flex-start; background: none; color: var(--orven-text); border-radius: 0; }
.orven-welcome .starter-prompts > button > span:nth-child(2) { flex: 1; min-width: 0; display: block; background: none; width: auto; height: auto; }
.starter-prompts strong { display: block; color: #52635a; font-size: 12px; font-weight: 500; white-space: nowrap; }
.starter-prompts small { display: block; color: #52635a; font-size: 10px; margin-top: 6px; white-space: nowrap; }
.orven-welcome .starter-prompts > button > svg { color: #52635a; margin: 0; width: 12px; }
.welcome-connect { display: flex; width: 100%; align-items: center; gap: 9px; margin-top: 22px; padding: 4px 0; min-height: 32px; color: #52635a; font-size: 11px; text-align: left; }
.starter-prompts strong { display: block; color: var(--orven-text); font-size: 12px; font-weight: 500; white-space: nowrap; }
.starter-prompts small { display: block; color: var(--orven-text); font-size: 10px; margin-top: 6px; white-space: nowrap; }
.orven-welcome .starter-prompts > button > svg { color: var(--orven-text); margin: 0; width: 12px; }
.welcome-connect { display: flex; width: 100%; align-items: center; gap: 9px; margin-top: 22px; padding: 4px 0; min-height: 32px; color: var(--orven-text); font-size: 11px; text-align: left; }
.welcome-connect > svg:last-child { margin-left: auto; }
.welcome-connect:hover { color: var(--accent); }
.welcome-connect:hover { color: var(--orven-accent-ink); }
/* Input and execution controls share one stable, reachable footer. */
.composer-wrap { background: white; border: 0; padding: 14px max(30px, calc((100% - 800px) / 2)) 17px; }
.composer { display: flex; flex-direction: column; background: #fff; border: 1px solid #d8e4dc; border-radius: 12px; box-shadow: 0 4px 20px #243e2e05; overflow: visible; }
.composer:focus-within { border-color: #81ab98; box-shadow: 0 0 0 3px #81ab9815; }
.composer textarea { min-height: 90px; padding: 17px 19px 7px; color: #28382f; font-size: 14px; line-height: 1.8; }
.composer textarea::placeholder { color: #52635a; }
.composer-wrap { background: var(--orven-workspace); border: 0; padding: 14px max(30px, calc((100% - 800px) / 2)) 17px; }
.composer { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--orven-border-strong); border-radius: 12px; box-shadow: 0 4px 20px rgb(var(--orven-shadow-rgb) / 2%); overflow: visible; }
.composer:focus-within { border-color: var(--orven-focus-border); box-shadow: 0 0 0 3px var(--orven-focus-ring); }
.composer textarea { min-height: 90px; padding: 17px 19px 7px; color: var(--orven-ink); font-size: 14px; line-height: 1.8; }
.composer textarea::placeholder { color: var(--orven-text); }
.composer .input-composer { border: 0; padding: 0 11px; }
.input-composer-tools { gap: 8px; }
.input-composer-tools > span { color: #52635a; font-size: 10px; }
.input-add { color: #52635a; font-size: 11px; padding: 5px 7px; }
.input-add:hover { background: #f5f8f6; }
.input-route { color: #52635a; }
.input-composer-tools > span { color: var(--orven-text); font-size: 10px; }
.input-add { color: var(--orven-text); font-size: 11px; padding: 5px 7px; }
.input-add:hover { background: var(--orven-surface); }
.input-route { color: var(--orven-text); }
.composer-bottom { min-height: 52px; padding: 8px 13px 11px; gap: 10px; }
.composer-options { display: flex; align-items: center; min-width: 0; gap: 8px; }
.composer-model { display: flex; align-items: center; gap: 7px; padding: 6px; min-width: 0; font-size: 11px; color: #52635a; border-radius: 5px; }
.composer-model { display: flex; align-items: center; gap: 7px; padding: 6px; min-width: 0; font-size: 11px; color: var(--orven-text); border-radius: 5px; }
.composer-model > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 190px; }
.composer-model:hover { background: #f5f8f6; }
.composer-model:hover { background: var(--orven-surface); }
.model-light { background: #609577; width: 6px; height: 6px; }
.model-light.model-unset { background: #97aaa0; }
.composer-divider { height: 14px; width: 1px; background: #dfeae3; flex-shrink: 0; }
.composer .permission-mode { border: 0; padding: 4px; color: #52635a; background: none; gap: 4px; min-width: 0; }
.composer .permission-mode select { color: #52635a; font-size: 11px; min-height: 28px; max-width: 145px; }
.composer .send-button { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); border-radius: 8px; color: #fff; flex-shrink: 0; }
.composer .send-button:disabled { opacity: 1; color: #52635a; background: #eff5f1; }
.composer .send-button:hover:not(:disabled) { background: #105544; }
.model-light.model-unset { background: var(--orven-unset); }
.composer-divider { height: 14px; width: 1px; background: var(--orven-border); flex-shrink: 0; }
.composer .permission-mode { border: 0; padding: 4px; color: var(--orven-text); background: none; gap: 4px; min-width: 0; }
.composer .permission-mode select { color: var(--orven-text); font-size: 11px; min-height: 28px; max-width: 145px; }
.composer .send-button { display: grid; place-items: center; width: 34px; height: 34px; background: var(--orven-action); border-radius: 8px; color: #fff; flex-shrink: 0; }
.composer .send-button:disabled { opacity: 1; color: var(--orven-text); background: var(--orven-hover); }
.composer .send-button:hover:not(:disabled) { background: var(--orven-accent-hover); }
.stop-button { background: #fbf0f2; color: #a04a60; border: 1px solid #ecd5de; border-radius: 6px; padding: 8px 10px; font-size: 12px; }
.composer-footnote { display: flex; justify-content: space-between; gap: 10px; color: #52635a; padding: 10px 2px 0; font-size: 10px; }
.composer-footnote { display: flex; justify-content: space-between; gap: 10px; color: var(--orven-text); padding: 10px 2px 0; font-size: 10px; }
/* A practical review pane, with legible source and semantic diff colors. */
.inspector { background: #fbfcfb; border-color: var(--line); min-height: 0; }
.inspector-tabs { gap: 2px; padding: 0 9px; height: 54px; background: #fbfcfb; border-color: #e8f1eb; }
.inspector-tabs > button:not(.icon-button) { font-size: 11px; color: #52635a; gap: 4px; padding: 0 7px; }
.inspector-tabs > button.selected { color: var(--accent); border-bottom-color: var(--accent); }
.inspector-tabs > button > b { color: #52635a; background: #e8f1eb; }
.inspector { background: var(--orven-surface-faint); border-color: var(--line); min-height: 0; }
.inspector-tabs { gap: 2px; padding: 0 9px; height: 54px; background: var(--orven-surface-faint); border-color: var(--orven-border-soft); }
.inspector-tabs > button:not(.icon-button) { font-size: 11px; color: var(--orven-text); gap: 4px; padding: 0 7px; }
.inspector-tabs > button.selected { color: var(--orven-accent-ink); border-bottom-color: var(--accent); }
.inspector-tabs > button > b { color: var(--orven-text); background: var(--orven-border-soft); }
.inspector-tabs > .icon-button { width: 28px; }
.inspector-footer { color: #52635a; border-color: #e8f1eb; font-size: 10px; padding: 11px 10px; }
.inspector-footer { color: var(--orven-text); border-color: var(--orven-border-soft); font-size: 10px; padding: 11px 10px; }
.empty-inspector { max-width: 320px; padding: 32px 27px; }
.empty-inspector-symbol { width: 52px; height: 52px; border-radius: 12px; color: #52635a; border: 1px solid #e8f1eb; background: #f5f8f6; margin-bottom: 21px; }
.empty-inspector h3 { color: #52635a; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.empty-inspector p { color: #52635a; font-size: 12px; line-height: 1.8; }
.file-heading, .file-details { background: #fbfcfb; border-color: #e8f1eb; color: #52635a; font-size: 11px; }
.empty-inspector-symbol { width: 52px; height: 52px; border-radius: 12px; color: var(--orven-text); border: 1px solid var(--orven-border-soft); background: var(--orven-surface); margin-bottom: 21px; }
.empty-inspector h3 { color: var(--orven-text); font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.empty-inspector p { color: var(--orven-text); font-size: 12px; line-height: 1.8; }
.file-heading, .file-details { background: var(--orven-surface-faint); border-color: var(--orven-border-soft); color: var(--orven-text); font-size: 11px; }
.code-view { background: #fff; font-size: 12px; line-height: 1.9; }
.code-view code { color: #52635a; }
.code-view > div > span { color: #52635a; font-size: 11px; }
.code-editor { color: #28382f; background: #fff; font-size: 12px; }
.change-list, .change-summary, .change-actions, .event-details { border-color: #e8f1eb; }
.change-list > button { color: #52635a; font-size: 12px; }
.change-list > button:hover, .change-list > button.selected { background: #eff5f1; }
.change-summary strong { color: #52635a; font-size: 12px; }
.change-summary > p, .diff-caption, .trace-caption, .event-details h4 { color: #52635a; border-color: #e8f1eb; }
.code-view code { color: var(--orven-text); }
.code-view > div > span { color: var(--orven-text); font-size: 11px; }
.code-editor { color: var(--orven-ink); background: #fff; font-size: 12px; }
.change-list, .change-summary, .change-actions, .event-details { border-color: var(--orven-border-soft); }
.change-list > button { color: var(--orven-text); font-size: 12px; }
.change-list > button:hover, .change-list > button.selected { background: var(--orven-hover); }
.change-summary strong { color: var(--orven-text); font-size: 12px; }
.change-summary > p, .diff-caption, .trace-caption, .event-details h4 { color: var(--orven-text); border-color: var(--orven-border-soft); }
.diff-view { background: #fff; }
.diff-line { color: #52635a; font-size: 12px; }
.diff-line { color: var(--orven-text); font-size: 12px; }
.diff-line.diff-added { background: #edf6f0; color: #38654b; }
.diff-line.diff-removed { background: #fceff1; color: #9a4252; }
.line-number { color: #52635a; }
.event-detail-heading strong { color: #52635a; font-size: 12px; }
.event-details pre { color: #52635a; background: #f5f8f6; border-color: #e8f1eb; }
.inspector-resize-handle:hover, .inspector-resizing .inspector-resize-handle { background: #6f9f89; }
.line-number { color: var(--orven-text); }
.event-detail-heading strong { color: var(--orven-text); font-size: 12px; }
.event-details pre { color: var(--orven-text); background: var(--orven-surface); border-color: var(--orven-border-soft); }
.inspector-resize-handle:hover, .inspector-resizing .inspector-resize-handle { background: var(--orven-handle); }
/* Existing capabilities keep their own layouts and share this surface system. */
.modal-backdrop { background: #182e2255; backdrop-filter: blur(2px); }
.modal { color: #52635a; background: #fff; border: 1px solid #dfeae3; border-radius: 14px; box-shadow: 0 24px 100px #182e2230; padding: 26px; }
.modal-heading h2 { font: 600 20px/1.4 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif; color: #28382f; letter-spacing: -.4px; }
.modal-heading p { color: #52635a; font-size: 12px; line-height: 1.8; }
.modal-heading > .icon-button { color: #52635a; }
.modal .form-field { color: #5f7066; font-size: 12px; }
.modal .form-field input, .modal .form-field select, .modal .form-field textarea { color: #52635a; border-color: #d8e4dc; background: #fff; border-radius: 7px; min-height: 40px; }
.modal .form-field input::placeholder { color: #52635a; }
.modal .subtle, .modal .mc-help { color: #52635a; }
.modal :is(.skill-center, .mcp-panel, .worker-console, .evaluation-console, .project-memory, .engine-panel, .rea-panel, .diagnostic-panel) { color: #52635a; font-size: 13px; }
.modal :is(.skill-heading, .mcp-heading, .worker-console-heading, .evaluation-heading, .memory-overview, .engine-heading, .rea-heading) h2 { color: #28382f; font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
.modal :is(.skill-heading, .mcp-heading, .worker-console-heading, .evaluation-heading, .memory-overview, .engine-heading, .rea-heading) p { color: #5f7066; font-size: 12px; line-height: 1.9; }
.modal :is(.skill-kicker, .mcp-kicker, .worker-eyebrow, .evaluation-kicker, .memory-eyebrow, .engine-eyebrow, .rea-eyebrow) { color: #5f7066; font-size: 10px; }
.modal :is(.skill-status-bar, .mcp-status-bar, .memory-summary) { color: #5f7066; border-color: #dfeae3; background: #fbfcfb; padding: 12px; border-radius: 6px; }
.modal :is(.skill-register, .mcp-register, .worker-plan-form, .worker-budget-form, .evaluation-form, .memory-editor, .engine-connection, .rea-registration) { background: #f8faf9; border: 1px solid #dfeae3; border-radius: 10px; padding: 20px; }
.modal :is(.skill-register-heading, .mcp-register-heading, .memory-editor-heading) { color: #52635a; }
.modal :is(.skill-empty, .mcp-empty, .memory-empty, .engine-empty, .rea-empty, .rea-empty-result) { color: #5f7066; border: 1px solid #e8f1eb; background: #fff; border-radius: 10px; padding: 30px 20px; }
.modal :is(.skill-empty, .mcp-empty, .memory-empty, .engine-empty, .rea-empty, .rea-empty-result) > svg { color: #7c9384; }
.modal :is(.skill-empty, .mcp-empty, .memory-empty, .engine-empty, .rea-empty, .rea-empty-result) strong { color: #52635a; }
.modal :is(.skill-form-grid, .mcp-form-grid, .memory-form-grid, .evaluation-form, .worker-plan-form) label { color: #52635a; font-size: 12px; }
.modal input:not([type="checkbox"]):not([type="radio"]), .modal select, .modal textarea { border-color: #d0ded5; border-radius: 7px; color: #52635a; }
.modal-backdrop { background: rgb(var(--orven-shadow-rgb) / 33%); backdrop-filter: blur(2px); }
.modal { color: var(--orven-text); background: #fff; border: 1px solid var(--orven-border); border-radius: 14px; box-shadow: 0 24px 100px rgb(var(--orven-shadow-rgb) / 19%); padding: 26px; }
.modal-heading h2 { font: 600 20px/1.4 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--orven-ink); letter-spacing: -.4px; }
.modal-heading p { color: var(--orven-text); font-size: 12px; line-height: 1.8; }
.modal-heading > .icon-button { color: var(--orven-text); }
.modal .form-field { color: var(--orven-muted); font-size: 12px; }
.modal .form-field input, .modal .form-field select, .modal .form-field textarea { color: var(--orven-text); border-color: var(--orven-border-strong); background: #fff; border-radius: 7px; min-height: 40px; }
.modal .form-field input::placeholder { color: var(--orven-text); }
.modal .subtle, .modal .mc-help { color: var(--orven-text); }
.modal :is(.skill-center, .mcp-panel, .worker-console, .evaluation-console, .project-memory, .engine-panel, .rea-panel, .diagnostic-panel) { color: var(--orven-text); font-size: 13px; }
.modal :is(.skill-heading, .mcp-heading, .worker-console-heading, .evaluation-heading, .memory-overview, .engine-heading, .rea-heading) h2 { color: var(--orven-ink); font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
.modal :is(.skill-heading, .mcp-heading, .worker-console-heading, .evaluation-heading, .memory-overview, .engine-heading, .rea-heading) p { color: var(--orven-muted); font-size: 12px; line-height: 1.9; }
.modal :is(.skill-kicker, .mcp-kicker, .worker-eyebrow, .evaluation-kicker, .memory-eyebrow, .engine-eyebrow, .rea-eyebrow) { color: var(--orven-muted); font-size: 10px; }
.modal :is(.skill-status-bar, .mcp-status-bar, .memory-summary) { color: var(--orven-muted); border-color: var(--orven-border); background: var(--orven-surface-faint); padding: 12px; border-radius: 6px; }
.modal :is(.skill-register, .mcp-register, .worker-plan-form, .worker-budget-form, .evaluation-form, .memory-editor, .engine-connection, .rea-registration) { background: var(--orven-canvas); border: 1px solid var(--orven-border); border-radius: 10px; padding: 20px; }
.modal :is(.skill-register-heading, .mcp-register-heading, .memory-editor-heading) { color: var(--orven-text); }
.modal :is(.skill-empty, .mcp-empty, .memory-empty, .engine-empty, .rea-empty, .rea-empty-result) { color: var(--orven-muted); border: 1px solid var(--orven-border-soft); background: #fff; border-radius: 10px; padding: 30px 20px; }
.modal :is(.skill-empty, .mcp-empty, .memory-empty, .engine-empty, .rea-empty, .rea-empty-result) > svg { color: var(--orven-icon-muted); }
.modal :is(.skill-empty, .mcp-empty, .memory-empty, .engine-empty, .rea-empty, .rea-empty-result) strong { color: var(--orven-text); }
.modal :is(.skill-form-grid, .mcp-form-grid, .memory-form-grid, .evaluation-form, .worker-plan-form) label { color: var(--orven-text); font-size: 12px; }
.modal input:not([type="checkbox"]):not([type="radio"]), .modal select, .modal textarea { border-color: var(--orven-scrollbar); border-radius: 7px; color: var(--orven-text); }
.modal input[type="checkbox"], .modal input[type="radio"] { accent-color: var(--accent); }
.modal :is(input, textarea)::placeholder { color: #5f7066; }
.modal :is(.mcp-boundary, .worker-boundary, .memory-scope-warning) { color: #5f7066; border-color: #dfeae3; background: #f8faf9; border-radius: 7px; }
.modal :is(.skill-source, .mcp-source, .engine-scope, .rea-hint, .skill-path, .memory-meta, .worker-scope, .worker-note, .evaluation-note) { color: #5f7066; }
.modal .diagnostic-intro strong, .modal .diagnostic-grid h3 { color: #52635a; }
.modal .diagnostic-grid section { border-color: #dfeae3; background: #fbfcfb; border-radius: 8px; }
.modal .diagnostic-grid dt, .modal .diagnostic-grid dd { color: #5f7066; }
.change-set-bar { background: #f8faf9; border-color: #e8f1eb; color: #425a4b; }
.review-callout { background: #f5f8f6; border-color: #dfeae3; color: #52635a; border-radius: 9px; }
.review-callout small { color: #52635a; }
.recovery-note { background: #f8faf9; border-color: #dfeae3; color: #5f7066; }
.recovery-note p { color: #52635a; }
.modal :is(input, textarea)::placeholder { color: var(--orven-muted); }
.modal :is(.mcp-boundary, .worker-boundary, .memory-scope-warning) { color: var(--orven-muted); border-color: var(--orven-border); background: var(--orven-canvas); border-radius: 7px; }
.modal :is(.skill-source, .mcp-source, .engine-scope, .rea-hint, .skill-path, .memory-meta, .worker-scope, .worker-note, .evaluation-note) { color: var(--orven-muted); }
.modal .diagnostic-intro strong, .modal .diagnostic-grid h3 { color: var(--orven-text); }
.modal .diagnostic-grid section { border-color: var(--orven-border); background: var(--orven-surface-faint); border-radius: 8px; }
.modal .diagnostic-grid dt, .modal .diagnostic-grid dd { color: var(--orven-muted); }
.change-set-bar { background: var(--orven-canvas); border-color: var(--orven-border-soft); color: var(--orven-heading); }
.review-callout { background: var(--orven-surface); border-color: var(--orven-border); color: var(--orven-text); border-radius: 9px; }
.review-callout small { color: var(--orven-text); }
.recovery-note { background: var(--orven-canvas); border-color: var(--orven-border); color: var(--orven-muted); }
.recovery-note p { color: var(--orven-text); }
.approval-card { background: #fffcf4; border: 1px solid #eadbb5; border-left: 3px solid #caa355; border-radius: 9px; box-shadow: none; }
.approval-heading strong { color: #82622c; font-size: 13px; }
.approval-heading p, .approval-scope { color: #52635a; font-size: 12px; }
.approval-card > pre { background: #f8f3e8; border-color: #ede2cb; color: #52635a; font-size: 12px; }
.approval-heading p, .approval-scope { color: var(--orven-text); font-size: 12px; }
.approval-card > pre { background: #f8f3e8; border-color: #ede2cb; color: var(--orven-text); font-size: 12px; }
.approval-actions .button.primary { background: #a77d33; border-color: #a77d33; }
.failure-card { background: #fff9fa; border-color: #efdae2; border-left: 3px solid #c56d8d; border-radius: 9px; }
.failure-heading > strong { color: #a04c6c; }
.failure-heading, .failure-card p { color: #9b6783; }
.toast { background: #304a3c; color: #fff; border-color: #506e5c; border-radius: 9px; }
.toast .icon-button { color: #e3f0e8; }
.toast { background: var(--orven-toast); color: #fff; border-color: var(--orven-toast-border); border-radius: 9px; }
.toast .icon-button { color: var(--orven-toast-text); }
/* Model management is a connected work surface, not a separate admin theme. */
.modal:has(.model-center) { border-radius: 13px; border-color: #d8e4dc; }
.modal:has(.model-center) > .modal-heading { background: white; border-color: #e8f1eb; padding: 23px 28px 20px; }
.modal:has(.model-center) > .modal-heading h2 { color: #52635a; font-size: 20px; font-weight: 600; }
.modal:has(.model-center) > .modal-heading p { color: #52635a; }
.model-center { color: #52635a; background: #fbfcfb; }
.mc-overview { background: #f5f8f6; border-color: #dfeae3; padding: 24px 28px; }
.mc-eyebrow { color: #52635a; letter-spacing: .1em; }
.mc-overview h2 { color: #52635a; font-size: 23px; font-weight: 600; letter-spacing: -.5px; }
.mc-overview p, .mc-section-title p { color: #52635a; font-size: 12px; }
.mc-current { border-color: #d8e4dc; border-radius: 9px; box-shadow: none; }
.mc-current > span, .mc-current strong { color: #5f7066; }
.mc-tabs { background: #fff; border-color: #dfeae3; }
.mc-tabs button { color: #52635a; border-bottom-width: 2px; font-size: 12px; font-weight: 500; }
.mc-tabs button[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.mc-tabs button:hover { background: #f8faf9; }
.modal:has(.model-center) { border-radius: 13px; border-color: var(--orven-border-strong); }
.modal:has(.model-center) > .modal-heading { background: white; border-color: var(--orven-border-soft); padding: 23px 28px 20px; }
.modal:has(.model-center) > .modal-heading h2 { color: var(--orven-text); font-size: 20px; font-weight: 600; }
.modal:has(.model-center) > .modal-heading p { color: var(--orven-text); }
.model-center { color: var(--orven-text); background: var(--orven-surface-faint); }
.mc-overview { background: var(--orven-surface); border-color: var(--orven-border); padding: 24px 28px; }
.mc-eyebrow { color: var(--orven-text); letter-spacing: .1em; }
.mc-overview h2 { color: var(--orven-text); font-size: 23px; font-weight: 600; letter-spacing: -.5px; }
.mc-overview p, .mc-section-title p { color: var(--orven-text); font-size: 12px; }
.mc-current { border-color: var(--orven-border-strong); border-radius: 9px; box-shadow: none; }
.mc-current > span, .mc-current strong { color: var(--orven-muted); }
.mc-tabs { background: #fff; border-color: var(--orven-border); }
.mc-tabs button { color: var(--orven-text); border-bottom-width: 2px; font-size: 12px; font-weight: 500; }
.mc-tabs button[aria-current] { color: var(--orven-accent-ink); border-bottom-color: var(--accent); }
.mc-tabs button:hover { background: var(--orven-canvas); }
.mc-content { padding-top: 25px; }
.mc-section-title h3 { color: #52635a; font-size: 16px; font-weight: 600; }
.mc-connection, .mc-pool, .mc-checks article, .mc-import-source { border-color: #dfeae3; border-radius: 10px; box-shadow: none; }
.mc-card-heading h4, .mc-pool h4 { color: #52635a; }
.mc-card-heading > div > span, .mc-connection dt, .mc-pool p { color: #5f7066; }
.mc-connection dd { color: #5f7066; }
.mc-service-icon { color: #5f7066; background: #eff5f1; border-color: #dfeae3; border-radius: 10px; }
.mc-connection footer { border-color: #e8f1eb; }
.mc-capabilities span { border-color: #e8f1eb; color: #5f7066; }
.mc-editor { border-color: #d8e4dc; border-top-color: var(--accent); border-radius: 10px; }
.mc-form-grid label { color: #5f7066; }
.mc-form-grid input, .mc-form-grid select { color: #52635a; border-color: #d8e4dc; border-radius: 7px; }
.mc-checkbox { color: #5f7066; }
.mc-section-title h3 { color: var(--orven-text); font-size: 16px; font-weight: 600; }
.mc-connection, .mc-pool, .mc-checks article, .mc-import-source { border-color: var(--orven-border); border-radius: 10px; box-shadow: none; }
.mc-card-heading h4, .mc-pool h4 { color: var(--orven-text); }
.mc-card-heading > div > span, .mc-connection dt, .mc-pool p { color: var(--orven-muted); }
.mc-connection dd { color: var(--orven-muted); }
.mc-service-icon { color: var(--orven-muted); background: var(--orven-hover); border-color: var(--orven-border); border-radius: 10px; }
.mc-connection footer { border-color: var(--orven-border-soft); }
.mc-capabilities span { border-color: var(--orven-border-soft); color: var(--orven-muted); }
.mc-editor { border-color: var(--orven-border-strong); border-top-color: var(--accent); border-radius: 10px; }
.mc-form-grid label { color: var(--orven-muted); }
.mc-form-grid input, .mc-form-grid select { color: var(--orven-text); border-color: var(--orven-border-strong); border-radius: 7px; }
.mc-checkbox { color: var(--orven-muted); }
.mc-checkbox input { accent-color: var(--accent); }
.mc-empty { color: #5f7066; border-style: solid; border-color: #e8f1eb; background: #fff; border-radius: 10px; padding: 35px 24px; }
.mc-icon-action, .mc-probe { color: #5f7066; }
.mc-route-control { background: #fff; border: 1px solid #dfeae3; border-left: 1px solid #dfeae3; border-radius: 9px; color: #52635a; }
.mc-route-heading h3 { color: #425a4b; font-size: 13px; font-weight: 600; }
.mc-route-heading p, .mc-route-detail { color: #5f7066; font-size: 11px; }
.mc-route-select { color: #5f7066; }
.mc-route-select select { color: #52635a; border-color: #d8e4dc; border-radius: 7px; }
.mc-empty { color: var(--orven-muted); border-style: solid; border-color: var(--orven-border-soft); background: #fff; border-radius: 10px; padding: 35px 24px; }
.mc-icon-action, .mc-probe { color: var(--orven-muted); }
.mc-route-control { background: #fff; border: 1px solid var(--orven-border); border-left: 1px solid var(--orven-border); border-radius: 9px; color: var(--orven-text); }
.mc-route-heading h3 { color: var(--orven-heading); font-size: 13px; font-weight: 600; }
.mc-route-heading p, .mc-route-detail { color: var(--orven-muted); font-size: 11px; }
.mc-route-select { color: var(--orven-muted); }
.mc-route-select select { color: var(--orven-text); border-color: var(--orven-border-strong); border-radius: 7px; }
@media (min-width: 941px) {
.model-center { display: grid; grid-template-columns: 178px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); flex: 1; }
.mc-overview { grid-column: 1 / -1; padding: 23px 28px; background: #f8faf9; }
.mc-overview { grid-column: 1 / -1; padding: 23px 28px; background: var(--orven-canvas); }
.mc-overview h2 { font-size: 22px; margin-block: 7px; }
.mc-tabs { grid-column: 1; grid-row: 2; border-bottom: 0; border-right: 1px solid #e8f1eb; padding: 15px 10px; gap: 3px; display: flex; flex-direction: column; overflow-y: auto; background: #fbfcfb; }
.mc-tabs { grid-column: 1; grid-row: 2; border-bottom: 0; border-right: 1px solid var(--orven-border-soft); padding: 15px 10px; gap: 3px; display: flex; flex-direction: column; overflow-y: auto; background: var(--orven-surface-faint); }
.mc-tabs button { min-height: 41px; padding: 10px 13px; border: 0; border-radius: 6px; font-size: 12px; flex-shrink: 0; }
.mc-tabs button[aria-current] { background: #dfede4; color: #176b5b; }
.mc-tabs button[aria-current] { background: var(--orven-selected); color: var(--orven-accent-ink); }
.mc-tabs .mc-refresh { margin: auto 0 0; justify-content: flex-start; }
.mc-tabs .mc-refresh::after { content: '刷新连接状态'; font-size: 11px; }
.mc-content { grid-column: 2; grid-row: 2; background: #fff; padding: 24px 26px; }
.mc-notice { grid-column: 2; grid-row: 2; z-index: 1; align-self: start; box-shadow: 0 5px 20px #30523c12; }
.mc-notice { grid-column: 2; grid-row: 2; z-index: 1; align-self: start; box-shadow: 0 5px 20px rgb(var(--orven-shadow-rgb) / 7%); }
.model-center:has(> .mc-notice) .mc-content { padding-top: 96px; }
.model-center > .mc-empty { grid-column: 2; grid-row: 2; align-self: start; margin: 24px; }
.mc-connections { grid-template-columns: 1fr; }
@@ -337,25 +337,25 @@ button { touch-action: manipulation; }
.modal:has(.workbench-tools) { width: 640px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: min(780px, 90dvh); }
.modal:has(.workbench-tools) > .modal-heading { padding: 22px 24px 16px; margin: 0; flex-shrink: 0; }
.workbench-tools { display: flex; flex-direction: column; min-height: 0; }
.tools-search { display: flex; align-items: center; gap: 11px; padding: 12px 22px; border-block: 1px solid #e8f1eb; background: #fbfcfb; color: #52635a; flex-shrink: 0; }
.tools-search input { border: 0; background: none; min-width: 0; flex: 1; font-size: 13px; color: #52635a; height: 30px; }
.tools-search input::placeholder { color: #52635a; }
.tools-search kbd { font-size: 10px; color: #52635a; border: 1px solid #dfeae3; padding: 3px 5px; border-radius: 4px; }
.tools-search { display: flex; align-items: center; gap: 11px; padding: 12px 22px; border-block: 1px solid var(--orven-border-soft); background: var(--orven-surface-faint); color: var(--orven-text); flex-shrink: 0; }
.tools-search input { border: 0; background: none; min-width: 0; flex: 1; font-size: 13px; color: var(--orven-text); height: 30px; }
.tools-search input::placeholder { color: var(--orven-text); }
.tools-search kbd { font-size: 10px; color: var(--orven-text); border: 1px solid var(--orven-border); padding: 3px 5px; border-radius: 4px; }
.tools-results { padding: 9px 12px 16px; overflow: auto; min-height: 0; }
.tools-results section h3 { font-size: 11px; font-weight: 500; color: #5f7066; padding: 17px 12px 7px; }
.tools-results section h3 { font-size: 11px; font-weight: 500; color: var(--orven-muted); padding: 17px 12px 7px; }
.tools-results section > button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px; min-height: 65px; border-radius: 8px; text-align: left; }
.tools-results section > button:hover, .tools-results section > button:focus-visible { background: #f5f8f6; }
.tools-action-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #5f7066; background: #f5f8f6; border-radius: 7px; }
.tools-results section > button:hover, .tools-results section > button:focus-visible { background: var(--orven-surface); }
.tools-action-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--orven-muted); background: var(--orven-surface); border-radius: 7px; }
.tools-results button > span:nth-child(2) { min-width: 0; flex: 1; }
.tools-results strong { display: block; font-size: 13px; color: #52635a; font-weight: 500; }
.tools-results small { display: block; font-size: 11px; color: #5f7066; margin-top: 4px; }
.tools-results button > svg { color: #52635a; }
.tools-results strong { display: block; font-size: 13px; color: var(--orven-text); font-weight: 500; }
.tools-results small { display: block; font-size: 11px; color: var(--orven-muted); margin-top: 4px; }
.tools-results button > svg { color: var(--orven-text); }
.tools-results button:disabled { opacity: .65; }
.tools-results button:disabled strong { color: #52635a; }
.tools-empty { padding: 40px 15px; color: #5f7066; text-align: center; }
.tools-results button:disabled strong { color: var(--orven-text); }
.tools-empty { padding: 40px 15px; color: var(--orven-muted); text-align: center; }
.tools-empty strong { margin: 13px 0 8px; }
.tools-empty p { font-size: 12px; margin-bottom: 12px; }
.tools-footnote { display: flex; justify-content: space-between; gap: 10px; padding: 13px 24px; border-top: 1px solid #e8f1eb; color: #52635a; font-size: 10px; flex-shrink: 0; }
.tools-footnote { display: flex; justify-content: space-between; gap: 10px; padding: 13px 24px; border-top: 1px solid var(--orven-border-soft); color: var(--orven-text); font-size: 10px; flex-shrink: 0; }
@media (min-width: 1700px) {
.orven-workbench, .orven-workbench.inspector-wide { grid-template-columns: 260px minmax(430px, 1fr) 470px; }
@@ -406,9 +406,9 @@ button { touch-action: manipulation; }
@media (max-width: 940px) {
.orven-workbench, .orven-workbench.inspector-closed, .orven-workbench.inspector-wide { grid-template-columns: 210px minmax(0, 1fr); }
.orven-workbench.sidebar-hidden, .orven-workbench.sidebar-hidden.inspector-closed, .orven-workbench.sidebar-hidden.inspector-wide { grid-template-columns: 0 minmax(0, 1fr); }
.orven-workbench.inspector-wide.inspector-open .inspector { display: flex; width: min(600px, 90vw); z-index: 23; box-shadow: -10px 0 45px #243e2e17; }
.orven-workbench.inspector-wide.inspector-open .inspector { display: flex; width: min(600px, 90vw); z-index: 23; box-shadow: -10px 0 45px rgb(var(--orven-shadow-rgb) / 9%); }
.orven-workbench.inspector-closed .inspector { display: none; }
.panel-scrim { background: #182e2244; backdrop-filter: none; }
.panel-scrim { background: rgb(var(--orven-shadow-rgb) / 27%); backdrop-filter: none; }
}
@media (max-width: 620px) {
.orven-workbench, .orven-workbench.inspector-closed, .orven-workbench.sidebar-hidden, .orven-workbench.sidebar-hidden.inspector-closed, .orven-workbench.inspector-wide { grid-template-columns: 0 minmax(0, 1fr); }