Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

docs(design-rules): 设计文档归位 docs/design-rules 并同步组件库 wave5 更新 (#288)

Praisee6395497b129
diff --git a/AGENTS.md b/AGENTS.md
index 97c60572c1..40e818d798 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -13,8 +13,9 @@
- 开发与工程规则统一放在 `docs/dev-rules/`。
- 产品行为与体验规则统一放在 `docs/product-rules/`。
-- UI 视觉、交互与内容设计规则的入口与配套说明统一放在 `docs/design-rules/`,
- 权威视觉规范正文为根目录 `DESIGN.md`。
+- UI 视觉、交互与内容设计规则统一放在 `docs/design-rules/`,权威视觉规范正文为
+ `docs/design-rules/DESIGN.md`(根目录 `DESIGN.md` 仅为跳转入口),目录索引为
+ `docs/design-rules/cindy-design-system.md`。
- 根 `AGENTS.md` 只保留所有任务都适用的规则、风险入口和文档索引。
- 目录或模块专属规则优先放到对应目录的嵌套 `AGENTS.md`;需要跨目录复用的
专题说明放在 `docs/`,并由本文件写明触发条件。
@@ -38,9 +39,11 @@
- 新增或调整产品功能、判断能力应进入 Core / Skill / 插件、设计人机交互或多端体验
前,必须先读 `docs/product-rules/core-product-principles.md`。
- 新增或修改任何界面、组件、布局、样式、动效或 UI 文案前,必须先读权威设计规范
- `DESIGN.md`;`docs/design-rules/cindy-design-system.md` 仅为历史引用兼容入口。
+ `docs/design-rules/DESIGN.md`;设计文档索引见
+ `docs/design-rules/cindy-design-system.md`。
- 所有新增或修改的 UI 必须同时完成 Light 与 Dark 两种模式;只实现或只验证一种模式,
- 视为未完成。具体实现与验收要求以 `DESIGN.md` 的双模式交付门槛为准。
+ 视为未完成。具体实现与验收要求以 `docs/design-rules/DESIGN.md` 的双模式交付门槛
+ 为准。
- 修改 Orca 多 Agent 协同时,必须先读
`docs/dev-rules/orca-team-architecture.md`。
- 修改 `packages/maker-core` 的 Agent 编排、prompt 组装、tool/MCP 暴露、translator、
diff --git a/DESIGN.md b/DESIGN.md
index b5cdbc2215..1d3878a545 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -1,873 +1,7 @@
-# Design System Inspired by Ollama
+# 设计规范入口
-## 1. Visual Theme & Atmosphere
+权威视觉规范正本已迁至 [`docs/design-rules/DESIGN.md`](docs/design-rules/DESIGN.md)。
+设计文档索引(含登录链路组件 spec 与 token 决策表)见
+[`docs/design-rules/cindy-design-system.md`](docs/design-rules/cindy-design-system.md)。
-Ollama's interface is radical minimalism taken to its logical conclusion — a pure-white void where content floats without decoration, shadow, or color. The design philosophy mirrors the product itself: strip away everything unnecessary until only the essential tool remains. This is the digital equivalent of a Dieter Rams object — every pixel earns its place, and the absence of design IS the design.
-
-The entire page exists in pure grayscale. There is zero chromatic color in the interface — no brand blue, no accent green, no semantic red. The only colors that exist are shades between pure black (`#000000`) and pure white (`#ffffff`), creating a monochrome environment that lets the user's mental model of "open models" remain uncolored by brand opinion. The Ollama llama mascot, rendered in simple black line art, is the only illustration — and even it's monochrome.
-
-What makes this system distinctive is the combination of a single geometric sans-serif (Inter) with an exclusively pill-shaped geometry (9999px radius on everything interactive). The clean letterforms + rounded buttons + rounded containers create a cohesive "softness language" that makes a developer-oriented tool feel approachable and friendly rather than intimidating. This is minimalism with warmth — not cold Swiss-style grid minimalism, but the kind where the edges are literally softened.
-
-**Key Characteristics:**
-
-- Pure white canvas with zero chromatic color — completely grayscale
-- Inter as the single sans family, carrying both display headlines and body text
-- Tight border-radius system: 8px (inner controls) / 12px (containers) / 9999px (pill) — three values, nothing else
-- Zero shadows — depth comes exclusively from background color shifts and borders
-- Pill-shaped geometry on all interactive elements (buttons, tabs, inputs, tags)
-- The Ollama llama as the sole illustration — black line art, no color
-- Extreme content restraint — the homepage is short, focused, and uncluttered
-
-## 2. Color Palette & Roles
-
-> **多主题架构注意**:本节列出的色值是 **Default Light / Default Dark**(默认主题,设计灵感来自 Ollama 官网)的具体值,作为视觉规范的参考样本。运行时**每个色值都通过 token 引用**(见第 10 节 Theme System & Token Reference),所以同一组件在其它主题(如 Eclipse / One Dark Pro / Monokai Pro)下会自动呈现该主题的对应色。**实现组件时永远写 token 不写 hex**——具体规则见第 10 节。
-
-### Primary Text
-
-- **Pure Black** (`#000000`): Primary headlines, primary links, and the darkest text in Light Mode. The only "color" that demands attention. **Never used as a background** — reserved exclusively for text and icons.
-- **Near Black** (`#262626`): Button text on light-colored surfaces, secondary headline weight.
-
-### Layer System (Light & Dark)
-
-The interface is built from a three-tier layer system that applies symmetrically to both modes — **Surface** as the base, **Card** as the elevated layer, and **Board** as the hairline divider. This is the foundation of every page in every mode.
-
-
-| Role | Light Mode | Dark Mode | Usage |
-| ----------- | ---------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| **Surface** | `#f8f8f6` | `#1f1f1e` | The primary page background — every page starts here. In full-window app layouts, this is the single flat background. In centered-card layouts, this is the page beneath the card. |
-| **Card** | `#ffffff` | `#2c2c2a` | The elevated layer sitting on top of Surface — login cards, modals, panels, raised containers, and any element that needs to visually lift off the page. |
-| **Board** | `#d7d7d4` | `#3c3c3a` | The hairline divider color — 1px borders between sections, card outlines, and any separator line within the same layer. |
-
-
-**Layer rule — flat vs. elevated:**
-
-- **Full-window applications** (e.g. main workspace, chat interface, dashboards): use **Surface** as a single flat background for the entire window — no Card layer at the page-structure level. Section boundaries (sidebar, toolbar, content area) are drawn with 1px **Board** dividers, never with background color shifts.
-- **Centered-card layouts** (e.g. login, modal, empty-state card on a blank page): use **Surface** as the page background and **Card** as the lifted card. The color difference between Surface and Card is what makes the card read as "lifted" — no shadow needed. The card outline is drawn in **Board**.
-
-> **Important — element-level vs. page-level:** The "flat Surface" rule in full-window layouts applies only to the **overall page structure**, not to individual widgets. Lifted widgets *within* a full-window layout — inputs, chat input boxes, raised cards, modal overlays, panel popups — still use **Card** color per their component rules (see Section 4). A full-window chat interface can have a flat Surface page *and* a Card-colored chat input box at the same time; those are two different scopes. "Surface flat" means "don't split the page into Page+Card layers," not "every element on the page must be Surface color."
-
-### Chip & Button Neutrals
-
-Small interactive chips (button backgrounds, tag pills, avatar fills, selected-nav pills) sit outside the layer system — they're foreground elements, not background layers.
-
-- **Light Gray** (`#e5e5e5`): Chip/button backgrounds in Light Mode — the workhorse neutral for pressed states, filled pills, tag backgrounds, and avatar fills.
-- **Dark Chip** (`#2c2c2a`): Chip/button backgrounds in Dark Mode — equal to Dark Card; the lifted-pill color against a `#1f1f1e` Surface. (In Dark Mode, the Card layer color and the chip color collapse to the same value — both represent "one step lifted off Surface.")
-
-> ~~**Border Light** (`#d4d4d4`)~~ —— 已废弃(2026-06,G2)。原称"white-button 专用边框色",但全仓库无真实组件使用(只有 experimental 视图裸 hardcode)。White Pill 次按钮边框统一走 **Board**(`--border-default` `#d7d7d4`)。
-
-### Neutrals & Text
-
-- **Stone** (`#737373`): Secondary body text, footer links, and de-emphasized content. The primary "muted" tone.
-- **Mid Gray** (`#525252`): Emphasized secondary text, slightly darker than Stone.
-- **Silver** (`#a3a3a3`): Tertiary text and deeply de-emphasized metadata. **不要用作 placeholder**——太显眼、读着像已填(见 §4 Inputs + §13 G3,placeholder 走 `--text-placeholder` `#c4c4c4`)。
-
-> ~~**Button Text Dark** (`#404040`)~~ —— 已废弃(2026-06,G1)。原称"white-surface 按钮文字专用色",但全仓库无真实按钮使用(只有 experimental 视图裸 hardcode)。White Pill 次按钮文字统一走 **Near Black**(`--text-primary` `#262626`)。
-
-### Semantic & Accent
-
-The grayscale rule is near-absolute. The following are the **only** sanctioned non-gray colors in the system — each tightly scoped to a specific surface. New semantic colors must not be introduced without being recorded here first.
-
-- **Ring Blue** (`#3b82f6` at 50%): Tailwind's default focus ring, used exclusively for keyboard accessibility. Never visible in normal interaction flow.
-- **Thinking Orange** (`#EA6B17`,设计定稿 2026-07-17 取代 `#FF6600` 冻结红线): Used exclusively for the Running Status Bar in ChatView when the Claude Code SDK is actively processing (streaming / tool_use). Applies only to the sparkles icon and status text (e.g. `Spelunking...`); no background fill, no use outside this surface.
-
-> **Additional narrowly-scoped exceptions** (documented in their respective component specs, do NOT generalize as system semantic colors):
->
-> - **Toast Info / Success / Warning / Error** — `#417CDD` / `#2AAE5B` / `#F3A115` / `#D91F37`(E5D 定稿 2026-07-17 扩簇,Toast 豁免解除)used ONLY on the 16×16 lucide icon inside Toast pill notifications. The pill body (background, text, border, close icon) remains strictly grayscale. info 蓝 #417CDD 与 focus-ring/Auto Approval 同值(原 #3B82F6 2026-07-14 增,现定稿);success/warning/error 与全局状态色同值(done 绿/状态 error/warning 前景)。
-> - **ConfirmDialog Danger** — `#EF4444` used ONLY on the confirm button background in the Danger variant. The cancel button and rest of the dialog remain grayscale.
-> - **Permission Selector Mode Highlights** — selected risky permission modes may color only the option text/icon/checkmark and the collapsed trigger text/icon. The selected row background remains grayscale. Auto Approval uses `#417CDD` in both modes(设计定稿 2026-07-17 扩簇,light/dark 同值;取代 light #000050/dark #00D9C5). Full Access uses Heart Orange `#EA6B17` in both modes(随 warning-accent 自动跟随,定稿 2026-07-17). These hex values are the **default-theme palette only** — other themes may override `--perm-auto-selected-text` and `--perm-bypass-selected-text` with their own accent colors, provided both modes remain color-coded, distinguishable from each other, and visually distinct from neutral text. Tokens: `--perm-auto-selected-text` and `--perm-bypass-selected-text` in `apps/desktop/src/renderer/styles/globals.css`.
-> - **Diff Add Green / Diff Del Red** — GitHub-standard diff syntax colors, used on the `+` / `-` symbol glyph, the changed-line text foreground, **and the full row background** inside code-diff renderings. Applied in three places: (1) the Edit-tool DiffView card (F-MSG-6), (2) markdown ````diff` fenced code blocks in the message stream, and (3) `.diff` / `.patch` files opened in TextLightbox (the document previewer) — there hljs `.hljs-addition` / `.hljs-deletion` are forced `display: block` so the background fills to the right edge instead of stopping at the last glyph. Line-number gutter and ctx (unchanged) lines remain strictly grayscale per the layer system. **Foreground** — Add: `#22863a` Light / `#7ee787` Dark; Del: `#b31d28` Light / `#ff7b72` Dark. **Background** — Add: `#f0fff4` Light / `#033a16` Dark; Del: `#ffeef0` Light / `#67060c` Dark. Tokens: `--diff-add-fg/-bg` and `--diff-del-fg/-bg` in `apps/desktop/src/renderer/styles/globals.css`. Updated 2026-04-21: backgrounds switched from grayscale → GitHub red/green for full-row fill so additions / deletions are unambiguous at a glance.
-
-*Dark Mode text uses softened neutrals to reduce eye strain: **Soft Gray** (`#d4d4d4`) for primary text, Stone (`#737373`) for secondary, Silver (`#a3a3a3`) for tertiary. Pure White (`#ffffff`) is reserved for button labels and high-contrast UI elements on dark backgrounds.*
-
-### Gradient System
-
-- **None.** Ollama uses absolutely no gradients. Visual separation comes from flat color blocks and single-pixel borders. This is a deliberate, almost philosophical design choice.
-
-## 3. Typography Rules
-
-### Font Family
-
-- **Display / Body / UI**: `Inter`, with fallbacks: `system-ui, -apple-system, "Segoe UI", sans-serif`
-- **Monospace**: `JetBrains Mono`, with fallbacks: `ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`
-
-*Note: The entire interface uses a single sans font — Inter — for both display headlines and body text. Inter is chosen for (a) its neutral, geometric character that stays out of the way, (b) its excellent legibility at small sizes, and (c) its wide availability in both web and design tooling (including the Pencil .pen editor). A single font keeps the hierarchy clean — separation comes from size and weight, not typeface contrast.*
-
-### Hierarchy
-
-
-| Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
-| --------------- | -------------- | -------------- | ------- | ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| Display / Hero | Inter | 48px (3rem) | 500 | 1.00 (tight) | normal | Maximum impact headline |
-| Section Heading | Inter | 36px (2.25rem) | 500 | 1.11 (tight) | normal | Feature section titles |
-| Sub-heading | Inter | 30px (1.88rem) | 400–500 | 1.20 (tight) | normal | Card headings, feature names |
-| Card Title | Inter | 24px (1.5rem) | 400 | 1.33 | normal | Medium emphasis headings |
-| Body Large | Inter | 18px (1.13rem) | 400–500 | 1.56 | normal | Hero descriptions, button text |
-| Body / Link | Inter | 16px (1rem) | 400–500 | 1.50 | normal | Standard body text, navigation |
-| Caption | Inter | 14px (0.88rem) | 400 | 1.43 | normal | Metadata, descriptions |
-| Small | Inter | 12px (0.75rem) | 400 | 1.33 | normal | Smallest sans-serif text |
-| Micro Label | Inter | 10–13px | 400–500 | 1.20–1.40 | optional 0.5–1px tracking on uppercase | **Auxiliary / non-reading** labels only — sidebar tree section heads (13px), tree row counts, frontmatter field names, scope chips, tag pills, status badges, breadcrumb segments. Never used for body text or anything the user reads sentence-by-sentence. |
-| Code Body | JetBrains Mono | 16px (1rem) | 400 | 1.50 | normal | Inline code, commands |
-| Code Caption | JetBrains Mono | 14px (0.88rem) | 400 | 1.43 | normal | Code snippets, secondary |
-| Code Small | JetBrains Mono | 11–12px | 400–500 | 1.40–1.63 | normal | Tags, labels, in-tree paths |
-
-
-### Principles
-
-- **Single sans family**: Inter carries both display headlines and body text — no typeface switching between hierarchy levels. Size and weight alone create hierarchy, keeping the typographic system maximally simple.
-- **Weight restraint**: Only two weights matter — 400 (regular) for body and 500 (medium) for headings. No bold, no light, no black weight. This extreme restraint reinforces the minimal philosophy.
-- **Tight display, comfortable body**: Headlines compress to 1.0 line-height, while body text relaxes to 1.43–1.56. The contrast creates clear hierarchy without needing weight contrast.
-- **Monospace for code only**: JetBrains Mono is reserved for inline code, terminal commands, and code blocks — never used for UI chrome.
-
-## 4. Component Stylings
-
-### Buttons
-
-**Gray Pill (Primary)**
-
-- Background: Light Gray (`#e5e5e5`)
-- Text: Near Black (`#262626`)
-- Padding: 10px 24px
-- Border: thin solid Light Gray (`1px solid #e5e5e5`)
-- Radius: pill-shaped (9999px)
-- The primary action button — understated, grayscale, always pill-shaped
-
-**White Pill (Secondary)**
-
-- Background: Pure White (`#ffffff`) — `--surface-elevated`
-- Text: Near Black (`#262626`) — `--text-primary`
-- Padding: 10px 24px
-- Border: thin solid Board (`1px solid #d7d7d4`) — `--border-default`
-- Radius: pill-shaped (9999px)
-- Secondary action — visually lighter than Gray Pill
-
-**Black Pill (CTA)**
-
-- Background: Pure Black (`#000000`)
-- Text: Pure White (`#ffffff`)
-- Radius: pill-shaped (9999px)
-- Inferred from "Create account" and "Explore" buttons
-- Maximum emphasis — black on white
-
-### Cards & Containers
-
-- Background: Card (`#ffffff` Light / `#2c2c2a` Dark) or Surface (`#f8f8f6` Light / `#1f1f1e` Dark) depending on layer context
-- Border: thin solid Board (`1px solid #d7d7d4` Light / `1px solid #3c3c3a` Dark) when needed
-- Radius: comfortably rounded (12px) — the container radius (see §5 three-tier scale; 8px is reserved for inner controls like textareas / dropdown rows, pill for interactive elements)
-- Shadow: **none** — zero shadows on any element
-- Hover: likely subtle background shift or border darkening
-
-### Inputs & Forms
-
-- Background: Card (`#ffffff` Light / `#2c2c2a` Dark)
-- Border: `1px solid` Board (`#d7d7d4` Light / `#3c3c3a` Dark)
-- Radius: pill-shaped (9999px) — single-line search inputs and form fields are pill-shaped. **多行输入框(textarea)套不了胶囊**(高框会变形),改用 8px 内层圆角(见 §5 三档圆角)。
-- Focus: Ring Blue (`#3b82f6` at 50%) ring
-- Placeholder: **`--text-placeholder`** slot — **Faded Light** (`#c4c4c4`) Light / **Mid Gray** (`#525252`) Dark — must read as clearly empty, not pre-filled. Silver (`#a3a3a3`) is too prominent against either Card surface (≈5:1 in Dark, ≈2.6:1 in Light) and reads as real input. **所有输入面的 placeholder(chat / ask / settings / plan-action-fb)统一收口于此 slot**(2026-06 G3);非默认主题通过 override `text-placeholder` 表达各自的 placeholder 色。
-
-### Select & Dropdown
-
-- **Trigger**: 同单行输入 —— pill(9999px),Card bg,1px Board 边框,承载当前值 + chevron。
-- **弹出面板**: 是个容器 —— 12px 圆角,Card bg(`--surface-elevated`),1px Board 边框,无阴影(靠 overlay / 层色分隔),内边距 6–8px。
-- **面板宽度必须绑定 trigger 宽度** —— 不许比触发它的控件更窄或更宽。Radix Select 用 `position="popper"` + `width: var(--radix-select-trigger-width)`;其它原语则取 trigger 实测宽度对齐。(反复踩的点:下拉宽度要跟上方一致。)
-- **选项行**: 选中 / 悬浮的高亮底色用 **8px 内层圆角**(见 §5 —— 面板是 12px 容器,行高亮是内层 8px,内层必须比面板小才嵌套协调)。高亮 bg 走 `--surface-hover` / Radix `data-[highlighted]`;选中行给 chip 填充,未选中行透明。
-- **composer 下拉菜单行(模型 / 权限 / + 三个 MorphPopover 菜单)统一规约**(2026-07-22):这三个菜单的所有选项行必须**逐字一致**——横向内边距 `px-3`、圆角 `rounded-[8px]`、hover 与选中底都走**同一个 token `--model-item-hover`**,选中态仅额外靠对勾 + `font-medium` 区分(危险权限档的橙 / 蓝只染**文字**,不改底色)。**为什么不用 `--surface-chip` 做选中底**:cindy 默认皮肤把 `--surface-hover` / `--surface-chip` 调成"压在页面底上"的值,比抬起的弹层面板(`--surface-elevated`)还暗,行高亮会隐形;故菜单行 hover 收口到组件级 token `--model-item-hover`,并在 cindy-dark / cindy-light 里单独 override 到"面板之上一档"(dark 抬亮、light 压深)保证清晰。改这三个菜单的行样式时三处必须同步,不许只改一个导致又不统一。
-
-### Dialog & Modal
-
-参照实现 `components/ui/confirm-dialog.tsx`(通用确认弹窗);新建弹窗沿用它的结构,不另起一套。
-
-- **Overlay**: 全屏遮罩走 `--overlay-modal` token(ConfirmDialog 现用 `neutral-900/40` 硬编码 pair 是历史遗留,**新弹窗一律走 token**,别照抄)。
-- **容器**: 是个容器 —— 12px 圆角(`rounded-xl`),`--confirm-bg`,`--confirm-shadow`,16px 内边距(`p-4`),居中。宽度:确认 / 提示类 ≈ 400px(`max-w-[400px]`);带输入 / 表单的可放宽到 ≈ 460px 并随视口收窄(`min(460px, 100vw-32px)`)。
-- **标题 / 描述**: `--confirm-title` / `--confirm-desc`,medium 字重。
-- **按钮**: pill(9999px);主按钮 = 实心 CTA(`--confirm-btn-primary-*`),次按钮 / 取消 = 描边(`--confirm-btn-secondary-*`,透明底 + Board 边框);底部 `justify-end`。
-- **打开时焦点**: 落在该弹窗的**主输入或主按钮**,不要默认停在取消键(见 §14.2 + ConfirmDialog 的 `autoFocusConfirm` / `onOpenAutoFocus`)。
-
-### Navigation
-
-- Clean horizontal nav with minimal elements
-- Logo: Ollama llama icon + wordmark in black
-- Links: "Models", "Docs", "Pricing" in black at 16px, weight 400
-- Search bar: pill-shaped with placeholder text
-- Right side: "Sign in" link + "Download" black pill CTA
-- No borders, no background — transparent nav on white page
-
-### Image Treatment
-
-- The Ollama llama mascot is the only illustration — black line art on white
-- Code screenshots/terminal outputs shown in bordered containers (12px radius)
-- Integration logos displayed as simple icons in a grid
-- No photographs, no gradients, no decorative imagery
-
-### Distinctive Components
-
-**Tab Pills**
-
-- Pill-shaped tab selectors (e.g., "Coding" | "OpenClaw")
-- Active: Light Gray bg; Inactive: transparent
-- All pill-shaped (9999px)
-
-**Model Tags**
-
-- Small pill-shaped tags (e.g., "ollama", "launch", "claude")
-- Light Gray background, dark text
-- The primary way to browse models
-
-**Terminal Command Block**
-
-- Monospace code showing `ollama run` commands
-- Minimal styling — just a bordered 12px-radius container
-- Copy button integrated
-
-**Integration Grid**
-
-- Grid of integration logos (Codex, Claude Code, OpenCode, LangChain, etc.)
-- Each in a bordered pill or card with icon + name
-- Tabbed by category (Coding, Documents & RAG, Automation, Chat)
-
-## 5. Layout Principles
-
-### Spacing System
-
-- Base unit: 8px
-- Scale: 4px, 6px, 8px, 9px, 10px, 12px, 14px, 16px, 20px, 24px, 32px, 40px, 48px, 88px, 112px
-- Button padding: 10px 24px (consistent across all buttons)
-- Card internal padding: approximately 24–32px
-- Section vertical spacing: very generous (88px–112px)
-
-### Grid & Container
-
-- Max container width: approximately 1024–1280px, centered
-- Hero: centered single-column with llama illustration
-- Feature sections: 2-column layout (text left, code right)
-- Integration grid: responsive multi-column
-- Footer: clean single-row
-
-### Whitespace Philosophy
-
-- **Emptiness as luxury**: The page is remarkably short and sparse — no feature section overstays its welcome. Each concept gets minimal but sufficient space.
-- **Content density is low by design**: Where other AI companies pack feature after feature, Ollama presents three ideas (run models, use with apps, integrations) and stops.
-- **The white space IS the brand**: Pure white space with zero decoration communicates "this tool gets out of your way."
-
-### Border Radius Scale
-
-三档圆角,**仅此三档**:
-
-- **Inner control (8px)**: 窄第三档,**只**给"做不成胶囊"的小交互件:多行输入框(textarea)、下拉 / 菜单的选中行高亮、段内小单元格。实现为 Tailwind `rounded-lg`(8px)。
-- **Container (12px)**: 盒子圆角 — 代码块、卡片、面板、弹窗。实现为 Tailwind `rounded-xl`(12px)。
-- **Pill (9999px)**: 能套胶囊的所有交互件 — 按钮、Tab、单行输入、标签、徽标。
-
-*没有 4px / 6px / 10px,也不开放任意圆角。绝大多数元素仍只在 12px 容器和 pill 里二选一;8px 是给"塞不进胶囊的小控件"的窄例外。注意嵌套:8px 行高亮套在 12px 面板里时,内层圆角必须比容器小才协调(所以是 8 而非 12),做成胶囊则会变成药丸、做成 12px 会显得鼓。*
-
-## 6. Depth & Elevation
-
-
-| Level | Treatment | Use |
-| ------------------ | ------------------------------------------------------------------------- | ---------------------------------------------- |
-| Flat (Level 0) | No shadow, no border | Surface background, most content |
-| Bordered (Level 1) | `1px solid` Board (`#d7d7d4` Light / `#3c3c3a` Dark) | Cards, code blocks, dividers, section outlines |
-| Lifted (Card) | Card fill (`#ffffff` Light / `#2c2c2a` Dark) + optional 1px Board outline | Login cards, modals, raised panels |
-
-
-**Shadow Philosophy**: Ollama uses **zero shadows**. This is not an oversight — it's a deliberate design decision. Every other major AI product site uses at least subtle shadows. Ollama's flat, shadowless approach creates a paper-like experience where elements are distinguished purely by background color and single-pixel borders. Depth is communicated through **content hierarchy and typography weight**, not visual layering.
-
-## 7. Do's and Don'ts
-
-### Do
-
-- Use Surface (`#f8f8f6` Light / `#1f1f1e` Dark) as the page background — every page starts here
-- Use pill-shaped (9999px) radius on all interactive elements — buttons, tabs, inputs, tags
-- Use 12px radius on all non-interactive containers — code blocks, cards, panels
-- Use 8px radius only for inner controls that can't be a pill — multi-line inputs, dropdown/menu rows (see §5)
-- Keep the palette strictly grayscale — no chromatic colors except the blue focus ring
-- Use Inter at weight 500 for display headings — hierarchy comes from size + weight, not typeface switching
-- Maintain zero shadows — depth comes from borders and background shifts only
-- Keep content density low — each section should present one clear idea
-- Use monospace for terminal commands and code — it's primary content, not decoration
-- Keep all buttons at 10px 24px padding with pill shape — consistency is absolute
-
-### Don't
-
-- Don't introduce any chromatic color — no brand blue, no accent green, no warm tones
-- Don't invent arbitrary radii — only three values exist: 8px (inner controls), 12px (containers), 9999px (pill). Nothing in between, nothing else.
-- Don't add shadows to any element — the flat aesthetic is intentional
-- Don't use font weights above 500 — no bold, no black weight
-- Don't add decorative illustrations beyond the llama mascot
-- Don't use gradients anywhere — flat blocks and borders only
-- Don't overcomplicate the layout — two columns maximum, no complex grids
-- Don't use borders heavier than 1px — containment is always the lightest possible touch
-- Don't add decorative or large-motion animation — no bounce, parallax, looping, or gratuitous movement. Short **functional** state transitions (color / background / opacity, ≤150ms) are fine and expected — see §14.4.
-
-## 8. Responsive Behavior
-
-### Breakpoints
-
-
-| Name | Width | Key Changes |
-| ------------- | ----------- | ------------------------------------------------ |
-| Mobile | <640px | Single column, stacked everything, hamburger nav |
-| Small Tablet | 640–768px | Minor adjustments to spacing |
-| Tablet | 768–850px | 2-column layouts begin |
-| Desktop | 850–1024px | Standard layout, expanded features |
-| Large Desktop | 1024–1280px | Maximum content width |
-
-
-### Touch Targets
-
-- All buttons are pill-shaped with generous padding (10px 24px)
-- Navigation links at comfortable 16px size
-- Minimum touch area easily exceeds 44x44px
-
-### Collapsing Strategy
-
-- **Navigation**: Collapses to hamburger menu on mobile
-- **Feature sections**: 2-column → stacked single column
-- **Hero text**: 48px → 36px → 30px progressive scaling
-- **Integration grid**: Multi-column → 2-column → single column
-- **Code blocks**: Horizontal scroll maintained
-
-### Image Behavior
-
-- Llama mascot scales proportionally
-- Code blocks maintain monospace formatting
-- Integration icons reflow to fewer columns
-- No art direction changes
-
-## 9. Agent Prompt Guide
-
-### Quick Color Reference
-
-- Primary Text: "Pure Black (#000000)" Light / "Soft Gray (#d4d4d4)" Dark
-- **Surface** (page bg): "Light Surface (#f8f8f6)" / "Dark Surface (#1f1f1e)"
-- **Card** (elevated layer): "Pure White (#ffffff)" / "Dark Card (#2c2c2a)"
-- **Board** (1px dividers/borders): "Light Board (#d7d7d4)" / "Dark Board (#3c3c3a)"
-- Secondary Text: "Dark Gray (#525252)" Light / "Silver (#a3a3a3)" Dark
-- Tertiary Text: "Stone (#737373)" Light / "Stone (#737373)" Dark
-- Near Black: (#262626) — Light primary reading text
-- Chip/Button Background: "Light Gray (#e5e5e5)" Light / "Dark Chip (#2c2c2a)" Dark
-
-### Example Component Prompts
-
-- "Create a hero section on Surface (#f8f8f6) with an illustration centered above a headline at 48px Inter weight 500, line-height 1.0. Use Pure Black (#000000) text. Below, add a black pill-shaped CTA button (9999px radius, 10px 24px padding) and a gray pill button."
-- "Design a code block with a 12px border-radius, 1px solid Board (#d7d7d4 Light / #3c3c3a Dark) border on Card background. Use JetBrains Mono at 16px for the terminal command. No shadow."
-- "Build a tab bar with pill-shaped tabs (9999px radius). Active tab: Light Gray (#e5e5e5) background, Near Black (#262626) text. Inactive: transparent background, Stone (#737373) text."
-- "Create an integration card grid. Each card is a bordered pill (9999px radius) or a 12px-radius card with 1px solid Board (#d7d7d4) border. Icon + name inside. Grid of 4 columns on desktop."
-- "Design a navigation bar: transparent background, no border. Ollama logo on the left, 3 text links (Pure Black, 16px, weight 400), pill search input in the center, 'Sign in' text link and black pill 'Download' button on the right."
-
-### Iteration Guide
-
-1. Focus on ONE component at a time
-2. Keep all values grayscale — "Stone (#737373)" not "use a light color"
-3. Always specify radius from the three tiers — pill (9999px) / container (12px) / inner control (8px, only for textareas & dropdown rows). Nothing else.
-4. Shadows are always zero — never add them
-5. Weight is always 400 or 500 — never bold
-6. If something feels too decorated, remove it — less is always more for Ollama
-
-## 10. Theme System & Token Reference
-
-### Light / Dark 双模式交付门槛
-
-- **所有 UI 必须同时支持 Light 与 Dark 两种模式。**新增或修改页面、组件、布局、样式、
- 动效或 UI 文案时,必须在同一项工作中完成两种模式;只设计、只实现或只验证一种模式,
- 均视为未完成。
-- 两种模式都必须覆盖本次改动涉及的默认态、hover、pressed、selected、focus、disabled、
- loading、empty、error、弹层与遮罩等实际状态;没有涉及的状态不要求为凑检查而改造。
-- 颜色必须通过语义 token 消费,禁止用仅适配一种模式的硬编码色值或条件分支补丁。设计稿
- 只提供一种模式时,也必须按现有 token 体系补齐另一种模式;若缺少明确的语义映射,先请求
- 设计裁决,不得省略另一种模式。
-- 交付前至少对本次受影响界面的 Light 与 Dark 模式分别完成验证,并在提交或 PR 的验证说明
- 中如实记录;任一模式存在不可读、不可辨、状态缺失或明显视觉回退时,不得视为完成。
-
-### 架构
-
-Cindy 桌面端用 **VSCode 风格的 ColorRegistry + Theme override** 模型管理颜色。所有颜色都通过 CSS variable 以 token 形式被组件消费,**永远不允许在组件里硬编码 hex / rgba**(违反规则会让该组件在非默认主题下无法切色)。
-
-源码:`apps/desktop/src/renderer/themes/`
-- `color-registry.ts` — `ColorRegistry` 单例和 `registerColor(id, defaults, description)` API
-- `colors.ts` — 注册全部 token(目前 352 个:40 semantic slot + 228 alias + 84 singleton),按"semantic slot 在前,alias 和 singleton 在后"组织
-- `theme-service.ts` — `applyTheme(theme)` 把所有 token 序列化成 `:root{}` 注入 `<style id="theme-vars">`
-- `builtin/` — 内置主题对象(`cindy-light.ts` / `cindy-dark.ts` / `eclipse.ts` / `default-light.ts` / `default-dark.ts` 及各社区配色)
-- `registry.ts` — `builtinThemes` 注册表 + `listThemesByType('light' | 'dark')`
-
-切主题:`useTheme.ts` 提供 `theme`(System / Light / Dark mode) + `lightThemeId` / `darkThemeId`(具体哪套主题)。Settings → Appearance 是 UI 入口。
-
-### Token 分层
-
-**Tier 1 — Semantic slot (39 个)**:跨语境复用的核心语义槽,加新主题时这一层是 override 的主战场。
-
-| 类目 | Slot | Ollama Light | Ollama Dark | 主要用途 |
-|---|---|---|---|---|
-| **Surface (12)** | `--surface` | `#f8f8f6` | `#1f1f1e` | 页面 Surface(hex 形式) |
-| | `--surface-hsl` | `60 12.5% 97%` | `60 2% 12%` | 同上 HSL 形式,`hsl(var(--xxx))` 消费 |
-| | `--surface-elevated` | `#ffffff` | `#2c2c2a` | Card 抬一层 / 弹窗 / popover |
-| | `--surface-elevated-soft` | `#e5e5e5` | `#2c2c2a` | Disabled 状态 Card |
-| | `--surface-card-ivory` | `#faf9f5` | `#2c2c2a` | Settings 微暖 ivory Card |
-| | `--surface-chip` | `#e5e5e5` | `#3c3c3a` | Chip / pill / 选中行 |
-| | `--surface-chip-alt` | `#e5e5e5` | `#2c2c2a` | Chip 暗态塌缩到 Card 变体 |
-| | `--surface-hover` | `#e5e5e5` | `#3c3c3a` | 通用 hover bg |
-| | `--surface-hover-soft` | `#f8f8f6` | `#3c3c3a` | 柔和 hover bg |
-| | `--surface-hover-hsl` | `0 0% 90%` | `60 2% 17%` | hover HSL 形式 |
-| | `--surface-on-card` | `#ffffff` | `#1f1f1e` | CTA / checked icon 深色前景 |
-| **Border (4)** | `--border-default` | `#d7d7d4` | `#3c3c3a` | 本规范 Board 1px 边框 |
-| | `--border-default-hsl` | `60 3% 84%` | `60 2% 23%` | Board HSL 形式 |
-| | `--border-shadcn-hsl` | `0 0% 90%` | `30 4% 28%` | shadcn input/border HSL |
-| | `--border-transparent-mixed` | `transparent` | `#3c3c3a` | progress track 等单边边框 |
-| **Text (16)** | `--text-primary` | `#262626` | `#d4d4d4` | 主标题 / 主正文 |
-| | `--text-primary-hsl` | `0 0% 9%` | `0 0% 83%` | Primary HSL 形式 |
-| | `--text-primary-on-dark` | `#262626` | `#ffffff` | 反相文本(stop button icon 等) |
-| | `--text-primary-emphasis` | `#1a1a1a` | `#d4d4d4` | Plan 强调主文字 |
-| | `--text-primary-inv` | `#1a1a1a` | `#ffffff` | Plan-action approve text |
-| | `--text-primary-body-strong` | `#525252` | `#d4d4d4` | Plan content body 加重 |
-| | `--text-secondary` | `#737373` | `#a3a3a3` | Secondary 文字 / icon |
-| | `--text-secondary-cross` | `#a3a3a3` | `#a3a3a3` | 跨主题更浅 secondary |
-| | `--text-secondary-mid` | `#525252` | `#a3a3a3` | Muted body 文字 |
-| | `--text-tertiary` | `#a3a3a3` | `#737373` | Placeholder / tertiary |
-| | `--text-tertiary-stone` | `#737373` | `#737373` | Stone 跨主题三级 |
-| | `--text-tertiary-mid` | `#525252` | `#737373` | Mid-gray tertiary |
-| | `--text-tertiary-hsl` | `0 0% 45%` | `0 0% 45%` | Tertiary HSL |
-| | `--text-disabled` | `#d4d4d4` | `#525252` | Disabled / failed |
-| | `--text-disabled-tertiary` | `#a3a3a3` | `#737373` | Disabled placeholder 变体 |
-| | `--text-placeholder` | `#c4c4c4` | `#525252` | 统一 placeholder slot(比 tertiary 更淡,读着像空);chat/ask/settings/plan-action-fb 输入框 placeholder 均收口于此 |
-| **Accent (7)** | `--accent-cta-bg` | `#262626` | `#ffffff` | 反相 CTA bg |
-| | `--accent-cta-bg-pure` | `#000000` | `#ffffff` | Pure CTA bg |
-| | `--accent-emphasis` | `#262626` | `#d4d4d4` | settings primary button 等 |
-| | `--accent-soft` | `#262626` | `#ffffff` | Soft accent(folder btn 等) |
-| | `--accent-hover` | `#262626` | `#e5e5e5` | CTA pressed/hover |
-| | `--accent-pure-cta-fg` | `#ffffff` | `#000000` | CTA 文字 pure 反相 |
-| | `--accent-fg-on-pure` | `#ffffff` | `#1f1f1e` | CTA 文字 light 白 / dark 沉 |
-
-**Tier 2 — Alias (228 个)**:大量 component-scoped token(如 `--cmd-palette-bg`、`--msg-tool-card-text`、`--settings-input-border`)的 default 改写为 `var(--slot)`。浏览器自动 forward-resolve。组件不感知,**继续直接消费 alias 名字即可**。
-
-**Tier 3 — Singleton (84 个)**:真独立的色值,无法收敛到 slot:语义豁免色(`--destructive` / `--diff-add-*` / `--status-bar-accent` 等)、平台特定色、splash 时长、`--radius` 等非颜色 token。
-
-### 语义豁免色(跨主题不变)
-
-| Token | Light | Dark | 用途 |
-|---|---|---|---|
-| `--destructive` (HSL) | `0 84% 60%` | `0 72% 63%` | 通用 destructive 文本/边 |
-| `--login-error-text` 等 5 个 | `#ef4444` | `#ef4444` | 错误文本 |
-| `--error-bg/-border/-fg/-fg-strong` | (red) | (red) | Error alert 卡片子系统 |
-| `--diff-add-fg/-bg`, `--diff-del-fg/-bg` | GitHub palette | GitHub palette | Diff 渲染 |
-| `--status-bar-accent` | `#EA6B17` | `#EA6B17` | Thinking Orange,跨主题统一(定稿 2026-07-17) |
-| `--plan-action-approve-icon-bg` | `#EA6B17` | `#EA6B17` | Plan approve,同 thinking 语义(随 warning-accent,定稿 2026-07-17) |
-| `--perm-bypass-selected-text` | `#EA6B17` | `#EA6B17` | Heart Orange,permission 语义(var(--warning-accent) 自动跟随,定稿 2026-07-17) |
-| `--settings-integration-warning` | `#EA6B17` | `#EA6B17` | warning 语义(var(--warning-accent) 自动跟随,定稿 2026-07-17) |
-| `--warning-bg-soft` | rgba(255,102,0,0.12) | rgba(255,102,0,0.18) | Warning alpha surface |
-| `--focus-ring` / `--focus-ring-soft` | `#417CDD` / @50% | 同左 | a11y 焦点 ring,定稿 2026-07-17(取代 #3b82f6),跨主题统一 |
-| `--shadow-menu` / `--cmd-palette-shadow` / `--confirm-shadow` | rgba | rgba(更深) | Shadow,跨主题统一 |
-| `--overlay-modal` / `--overlay-lightbox` | rgba | rgba(更深) | Modal / lightbox backdrop |
-| `--perm-auto-selected-text` | `#417CDD` | `#417CDD` | Auto Approval accent,定稿 2026-07-17(light/dark 同值,取代 #000050/#00D9C5) |
-| Toast `#417CDD / #2AAE5B / #F3A115 / #D91F37` | (在 Toast.tsx hardcode,已导出 VARIANT_MAP) | 同左 | E5D 定稿 2026-07-17(Toast 豁免解除,并入状态色族) |
-
-实现组件时**永远不要在硬编码 hex 上自由发挥这些语义色**——必须走对应 token。
-
-### 内置主题
-
-当前实现以 `apps/desktop/src/renderer/themes/registry.ts` 的 `builtinThemes` 为准,新增/移除主题不要求同步本文档。默认的 light/dark 主题(基础主题)就是本文 §2 列的色值。
-
-### 新主题怎么加(完整流程)
-
-1. 新建 `apps/desktop/src/renderer/themes/builtin/<id>.ts`,导出 `Theme` 对象:
- ```ts
- export const myTheme: Theme = {
- id: 'my-theme',
- name: 'My Theme',
- type: 'light' | 'dark',
- colors: {
- // 只 override 跟基础主题不同的 token,空对象 {} 也合法(完全等于基础主题)
- 'surface': '#xxx',
- 'text-primary': '#xxx',
- // ... 大概率只需要 override 30-90 个 token
- },
- };
- ```
-2. 注册到 `themes/registry.ts` 的 `builtinThemes`
-3. 设置页 Appearance 的 Light/Dark Theme dropdown 自动 pick up
-
-参考 `themes/builtin/` 下任一已存在的非默认主题作为模板。
-
-### Token 命名约定
-
-- **slot**:`{category}-{subkind}[-{variant}]`,如 `text-primary-emphasis` / `surface-chip-alt`。`-hsl` 后缀表示 HSL 三元组形式。
-- **alias**:沿用历史 component-scoped 命名(`--cmd-palette-bg` / `--settings-back-text` 等),无前缀。
-- **singleton**:语义清晰即可,通常带 component 前缀。
-
-CSS variable 名一律 kebab-case。点号风格(如 VSCode 的 `sidebar.itemActive`)由于 CSS variable 不支持暂未采用。
-
-### 实现新 UI 时的 token 选择规则
-
-1. **先 grep `colors.ts`**:你的 UI 类型常对应已有 slot/alias(card bg = `--cmd-palette-bg` / `--surface-elevated`,等)
-2. **slot 优先**:能用 slot 就别用 component-scoped alias(slot 跨主题表现更可控)
-3. **HSL token 必须 wrap**:`hsl(var(--background))` 不能写成 `var(--background)`(后者会得到原始 HSL 字符串,不是合法 CSS color)
-4. **找不到合适 token 时,不要硬塞**:跟用户讨论是否要新增 slot/singleton
-5. **不接受** `bg-[#xxx] dark:bg-[#xxx]` 这种硬编码 pair——这是 P2 前的反模式,已经全量迁移过一次,新代码不允许引入
-
-本节即 token 使用规则的权威正文;UI 文案的 i18n 落地规则见
-`docs/dev-rules/engineering-conventions.md` §5。
-
-## 11. Voice & Content(微文案规范)
-
-> **状态:草案**,2026-06 引入(参考 Vercel Geist `design.md` 的 Voice & Content 一节)。本节规定**界面文案怎么写**,与 `docs/dev-rules/engineering-conventions.md` §5(i18n 体系)配套——那边管"文案必须 4 语言对齐、经 i18n key 落地",本节管"每条文案本身的语气/措辞"。本节不新增任何 UI 字符串,只约束写法。
-
-Cindy 的产品气质和视觉一致:**克制、直接、不自夸**。文案是工具的一部分,不是营销。
-
-### 11.1 语言无关原则(zh-CN / en / ja / ko 全部适用)
-
-- **动作 = 动词 + 宾语,不要裸动词**。按钮/菜单项说清"对什么做什么":`Deploy Project` / `删除会话` / `セッションを削除`,**禁止** `Confirm` / `OK` / `确定` / `提交` 这类无宾语的孤立动词(确认弹窗的主按钮尤其要带宾语,让用户脱离上下文也能看懂)。
-- **错误信息 = 发生了什么 + 怎么办**。只报"出错了 / Failed"不合格;要给出下一步("连接超时,检查网络后重试")。对应 `docs/dev-rules/engineering-conventions.md` §2(IPC 错误协议):IPC 错误码是给代码用的,面向用户的那句话必须人话 + 可操作。
-- **进行中态 = 现在进行时 + 省略号**。`Deploying…` / `正在部署…` / `デプロイ中…`。我们 ChatView 的 Thinking 状态栏(`Spelunking…`,Thinking Orange)已是这个范式,新增加载/处理态沿用。
-- **结果反馈点名对象、不说"成功"**。Toast 说"变了什么"而不是"操作成功了":`会话已删除` 而非 `删除成功`;`Project deleted` 而非 `Deleted successfully`。**禁止** "successfully / 成功了" 这类废话词。(Toast 的视觉规范见 §2,本条只管文案。)
-- **空状态指向第一个动作**,别只画一句"暂无数据"——告诉用户现在能做什么("还没有会话,点 + 新建一个")。
-- **不卑不亢,但分语言**:英文不写 "Please"(界面不是在求用户)。**中文的"请"是地道礼貌用法,不在此列**——"请输入…""请先授权""请选择文件"这类该保留,不要为了套规则把中文改得生硬。两种语言都不写营销级形容词("强大的 / 极致 / 全新")。
-
-### 11.2 各语言的大小写与标点(语言相关,不可照搬)
-
-- **English**:标签 / 按钮 / 标题 / Tab 用 **Title Case**(`Deploy Project`);正文 / 帮助文字 / Toast 用 **sentence case**(只首字母大写)。用弯引号 `" "` 和省略号字符 `…`,不用 `"` 和 `...`。
-- **zh-CN**:**没有 Title Case 概念**,不要逐词首字母大写、不要给中文塞英文式标点;中英混排时英文术语保留原样(`部署 Project`)。句末 Toast / 标签不加句号。
-- **ja / ko**:同样无 Title Case;遵循各自的助词/敬体习惯,术语译法没把握时先查证(对应 `docs/dev-rules/engineering-conventions.md` §5:ja/ko 不许硬凑)。
-- **数字 / 单位**:四语言都用阿拉伯数字 + 半角,数字与单位间距按各语言习惯。
-
-### 11.3 自查清单(改动文案时)
-
-- [ ] 动作按钮带宾语,不是裸 `确定` / `OK`
-- [ ] 错误文案给了"怎么办",不是只报错
-- [ ] 没有 "successfully / 成功" 废话词
-- [ ] 进行中态是"现在进行时 + …"
-- [ ] 4 个 `common.json` 都补齐且符合本语言的大小写/标点(见 `docs/dev-rules/engineering-conventions.md` §5)
-
-## 12. Component Spec(结构化样板 — 待定)
-
-> **状态:样板,待你 review。** 本节是把 §4 组件散文规格改写成 **Vercel `design.md` 那种「可机读 / 可执行」结构化键值**的试点,先做 Buttons / Inputs / Cards 三个。**确认采用后,就地替换 §4 的散文描述并删除本节**;不采用则整节删掉,§4 不受影响。
->
-> 读法:`字段 → token → Default Light / Default Dark 解析值`。token 名以 §10 表为准;`⚠` 标记"规范里有值但 §10 暂无对应 token / 字段在 §4 未定义"的缺口——这正是结构化格式相对散文的价值:把隐性缺口显性化。
-
-```
-button/primary (Gray Pill — 主按钮)
- fill --surface-chip #e5e5e5 / #3c3c3a
- text --text-primary #262626 / #d4d4d4
- border 1px solid --surface-chip (同 fill)
- radius 9999px (pill)
- padding 10px 24px
- height ⚠ §4 未定义(§4 仅给 padding)
-
-button/secondary (White Pill — 次按钮)
- fill --surface-elevated #ffffff / #2c2c2a
- text --text-primary #262626 / #d4d4d4 (G1 已解决:原 #404040「Button Text Dark」是漂移)
- border --border-default #d7d7d4 / #3c3c3a (G2 已解决:原 #d4d4d4「Border Light」是漂移)
- radius 9999px (pill)
- padding 10px 24px
-
-button/cta (Black Pill — 最高强调)
- fill --accent-cta-bg-pure #000000 / #ffffff
- text --accent-pure-cta-fg #ffffff / #000000
- radius 9999px (pill)
- padding 10px 24px
-
-input/text
- fill --surface-elevated #ffffff / #2c2c2a
- text --text-primary #262626 / #d4d4d4
- border --border-default #d7d7d4 / #3c3c3a
- radius 9999px (pill)
- focus --focus-ring #3b82f6 @50%(双层带缝 ring 见外部讨论 ③,待定)
- placeholder --text-placeholder #c4c4c4 / #525252 (G3 已解决:新增统一 slot,4 个输入面 alias 全部收口)
-
-card/container
- fill --surface-elevated #ffffff / #2c2c2a (页面级 flat 布局下改用 --surface,见 §2 layer rule)
- border 1px solid --border-default #d7d7d4 / #3c3c3a (需要分隔时才加)
- radius 12px (Tailwind rounded-xl,直接量) — 容器档圆角(三档之一,见 §5;8px 仅内层控件 textarea / 下拉行,pill 给交互件)
- ⚠ 不要用 §10 的 --radius:那是 shadcn 原语用的 0.5rem(8px),与本 12px 容器圆角是两回事
- shadow none
- hover --surface-hover #e5e5e5 / #3c3c3a (§4 原文是「likely」,此处给出可用 token)
-```
-
-## 13. Known Spec / Token Gaps(跟踪中)
-
-> §12 结构化重写过程中暴露的设计系统欠债。本节**持久存在**(独立于 §12 是否被采用),每条解决后打勾并把结论并入 §2 / §4 / §10。下列"现状"均已 grep 源码核实(以源码为准),非臆测。涉及新增/改 token 的(G3 / G4)按第 10 节的 token 规则须先与 owner 确认再动 `colors.ts`。
-
-- [x] **G1 — 白底次按钮文字 `#404040`「Button Text Dark」是文档漂移,非真 token**(已解决 2026-06)
- 现状:§2 / §4 称其"专用于白底按钮文字",但全仓库只有 `features/maker-experimental/MakerExperimentalView.tsx`(实验视图,裸 hardcode)出现 #404040,**无任何真实次按钮**用它做文字色;§10 也无对应 token。
- 处理:§2 标废弃、§4 White Pill 文字改引 `--text-primary`(#262626)。未动 token,纯文档。
-
-- [x] **G2 — 次按钮边框 `#d4d4d4`「Border Light」同为漂移**(已解决 2026-06)
- 现状:§4 称白底按钮边框 `1px solid #d4d4d4`,但无真实组件这么用;#d4d4d4 的线上出现要么在实验视图(裸 hardcode),要么是**暗色主文字**(`--text-primary` dark = #d4d4d4,如 SchedulerPage CTA 注释),与"边框"无关。真边框 token 是 `--border-default`(#d7d7d4)。
- 处理:§2 标废弃、§4 White Pill 边框改引 `--border-default`(#d7d7d4)。纯文档。
-
-- [x] **G3 — placeholder token 碎片化 + 取值自相矛盾(真欠债)**(已解决 2026-06)
- 现状:4 个 per-surface alias 无统一 slot,且取值打架——`--settings-input-placeholder` = #c4c4c4(§4 认证的"淡到读着像空"),但 `--chat-input-placeholder` = `var(--text-tertiary)` = **#a3a3a3(Silver)**,而 §4 白纸黑字说 Silver **太显眼、读着像已填、不可做 placeholder**。即聊天输入框 placeholder 实际违反了我们自己的 §4 规范。
- 处理:`colors.ts` 新增语义 slot `--text-placeholder`(#c4c4c4 / #525252),4 个 alias(chat/ask/settings/plan-action-fb)default 收口为 `var(--text-placeholder)`;7 套非默认主题原 `settings-input-placeholder` override 就地改名为 `text-placeholder`(沿用原常量,避免回退,符合第 10 节对每套主题的 override 评估)。默认主题下 chat placeholder 由 #a3a3a3 修正为 #c4c4c4。2 套亮色主题(atom-one-light / solarized-light)的 `text-placeholder` 进一步从 tertiary 改用各自 **disabled 档**(更淡)——亮色背景下 tertiary≈2.6:1 命中 §4 禁用 Silver 的对比度,placeholder 须更淡才读着像空(2026-06 review 反馈)。**本地/复制主题兼容**:slot 引入前创建的本地主题快照只冻结了旧 per-surface placeholder key、无 `text-placeholder`,加载期 `mapWireTheme` 经 `local-themes-normalize.ts` 归一化——缺 `text-placeholder` 时从旧 `settings-input-placeholder`(或任一 per-surface 值)播种并丢弃 4 个旧 per-surface override,使四个输入面统一走新 slot(不改写盘上 JSON、幂等;2026-06 review 反馈)。
-
-- [x] **G4 — `--radius`(8px)与容器圆角同名不同义(已解决 2026-06)**
- 现状:`--radius` 实为 `0.5rem`(8px,shadcn 原语用);容器 12px 圆角实际靠 Tailwind `rounded-xl` 直接量实现。
- 处理:**圆角体系正式从"二元"改为"三档"**(8px 内层控件 / 12px 容器 / 9999px pill,见 §5 + §7 + §1)。8px 这一档窄范围限定多行输入框、下拉 / 菜单选中行、段内小单元,实现为 `rounded-lg`;shadcn `--radius`(8px)与这个内层档数值相同但语义独立(原语专用),容器仍走 `rounded-xl`(12px)。**本次纯文档,未动 token**。是否进一步 token 化为 `--radius-inner`(8px)/ `--radius-container`(12px)/ `--radius-pill`(9999px),收益偏低、**暂缓**,要做走第 10 节的新增 token 流程。
-
-> **旁注(不在本次范围,仅记录)**:`MakerExperimentalView.tsx` 通篇裸 hardcode hex(#404040 / #d4d4d4 / #262626 / #333),违反第 10 节 token 规则。因是 experimental 视图、且非本次任务,**不在此清理**,仅备忘。
-
-## 14. Interaction Conventions(交互约定)
-
-> 2026-06 引入。本规范此前只规范"长什么样"(色 / 圆角 / 字体 / 间距),不规范"怎么交互"——文本能不能选中、弹窗开了焦点落哪、回车是发送还是换行,这些反复要靠人逐个指出。本节把这些**非视觉的交互行为**钉成全局约定,与 §11(文案语气)互补。能用代码统一保证的就别靠人记(对应 `docs/dev-rules/maker-core-and-agent-behavior.md` 的「代码优先确定性」)。
-
-### 14.1 文本可选性(user-select)
-
-- **正文内容可选**:消息气泡正文、代码块、文档预览、用户会"读句子 / 想复制"的文字 —— 默认可选,不要动。
-- **Chrome 不可选**:按钮、菜单项、标签 / chip、状态条、徽标、工具条、侧栏项这类**界面骨架文字**一律 `select-none`。它们是控件不是内容,能被选中只会碍事(典型:goal 状态 chip 的文字)。
-- 判断标准:用户会想"复制这段话"吗?会 → 可选;不会(它只是个控件)→ `select-none`。
-
-### 14.2 焦点管理(focus)
-
-- 弹窗 / 抽屉 / popover 打开时,焦点落到**首要输入框**(没有输入框则落主按钮),**不要**默认停在"取消"上。Radix 默认会聚焦第一个可聚焦元素 / Cancel —— 用 `onOpenAutoFocus`(`preventDefault()` + 手动 `focus()`)或 ConfirmDialog 的 `autoFocusConfirm` 覆盖。
-- 关闭后焦点归还触发它的元素(Radix 默认行为,别破坏)。
-
-### 14.3 键盘与输入法(发送型文本框)
-
-适用于"敲完就发"的提交型文本框:聊天 composer、目标输入、ask 输入等。**不含**普通设置项里的单行编辑框 —— 那种 Enter 不应触发提交。
-
-- **Enter = 提交**,**Shift+Enter = 换行**。
-- **输入法组字期间的 Enter 不触发提交** —— 判 `event.nativeEvent.isComposing`(中 / 日 / 韩用户选字按的回车不能被当成发送)。
-- 这套逻辑用代码统一,不要每个框各写一遍导致行为漂移(对应 `docs/dev-rules/maker-core-and-agent-behavior.md` 的「代码优先确定性」)。
-
-### 14.4 动效与过渡(motion)
-
-> 2026-07 扩写。Cindy 的动效性格承接 §1 / §7 的纸感与克制:**东西不飞不弹,只淡入、只轻推、只平滑改变尺寸**。允许功能性状态过渡,禁止装饰性动效;本节把"功能性"钉成可执行的档位与原型,避免各组件时长/曲线各自为政。
-
-#### Motion token(唯一档位来源)
-
-全局 token 定义在 `apps/desktop/src/renderer/styles/globals.css` 的 `:root`;移动端(`apps/mobile`)应在 `src/theme/tokens.ts` 落同名同值常量(双端同构,与颜色 token 的双端策略一致,随移动端动效改造落地)。**新增过渡/动画一律引用 token,不再硬编码时长与 cubic-bezier**;5 档时长 + 3 条曲线,与 §5 三档圆角同一哲学,档位之外的值先过设计评审。
-
-| Token | 值 | 用途 |
-|---|---|---|
-| `--motion-instant` | 80ms | hover 即时反馈、轻浮层退场 |
-| `--motion-fast` | 150ms | 颜色/透明度状态切换(`transition-colors` 即此档)、轻浮层入场 |
-| `--motion-base` | 200ms | 尺寸变化:展开折叠、面板收展 |
-| `--motion-enter` | 250ms | 重浮层(弹窗)入场 |
-| `--motion-exit` | 150ms | 重浮层(弹窗)退场 |
-| `--motion-ease-out` | `cubic-bezier(0.16, 1, 0.3, 1)` | 入场/展开 |
-| `--motion-ease-in` | `cubic-bezier(0.4, 0, 1, 1)` | 退场 |
-| `--motion-ease-move` | `cubic-bezier(0.4, 0, 0.2, 1)` | 位置/尺寸插值 |
-
-#### 语义 → 动效原型(同一语义全 app 同一动效)
-
-| 语义 | 规格 | 参照实现 |
-|---|---|---|
-| 轻浮层(menu / popover / tooltip) | 入 `animate-float-in`(opacity + scale 0.97→1,fast/ease-out;tooltip 纯 opacity 用 `animate-fade-in`),出 `animate-float-out`(纯 opacity,instant/ease-in)。**退场永远快于入场,退场不缩放**(缩放退场读作"被吸走",纸应该原地淡掉) | `components/ui/dropdown-menu.tsx` |
-| 重浮层(modal / confirm) | 入 250ms 淡入+scale 0.95→1,出 150ms | `components/ui/confirm-dialog.tsx` |
-| 展开/折叠 | base/ease-move,grid `0fr↔1fr` 高度 + opacity | `features/cc-agent/sidebar/SectionCollapse.tsx` |
-| 列表重排 | FLIP,transform 平移 | `components/ui/toast/ToastContainer.tsx` |
-| 按压 | `active:scale-[0.98]`(交互 pill / 按钮通用) | ConfirmDialog 按钮 |
-| 完成 | **全 app 唯一允许 overshoot 的语义**(`status-done-pop`) | `globals.css` |
-| 运行中 | opacity 呼吸,必须挂 HTML wrapper(AGENTS.md 规则 7) | `session-breathing` |
-| hover / 状态色 | `transition-colors`,≤ fast(150ms) | 全 app 现状 |
-| 容器形变(chip 长成弹层) | 220ms,见下方独立类目(显式例外) | composer 权限/模型选择器 |
-
-#### 红线(性能与克制)
-
-- **常驻/循环动画只允许 HTML 元素上的 `transform` / `opacity`**(compositor-only,AGENTS.md 规则 7 全文适用;SVG 上不挂任何动画)。
-- 高度/grid 等非 compositor 属性只允许**一次性瞬态动画**(用户触发、有明确结束),不允许常驻。
-- 新增 `@keyframes` / `animate-*` 类必须同步登记 `globals.css` 的 `prefers-reduced-motion` 白名单(全局 `* { transition: none }` 兜不住 keyframes)。
-- 实时跟手的交互(resizer 拖动、拖拽跟随)**不加缓动**——跟手即反馈。
-- 禁止:无意义位移、弹跳、视差、循环装饰动画、`transition-all`、给流式文本加打字机逐字动画(流式本身已是动效)。交互仍应"快、直接"。
-
-#### 例外类目:容器形变(container transform,脱身上浮式)
-
-- 2026-07-21 新增、2026-07-22 修订的第二类 sanctioned motion,专用于 composer 工具条上「chip 脱身上浮长成弹层」的开合(权限选择器 / 模型选择器 / + 菜单这类 trigger 即弹层锚点的控件):
- - **定义**:弹层不是"凭空浮现盖在 trigger 上",而是以 trigger chip 的精确几何(位置 / 尺寸 / 胶囊圆角 / pill 底色)为形变起点,一边生长一边**整体位移脱身**,最终停靠在 chip 的打开侧、与 chip 留 6px 间隙;关闭时反向缩回 chip。**trigger chip 全程可见、可交互** —— 面板打开后再点 chip 即关闭(保住"原地再点一下收起"的肌肉记忆)。曾试过"原位取代"式(chip 隐藏、面板占据原位),因丢失 toggle 关闭且时序复杂已废弃,不要回退。**开合两端均做与位移耦合的整体淡入/淡出**(面板与 chip 重叠的端部帧若不透明,会把 chip 内容盖没一下造成"按钮闪烁";淡入随上浮显形、淡出随缩回溶解)——禁止无位移的纯 fade-in/out。
- - **参数**:时长 **220ms**(开合对称,2026-07-22 自 300ms 调快定稿),缓动 `cubic-bezier(0.3, 0.9, 0.25, 1)`(快起步长缓收);菜单行淡入可带 ≤20ms/行 的错峰。这是 ≤150ms 基线的**显式例外**,仅限本类目,不得外溢到其它过渡。形变期间面板内容区必须禁滚(滚动条闪现会挤压行宽,行尾元素抖动),动画完成后再开自滚。
- - **圆角插值**:形变起点圆角写 chip 高度的一半(如 30px chip → 15px),**禁止写 9999px**(9999→12 的插值会让中途帧圆成一坨);终点为容器 12px。
- - **实现红线**:(a) 必须 `prefers-reduced-motion` 降级为直切;(b) 测量目标几何时必须临时禁用 transition(否则 offsetHeight 在宽度过渡第 0 帧按旧宽度排版,含换行文本时量出假高度);(c) 属一次性开合动画,不受"常驻动画 compositor-only"红线(`docs/dev-rules/engineering-conventions.md` §7)约束,但仍需在低端 Windows 实测 300ms 内不掉帧;(d) 焦点 / Esc / outside-click / 焦点归还语义与 §14.2 相同,形变不豁免任何 a11y 要求。
- - **适用边界**:仅限"trigger 长成弹层"的控件。普通 Dialog / ConfirmDialog / Toast / lightbox 不适用(它们没有 chip 锚点,维持现状)。窄变体(按钮宽度展开)仅允许**承载信息的展开**(如语音录音中的红点 + 计时,≤240ms);纯装饰性的 hover 展出文字标签(如 + 展出"添加")已评估并移除,不要再加。
-- **composer 工具条控件两档 chrome + 会话内/新建对话框共用一套(2026-07-22 用户定稿)**:
- - **变形下拉档(+/权限/模型)**:静息**裸态无框**(`border border-transparent bg-transparent`),hover 才浮现胶囊外框(`hover:border-[var(--border-default)]` + `composer-pill-bg`);选中/危险档只染文字色,不改底。
- - **常驻工具档(语音/发送)**:常驻外框 / 实心 CTA(语音 `composer-pill-bg`+`border-default`,hover `model-trigger-hover`,录音态 `surface-chip` 填充+红点计时展开;发送 `send-btn-*` 中性反相实心)。
- - **会话内(default)与新建对话框(create-agent)必须逐字一致**:两处共享控件(+/权限/模型/语音/发送)不再按 `visualVariant` 分叉样式,`create-agent-control-*` / `create-agent-send-*` 不得再用于这五个控件(仅剩新建对话框独有的 Claude|Codex 分段切换、顶部 模式/项目/分支 pills 继续用 create-agent 私有 token)。改任一控件的 chrome,两端一起改。合同测试 `newMakerCreateAgentVisualContract.test.ts` 守此不变量。
-- **限额重置撒花(quota reset confetti)** —— 2026-07-23 用户拍板新增的第三类 sanctioned motion,**仅限**状态栏用量 chip 的「限额窗口重置揭晓」时刻(倒计时归零 → 悬念期「重置中…」→ 新快照落地):
- - **定义**:新快照确认重置的一瞬间,以**正在揭晓的窗口段中心**为原点撒一次花,与剩余百分比 0%→100% 滚动同时开始 —— 把"额度回来了"做成一个可感知的庆祝点。
- - **形态**(用户四/五轮拍板 2026-07-23):**真实抛物线上抛 + 落地即隐** —— 全部粒子同时从段中心以约 **100° 扇形**(正上方 ±50°)同速率抛出,**水平匀速 + 垂直恒定重力**(上升恒减速、过顶点恒加速回落),从爆出到下落全程速度感一致;角度大的粒子弧低、飞得远、先落地,错落由物理自然给出。落到地面线的最后一小段以**短渐隐**消失:可以落地,但禁止落定后停留("躺尸")或不带渐隐地突然消失;地面线带随机抖动,落点不排队。
- - **参数红线**:一次性庆祝,同时起飞、无错峰 delay;单粒时长由弧高物理决定并 clamp 进 0.9s-1.6s、总时长约 1.6s 收尾(数字滚动 1.2s 站定后纸屑再落零点几秒;弧尺度与节奏为用户微调定稿 2026-07-23);粒子 ≤18 颗、3-5px,放完即拆,不循环不常驻;粒子为 HTML 元素、只动 `transform` / `opacity`(compositor-only,工程规范 §7;x/y 分离在两层 span 上实现匀速水平);颜色仅取「小状态点 hue 豁免簇」四色(done 绿 / awaiting 青 / thinking 橙 / error 红),light/dark 同值;必须 `prefers-reduced-motion` 整体跳过。
- - **适用边界**:仅此一处。撒花不得外溢到任务完成、发送成功等其它时刻 —— 那些场景维持 §14.4 基线(需要新豁免必须回到本节逐条新增)。实现见 `apps/desktop/src/renderer/components/status/QuotaResetConfetti.tsx`。
-
-
-## 15. CINDY 皮肤族(品牌化可选 family)
-
-> 本节为 CINDY 皮肤族的规范记录,**不改写 §1-7 默认皮肤规范**。值的权威来源:
-> `skin-docs/10-specs/` 桌面端体系、`skin-docs/30-mobile/2026-07-18-m0-color-mapping.md`
-> 移动端勘误版,以及 2026-07-18 双端验收后的用户最终口头定稿。实现时零自由裁量。
-
-### 15.1 色板(Figma 文本节点提取)
-
-| 语义 | Light | Dark |
-|---|---|---|
-| 品牌红 | `#DF0C27` | `#DF0C27` |
-| 品牌深红(hover/pressed) | `#A61629` | `#A61629` |
-| 背景 | `#EDEDED` | `#2A2828` |
-| 卡片/输入框 | `#F8F8F8` | `#312F2F` |
-| 边框 | `#DCDFE3`(desktop;mobile light 为全局例外 `#C6C9CE`,见「双端颜色同构」) | `#434343` |
-| 二级信息 | `#8C8E94`(用户调参 2026-07-20,自 Figma `#9A9DA3` 两轮加深) | `#6F6F6F` |
-| 正文 | `#3C3F43` | `#D4D4D4` |
-| 纯白 | `#FFFFFF` | `#FFFFFF` |
-
-### 15.2 三份红 exact map(品牌红边界)
-
-- **BRAND_RED_EXPECTED_BY_ID**(必须等于品牌红/深红):`accent-cta-bg`/`accent-cta-bg-pure`/`accent-emphasis`/`confirm-btn-primary-bg`/`perm-allow-btn-bg`/`update-btn-border`/`update-btn-text`(均 `#DF0C27`);`primary`(HSL,RGB 归一等价品牌红)。`sidebar-item-active` 已于 2026-07-20 随反相胶囊定稿退出红 map(见 §15.10 勘误);`migration-bar-fill` 已随主干迁移条退役移出(2026-07-19)。
-- **BRAND_RED_ALLOWED_IDS**(允许含红全集 = EXPECTED ∪ 派生):上述 + `accent-soft`/`accent-hover`/`confirm-btn-primary-hover`/`settings-btn-primary-bg`/`settings-btn-primary-border`/`settings-btn-primary-hover-bg`。`drop-overlay-bg` 已于 2026-07-19 撤红移出名单(见 §15.13 C 类勘误)。
-- **CTA_FOREGROUND_WHITE_IDS**(红底白前景):`accent-pure-cta-fg`/`confirm-btn-primary-text`/`perm-allow-btn-text`/`primary-foreground`/`settings-btn-primary-text`。
-
-单向禁止:`ALLOWED` 之外任何 token 出现 `#DF0C27`/`#A61629` = 测试红。
-
-### 15.3 插值表(sRGB 每通道 `round(A+(B-A)*t)`)
-
-详见决策表 §2。Light/Dark 各 20/40/65/75% 档已冻结精确值进单测(`#EFEFEF/#F1F1F1/#F4F4F4/#F5F5F5`、`#2B2929/#2D2B2B/#2F2D2D/#2F2D2D`)。
-
-### 15.4 豁免(不纳入 CINDY 覆盖,跨主题统一)
-
-- 语义色:`warning-accent` `#EA6B17`(定稿 2026-07-17,取代 `#FF6600`)/ `annotation-accent` `#FF3B30`(图片标注烧录笔迹色,语义豁免,不改)/ `status-bar-accent`(alias warning orange,自动跟随)。
-- 状态四色(设计定稿 2026-07-17,取代冻结红线;全局 light/dark 同值,9 主题无 override 自动跟随):running `#EA6B17` / awaiting `#19D2C1` / error(状态族)`#D91F37` / done `#2AAE5B`;warning 前景 `warning-fg` `#F3A115`(与 Toast amber `#F59E0B` 解耦,Toast 维持 B 组现状)。
-- `focus-ring` `#417CDD`(蓝,E5D 定稿 2026-07-17 取代 #3b82f6,不染红);diff 红绿;modal scrim/阴影;`overlay-lightbox`;Toast 四色定稿(豁免解除)。
-- `destructive`/`search-match-bg` 语义色不纳入 HSL_FORMAT_IDS 覆盖。
-- **hljs 语法高亮色**(light=highlight.js/styles/github.css;dark=globals.css `.dark .hljs-*` mirror github-dark):hljs 主题色为 default 代码块底设计,CINDY 代码块底(surface-elevated #F8F8F8/#312F2F)接近 default(#ffffff/#2c2c2a),边缘不达标(light -keyword 4.31/-built_in 3.29/-name 4.36;dark -punctuation 2.47/-tag 2.99/-section 2.87)是 hljs 既有折损(用 design surface 而非 github 默认 #ffffff/#0d1117),非 CINDY 引入——default 同源也不达标。CINDY 不补 [data-theme] 整改(与 default 同源,补整改值需重新过用户关卡);落档见 cindyCodeBlockContrast.test.ts(≥2 基线 + text ≥4.5 守卫)。
-**双门槛口径(D 裁决 2026-07-17)**:hljs 语法高亮色属辅助性视觉编码,对齐 selection/边界 3:1 口径——语法色 ≥3:1、正文文本 ≥4.5:1。CINDY 代码块底(surface-elevated)接近 default,hljs 主题色为 github 默认底(#ffffff/#0d1117)设计,固有折损非 CINDY 引入(default 同源)。
-- light:语法色全 ≥3(4.31/3.29/4.36),<4.5 但 ≥3 门槛通过,**不整改**,逐项落豁免档(default 同源折损);
-- dark:`.hljs-section` #1f6feb × #312F2F = 2.87 <3,补 `[data-theme="cindy-dark"] .hljs-section` 提亮 `#2573ec`(保持蓝 H212 S84% L52→53.5%,× #312F2F=3.00 ≥3);`.hljs-punctuation`/`.hljs-tag` github-dark "purposely ignored" 无显式色,dark 继承 .dark .hljs text `#c9d1d9`(× #312F2F=8.62 ≥3 达标),补 `[data-theme="cindy-dark"]` 显式覆盖 `#c9d1d9` 防御性(D 裁决三项覆盖,值同 text 不降对比度)。
-- model-budget 光谱条 / GhostTool shimmer:显式豁免(中性 shimmer,跨主题统一)。
-
-### 15.5 U2 显式例外记录(二级信息色忠于 Figma 原值)
-
-- token:`text-secondary`(light `#8C8E94` / dark `#6F6F6F`)/ `text-secondary-cross`(light 仍 `#9A9DA3`,未随调)。
-- 改值史:light 原 Figma `#9A9DA3`(U2 忠于原值)→ `#919399` → `#8C8E94`(用户两轮调参定稿 2026-07-20,桌面 cindy-light 与移动 tokens.ts 同步);dark 不变。对比度仍低于 AA,沿用 U2 显式例外口径。
-- 实测对比度(WCAG):× surface `2.32/2.92:1`、× elevated `2.56/2.65:1`、× chip `2.41/2.72:1`,均低于普通文本 AA `4.5:1`。
-- 裁决:用户 **U2(2026-07-16 拍板)=(b) 忠于 Figma 原值**,接受可读性折损,作为记录在案的显式偏离。
-- 约束:**不得擅自调深**(如 `#686B72` 已证伪且仅存档备查),改值须重新过用户关卡。
-- 反向冻结单测:`cindyThemes.test.ts` 第 ⑦ 组断言该值必须恰等定稿值(light `#8C8E94`/dark `#6F6F6F`),注入 `#686B72` 必须变红;改值须过用户关卡后同步基准。
-
-### 15.6 HSL 格式合约
-
-42 个 `HSL_FORMAT_IDS` 必须 HSL 三元组(`h s% l%`,`h∈[0,360)`、灰色 `hue=0`、1 位小数);其余 token 走 hex/rgba。round-trip HSL→RGB 通道误差 ≤1。HSL_FORMAT_IDS 之外不得误填 HSL 三元组。
-
-### 15.7 品牌标识资产(icon + logo)
-
-新建对话页品牌区按 2026-07 新设计固定为 50×50px 方形 icon + 110×37.5px 横向 logo,间距 9px。`ThemeBrandLockup` 是新建页的唯一渲染实现。主题只通过 `theme.brand.icon/logo` 替换素材,不得通过 scale 改变定稿版式;本地图片透明留白按 alpha 可见边界在加载期裁切,不改写源文件。cindy-light 用黑字版(`cindy-logo-light.png`)、cindy-dark 用白字版(`cindy-logo-dark.png`)作为 logo。
-
-新版品牌区只读取 `brand.icon/logo`,不兼容旧顶层 `logo`、`logoScale` 或开发过程中的 `brand.mark/wordmark`;旧配置与新版组合结构语义不同,禁止猜测映射。「设置 → 外观」只保留本地主题副本、打开目录和刷新三个轻量入口,不放品牌预览或素材选择器。新导出的标准 JSON 在 `brand.icon/logo` 中直接放 `icon-square-50x50px.png` / `logo-horizontal-110x37.5px.png` 示例路径,让配置文件自身同时说明用途与最终显示区域;源图可按同宽高比导出 2x/3x。不另生成 README 或改用 JSONC。
-
-> logo 资产红 `#F70121` 是官方品牌资产固有色(WORD MARK frame 红箭头符号),与 UI 品牌红 `#DF0C27` **并存、不同值**——logo 是图片资产不进 token 体系,保持原色不改色。后人勿误改为 `#DF0C27`。
-
-Splash 品牌块字标是另一套素材(`assets/splash/wordmark.png` 白字 DARK 用 / `wordmark-light.png` 深字 LIGHT 用),2026-07-22 起两版统一为 459×156(@2x),渲染框 `229.5×78` 恰为其 2x 满框——此前白字版为 486×184,塞同框被 object-contain 缩小 ~10%,DARK 字标偏小(用户实机发现,已换图修复)。同日用户拍板:splash 字标 DARK/LIGHT **均不带投影**(原 `drop-shadow-[0_2px_6.5px_rgba(0,0,0,0.25)]` 移除),冻结测试 `SplashScreen.test.tsx` 已同步反向断言。
-
-### 15.8 status-badge-fg(§7 必炸点,用户确认 2026-07-17)
-
-橙徽章(bg `status-bar-accent` `#EA6B17`,设计定稿 2026-07-17 取代 `#FF6600`)此前借用 `accent-pure-cta-fg`(白字)→ `#FFFFFF`×`#FF6600`=2.94:1 不达标(历史值,旧橙 #FF6600)。拆独立 `status-badge-fg`:
-- **default 镜像 `accent-pure-cta-fg`**(light 白 / dark 黑),既有 9 主题行为零变化;
-- **CINDY 两模式 override `#1F1F1F`**(深色近黑),× `status-bar-accent` `#EA6B17` = **5.19:1 ≥4.5**(用户亲批方案 #1F1F1F;设计定稿 2026-07-17 新橙 #EA6B17 实算 5.19:1,取代旧 #FF6600×5.61:1;不达 4.5 则加深 #000000);
-- 覆盖数组 115→116(`cindyDecisionData` 注明 D2 期新增,源自 §7 必炸点方案);
-- 消费点(`ContactsListPane:150`)从 `accent-pure-cta-fg` 切到 `status-badge-fg`;红 CTA 上的 `surface-on-card` 消费者(`RolePillDropdown:543/544`、`SkillhubDetailView:504`)迁到 `accent-pure-cta-fg`(白),`surface-on-card` 保留中性反相(Fast toggle thumb)。
-
-### 15.10 E1D 红色体系重构(用户批准 2026-07-17)
-
-常规主操作不再用品牌红,改反相中性(light 底 `#3C3F43`/字 `#FCFCFC`,dark 底 `#EEEEEE`/字 `#252222`;WCAG 10.32/13.60:1)。红色仅限语义例外:
-- **A 类(保留红)**:`brand-login-bg`/`brand-login-error-border`/`brand-login-error-text`(品牌海报/错误);
-- **C 类**:~~`sidebar-item-active` 红胶囊~~ 已于 2026-07-20 撤红改**反相胶囊**(light 深底 `#3C3F43`+浅字 `#FCFCFC`/dark 浅底 `#EEEEEE`+深字 `#252222`,描边 transparent,与 CTA 反相中性同族;用户三轮改稿定稿,PR #174/#190 落地);~~`migration-bar-fill`~~ 已随主干迁移条退役(2026-07-19,token 已删非撤红);~~`drop-overlay-bg` 红10%~~ 已于 2026-07-19 撤红(用户实机否决:整窗红罩语义似警报,回落 default 中性灰遮罩);
-- **语义色**:`destructive`/delete、`error-*`、warning、diff 红、status 点;
-- **B 类(改中性 11 项)**:`accent-cta-bg`/`-pure`/`-emphasis`/`-soft`/`-hover`、`update-btn-border`/`-text`、`confirm-btn-primary`、`perm-allow-btn`、`primary`、`settings-btn-primary`(alias)、`accent-pure-cta-fg`/`settings-btn-primary-text`(中性字);
-- **C 类裁决**:confirm(普通中性,danger 另设)、perm-allow(中性,警示橙 chip)、primary(中性)、sidebar-item-active(light 红胶囊/dark 深红)、migration-bar-fill(保留红)、drop-overlay(原保留红10%,2026-07-19 撤红改中性)、brand-login-cta(不动);
-- **中性按钮四态**:light 底`#3C3F43`/字`#FCFCFC`、hover`#2E3237`、pressed`#25282C`;dark 底`#EEEEEE`/字`#252222`、hover`#E2E2E2`、pressed`#D4D4D4`。
-- **send-btn 族纳入值表(E1D 扩,lead 裁决 2026-07-17)**:`send-btn-bg`(default alias `--accent-cta-bg`)/`-icon`/`-hover-bg`/`-pressed-bg`/`-disabled-bg`/`-disabled-icon` CINDY override 全族走上述四态反相中性 + disabled 灰 `#444242`/`#585555`(R4 D1 实证);hover/pressed 为 E1D 新增 token(default 同 bg,默认皮肤维持 opacity-85 hover,膘叔 E3 组件层消费 var() 即全局生效);全族入 cindyDecisionData REQUIRED_IDS + CINDY_EXPECTED,③ 断言守。
-- **侧栏颜色层级整改(E1D 扩,用户并排指错 2026-07-17,lead 钉死 light/dark 同套)**:
- - 正文(会话标题)= `text-foreground`(=`text-primary` light `#3C3F43`/dark `#D4D4D4`,不动);
- - 二级暗灰(行首图标普通态/时间戳/meta/分组标签)= light `#9A9DA3`/dark `#6F6F6F`(与 `text-secondary` 同值);CINDY override `sidebar-muted`/`sidebar-action-icon`(HSL `220.0 4.7% 62.2%`/`0 0% 43.5%`)+ 新增 `cmd-palette-item-meta` CINDY override(hex);
- - 选中胶囊 = 反相胶囊(2026-07-20 定稿):`sidebar-item-active` light `#3C3F43`/dark `#EEEEEE`,前景 `sidebar-item-active-foreground` light `#FCFCFC`/dark `#252222`,描边 `sidebar-item-active-border` transparent;**凡 `bg-sidebar-item-active` 上的前景必须配 `text-sidebar-item-active-foreground`,禁用 `text-foreground`**(PR#190 全量整改,该 token 缺省=foreground,非 CINDY 零变化);
- - 强调行(running)行首图标(厂商 glyph/Puzzle/RadioTower/Clock)= **Thinking Orange `--warning-accent` `#EA6B17`**(用户拍板 2026-07-20,取代红系时期规则),呼吸动画 `session-status-breathing`;**选中态同样橙(running 取色优先级高于反相前景)**;移动端 `statusAccent` 同值同规则。常驻呼吸动画必须挂 HTML wrapper,SVG 保持静态(常驻动画 compositor-only 红线,见 `docs/dev-rules/engineering-conventions.md` §7;PR#226 治理)。
- - 断言:③ CINDY_EXPECTED 守 4 token 值;⑦ 新增层级断言(二级暗灰 contrast 明显弱于正文 + 选中胶囊前景×红底 ≥4.5)。
-- **backlog(R2 §4.3 五点差异,lead 裁决 2026-07-17 本轮不做,入 backlog)**:Project_List 三态拆分(active-task-pill/project-card/flat-list-row 不共用 `sidebar-item-active`);项目 header/list card 选中应中性底(#312F2F/#F6F6F6 非 #DF0C27 大红);去 Project_List 选中组 `focus-ring-soft` 蓝 ring,改 card stroke #DCDFE3/#434343;小箭头 #A61629 强调(非整行红底)。详见 `2026-07-17-r2-ui-specs.md` §4.3。本轮收敛不扩战线,后续另开。
-
-三份新 map(`NEUTRAL_PRIMARY_EXPECTED_BY_ID`/`FOREGROUND` + `RED_EXCEPTION_ALLOWED_IDS`)替代旧 `BRAND_RED_*`。D2T ⑤/⑦/⑧ 改用新 map(中性 exact + 红例外白名单 + 中性对比度 + 可证伪)。
-
-### 15.11 caret-accent 光标(用户二次改稿 2026-07-18 定稿:蓝,跨端规则)
-
-> 决策史:07-18 日间"光标品牌红 #DF0C27"→ 07-18 晚**红 caret 定稿已被用户覆盖为蓝 `#417CDD`,双端一致**。以下为现行有效版本,历史文档中"caret 品牌红"表述一律作废。
-
-- 全部可编辑输入面的光标(caret)统一消费 `--caret-accent` token——globals.css 已全局接管(原生 `caret-color` + ProseMirror 伪光标),**组件内不许另设 caret-color**。
-- 取值:default 主题 = `var(--accent-cta-bg)`(中性反相,随主题走);**CINDY 两模式 override `#417CDD`**(与 focus ring 同值的信息蓝;已从 `RED_EXCEPTION_ALLOWED_IDS` 红例外白名单移除,`cindyDecisionData.ts` 断言锁值)。
-- **易踩点**:①光标不再是红——红色白名单里没有光标,不要把 caret 接任何红 token;②虽然值与 `--focus-ring` 相同,**不要**把 caret 直接接 `--focus-ring`——语义不同,光标唯一合法出口仍是 `caret-accent`(便于日后独立调整)。
-- **跨端对齐**:移动端(`apps/mobile` `src/theme/tokens.ts` 的 `inputCaret`)同值 `#417CDD` 双模式,RN 侧经 TextInput `cursorColor`/`selectionColor` 消费,`themeTokens.test.ts` 锁值。
-
-### 15.12 毛玻璃(vibrancy)体系(用户定稿 2026-07-18,macOS)
-
-- **唯一半透面 token**:`surface-translucent-sidebar`——CINDY light `rgba(255, 255, 255, 0.85)` / dark `rgba(18, 15, 15, 0.75)`(default 主题下 = `var(--surface)` 不透明,非 CINDY 主题零影响)。消费方为左侧栏(`aside.bg-sidebar`);后续新增半透明表面**默认复用此 token**,不另造 rgba 值。splash 根容器已于 2026-07-19 改为不透明 `--surface`(用户拍板:加载完成前必须完全遮盖底下已挂载的主界面,不再共用半透 token)。
-- **透壁纸三重管线,缺一即死黑**(2026-07-18 实机 A/B 实证,详证据见换肤工程 sidebar-glass 补编终稿追记):
- 1. **窗口创建期**即设 `backgroundColor: '#00000000'` + vibrancy(`bootstrap-electron.ts` / `vibrancyConfig.ts`);运行时再 setBackgroundColor 改 alpha 不可靠。
- 2. CINDY 主题下**根容器让路**:globals.css 把 `.h-screen.bg-content-area`(及 splash 在场垫层)置 transparent,否则整窗不透明垫底挡死。
- 3. **禁止 CSS `backdrop-filter`**——它会把透明窗背衬渲染成黑箱;壁纸模糊完全由原生 vibrancy 材质负责,CSS 层只铺半透底色。
-- 材质经 `XDT_VIBRANCY_MATERIAL` 环境旋钮选择,**代码缺省 hud**(用户实测定稿,2026-07-19 由 sidebar 回写为缺省值)。Windows 侧 Win11+ 走 `backgroundMaterial`(缺省 acrylic,`XDT_BACKDROP_MATERIAL` 旋钮,未经实机验证);Win10/非 CINDY 回退不透明 `--surface`。
-- 半透面上**不叠渐变覆盖层**——浅色红渐变层 2026-07-18 经用户确认设计稿无此元素,已整层砍除;splash 的渐变辉光层同样未实现(backlog 待用户表态)。
-- `surface-translucent-sidebar` 的 alpha 是主题冻结区**唯一开放的观感旋钮**,调整必须三处同步(`cindy-light.ts` / `cindy-dark.ts` / `cindyDecisionData.ts`)且 themes 套件跑绿。
-
-### 15.14 running/协同 橙色体系(用户拍板 2026-07-20)
-
-- **running 呼吸图标一律 Thinking Orange**(`--warning-accent` `#EA6B17`,全主题同值):VendorIcon、SessionStatusIcon(Puzzle/RadioTower)、AutomationSessionGroupItem(Clock);选中态也橙,优先级 running > 选中反相前景 > 普通态。移动端 `statusAccent` 同值同规则(glyphColor 同优先级)。
-- **协同按钮 ON 态橙**:CollaborationModeToggle 开启态文字+Puzzle 图标 `warning-accent`(覆盖 2026-07-17「composer pill 去橙中性」规范,仅 ON 态;OFF 入口态保持中性)。
-- **SVG 常驻动画红线**:呼吸类常驻动画一律挂 HTML wrapper(span),SVG 保持静态。
-
-### 15.15 新建页内容区定位 + 顶栏 hover 消费纪律(用户拍板 2026-07-21)
-
-- **新建页(CREATE AGENT)内容组垂直定位**:距**窗口顶**恒为 `max(96px, 28vh) + 46px`。
- 实现 = 路由容器 `pt-[calc(max(96px,28vh)+46px-var(--content-header-h,46px))]`:
- - 268px 封顶已废(Figma 定稿画框高度遗留,大窗口下内容"偏高"的根因);28% 为用户实机调参定稿(原 25.5%);
- - `--content-header-h` 由 `ContentHeaderSlot`(FeatureSidebarSlotProvider 内)经 display:contents 包裹层广播(顶栏渲染 46px / 隐藏 0px,与 ContentHeader `h-[46px]` 同源)——选中项目引发顶栏显隐时内容区**零跳动**,恒定在"有顶栏时"位置;
- - 顶栏显隐判定单一决策源 = `useContentHeaderHidden`(mac + Sidebar 展开 + 无注入内容 + 无右栏开关,沿用 2026-06-11"空 header 隐藏"决策);
- - 守卫:`newMakerCreateAgentVisualContract` 锁定位公式 + 防回退断言。
-- **hover token 消费纪律**:`--update-btn-hover` 是升级按钮(反相深色 CTA)专用 hover,**禁止**用于普通 ghost 按钮/徽章(CINDY light 下近黑 `#2E3237`,吞字吞图标;2026-07-21 清理 6 处误用)。正确选型:
- - 顶栏(ContentHeader 一带)ghost 元素 → `titlebar-button-hover`(与 ChromeActions 窗口按钮组同款);
- - 内容区通用浅 hover → `--surface-hover`。
-
-### 15.13 CINDY 双端换肤定稿规则(2026-07-18)
-
-本节是后续桌面端 / 手机端 UI 更新的执行规则。若本节与上方历史小节有冲突,以后续用户验收定稿为准;不要按早期红 CTA / 红 caret 口径回退。出处见 `skin-docs/10-specs/`、`skin-docs/30-mobile/2026-07-18-m0-color-mapping.md`、`skin-docs/30-mobile/2026-07-18-m3-chat-tasksheet-impl-plan.md`。
-
-#### 红色边界
-
-- 品牌红 `#DF0C27` 只用于品牌展示 / splash、破坏性操作、运行 / 思考状态强调、列表 active glyph。列表 active glyph 在 dark 使用 `#A61629`。
-- 普通 CTA、FAB、发送钮、确认类主操作一律使用中性反相:light 底 `#3C3F43` / 字 `#FCFCFC`,dark 底 `#EEEEEE` / 字 `#252222`。禁止把这些操作染成品牌红。
-- 红色白名单不包含输入光标、focus ring、普通按钮、普通选中态背景。新增红色消费必须先写明语义并进入对应 token / 测试白名单;不能在组件中硬编码。
-
-#### 光标与焦点
-
-- 所有输入光标 `cursorColor` / `selectionColor` 统一为蓝 `#417CDD`,等于 `permAutoAccent` / Mac `caret-accent`;light / dark 同值。
-- focus ring、Auto Approval、信息蓝同属 `#417CDD` 体系。Figma 旧蓝 `#426BF2` 不采用。
-- 禁止红色系光标。备注:2026-07-18 早前红 caret 口径已于同日晚被用户最终定稿覆盖。
-
-#### 双端颜色同构
-
-- 手机端颜色语义必须与桌面端 token 决策表同构:主背景、正文、二级信息、边框等基础层级按 CINDY desktop 语义直映,不要为移动端另造一套相同含义的颜色。
-- **`colors.border` light 是 mobile 全局例外,不是首页 scoped token**(裁决记录 2026-07-21,PR #266):mobile light `border` / `borderTranslucent` 取 `#C6C9CE` / `rgba(198,201,206,0.62)`,偏离 desktop `#DCDFE3`。原因:desktop 边框多衬 `#F8F8F8` 卡片,而 mobile 分割线直接衬 `#EDEDED` 主背景,`#DCDFE3` 对比仅 1.14:1 几乎不可见,加深到 1.42:1 后实机可辨。该值落在 `apps/mobile/src/theme/tokens.ts` 全局 `lightColors.border`,所有 mobile light 边框 / hairline 消费方一体生效;dark 维持 `#434343` 与 desktop 同构。`chatCodeBorder` / `sheetActionBorder` / `sheetGrabber` 等专用边框 token 独立取值,不随本例外联动。
-- 移动端专用 token 只承载移动端特有层级或几何语境:
-
-| Mobile token | Light | Dark | 用途 |
-|---|---|---|---|
-| `surfaceListRow` | `#F6F6F6` | `#312F2F` | list 项目行 / 任务行 |
-| `surfaceListExpanded` | `#EAEAEA` | `#2A2828` | list 展开块 |
-| `activeGlyph` | `#DF0C27` | `#A61629` | list 行首 active glyph |
-| `chatCodeSurface` | `#F8F8F8` | `#353333` | chat / task code card |
-| `chatCodeBorder` | `#DCDFE3` | `#3C3C3C` | chat / task code card 边框 |
-| `inputCaret` | `#417CDD` | `#417CDD` | 所有输入光标 |
-| `sheetSurface` | `rgba(248,248,248,0.95)` | `rgba(59,59,59,0.95)` | bottom sheet root |
-| `sheetActionSurface` | `#F6F6F6` | `rgba(59,59,59,0.5)` | sheet action group / row |
-| `sheetActionBorder` | `#DCDFE3` | `#505050` | sheet action group / row 边框 |
-| `sheetActionText` | `#3C3F43` | `#C1C1C1` | sheet action row label |
-| `sheetGrabber` | `#DCDFE3` | `#6F6F6F` | sheet / composer grabber |
-
-#### 图标规范
-
-- 会话行首 Agent 图标按运行时身份区分:Claude Code 官方像素脸 / Codex CLI `>_` 多瓣花,Mac(`VendorIcon`)与移动端(`MobileVendorIcon`)同源资产(2026-07-20 定稿)。Agent 身份 mark 不得与 Anthropic / OpenAI provider 或 model brand mark 混用;`BrandArrow` 仅保留给品牌装饰场景。
-- 模型选择按 model brand 出图。Mac 已替换过的品牌图标,移动端直接复用同源资产;其余使用现有图标库(lucide)中语义等价的图形。
-- 发送语义统一使用填充纸飞机 `Send`,颜色跟随中性反相 CTA token;不要用红色发送按钮或红色发送图标表达普通发送。
-
-#### 排版与布局要点
-
-- List 页采用卡片化密度:20pt gutter、60pt 行高、12pt 圆角、55pt FAB。不要回退到旧的松散列表或红色普通 CTA。
-- Chat 顶栏使用毛玻璃 / 半透明玻璃体系:优先复用 `BlurBackdrop` 与专用 chat header token;未接线 blur 的位置使用半透明实色 token + hairline,不要新增未经验证的 blur 接入点。
-- Sheet 系统一致使用 sheet token。共享 `SheetSurface` 等组件改新样式时默认走 variant 隔离,只让设计稿覆盖到的 tasksheet / `SessionActionSheet` / `SessionMenuSheet` 使用新样式;ContextSheet、ModelPicker、info sheet 等未覆盖页面不自动跟随。
-- 展开块内部使用 hairline 分隔:非末行有线,末行无线;边框颜色走对应 token,不要写死(mobile light 全局 border 例外口径见上方「双端颜色同构」的 `colors.border` 条)。
-
-#### 流程门禁
-
-- 新增 / 修改颜色必须走 token,桌面端走 ColorRegistry / CSS variable,移动端走 `ThemeColors` / `useTheme`;组件里禁止硬编码 hex / rgba。
-- `hardcoded-color-audit` 必须全绿才允许合入。若因资产固有色或平台语义确需例外,必须登记白名单并说明原因。
-- 设计稿与既有 token 冲突时,先在规格或 PR 说明中列出"待拍板"并请求裁决;不得自行定案或用相近色偷换。
-- 共享组件样式改动默认用 variant / prop 隔离影响面。设计稿没有覆盖的页面、状态、平台,默认保持现状。
+本文件仅为历史路径兼容保留的跳转入口,不要在这里维护规范内容。
diff --git a/docs/README.md b/docs/README.md
index 0c480ad332..f7b34a29de 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -10,7 +10,7 @@
| [product-rules/README.md](./product-rules/README.md) | 产品规则索引 | authoritative | Cindy 产品行为、体验与边界 | — |
| [core-product-principles.md](./product-rules/core-product-principles.md) | 产品原则 | authoritative | Cindy Core、Agent、Skill、插件与多端产品边界 | — |
| [design-rules/README.md](./design-rules/README.md) | 设计规则索引 | authoritative | Cindy UI 视觉、交互与内容设计 | — |
-| [DESIGN.md](../DESIGN.md) | 设计规范 | authoritative | Desktop 与 Mobile 的视觉语言、Token、组件和交互约定 | — |
+| [design-rules/DESIGN.md](design-rules/DESIGN.md) | 设计规范 | authoritative | Desktop 与 Mobile 的视觉语言、Token、组件和交互约定 | — |
| [dev-rules/README.md](./dev-rules/README.md) | 开发规则索引 | authoritative | Cindy 客户端工程规则 | — |
| [environment-setup.md](./dev-rules/environment-setup.md) | 开发环境 | authoritative | 公共依赖、submodule 与首次安装 | — |
| [desktop-development.md](./dev-rules/desktop-development.md) | Desktop 开发规则 | authoritative | Desktop 启动、重启与验证 | — |
diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.md
new file mode 100644
index 0000000000..1666cf8d78
--- /dev/null
+++ b/docs/design-rules/DESIGN.md
@@ -0,0 +1,1031 @@
+# Design System Inspired by Ollama
+
+## 1. Visual Theme & Atmosphere
+
+Ollama's interface is radical minimalism taken to its logical conclusion — a pure-white void where content floats without decoration, shadow, or color. The design philosophy mirrors the product itself: strip away everything unnecessary until only the essential tool remains. This is the digital equivalent of a Dieter Rams object — every pixel earns its place, and the absence of design IS the design.
+
+The entire page exists in pure grayscale. There is zero chromatic color in the interface — no brand blue, no accent green, no semantic red. The only colors that exist are shades between pure black (`#000000`) and pure white (`#ffffff`), creating a monochrome environment that lets the user's mental model of "open models" remain uncolored by brand opinion. The Ollama llama mascot, rendered in simple black line art, is the only illustration — and even it's monochrome.
+
+What makes this system distinctive is the combination of a single geometric sans-serif (Inter) with an exclusively pill-shaped geometry (9999px radius on everything interactive). The clean letterforms + rounded buttons + rounded containers create a cohesive "softness language" that makes a developer-oriented tool feel approachable and friendly rather than intimidating. This is minimalism with warmth — not cold Swiss-style grid minimalism, but the kind where the edges are literally softened.
+
+**Key Characteristics:**
+
+- Pure white canvas with zero chromatic color — completely grayscale
+- Inter as the single sans family, carrying both display headlines and body text
+- Tight border-radius system: 8px (inner controls) / 12px (containers) / 9999px (pill) — three values, nothing else
+- Zero shadows — depth comes exclusively from background color shifts and borders
+- Pill-shaped geometry on all interactive elements (buttons, tabs, inputs, tags)
+- The Ollama llama as the sole illustration — black line art, no color
+- Extreme content restraint — the homepage is short, focused, and uncluttered
+
+## 2. Color Palette & Roles
+
+> **多主题架构注意**:本节列出的色值是 **Default Light / Default Dark**(默认主题,设计灵感来自 Ollama 官网)的具体值,作为视觉规范的参考样本。运行时**每个色值都通过 token 引用**(见第 10 节 Theme System & Token Reference),所以同一组件在其它主题(如 Eclipse / One Dark Pro / Monokai Pro)下会自动呈现该主题的对应色。**实现组件时永远写 token 不写 hex**——具体规则见第 10 节。
+
+### Primary Text
+
+- **Pure Black** (`#000000`): Primary headlines, primary links, and the darkest text in Light Mode. The only "color" that demands attention. **Never used as a background** — reserved exclusively for text and icons.
+- **Near Black** (`#262626`): Button text on light-colored surfaces, secondary headline weight.
+
+### Layer System (Light & Dark)
+
+The interface is built from a three-tier layer system that applies symmetrically to both modes — **Surface** as the base, **Card** as the elevated layer, and **Board** as the hairline divider. This is the foundation of every page in every mode.
+
+
+| Role | Light Mode | Dark Mode | Usage |
+| ----------- | ---------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| **Surface** | `#f8f8f6` | `#1f1f1e` | The primary page background — every page starts here. In full-window app layouts, this is the single flat background. In centered-card layouts, this is the page beneath the card. |
+| **Card** | `#ffffff` | `#2c2c2a` | The elevated layer sitting on top of Surface — login cards, modals, panels, raised containers, and any element that needs to visually lift off the page. |
+| **Board** | `#d7d7d4` | `#3c3c3a` | The hairline divider color — 1px borders between sections, card outlines, and any separator line within the same layer. |
+
+
+**Layer rule — flat vs. elevated:**
+
+- **Full-window applications** (e.g. main workspace, chat interface, dashboards): use **Surface** as a single flat background for the entire window — no Card layer at the page-structure level. Section boundaries (sidebar, toolbar, content area) are drawn with 1px **Board** dividers, never with background color shifts.
+- **Centered-card layouts** (e.g. login, modal, empty-state card on a blank page): use **Surface** as the page background and **Card** as the lifted card. The color difference between Surface and Card is what makes the card read as "lifted" — no shadow needed. The card outline is drawn in **Board**.
+
+> **Important — element-level vs. page-level:** The "flat Surface" rule in full-window layouts applies only to the **overall page structure**, not to individual widgets. Lifted widgets *within* a full-window layout — inputs, chat input boxes, raised cards, modal overlays, panel popups — still use **Card** color per their component rules (see Section 4). A full-window chat interface can have a flat Surface page *and* a Card-colored chat input box at the same time; those are two different scopes. "Surface flat" means "don't split the page into Page+Card layers," not "every element on the page must be Surface color."
+
+### Chip & Button Neutrals
+
+Small interactive chips (button backgrounds, tag pills, avatar fills, selected-nav pills) sit outside the layer system — they're foreground elements, not background layers.
+
+- **Light Gray** (`#e5e5e5`): Chip/button backgrounds in Light Mode — the workhorse neutral for pressed states, filled pills, tag backgrounds, and avatar fills.
+- **Dark Chip** (`#2c2c2a`): Chip/button backgrounds in Dark Mode — equal to Dark Card; the lifted-pill color against a `#1f1f1e` Surface. (In Dark Mode, the Card layer color and the chip color collapse to the same value — both represent "one step lifted off Surface.")
+
+> ~~**Border Light** (`#d4d4d4`)~~ —— 已废弃(2026-06,G2)。原称"white-button 专用边框色",但全仓库无真实组件使用(只有 experimental 视图裸 hardcode)。White Pill 次按钮边框统一走 **Board**(`--border-default` `#d7d7d4`)。
+
+### Neutrals & Text
+
+- **Stone** (`#737373`): Secondary body text, footer links, and de-emphasized content. The primary "muted" tone.
+- **Mid Gray** (`#525252`): Emphasized secondary text, slightly darker than Stone.
+- **Silver** (`#a3a3a3`): Tertiary text and deeply de-emphasized metadata. **不要用作 placeholder**——太显眼、读着像已填(见 §4 Inputs + §13 G3,placeholder 走 `--text-placeholder` `#c4c4c4`)。
+
+> ~~**Button Text Dark** (`#404040`)~~ —— 已废弃(2026-06,G1)。原称"white-surface 按钮文字专用色",但全仓库无真实按钮使用(只有 experimental 视图裸 hardcode)。White Pill 次按钮文字统一走 **Near Black**(`--text-primary` `#262626`)。
+
+### Semantic & Accent
+
+The grayscale rule is near-absolute. The following are the **only** sanctioned non-gray colors in the system — each tightly scoped to a specific surface. New semantic colors must not be introduced without being recorded here first.
+
+- **Ring Blue** (`#3b82f6` at 50%): Tailwind's default focus ring, used exclusively for keyboard accessibility. Never visible in normal interaction flow.
+- **Thinking Orange** (`#EA6B17`,设计定稿 2026-07-17 取代 `#FF6600` 冻结红线): Used exclusively for the Running Status Bar in ChatView when the Claude Code SDK is actively processing (streaming / tool_use). Applies only to the sparkles icon and status text (e.g. `Spelunking...`); no background fill, no use outside this surface.
+
+> **Additional narrowly-scoped exceptions** (documented in their respective component specs, do NOT generalize as system semantic colors):
+>
+> - **Toast Info / Success / Warning / Error** — `#417CDD` / `#2AAE5B` / `#F3A115` / `#D91F37`(E5D 定稿 2026-07-17 扩簇,Toast 豁免解除)used ONLY on the 16×16 lucide icon inside Toast pill notifications. The pill body (background, text, border, close icon) remains strictly grayscale. info 蓝 #417CDD 与 focus-ring/Auto Approval 同值(原 #3B82F6 2026-07-14 增,现定稿);success/warning/error 与全局状态色同值(done 绿/状态 error/warning 前景)。
+> - **ConfirmDialog Danger** — `#EF4444` used ONLY on the confirm button background in the Danger variant. The cancel button and rest of the dialog remain grayscale.
+> - **Permission Selector Mode Highlights** — selected risky permission modes may color only the option text/icon/checkmark and the collapsed trigger text/icon. The selected row background remains grayscale. Auto Approval uses `#417CDD` in both modes(设计定稿 2026-07-17 扩簇,light/dark 同值;取代 light #000050/dark #00D9C5). Full Access uses Heart Orange `#EA6B17` in both modes(随 warning-accent 自动跟随,定稿 2026-07-17). These hex values are the **default-theme palette only** — other themes may override `--perm-auto-selected-text` and `--perm-bypass-selected-text` with their own accent colors, provided both modes remain color-coded, distinguishable from each other, and visually distinct from neutral text. Tokens: `--perm-auto-selected-text` and `--perm-bypass-selected-text` in `apps/desktop/src/renderer/styles/globals.css`.
+> - **Diff Add Green / Diff Del Red** — GitHub-standard diff syntax colors, used on the `+` / `-` symbol glyph, the changed-line text foreground, **and the full row background** inside code-diff renderings. Applied in three places: (1) the Edit-tool DiffView card (F-MSG-6), (2) markdown ````diff` fenced code blocks in the message stream, and (3) `.diff` / `.patch` files opened in TextLightbox (the document previewer) — there hljs `.hljs-addition` / `.hljs-deletion` are forced `display: block` so the background fills to the right edge instead of stopping at the last glyph. Line-number gutter and ctx (unchanged) lines remain strictly grayscale per the layer system. **Foreground** — Add: `#22863a` Light / `#7ee787` Dark; Del: `#b31d28` Light / `#ff7b72` Dark. **Background** — Add: `#f0fff4` Light / `#033a16` Dark; Del: `#ffeef0` Light / `#67060c` Dark. Tokens: `--diff-add-fg/-bg` and `--diff-del-fg/-bg` in `apps/desktop/src/renderer/styles/globals.css`. Updated 2026-04-21: backgrounds switched from grayscale → GitHub red/green for full-row fill so additions / deletions are unambiguous at a glance.
+
+*Dark Mode text uses softened neutrals to reduce eye strain: **Soft Gray** (`#d4d4d4`) for primary text, Stone (`#737373`) for secondary, Silver (`#a3a3a3`) for tertiary. Pure White (`#ffffff`) is reserved for button labels and high-contrast UI elements on dark backgrounds.*
+
+### Gradient System
+
+- **None.** Ollama uses absolutely no gradients. Visual separation comes from flat color blocks and single-pixel borders. This is a deliberate, almost philosophical design choice.
+
+## 3. Typography Rules
+
+### Font Family
+
+- **Display / Body / UI**: `Inter`, with fallbacks: `system-ui, -apple-system, "Segoe UI", sans-serif`
+- **Monospace**: `JetBrains Mono`, with fallbacks: `ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`
+
+*Note: The entire interface uses a single sans font — Inter — for both display headlines and body text. Inter is chosen for (a) its neutral, geometric character that stays out of the way, (b) its excellent legibility at small sizes, and (c) its wide availability in both web and design tooling (including the Pencil .pen editor). A single font keeps the hierarchy clean — separation comes from size and weight, not typeface contrast.*
+
+### Hierarchy
+
+
+| Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
+| --------------- | -------------- | -------------- | ------- | ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| Display / Hero | Inter | 48px (3rem) | 500 | 1.00 (tight) | normal | Maximum impact headline |
+| Section Heading | Inter | 36px (2.25rem) | 500 | 1.11 (tight) | normal | Feature section titles |
+| Sub-heading | Inter | 30px (1.88rem) | 400–500 | 1.20 (tight) | normal | Card headings, feature names |
+| Card Title | Inter | 24px (1.5rem) | 400 | 1.33 | normal | Medium emphasis headings |
+| Body Large | Inter | 18px (1.13rem) | 400–500 | 1.56 | normal | Hero descriptions, button text |
+| Body / Link | Inter | 16px (1rem) | 400–500 | 1.50 | normal | Standard body text, navigation |
+| Caption | Inter | 14px (0.88rem) | 400 | 1.43 | normal | Metadata, descriptions |
+| Small | Inter | 12px (0.75rem) | 400 | 1.33 | normal | Smallest sans-serif text |
+| Micro Label | Inter | 10–13px | 400–500 | 1.20–1.40 | optional 0.5–1px tracking on uppercase | **Auxiliary / non-reading** labels only — sidebar tree section heads (13px), tree row counts, frontmatter field names, scope chips, tag pills, status badges, breadcrumb segments. Never used for body text or anything the user reads sentence-by-sentence. |
+| Code Body | JetBrains Mono | 16px (1rem) | 400 | 1.50 | normal | Inline code, commands |
+| Code Caption | JetBrains Mono | 14px (0.88rem) | 400 | 1.43 | normal | Code snippets, secondary |
+| Code Small | JetBrains Mono | 11–12px | 400–500 | 1.40–1.63 | normal | Tags, labels, in-tree paths |
+
+
+### Principles
+
+- **Single sans family**: Inter carries both display headlines and body text — no typeface switching between hierarchy levels. Size and weight alone create hierarchy, keeping the typographic system maximally simple.
+- **Weight restraint**: Only two weights matter — 400 (regular) for body and 500 (medium) for headings. No bold, no light, no black weight. This extreme restraint reinforces the minimal philosophy.
+- **Tight display, comfortable body**: Headlines compress to 1.0 line-height, while body text relaxes to 1.43–1.56. The contrast creates clear hierarchy without needing weight contrast.
+- **Monospace for code only**: JetBrains Mono is reserved for inline code, terminal commands, and code blocks — never used for UI chrome.
+
+## 4. Component Stylings
+
+### Buttons
+
+**Gray Pill (Primary)**
+
+- Background: Light Gray (`#e5e5e5`)
+- Text: Near Black (`#262626`)
+- Padding: 10px 24px
+- Border: thin solid Light Gray (`1px solid #e5e5e5`)
+- Radius: pill-shaped (9999px)
+- The primary action button — understated, grayscale, always pill-shaped
+
+**White Pill (Secondary)**
+
+- Background: Pure White (`#ffffff`) — `--surface-elevated`
+- Text: Near Black (`#262626`) — `--text-primary`
+- Padding: 10px 24px
+- Border: thin solid Board (`1px solid #d7d7d4`) — `--border-default`
+- Radius: pill-shaped (9999px)
+- Secondary action — visually lighter than Gray Pill
+
+**Black Pill (CTA)**
+
+- Background: Pure Black (`#000000`)
+- Text: Pure White (`#ffffff`)
+- Radius: pill-shaped (9999px)
+- Inferred from "Create account" and "Explore" buttons
+- Maximum emphasis — black on white
+
+### Cards & Containers
+
+- Background: Card (`#ffffff` Light / `#2c2c2a` Dark) or Surface (`#f8f8f6` Light / `#1f1f1e` Dark) depending on layer context
+- Border: thin solid Board (`1px solid #d7d7d4` Light / `1px solid #3c3c3a` Dark) when needed
+- Radius: comfortably rounded (12px) — the container radius (see §5 three-tier scale; 8px is reserved for inner controls like textareas / dropdown rows, pill for interactive elements)
+- Shadow: **none** — zero shadows on any element
+- Hover: likely subtle background shift or border darkening
+
+### Inputs & Forms
+
+- Background: Card (`#ffffff` Light / `#2c2c2a` Dark)
+- Border: `1px solid` Board (`#d7d7d4` Light / `#3c3c3a` Dark)
+- Radius: pill-shaped (9999px) — single-line search inputs and form fields are pill-shaped. **多行输入框(textarea)套不了胶囊**(高框会变形),改用 8px 内层圆角(见 §5 三档圆角)。
+- Focus: Ring Blue (`#3b82f6` at 50%) ring
+- Placeholder: **`--text-placeholder`** slot — **Faded Light** (`#c4c4c4`) Light / **Mid Gray** (`#525252`) Dark — must read as clearly empty, not pre-filled. Silver (`#a3a3a3`) is too prominent against either Card surface (≈5:1 in Dark, ≈2.6:1 in Light) and reads as real input. **所有输入面的 placeholder(chat / ask / settings / plan-action-fb)统一收口于此 slot**(2026-06 G3);非默认主题通过 override `text-placeholder` 表达各自的 placeholder 色。
+
+### Select & Dropdown
+
+- **Trigger**: 同单行输入 —— pill(9999px),Card bg,1px Board 边框,承载当前值 + chevron。
+- **弹出面板**: 是个容器 —— 12px 圆角,Card bg(`--surface-elevated`),1px Board 边框,无阴影(靠 overlay / 层色分隔),内边距 6–8px。
+- **面板宽度必须绑定 trigger 宽度** —— 不许比触发它的控件更窄或更宽。Radix Select 用 `position="popper"` + `width: var(--radix-select-trigger-width)`;其它原语则取 trigger 实测宽度对齐。(反复踩的点:下拉宽度要跟上方一致。)
+- **选项行**: 选中 / 悬浮的高亮底色用 **8px 内层圆角**(见 §5 —— 面板是 12px 容器,行高亮是内层 8px,内层必须比面板小才嵌套协调)。高亮 bg 走 `--surface-hover` / Radix `data-[highlighted]`;选中行给 chip 填充,未选中行透明。
+- **composer 下拉菜单行(模型 / 权限 / + 三个 MorphPopover 菜单)统一规约**(2026-07-22):这三个菜单的所有选项行必须**逐字一致**——横向内边距 `px-3`、圆角 `rounded-[8px]`、hover 与选中底都走**同一个 token `--model-item-hover`**,选中态仅额外靠对勾 + `font-medium` 区分(危险权限档的橙 / 蓝只染**文字**,不改底色)。**为什么不用 `--surface-chip` 做选中底**:cindy 默认皮肤把 `--surface-hover` / `--surface-chip` 调成"压在页面底上"的值,比抬起的弹层面板(`--surface-elevated`)还暗,行高亮会隐形;故菜单行 hover 收口到组件级 token `--model-item-hover`,并在 cindy-dark / cindy-light 里单独 override 到"面板之上一档"(dark 抬亮、light 压深)保证清晰。改这三个菜单的行样式时三处必须同步,不许只改一个导致又不统一。
+
+### Dialog & Modal
+
+参照实现 `components/ui/confirm-dialog.tsx`(通用确认弹窗);新建弹窗沿用它的结构,不另起一套。
+
+- **Overlay**: 全屏遮罩走 `--overlay-modal` token(ConfirmDialog 现用 `neutral-900/40` 硬编码 pair 是历史遗留,**新弹窗一律走 token**,别照抄)。
+- **容器**: 是个容器 —— 12px 圆角(`rounded-xl`),`--confirm-bg`,`--confirm-shadow`,16px 内边距(`p-4`),居中。宽度:确认 / 提示类 ≈ 400px(`max-w-[400px]`);带输入 / 表单的可放宽到 ≈ 460px 并随视口收窄(`min(460px, 100vw-32px)`)。
+- **标题 / 描述**: `--confirm-title` / `--confirm-desc`,medium 字重。
+- **按钮**: pill(9999px);主按钮 = 实心 CTA(`--confirm-btn-primary-*`),次按钮 / 取消 = 描边(`--confirm-btn-secondary-*`,透明底 + Board 边框);底部 `justify-end`。
+- **打开时焦点**: 落在该弹窗的**主输入或主按钮**,不要默认停在取消键(见 §14.2 + ConfirmDialog 的 `autoFocusConfirm` / `onOpenAutoFocus`)。
+
+### Navigation
+
+- Clean horizontal nav with minimal elements
+- Logo: Ollama llama icon + wordmark in black
+- Links: "Models", "Docs", "Pricing" in black at 16px, weight 400
+- Search bar: pill-shaped with placeholder text
+- Right side: "Sign in" link + "Download" black pill CTA
+- No borders, no background — transparent nav on white page
+
+### Image Treatment
+
+- The Ollama llama mascot is the only illustration — black line art on white
+- Code screenshots/terminal outputs shown in bordered containers (12px radius)
+- Integration logos displayed as simple icons in a grid
+- No photographs, no gradients, no decorative imagery
+
+### Distinctive Components
+
+**Tab Pills**
+
+- Pill-shaped tab selectors (e.g., "Coding" | "OpenClaw")
+- Active: Light Gray bg; Inactive: transparent
+- All pill-shaped (9999px)
+
+**Model Tags**
+
+- Small pill-shaped tags (e.g., "ollama", "launch", "claude")
+- Light Gray background, dark text
+- The primary way to browse models
+
+**Terminal Command Block**
+
+- Monospace code showing `ollama run` commands
+- Minimal styling — just a bordered 12px-radius container
+- Copy button integrated
+
+**Integration Grid**
+
+- Grid of integration logos (Codex, Claude Code, OpenCode, LangChain, etc.)
+- Each in a bordered pill or card with icon + name
+- Tabbed by category (Coding, Documents & RAG, Automation, Chat)
+
+## 5. Layout Principles
+
+### Spacing System
+
+- Base unit: 8px
+- Scale: 4px, 6px, 8px, 9px, 10px, 12px, 14px, 16px, 20px, 24px, 32px, 40px, 48px, 88px, 112px
+- Button padding: 10px 24px (consistent across all buttons)
+- Card internal padding: approximately 24–32px
+- Section vertical spacing: very generous (88px–112px)
+
+### Grid & Container
+
+- Max container width: approximately 1024–1280px, centered
+- Hero: centered single-column with llama illustration
+- Feature sections: 2-column layout (text left, code right)
+- Integration grid: responsive multi-column
+- Footer: clean single-row
+
+### Whitespace Philosophy
+
+- **Emptiness as luxury**: The page is remarkably short and sparse — no feature section overstays its welcome. Each concept gets minimal but sufficient space.
+- **Content density is low by design**: Where other AI companies pack feature after feature, Ollama presents three ideas (run models, use with apps, integrations) and stops.
+- **The white space IS the brand**: Pure white space with zero decoration communicates "this tool gets out of your way."
+
+### Border Radius Scale
+
+三档圆角,**仅此三档**:
+
+- **Inner control (8px)**: 窄第三档,**只**给"做不成胶囊"的小交互件:多行输入框(textarea)、下拉 / 菜单的选中行高亮、段内小单元格。实现为 Tailwind `rounded-lg`(8px)。
+- **Container (12px)**: 盒子圆角 — 代码块、卡片、面板、弹窗。实现为 Tailwind `rounded-xl`(12px)。
+- **Pill (9999px)**: 能套胶囊的所有交互件 — 按钮、Tab、单行输入、标签、徽标。
+
+*没有 4px / 6px / 10px,也不开放任意圆角。绝大多数元素仍只在 12px 容器和 pill 里二选一;8px 是给"塞不进胶囊的小控件"的窄例外。注意嵌套:8px 行高亮套在 12px 面板里时,内层圆角必须比容器小才协调(所以是 8 而非 12),做成胶囊则会变成药丸、做成 12px 会显得鼓。*
+
+## 6. Depth & Elevation
+
+
+| Level | Treatment | Use |
+| ------------------ | ------------------------------------------------------------------------- | ---------------------------------------------- |
+| Flat (Level 0) | No shadow, no border | Surface background, most content |
+| Bordered (Level 1) | `1px solid` Board (`#d7d7d4` Light / `#3c3c3a` Dark) | Cards, code blocks, dividers, section outlines |
+| Lifted (Card) | Card fill (`#ffffff` Light / `#2c2c2a` Dark) + optional 1px Board outline | Login cards, modals, raised panels |
+
+
+**Shadow Philosophy**: Ollama uses **zero shadows**. This is not an oversight — it's a deliberate design decision. Every other major AI product site uses at least subtle shadows. Ollama's flat, shadowless approach creates a paper-like experience where elements are distinguished purely by background color and single-pixel borders. Depth is communicated through **content hierarchy and typography weight**, not visual layering.
+
+## 7. Do's and Don'ts
+
+### Do
+
+- Use Surface (`#f8f8f6` Light / `#1f1f1e` Dark) as the page background — every page starts here
+- Use pill-shaped (9999px) radius on all interactive elements — buttons, tabs, inputs, tags
+- Use 12px radius on all non-interactive containers — code blocks, cards, panels
+- Use 8px radius only for inner controls that can't be a pill — multi-line inputs, dropdown/menu rows (see §5)
+- Keep the palette strictly grayscale — no chromatic colors except the blue focus ring
+- Use Inter at weight 500 for display headings — hierarchy comes from size + weight, not typeface switching
+- Maintain zero shadows — depth comes from borders and background shifts only
+- Keep content density low — each section should present one clear idea
+- Use monospace for terminal commands and code — it's primary content, not decoration
+- Keep all buttons at 10px 24px padding with pill shape — consistency is absolute
+
+### Don't
+
+- Don't introduce any chromatic color — no brand blue, no accent green, no warm tones
+- Don't invent arbitrary radii — only three values exist: 8px (inner controls), 12px (containers), 9999px (pill). Nothing in between, nothing else.
+- Don't add shadows to any element — the flat aesthetic is intentional
+- Don't use font weights above 500 — no bold, no black weight
+- Don't add decorative illustrations beyond the llama mascot
+- Don't use gradients anywhere — flat blocks and borders only
+- Don't overcomplicate the layout — two columns maximum, no complex grids
+- Don't use borders heavier than 1px — containment is always the lightest possible touch
+- Don't add decorative or large-motion animation — no bounce, parallax, looping, or gratuitous movement. Short **functional** state transitions (color / background / opacity, ≤150ms) are fine and expected — see §14.4.
+
+## 8. Responsive Behavior
+
+### Breakpoints
+
+
+| Name | Width | Key Changes |
+| ------------- | ----------- | ------------------------------------------------ |
+| Mobile | <640px | Single column, stacked everything, hamburger nav |
+| Small Tablet | 640–768px | Minor adjustments to spacing |
+| Tablet | 768–850px | 2-column layouts begin |
+| Desktop | 850–1024px | Standard layout, expanded features |
+| Large Desktop | 1024–1280px | Maximum content width |
+
+
+### Touch Targets
+
+- All buttons are pill-shaped with generous padding (10px 24px)
+- Navigation links at comfortable 16px size
+- Minimum touch area easily exceeds 44x44px
+
+### Collapsing Strategy
+
+- **Navigation**: Collapses to hamburger menu on mobile
+- **Feature sections**: 2-column → stacked single column
+- **Hero text**: 48px → 36px → 30px progressive scaling
+- **Integration grid**: Multi-column → 2-column → single column
+- **Code blocks**: Horizontal scroll maintained
+
+### Image Behavior
+
+- Llama mascot scales proportionally
+- Code blocks maintain monospace formatting
+- Integration icons reflow to fewer columns
+- No art direction changes
+
+## 9. Agent Prompt Guide
+
+### Quick Color Reference
+
+- Primary Text: "Pure Black (#000000)" Light / "Soft Gray (#d4d4d4)" Dark
+- **Surface** (page bg): "Light Surface (#f8f8f6)" / "Dark Surface (#1f1f1e)"
+- **Card** (elevated layer): "Pure White (#ffffff)" / "Dark Card (#2c2c2a)"
+- **Board** (1px dividers/borders): "Light Board (#d7d7d4)" / "Dark Board (#3c3c3a)"
+- Secondary Text: "Dark Gray (#525252)" Light / "Silver (#a3a3a3)" Dark
+- Tertiary Text: "Stone (#737373)" Light / "Stone (#737373)" Dark
+- Near Black: (#262626) — Light primary reading text
+- Chip/Button Background: "Light Gray (#e5e5e5)" Light / "Dark Chip (#2c2c2a)" Dark
+
+### Example Component Prompts
+
+- "Create a hero section on Surface (#f8f8f6) with an illustration centered above a headline at 48px Inter weight 500, line-height 1.0. Use Pure Black (#000000) text. Below, add a black pill-shaped CTA button (9999px radius, 10px 24px padding) and a gray pill button."
+- "Design a code block with a 12px border-radius, 1px solid Board (#d7d7d4 Light / #3c3c3a Dark) border on Card background. Use JetBrains Mono at 16px for the terminal command. No shadow."
+- "Build a tab bar with pill-shaped tabs (9999px radius). Active tab: Light Gray (#e5e5e5) background, Near Black (#262626) text. Inactive: transparent background, Stone (#737373) text."
+- "Create an integration card grid. Each card is a bordered pill (9999px radius) or a 12px-radius card with 1px solid Board (#d7d7d4) border. Icon + name inside. Grid of 4 columns on desktop."
+- "Design a navigation bar: transparent background, no border. Ollama logo on the left, 3 text links (Pure Black, 16px, weight 400), pill search input in the center, 'Sign in' text link and black pill 'Download' button on the right."
+
+### Iteration Guide
+
+1. Focus on ONE component at a time
+2. Keep all values grayscale — "Stone (#737373)" not "use a light color"
+3. Always specify radius from the three tiers — pill (9999px) / container (12px) / inner control (8px, only for textareas & dropdown rows). Nothing else.
+4. Shadows are always zero — never add them
+5. Weight is always 400 or 500 — never bold
+6. If something feels too decorated, remove it — less is always more for Ollama
+
+## 10. Theme System & Token Reference
+
+### Light / Dark 双模式交付门槛
+
+- **所有 UI 必须同时支持 Light 与 Dark 两种模式。**新增或修改页面、组件、布局、样式、
+ 动效或 UI 文案时,必须在同一项工作中完成两种模式;只设计、只实现或只验证一种模式,
+ 均视为未完成。
+- 两种模式都必须覆盖本次改动涉及的默认态、hover、pressed、selected、focus、disabled、
+ loading、empty、error、弹层与遮罩等实际状态;没有涉及的状态不要求为凑检查而改造。
+- 颜色必须通过语义 token 消费,禁止用仅适配一种模式的硬编码色值或条件分支补丁。设计稿
+ 只提供一种模式时,也必须按现有 token 体系补齐另一种模式;若缺少明确的语义映射,先请求
+ 设计裁决,不得省略另一种模式。
+- 交付前至少对本次受影响界面的 Light 与 Dark 模式分别完成验证,并在提交或 PR 的验证说明
+ 中如实记录;任一模式存在不可读、不可辨、状态缺失或明显视觉回退时,不得视为完成。
+
+### 架构
+
+Cindy 桌面端用 **VSCode 风格的 ColorRegistry + Theme override** 模型管理颜色。所有颜色都通过 CSS variable 以 token 形式被组件消费,**永远不允许在组件里硬编码 hex / rgba**(违反规则会让该组件在非默认主题下无法切色)。
+
+源码:`apps/desktop/src/renderer/themes/`
+- `color-registry.ts` — `ColorRegistry` 单例和 `registerColor(id, defaults, description)` API
+- `colors.ts` — 注册全部 token(目前 352 个:40 semantic slot + 228 alias + 84 singleton),按"semantic slot 在前,alias 和 singleton 在后"组织
+- `theme-service.ts` — `applyTheme(theme)` 把所有 token 序列化成 `:root{}` 注入 `<style id="theme-vars">`
+- `builtin/` — 内置主题对象(`cindy-light.ts` / `cindy-dark.ts` / `eclipse.ts` / `default-light.ts` / `default-dark.ts` 及各社区配色)
+- `registry.ts` — `builtinThemes` 注册表 + `listThemesByType('light' | 'dark')`
+
+切主题:`useTheme.ts` 提供 `theme`(System / Light / Dark mode) + `lightThemeId` / `darkThemeId`(具体哪套主题)。Settings → Appearance 是 UI 入口。
+
+### Token 分层
+
+**Tier 1 — Semantic slot (39 个)**:跨语境复用的核心语义槽,加新主题时这一层是 override 的主战场。
+
+| 类目 | Slot | Ollama Light | Ollama Dark | 主要用途 |
+|---|---|---|---|---|
+| **Surface (12)** | `--surface` | `#f8f8f6` | `#1f1f1e` | 页面 Surface(hex 形式) |
+| | `--surface-hsl` | `60 12.5% 97%` | `60 2% 12%` | 同上 HSL 形式,`hsl(var(--xxx))` 消费 |
+| | `--surface-elevated` | `#ffffff` | `#2c2c2a` | Card 抬一层 / 弹窗 / popover |
+| | `--surface-elevated-soft` | `#e5e5e5` | `#2c2c2a` | Disabled 状态 Card |
+| | `--surface-card-ivory` | `#faf9f5` | `#2c2c2a` | Settings 微暖 ivory Card |
+| | `--surface-chip` | `#e5e5e5` | `#3c3c3a` | Chip / pill / 选中行 |
+| | `--surface-chip-alt` | `#e5e5e5` | `#2c2c2a` | Chip 暗态塌缩到 Card 变体 |
+| | `--surface-hover` | `#e5e5e5` | `#3c3c3a` | 通用 hover bg |
+| | `--surface-hover-soft` | `#f8f8f6` | `#3c3c3a` | 柔和 hover bg |
+| | `--surface-hover-hsl` | `0 0% 90%` | `60 2% 17%` | hover HSL 形式 |
+| | `--surface-on-card` | `#ffffff` | `#1f1f1e` | CTA / checked icon 深色前景 |
+| **Border (4)** | `--border-default` | `#d7d7d4` | `#3c3c3a` | 本规范 Board 1px 边框 |
+| | `--border-default-hsl` | `60 3% 84%` | `60 2% 23%` | Board HSL 形式 |
+| | `--border-shadcn-hsl` | `0 0% 90%` | `30 4% 28%` | shadcn input/border HSL |
+| | `--border-transparent-mixed` | `transparent` | `#3c3c3a` | progress track 等单边边框 |
+| **Text (16)** | `--text-primary` | `#262626` | `#d4d4d4` | 主标题 / 主正文 |
+| | `--text-primary-hsl` | `0 0% 9%` | `0 0% 83%` | Primary HSL 形式 |
+| | `--text-primary-on-dark` | `#262626` | `#ffffff` | 反相文本(stop button icon 等) |
+| | `--text-primary-emphasis` | `#1a1a1a` | `#d4d4d4` | Plan 强调主文字 |
+| | `--text-primary-inv` | `#1a1a1a` | `#ffffff` | Plan-action approve text |
+| | `--text-primary-body-strong` | `#525252` | `#d4d4d4` | Plan content body 加重 |
+| | `--text-secondary` | `#737373` | `#a3a3a3` | Secondary 文字 / icon |
+| | `--text-secondary-cross` | `#a3a3a3` | `#a3a3a3` | 跨主题更浅 secondary |
+| | `--text-secondary-mid` | `#525252` | `#a3a3a3` | Muted body 文字 |
+| | `--text-tertiary` | `#a3a3a3` | `#737373` | Placeholder / tertiary |
+| | `--text-tertiary-stone` | `#737373` | `#737373` | Stone 跨主题三级 |
+| | `--text-tertiary-mid` | `#525252` | `#737373` | Mid-gray tertiary |
+| | `--text-tertiary-hsl` | `0 0% 45%` | `0 0% 45%` | Tertiary HSL |
+| | `--text-disabled` | `#d4d4d4` | `#525252` | Disabled / failed |
+| | `--text-disabled-tertiary` | `#a3a3a3` | `#737373` | Disabled placeholder 变体 |
+| | `--text-placeholder` | `#c4c4c4` | `#525252` | 统一 placeholder slot(比 tertiary 更淡,读着像空);chat/ask/settings/plan-action-fb 输入框 placeholder 均收口于此 |
+| **Accent (7)** | `--accent-cta-bg` | `#262626` | `#ffffff` | 反相 CTA bg |
+| | `--accent-cta-bg-pure` | `#000000` | `#ffffff` | Pure CTA bg |
+| | `--accent-emphasis` | `#262626` | `#d4d4d4` | settings primary button 等 |
+| | `--accent-soft` | `#262626` | `#ffffff` | Soft accent(folder btn 等) |
+| | `--accent-hover` | `#262626` | `#e5e5e5` | CTA pressed/hover |
+| | `--accent-pure-cta-fg` | `#ffffff` | `#000000` | CTA 文字 pure 反相 |
+| | `--accent-fg-on-pure` | `#ffffff` | `#1f1f1e` | CTA 文字 light 白 / dark 沉 |
+
+**Tier 2 — Alias (228 个)**:大量 component-scoped token(如 `--cmd-palette-bg`、`--msg-tool-card-text`、`--settings-input-border`)的 default 改写为 `var(--slot)`。浏览器自动 forward-resolve。组件不感知,**继续直接消费 alias 名字即可**。
+
+**Tier 3 — Singleton (84 个)**:真独立的色值,无法收敛到 slot:语义豁免色(`--destructive` / `--diff-add-*` / `--status-bar-accent` 等)、平台特定色、splash 时长、`--radius` 等非颜色 token。
+
+### 语义豁免色(跨主题不变)
+
+| Token | Light | Dark | 用途 |
+|---|---|---|---|
+| `--destructive` (HSL) | `0 84% 60%` | `0 72% 63%` | 通用 destructive 文本/边 |
+| `--login-error-text` 等 5 个 | `#ef4444` | `#ef4444` | 错误文本 |
+| `--error-bg/-border/-fg/-fg-strong` | (red) | (red) | Error alert 卡片子系统 |
+| `--diff-add-fg/-bg`, `--diff-del-fg/-bg` | GitHub palette | GitHub palette | Diff 渲染 |
+| `--status-bar-accent` | `#EA6B17` | `#EA6B17` | Thinking Orange,跨主题统一(定稿 2026-07-17) |
+| `--plan-action-approve-icon-bg` | `#EA6B17` | `#EA6B17` | Plan approve,同 thinking 语义(随 warning-accent,定稿 2026-07-17) |
+| `--perm-bypass-selected-text` | `#EA6B17` | `#EA6B17` | Heart Orange,permission 语义(var(--warning-accent) 自动跟随,定稿 2026-07-17) |
+| `--settings-integration-warning` | `#EA6B17` | `#EA6B17` | warning 语义(var(--warning-accent) 自动跟随,定稿 2026-07-17) |
+| `--warning-bg-soft` | rgba(255,102,0,0.12) | rgba(255,102,0,0.18) | Warning alpha surface |
+| `--focus-ring` / `--focus-ring-soft` | `#417CDD` / @50% | 同左 | a11y 焦点 ring,定稿 2026-07-17(取代 #3b82f6),跨主题统一 |
+| `--shadow-menu` / `--cmd-palette-shadow` / `--confirm-shadow` | rgba | rgba(更深) | Shadow,跨主题统一 |
+| `--overlay-modal` / `--overlay-lightbox` | rgba | rgba(更深) | Modal / lightbox backdrop |
+| `--perm-auto-selected-text` | `#417CDD` | `#417CDD` | Auto Approval accent,定稿 2026-07-17(light/dark 同值,取代 #000050/#00D9C5) |
+| Toast `#417CDD / #2AAE5B / #F3A115 / #D91F37` | (在 Toast.tsx hardcode,已导出 VARIANT_MAP) | 同左 | E5D 定稿 2026-07-17(Toast 豁免解除,并入状态色族) |
+
+实现组件时**永远不要在硬编码 hex 上自由发挥这些语义色**——必须走对应 token。
+
+### 内置主题
+
+当前实现以 `apps/desktop/src/renderer/themes/registry.ts` 的 `builtinThemes` 为准,新增/移除主题不要求同步本文档。默认的 light/dark 主题(基础主题)就是本文 §2 列的色值。
+
+### 新主题怎么加(完整流程)
+
+1. 新建 `apps/desktop/src/renderer/themes/builtin/<id>.ts`,导出 `Theme` 对象:
+ ```ts
+ export const myTheme: Theme = {
+ id: 'my-theme',
+ name: 'My Theme',
+ type: 'light' | 'dark',
+ colors: {
+ // 只 override 跟基础主题不同的 token,空对象 {} 也合法(完全等于基础主题)
+ 'surface': '#xxx',
+ 'text-primary': '#xxx',
+ // ... 大概率只需要 override 30-90 个 token
+ },
+ };
+ ```
+2. 注册到 `themes/registry.ts` 的 `builtinThemes`
+3. 设置页 Appearance 的 Light/Dark Theme dropdown 自动 pick up
+
+参考 `themes/builtin/` 下任一已存在的非默认主题作为模板。
+
+### Token 命名约定
+
+- **slot**:`{category}-{subkind}[-{variant}]`,如 `text-primary-emphasis` / `surface-chip-alt`。`-hsl` 后缀表示 HSL 三元组形式。
+- **alias**:沿用历史 component-scoped 命名(`--cmd-palette-bg` / `--settings-back-text` 等),无前缀。
+- **singleton**:语义清晰即可,通常带 component 前缀。
+
+CSS variable 名一律 kebab-case。点号风格(如 VSCode 的 `sidebar.itemActive`)由于 CSS variable 不支持暂未采用。
+
+### 实现新 UI 时的 token 选择规则
+
+1. **先 grep `colors.ts`**:你的 UI 类型常对应已有 slot/alias(card bg = `--cmd-palette-bg` / `--surface-elevated`,等)
+2. **slot 优先**:能用 slot 就别用 component-scoped alias(slot 跨主题表现更可控)
+3. **HSL token 必须 wrap**:`hsl(var(--background))` 不能写成 `var(--background)`(后者会得到原始 HSL 字符串,不是合法 CSS color)
+4. **找不到合适 token 时,不要硬塞**:跟用户讨论是否要新增 slot/singleton
+5. **不接受** `bg-[#xxx] dark:bg-[#xxx]` 这种硬编码 pair——这是 P2 前的反模式,已经全量迁移过一次,新代码不允许引入
+
+本节即 token 使用规则的权威正文;UI 文案的 i18n 落地规则见
+`docs/dev-rules/engineering-conventions.md` §5。
+
+## 11. Voice & Content(微文案规范)
+
+> **状态:草案**,2026-06 引入(参考 Vercel Geist `design.md` 的 Voice & Content 一节)。本节规定**界面文案怎么写**,与 `docs/dev-rules/engineering-conventions.md` §5(i18n 体系)配套——那边管"文案必须 4 语言对齐、经 i18n key 落地",本节管"每条文案本身的语气/措辞"。本节不新增任何 UI 字符串,只约束写法。
+
+Cindy 的产品气质和视觉一致:**克制、直接、不自夸**。文案是工具的一部分,不是营销。
+
+### 11.1 语言无关原则(zh-CN / en / ja / ko 全部适用)
+
+- **动作 = 动词 + 宾语,不要裸动词**。按钮/菜单项说清"对什么做什么":`Deploy Project` / `删除会话` / `セッションを削除`,**禁止** `Confirm` / `OK` / `确定` / `提交` 这类无宾语的孤立动词(确认弹窗的主按钮尤其要带宾语,让用户脱离上下文也能看懂)。
+- **错误信息 = 发生了什么 + 怎么办**。只报"出错了 / Failed"不合格;要给出下一步("连接超时,检查网络后重试")。对应 `docs/dev-rules/engineering-conventions.md` §2(IPC 错误协议):IPC 错误码是给代码用的,面向用户的那句话必须人话 + 可操作。
+- **进行中态 = 现在进行时 + 省略号**。`Deploying…` / `正在部署…` / `デプロイ中…`。我们 ChatView 的 Thinking 状态栏(`Spelunking…`,Thinking Orange)已是这个范式,新增加载/处理态沿用。
+- **结果反馈点名对象、不说"成功"**。Toast 说"变了什么"而不是"操作成功了":`会话已删除` 而非 `删除成功`;`Project deleted` 而非 `Deleted successfully`。**禁止** "successfully / 成功了" 这类废话词。(Toast 的视觉规范见 §2,本条只管文案。)
+- **空状态指向第一个动作**,别只画一句"暂无数据"——告诉用户现在能做什么("还没有会话,点 + 新建一个")。
+- **不卑不亢,但分语言**:英文不写 "Please"(界面不是在求用户)。**中文的"请"是地道礼貌用法,不在此列**——"请输入…""请先授权""请选择文件"这类该保留,不要为了套规则把中文改得生硬。两种语言都不写营销级形容词("强大的 / 极致 / 全新")。
+
+### 11.2 各语言的大小写与标点(语言相关,不可照搬)
+
+- **English**:标签 / 按钮 / 标题 / Tab 用 **Title Case**(`Deploy Project`);正文 / 帮助文字 / Toast 用 **sentence case**(只首字母大写)。用弯引号 `" "` 和省略号字符 `…`,不用 `"` 和 `...`。
+- **zh-CN**:**没有 Title Case 概念**,不要逐词首字母大写、不要给中文塞英文式标点;中英混排时英文术语保留原样(`部署 Project`)。句末 Toast / 标签不加句号。
+- **ja / ko**:同样无 Title Case;遵循各自的助词/敬体习惯,术语译法没把握时先查证(对应 `docs/dev-rules/engineering-conventions.md` §5:ja/ko 不许硬凑)。
+- **数字 / 单位**:四语言都用阿拉伯数字 + 半角,数字与单位间距按各语言习惯。
+
+### 11.3 自查清单(改动文案时)
+
+- [ ] 动作按钮带宾语,不是裸 `确定` / `OK`
+- [ ] 错误文案给了"怎么办",不是只报错
+- [ ] 没有 "successfully / 成功" 废话词
+- [ ] 进行中态是"现在进行时 + …"
+- [ ] 4 个 `common.json` 都补齐且符合本语言的大小写/标点(见 `docs/dev-rules/engineering-conventions.md` §5)
+
+## 12. Component Spec(结构化样板 — 待定)
+
+> **状态:样板,待你 review。** 本节是把 §4 组件散文规格改写成 **Vercel `design.md` 那种「可机读 / 可执行」结构化键值**的试点,先做 Buttons / Inputs / Cards 三个。**确认采用后,就地替换 §4 的散文描述并删除本节**;不采用则整节删掉,§4 不受影响。
+>
+> 读法:`字段 → token → Default Light / Default Dark 解析值`。token 名以 §10 表为准;`⚠` 标记"规范里有值但 §10 暂无对应 token / 字段在 §4 未定义"的缺口——这正是结构化格式相对散文的价值:把隐性缺口显性化。
+
+```
+button/primary (Gray Pill — 主按钮)
+ fill --surface-chip #e5e5e5 / #3c3c3a
+ text --text-primary #262626 / #d4d4d4
+ border 1px solid --surface-chip (同 fill)
+ radius 9999px (pill)
+ padding 10px 24px
+ height ⚠ §4 未定义(§4 仅给 padding)
+
+button/secondary (White Pill — 次按钮)
+ fill --surface-elevated #ffffff / #2c2c2a
+ text --text-primary #262626 / #d4d4d4 (G1 已解决:原 #404040「Button Text Dark」是漂移)
+ border --border-default #d7d7d4 / #3c3c3a (G2 已解决:原 #d4d4d4「Border Light」是漂移)
+ radius 9999px (pill)
+ padding 10px 24px
+
+button/cta (Black Pill — 最高强调)
+ fill --accent-cta-bg-pure #000000 / #ffffff
+ text --accent-pure-cta-fg #ffffff / #000000
+ radius 9999px (pill)
+ padding 10px 24px
+
+input/text
+ fill --surface-elevated #ffffff / #2c2c2a
+ text --text-primary #262626 / #d4d4d4
+ border --border-default #d7d7d4 / #3c3c3a
+ radius 9999px (pill)
+ focus --focus-ring #3b82f6 @50%(双层带缝 ring 见外部讨论 ③,待定)
+ placeholder --text-placeholder #c4c4c4 / #525252 (G3 已解决:新增统一 slot,4 个输入面 alias 全部收口)
+
+card/container
+ fill --surface-elevated #ffffff / #2c2c2a (页面级 flat 布局下改用 --surface,见 §2 layer rule)
+ border 1px solid --border-default #d7d7d4 / #3c3c3a (需要分隔时才加)
+ radius 12px (Tailwind rounded-xl,直接量) — 容器档圆角(三档之一,见 §5;8px 仅内层控件 textarea / 下拉行,pill 给交互件)
+ ⚠ 不要用 §10 的 --radius:那是 shadcn 原语用的 0.5rem(8px),与本 12px 容器圆角是两回事
+ shadow none
+ hover --surface-hover #e5e5e5 / #3c3c3a (§4 原文是「likely」,此处给出可用 token)
+```
+
+## 13. Known Spec / Token Gaps(跟踪中)
+
+> §12 结构化重写过程中暴露的设计系统欠债。本节**持久存在**(独立于 §12 是否被采用),每条解决后打勾并把结论并入 §2 / §4 / §10。下列"现状"均已 grep 源码核实(以源码为准),非臆测。涉及新增/改 token 的(G3 / G4)按第 10 节的 token 规则须先与 owner 确认再动 `colors.ts`。
+
+- [x] **G1 — 白底次按钮文字 `#404040`「Button Text Dark」是文档漂移,非真 token**(已解决 2026-06)
+ 现状:§2 / §4 称其"专用于白底按钮文字",但全仓库只有 `features/maker-experimental/MakerExperimentalView.tsx`(实验视图,裸 hardcode)出现 #404040,**无任何真实次按钮**用它做文字色;§10 也无对应 token。
+ 处理:§2 标废弃、§4 White Pill 文字改引 `--text-primary`(#262626)。未动 token,纯文档。
+
+- [x] **G2 — 次按钮边框 `#d4d4d4`「Border Light」同为漂移**(已解决 2026-06)
+ 现状:§4 称白底按钮边框 `1px solid #d4d4d4`,但无真实组件这么用;#d4d4d4 的线上出现要么在实验视图(裸 hardcode),要么是**暗色主文字**(`--text-primary` dark = #d4d4d4,如 SchedulerPage CTA 注释),与"边框"无关。真边框 token 是 `--border-default`(#d7d7d4)。
+ 处理:§2 标废弃、§4 White Pill 边框改引 `--border-default`(#d7d7d4)。纯文档。
+
+- [x] **G3 — placeholder token 碎片化 + 取值自相矛盾(真欠债)**(已解决 2026-06)
+ 现状:4 个 per-surface alias 无统一 slot,且取值打架——`--settings-input-placeholder` = #c4c4c4(§4 认证的"淡到读着像空"),但 `--chat-input-placeholder` = `var(--text-tertiary)` = **#a3a3a3(Silver)**,而 §4 白纸黑字说 Silver **太显眼、读着像已填、不可做 placeholder**。即聊天输入框 placeholder 实际违反了我们自己的 §4 规范。
+ 处理:`colors.ts` 新增语义 slot `--text-placeholder`(#c4c4c4 / #525252),4 个 alias(chat/ask/settings/plan-action-fb)default 收口为 `var(--text-placeholder)`;7 套非默认主题原 `settings-input-placeholder` override 就地改名为 `text-placeholder`(沿用原常量,避免回退,符合第 10 节对每套主题的 override 评估)。默认主题下 chat placeholder 由 #a3a3a3 修正为 #c4c4c4。2 套亮色主题(atom-one-light / solarized-light)的 `text-placeholder` 进一步从 tertiary 改用各自 **disabled 档**(更淡)——亮色背景下 tertiary≈2.6:1 命中 §4 禁用 Silver 的对比度,placeholder 须更淡才读着像空(2026-06 review 反馈)。**本地/复制主题兼容**:slot 引入前创建的本地主题快照只冻结了旧 per-surface placeholder key、无 `text-placeholder`,加载期 `mapWireTheme` 经 `local-themes-normalize.ts` 归一化——缺 `text-placeholder` 时从旧 `settings-input-placeholder`(或任一 per-surface 值)播种并丢弃 4 个旧 per-surface override,使四个输入面统一走新 slot(不改写盘上 JSON、幂等;2026-06 review 反馈)。
+
+- [x] **G4 — `--radius`(8px)与容器圆角同名不同义(已解决 2026-06)**
+ 现状:`--radius` 实为 `0.5rem`(8px,shadcn 原语用);容器 12px 圆角实际靠 Tailwind `rounded-xl` 直接量实现。
+ 处理:**圆角体系正式从"二元"改为"三档"**(8px 内层控件 / 12px 容器 / 9999px pill,见 §5 + §7 + §1)。8px 这一档窄范围限定多行输入框、下拉 / 菜单选中行、段内小单元,实现为 `rounded-lg`;shadcn `--radius`(8px)与这个内层档数值相同但语义独立(原语专用),容器仍走 `rounded-xl`(12px)。**本次纯文档,未动 token**。是否进一步 token 化为 `--radius-inner`(8px)/ `--radius-container`(12px)/ `--radius-pill`(9999px),收益偏低、**暂缓**,要做走第 10 节的新增 token 流程。
+
+> **旁注(不在本次范围,仅记录)**:`MakerExperimentalView.tsx` 通篇裸 hardcode hex(#404040 / #d4d4d4 / #262626 / #333),违反第 10 节 token 规则。因是 experimental 视图、且非本次任务,**不在此清理**,仅备忘。
+
+## 14. Interaction Conventions(交互约定)
+
+> 2026-06 引入。本规范此前只规范"长什么样"(色 / 圆角 / 字体 / 间距),不规范"怎么交互"——文本能不能选中、弹窗开了焦点落哪、回车是发送还是换行,这些反复要靠人逐个指出。本节把这些**非视觉的交互行为**钉成全局约定,与 §11(文案语气)互补。能用代码统一保证的就别靠人记(对应 `docs/dev-rules/maker-core-and-agent-behavior.md` 的「代码优先确定性」)。
+
+### 14.1 文本可选性(user-select)
+
+- **正文内容可选**:消息气泡正文、代码块、文档预览、用户会"读句子 / 想复制"的文字 —— 默认可选,不要动。
+- **Chrome 不可选**:按钮、菜单项、标签 / chip、状态条、徽标、工具条、侧栏项这类**界面骨架文字**一律 `select-none`。它们是控件不是内容,能被选中只会碍事(典型:goal 状态 chip 的文字)。
+- 判断标准:用户会想"复制这段话"吗?会 → 可选;不会(它只是个控件)→ `select-none`。
+
+### 14.2 焦点管理(focus)
+
+- 弹窗 / 抽屉 / popover 打开时,焦点落到**首要输入框**(没有输入框则落主按钮),**不要**默认停在"取消"上。Radix 默认会聚焦第一个可聚焦元素 / Cancel —— 用 `onOpenAutoFocus`(`preventDefault()` + 手动 `focus()`)或 ConfirmDialog 的 `autoFocusConfirm` 覆盖。
+- 关闭后焦点归还触发它的元素(Radix 默认行为,别破坏)。
+
+### 14.3 键盘与输入法(发送型文本框)
+
+适用于"敲完就发"的提交型文本框:聊天 composer、目标输入、ask 输入等。**不含**普通设置项里的单行编辑框 —— 那种 Enter 不应触发提交。
+
+- **Enter = 提交**,**Shift+Enter = 换行**。
+- **输入法组字期间的 Enter 不触发提交** —— 判 `event.nativeEvent.isComposing`(中 / 日 / 韩用户选字按的回车不能被当成发送)。
+- 这套逻辑用代码统一,不要每个框各写一遍导致行为漂移(对应 `docs/dev-rules/maker-core-and-agent-behavior.md` 的「代码优先确定性」)。
+
+### 14.4 动效与过渡(motion)
+
+> 2026-07 扩写。Cindy 的动效性格承接 §1 / §7 的纸感与克制:**东西不飞不弹,只淡入、只轻推、只平滑改变尺寸**。允许功能性状态过渡,禁止装饰性动效;本节把"功能性"钉成可执行的档位与原型,避免各组件时长/曲线各自为政。
+
+#### Motion token(唯一档位来源)
+
+全局 token 定义在 `apps/desktop/src/renderer/styles/globals.css` 的 `:root`;移动端(`apps/mobile`)应在 `src/theme/tokens.ts` 落同名同值常量(双端同构,与颜色 token 的双端策略一致,随移动端动效改造落地)。**新增过渡/动画一律引用 token,不再硬编码时长与 cubic-bezier**;5 档时长 + 3 条曲线,与 §5 三档圆角同一哲学,档位之外的值先过设计评审。
+
+| Token | 值 | 用途 |
+|---|---|---|
+| `--motion-instant` | 80ms | hover 即时反馈、轻浮层退场 |
+| `--motion-fast` | 150ms | 颜色/透明度状态切换(`transition-colors` 即此档)、轻浮层入场 |
+| `--motion-base` | 200ms | 尺寸变化:展开折叠、面板收展 |
+| `--motion-enter` | 250ms | 重浮层(弹窗)入场 |
+| `--motion-exit` | 150ms | 重浮层(弹窗)退场 |
+| `--motion-ease-out` | `cubic-bezier(0.16, 1, 0.3, 1)` | 入场/展开 |
+| `--motion-ease-in` | `cubic-bezier(0.4, 0, 1, 1)` | 退场 |
+| `--motion-ease-move` | `cubic-bezier(0.4, 0, 0.2, 1)` | 位置/尺寸插值 |
+
+#### 语义 → 动效原型(同一语义全 app 同一动效)
+
+| 语义 | 规格 | 参照实现 |
+|---|---|---|
+| 轻浮层(menu / popover / tooltip) | 入 `animate-float-in`(opacity + scale 0.97→1,fast/ease-out;tooltip 纯 opacity 用 `animate-fade-in`),出 `animate-float-out`(纯 opacity,instant/ease-in)。**退场永远快于入场,退场不缩放**(缩放退场读作"被吸走",纸应该原地淡掉) | `components/ui/dropdown-menu.tsx` |
+| 重浮层(modal / confirm) | 入 250ms 淡入+scale 0.95→1,出 150ms | `components/ui/confirm-dialog.tsx` |
+| 展开/折叠 | base/ease-move,grid `0fr↔1fr` 高度 + opacity | `features/cc-agent/sidebar/SectionCollapse.tsx` |
+| 列表重排 | FLIP,transform 平移 | `components/ui/toast/ToastContainer.tsx` |
+| 按压 | `active:scale-[0.98]`(交互 pill / 按钮通用) | ConfirmDialog 按钮 |
+| 完成 | **全 app 唯一允许 overshoot 的语义**(`status-done-pop`) | `globals.css` |
+| 运行中 | opacity 呼吸,必须挂 HTML wrapper(AGENTS.md 规则 7) | `session-breathing` |
+| hover / 状态色 | `transition-colors`,≤ fast(150ms) | 全 app 现状 |
+| 容器形变(chip 长成弹层) | 220ms,见下方独立类目(显式例外) | composer 权限/模型选择器 |
+
+#### 红线(性能与克制)
+
+- **常驻/循环动画只允许 HTML 元素上的 `transform` / `opacity`**(compositor-only,AGENTS.md 规则 7 全文适用;SVG 上不挂任何动画)。
+- 高度/grid 等非 compositor 属性只允许**一次性瞬态动画**(用户触发、有明确结束),不允许常驻。
+- 新增 `@keyframes` / `animate-*` 类必须同步登记 `globals.css` 的 `prefers-reduced-motion` 白名单(全局 `* { transition: none }` 兜不住 keyframes)。
+- 实时跟手的交互(resizer 拖动、拖拽跟随)**不加缓动**——跟手即反馈。
+- 禁止:无意义位移、弹跳、视差、循环装饰动画、`transition-all`、给流式文本加打字机逐字动画(流式本身已是动效)。交互仍应"快、直接"。
+
+#### 例外类目:容器形变(container transform,脱身上浮式)
+
+- 2026-07-21 新增、2026-07-22 修订的第二类 sanctioned motion,专用于 composer 工具条上「chip 脱身上浮长成弹层」的开合(权限选择器 / 模型选择器 / + 菜单这类 trigger 即弹层锚点的控件):
+ - **定义**:弹层不是"凭空浮现盖在 trigger 上",而是以 trigger chip 的精确几何(位置 / 尺寸 / 胶囊圆角 / pill 底色)为形变起点,一边生长一边**整体位移脱身**,最终停靠在 chip 的打开侧、与 chip 留 6px 间隙;关闭时反向缩回 chip。**trigger chip 全程可见、可交互** —— 面板打开后再点 chip 即关闭(保住"原地再点一下收起"的肌肉记忆)。曾试过"原位取代"式(chip 隐藏、面板占据原位),因丢失 toggle 关闭且时序复杂已废弃,不要回退。**开合两端均做与位移耦合的整体淡入/淡出**(面板与 chip 重叠的端部帧若不透明,会把 chip 内容盖没一下造成"按钮闪烁";淡入随上浮显形、淡出随缩回溶解)——禁止无位移的纯 fade-in/out。
+ - **参数**:时长 **220ms**(开合对称,2026-07-22 自 300ms 调快定稿),缓动 `cubic-bezier(0.3, 0.9, 0.25, 1)`(快起步长缓收);菜单行淡入可带 ≤20ms/行 的错峰。这是 ≤150ms 基线的**显式例外**,仅限本类目,不得外溢到其它过渡。形变期间面板内容区必须禁滚(滚动条闪现会挤压行宽,行尾元素抖动),动画完成后再开自滚。
+ - **圆角插值**:形变起点圆角写 chip 高度的一半(如 30px chip → 15px),**禁止写 9999px**(9999→12 的插值会让中途帧圆成一坨);终点为容器 12px。
+ - **实现红线**:(a) 必须 `prefers-reduced-motion` 降级为直切;(b) 测量目标几何时必须临时禁用 transition(否则 offsetHeight 在宽度过渡第 0 帧按旧宽度排版,含换行文本时量出假高度);(c) 属一次性开合动画,不受"常驻动画 compositor-only"红线(`docs/dev-rules/engineering-conventions.md` §7)约束,但仍需在低端 Windows 实测 300ms 内不掉帧;(d) 焦点 / Esc / outside-click / 焦点归还语义与 §14.2 相同,形变不豁免任何 a11y 要求。
+ - **适用边界**:仅限"trigger 长成弹层"的控件。普通 Dialog / ConfirmDialog / Toast / lightbox 不适用(它们没有 chip 锚点,维持现状)。窄变体(按钮宽度展开)仅允许**承载信息的展开**(如语音录音中的红点 + 计时,≤240ms);纯装饰性的 hover 展出文字标签(如 + 展出"添加")已评估并移除,不要再加。
+- **composer 工具条控件两档 chrome + 会话内/新建对话框共用一套(2026-07-22 用户定稿)**:
+ - **变形下拉档(+/权限/模型)**:静息**裸态无框**(`border border-transparent bg-transparent`),hover 才浮现胶囊外框(`hover:border-[var(--border-default)]` + `composer-pill-bg`);选中/危险档只染文字色,不改底。
+ - **常驻工具档(语音/发送)**:常驻外框 / 实心 CTA(语音 `composer-pill-bg`+`border-default`,hover `model-trigger-hover`,录音态 `surface-chip` 填充+红点计时展开;发送 `send-btn-*` 中性反相实心)。
+ - **会话内(default)与新建对话框(create-agent)必须逐字一致**:两处共享控件(+/权限/模型/语音/发送)不再按 `visualVariant` 分叉样式,`create-agent-control-*` / `create-agent-send-*` 不得再用于这五个控件(仅剩新建对话框独有的 Claude|Codex 分段切换、顶部 模式/项目/分支 pills 继续用 create-agent 私有 token)。改任一控件的 chrome,两端一起改。合同测试 `newMakerCreateAgentVisualContract.test.ts` 守此不变量。
+- **限额重置撒花(quota reset confetti)** —— 2026-07-23 用户拍板新增的第三类 sanctioned motion,**仅限**状态栏用量 chip 的「限额窗口重置揭晓」时刻(倒计时归零 → 悬念期「重置中…」→ 新快照落地):
+ - **定义**:新快照确认重置的一瞬间,以**正在揭晓的窗口段中心**为原点撒一次花,与剩余百分比 0%→100% 滚动同时开始 —— 把"额度回来了"做成一个可感知的庆祝点。
+ - **形态**(用户四/五轮拍板 2026-07-23):**真实抛物线上抛 + 落地即隐** —— 全部粒子同时从段中心以约 **100° 扇形**(正上方 ±50°)同速率抛出,**水平匀速 + 垂直恒定重力**(上升恒减速、过顶点恒加速回落),从爆出到下落全程速度感一致;角度大的粒子弧低、飞得远、先落地,错落由物理自然给出。落到地面线的最后一小段以**短渐隐**消失:可以落地,但禁止落定后停留("躺尸")或不带渐隐地突然消失;地面线带随机抖动,落点不排队。
+ - **参数红线**:一次性庆祝,同时起飞、无错峰 delay;单粒时长由弧高物理决定并 clamp 进 0.9s-1.6s、总时长约 1.6s 收尾(数字滚动 1.2s 站定后纸屑再落零点几秒;弧尺度与节奏为用户微调定稿 2026-07-23);粒子 ≤18 颗、3-5px,放完即拆,不循环不常驻;粒子为 HTML 元素、只动 `transform` / `opacity`(compositor-only,工程规范 §7;x/y 分离在两层 span 上实现匀速水平);颜色仅取「小状态点 hue 豁免簇」四色(done 绿 / awaiting 青 / thinking 橙 / error 红),light/dark 同值;必须 `prefers-reduced-motion` 整体跳过。
+ - **适用边界**:仅此一处。撒花不得外溢到任务完成、发送成功等其它时刻 —— 那些场景维持 §14.4 基线(需要新豁免必须回到本节逐条新增)。实现见 `apps/desktop/src/renderer/components/status/QuotaResetConfetti.tsx`。
+
+
+## 15. CINDY 皮肤族(品牌化可选 family)
+
+> 本节为 CINDY 皮肤族的规范记录,**不改写 §1-7 默认皮肤规范**。值的权威来源:
+> `skin-docs/10-specs/` 桌面端体系、`skin-docs/30-mobile/2026-07-18-m0-color-mapping.md`
+> 移动端勘误版,以及 2026-07-18 双端验收后的用户最终口头定稿。实现时零自由裁量。
+
+### 15.1 色板(Figma 文本节点提取)
+
+| 语义 | Light | Dark |
+|---|---|---|
+| 品牌红 | `#DF0C27` | `#DF0C27` |
+| 品牌深红(hover/pressed) | `#A61629` | `#A61629` |
+| 背景 | `#EDEDED` | `#2A2828` |
+| 卡片/输入框 | `#F8F8F8` | `#312F2F` |
+| 边框 | `#DCDFE3`(desktop;mobile light 为全局例外 `#C6C9CE`,见「双端颜色同构」) | `#434343` |
+| 二级信息 | `#8C8E94`(用户调参 2026-07-20,自 Figma `#9A9DA3` 两轮加深) | `#6F6F6F` |
+| 正文 | `#3C3F43` | `#D4D4D4` |
+| 纯白 | `#FFFFFF` | `#FFFFFF` |
+
+### 15.2 三份红 exact map(品牌红边界)
+
+- **BRAND_RED_EXPECTED_BY_ID**(必须等于品牌红/深红):`accent-cta-bg`/`accent-cta-bg-pure`/`accent-emphasis`/`confirm-btn-primary-bg`/`perm-allow-btn-bg`/`update-btn-border`/`update-btn-text`(均 `#DF0C27`);`primary`(HSL,RGB 归一等价品牌红)。`sidebar-item-active` 已于 2026-07-20 随反相胶囊定稿退出红 map(见 §15.10 勘误);`migration-bar-fill` 已随主干迁移条退役移出(2026-07-19)。
+- **BRAND_RED_ALLOWED_IDS**(允许含红全集 = EXPECTED ∪ 派生):上述 + `accent-soft`/`accent-hover`/`confirm-btn-primary-hover`/`settings-btn-primary-bg`/`settings-btn-primary-border`/`settings-btn-primary-hover-bg`。`drop-overlay-bg` 已于 2026-07-19 撤红移出名单(见 §15.13 C 类勘误)。
+- **CTA_FOREGROUND_WHITE_IDS**(红底白前景):`accent-pure-cta-fg`/`confirm-btn-primary-text`/`perm-allow-btn-text`/`primary-foreground`/`settings-btn-primary-text`。
+
+单向禁止:`ALLOWED` 之外任何 token 出现 `#DF0C27`/`#A61629` = 测试红。
+
+### 15.3 插值表(sRGB 每通道 `round(A+(B-A)*t)`)
+
+详见决策表 §2。Light/Dark 各 20/40/65/75% 档已冻结精确值进单测(`#EFEFEF/#F1F1F1/#F4F4F4/#F5F5F5`、`#2B2929/#2D2B2B/#2F2D2D/#2F2D2D`)。
+
+### 15.4 豁免(不纳入 CINDY 覆盖,跨主题统一)
+
+- 语义色:`warning-accent` `#EA6B17`(定稿 2026-07-17,取代 `#FF6600`)/ `annotation-accent` `#FF3B30`(图片标注烧录笔迹色,语义豁免,不改)/ `status-bar-accent`(alias warning orange,自动跟随)。
+- 状态四色(设计定稿 2026-07-17,取代冻结红线;全局 light/dark 同值,9 主题无 override 自动跟随):running `#EA6B17` / awaiting `#19D2C1` / error(状态族)`#D91F37` / done `#2AAE5B`;warning 前景 `warning-fg` `#F3A115`(与 Toast amber `#F59E0B` 解耦,Toast 维持 B 组现状)。
+- `focus-ring` `#417CDD`(蓝,E5D 定稿 2026-07-17 取代 #3b82f6,不染红);diff 红绿;modal scrim/阴影;`overlay-lightbox`;Toast 四色定稿(豁免解除)。
+- `destructive`/`search-match-bg` 语义色不纳入 HSL_FORMAT_IDS 覆盖。
+- **hljs 语法高亮色**(light=highlight.js/styles/github.css;dark=globals.css `.dark .hljs-*` mirror github-dark):hljs 主题色为 default 代码块底设计,CINDY 代码块底(surface-elevated #F8F8F8/#312F2F)接近 default(#ffffff/#2c2c2a),边缘不达标(light -keyword 4.31/-built_in 3.29/-name 4.36;dark -punctuation 2.47/-tag 2.99/-section 2.87)是 hljs 既有折损(用 design surface 而非 github 默认 #ffffff/#0d1117),非 CINDY 引入——default 同源也不达标。CINDY 不补 [data-theme] 整改(与 default 同源,补整改值需重新过用户关卡);落档见 cindyCodeBlockContrast.test.ts(≥2 基线 + text ≥4.5 守卫)。
+**双门槛口径(D 裁决 2026-07-17)**:hljs 语法高亮色属辅助性视觉编码,对齐 selection/边界 3:1 口径——语法色 ≥3:1、正文文本 ≥4.5:1。CINDY 代码块底(surface-elevated)接近 default,hljs 主题色为 github 默认底(#ffffff/#0d1117)设计,固有折损非 CINDY 引入(default 同源)。
+- light:语法色全 ≥3(4.31/3.29/4.36),<4.5 但 ≥3 门槛通过,**不整改**,逐项落豁免档(default 同源折损);
+- dark:`.hljs-section` #1f6feb × #312F2F = 2.87 <3,补 `[data-theme="cindy-dark"] .hljs-section` 提亮 `#2573ec`(保持蓝 H212 S84% L52→53.5%,× #312F2F=3.00 ≥3);`.hljs-punctuation`/`.hljs-tag` github-dark "purposely ignored" 无显式色,dark 继承 .dark .hljs text `#c9d1d9`(× #312F2F=8.62 ≥3 达标),补 `[data-theme="cindy-dark"]` 显式覆盖 `#c9d1d9` 防御性(D 裁决三项覆盖,值同 text 不降对比度)。
+- model-budget 光谱条 / GhostTool shimmer:显式豁免(中性 shimmer,跨主题统一)。
+
+### 15.5 U2 显式例外记录(二级信息色忠于 Figma 原值)
+
+- token:`text-secondary`(light `#8C8E94` / dark `#6F6F6F`)/ `text-secondary-cross`(light 仍 `#9A9DA3`,未随调)。
+- 改值史:light 原 Figma `#9A9DA3`(U2 忠于原值)→ `#919399` → `#8C8E94`(用户两轮调参定稿 2026-07-20,桌面 cindy-light 与移动 tokens.ts 同步);dark 不变。对比度仍低于 AA,沿用 U2 显式例外口径。
+- 实测对比度(WCAG):× surface `2.32/2.92:1`、× elevated `2.56/2.65:1`、× chip `2.41/2.72:1`,均低于普通文本 AA `4.5:1`。
+- 裁决:用户 **U2(2026-07-16 拍板)=(b) 忠于 Figma 原值**,接受可读性折损,作为记录在案的显式偏离。
+- 约束:**不得擅自调深**(如 `#686B72` 已证伪且仅存档备查),改值须重新过用户关卡。
+- 反向冻结单测:`cindyThemes.test.ts` 第 ⑦ 组断言该值必须恰等定稿值(light `#8C8E94`/dark `#6F6F6F`),注入 `#686B72` 必须变红;改值须过用户关卡后同步基准。
+
+### 15.6 HSL 格式合约
+
+42 个 `HSL_FORMAT_IDS` 必须 HSL 三元组(`h s% l%`,`h∈[0,360)`、灰色 `hue=0`、1 位小数);其余 token 走 hex/rgba。round-trip HSL→RGB 通道误差 ≤1。HSL_FORMAT_IDS 之外不得误填 HSL 三元组。
+
+### 15.7 品牌标识资产(icon + logo)
+
+新建对话页品牌区按 2026-07 新设计固定为 50×50px 方形 icon + 110×37.5px 横向 logo,间距 9px。`ThemeBrandLockup` 是新建页的唯一渲染实现。主题只通过 `theme.brand.icon/logo` 替换素材,不得通过 scale 改变定稿版式;本地图片透明留白按 alpha 可见边界在加载期裁切,不改写源文件。cindy-light 用黑字版(`cindy-logo-light.png`)、cindy-dark 用白字版(`cindy-logo-dark.png`)作为 logo。
+
+新版品牌区只读取 `brand.icon/logo`,不兼容旧顶层 `logo`、`logoScale` 或开发过程中的 `brand.mark/wordmark`;旧配置与新版组合结构语义不同,禁止猜测映射。「设置 → 外观」只保留本地主题副本、打开目录和刷新三个轻量入口,不放品牌预览或素材选择器。新导出的标准 JSON 在 `brand.icon/logo` 中直接放 `icon-square-50x50px.png` / `logo-horizontal-110x37.5px.png` 示例路径,让配置文件自身同时说明用途与最终显示区域;源图可按同宽高比导出 2x/3x。不另生成 README 或改用 JSONC。
+
+> logo 资产红 `#F70121` 是官方品牌资产固有色(WORD MARK frame 红箭头符号),与 UI 品牌红 `#DF0C27` **并存、不同值**——logo 是图片资产不进 token 体系,保持原色不改色。后人勿误改为 `#DF0C27`。
+
+Splash 品牌块字标是另一套素材(`assets/splash/wordmark.png` 白字 DARK 用 / `wordmark-light.png` 深字 LIGHT 用),2026-07-22 起两版统一为 459×156(@2x),渲染框 `229.5×78` 恰为其 2x 满框——此前白字版为 486×184,塞同框被 object-contain 缩小 ~10%,DARK 字标偏小(用户实机发现,已换图修复)。同日用户拍板:splash 字标 DARK/LIGHT **均不带投影**(原 `drop-shadow-[0_2px_6.5px_rgba(0,0,0,0.25)]` 移除),冻结测试 `SplashScreen.test.tsx` 已同步反向断言。
+
+### 15.8 status-badge-fg(§7 必炸点,用户确认 2026-07-17)
+
+橙徽章(bg `status-bar-accent` `#EA6B17`,设计定稿 2026-07-17 取代 `#FF6600`)此前借用 `accent-pure-cta-fg`(白字)→ `#FFFFFF`×`#FF6600`=2.94:1 不达标(历史值,旧橙 #FF6600)。拆独立 `status-badge-fg`:
+- **default 镜像 `accent-pure-cta-fg`**(light 白 / dark 黑),既有 9 主题行为零变化;
+- **CINDY 两模式 override `#1F1F1F`**(深色近黑),× `status-bar-accent` `#EA6B17` = **5.19:1 ≥4.5**(用户亲批方案 #1F1F1F;设计定稿 2026-07-17 新橙 #EA6B17 实算 5.19:1,取代旧 #FF6600×5.61:1;不达 4.5 则加深 #000000);
+- 覆盖数组 115→116(`cindyDecisionData` 注明 D2 期新增,源自 §7 必炸点方案);
+- 消费点(`ContactsListPane:150`)从 `accent-pure-cta-fg` 切到 `status-badge-fg`;红 CTA 上的 `surface-on-card` 消费者(`RolePillDropdown:543/544`、`SkillhubDetailView:504`)迁到 `accent-pure-cta-fg`(白),`surface-on-card` 保留中性反相(Fast toggle thumb)。
+
+### 15.10 E1D 红色体系重构(用户批准 2026-07-17)
+
+常规主操作不再用品牌红,改反相中性(light 底 `#3C3F43`/字 `#FCFCFC`,dark 底 `#EEEEEE`/字 `#252222`;WCAG 10.32/13.60:1)。红色仅限语义例外:
+- **A 类(保留红)**:`brand-login-bg`/`brand-login-error-border`/`brand-login-error-text`(品牌海报/错误);
+- **C 类**:~~`sidebar-item-active` 红胶囊~~ 已于 2026-07-20 撤红改**反相胶囊**(light 深底 `#3C3F43`+浅字 `#FCFCFC`/dark 浅底 `#EEEEEE`+深字 `#252222`,描边 transparent,与 CTA 反相中性同族;用户三轮改稿定稿,PR #174/#190 落地);~~`migration-bar-fill`~~ 已随主干迁移条退役(2026-07-19,token 已删非撤红);~~`drop-overlay-bg` 红10%~~ 已于 2026-07-19 撤红(用户实机否决:整窗红罩语义似警报,回落 default 中性灰遮罩);
+- **语义色**:`destructive`/delete、`error-*`、warning、diff 红、status 点;
+- **B 类(改中性 11 项)**:`accent-cta-bg`/`-pure`/`-emphasis`/`-soft`/`-hover`、`update-btn-border`/`-text`、`confirm-btn-primary`、`perm-allow-btn`、`primary`、`settings-btn-primary`(alias)、`accent-pure-cta-fg`/`settings-btn-primary-text`(中性字);
+- **C 类裁决**:confirm(普通中性,danger 另设)、perm-allow(中性,警示橙 chip)、primary(中性)、sidebar-item-active(light 红胶囊/dark 深红)、migration-bar-fill(保留红)、drop-overlay(原保留红10%,2026-07-19 撤红改中性)、brand-login-cta(不动);
+- **中性按钮四态**:light 底`#3C3F43`/字`#FCFCFC`、hover`#2E3237`、pressed`#25282C`;dark 底`#EEEEEE`/字`#252222`、hover`#E2E2E2`、pressed`#D4D4D4`。
+- **send-btn 族纳入值表(E1D 扩,lead 裁决 2026-07-17)**:`send-btn-bg`(default alias `--accent-cta-bg`)/`-icon`/`-hover-bg`/`-pressed-bg`/`-disabled-bg`/`-disabled-icon` CINDY override 全族走上述四态反相中性 + disabled 灰 `#444242`/`#585555`(R4 D1 实证);hover/pressed 为 E1D 新增 token(default 同 bg,默认皮肤维持 opacity-85 hover,膘叔 E3 组件层消费 var() 即全局生效);全族入 cindyDecisionData REQUIRED_IDS + CINDY_EXPECTED,③ 断言守。
+- **侧栏颜色层级整改(E1D 扩,用户并排指错 2026-07-17,lead 钉死 light/dark 同套)**:
+ - 正文(会话标题)= `text-foreground`(=`text-primary` light `#3C3F43`/dark `#D4D4D4`,不动);
+ - 二级暗灰(行首图标普通态/时间戳/meta/分组标签)= light `#9A9DA3`/dark `#6F6F6F`(与 `text-secondary` 同值);CINDY override `sidebar-muted`/`sidebar-action-icon`(HSL `220.0 4.7% 62.2%`/`0 0% 43.5%`)+ 新增 `cmd-palette-item-meta` CINDY override(hex);
+ - 选中胶囊 = 反相胶囊(2026-07-20 定稿):`sidebar-item-active` light `#3C3F43`/dark `#EEEEEE`,前景 `sidebar-item-active-foreground` light `#FCFCFC`/dark `#252222`,描边 `sidebar-item-active-border` transparent;**凡 `bg-sidebar-item-active` 上的前景必须配 `text-sidebar-item-active-foreground`,禁用 `text-foreground`**(PR#190 全量整改,该 token 缺省=foreground,非 CINDY 零变化);
+ - 强调行(running)行首图标(厂商 glyph/Puzzle/RadioTower/Clock)= **Thinking Orange `--warning-accent` `#EA6B17`**(用户拍板 2026-07-20,取代红系时期规则),呼吸动画 `session-status-breathing`;**选中态同样橙(running 取色优先级高于反相前景)**;移动端 `statusAccent` 同值同规则。常驻呼吸动画必须挂 HTML wrapper,SVG 保持静态(常驻动画 compositor-only 红线,见 `docs/dev-rules/engineering-conventions.md` §7;PR#226 治理)。
+ - 断言:③ CINDY_EXPECTED 守 4 token 值;⑦ 新增层级断言(二级暗灰 contrast 明显弱于正文 + 选中胶囊前景×红底 ≥4.5)。
+- **backlog(R2 §4.3 五点差异,lead 裁决 2026-07-17 本轮不做,入 backlog)**:Project_List 三态拆分(active-task-pill/project-card/flat-list-row 不共用 `sidebar-item-active`);项目 header/list card 选中应中性底(#312F2F/#F6F6F6 非 #DF0C27 大红);去 Project_List 选中组 `focus-ring-soft` 蓝 ring,改 card stroke #DCDFE3/#434343;小箭头 #A61629 强调(非整行红底)。详见 `2026-07-17-r2-ui-specs.md` §4.3。本轮收敛不扩战线,后续另开。
+
+三份新 map(`NEUTRAL_PRIMARY_EXPECTED_BY_ID`/`FOREGROUND` + `RED_EXCEPTION_ALLOWED_IDS`)替代旧 `BRAND_RED_*`。D2T ⑤/⑦/⑧ 改用新 map(中性 exact + 红例外白名单 + 中性对比度 + 可证伪)。
+
+### 15.11 caret-accent 光标(用户二次改稿 2026-07-18 定稿:蓝,跨端规则)
+
+> 决策史:07-18 日间"光标品牌红 #DF0C27"→ 07-18 晚**红 caret 定稿已被用户覆盖为蓝 `#417CDD`,双端一致**。以下为现行有效版本,历史文档中"caret 品牌红"表述一律作废。
+
+- 全部可编辑输入面的光标(caret)统一消费 `--caret-accent` token——globals.css 已全局接管(原生 `caret-color` + ProseMirror 伪光标),**组件内不许另设 caret-color**。
+- 取值:default 主题 = `var(--accent-cta-bg)`(中性反相,随主题走);**CINDY 两模式 override `#417CDD`**(与 focus ring 同值的信息蓝;已从 `RED_EXCEPTION_ALLOWED_IDS` 红例外白名单移除,`cindyDecisionData.ts` 断言锁值)。
+- **易踩点**:①光标不再是红——红色白名单里没有光标,不要把 caret 接任何红 token;②虽然值与 `--focus-ring` 相同,**不要**把 caret 直接接 `--focus-ring`——语义不同,光标唯一合法出口仍是 `caret-accent`(便于日后独立调整)。
+- **跨端对齐**:移动端(`apps/mobile` `src/theme/tokens.ts` 的 `inputCaret`)同值 `#417CDD` 双模式,RN 侧经 TextInput `cursorColor`/`selectionColor` 消费,`themeTokens.test.ts` 锁值。
+
+### 15.12 毛玻璃(vibrancy)体系(用户定稿 2026-07-18,macOS)
+
+- **唯一半透面 token**:`surface-translucent-sidebar`——CINDY light `rgba(255, 255, 255, 0.85)` / dark `rgba(18, 15, 15, 0.75)`(default 主题下 = `var(--surface)` 不透明,非 CINDY 主题零影响)。消费方为左侧栏(`aside.bg-sidebar`);后续新增半透明表面**默认复用此 token**,不另造 rgba 值。splash 根容器已于 2026-07-19 改为不透明 `--surface`(用户拍板:加载完成前必须完全遮盖底下已挂载的主界面,不再共用半透 token)。
+- **透壁纸三重管线,缺一即死黑**(2026-07-18 实机 A/B 实证,详证据见换肤工程 sidebar-glass 补编终稿追记):
+ 1. **窗口创建期**即设 `backgroundColor: '#00000000'` + vibrancy(`bootstrap-electron.ts` / `vibrancyConfig.ts`);运行时再 setBackgroundColor 改 alpha 不可靠。
+ 2. CINDY 主题下**根容器让路**:globals.css 把 `.h-screen.bg-content-area`(及 splash 在场垫层)置 transparent,否则整窗不透明垫底挡死。
+ 3. **禁止 CSS `backdrop-filter`**——它会把透明窗背衬渲染成黑箱;壁纸模糊完全由原生 vibrancy 材质负责,CSS 层只铺半透底色。
+- 材质经 `XDT_VIBRANCY_MATERIAL` 环境旋钮选择,**代码缺省 hud**(用户实测定稿,2026-07-19 由 sidebar 回写为缺省值)。Windows 侧 Win11+ 走 `backgroundMaterial`(缺省 acrylic,`XDT_BACKDROP_MATERIAL` 旋钮,未经实机验证);Win10/非 CINDY 回退不透明 `--surface`。
+- 半透面上**不叠渐变覆盖层**——浅色红渐变层 2026-07-18 经用户确认设计稿无此元素,已整层砍除;splash 的渐变辉光层同样未实现(backlog 待用户表态)。
+- `surface-translucent-sidebar` 的 alpha 是主题冻结区**唯一开放的观感旋钮**,调整必须三处同步(`cindy-light.ts` / `cindy-dark.ts` / `cindyDecisionData.ts`)且 themes 套件跑绿。
+
+### 15.14 running/协同 橙色体系(用户拍板 2026-07-20)
+
+- **running 呼吸图标一律 Thinking Orange**(`--warning-accent` `#EA6B17`,全主题同值):VendorIcon、SessionStatusIcon(Puzzle/RadioTower)、AutomationSessionGroupItem(Clock);选中态也橙,优先级 running > 选中反相前景 > 普通态。移动端 `statusAccent` 同值同规则(glyphColor 同优先级)。
+- **协同按钮 ON 态橙**:CollaborationModeToggle 开启态文字+Puzzle 图标 `warning-accent`(覆盖 2026-07-17「composer pill 去橙中性」规范,仅 ON 态;OFF 入口态保持中性)。
+- **SVG 常驻动画红线**:呼吸类常驻动画一律挂 HTML wrapper(span),SVG 保持静态。
+
+### 15.15 新建页内容区定位 + 顶栏 hover 消费纪律(用户拍板 2026-07-21)
+
+- **新建页(CREATE AGENT)内容组垂直定位**:距**窗口顶**恒为 `max(96px, 28vh) + 46px`。
+ 实现 = 路由容器 `pt-[calc(max(96px,28vh)+46px-var(--content-header-h,46px))]`:
+ - 268px 封顶已废(Figma 定稿画框高度遗留,大窗口下内容"偏高"的根因);28% 为用户实机调参定稿(原 25.5%);
+ - `--content-header-h` 由 `ContentHeaderSlot`(FeatureSidebarSlotProvider 内)经 display:contents 包裹层广播(顶栏渲染 46px / 隐藏 0px,与 ContentHeader `h-[46px]` 同源)——选中项目引发顶栏显隐时内容区**零跳动**,恒定在"有顶栏时"位置;
+ - 顶栏显隐判定单一决策源 = `useContentHeaderHidden`(mac + Sidebar 展开 + 无注入内容 + 无右栏开关,沿用 2026-06-11"空 header 隐藏"决策);
+ - 守卫:`newMakerCreateAgentVisualContract` 锁定位公式 + 防回退断言。
+- **hover token 消费纪律**:`--update-btn-hover` 是升级按钮(反相深色 CTA)专用 hover,**禁止**用于普通 ghost 按钮/徽章(CINDY light 下近黑 `#2E3237`,吞字吞图标;2026-07-21 清理 6 处误用)。正确选型:
+ - 顶栏(ContentHeader 一带)ghost 元素 → `titlebar-button-hover`(与 ChromeActions 窗口按钮组同款);
+ - 内容区通用浅 hover → `--surface-hover`。
+
+### 15.13 CINDY 双端换肤定稿规则(2026-07-18)
+
+本节是后续桌面端 / 手机端 UI 更新的执行规则。若本节与上方历史小节有冲突,以后续用户验收定稿为准;不要按早期红 CTA / 红 caret 口径回退。出处见 `skin-docs/10-specs/`、`skin-docs/30-mobile/2026-07-18-m0-color-mapping.md`、`skin-docs/30-mobile/2026-07-18-m3-chat-tasksheet-impl-plan.md`。
+
+#### 红色边界
+
+- 品牌红 `#DF0C27` 只用于品牌展示 / splash、破坏性操作、运行 / 思考状态强调、列表 active glyph。列表 active glyph 在 dark 使用 `#A61629`。
+- 普通 CTA、FAB、发送钮、确认类主操作一律使用中性反相:light 底 `#3C3F43` / 字 `#FCFCFC`,dark 底 `#EEEEEE` / 字 `#252222`。禁止把这些操作染成品牌红。
+- 红色白名单不包含输入光标、focus ring、普通按钮、普通选中态背景。新增红色消费必须先写明语义并进入对应 token / 测试白名单;不能在组件中硬编码。
+
+#### 光标与焦点
+
+- 所有输入光标 `cursorColor` / `selectionColor` 统一为蓝 `#417CDD`,等于 `permAutoAccent` / Mac `caret-accent`;light / dark 同值。
+- focus ring、Auto Approval、信息蓝同属 `#417CDD` 体系。Figma 旧蓝 `#426BF2` 不采用。
+- 禁止红色系光标。备注:2026-07-18 早前红 caret 口径已于同日晚被用户最终定稿覆盖。
+
+#### 双端颜色同构
+
+- 手机端颜色语义必须与桌面端 token 决策表同构:主背景、正文、二级信息、边框等基础层级按 CINDY desktop 语义直映,不要为移动端另造一套相同含义的颜色。
+- **`colors.border` light 是 mobile 全局例外,不是首页 scoped token**(裁决记录 2026-07-21,PR #266):mobile light `border` / `borderTranslucent` 取 `#C6C9CE` / `rgba(198,201,206,0.62)`,偏离 desktop `#DCDFE3`。原因:desktop 边框多衬 `#F8F8F8` 卡片,而 mobile 分割线直接衬 `#EDEDED` 主背景,`#DCDFE3` 对比仅 1.14:1 几乎不可见,加深到 1.42:1 后实机可辨。该值落在 `apps/mobile/src/theme/tokens.ts` 全局 `lightColors.border`,所有 mobile light 边框 / hairline 消费方一体生效;dark 维持 `#434343` 与 desktop 同构。`chatCodeBorder` / `sheetActionBorder` / `sheetGrabber` 等专用边框 token 独立取值,不随本例外联动。
+- 移动端专用 token 只承载移动端特有层级或几何语境:
+
+| Mobile token | Light | Dark | 用途 |
+|---|---|---|---|
+| `surfaceListRow` | `#F6F6F6` | `#312F2F` | list 项目行 / 任务行 |
+| `surfaceListExpanded` | `#EAEAEA` | `#2A2828` | list 展开块 |
+| `activeGlyph` | `#DF0C27` | `#A61629` | list 行首 active glyph |
+| `chatCodeSurface` | `#F8F8F8` | `#353333` | chat / task code card |
+| `chatCodeBorder` | `#DCDFE3` | `#3C3C3C` | chat / task code card 边框 |
+| `inputCaret` | `#417CDD` | `#417CDD` | 所有输入光标 |
+| `sheetSurface` | `rgba(248,248,248,0.95)` | `rgba(59,59,59,0.95)` | bottom sheet root |
+| `sheetActionSurface` | `#F6F6F6` | `rgba(59,59,59,0.5)` | sheet action group / row |
+| `sheetActionBorder` | `#DCDFE3` | `#505050` | sheet action group / row 边框 |
+| `sheetActionText` | `#3C3F43` | `#C1C1C1` | sheet action row label |
+| `sheetGrabber` | `#DCDFE3` | `#6F6F6F` | sheet / composer grabber |
+
+#### 图标规范
+
+- 会话行首 Agent 图标按运行时身份区分:Claude Code 官方像素脸 / Codex CLI `>_` 多瓣花,Mac(`VendorIcon`)与移动端(`MobileVendorIcon`)同源资产(2026-07-20 定稿)。Agent 身份 mark 不得与 Anthropic / OpenAI provider 或 model brand mark 混用;`BrandArrow` 仅保留给品牌装饰场景。
+- 模型选择按 model brand 出图。Mac 已替换过的品牌图标,移动端直接复用同源资产;其余使用现有图标库(lucide)中语义等价的图形。
+- 发送语义统一使用填充纸飞机 `Send`,颜色跟随中性反相 CTA token;不要用红色发送按钮或红色发送图标表达普通发送。
+
+#### 排版与布局要点
+
+- List 页采用卡片化密度:20pt gutter、60pt 行高、12pt 圆角、55pt FAB。不要回退到旧的松散列表或红色普通 CTA。
+- Chat 顶栏使用毛玻璃 / 半透明玻璃体系:优先复用 `BlurBackdrop` 与专用 chat header token;未接线 blur 的位置使用半透明实色 token + hairline,不要新增未经验证的 blur 接入点。
+- Sheet 系统一致使用 sheet token。共享 `SheetSurface` 等组件改新样式时默认走 variant 隔离,只让设计稿覆盖到的 tasksheet / `SessionActionSheet` / `SessionMenuSheet` 使用新样式;ContextSheet、ModelPicker、info sheet 等未覆盖页面不自动跟随。
+- 展开块内部使用 hairline 分隔:非末行有线,末行无线;边框颜色走对应 token,不要写死(mobile light 全局 border 例外口径见上方「双端颜色同构」的 `colors.border` 条)。
+
+#### 流程门禁
+
+- 新增 / 修改颜色必须走 token,桌面端走 ColorRegistry / CSS variable,移动端走 `ThemeColors` / `useTheme`;组件里禁止硬编码 hex / rgba。
+- `hardcoded-color-audit` 必须全绿才允许合入。若因资产固有色或平台语义确需例外,必须登记白名单并说明原因。
+- 设计稿与既有 token 冲突时,先在规格或 PR 说明中列出"待拍板"并请求裁决;不得自行定案或用相近色偷换。
+- 共享组件样式改动默认用 variant / prop 隔离影响面。设计稿没有覆盖的页面、状态、平台,默认保持现状。
+
+## 16. Login Flow (登录链路)
+
+> 本节是登录全链路的设计系统规范。逐参数权威 = 同目录的 [`figma-component-spec.md`](./figma-component-spec.md)(组件 / 色板速查,nodeId 溯源)与 [`token-decision-table.md`](./token-decision-table.md)(token / 尺寸决策)——两份自 2026-07-24 起随 `docs/design-rules/` 入仓维护;`DESIGN-login`(逐屏规格)、`flow-map`(状态机)、`fidelity-matrix`(保真度验收矩阵)仍为设计阶段工作文件,不入仓库。本节不重复抄全表,只钉死设计规则与组件契约,逐参数值以 Figma 组件库及本节色板表为准。
+>
+> **交付状态**:**亮色** as-built 已合并入 main;**深色**为目标规格(色值经 Figma 组件库 Dark symbol 逐个核验,见 §16.1 双态表 / §16.5),token 已注册但 dark 槽位当前为 light 占位值,待实现 PR 填入真实深色值。两模式均受 §2「Light / Dark 双模式交付门槛」约束——非可选愿景。
+>
+> 本节独立于 §1–§15 默认皮肤与 CINDY 皮肤族——登录页是独立白底 / 深底反色体系,**不消费编辑器主题的 `--surface` / `--text-*` 等 slot**,只走本节定义的 `--login-*` token(light / dark 二态已注册于 `apps/desktop/src/renderer/themes/colors.ts`;见 §10)。`--login-*` 随基础 light / dark **二态**切换,但**不跟随具体扩展主题**(登录页只认 light / dark 模式;首次亮、后续跟随见 §16.5)。
+
+### 16.1 视觉风格
+
+登录页是**黑白反色**体系(亮色 = 白底墨字 / 深色 = 深底米字),与编辑器主界面解耦,亮 / 深两模式镜像同构:
+
+- **面板 / 控件走墨黑–米白反色,深色镜像反相**:亮色白面板 `#FBFBFB` + 米白控件 `#EEEEEE` + 墨黑主按钮 `#2A2828`;深色反相为深面板 `#312F2F` + 深控件 `#2C2A2A` + 白主按钮 `#EEEEEE`。**两模式的面板 / 控件底色与文字都不出现纯黑 `#000` 或纯白 `#fff`**(`figma-component-spec §1.1`);细描边例外——暗色主按钮 / 圆钮的 `#FFFFFF` 白边为 figma `white_button` 实测值,不受此限。
+- **品牌红 `#DF0C27` 只用于 Global pill 与字标红元素等品牌 accent,跨模式不变**;**禁止作页面背景**(wave4 改判,见 `token-decision-table §3` 对 `#df0c27` 的语义判定),不渗入面板内部(呼应 §15.10 红色边界)。画布底走 `--login-bg-base`(亮 `#EDEDED` / 深 `#1F1F1E`),红只经 `--login-brand-accent` 消费。错误红 `#D91F37` 同样跨模式不变(语义豁免,呼应 §10 豁免族)。
+- **`--login-*` 调色板双态目标值** —— token 已注册于 `apps/desktop/src/renderer/themes/colors.ts`(dark 槽位当前为 light 占位值)。下表为深色实现的目标规格,经 Figma 组件库 Dark symbol 逐个核验;实现 PR 须将 dark 槽位更新为本表 dark 列的值:
+
+| token | light | dark | 核验源 |
+|---|---|---|---|
+| `--login-panel-bg` | `#FBFBFB` | `#312F2F` | callback-card dark(as-built)|
+| `--login-panel-border` | `#D4D4D4` | `#434343` | callback-card dark |
+| `--login-control-bg`(输入框底) | `#EEEEEE` | `#2C2A2A` | figma `Dark_normal` 输入 symbol |
+| `--login-action-control-bg`(方式行 / 返回钮底) | `#EEEEEE` | `#2A2828` | figma 549:850 / 549:897(暗色与输入框底分化,组件库更新 2026-07-23) |
+| `--login-back-border`(返回钮描边) | `#FFFFFF` | `#434343` | figma 549:897 |
+| `--login-control-border` | `#D4D4D4` | `#434343` | figma `Dark_normal` |
+| `--login-control-border-active`(focus / filled) | `#2A2828` | `#EEEEEE` | figma `Dark_highlight` |
+| `--login-control-text`(输入填充字,Bold) | `#252222` | `#EEEEEE` | figma Dark 填充 / error 态 |
+| `--login-control-placeholder`(空态字) | `#D4D4D4` | `#6F6F6F` | figma Dark 空态 |
+| `--login-title-text` | `#252222` | `#D4D4D4` | callback-title dark |
+| `--login-secondary-text`(副标题 / 倒计时) | `#6F6F6F` | `#6F6F6F` | 两模式同值 |
+| `--login-primary-button-bg` | `#2A2828` | `#EEEEEE` | figma `white_button` / callback-cta dark |
+| `--login-primary-button-border` | `#434343` | `#FFFFFF` | 同上 |
+| `--login-primary-button-text`(Bold) | `#D4D4D4` | `#2A2828` | 同上 |
+| `--login-link-text`(重发链接) | `#2A2828` | `#EEEEEE` | figma `dark_重新发送` symbol |
+| `--login-link-hover` | `#4A4848` | `#A8A8A8` | 推导值(无独立 dark hover symbol) |
+| `--login-link-pressed` | `#1A1818` | `#C0BEBE` | 推导值 |
+| `--login-disabled-button-overlay` | `rgba(255,255,255,0.7)` | 同 light | figma `white_button` Disable:disabled 两模式同构(见 §16.5) |
+| `--login-splash-progress-track` / `--login-splash-progress-fill` | `#D9D9D9` / `#252222` | `#434343` / `#D4D4D4` | figma Dark symbol 核验 |
+| `--login-loading-ring-track`(loading 环轨道) | `rgba(42,40,40,0.18)` | `rgba(212,212,212,0.18)` | 18% 半透明环轨二态;登录页 LoginLoadingRing 与 Splash 转圈环共用(Splash 侧自暗色实现 PR 起由字面 rgba 收敛至本 token) |
+| `--login-error-fg` | `#D91F37` | `#D91F37` | 语义豁免不变 |
+| `--login-brand-accent` / `--login-brand-accent-pressed` | `#DF0C27` / `#A61629` | 同 light | 品牌红不变 |
+| `--login-bg-base`(画布底) | `#EDEDED` | `#1F1F1E` | figma 532:585 暗色帧实测;两模式纯平定稿——暗色帧的双红晕层(532:588/589)曾按 1:1 几何落地,2026-07-24 实机走查拍板去除(亮色撤渐变=PR#104 拍板,两条决策相互独立) |
+
+ 余下 token(`-control-border-disabled` / `-inverted-button-border` / `-callback-*` 等)的**亮色**值与 callback 族**双态**值见 `token-decision-table §3`、`figma-component-spec §1.1`(注意:这两份外部 spec 只覆盖亮色 + callback 族 dark,**登录主皮 dark 值以本表为权威**,原※推导值已经 Figma 组件库核验确认,本表为目标规格);深色反相机制与 3 处组件改动见 §16.5。
+- **社交圆钮深色 = 白圆**:与主按钮共用 `--login-primary-button-bg / -border`,深色自动反相为白圆 `#EEEEEE` + 白边,**圆内图标保持品牌色**(Google 彩 / WeChat 绿 / SSO),非反相(figma `white apple/google/wechat/SSO` symbol 核验)。
+
+### 16.2 设计规则
+
+**Token 体系**:`--login-*` 已注册于 `apps/desktop/src/renderer/themes/colors.ts`(dark 槽位当前为 light 占位值,待实现 PR 填入 §16.1 表中的目标深色值)。组件经 `LOGIN_COLORS`(桌面 `loginDesignTokens.ts`)/ `loginColors`(手机 `theme/tokens.ts`)单点消费。**禁止硬编码 hex pair**(呼应 §10)——`hardcoded-color-audit` 守护全绿才允许合入。`--login-*` 随基础 **light / dark 二态**切换(对齐 `callback-*` 族与 §15 CINDY 皮肤族的双态做法),但**不跟随具体扩展主题**——登录页只认 light / dark 模式,扩展主题不 override `--login-*`(首次亮、后续跟随上次模式见 §16.5)。
+
+**几何 / 布局常量**:固化在两个常量文件,数值权威 = `figma-component-spec §5.1` + `token-decision-table §4`,不按截图目测补值。
+
+| 常量 | 值 | 引用 |
+|---|---|---|
+| 面板 | 680×440,r36,`#FBFBFB` + inset 1px `--login-panel-border` | figma §4 / §5.1 |
+| 输入框 / 主按钮 | 540×80,r40,@(70, 158 / 300) | figma §4.1 / §4.3 |
+| 方式行 | 540×100,r60,@(70, 158 / 278),左图标 24@(27,37),右图标 @(490,40) | figma §4.9 |
+| 返回钮 | 60×60,r40,@(20,20) | figma §4.6 |
+| 重发 / Text_link 槽 | 540×50,20px,@(70,238) | figma §4.7 |
+| 错误文本 | 680×50,20px,@(0,380),`--login-error-fg` | figma §4.8 |
+| 第三方圆钮行 | y=480,80×80,r50,icon 48,gap 70 | figma §4.5 |
+| 标题 / 副标题 | 标题 y=31 h=38 32 Bold;副标题 x=70 y=75 w=540 20 Regular ≤2 行顶对齐(2026-07-24 拍板:宽度对齐控件列,原 figma 单行几何 599@41 作废) | figma §5.1 + 2026-07-24 拍板 |
+
+桌面 `loginDesignTokens.ts`(1819×2098 画布)、手机 `loginSkinLayout.ts`(750 设计 px,键名用 `font` / `radius` 避开 typography 守护扫描)。两端面板内坐标同源同值,手机由外层统一 `transform` 缩放。
+
+**平台差异**:桌面 = Web renderer(Electron,Win / Mac 同套);手机 = React Native(iOS / Android,含 phone / pad-portrait / pad-landscape)。两端同参数源、同 token 语义(手机 `loginColors` 与桌面 `LOGIN_COLORS` 同名同值),仅实现宿主不同(RN 用 `StyleSheet` + `Animated`,桌面用 CSS + Tailwind)。
+
+**交互态**:hover(仅桌面)/ pressed(双端)/ disabled / loading 五态。态叠层挂伪元素(桌面 `::after`)/ overlay View(手机),**不动图标 / 文本子节点**;disabled 叠层走 `--login-disabled-button-overlay` token。hover / pressed 叠层**暗色落地前**为 figma 实测 rgba 字面值(亮色 as-built 现状);**暗色 PR 起 token 化为 `--login-overlay-*` 二态 token**(叠层方向随模式反转,见 §16.5),此后组件内禁止新增字面 rgba 叠层。态系细则见 `DESIGN.md §2`。
+
+**常驻动画 compositor-only**:spinner / loading 环动画挂 HTML(桌面)/ `Animated.View`(手机)外层 wrapper,SVG 图形保持静态(呼应 §14.4);`prefers-reduced-motion` 直落静止。面板入场 handoff 动画是 §14.4 容器形变的窄变体(双端冻结 420ms 升起 + 渐显,`LOGIN_HANDOFF_TIMINGS.panelMs` / `panelInMs`)。
+
+**Apple「Sign in with Apple」按钮**:iOS HIG 硬性要求使用 Apple 官方按钮样式,**不可皮肤化**——iOS 上 Apple 槽位保持原生 `ASAuthorizationAppleIDButton`,不套 `LoginSocialButton` 皮。这是合规底线,非视觉遗漏。其余社交圆钮(Google / WeChat / SSO)正常上皮。
+
+**i18n**:登录文案走 `react-i18next`(桌面 `common.json` `login.*` 节)/ `loginMessages`(手机),4 语对齐 `zh-CN` / `en` / `ja` / `ko`(zh-TW 已随 #488 回退对齐主干四语基线——设计阶段旧文(不在仓库内)的五语门为回退前遗留,待清理,以本节四语为准)。4 语全部翻准,不留空(空 key 静默回退英文)。
+
+**多语言长文本与翻译长度预算(2026-07-24 拍板)**:
+
+- **原则:登录链路里截断与省略号不可作为可见结果**。登录面板是 680×440 冻结几何、槽位不撑高,长文案没有退路——所以约束加在**文案侧**:所有 `login.*` 文案(含 agent 代写 / 补翻的四语文本)必须言简意赅、按槽位长度预算写作。线上出现可见省略号 = 该语言文案超预算 = **文案 bug(P1,修文案,不改布局)**。
+- **长度预算自检**(写 / 翻文案时逐语言过一遍):估宽公式——汉字 / 假名 / 谚文 ≈ 1×字号 px,拉丁字母 / 数字 / 空格 ≈ 0.5×字号 px;估宽 ≤ 槽宽 × 0.95 才算过。常用槽预算:
+
+ | 槽 | 宽×字号 | ≈汉字上限 | ≈拉丁字符上限 |
+ |---|---|---:|---:|
+ | 标题 | 680 @32 Bold(Global 变体标题 span 仅 236px,按 236 算) | 20(Global 变体 7) | 40(Global 变体 14) |
+ | 副标题(≤2 行,2026-07-24 拍板) | 540 @20 × 2 行 | 50 | 102 |
+ | Text_link / hint / 倒计时 | 540 @20 | 25 | 51 |
+ | 主按钮 CTA | 448 @24 Bold(540 − 双侧 46 padding) | 17 | 35 |
+ | 方式行标题 / 副题 | 409 @24 / @20 | 16 / 19 | 32 / 38 |
+
+- **agent 翻译硬约束**:为 `login.*` 生成或修改任何语言文案时,必须按上表逐语言自检;超预算就换更短表述(ja / ko 往往比 zh 长,优先压缩语序与敬语冗余),**禁止**靠布局手段(缩字号 / 加折行 / 依赖截断)吸收超长文案。
+- **折行与对齐机制分级**:
+ 1. **单行槽**(标题 / 链接 / 倒计时 / CTA / 方式行文字):`nowrap + ellipsis` 仅作**防御性兜底**(防极端 locale 炸版),不是设计许可——见原则条。标题类顶对齐 + 显式 `lineHeight = 槽高`(防继承行高被 overflow 裁 descender,MT-7 教训)。
+ 2. **说明 / 提示类**(**副标题**、输入框 hint、错误文本、游客模式说明):允许折行但 **≤2 行 + 行数 clamp**,**顶对齐、槽高 = 行高 × 最大行数、折行只向下伸展**;禁止「固定小槽 + flex 垂直居中」——那会让超行文本上下双向外溢压到相邻控件(2026-07-24 Enterprise SSO hint 压输入框实拍事故即此模式)。副标题原属单行槽,2026-07-24 拍板改判入本级(禁省略号、完整展示,几何 540@70 对齐控件列,双端已落码)。
+ 3. **弹窗族例外**(迁移弹窗等独立弹窗):卡片 flex column 允许文本撑高、按钮钉底、pill 圆角跟随——仅弹窗族,不适用登录面板。
+
+### 16.3 组件定义
+
+桌面 `apps/desktop/src/renderer/components/login/LoginControls.tsx`(11 组件),手机 `apps/mobile/src/components/LoginSkinControls.tsx`(13 组件)。两端同名组件同参数源。逐组件契约(逐参数规格见 `figma-component-spec §4`):
+
+| 组件 | 端 | 用途 | 关键 props | token / 几何 |
+|---|---|---|---|---|
+| `LoginPanel` | 双 | 白面板容器 | `children`, `testId` | 680×440 r36 `--login-panel-bg` + inset 1px border;桌面由 `LoginStage` 承载缩放 |
+| `LoginStage` | 桌面 | 1819×2098 画布「面板宿主」层,等比缩放 + z 序 | `children`, `ssoOrgGroupY`, `groupStyle` | 登录组 @(570, 1229 / 1227) 680×560;品牌层在 `LoginBrandStage` |
+| `LoginTitleBlock` | 双 | 标题 + 副标题 | `title`, `subtitle`, `globalPill?` | 标题 y=31 h=38 32 Bold `--login-title-text`;副标题 @(70,75) 540 宽 ≤2 行顶对齐 20 Regular `--login-secondary-text`(2026-07-24 拍板,原 599×23 单行作废) |
+| `LoginInput` / `LoginSkinInput` | 桌 / 手 | 通用输入框 | `value`, `onChange`, `placeholder`, `center?`, `error?`, `prefix?` | @(70,158) 540×80 r40 `--login-control-bg`;边 placeholder→active;`center`=验证码居中变体 |
+| `LoginSkinPhoneInput` | 手机 | 手机号 + 固定国家码前缀 | `prefix`, … | 同 `LoginSkinInput` 几何,前缀不可点 |
+| `LoginPrimaryButton` | 双 | 主按钮(五态) | `label / children`, `onClick / onPress`, `disabled`, `loading / busy` | @(70,300) 540×80 r40 `--login-primary-button-bg / -border / -text`;disabled 白 70% 叠层 + 边 `--login-control-border-disabled` + 文字 opacity 0.8;loading spinner 24@(487,27) |
+| `LoginSocialRow` | 双 | 第三方圆钮行 | `children`, `count` | y=480 行内水平居中,80×80 gap 70 |
+| `LoginSocialButton` | 双 | 第三方 / SSO 圆钮 | `label`, `onClick`, `children`, `isLoading / busy` | 80×80 r50 `--login-primary-button-bg / -border`;icon 48 居中;仅 normal + hover(桌面)+ pressed,**无 disabled / loading 视觉态** |
+| `LoginSocialGlyph` | 手机 | 社交图标矢量(Apple / Google / WeChat / SSO;**apple 分支仅非 iOS 场景**——iOS 走官方按钮不进圆钮行,见 §16.2) | 内部 | Google / WeChat 品牌色不变;Apple / SSO 单色随圆钮底反相(暗色白圆上 `#2A2828`) |
+| `LoginBackButton` | 双 | 返回 | `label`, `onClick`, `disabled` | @(20,20) 60×60 r40 `--login-action-control-bg` / `--login-back-border`;chevron 24 |
+| `LoginTextLink`(桌)/ `LoginTextLinkSlot`(手) | 桌 / 手 | 重发链接 / 提示文案 | `variant`(link / countdown,桌), `tone`, `children` | @(70,238) 540×50 20;link 变体 `--login-link-text` 下划线可点;countdown / slot `--login-control-placeholder` 不可点 |
+| `LoginResendCountdown` | 手机 | 验证码重发(倒计时 / 重发二态) | `deadline`, `countdownTemplate`, `resendLabel`, `onResend` | @(70,238);`deadline=null` → 常驻可点无倒计时(SSO 验证码屏用) |
+| `LoginMethodRow` | 双 | 方式选择行(企业 / 个人) | `top`, `title`, `subtitle`, `icon`(enterprise / person), `onClick` | 540×100 r60 `--login-action-control-bg` / `--login-control-border`;左图标 24@(27,37) / person 18×20@(30,39);右 share 18@(490,40);文字 @(67) 垂直居中 |
+| `LoginErrorText` | 双 | 错误提示 | `children` | @(0,380) 680×50 20 `--login-error-fg` |
+| `LoginLoadingRing` | 双 | 大 loading 环(浏览器 / 准备态) | `y`, `label` | 64×64 @(308, 158 / 193);轨道 `--login-loading-ring-track`,内弧 `--login-primary-button-bg`(Splash 转圈环 64×64@(308,188) 同轨道 token,内弧为 `--login-secondary-text`) |
+
+**组件库新增(2026-07-24,目标规格,随游客登录 / 协议 UI 实现 PR 落地)**:
+- **协议勾选 radio**(figma `radiobutton 600:627`,四态双模式):24×24 命中区,圈 20×20 r9 + 2px 描边,选中为**对勾**(非圆点)。亮:未选 `#F1F0F1` 底 / `#434343` 边 → 选中 `#2A2828` 实底 + 白勾;暗:未选 `#2A2828` 底 / `#F1F0F1` 边 → 选中 `#F1F0F1` 底 + `#2A2828` 勾——选中反色与登录黑白反色体系同构。用于登录页 `服务条款` 协议行。
+- **服务条款弹窗小按钮**(figma `light_button_*` / `Dark_button_*` 四母版,`602:846/863/1297/1311`):260×80 r40 文字 Bold 24;强调钮 = 模式反色(亮强调深底 `#2A2828`、暗强调浅底 `#EEEEEE`),暗模式普通钮引入新灰 `#434141` 底 / `#565454` 边。逐态值见 `figma-component-spec §11.3`。
+- 既有组件扩容:`SSO 登录_企业` 与 `back` 均扩为含 Dark 三态的六态集(值已并入 §16.1 `--login-action-control-bg` / `--login-back-border` 口径),`white_button` 增 loading 五态。
+
+### 16.4 登录链路逐屏
+
+登录状态机权威 = `packages/auth-client` 源码(`AuthFlowState` / `LoginOutcome` 判别联合;`flow-map` 为辅助导航,个别 UI 段落滞后于区域定形态改版)。共享 step ∈ {`identifier`, `method-choice`, `verification-code`, `sso-verification`, `browser-redirect`, `account-selection`, `binding`, `completed`, `error`}(`sso-org` **不是**共享 step,是 `identifier` 下的页面局部 `ssoOrgMode` 子视图);其中 `account-selection` / `binding` / `sso-verification` / `completed` 由服务端 `LoginOutcome.status`(`ok` / `select_account` / `binding_required` / `sso_verification_required`)分支决定,**不是固定步骤**——任意 outcome 调用都可能命中。逐屏职责与关键组件(逐屏坐标 / 文案见 `DESIGN-login §3` 国区 / `§4` 国际区 / `§5` 移动):
+
+| 屏(step) | 职责 | 关键组件 |
+|---|---|---|
+| `identifier` | 输入手机号 / 邮箱(国区 phone / 国际区 email),含 social 圆钮行 + SSO 入口 | `LoginInput` / `LoginSkinPhoneInput` + `LoginPrimaryButton` + `LoginSocialRow` |
+| `method-choice` | 命中企业域名时选企业 SSO / 个人邮箱验证码 | `LoginMethodRow`×2(top 158 / 278)+ `LoginTitleBlock`(`chooseMethod`) |
+| `verification-code` | 输入 6 位验证码,42s 重发倒计时 | `LoginInput`(center) / `CodeInput` + `LoginTextLink` / `LoginResendCountdown` + `LoginPrimaryButton` |
+| `sso-verification` | SSO 登录后验证企业联系方式,两子态(`codeRequested` false = 只发码 / true = 输码 + 常驻重发,**无倒计时**) | `LoginPrimaryButton`(sendCode) → `LoginInput`(center) + `LoginPrimaryButton`(completeSignIn / signIn) + `LoginTextLink` / `LoginResendCountdown`(deadline=null) |
+| `sso-org`(`identifier` 局部子视图,非共享 step) | 输入企业 ID / 组织 slug / 已验证域名跳转 SSO(`ssoOrgMode`) | `LoginInput` + `LoginPrimaryButton` + `LoginTextLinkSlot`(ssoOrgHint) |
+| `account-selection` | 服务端返回 ≥2 membership,用户选一个 | account row + `LoginTitleBlock`(`chooseAccount`) |
+| `binding` | 身份未绑 membership,补绑 phone / email(`codeRequested` 两子态;**无重发钮**,桌面 harness 锁定) | `LoginInput` / `LoginSkinPhoneInput` → `LoginInput`(center) + `LoginPrimaryButton` |
+| `account-deletion`(状态面板) | 账号删除**状态展示**(发起流程在 Settings 的 `AccountDeletionSection`;登录页仅在存在删除回执时于面板内展示 status,非主状态机 step) | `AccountDeletionStatusPanel`(登录皮容器内) |
+| `browser-redirect` | 社交 / SSO 跳浏览器验证,等待回调 | `LoginLoadingRing` + `LoginPrimaryButton`(取消)+ `LoginTitleBlock` |
+| `completed` / `error` | 登录成功 / 失败(含 browser 回调终态页) | 成功无面板(进主界面);error = `LoginTitleBlock` + `LoginPrimaryButton`(重试)+ `LoginErrorText`;browser 回调页 `oauthResultPage`(系统浏览器独立 HTML,main 侧内联常量,色值与 `--login-callback-*` token 同源——renderer CSS var 不可达,改值需两处同步) |
+
+### 16.5 深色模式与主题跟随
+
+> 深色受 §2「Light / Dark 双模式交付门槛」约束,是**必须交付**的另一模式,非可选愿景。深色色值经 Figma 组件库 Dark symbol 逐个核验(见 §16.1 双态表),为目标规格——token dark 槽位已预留,待实现 PR 填入真实值并补齐 overlay token、深色资产切换及主题跟随逻辑。落地机制如下。
+
+**深色 = 黑白反色在深底的镜像**:面板 / 控件深底、主按钮与社交圆钮反相白、文字反相米白,几何 / 布局 / props / 状态机 / i18n **零改动**——只换色值。
+
+**大部分组件纯 token 驱动**(补 §16.1 双态表的 dark 值即自动深色,组件不动):`LoginPanel` / `LoginInput` / `LoginPrimaryButton`(底 / 边 / 字 + spinner)/ `LoginSocialButton`(随主按钮 token 自动反相白圆)/ `LoginBackButton` / `LoginTitleBlock` / `LoginTextLink` / `LoginMethodRow` / `LoginErrorText` / `LoginLoadingRing`。
+
+**3 处非纯 token、需组件改动**:
+1. **hover / pressed 叠层二态**:叠层原为组件内 figma 实测 rgba 字面值,暗色起 token 化为 `--login-overlay-*` 二态。**〔2026-07-24 组件库更新改判〕hover 统一「叠白变亮」**:全按钮族 hover = normal 底上叠白色半透明(深底 `#2A2828`/`#434141` 族 +白 8%;浅底 `#EEEEEE` 族 +白 10%;**唯一例外**:`back` 亮色 hover 维持既有白 70%),两模式同向——旧「白底钮 hover = 黑 5% 变暗」口径作废(figma `white_button 347:2529`、SSO `549:779` 已按新值改稿)。pressed 维持叠黑,alpha 分档:**深底强调钮 50%**(`log_in_button` 与亮模式强调小钮 `light_button_highlight`,不论尺寸)/ 暗普通小钮 `Dark_button_Normal` 20% / 浅底钮 10%(边 `#E5E5E5`)/ 方式行与返回钮 8%。归纳仅作速记,**落码逐组件对拍 `figma-component-spec §11.1` 的状态矩阵,不按类别名推断**。**〔落码状态〕本改判当前仅在文档层生效**:as-built 组件(含回调页 dark CTA / `oauthResultPage`)仍消费改判前的旧叠层值(浅底 hover 黑 5%、pressed 黑 10% 等),与新口径的同步随暗色实现 PR 的 `--login-overlay-*` token 化一并落地——在那之前「文档新口径 vs 代码旧值」的差异是已知且有意的,不构成实现缺陷;落地后以本段口径为准。hover 方向不再随底色反转,但 alpha 档位随组件底色深浅取值,`--login-overlay-*` 系列 light / dark 二态 token 照常承载,组件把字面 rgba 改为 `var(--login-overlay-*)`(机械替换,零行为变化)。
+2. **`--login-bg-base` 前提变更**:画布底原为「跨主题恒定白 `#EDEDED`」,深色为 `#1F1F1E`(figma 532:585 帧实测)——即 `--login-*` 从「跨主题恒定」改为「随 light / dark 二态」(见 §16.2)。
+3. **`LoginBrandStage` 资产按模式切**:深色画布用**登录专用**白字版字标 / slogan 资产(`assets/login/wordmark-dark*.png` / `slogan-dark*.png`,源自 figma 532:585 `CINDY_Standard_White` 与 SLOGAN `#FBFBFB`,由暗色实现 PR 新增;**不是** §15.7 的新页横版 `cindy-logo-dark.png`——落位与尺寸不同);立绘两模式同资产。
+
+**disabled 态特例**:主按钮 disabled **两模式同构**——深底 `#2A2828`(独立 token `--login-disabled-button-bg`,**不随** `--login-primary-button-bg` 反相;组件需 disabled 分支切换底/字)+ 白 70% 叠层(`--login-disabled-button-overlay`)+ 边 `#B4B4B4` + 文字 `#D4D4D4`(`--login-disabled-button-text`)opacity 0.8(figma `white_button` Disable 态核验:深色 disabled 不反相为白底,仍走亮色同款灰态)。
+
+**双模式门槛覆盖**:深色须覆盖亮色全部态——控件 default / hover(桌) / focus / filled / active / pressed / disabled / loading / error,全部 11 屏,桌面 Win / Mac + 手机 iOS / Android(phone / pad)两端同 token 同值;`scripts/__fixtures__/login-fidelity/`(待后续补充,当前不存在于仓库中)补深色 fixture,checker 跑深色矩阵。色值以设计稿为唯一基准,1:1 还原,不引入设计稿之外的验收标准。
+
+**主题跟随(产品逻辑)**:用户**首次**打开 Cindy → **亮色**登录界面(默认);**第二次起** → 登录界面跟随用户上一次使用的 **light / dark 模式**(登录页只认 light / dark,不随具体扩展主题,见 §16.2)。这需要持久化「上次登录模式」+ 首次默认逻辑,超出纯 token 补范围,是一段状态逻辑,在暗色实现 PR 内一并落地。
+
+**决策记录(2026-07-23 已定)**:(1) `--login-*`「跨主题恒定 → light / dark 二态」前提变更 + 新增 `--login-overlay-*` 二态 token——**已采纳**;(2) 深色落点 = **跟随编辑器 light / dark mode** + 上述主题跟随逻辑——**已采纳**;(3) 立绘 / 社交图标深色版——已核验(立绘两模式同资产,社交深色白圆 + 品牌色图标,见 §16.1);本节原 ※推导值(splash 进度条 / 链接 hover / pressed)已经 Figma 组件库核验确认,§16.1 表已回填目标值。**(2026-07-24 增补)画布渐变定稿**:暗色帧红晕层(532:588/589)按 1:1 几何落地后,经实机走查拍板去除——两模式画布纯平(亮色撤渐变 = PR#104 拍板,两条决策相互独立、结论一致);`--login-bg-gradient-*` token 保留 override 锚、值恒 `none`,红晕如需恢复须以该走查结论为基线重新与设计确认。**(2026-07-24 增补)组件库状态扩充**:hover 统一「叠白变亮」改判(本节 (1) 已按新口径改写,旧「白底钮 hover 叠黑 5%」作废);新增协议勾选 radio 与服务条款弹窗小按钮目标规格(见 §16.3 尾注);`SSO 登录_企业` / `back` Dark 三态、`white_button` loading 五态入库(权威逐参数 = `figma-component-spec §11`)。游客登录(跳过登录)样式为独立实现任务,不在本节展开。**(2026-07-24 增补·二)多语言长文本口径**:登录链路禁止以截断 / 省略号作为可见结果,文案侧按槽位长度预算约束(含 agent 翻译硬约束),说明类文本折行 ≤2 行 + 顶对齐 + 只向下伸展——规则全文见 §16.2「多语言长文本与翻译长度预算」。同日二次拍板:**副标题改判入说明类**(禁省略号、完整展示 ≤2 行,几何 540@70 对齐控件列,原 figma 单行 599@41 作废),双端已落码(桌面 `LoginTitleBlock` + 手机 `LOGIN_SUBTITLE`)。
diff --git a/docs/design-rules/README.md b/docs/design-rules/README.md
index aece0f1da3..e0c15c9618 100644
--- a/docs/design-rules/README.md
+++ b/docs/design-rules/README.md
@@ -12,5 +12,9 @@
## 当前规范
-- [`DESIGN.md`](../../DESIGN.md):Cindy 的视觉语言、颜色与主题 Token、排版、组件、
- 布局、动效、交互和内容规范。`cindy-design-system.md` 仅保留为历史引用兼容入口。
+- 设计文档一律放本目录,索引与版本台账见
+ [`cindy-design-system.md`](./cindy-design-system.md)。
+- 权威视觉规范正本为 [`DESIGN.md`](./DESIGN.md)(视觉语言、颜色与主题 Token、排版、
+ 组件、布局、动效、交互、内容规范、登录链路);仓库根 `DESIGN.md` 仅为跳转入口。
+- 登录域逐参数与 token 决策见 [`figma-component-spec.md`](./figma-component-spec.md)
+ 与 [`token-decision-table.md`](./token-decision-table.md)。
diff --git a/docs/design-rules/cindy-design-system.md b/docs/design-rules/cindy-design-system.md
index 8037135c4c..49d58303d4 100644
--- a/docs/design-rules/cindy-design-system.md
+++ b/docs/design-rules/cindy-design-system.md
@@ -1,4 +1,18 @@
-# 设计系统兼容入口
+# Cindy 设计系统索引
-设计 Token 与视觉规范的权威文件是仓库根目录的
-[`DESIGN.md`](../../DESIGN.md)。本文件仅为历史引用保留,不要在这里维护第二份规范。
+> 本文件是 `docs/design-rules/` 全部设计文档的索引与版本台账(2026-07-24 起启用,此前为跳转 stub)。
+> 设计类 `.md` 一律放本目录,并在下表登记;规范正文不要写进本文件。
+
+## 文档索引
+
+| 文档 | 内容 | 角色 |
+|---|---|---|
+| [`DESIGN.md`](./DESIGN.md) | 权威视觉规范全文:视觉语言(§1)、颜色(§2)、排版(§3)、组件(§4)、布局(§5)、交互约定与 Motion token(§14)、主题系统与 Token 参考(§10)、CINDY 皮肤族(§15)、登录链路(§16) | **权威正本**(原仓库根文件,根目录 `DESIGN.md` 保留为跳转入口) |
+| [`figma-component-spec.md`](./figma-component-spec.md) | 登录链路 Figma 组件与色彩速查手册:全组件逐态参数、nodeId 溯源、wave1–wave5 读取记录 | 权威(登录域逐参数) |
+| [`token-decision-table.md`](./token-decision-table.md) | 登录链路色值 / 尺寸 → token 决策记录(新增 / 复用 / 豁免的判定理由 + 各 wave 增补台账) | 决策记录(现行 token 清单与值以 `DESIGN.md §16.1` + `colors.ts` 为准) |
+| [`README.md`](./README.md) | 本目录使用规则 | 说明 |
+
+## 版本记录
+
+- **2026-07-24**:目录整编(设计 md 统一归位 `docs/design-rules/`,本文件升级为索引)。同步 Figma 组件库更新:hover 统一「叠白变亮」口径(旧「白底钮 hover 叠黑」作废)、新增协议勾选 `radiobutton` 四态与双色模式小按钮四母版、`SSO 登录_企业` / `back` 扩 Dark 三态、`white_button` 增 loading 五态(`figma-component-spec §11`、`DESIGN.md §16.5`)。`figma-component-spec.md` / `token-decision-table.md` 自迁移前仓库最后版本恢复并更新至 wave5。
+- **2026-07-23**:`DESIGN.md` 新增 §16 登录链路(登录全链路设计规范、`--login-*` 双态 token 表、深色模式落地机制)。
diff --git a/docs/design-rules/figma-component-spec.md b/docs/design-rules/figma-component-spec.md
new file mode 100644
index 0000000000..7a79b404bc
--- /dev/null
+++ b/docs/design-rules/figma-component-spec.md
@@ -0,0 +1,621 @@
+# Cindy 登录新设计稿组件与色彩规范速查手册
+
+> Figma 文件:`CINDY`,fileKey `xNK3qh7zVfrO3zrKj5tEf8`,页面 `0:1 Design`。本文只记录设计规范,不改源码。所有尺寸单位均为 Figma px;实现到 375pt 移动设计宽时,可按 `Figma px / 2` 作为基础换算。
+
+## 0. 读取口径与平台规则
+
+### 0.1 平台差异硬规则
+
+客户端和移动端确认共用同一套设计与组件;**hover 状态仅桌面客户端 / 桌面浏览器生效,移动端不需要也不应实现 hover 视觉差异**。其余状态 `default`、`focus`、`filled`、`error`、`disabled`、`loading`、`pressed` 双端通用。
+
+后文组件状态表中,所有 `hover` 行均标注为「仅桌面端」。若某组件库没有 hover 变体,移动端仍不实现 hover,桌面端按默认态或等设计补稿。
+
+### 0.2 Figma MCP 读取记录
+
+| 类别 | 已读取 nodeId | 结论 |
+|---|---|---|
+| 读取方式 | 分块 nodeId | 不再对 `0:1` 整页调用 metadata;按 lead 提供节点逐个读取 metadata / design_context / variable_defs / screenshot |
+| 变量定义 | 组件库、页面帧、回调页代表节点 | `get_variable_defs` 均返回 `{}`;本文 token 名称来自色板文本、组件名和用途归纳,不是 Figma variables 名称 |
+| Color System | `247:1253`, `228:875`, `228:1042`-`228:1065` | `247:1253` 与 `228:875` 为重复色板;语义色板以 `228:1042`-`228:1065` 为准 |
+| 组件库 | `247:1569`, `329:1229`, `247:1539`, `347:2526`, `247:1613`, `247:1636`, `247:1710`, `247:2158`, `329:957`, `347:971`, `347:2707` | 已读取输入框、按钮、链接、返回、第三方入口、错误文案、SSO 行、立绘素材 |
+| 国区桌面 | `228:928`, `347:3223`, `347:1263`, `347:978`, `347:1019`, `347:1065`, `347:1149`, `347:1191`, `347:1363`, `347:1406`, `347:1432` | 已覆盖默认、输入、登录中、错误、验证码、浏览器等待/准备/错误态 |
+| 国际区桌面 | `347:1472`, `347:1523`, `347:1727`, `347:1620`, `347:1570`, `347:1779`, `347:1837`, `347:1871`, `347:1906`, `347:1948`, `347:1927` | 已覆盖邮箱默认、输入、错误、继续中、登录方式选择、验证码、浏览器等待/准备/错误态 |
+| 移动端 | `132:2741`, `347:2662`, `347:2857`, `347:2884` | 已覆盖国区/国际区 750x1624 与 750x1334 |
+| 回调页 | `343:355`, `347:2503`, `347:1353`, `347:2509`, `347:1461`, `347:2515`, `347:3149`, `347:3155`, `347:3161`, `347:3167`, `347:3173`, `347:3179`, `347:3016`, `347:3185`, `347:3052`, `347:3066`, `347:3203`, `347:3212` | 回调卡 Light/Dark、成功/失败/Warning、桌面浏览器壳、移动 Chrome 壳同构 |
+| 分区标注 | `347:409`, `347:411` | 仅为蓝底大字 `国区` / `国际区` 标识,不含额外设计说明 |
+| wave3 追加 · 2026-07-19 | `247:1613`, `358:792`, `247:1539`, `358:689`, `358:711`, `358:733`, `358:473`, `358:833`, `358:434`, `347:3223`, `347:3244`, `347:3247` | Text_link hover、log_in_button 5 态、企业 SSO 新桌面帧、iPad 竖/横屏、WeChat 三圆钮行均已读取;企业 SSO 第一排 `358:511` / `358:601` / `358:631` 与第二排参数一致 |
+| wave4 追加 · 2026-07-20(白底体系) | `368:1375`(含 children `368:1376`-`368:1398`), `379:518`, `379:520`, `368:1377`, `368:1381`, `368:1394`, `368:1383`; Splash 五帧 `379:581`, `379:525`, `379:607`, `379:633`, `379:655` | 白底体系六新帧读取记录见 §10;**立绘 child 层裁定**:wave4 登录帧内立绘为 `CINDY_Client` 组件 instance(`368:1378`,443,275,934×934,与旧帧几何一致),**无独立新图层/新资产**——立绘复用旧 source(桌面 `347:971` / 移动 `347:2707`),背景渐变由代码绘制(默认路径成立,implementation-plan Step 0 资产硬约束③) |
+| wave5 追加 · 2026-07-24(组件库状态扩充 + hover 统一口径) | `600:627`, `602:846`, `602:863`, `602:1297`, `602:1311`, `347:2526`, `247:1539`, `247:1636`, `549:765`(变体 `549:766`/`779`/`792`/`850`/`865`/`882`)| radiobutton 四态、双色模式小按钮四母版、white_button 增 loading 五态、`SSO 登录_企业` 与 `back` 扩为含 Dark 三态的六态集、**全按钮族 hover 统一为「normal 底上叠白变亮」**(旧「白底钮 hover 叠黑」口径作废)——详见 §11 |
+
+## 1. Color System
+
+### 1.1 登录语义色板
+
+| 色板文本 / 用途 | Hex / alpha | Figma nodeId | 参数 |
+|---|---|---|---|
+| 品牌色 | `#DF0C27` / 100% | swatch `228:1042`; 文本 `228:1051`, `228:1058` | ~~全屏红底~~〔已作废(wave4 2026-07-20):页面背景改白底体系,见 §10;`#DF0C27` 限 accent〕、`Global` pill、字标红元素 |
+| highlight | `#A61629` / 100% | swatch `228:1043`; 文本 `228:1050`, `228:1052` | 高亮 / 强调色;当前登录帧未见大面积使用 |
+| 背景 | `#2A2828` / 100% | swatch `228:1044`; 文本 `228:1064`, `228:1065` | 黑色主按钮、第三方圆钮、深色背景 |
+| 卡片、输入框 | `#312F2F` / 100% | swatch `228:1045`; 文本 `228:1055`, `228:1059` | Dark 回调卡片;该 swatch 带 `backdrop-blur-[50px]` |
+| 边框 | `#434343` / 100% | swatch `228:1046`; 文本 `228:1053`, `228:1060` | 黑色按钮/圆钮描边、Dark 卡片描边 |
+| 二级信息 | `#6F6F6F` / 100% | swatch `228:1047`; 文本 `228:1056`, `228:1061` | 副标题、说明文案、SSO 副文案 |
+| 正文 | `#D4D4D4` / 100% | swatch `228:1048`; 文本 `228:1054`, `228:1063` | 深色按钮文字、placeholder、倒计时文案 |
+| 纯白 | `#FFFFFF` / 100% | swatch `228:1049`; 文本 `228:1057`, `228:1062` | Dark CTA 描边、移动状态栏、分区标注文字 |
+
+### 1.2 状态色 / Toast 色板
+
+| 用途 | Hex / alpha | Figma nodeId | 色板文本 |
+|---|---|---|---|
+| Brand | `#DF0C27` / 100% | `247:1292` | `品牌色`, `DF0C27` |
+| Running | `#EA6B17` / 100% | `247:1280` | `Running` |
+| Awaiting | `#19D2C1` / 100% | `247:1286` | `Awaiting` |
+| Error | `#D91F37` / 100% | `247:1288`, `247:1291` | `Error` / Toast error |
+| Done / Success | `#2AAE5B` / 100% | `247:1290`, `247:1287` | `Done` / Toast success |
+| Toast info / Focus ring | `#417CDD` / 100% | `247:1281`, `247:1285` | `info` / `Focus ring` |
+| Toast warning / Warning foreground | `#F3A115` / 100% | `247:1289`, `247:1283` | `warning` |
+| Accent | `#EA6B17` / 100% | `247:1282` | `Accent` |
+| Auto Approval | `#234DC5` / 100% | `247:1284` | `Auto Approval` |
+
+Color System 文字样式:`PingFang SC` Semibold,色名 36px,hex 28px,标题 40px;色板框所在 frame `247:1253` 为 3081 x 1182,背景白色。
+
+### 1.3 登录帧中额外出现的面色
+
+| Token 建议名 | Hex / alpha | Figma 来源 | 用途 |
+|---|---|---|---|
+| `surface.panel.light` | `#FBFBFB` / 100% | `347:1279`, `347:1488`, `343:355` | 白色登录面板、Light 回调卡片 |
+| `surface.input.light` | `#EEEEEE` / 100% | `247:1570`, `329:1230`, `247:1635`, `329:956` | 输入框、返回按钮、SSO 行、Dark CTA |
+| `stroke.disabled` | `#B4B4B4` / 100% | `329:1226`, `347:1832` | 禁用按钮描边 |
+| `browser.chrome` | `#FEFEFE` / 100% | `347:3016` | 桌面浏览器页壳顶部控件 |
+| `browser.url` | `#F1F2F3` / 100% | `347:3016` | 桌面浏览器地址栏 |
+| `surface.frame.light` | `#F1F0F1` / 100% | 帧 fill(§10.1); radio `600:626` | wave4 帧底色;wave5 起兼作 radiobutton 浅色底 / 暗模式选中底(§11.2) |
+| `surface.button.dark-secondary` | `#434141` / 100% | `602:1294` | wave5 新增:暗色模式普通小按钮底(§11.3) |
+| `stroke.button.dark-secondary` | `#565454` / 100% | `602:1294` | wave5 新增:暗色模式普通小按钮描边(§11.3) |
+
+### 1.4 透明度 / 渐变 / 阴影
+
+> **wave5 hover 统一口径(2026-07-24)**:全按钮族 hover 一律 = normal 底色上叠**白色半透明变亮**(深底 `rgba(255,255,255,0.08)`、浅底 `rgba(255,255,255,0.1)`);pressed 一律叠黑(alpha 按组件档位)。旧「白按钮 hover 叠黑 5%」方向作废。逐组件值见 §11.1。
+
+| 类型 | Figma 参数 | 来源 | 备注 |
+|---|---|---|---|
+| 主按钮 hover 叠层 | `linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.08) 100%)` over `#2A2828` | `247:1540` | 仅桌面端 |
+| 主按钮 pressed 叠层 | `rgba(0,0,0,0.5)` over `#2A2828` | `247:1542` | 双端 pressed |
+| 主按钮 disabled 叠层 | `rgba(255,255,255,0.7)` over `#2A2828` | `329:1226`, `347:1832` | 文字 opacity `0.8` |
+| 白按钮 hover 叠层 | `rgba(255,255,255,0.1)` over `#EEEEEE`〔wave5 更新:原 `rgba(0,0,0,0.05)` 叠黑作废〕 | `347:2529` | 仅桌面端;hover 统一变亮 |
+| 白按钮 pressed 叠层 | `rgba(0,0,0,0.1)` over `#EEEEEE` | `347:2531` | 双端 pressed |
+| back hover 叠层 | `rgba(255,255,255,0.7)` over `#EEEEEE` | `247:1637` | 仅桌面端;wave5 复核维持白 70%(方向本就变亮) |
+| back pressed 叠层 | `rgba(0,0,0,0.08)` over `#EEEEEE` | `247:1645` | 双端 pressed |
+| SSO 行 hover 叠层 | `rgba(255,255,255,0.1)` over `#EEEEEE`,stroke `#FFFFFF`〔wave5 更新:权威组件集迁移至 `549:765`,原 `329:991` 白 8% + 边 `#D4D4D4` 作废〕 | `549:779` | 仅桌面端 |
+| SSO 行 pressed 叠层 | `rgba(0,0,0,0.08)` over `#EEEEEE` | `549:792` | 双端 pressed |
+| SSO 行 Dark hover / pressed | `rgba(255,255,255,0.08)` / `rgba(0,0,0,0.08)` over `#2A2828` | `549:865`, `549:882` | wave5 新增 Dark 三态(§11.4) |
+| back Dark hover / pressed | `rgba(255,255,255,0.08)` / `rgba(0,0,0,0.08)` over `#2A2828` | `549:904`, `549:913` | wave5 新增 Dark 三态(§11.4) |
+| 桌面窗口阴影 | MCP 未暴露 explicit shadow x/y/blur/spread | 桌面截图 | 不从截图目测,需设计补 effect 参数 |
+
+## 2. 排版系统
+
+| 用途 | 字体族 | 字重 | 字号 | 行高 | 字距 | 颜色 | 来源 |
+|---|---|---:|---:|---|---|---|---|
+| Color System 标题 | PingFang SC | Semibold | 40 | normal | 0 | 黑色 | `247:1253` |
+| Color System 色名 | PingFang SC | Semibold | 36 | normal | 0 | 黑色 | `247:1253` |
+| Color System hex | PingFang SC | Semibold | 28 | normal | 0 | 黑色 | `247:1253` |
+| 登录面板标题 | HarmonyOS Sans SC | Bold | 32 | normal | 0 | `#252222` | `347:1001`, `347:1491`, `347:1798` |
+| 登录面板副标题 | HarmonyOS Sans SC | Regular | 20 | normal | 0 | `#6F6F6F` | `347:1002`, `347:1492`, `347:1796` |
+| 输入框 placeholder | HarmonyOS Sans SC | Regular | 24 | normal | 0 | `#D4D4D4` | `247:1570`, `329:1230`, `347:1489` |
+| 输入框已输入 / focus | HarmonyOS Sans SC | Bold | 24 | normal | 0 | `#252222` | `247:1575`, `329:1232`, `347:1587` |
+| 主按钮文字 | HarmonyOS Sans SC | Bold | 24 | normal | 0 | `#D4D4D4` | `247:1538`, `347:1000`, `347:1894` |
+| 白按钮文字 | HarmonyOS Sans SC | Bold | 24 | normal | 0 | `#2A2828` | `347:2527`, `347:2503` |
+| 错误提示 | HarmonyOS Sans SC | Regular | 20 | normal | 0 | `#D91F37` | `247:2158`, `347:1776`, `347:1947` |
+| Text link 倒计时 | HarmonyOS Sans SC | Regular | 20 | normal | 0 | `#D4D4D4` | `247:1614`, `347:1831` |
+| Text link 可重发 | HarmonyOS Sans SC | Regular | 20 | normal + underline | 0 | `#2A2828` | `247:1612`, `347:1859` |
+| Text link hover | HarmonyOS Sans SC | Regular | 20 | normal + underline | 0 | `#4A4848` | `358:792`, text `358:793` |
+| `Global` pill | HarmonyOS Sans SC | Bold | 16 | normal | 0 | `#FFFFFF` | `347:1519`, `347:1592` |
+| SSO 行标题 | HarmonyOS Sans SC | Bold | 24 | normal | 0 | `#252222` | `329:956`, `347:1696` |
+| SSO 行副文案 | HarmonyOS Sans SC | Regular | 20 | normal | 0 | `#6F6F6F` | `329:956`, `347:1696` |
+| 回调卡标题 | HarmonyOS Sans SC | Bold | 32 | normal | 0 | Light `#252222` / Dark `#D4D4D4` | `343:355`, `347:2503` |
+| 回调卡副文案 | HarmonyOS Sans SC | Regular | 20 | normal | 0 | `#6F6F6F` | `343:355`, `347:2503` |
+| iPhone 状态栏 | SF Pro | Semibold / 590 | 31.716 | 41.045 | 0 | `#FFFFFF` | `143:2939`, `347:2860` |
+| 分区标注 | HarmonyOS Sans SC | Bold | 150 | normal | 0 | `#FFFFFF` | `347:410`, `347:412` |
+
+## 3. 组件索引(27 个)
+
+| # | 组件 / 元素 | 用途 | 关键 nodeId |
+|---:|---|---|---|
+| 1 | 登录页红底 / 桌面窗口 bg〔已作废(wave4):红底全屏背景改白底体系,参数见 §10〕 | ~~全屏背景~~、桌面窗口装饰(历史记录) | `347:1264`, `347:1473`, `132:2741` |
+| 2 | `CINDY_Client` | 桌面端 Cindy 立绘 + mask | source `347:971`; instances `347:1273`, `347:1482` |
+| 3 | `CINDY_mobile` | 移动端 Cindy 立绘 + mask | source `347:2707`; instances `347:2708`, `347:2868` |
+| 4 | `WORD_MARK` | 白色 `CINDY.` 字标 | `347:1274`, `347:1483`, `347:2625` |
+| 5 | `SLOGAN` | 手写签名 `Dream it Create it` | `347:1276`, `347:1485`, `347:2627` |
+| 6 | `Log_in` 容器 | 面板 + 第三方入口整体 | `347:1278`, `347:1487`, `347:1794` |
+| 7 | `Log_in_bg` 面板 | 白色输入面板 / 状态面板 | `347:1279`, `347:1488`, `347:1964` |
+| 8 | 标题 / 副标题文本组 | 欢迎标题、流程说明 | `347:1001`, `347:1491`, `347:1798` |
+| 9 | `Global` pill | 国际区标识 | `347:1519`, `347:1592`, `347:3004` |
+| 10 | `input_2` | 手机 / 邮箱通用输入框 | source `247:1569`; instances `347:1280`, `347:1587` |
+| 11 | `input_验证码` | 6 位验证码输入框 | source `329:1229`; instances `347:1830`, `347:1858` |
+| 12 | `log_in_button` | 主按钮 / CTA | source `247:1539`; instances `347:1000`, `347:1832` |
+| 13 | `white_button` | Dark 回调页反色 CTA;wave5 增 `loading` 变体成五态(`567:754`) | source `347:2526`; instance `347:2503` |
+| 14 | 第三方圆钮容器 | 第三方入口 80x80 外壳 | source set `247:1710` |
+| 15 | Apple 圆钮 | Apple 登录入口 | `247:1709`, icon `247:1692` |
+| 16 | Google 圆钮 | Google 登录入口 | `247:1711`, icon `247:1714` |
+| 17 | WeChat 圆钮 | 组件库存在,页面登录帧未使用 | `247:1721`, icon `247:1724` |
+| 18 | SSO 圆钮 | SSO 登录入口 | `329:243`, image `329:248` |
+| 19 | `back` | 返回上一步;wave5 扩为六态(新增 Dark 三态 `549:897`/`904`/`913`) | source set `247:1636`; instances `347:1801`, `347:1857` |
+| 20 | `Text_link` | 验证码倒计时 / 重新发送 / hover | source set `247:1613`; hover `358:792`; instances `347:1831`, `347:1859` |
+| 21 | `error_text` | 输入错误 / 服务错误提示 | source `247:2158`; instances `347:1776`, `347:1947` |
+| 22 | `loading_icon` | 面板级 loading 与按钮 spinner | panel `347:1405`, `347:1966`; button `247:1546` |
+| 23 | `SSO 登录_企业` 行 | 企业 / 个人登录方式选择;wave5 起权威组件集为六态 `549:765`(旧三态 `329:957` 保留历史) | source set `549:765`(旧 `329:957`); instances `347:1696`, `347:1697` |
+| 24 | 回调结果卡片 | 成功 / 失败 / Warning,Light/Dark | `343:355`, `347:2503`, `347:1353`, `347:1461` |
+| 25 | 浏览器 / 移动 Chrome 页壳 | 回调页面外层浏览器壳 | `347:3016`, `347:3185`, `347:3066`, `347:3052` |
+| 26 | `radiobutton` | 协议勾选(登录帧 `服务条款` 行);四态双模式,选中为对勾 | source `600:627`; instances `600:636`, `600:662`, `600:707`, `600:758`(§11.2) |
+| 27 | 双色模式小按钮(`light_button_*` / `Dark_button_*`) | 服务条款弹窗「不同意 / 同意」等 260 宽小 CTA | sources `602:846`, `602:863`, `602:1297`, `602:1311`; instances `602:883`/`884`(服务条款弹窗面板 `602:822` 内)(§11.3) |
+
+## 4. 核心组件规格
+
+### 4.1 `input_2` 通用输入框
+
+组件集 `247:1569`,总尺寸 580 x 420;单个变体尺寸 540 x 80。
+
+| 状态 | 平台 | nodeId | 尺寸 | Fill | Stroke | Radius | 文本 |
+|---|---|---|---|---|---|---:|---|
+| default / normal 未输入 | 双端 | `247:1570` | 540 x 80 | `#EEEEEE` | 1px `#D4D4D4` | 40 | Regular 24 `#D4D4D4`,x=31,w=409 |
+| focus / Activate | 双端 | `247:1575` | 540 x 80 | `#EEEEEE` | 1px `#2A2828` | 40 | Bold 24 `#252222`,x=31,w=409 |
+| error | 双端 | `247:1580` | 540 x 80 | `#EEEEEE` | 1px `#D91F37` | 40 | Bold 24 `#252222`,x=31,w=409 |
+| filled / normal 已输入 | 双端 | `347:1222` | 540 x 80 | `#EEEEEE` | 1px `#D4D4D4` | 40 | Bold 24 `#252222`,x=31,w=409 |
+| hover | 仅桌面端 | 未提供独立 input hover node | 同对应状态或后续补稿 | 同对应状态 | 同对应状态 | 40 | 移动端不实现 hover |
+
+实例文案:
+
+| 场景 | nodeId | 状态 | 文案 / 差异 |
+|---|---|---|---|
+| 国区手机输入中 | `347:1280` | focus | `1398 888 8888`,stroke `#2A2828` |
+| 国区手机登录中 | `347:999` | filled | `139 6666 6666`,stroke `#D4D4D4` |
+| 国区手机报错 | `347:1040` | error | `133 45`,错误文案 `请输入正确手机号` |
+| 国际区邮箱默认 | `347:1489` | default | `请输入邮箱` |
+| 国际区邮箱输入中 | `347:1540` | focus | `Praise@`,stroke `#2A2828` |
+| 国际区邮箱继续中 | `347:1587` | filled | `[email protected]`,stroke `#D4D4D4` |
+| 国际区邮箱错误 | `347:1744` | error | `Praise@`,错误文案 `请输入正确邮箱` |
+| 移动国区长屏 | `347:2642` | default | `请输入手机号(含国家区号)` |
+| 移动国区短屏 | `347:2680` | default | `请输入手机号` |
+| 移动国际长屏 | `347:2875` | default | `请输入手机号(含国家区号)` |
+| 移动国际短屏 | `347:2902` | default | `请输入手机号` |
+
+### 4.2 `input_验证码`
+
+组件集 `329:1229`,总尺寸 580 x 420;单个变体尺寸 540 x 80。
+
+| 状态 | 平台 | nodeId | 尺寸 | Fill | Stroke | Radius | 文本 |
+|---|---|---|---|---|---|---:|---|
+| default / normal 未输入 | 双端 | `329:1230` | 540 x 80 | `#EEEEEE` | 1px `#D4D4D4` | 40 | `6 位验证码`,Regular 24 `#D4D4D4`,居中,w=409 |
+| focus / Activate | 双端 | `329:1232` | 540 x 80 | `#EEEEEE` | 1px `#2A2828` | 40 | Bold 24 `#252222`,居中,w=409 |
+| error | 双端 | `329:1234` | 540 x 80 | `#EEEEEE` | 1px `#D91F37` | 40 | Bold 24 `#252222`,居中,w=409 |
+| filled / normal 已输入 | 双端 | `347:1232` | 540 x 80 | `#EEEEEE` | 1px `#D4D4D4` | 40 | Bold 24 `#252222`,居中,w=409 |
+| hover | 仅桌面端 | 未提供独立验证码 hover node | 同对应状态或后续补稿 | 同对应状态 | 同对应状态 | 40 | 移动端不实现 hover |
+
+页面实例:
+
+| 场景 | nodeId | 状态 | 差异 |
+|---|---|---|---|
+| 国区验证码空 | `347:1104` | default | x=71 y=158,文案 `6 位验证码` |
+| 国区验证码填完 | `347:1166` | focus | 文案 `666666`,stroke `#2A2828` |
+| 国区验证码登录中 | `347:1208` | filled | 文案 `666666`,stroke `#D4D4D4` |
+| 国际区验证码空 | `347:1830` | default | 副标题 `验证码已发送至 [email protected]` |
+| 国际区验证码填完 | `347:1858` | focus | 文案 `666666`,stroke `#2A2828` |
+| 国际区验证码登录中 | `347:1892` | filled | 文案 `666666`,stroke `#D4D4D4` |
+
+### 4.3 `log_in_button` 主按钮
+
+组件集 `247:1539`,总尺寸 580 x 520;单个变体尺寸 540 x 80,radius 40。
+
+| 状态 | 平台 | nodeId | Fill / Stroke | 文本 | 附加参数 |
+|---|---|---|---|---|---|
+| normal | 双端 | `247:1538` | fill `#2A2828`; stroke 1px `#434343` | Bold 24 `#D4D4D4`,left 269,w=516 | 常规文案 `继续` / `登录` / `取消` / `重试` 由实例覆盖 |
+| hover | 仅桌面端 | `247:1540` | `rgba(255,255,255,0.08)` 叠加 `#2A2828`; stroke `#434343` | 同 normal | 移动端不实现 hover |
+| pressed / `Pressd` | 双端 | `247:1542` | `rgba(0,0,0,0.5)` 叠加 `#2A2828`; stroke `#434343` | 同 normal | Figma 变体名拼作 `Pressd` |
+| loading / `load` | 双端 | `247:1544` | 同 normal | `登录中...` / `继续中...`,Bold 24 `#D4D4D4` | spinner image `247:1546`,24 x 24,x=487 y=27 |
+| disabled / `Disable` | 双端 | `329:1226` | `rgba(255,255,255,0.7)` 叠加 `#2A2828`; stroke `#B4B4B4` | Bold 24 `#D4D4D4`,opacity 0.8 | 用于验证码未填 |
+
+wave3 追加 · 2026-07-19 复核:`get_metadata(247:1539)` 返回完整 5 态 `247:1538` / `247:1540` / `247:1542` / `247:1544` / `329:1226`;`get_design_context(247:1539)` 确认 hover = 白 8% 叠层、pressed = 黑 50% 叠层、loading spinner = `247:1546` 24 x 24 at x=487 y=27、disabled = 白 70% 叠层 + stroke `#B4B4B4` + 文字 opacity 80%。既有表已覆盖这些参数,本段仅做 wave3 溯源确认,不重复新建状态行。
+
+页面实例:
+
+| 场景 | nodeId | 文案 | 状态 |
+|---|---|---|---|
+| 国区默认 / 输入中 | `347:1281` | `继续` | normal |
+| 国区手机登录中 | `347:1000` | `登录中...` | loading + spinner |
+| 国区验证码空 | `347:1087` | `登录` | disabled |
+| 国区验证码填完 | `347:1167` | `登录` | normal |
+| 国区验证码登录中 | `347:1209` | `登录中...` | loading + spinner |
+| 国际邮箱默认 | `347:1490` | `继续` | normal |
+| 国际邮箱继续中 | `347:1588` | `继续中...` | loading + spinner |
+| 国际邮箱错误 | `347:1745` | `继续` | normal |
+| 国际验证码空 | `347:1832` | `登录` | disabled |
+| 国际验证码填完 | `347:1860` | `登录` | normal |
+| 国际验证码登录中 | `347:1894` | `登录中...` | loading + spinner |
+| 浏览器等待屏 | `347:1381`, `347:1923` | `取消` | normal |
+| 浏览器错误态 | `347:1449`, `347:1944` | `重试` | normal |
+
+### 4.4 `white_button`
+
+组件集 `347:2526`,总尺寸 580 x 520;单个变体尺寸 540 x 80,radius 40。主要用于 Dark 回调卡片。
+
+| 状态 | 平台 | nodeId | Fill / Stroke | 文本 | 备注 |
+|---|---|---|---|---|---|
+| normal | 双端 | `347:2527` | fill `#EEEEEE`; stroke 1px `#FFFFFF` | Bold 24 `#2A2828` | Dark 卡片 CTA |
+| hover | 仅桌面端 | `347:2529` | `rgba(255,255,255,0.1)` over `#EEEEEE`; stroke `#FFFFFF`〔wave5 更新:原 `rgba(0,0,0,0.05)` 叠黑作废,hover 统一变亮〕 | 同 normal | 移动端不实现 hover |
+| pressed / `Pressd` | 双端 | `347:2531` | `rgba(0,0,0,0.1)` over `#EEEEEE`; stroke `#E5E5E5` | 同 normal | 按下态 |
+| disabled / `Disable` | 双端 | `347:2537` | `rgba(255,255,255,0.7)` over `#2A2828`; stroke `#B4B4B4` | Bold 24 `#D4D4D4`, opacity 0.8 | Figma 给出但回调页未见使用 |
+| loading | 双端 | `567:754` | 同 normal | 同 normal | wave5 登记:spinner `567:756` 24 x 24,x=487 y=27(与 `log_in_button:load` 同构) |
+
+wave5 追加 · 2026-07-24:`get_design_context(347:2526)` 复核,组件集已含 `loading` 五态;hover 叠层方向由黑 5% 改为**白 10% 变亮**(hover 统一口径,见 §11.1),其余状态值不变。
+
+### 4.5 第三方圆钮 Apple / Google / WeChat / SSO
+
+组件集 `247:1710`,总尺寸 120 x 420;单个圆钮尺寸 80 x 80,fill `#2A2828`,stroke 1px `#434343`,radius 50。
+
+| 变体 | 平台 | nodeId | 图标参数 | 页面使用 |
+|---|---|---|---|---|
+| Apple | 双端 | `247:1709` | icon `247:1692`,48 x 48,居中 | 国区 / 国际区 |
+| Google | 双端 | `247:1711` | icon group `247:1714`,48 x 48,top=15,left `calc(20%-0.6px)` | 国际区 |
+| WeChat | 双端 | `247:1721` | icon `247:1724`,48 x 48,top=15,vector inset 18.75% / 10.42% | 组件库存在;当前登录页面未使用 |
+| SSO | 双端 | `329:243` | image `329:248`,48 x 48,x=15 y=15 | 国区 / 国际区 |
+| hover | 仅桌面端 | 未提供圆钮 hover node | 同变体或后续补稿 | 移动端不实现 hover |
+| pressed | 双端 | 未提供圆钮 pressed node | 同变体或后续补稿 | 可按平台按下态补充 |
+
+组合位置:
+
+| 地区 | nodeId | 容器 | 子项 |
+|---|---|---|---|
+| 国区桌面 / 移动 | `347:1284`, `347:2646`, `347:2684` | x=225 y=480,230 x 80;gap=70 | Apple x=0;SSO x=150 |
+| 国际区桌面 / 移动 | `347:1493`, `347:2879`, `347:2906` | x=150 y=480,380 x 80;gap=70 | Apple x=0;Google x=150;SSO x=300 |
+
+wave3 追加 · 2026-07-19:`LOG IN_手机登录_默认` 新帧 `347:3223` 已实测为 Apple / WeChat / SSO 三圆钮行。第三方入口容器 `347:3244` x=150 y=480 w=380 h=80,gap 70;Apple `347:3245` x=0、WeChat `347:3247` x=150、SSO `347:3248` x=300,三者均 80 x 80、radius 50、fill `#2A2828`、stroke `#434343`。WeChat icon 使用组件 `247:1724`;`get_design_context` 未暴露 icon vector fill,`get_screenshot(347:3247)` 80x80 像素统计中主绿为 `#00C70A`(576 个不透明像素),作为图标主色记录。
+
+### 4.6 `back` 返回按钮
+
+组件集 `247:1636`,总尺寸 100 x 260;单个按钮 60 x 60,radius 40。
+
+| 状态 | 平台 | nodeId | Fill / Stroke | Icon |
+|---|---|---|---|---|
+| normal | 双端 | `247:1635` | fill `#EEEEEE`; stroke 1px `#FFFFFF` | icon container 24 x 24,x=18 y=17,旋转 -90 且 scaleY(-1) |
+| hover | 仅桌面端 | `247:1637` | `rgba(255,255,255,0.7)` over `#EEEEEE`; stroke `#FFFFFF` | 同 normal,移动端不实现 hover |
+| pressed | 双端 | `247:1645` | `rgba(0,0,0,0.08)` over `#EEEEEE`; stroke `#ECECEC` | 同 normal |
+| Dark_normal | 双端 | `549:897` | fill `#2A2828`; stroke 1px `#434343` | 同 normal(Dark 三态用白字版 chevron 资产) |
+| Dark_hover | 仅桌面端 | `549:904` | `rgba(255,255,255,0.08)` over `#2A2828`; stroke `#434343` | 同 Dark_normal |
+| Dark_pressed | 双端 | `549:913` | `rgba(0,0,0,0.08)` over `#2A2828`; stroke `#434343` | 同 Dark_normal |
+
+wave5 追加 · 2026-07-24:组件集扩为六态(新增 Dark 三态)。亮色 hover 复核维持白 70% 叠层(方向本就变亮);Dark 三态圆角在稿内标 60(60px 钮上与 r40 同为全圆,视觉无差,登记备查)。
+
+页面位置:验证码页和选择登录方式页均为面板内 x=20 y=20,60 x 60;例如 `347:1801`, `347:1857`, `347:1723`。
+
+### 4.7 `Text_link` 验证码重发
+
+组件集 `247:1613`,wave3 后总尺寸 580 x 230;单个链接区域 540 x 50。
+
+| 状态 | 平台 | nodeId | 文本 | 样式 |
+|---|---|---|---|---|
+| resend / `重新发送` | 双端 | `247:1612` | `重新发送` | HarmonyOS Sans SC Regular 20,`#2A2828`,underline,居中;text `247:1610` x=270.5, top=`calc(50%-1.5px)`, w=539, line-height normal |
+| countdown / `倒计时重发` | 双端 | `247:1614` | `42 秒后可重新发送` | HarmonyOS Sans SC Regular 20,`#D4D4D4`,无 underline,居中;text `247:1615` x=270.5, top=`calc(50%-1.5px)`, w=539, line-height normal |
+| hover / `Hover` | 仅桌面端 | `358:792` | `重新发送` | HarmonyOS Sans SC Regular 20,`#4A4848`,underline,居中;text `358:793` x=270.5, top=`calc(50%-1.5px)`, w=539, line-height normal;移动端不实现 hover |
+
+页面位置:验证码页面板内 x=71 y=238,540 x 50。
+
+### 4.8 `error_text`
+
+Symbol `247:2158`,尺寸 680 x 50。
+
+| 状态 | 平台 | nodeId | 文本 | 样式 |
+|---|---|---|---|---|
+| visible | 双端 | `247:2158`; text `247:2156` | 默认 `错误提示` | Regular 20 `#D91F37`,居中,w=599,top `calc(50%-0.5px)` |
+| instance / phone error | 双端 | `347:1059` | `请输入正确手机号` | 同 source |
+| instance / email error | 双端 | `347:1776` | `请输入正确邮箱` | 同 source |
+| instance / browser error | 双端 | `347:1458`, `347:1947` | `登录服务暂不可用` | 同 source |
+| hover | 仅桌面端 | 不适用 | - | 错误文案不需要 hover |
+
+### 4.9 `SSO 登录_企业` 选项行
+
+〔wave5 更新 · 2026-07-24〕权威组件集迁移为六态 `549:765`(总尺寸 580 x 740;单行 540 x 100,radius 60);旧三态集 `329:957` 保留为历史记录。变化点:Hover 叠层 8%→**10%** 且描边改 `#FFFFFF`;新增 Dark 三态。
+
+| 状态 | 平台 | nodeId | Fill / Stroke | 标题 / 副文案 | Icon |
+|---|---|---|---|---|---|
+| Normal | 双端 | `549:766` | fill `#EEEEEE`; stroke 1px `#D4D4D4` | title `以企业身份登录` Bold 24 `#252222` x=67 top=`calc(50%-14px)`;subtitle `通过 Example SSO 单点登录` Regular 20 `#6F6F6F` x=67 top=`calc(50%+19.5px)` | left enterprise 24 x 24 x=27 y=37;right share 24 x 24 x=487 y=37 |
+| Hover | 仅桌面端 | `549:779` | `rgba(255,255,255,0.1)` over `#EEEEEE`; stroke `#FFFFFF` | 样式同 Normal | 移动端不实现 hover;稿内此变体 radius 标 40(其余 60),按笔误登记、实现取 60 |
+| Pressed | 双端 | `549:792` | `rgba(0,0,0,0.08)` over `#EEEEEE`; stroke `#D4D4D4` | 样式同 Normal | 按下态 |
+| Dark_normal | 双端 | `549:850` | fill `#2A2828`; stroke 1px `#434343` | title `#EEEEEE`;subtitle `#6F6F6F` | 图标同构(白字版资产) |
+| Dark_hover | 仅桌面端 | `549:865` | `rgba(255,255,255,0.08)` over `#2A2828`; stroke `#434343` | 同 Dark_normal | 移动端不实现 hover |
+| Dark_pressed | 双端 | `549:882` | `rgba(0,0,0,0.08)` over `#2A2828`; stroke `#434343` | 同 Dark_normal | 按下态 |
+
+页面实例:
+
+| 变体 | nodeId | 位置 | 文案 |
+|---|---|---|---|
+| 企业身份 | `347:1696` | x=70 y=158,540 x 100 | `以企业身份登录`; `通过 Example SSO 单点登录` |
+| 个人身份 | `347:1697` | x=70 y=278,540 x 100 | `以个人身份登录`; `通过邮箱发送验证码` |
+
+wave3 追加 · 2026-07-19:桌面 `LOG IN_企业 SSO 登录` 两排同名帧参数一致;按第二排 `358:689` / `358:711` / `358:733` 入规范,第一排同参数帧为 `358:511` / `358:601` / `358:631`。选择列表页新实例 `358:745` 为单行企业 SSO:x=70 y=148 w=540 h=100,fill `#EEEEEE`,stroke `#D4D4D4`,radius 60;标题 `以企业身份登录`,副文案 `通过 [email protected] SSO 单点登录`。组件集仍为 `329:957`,normal/hover/pressed 节点分别是 `329:956` / `329:991` / `329:1009`。
+
+### 4.10 `Global` pill
+
+| 状态 | 平台 | nodeId | 尺寸 / 位置 | Fill | Radius | 文本 |
+|---|---|---|---|---|---:|---|
+| visible | 双端 | `347:1519`, `347:1592`, `347:1749`, `347:3004` | 70 x 30;title group 内 x=425 y=4 | `#DF0C27` | 40 | `Global`,Bold 16,`#FFFFFF`,x=11 y=6,49 x 19 |
+| hover | 仅桌面端 | 未提供独立 node | 同 visible | 同 visible | 40 | 移动端不实现 hover |
+
+### 4.11 立绘 / 字标 / 签名素材
+
+| 素材 | nodeId | 尺寸 / 参数 | 用途 |
+|---|---|---|---|
+| `CINDY_Client` | source `347:971` | 934 x 934;内部 `347:970` mask 934 x 934,image object-cover | 桌面登录主视觉 |
+| `CINDY_mobile` | source `347:2707` | 750 x 902;内部 `347:2706` x=15 y=78,size 703,mask-position -15 -78,mask-size 750 x 877 | 移动登录主视觉 |
+| `WORD_MARK` | `347:1274`, `347:1483` | 外框 680 x 180;实际图 x=100.8828 y=8,477.2323 x 163 | `CINDY.` 白色字标 |
+| `SLOGAN` | `347:1276`, `347:1485` | 外框 460 x 134;vector x=3 y=3,453.2212 x 129.1219 | `Dream it Create it` |
+
+## 5. 页面布局与状态
+
+### 5.1 桌面端通用画板
+
+| 项 | 参数 | 来源 |
+|---|---|---|
+| Frame | 1819 x 2098 | 国区 / 国际区桌面帧 |
+| 顶部窗口点 | group x=20 y=20,84 x 20;三个点各 20 x 20 | `347:1269`, `347:1478` |
+| Cindy 立绘 | x=443 y=275,934 x 934 | `347:1273`, `347:1482` |
+| CINDY 字标外框 | x=570 y=1029,680 x 180 | `347:1274`, `347:1483` |
+| SLOGAN | x=1191 y=863,460 x 134 | `347:1276`, `347:1485` |
+| 登录整体组 | x=570 y=1229;常规 680 x 560;验证码/准备/错误 680 x 440 | `347:1278`, `347:1794`, `347:1963` |
+| 面板 | 680 x 440;fill `#FBFBFB`;radius 36;overflow clip | `347:1279`, `347:1488`, `347:1964` |
+| 标题 | y=31,高 38;国区标题 x=222 w=236;国际 title group x=0 w=680 | `347:1001`, `347:1491` |
+| 副标题 | x=41 y=75,599 x 23 | `347:1002`, `347:1492` |
+| 输入框 | x=70 y=158,540 x 80 | `347:1280`, `347:1489` |
+| 主按钮 | x=70 y=300,540 x 80 | `347:1281`, `347:1490` |
+| 输入到按钮 gap | 输入 bottom 238 到按钮 top 300,gap=62 | `347:1280`, `347:1281` |
+| 面板到第三方入口 gap | 面板 bottom 440 到第三方 y=480,gap=40 | `347:1278`, `347:1493` |
+
+### 5.2 国区桌面状态帧
+
+| 状态 | nodeId | 面板 / 关键组件 | 差异 |
+|---|---|---|---|
+| 默认旧版 | `228:928` | `Log_in` 680 x 560;input default;button normal;第三方 Apple + SSO | 旧同名默认帧保留为两钮事实 |
+| 默认 wave3 | `347:3223` | `Log_in` 680 x 560;input default;button normal;第三方 Apple + WeChat + SSO | 三钮容器 `347:3244` x=150 y=480 w=380 h=80;WeChat `347:3247`,详见 §9.3 |
+| 手机输入中 | `347:1263` | input `347:1280`; button `347:1281`; third-party `347:1284` | 输入文本 `1398 888 8888`,input focus stroke `#2A2828` |
+| 手机登录中 | `347:978` | input `347:999`; button `347:1000`; third-party `347:988` | 文案 `139 6666 6666`; 按钮 `登录中...` + spinner 24 x 24 x=487 y=27 |
+| 手机报错 | `347:1019` | input error;error text `347:1059` | input stroke `#D91F37`;错误文案 `请输入正确手机号`;error_text x=1 y=380 |
+| 验证码空 | `347:1065` | input `347:1104`; button `347:1087`; Text_link `347:1111`; back `347:1107` | button disabled;倒计时 `42 秒后可重新发送` |
+| 验证码填完 | `347:1149` | input `347:1166`; button `347:1167`; Text_link `347:1171` | input focus;button normal;Text_link underline `重新发送` |
+| 验证码登录中 | `347:1191` | input `347:1208`; button `347:1209`; Text_link `347:1213` | button `登录中...` + spinner;input stroke 回到 `#D4D4D4` |
+| 浏览器等待屏 | `347:1363` | loading `347:1405`; button `347:1381` | 标题 `请在浏览器中完成验证`;loading 64 x 64 x=308 y=158;按钮 `取消` |
+| 准备态 | `347:1406` | loading `347:1425` | 标题 `正在连接登录服务`;副标题 `将为你加载当前区域可用的登录方式`;loading x=308 y=193 |
+| 错误态 | `347:1432` | button `347:1449`; error `347:1458` | 标题 `暂时无法登录`;副标题 `登录失败,请稍后重试`;按钮 `重试`;错误 `登录服务暂不可用` |
+
+### 5.3 国际区桌面状态帧
+
+| 状态 | nodeId | 面板 / 关键组件 | 差异 |
+|---|---|---|---|
+| 邮箱默认 | `347:1472` | input `347:1489`; button `347:1490`; third-party `347:1493` | `Global` pill visible;placeholder `请输入邮箱`;第三方 Apple / Google / SSO |
+| 邮箱输入中 | `347:1523` | input `347:1540`; button `347:1541` | 文本 `Praise@`,input focus stroke `#2A2828` |
+| 邮箱错误 | `347:1727` | input `347:1744`; error `347:1776` | input stroke `#D91F37`;错误文案 `请输入正确邮箱` |
+| 邮箱继续中 | `347:1570` | input `347:1587`; button `347:1588` | 文本 `[email protected]`;按钮 `继续中...` + spinner |
+| 选择登录方式 | `347:1620` | SSO rows `347:1696`, `347:1697`; back `347:1723` | 标题 `选择登录方式`;副标题 `[email protected] 属于企业「示例企业」` |
+| 个人验证码空 | `347:1779` | input `347:1830`; link `347:1831`; button `347:1832`; back `347:1801` | 副标题 `验证码已发送至 [email protected]`; button disabled |
+| 个人验证码填完 | `347:1837` | input `347:1858`; link `347:1859`; button `347:1860` | `666666`; button normal;link `重新发送` |
+| 个人验证码登录中 | `347:1871` | input `347:1892`; button `347:1894` | button `登录中...` + spinner;input stroke `#D4D4D4` |
+| 浏览器等待屏 | `347:1906` | loading `347:1925`; button `347:1923` | 与国区等待屏同构,按钮 `取消` |
+| 准备态 | `347:1948` | loading `347:1966` | 与国区准备态同构 |
+| 错误态 | `347:1927` | button `347:1944`; error `347:1947` | 与国区错误态同构 |
+
+### 5.4 移动端登录画板
+
+| 场景 | nodeId | 画板 | 立绘 | SLOGAN | WORD_MARK | Log_in |
+|---|---|---|---|---|---|---|
+| 国区长屏 | `132:2741` | 750 x 1624,bg `#DF0C27` | x=0 y=116,750 x 902 | x=289 y=659,460 x 134 | x=0 y=793,750 x 180 | x=35 y=973,680 x 560 |
+| 国区短屏 | `347:2662` | 750 x 1334,bg `#DF0C27` | x=75 y=107,599 x 720 | x=385 y=458.965,364 x 106.035 | x=45 y=576,660 x 158.4 | x=35 y=734,680 x 560 |
+| 国际长屏 | `347:2857` | 750 x 1624,bg `#DF0C27` | x=0 y=96,750 x 902 | x=289 y=659,460 x 134 | x=0 y=793,750 x 180 | x=35 y=973,680 x 560 |
+| 国际短屏 | `347:2884` | 750 x 1334,bg `#DF0C27` | x=75 y=107,599 x 720 | x=385 y=458.965,364 x 106.035 | x=45 y=576,660 x 158.4 | x=35 y=734,680 x 560 |
+
+移动端固定项:
+
+| 项 | 参数 | 来源 |
+|---|---|---|
+| Status Bar | x=0 y=0,750 x 115.671646 | `143:2937`, `347:2663`, `347:2858`, `347:2885` |
+| Time | SF Pro Semibold 31.716,line-height 41.045,`#FFFFFF`; frame x=29.8508 y=39.1791,201.4925 x 41.0448 | `143:2938`, `143:2939` |
+| Levels | x=518.6566 y=39.1793,201.4925 x 41.0448;gap=13.06 | `143:2940` |
+| 登录面板内部 | 面板、输入、按钮、标题、副标题、第三方圆钮尺寸与桌面一致 | `347:2641`, `347:2679`, `347:2874`, `347:2901` |
+| hover | 移动端不实现 | 平台规则 | hover 仅桌面端 |
+
+## 6. 回调页与浏览器页壳
+
+### 6.1 回调结果卡片
+
+卡片尺寸 680 x 680,radius 36。Light 卡片 fill `#FBFBFB`、stroke `#D4D4D4`;Dark 卡片 fill `#312F2F`、stroke `#434343`。
+
+| 状态 | 国区 Light | 国区 Dark | 国际区 Light | 国际区 Dark | 文案 | 图像参数 |
+|---|---|---|---|---|---|---|
+| 成功 | `343:355` | `347:2503` | `347:3149` | `347:3155` | 标题 `登录成功`;副文案 `你可以关闭此页面,回到 Cindy 继续`;按钮 `回到 CINDY` | emoj x=200 y=60,280 x 280;成功图 image crop w=311.89%, h=313.21%, left=-100.32%, top=-202.18% |
+| 失败 | `347:1353` | `347:2509` | `347:3161` | `347:3167` | 标题 `登录未完成`;副文案 `请回到 CINDY 重新登录`;按钮 `回到 CINDY` | emoj x=200 y=60,280 x 280 |
+| Warning | `347:1461` | `347:2515` | `347:3173` | `347:3179` | 标题 `需要继续操作`;副文案 `请返回 Cindy,完成当前工作区的安装后继续`;按钮 `返回 CINDY` | emoj frame 280 x 280;可见图层 273 x 272;image w=327.4%, h=329.15%, left=-212.69%, top=-112.97% |
+
+卡片内部共用:
+
+| 元素 | Light | Dark |
+|---|---|---|
+| 标题 | x=42 y=352,598 x 38;Bold 32,`#252222`,居中 | 同位置;`#D4D4D4` |
+| 副文案 | x=41 y=396,599 x 23;Regular 20,`#6F6F6F`,居中 | 同 |
+| CTA | x=70 y=529,540 x 80;fill `#2A2828`,stroke `#434343`,radius 40;文字 Bold 24 `#D4D4D4` | fill `#EEEEEE`,stroke `#FFFFFF`,radius 40;文字 `#2A2828` |
+| hover | 仅桌面端,Light CTA 可用 `log_in_button:hover` 参数 | 仅桌面端,Dark CTA 可用 `white_button:hover` 参数 |
+
+### 6.2 桌面浏览器页壳
+
+| 场景 | nodeId | 画板 / 背景 | 卡片放置 |
+|---|---|---|---|
+| 国区 Browser 页壳 | `347:3016` | 1831 x 1831;内容区域 x=0 y=146.630,1831 x 1684.370;顶部控件 `#FEFEFE` x=169.189 y=26.318,203.027 x 48.877;地址栏 `#F1F2F3` x=259.423 y=95.874,404.174 x 33.838 | success card x=576 y=226,680 x 680 |
+| 国际区 Browser 页壳 | `347:3185` | 与国区同构;同一 browser chrome 参数 | success card x=576 y=226,680 x 680 |
+
+### 6.3 移动 Chrome 回调页
+
+| 场景 | nodeId | 画板 / 内容底色 | 卡片放置 |
+|---|---|---|---|
+| 国区 Mobile Chrome Dark 成功 | `347:3052` | 750 x 1623;内容底色块 x=0 y=171,750 x 1315,`#2A2828` | success card x=35 y=251,680 x 680 |
+| 国区 Mobile Chrome White 成功 | `347:3066` | 750 x 1623;内容底色块 x=0 y=160,750 x 1315,`#EEEEEE` | success card x=35 y=251,680 x 680 |
+| 国际区 Mobile Chrome Dark 成功 | `347:3203` | 与国区 Dark 同构 | success card x=35 y=251,680 x 680 |
+| 国际区 Mobile Chrome White 成功 | `347:3212` | 与国区 White 同构 | success card x=35 y=251,680 x 680 |
+
+## 7. 国区 / 国际区 / 移动端差异清单
+
+### 7.1 国区 vs 国际区
+
+| 项 | 国区 | 国际区 | 结论 |
+|---|---|---|---|
+| 主流程 | 手机号登录 | 邮箱登录 + 企业/个人登录方式选择 | 布局同构,文案和中间流程不同 |
+| 标题行 | `欢迎使用 CINDY`,标题 x=222 w=236 | `欢迎使用 CINDY` + `Global` pill;标题 x=185 w=236,pill x=425 | 国际区多 pill,面板尺寸不变 |
+| 第三方入口 | Apple + SSO;group x=225 w=230 | Apple + Google + SSO;group x=150 w=380 | 圆钮尺寸 80、gap 70 一致 |
+| 输入框默认文案 | `请输入手机号` / `请输入手机号(含国家区号)` | 桌面 `请输入邮箱`;移动仍是手机号文案 | 移动国际文案需确认 |
+| 验证码副标题 | `验证码已发送至 +86 13666666666` | `验证码已发送至 [email protected]` | 组件尺寸一致,文案不同 |
+| 浏览器三态 | 等待 / 准备 / 错误 | 等待 / 准备 / 错误 | 参数同构 |
+| 回调卡 | 国区节点一套 | 国际区节点一套 | Light/Dark 与文案同构 |
+
+### 7.2 移动端 vs 桌面端
+
+| 项 | 桌面端 | 移动端 | 结论 |
+|---|---|---|---|
+| 核心组件尺寸 | input 540 x 80,button 540 x 80,panel 680 x 440,round button 80 x 80 | 同 Figma px 尺寸 | 双端共用组件尺寸 |
+| 画板 | 1819 x 2098 | 750 x 1624 / 750 x 1334 | 外层布局不同,组件不缩放 |
+| 顶部系统元素 | 桌面窗口三色点 | iPhone Status Bar mock | 平台壳不同 |
+| hover | 可实现 | 不实现 | hover 仅桌面端 |
+| 长短屏适配 | 固定桌面画板 | 短屏缩放/上移立绘、签名、字标;面板不缩放 | 移动适配优先保护输入面板尺寸 |
+
+## 8. 异常 / 不一致 / 待设计确认
+
+| # | 发现 | 影响 | 建议 |
+|---:|---|---|---|
+| 1 | `get_variable_defs` 对已读节点均返回 `{}` | 无可直接导入的 Figma variable token 名称;只能按色板文本和 node 参数建代码 token | 实现时在代码侧建立稳定 token,并保留本文 nodeId 回查 |
+| 2 | 桌面窗口外阴影在截图中可见,但 MCP 未暴露 shadow x/y/blur/spread | 不能按设计稿数值实现阴影 | 不从截图目测;实现先不加或请设计提供 effect 参数 |
+| 3 | 国区长屏 `132:2741` 的 `CINDY_mobile` y=116,国际长屏 `347:2857` 的 `CINDY_mobile` y=96 | 同为 750 x 1624,顶部立绘位置相差 20px | 需设计确认是刻意差异还是误差;实现前建议统一 |
+| 4 | 国际区移动帧 `347:2857` / `347:2884` 的 input placeholder 仍为手机号文案 | 与「国际区邮箱登录」桌面流程不一致 | 实现国际区移动端前确认文案应为 `请输入邮箱` 还是沿用手机号 |
+| 5 | 第三方入口组件库存在 WeChat 变体 `247:1721`;wave3 页面帧 `347:3223` 已使用 Apple / WeChat / SSO 三圆钮行 | 实现时需按 provider 配置渲染三钮行;WeChat 页面实例 `347:3247` 的底色仍是黑底,绿色来自 icon asset 主色 | 页面帧为准:三钮容器 `347:3244` x=150 y=480 w=380 h=80,gap 70;WeChat icon 主绿 `#00C70A` 来自截图像素统计,vector fill 未由 context 暴露 |
+| 6 | 分区标注 `347:409` / `347:411` 只是 `国区` / `国际区` 大字,不含更多设计说明 | 不能从标注框补充流程规则 | 文档只记录其为画布分区标识 |
+| 7 | hover 变体覆盖主按钮、白按钮、back、SSO 行、Text_link;wave5 后小按钮四母版、SSO / back 的 Dark 态也已给 hover;输入框、第三方圆钮、radiobutton 仍未提供 hover node | 桌面 hover 规范基本补齐(统一「叠白变亮」口径,见 §11.1),Text_link 缺口已由 `358:792` 关闭 | 未给 hover 的组件桌面端先按默认态或等待设计补稿,移动端不实现 hover |
+
+## 9. wave3 追加 · 2026-07-19
+
+### 9.1 本轮读取口径
+
+| 目标 | 调用 / 线索 | 结果 |
+|---|---|---|
+| 企业 SSO 桌面帧 | 第一排 `358:511` / `358:601` / `358:631`;第二排 `358:689` / `358:711` / `358:733` | 两排 `get_metadata` / `get_design_context` 参数一致;按第二排入规范,第一排作为同参数副本登记 |
+| iPad / WeChat 帧 | `358:473`, `358:833`, `358:434`, `347:3223` | 已按 nodeId 读取 metadata / design_context;WeChat icon 主绿另用 `get_screenshot(347:3247)` 像素统计补充 |
+
+### 9.2 桌面 `LOG IN_企业 SSO 登录` 三帧
+
+| 帧 / 子目标 | nodeId | 实测参数 |
+|---|---|---|
+| 两排一致性 | 第一排 `358:511` / `358:601` / `358:631`; 第二排 `358:689` / `358:711` / `358:733` | 三态逐项一致;仅 page 绝对 x/y 与 nodeId 不同。规范以下按第二排,第一排作为同参数副本 |
+| 组织输入 | `358:689` | frame 1819 x 2098;面板 `358:697` 680 x 440,fill `#FBFBFB`,r36;title `358:700` `企业 SSO 登录`,x=236 y=31 w=209 h=38,Bold 32 `#252222`; subtitle `358:701` x=41 y=75 w=599 h=23,Regular 20 `#6F6F6F`;input `358:698` x=70 y=158 w=540 h=80,fill `#EEEEEE`,stroke `#D4D4D4`,r40,placeholder `请输入企业 ID` Regular 24 `#D4D4D4`; button `358:699` x=70 y=300 w=540 h=80,disabled:白 70% over `#2A2828`,stroke `#B4B4B4`,text `继续` Bold 24 `#D4D4D4` opacity 80%;back `358:704` x=20 y=20 w=60 h=60;Text_link `358:702` x=70 y=380 w=540 h=50,text `358:703` `不知道企业 id?请联系企业管理员` Regular 20 `#2A2828`,x=270.5 top=`calc(50%-1.5px)` w=539 |
+| 已填 example | `358:711` | 同 `358:689`;input `358:720` 文案 `[email protected]`,Bold 24 `#252222`,fill `#EEEEEE`,stroke `#D4D4D4`,r40;button `358:721` normal:fill `#2A2828`,stroke `#434343`,text `继续` Bold 24 `#D4D4D4`;Text_link `358:724` / text `358:725` 同组织输入 |
+| 选择登录方式列表 | `358:733` | 面板 `358:741` 680 x 440,fill `#FBFBFB`,r36;title `358:742` `选择登录方式` x=244 y=31 w=192 h=38,Bold 32 `#252222`; subtitle `358:743` `选择企业「[email protected]」的单点登录方式` x=41 y=75 w=599 h=23,Regular 20 `#6F6F6F`; back `358:744` x=20 y=20 w=60 h=60;列表行 `358:745` x=70 y=148 w=540 h=100,fill `#EEEEEE`,stroke `#D4D4D4`,r60,left icon 24 x 24 at x=27 y=37,right icon 24 x 24 at x=487 y=37,title `以企业身份登录` x=67 top=`calc(50%-14px)` w=409 Bold 24 `#252222`,subtitle `通过 [email protected] SSO 单点登录` x=67 top=`calc(50%+19.5px)` w=409 Regular 20 `#6F6F6F` |
+
+### 9.3 `LOG IN_手机登录_默认` WeChat 绿钮帧
+
+| 项 | nodeId / 值 | 备注 |
+|---|---|---|
+| 目标帧 | `347:3223` | frame 1819 x 2098;同名旧帧 `228:928` 保留为 Apple + SSO 两钮旧事实 |
+| 三钮行容器 | `347:3244` | x=150 y=480 w=380 h=80,flex gap 70 |
+| Apple | `347:3245` | x=0 y=0 w=80 h=80,fill `#2A2828`,stroke `#434343`,r50;icon `247:1692` 48 x 48 居中 |
+| WeChat | `347:3247` | x=150 y=0 w=80 h=80,fill `#2A2828`,stroke `#434343`,r50;icon source `247:1724`,48 x 48,top=15,left/right=`calc(20%-0.6px)`;主绿 `#00C70A` 来自 `get_screenshot(347:3247)` 像素统计,context 未暴露 vector fill |
+| SSO | `347:3248` | x=300 y=0 w=80 h=80,fill `#2A2828`,stroke `#434343`,r50;image `329:248` 48 x 48 at x=15 y=15 |
+| 间距结论 | Apple→WeChat gap 70;WeChat→SSO gap 70 | 与既有 80 x 80 / r50 / gap70 组件规则一致;差异是容器从旧国区两钮 230 x 80 改为三钮 380 x 80,x 从 225 改为 150 |
+
+## wave3.5 追加 · 2026-07-19 · WORD_MARK / SLOGAN 内层可见几何修正
+
+**重要修正**:各帧的 `WORD_MARK` / `SLOGAN` 节点是**带留白的容器 frame**,wave1/wave2 记录的是容器框几何;可见图形(`CINDY_Standard_White 1` 圆角矩形 / Slogan `Vector`)在容器内另有 inset。实现必须按下表**内层绝对几何**渲染(容器框仅作定位参考),否则字标/slogan 会按容器框放大 ~40%。字标图形长宽比恒定 ≈2.93,Slogan ≈3.49,全帧一致。
+
+| 帧 | WORD_MARK 内层(绝对 x,y,w×h) | SLOGAN 内层(绝对 x,y,w×h) | 溯源 |
+|---|---|---|---|
+| 桌面 1819×2098(347:3223) | 670.88, 1037, 477.23×163 | 1194, 866, 453.22×129.12(桌面留白仅 3px) | 347:3235 / 347:3237 |
+| 手机长屏 750×1624(358:434) | 175, 814, 401×137 | 387, 686, 321×92 | 358:447 / 358:449 |
+| 手机短屏 750×1334(347:2884) | 199, 594.48, 352.93×120.54 | 462.55, 480.33, 254.01×72.8 | 347:2897 / 347:2899 |
+| iPad 竖 744×1133(358:473) | 237.60, 514.11, 269.51×92.05 | 465.42, 434.60, 247.03×70.8 | 358:486 / 358:780 |
+| iPad 横 1180×820(358:833) | 736.73, 192.57, 297.32×101.55 | 279.54, 478.53, 339.16×97.20 | 358:807 / 358:809 |
+
+资产:字标/slogan 应使用内层节点的干净裁切导出件(demo 已置 `wordmark-mark.png` 477×163、`slogan-vector.png` 454×130),**不要**用容器帧导出件拉伸填充。此前 §0.2 及各屏幕表中的 WORD_MARK/SLOGAN 尺寸均指容器框,消费时以本节内层值为准。
+
+> ⚠️ **资产透明度警告(2026-07-19 实测)**〔已作废(wave4 2026-07-20):新版字标 `368:1381` 黑红版**自带透明底**、SLOGAN `368:1394` 为 `#2A2828` 矢量——红底告警与绿通道抠图过渡方案对新资产不再适用,见 §10;本段保留作历史记录〕:`CINDY_Standard_White 1`(字标位图填充)与 Slogan `Vector` 的 Figma 官方导出(含 2x png export)均**自带 #DF0C27 红底、无透明通道**——源资产本身是白字烙在红底上的位图。叠加在立绘等非纯红区域会露出红色色块。落地 PR 时:优先请设计将源资产替换为透明底件;过渡期可按绿通道色键抠图(白字在纯红底上 `alpha=(G-12)/243`),demo 的 `wordmark-mark.png` / `slogan-vector.png` 即此产物(2x)。
+
+## 10. wave4 读取记录 · 2026-07-20(白底体系六新帧,PR0-docs 回写)
+
+> 本节为 wave4 白底体系(用户拍板 2026-07-20,延展决策权威 = `design.md` §8)的 Figma MCP 读取记录。**注**:本节及下文出现的小写 `design.md` 均指迁移前旧仓 `docs/login-redesign/design.md`(设计阶段延展决策文件,未入本仓),**不是**本目录的权威 `DESIGN.md`;保留原引用以维持 wave4 决策溯源。读取方式:`get_metadata` 按 nodeId 分块读取(与 §0.2 口径一致)。六新帧均 1819×2098:登录默认 `368:1375` + Splash 五态 `379:581`(检查更新中)/ `379:525`(CINDY 更新中·进度)/ `379:607`(更新完成等待重启)/ `379:633`(运行环境检测中)/ `379:655`(环境初始化失败·重试);downloading(组件下载 x/2)无专属帧,复用 `379:525` 面板形态(`design.md` §8.1 延展)。
+
+### 10.1 登录默认帧 `368:1375` 结构实测
+
+| 元素 | nodeId | 几何 | 说明 |
+|---|---|---|---|
+| bg 容器 | `368:1376` | 2,2,1815×2094 | 含内描边矩形 + 两层渐变 |
+| 内描边矩形 | `368:1377` | 2,2,1815×2094 | 窗框内层描边 `#FFFFFF` 2px INSIDE r16;外层描边 `#A3A8AD` 2px r18 挂帧本体(取代旧 `#7A0B19`/`#F26D7E`——旧值已作废) |
+| 红径向渐变层 | `379:518` | 4,4,1811×2090 | `#F70121` α1→α[email protected],中心帧右上角外侧(≈x128%, y7%),图层 opacity 6%;代码复现、非图片资产 |
+| 红线性渐变层 | `379:520` | 4,4,1811×2090 | `#F70121` α0→α1,向左下角变红((86.5%,85.8%)→(0%,100.7%)),图层 opacity 5%;代码复现 |
+| 立绘 | `368:1378` | 443,275,934×934 | **`CINDY_Client` 组件 instance,几何与旧帧一致——见下方立绘 child 层裁定** |
+| WORD_MARK 容器 | `368:1380` | 680×180 @570,1029 | 沿旧几何 |
+| 字标黑红版 | `368:1381` | 423×145 @容器内(128,17)(绝对≈698,1046) | 位图,黑字 CINDY+红三角 i 点+红下划线块,**自带透明底** |
+| Log_in 组 | `368:1382` | 680×560 @570,1229 | 沿旧几何 |
+| 面板 | `368:1383` | 680×440,fill `#FBFBFB` r36 | **新增 `#D4D4D4` 1px INSIDE 描边**;面板内组件几何零变化(input `368:1384` 540×80@70,158、主按钮 `368:1385` @70,300、圆钮行 `368:1388` 80×80 gap70) |
+| SLOGAN | `368:1393`/`368:1394` | 460×134 @1191,863;矢量 453.2×129.1 | fill `#2A2828` + 0.5px stroke 同色(白→近黑);几何沿旧 |
+| 帧底色 | — | `#F1F0F1`(帧 fill) | 落码改判为消费不透明 `var(--surface)` token(用户增补 2026-07-20,见 `design.md` §8.1) |
+
+### 10.2 立绘 child 层裁定(implementation-plan Step 0 资产硬约束③)
+
+`get_metadata(368:1375)` 实测:帧内立绘 child 为 `<instance id="368:1378" name="CINDY_Client">`(443,275,934×934)——是既有 `CINDY_Client` 组件的 instance,几何与旧帧 `347:1273`/`347:1482` 一致,**wave4 帧不存在立绘的独立新图层或新资产**。**裁定:走默认路径**——立绘复用旧 source(桌面 `347:971`、移动 `347:2707`),白底背景与双红渐变仅由代码绘制一次(`design.md` §8.1 已定义渐变为代码复现);禁止从 wave4 frame 自选导出层。若设计后续为立绘补独立新资产,须以 nodeId 登记进 `design.md` §8 / 本文 / asset-manifest 后方可使用。
+
+### 10.3 Splash 五帧(静态布局与样式基准,分层基准表见 implementation-plan 附录 B)
+
+五态共用登录同款白面板(统一面板化,取代旧红底 tips 呈现):spinner 64×64 @面板内(308,188) 内弧 `#6F6F6F`;进度条(仅更新下载态 `379:525`)轨 501×16 r12 `#D9D9D9` @(90,346) + 填充 `#252222` + 明细行 20px Regular `#6F6F6F`;失败态 `379:655` = 标题「环境初始化失败」+ 主按钮样式「重试」540×80 @70,300(**按钮视觉规格来源;spawn_failed 的 CTA 文案/行为语义沿现网「前往下载」,不得改为重试——implementation-plan Step 3b v6.12**);标题 32 Bold `#252222` / 副文案 20 Regular `#6F6F6F`。帧↔状态映射:`379:581` checking_update / `379:525` updating(downloading 复用) / `379:607` update_done / `379:633` checking / `379:655` failed。
+
+## 11. wave5 追加 · 2026-07-24(组件库状态扩充 + hover 统一口径)
+
+> 本节为 2026-07-24 组件库更新的 Figma MCP 读取记录与新组件规格。读取方式:`get_design_context` 按母版 nodeId 逐个读取;radiobutton 圈体颜色经导出 SVG 源码核对(fill/stroke 直读,非截图目测)。同批更新的登录页游客登录(跳过登录)样式属独立实现任务,不在本文档范围。
+
+### 11.1 hover / pressed 统一口径(全按钮族)
+
+**hover = normal 底色上叠白色半透明「变亮」**(旧「白底钮 hover 叠黑变暗」逻辑作废);**pressed = 叠黑**,alpha 按组件档位。两模式同向。逐组件实测:
+
+| 组件(状态源) | normal 底 | hover 叠层(仅桌面) | pressed 叠层(双端) |
+|---|---|---|---|
+| `log_in_button`(`247:1540`/`1542`) | `#2A2828` | 白 8% | 黑 50% |
+| `white_button`(`347:2529`/`2531`) | `#EEEEEE` | 白 10%〔原黑 5% 作废〕 | 黑 10%(边 `#E5E5E5`) |
+| `SSO 登录_企业` Light(`549:779`/`792`) | `#EEEEEE` | 白 10% + 边 `#FFFFFF`〔原白 8% + 边 `#D4D4D4` 作废〕 | 黑 8% |
+| `SSO 登录_企业` Dark(`549:865`/`882`) | `#2A2828` | 白 8% | 黑 8% |
+| `back` Light(`247:1637`/`1645`) | `#EEEEEE` | 白 70%(维持不变) | 黑 8% |
+| `back` Dark(`549:904`/`913`) | `#2A2828` | 白 8% | 黑 8% |
+| `light_button_highlight`(亮模式强调小钮,`602:847`/`852`) | `#2A2828` | 白 8% | 黑 50% |
+| `light_button_Normal`(亮模式普通小钮,`602:864`/`869`) | `#EEEEEE` | 白 10% | 黑 10%(边 `#E5E5E5`) |
+| `Dark_button_highlight`(暗模式强调小钮,`602:1301`/`1304`) | `#EEEEEE` | 白 10% | 黑 10%(边 `#E5E5E5`) |
+| `Dark_button_Normal`(暗模式普通小钮,`602:1312`/`1323`) | `#434141` | 白 8% | 黑 20% |
+
+档位归纳:**hover 深底 +白 8%、浅底 +白 10%**(back Light 的白 70% 为既有特例);**pressed 大深钮 50%、暗普通小钮 20%、浅底钮 10%、行类控件 8%**。落码对应 `--login-overlay-*` 二态 token 组(`DESIGN.md §16.5`)。
+
+### 11.2 `radiobutton` 协议勾选(新组件)
+
+组件集 `600:627`(64 x 196);单变体 24 x 24 命中区,圈体 20 x 20 @(2,2),圆 r9 + 2px 描边;选中态为**对勾**(非圆点),勾线 stroke-width 3 round,约 8.65 x 5.13 @(8.35,10)。页面用途:登录帧 `服务条款` 行(instance `600:636` 等)协议勾选。
+
+| 变体 | nodeId | 圈 fill / stroke(SVG 源码核对) | 对勾 |
+|---|---|---|---|
+| `white_normal`(亮·未选) | `600:626` | `#F1F0F1` / `#434343` | 无 |
+| `white_highlight`(亮·选中) | `600:628` | `#2A2828` / `#2A2828` | `#FFFFFF` |
+| `Dark_normal`(暗·未选) | `602:1091` | `#2A2828` / `#F1F0F1` | 无 |
+| `Dark_highlight`(暗·选中) | `602:1093` | `#F1F0F1` / `#F1F0F1` | `#2A2828` |
+
+无 hover / disabled 变体;桌面 hover 先按默认态(§8 表 7)。选中反色逻辑与登录黑白反色体系同构(亮选中=墨黑实底白勾,暗选中=浅底墨勾)。
+
+### 11.3 双色模式小按钮(新组件,4 母版)
+
+服务条款弹窗「不同意 / 同意」等 260 宽小 CTA。四母版各含 Default / Hover / Pressed / disable 四态:几何统一 260 x 80、radius 40、文字 Bold 24 居中(w=220)。命名语义:`light_*` = 亮色模式用、`Dark_*` = 暗色模式用;`highlight` = 强调钮、`Normal` = 普通钮。**亮模式强调=深底、暗模式强调=浅底**(黑白反色镜像);`Dark_button_highlight` 三个可用态值与 `light_button_Normal` 完全同值。
+
+| 母版 | Default fill / stroke / 文字 | Hover | Pressed | disable(四母版同值) |
+|---|---|---|---|---|
+| `light_button_highlight`(`602:846`) | `#2A2828` / `#434343` / `#D4D4D4` | +白 8% | +黑 50% | 白 70% over `#2A2828`;边 `#B4B4B4`;文字 `#D4D4D4` |
+| `light_button_Normal`(`602:863`) | `#EEEEEE` / `#FFFFFF` / `#2A2828` | +白 10% | +黑 10%(边 `#E5E5E5`) | 同上 |
+| `Dark_button_Normal`(`602:1311`) | `#434141` / `#565454` / `#EEEEEE` | +白 8% | +黑 20% | 同上 |
+| `Dark_button_highlight`(`602:1297`) | `#EEEEEE` / `#FFFFFF` / `#2A2828` | +白 10% | +黑 10%(边 `#E5E5E5`) | 同上 |
+
+新色值:`#434141`(暗普通钮底)、`#565454`(暗普通钮边)为本次组件库新增灰阶(已登记 §1.3),与既有 `卡片 #312F2F` / `边框 #434343` 不同值,不得混用。
+
+### 11.4 既有组件集扩容
+
+- **`white_button`**:新增 `loading` 变体成五态(`567:754`,spinner `567:756` 24 x 24 @(487,27),与 `log_in_button:load` 同构);hover 改亮(§4.4)。
+- **`SSO 登录_企业`**:权威组件集迁移为六态 `549:765`(§4.9);Light Hover 值更新、新增 Dark 三态。
+- **`back`**:扩为六态,新增 Dark 三态 `549:897`/`904`/`913`(§4.6)。
+- **迁移弹窗族**(`567:599` 等六帧)与本次小按钮共库:服务条款弹窗面板(`602:822`)按钮即 `light_button_*` instance(`602:883`/`884`)。
diff --git a/docs/design-rules/token-decision-table.md b/docs/design-rules/token-decision-table.md
new file mode 100644
index 0000000000..4b9033057d
--- /dev/null
+++ b/docs/design-rules/token-decision-table.md
@@ -0,0 +1,156 @@
+# Cindy 登录新设计 token 决策表
+
+> 范围:仅为登录 / 浏览器跳转 / 回调页设计稿(逐屏规格见设计阶段工作文件 `DESIGN-login`,不入仓库)中出现的色值与关键尺寸做 token 决策。本文不改源码。本表自 2026-07-24 起随 `docs/design-rules/` 入仓维护(原 `docs/login-redesign/` 路径已随开源清理移除)。
+>
+> **⚠ 角色定位(2026-07-24)**:本表是**实现前的决策记录 + 后续增补台账**,其「现有体系盘点」「建议新增 N 个」「示例代码」反映的是各 wave 决策时点的状态,登录 token 体系落码后**未逐段回写**——现行 token 清单、命名与双态值以 `DESIGN.md §16.1` 和 `apps/desktop/src/renderer/themes/colors.ts` 为准(例:原案名 `login-brand-bg` 落码时已改名 `login-brand-accent`;旧登录页 9 个 `login-*` alias 已随换肤退役)。查「某个值该不该新 token / 复用谁」的判定理由用本表;查「现在到底有哪些 token、值是多少」不要用本表。
+>
+> 已读取现有体系:`DESIGN.md` 第 2 节 / 第 10 节、`apps/desktop/src/renderer/themes/colors.ts`、`apps/desktop/src/renderer/themes/registry.ts`、`apps/mobile/src/theme/tokens.ts`、`apps/mobile/src/theme/index.ts`、`apps/mobile/src/theme/ThemeProvider.tsx`。
+>
+> **⚠ wave4 改判(2026-07-20,PR0-docs 回写)**:登录流程全端从品牌红全屏底改为白底体系。本表内 `#DF0C27` 及同族红底背景 token 的语义**改判为 accent 专用**(Global pill、字标红元素等品牌点缀),**禁止表达页面/画板背景**——token 命名与注释不得含 background/背景 语义(此判仍现行,落码 token 名为 `login-brand-accent`,原案名 `login-brand-bg` 已弃用)。
+>
+> 〔wave4 段历史部分作废(2026-07-24 目录整编标注)〕:本段原钉死的画布落码方案——页面底消费 `var(--surface)`、两层 `#F70121` 渐变代码复现、`--login-window-border-outer/-inner` token——已被后续实现与实机走查推翻。**现行结论**:画布底走 `--login-bg-base` 双态(亮 `#EDEDED` / 暗 `#1F1F1E`),两模式**纯平**,`--login-bg-gradient-radial/-linear` 仅保留 override 锚、值恒 `none`,window-border token 已删除。现行权威 = `DESIGN.md §16.1 / §16.5` 与 `apps/desktop/src/renderer/themes/colors.ts`;本段与本表任何段落均**不再**对冲突拥有优先级,冲突一律以 `DESIGN.md §16` 为准。
+>
+> **⚠ wave5 增补(2026-07-24,组件库更新,权威 = `figma-component-spec §11`)**:(a) **hover 统一「叠白变亮」口径**——全按钮族 hover = normal 底叠 `rgba(255,255,255,0.08/0.1)`(深底 8% / 浅底 10%;唯一例外 `back` 亮色 hover 维持既有白 70%),旧「白底钮 hover 叠黑」方向作废;pressed 叠黑分档含例外:深底强调钮 50%(`log_in_button`、`light_button_highlight`,不论尺寸)/ `Dark_button_Normal` 20% / 浅底钮 10% / 行类 8%——**落码逐组件对拍 `figma-component-spec §11.1`,不按类别名推断**;hover / pressed 叠层统一由 `--login-overlay-*` 二态 token 组承载(`DESIGN.md §16.5` 已采纳),禁止新增字面 rgba 叠层;〔落码状态〕本口径当前仅文档层生效,as-built 组件仍消费改判前旧叠层值,同步随暗色实现 PR 的 overlay token 化落地(`DESIGN.md §16.5(1)`)。(b) 新组件 **radiobutton**(协议勾选)与**双色模式小按钮**(服务条款弹窗)带来的新色值决策已补入 §3 表尾;对应 token 建议随游客登录 / 协议 UI 实现 PR 注册,不提前占位。
+
+## 1. 现有主题体系结论〔2026-07 决策时点快照,现状以 `colors.ts` 为准〕
+
+- 桌面端颜色通过 `ColorRegistry.registerColor(id, { light, dark }, description)` 注册,组件消费 CSS variable `--<id>`。`colors.ts` 分为 semantic slot、component alias、singleton 三层。
+- `DESIGN.md` 第 10 节明确:组件里不能硬编码 hex / rgba;能用 slot 就用 slot,找不到语义时新增 slot / alias / singleton;HSL token 必须以 `hsl(var(--xxx))` 消费,不能直接 `var(--xxx)`。
+- 现有登录 token 只有旧登录页 alias:`login-bg`、`login-card-bg`、`login-card-border`、`login-divider`、`login-btn-bg`、`login-btn-text`、`login-btn-hover`、`login-help-text`、`login-error-text`。它们无法完整表达新设计的品牌红背景、固定白面板、输入状态、暗色回调卡片、反相按钮。
+- 内置主题实际注册见 `registry.ts`:`default-light`、`atom-one-light`、`solarized-light`、`cindy-light`、`default-dark`、`eclipse`、`one-dark-pro`、`github-dark`、`monokai-pro`、`material-ocean-hc`、`cindy-dark`。新登录 UI 是品牌入口,建议大多数新增 login alias 在所有主题保持设计稿值,不随编辑器主题染色。
+- 移动端 `ThemeColors` 是固定 key 集合,颜色字符串以 hex / rgba 暴露;spacing 为 `4/8/12/16/24/32`,radius 为 `4/8/12/9999`,typeScale 最大 `hero=40`。新登录稿的 `36/40/50/60` 圆角、`80/100/440/680` 尺寸不在现有阶梯中,不能用通用 spacing/radius 假装适配。
+
+## 2. 新增 token 摘要〔决策时点提案,落码后的实际清单以 `DESIGN.md §16.1` + `colors.ts` 为准〕
+
+建议新增 **47 个 token / constants**:
+
+- **颜色 23 个**:`login-brand-bg`、`login-brand-bg-pressed`、`login-panel-bg`、`login-panel-border`、`login-control-bg`、`login-control-border`、`login-control-border-active`、`login-control-border-disabled`、`login-control-text`、`login-control-placeholder`、`login-title-text`、`login-secondary-text`、`login-primary-button-bg`、`login-primary-button-border`、`login-primary-button-text`、`login-inverted-button-bg`、`login-inverted-button-border`、`login-inverted-button-text`、`login-disabled-button-overlay`、`login-result-page-bg`、`login-global-badge-bg`、`login-link-text`、`login-link-hover`。
+- **尺寸 25 个**:`login-stage-width`、`login-stage-height`、`login-desktop-hero-size`、`login-wordmark-frame-width`、`login-wordmark-frame-height`、`login-slogan-width`、`login-slogan-height`、`login-panel-width`、`login-panel-height`、`login-flow-height`、`login-panel-radius`、`login-control-width`、`login-control-height`、`login-control-radius`、`login-social-size`、`login-social-gap`、`login-back-size`、`login-code-link-height`、`login-method-row-height`、`login-method-row-radius`、`login-result-card-size`、`login-result-visual-size`、`login-mobile-width`、`login-mobile-tall-height`、`login-mobile-short-height`。
+
+不建议新增通用 semantic slot。原因:这些值服务 Cindy 品牌登录入口和浏览器回调页,不应把 `#df0c27`、`#fbfbfb`、`36px` 圆角提升成全应用通用语言。颜色走 component alias;尺寸走 login component singleton constants。
+
+## 3. 色值决策表
+
+| Figma 值 | 出现场景 | 决策 | token / 类型 | 默认值建议 | 非默认主题 override 评估 |
+|---|---|---|---|---|---|
+| `#df0c27` | ~~移动背景~~〔已作废(wave4):禁止表达页面背景〕、Global pill、字标红元素等品牌 accent | 新增(语义改判为 accent 专用) | `login-brand-bg` / component alias〔wave4 改判:命名/注释禁止 background 语义,PR0a 注册时按 accent 语义定名〕 | light/dark 均 `#df0c27`;HSL `352.3 89.8% 46.1%` 仅在需要 `hsl()` 时注册 companion | 全主题保持;这是 Cindy 品牌登录,不随代码编辑器主题变化 |
+| `#a61629` | Color System 品牌深红;可作为 pressed/hover | 新增 | `login-brand-bg-pressed` / component alias | light/dark 均 `#a61629`;HSL `352.1 76.6% 36.9%` | 全主题保持;若当前稿没有 hover 节点,可先注册但只在 press/hover 需要时使用 |
+| `#fbfbfb` | 登录白面板、回调 White 卡片 | 新增 | `login-panel-bg` / component alias | light `#fbfbfb`;dark 回调语义用 `#312f2f`,不要用此 token 的 dark 值承载两套模式时可拆 mode | 非默认主题不 override;100% 还原设计稿 |
+| `#312f2f` | 回调 Dark 卡片 | 新增到同一 token dark 值或单独 mode map | `login-panel-bg` dark / component alias | dark `#312f2f`;HSL `0 2.1% 18.8%` | 只在回调 dark / dark preview 生效;非默认主题保持 |
+| `#d4d4d4` | 输入边框、placeholder、主按钮文字、回调 White 边框、Dark 标题 | 新增别名分语义,不共用一个 token | `login-control-border`、`login-control-placeholder`、`login-primary-button-text`、`login-panel-border` | 均可解析到 `#d4d4d4`,HSL `0 0% 83.1%` | 不建议复用 `text-primary` dark 或旧 `border`,避免 light 主题被换成 `#d7d7d4` |
+| `#eeeeee` | 输入背景、返回按钮背景、Dark 回调 CTA、移动 White 页面内容底 | 新增别名分语义 | `login-control-bg`、`login-inverted-button-bg`、`login-result-page-bg` light | `#eeeeee`,HSL `0 0% 93.3%` | 全主题保持;不是通用 `surface-chip`,CINDY light 主题的 chip 是 `#f4f4f4` |
+| `#2a2828` | 主按钮 / 社交按钮背景、active 边框、Dark 回调页面底、Dark CTA 文本 | 新增别名分语义 | `login-primary-button-bg`、`login-control-border-active`、`login-inverted-button-text`、`login-result-page-bg` dark、`login-link-text` | `#2a2828`,HSL `0 2.4% 16.1%` | 全主题保持;CINDY dark `surface` 同值但语义不同 |
+| `#434343` | 主按钮 / 社交按钮边框、Dark 回调卡片边框 | 新增 | `login-primary-button-border`、`login-panel-border` dark | `#434343`,HSL `0 0% 26.3%` | 全主题保持;可由 CINDY dark `border-default` 提供但 login alias 更稳 |
+| `#252222` | 标题、输入已填文本 | 新增 | `login-title-text`、`login-control-text` | `#252222`,HSL `0 4.2% 13.9%` | 全主题保持;不复用 `text-primary`,因为 default light 是 `#262626`、CINDY light 是 `#3c3f43` |
+| `#6f6f6f` | 副标题、回调正文 | 新增 | `login-secondary-text` | `#6f6f6f`,HSL `0 0% 43.5%` | 全主题保持;CINDY dark `text-secondary` 同值,light 不同 |
+| `#ffffff` | Global 文字、返回按钮边框、Dark 回调按钮边框、状态栏变量 | 语义豁免或 alias | `login-inverted-button-border`;Global text 可用 `login-inverted-button-border` 或 dedicated constant | `#ffffff`,HSL `0 0% 100%` | 白色在这些场景是设计稿固定高对比值;不走 `surface-elevated`,避免主题污染 |
+| `#d91f37` | 错误原因文字 | 复用现有名并改默认 / override | `login-error-text` / existing component alias | 建议把旧 `login-error-text` 从 `error-flat(#ef4444)` 调整为 `#d91f37`,HSL `352.3 75% 48.6%` | 全主题保持;错误色是登录设计稿专用,不应和通用 destructive 混同 |
+| `#b4b4b4` | disabled 按钮边框 | 新增 | `login-control-border-disabled` / component alias | `#b4b4b4`,HSL `0 0% 70.6%` | 全主题保持 |
+| `#4a4848` | Text_link hover(仅桌面) | 新增 | `login-link-hover` / component alias | `#4a4848`,light/dark 同值 | 全主题保持(豁免族);来源 figma §4.7 wave3 实测 `358:792`;〔lead 裁决 2026-07-20:决策表快照(2026-07-19)滞后于 wave3 追加,属表滞后修订非表外发明,与 U-9 pressed 同族同性质〕 |
+| `rgba(255,255,255,0.7)` | disabled 按钮叠层 | 新增 | `login-disabled-button-overlay` / component alias singleton | light/dark 均 `rgba(255,255,255,0.7)` | 全主题保持;不要硬写在组件里 |
+| `#c5c5c5` | Figma canvas / 工作区灰底 | 语义豁免,不进产品 UI | 无 | 无 | 不进实现 |
+| `#fefefe` / `#f1f2f3` | 浏览器 shell 顶部模拟控件 | 语义豁免或资源内色 | 无或 `login-browser-chrome-*` 后续再加 | 当前仅浏览器 mock shell,生产系统浏览器不可控 | 不需要 app token |
+| `#ededed`, `#f8f8f8`, `#dcdfe3`, `#3c3f43`, `#9a9da3`, `#bfc1c4`, `#d8d9db`, `#504f4f`, `#3b3a3a` | CINDY Light / Dark 主题基础色,不是登录帧直接结构色 | 复用现有 Cindy theme overrides | semantic slots:`surface`、`surface-elevated`、`border-default`、`text-primary`、`text-secondary`、`text-tertiary`、`text-disabled` | 已在 `cindy-light.ts` / `cindy-dark.ts` 作为主题色出现 | 非登录组件继续按主题体系消费;登录不要直接拿这些替代设计稿登录 alias |
+| `#f1f0f1` | radiobutton 浅色圈底 / 暗模式选中底(wave5,`600:626`/`602:1093`);亦为 wave4 帧底色 | 新增(随协议 UI 实现 PR 注册) | 建议 `login-radio-bg` / component alias(light `#f1f0f1`,dark 槽按 §16.1 口径核验后填) | `#f1f0f1` | 全主题保持;帧底色语义已由 `--login-bg-base` 承载,不复用本 token |
+| `#434141` | 暗色模式普通小按钮底(wave5,`602:1294`) | 新增(随协议弹窗 / 小按钮 PR 注册) | 建议 `login-dialog-secondary-bg` dark 槽 / component alias | dark `#434141`(light 槽 `#eeeeee` 对应 `light_button_Normal`) | 全主题保持 |
+| `#565454` | 暗色模式普通小按钮描边(wave5,`602:1294`) | 新增(随协议弹窗 / 小按钮 PR 注册) | 建议 `login-dialog-secondary-border` dark 槽 / component alias | dark `#565454`(light 槽 `#ffffff`) | 全主题保持 |
+| `rgba(255,255,255,0.08)` / `rgba(255,255,255,0.1)` | hover 变亮叠层:深底 8% / 浅底 10%(wave5 统一口径,含 white_button 由黑 5% 改判;例外:`back` 亮色 hover 维持既有 `rgba(255,255,255,0.7)`,沿 `247:1637`) | 新增 | `--login-overlay-hover-*` 二态 token 组(`DESIGN.md §16.5` 已采纳命名族) | 逐组件对拍 `figma-component-spec §11.1`,不按深浅归纳直取 | 全主题保持;组件内禁止字面 rgba |
+| `rgba(0,0,0,0.08/0.1/0.2/0.5)` | pressed 叠层四档:行类 8% / 浅底钮 10% / `Dark_button_Normal` 20% / 深底强调钮 50%(`log_in_button`、`light_button_highlight`,不论尺寸) | 新增 | `--login-overlay-pressed-*` 二态 token 组 | 逐组件对拍 `figma-component-spec §11.1` 档位表 | 全主题保持 |
+
+## 4. 尺寸决策表
+
+桌面 `ColorRegistry` 当前只管颜色。尺寸建议放在共享 login layout token / constants 模块中,例如:
+
+- desktop renderer:`apps/desktop/src/renderer/components/login/loginDesignTokens.ts`
+- mobile:`apps/mobile/src/theme/loginTokens.ts` 或 `apps/mobile/src/auth/loginDesignTokens.ts`
+- browser callback main:独立 HTML renderer 使用同一份可序列化常量,避免手写散落数值
+
+| Figma 值 | 出现场景 | 决策 | token / 类型 | 说明 |
+|---:|---|---|---|---|
+| `1819` | 桌面设计画布宽 | 新增 | `login-stage-width` / singleton constant | 仅设计坐标基准,不必直接等于窗口宽 |
+| `2098` | 桌面设计画布高 | 新增 | `login-stage-height` / singleton constant | 与 `login-stage-width` 成组,用于 scale / transform 计算 |
+| `934` | 桌面 Cindy 立绘尺寸 | 新增 | `login-desktop-hero-size` | `CINDY_Client` 正方形 |
+| `680` | 桌面登录组宽、WORD_MARK 宽、回调卡片尺寸 | 新增 | `login-panel-width`、`login-wordmark-frame-width`、`login-result-card-size` | 语义不同,不建议只留一个 magic number |
+| `180` | 桌面 / 移动 WORD_MARK frame 高 | 新增 | `login-wordmark-frame-height` | 字标外框高度,不等于内部实际图片高度 |
+| `460 x 134` | SLOGAN frame | 新增 | `login-slogan-width`、`login-slogan-height` | 短屏移动端会缩放该 frame,但设计基准仍需保留 |
+| `560` | 登录整体高度含第三方入口 | 新增 | `login-flow-height` | 面板 `440` + gap `40` + social `80` |
+| `440` | 登录面板高度 | 新增 | `login-panel-height` | 浏览器等待 / 准备 / 错误态也用 |
+| `36` | 面板 / 回调卡片圆角 | 新增 | `login-panel-radius` | 不复用 mobile `radius.container=12` |
+| `540` | 输入框 / 按钮宽 | 新增 | `login-control-width` | 面板左右边距 70 推导,但以节点值为准 |
+| `80` | 输入、按钮、社交圆钮高度 | 新增 | `login-control-height`、`login-social-size` | 控件和社交语义不同 |
+| `40` | 输入 / 按钮圆角、Log_in gap、Global pill radius | 新增 / 复用局部 | `login-control-radius`;gap 可使用 `login-panel-social-gap-y` 或从 flow constants 推导 | `40` 不是通用 spacing 阶梯 |
+| `50` | 社交按钮圆角、验证码链接高度 | 新增 | `login-social-radius` 可由 `login-social-size / 2` 推导;`login-code-link-height` 独立 | 社交圆钮建议用 `50%` 或 size/2,不必新 token;链接高度需 token |
+| `60` | 返回按钮尺寸、方式选择行圆角 | 新增 | `login-back-size`、`login-method-row-radius` | 语义不同 |
+| `100` | 企业 / 个人登录方式行高 | 新增 | `login-method-row-height` | 方式选择专用 |
+| `70` | 控件左右边距、社交 gap、回调 CTA x | 新增 | `login-social-gap`;左右边距可由 `(680-540)/2` 推导 | 社交 gap 是真实布局参数 |
+| `24` | spinner / 图标尺寸 | 复用现有图标尺寸或新增局部 | desktop 可用现有 icon size;mobile 可用 `iconSize` 若已有 `24` | 若现有阶梯没有 exact `24`,新增 `login-spinner-size` |
+| `280` | 回调表情图容器 | 新增 | `login-result-visual-size` | 浏览器 HTML 也要用 |
+| `750` | 移动画板宽 | 新增 | `login-mobile-width` | @2x 设计基准;实现可换算为 375pt |
+| `1624` | 移动 tall 画板高 | 新增 | `login-mobile-tall-height` | 对应约 812pt |
+| `1334` | 移动 short 画板高 | 新增 | `login-mobile-short-height` | 对应约 667pt |
+| `115.672` | 状态栏 mock 高 | 不进产品 token | 无 | 只是 Figma iOS mock;真实 RN 走 safe-area |
+
+尺寸新增清单中不包含可由其它 token稳定推导的值(例如社交半径 `80/2`、输入左右边距 `(680-540)/2`)。若实现希望所有数值全命名,可额外补 `login-panel-horizontal-padding=70`、`login-panel-title-y=31`、`login-panel-subtitle-y=75` 等布局常量,但它们更适合在组件局部用结构化对象表达。
+
+## 5. 桌面 token 落地建议
+
+### 5.1 `colors.ts`
+
+〔历史示例,勿照抄(2026-07-24 标注)〕:下方代码块是决策时点的注册示意,**已由实际落码取代**——真实注册见 `apps/desktop/src/renderer/themes/colors.ts` 的 `--login-*` 双态族(品牌红 token 落码名为 `login-brand-accent`,原案名 `login-brand-bg` 弃用)。保留仅为记录「component alias + hex 直读」的决策形态。
+
+```ts
+// 历史示意(token 名/值以 colors.ts 现行注册为准):
+registerColor('login-brand-accent', { light: '#df0c27', dark: '#df0c27' }, 'Cindy login brand red accent (wave4 改判: accent 专用,禁止表达页面背景)');
+registerColor('login-panel-bg', { light: '#fbfbfb', dark: '#312f2f' }, 'Cindy login panel / callback card bg');
+registerColor('login-control-bg', { light: '#eeeeee', dark: '#eeeeee' }, 'Cindy login input bg');
+```
+
+不要新增 HSL companion,除非 shadcn 原语必须以 HSL 三元组消费。普通 CSS / Tailwind arbitrary var 均应使用 hex token(如 `background: var(--login-brand-accent)`)。
+
+### 5.2 非默认主题
+
+| 主题类别 | 建议 |
+|---|---|
+| Default Light / Default Dark | 新 login alias 直接解析为 Figma 值;不继承黑白 Ollama login token |
+| Cindy Light / Cindy Dark | 对已有 Cindy 主题基础色无冲突;login alias 保持 Figma 帧值 |
+| Atom One Light / Solarized Light / Eclipse / One Dark Pro / GitHub Dark / Monokai Pro / Material Ocean HC | 不 override login alias。登录是品牌场景,主题只影响登录后工作区 |
+
+如后续产品要求「登录页也跟随编辑器主题」,应重新设计所有主题下的品牌页视觉,而不是让现有 semantic slots 自动染色。
+
+## 6. 移动端 token 落地建议
+
+移动端当前 `ThemeColors` 是固定 key 集合。建议不要把 22 个登录颜色全部塞入通用 `ThemeColors` 顶层,避免污染非登录页面;改为导出专用 login token:
+
+```ts
+export const loginColors = {
+ brandBg: '#df0c27', // wave4 改判: accent 专用(Global pill/字标红元素),禁止用作页面背景
+
+ panelBg: '#fbfbfb',
+ controlBg: '#eeeeee',
+ controlBorder: '#d4d4d4',
+ controlBorderActive: '#2a2828',
+ titleText: '#252222',
+ secondaryText: '#6f6f6f',
+ primaryButtonBg: '#2a2828',
+ primaryButtonBorder: '#434343',
+ primaryButtonText: '#d4d4d4',
+} as const;
+```
+
+回调页如果在 RN WebView / 系统浏览器外壳中复用,应使用 `loginResultColors.light` / `loginResultColors.dark`,不要从系统 `useColorScheme()` 自行推导灰阶。
+
+## 7. 复用 / 新增 / 豁免总表
+
+| 类型 | 数量 | 内容 |
+|---|---:|---|
+| 复用现有 token | 1 | `login-error-text` 复用名称,但建议调整到 Figma 错误红 `#d91f37`;CINDY theme 基础 slot 继续服务非登录 UI |
+| 新增颜色 token | 22 | 见 §2 |
+| 新增尺寸 constants | 25 | 见 §2 / §4 |
+| 语义豁免 | 4 类 | Figma canvas 灰 `#c5c5c5`、浏览器 chrome mock 色、真实 iOS status bar mock 尺寸、回调图像资源内部裁切百分比 |
+
+## 8. 风险与确认项
+
+- 国际区移动 `347:2857` 当前占位文案是手机号 + 国家区号,和桌面国际区邮箱登录不一致。实现前需要设计确认是节点误配还是国际区移动确实走手机号。
+- 回调页 dark/white 是浏览器页面自身主题,不一定等于 app 当前主题;实现时要保留强制 preview 能力。
+- disabled 按钮的 `rgba(255,255,255,0.7)` 需要 token 化,否则会违反「不硬编码 rgba」规则。
+- ~~如果后续新增 hover / pressed Figma 状态,应优先复用 `login-brand-bg-pressed` / `login-primary-button-bg`,不要把 hover 写成临时 hex。~~〔已关闭(wave5 2026-07-24):hover / pressed 状态已全量补齐并统一为「hover 叠白变亮 / pressed 叠黑」,叠层走 `--login-overlay-*` 二态 token 组,见 §3 表尾与 `figma-component-spec §11.1`;`login-brand-bg-pressed` 仅保留品牌红 accent 按压语义,不作 hover 兜底。〕
diff --git a/docs/dev-rules/engineering-conventions.md b/docs/dev-rules/engineering-conventions.md
index 3789d7eda8..457ad87ebe 100644
--- a/docs/dev-rules/engineering-conventions.md
+++ b/docs/dev-rules/engineering-conventions.md
@@ -7,7 +7,7 @@
本文收拢一组适用于整个客户端的通用工程约束。IPC 的安全与授权边界另见
[`electron-security-and-process-boundaries.md`](electron-security-and-process-boundaries.md),
-UI 文案的语气与措辞另见根 [`DESIGN.md`](../../DESIGN.md) 的 Voice & Content 一节,验证命令
+UI 文案的语气与措辞另见 [`DESIGN.md`](../design-rules/DESIGN.md) 的 Voice & Content 一节,验证命令
见 [`desktop-development.md`](desktop-development.md)。
> **增量适用原则**:本规则约束新增和正在修改的代码,不要求为统一形式专项重构存量。
@@ -104,8 +104,8 @@ UI 文案的语气与措辞另见根 [`DESIGN.md`](../../DESIGN.md) 的 Voice &
## 7. 渲染性能与视觉连续性
-界面切换与动画的性能约束。动效的视觉规范(允许哪些过渡、时长、容器形变)见根
-[`DESIGN.md`](../../DESIGN.md) §14.4;本节只管性能红线与加载时序。
+界面切换与动画的性能约束。动效的视觉规范(允许哪些过渡、时长、容器形变)见
+[`DESIGN.md`](../design-rules/DESIGN.md) §14.4;本节只管性能红线与加载时序。
- **杜绝跳变与空白帧**:所有界面/子界面/边栏切换,过程中不产生让人难受的视觉跳变。
- **取数时序**:Render 层先异步获取数据(绝不能卡主线程渲染),获取期间界面不发生