diff --git a/SECURITY.md b/SECURITY.md index fdef699..59948d8 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -42,5 +42,7 @@ A valid report is answered on the advisory. The fix lands as a normal commit on - Leave the bind at `127.0.0.1` unless you mean to share the port. On any other bind, set `TLS_CERT_FILE` and `TLS_KEY_FILE` so the login import and the Authorization header are not clear text. Loopback does not need TLS. - Keep `deepseek-auth.json` and `accounts/*.json` out of git. `npm run auth` writes them mode `600`. -- Set `PROXY_API_KEY` before the port is reachable past your own user. +- Set `PROXY_API_KEY` before the port is reachable past your own user. Without it, connections from outside this machine are closed before any HTTP is read. +- With a key, one outside address gets 600 requests a minute and 64 open connections, and 10 wrong keys lock it out for 15 minutes. Loopback is not limited. Behind a reverse proxy, set `TRUST_PROXY=1`, or every client counts as the proxy itself. See [HTTP API](docs/api.md) for the settings. +- These limits slow abuse. They do not hide the port: on a public bind, a firewall or VPN is what keeps scanners away. - One DeepSeek login serves one chat at a time. A second client on that same login waits. diff --git a/docs/api.md b/docs/api.md index bf7ffcf..1a9f773 100644 --- a/docs/api.md +++ b/docs/api.md @@ -250,6 +250,9 @@ The full field list (`AgentSummary`, `FileMeta`) is in [`public/dashboard/API.md | `TLS_CERT_FILE` / `TLS_KEY_FILE` | off | PEM certificate and key. Both set and readable serves HTTPS; otherwise HTTP. Not required on loopback. A non-loopback bind without them warns that the login import and Authorization header are clear text | | `PROXY_API_KEY` / `REQUIRE_PROXY_API_KEY` | off | Protects `/v1/*` and `/admin/*` | | `PROXY_ADMIN_ALLOW_REMOTE` | off | If `1`, `/admin/*` answers non-loopback clients without `PROXY_API_KEY` | +| `PROXY_RATE_LIMIT_PER_MIN` | `600` | Requests per minute from one address outside this machine, then 429. `0` turns it off. Loopback is never limited | +| `PROXY_AUTH_FAIL_LIMIT` / `PROXY_AUTH_LOCK_MS` | `10` / `900000` | That many wrong keys from one address lock it out for this long. `0` turns the lock off | +| `PROXY_MAX_CONNECTIONS_PER_IP` / `PROXY_MAX_CONNECTIONS` | `64` / `1024` | Open connections from one outside address, and in total | | `DEEPSEEK_AUTH_PATH` | `./deepseek-auth.json` | One file, or comma-separated list | | `DEEPSEEK_AUTH_DIR` | `./accounts` if present | All `*.json` in that directory | | `DEEPSEEK_MAX_CONCURRENT` | `24` | Process-wide cap. Real parallelism is **number of idle logins** | diff --git a/lib/updater.js b/lib/updater.js index b4b1bb6..f2f39b2 100644 --- a/lib/updater.js +++ b/lib/updater.js @@ -87,8 +87,10 @@ function createUpdater({ root, exec = runGit(root), env = process.env } = {}) { const tab = line.indexOf('\t'); return { commit: line.slice(0, tab), subject: line.slice(tab + 1) }; }); - // Up to date: already on this channel and nothing on it that HEAD lacks. - const upToDate = current.channel === channel && await ok('merge-base', '--is-ancestor', remote, 'HEAD'); + // Up to date: nothing on the channel that HEAD lacks. The same commit on another branch is + // not: that copy can still move onto the channel. A branch ahead of it has nothing to install. + const hasChannel = await ok('merge-base', '--is-ancestor', remote, 'HEAD'); + const upToDate = hasChannel && (current.channel === channel || remoteCommit !== headCommit); let blockedReason = null; if ((await git('status', '--porcelain', '--untracked-files=no')).trim()) blockedReason = 'local_changes'; diff --git a/package.json b/package.json index 737dab7..801f302 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "free-deepseek-api", - "version": "0.6.1", + "version": "0.7.0", "description": "DeepSeek for free — private, powerful and ready for your favorite apps and coding agents", "main": "server.js", "bin": { @@ -15,7 +15,7 @@ "deepseek:auth": "node scripts/deepseek_chrome_auth.js", "setup:agents": "node scripts/setup-agents.js", "test:syntax": "node --check server.js && node --check lib/pow.js && node --check lib/updater.js && node --check scripts/start.js && node --check scripts/auth.js && node --check scripts/lib/tui-menu.js && node --check scripts/lib/chrome-setup.js && node --check scripts/auth_import.js && node --check scripts/doctor.js && node --check scripts/deepseek_chrome_auth.js && node --check scripts/probe_deepseek_models.js && node --check scripts/setup-agents.js && node --check scripts/render-stars-chart.js && node --check scripts/live_agentic_smoke_tests.mjs && node --check public/dashboard/i18n.js && node --check public/dashboard/core.js && node --check public/dashboard/charts.js && node --check public/dashboard/markdown.js && node --check public/dashboard/status.js && node --check public/dashboard/accounts.js && node --check public/dashboard/usage.js && node --check public/dashboard/requests.js && node --check public/dashboard/settings.js && node --check public/dashboard/glyphfield.js && node --check public/dashboard/chat.js && node --check public/dashboard/agents.js && node --check public/dashboard/app.js", - "test:unit": "node --test tests/unit.test.js tests/account-failover.test.js tests/no_tools_regression.test.js tests/parser_delimiter_repair.test.js tests/parser_recovery_boundary.test.js tests/parser_fullwidth_tool_call.test.js tests/parser_bare_call.test.js tests/parser_garbled_dsml.test.js tests/glyph-field.test.js tests/chrome-setup.test.js tests/updater.test.js tests/update-api.test.js tests/agents-api.test.js tests/audit-auth.test.js tests/audit-tooling.test.js tests/audit-dashboard.test.js tests/ipv6-image-guard.test.js tests/wasm-host.test.js", + "test:unit": "node --test tests/unit.test.js tests/account-failover.test.js tests/no_tools_regression.test.js tests/parser_delimiter_repair.test.js tests/parser_recovery_boundary.test.js tests/parser_fullwidth_tool_call.test.js tests/parser_bare_call.test.js tests/remote-guard.test.js tests/parser_garbled_dsml.test.js tests/glyph-field.test.js tests/chrome-setup.test.js tests/updater.test.js tests/update-api.test.js tests/agents-api.test.js tests/audit-auth.test.js tests/audit-tooling.test.js tests/audit-dashboard.test.js tests/ipv6-image-guard.test.js tests/wasm-host.test.js", diff --git a/public/dashboard/MEDIA.md b/public/dashboard/MEDIA.md index 5bc2873..e7cf06a 100644 --- a/public/dashboard/MEDIA.md +++ b/public/dashboard/MEDIA.md @@ -7,13 +7,6 @@ not recorded; the photo page names them. | File | Source | Credit | Processing | |---|---|---|---| -| `media-manta.jpg` | Unsplash `-iwAeDwvbDw`, spotted eagle ray in a shaft of light (Status) | Rémi METIN, Unsplash License | 1920 px, JPEG q72 | -| `media-surface.jpg` | Unsplash `ZwcCisqoAv4`, the surface from below (Accounts) | Digital Reach, Unsplash License | 1920 px, JPEG q72 | -| `media-bubbles.jpg` | Unsplash `QURU8IY-RaI`, divers' bubbles rising to the light (Usage) | Unsplash License | 1920 px, JPEG q60 | -| `media-caustics.jpg` | Unsplash `3o5oUjrD90w`, light on a dark sea floor (Requests) | Jonathan Borba, Unsplash License | 1920 px, JPEG q60 | -| `media-ripples.jpg` | Unsplash `iBPj9fCIftg`, dark water with light on its ripples (Agents) | Francesco Ungaro, Unsplash License | 1920 px, JPEG q60 | -| `media-whale-sharks.jpg` | Unsplash `bZc2GI4LR2Q`, whale sharks at the surface (Add account) | Kevin Charit, Unsplash License | 1200 px, JPEG q72 | -| `media-breach.jpg` | Unsplash `foA4hrxXRxE`, a humpback breaking the surface (Updates) | Unsplash License | 1920 px, JPEG q60 | | `media-sea-glint.jpg` | Unsplash `-06smVJ7ppg`, sunlight on deep blue water (access key screen) | Tadeusz Zachwieja, Unsplash License | 1920 px, JPEG q72 | | `logo.png` | `docs/assets/logo.png` (project logo) | FreeDeepseekAPI | cropped to the whale, 128×128 PNG with alpha | diff --git a/public/dashboard/accounts.js b/public/dashboard/accounts.js index 89e6a17..59f9af9 100644 --- a/public/dashboard/accounts.js +++ b/public/dashboard/accounts.js @@ -214,7 +214,7 @@ const empty = h('div', { class: 'empty-host' }); const note = h('p', { class: 'meta table-note', text: 'Usage is since the server started. Tokens are estimates (characters ÷ 4). Pause is runtime only; Disable in file survives a restart.' }); - const hero = F.pageHero({ image: '/dashboard/media-surface.jpg', label: F.t('Account pool'), position: '50% 40%' }); + const hero = F.pageHero({ label: F.t('Account pool') }); root.append(hero, h('div', { class: 'view-pad' }, h('div', { class: 'filter-row' }, h('label', { class: 'search-field search-field-inline' }, F.icon('search'), filterInput), chips, count), banner, @@ -677,9 +677,8 @@ h('span', { class: 'add-step-n', 'aria-hidden': 'true', text: String(n) }), h('span', { class: 'add-step-body' }, h('span', { class: 'add-step-title', text: title }), h('span', { class: 'add-step-detail' }, detail))); const code = (text) => h('code', { text }); - // Where the file comes from, over whale sharks rising to the surface (MEDIA.md); the form on the right. + // Where the file comes from; the form on the right. const visual = h('aside', { class: 'add-visual' }, - h('img', { class: 'add-visual-media', src: '/dashboard/media-whale-sharks.jpg', alt: '', decoding: 'async', 'aria-hidden': 'true' }), h('div', { class: 'add-visual-inner' }, h('h2', { class: 'add-title', id: 'add-title', text: F.t('Add a DeepSeek account') }), h('ol', { class: 'add-steps', 'aria-label': 'Where the file comes from' }, diff --git a/public/dashboard/agents.js b/public/dashboard/agents.js index 2f038fb..03bf5d9 100644 --- a/public/dashboard/agents.js +++ b/public/dashboard/agents.js @@ -39,7 +39,6 @@ const SHOW_LABEL = { disk: 'on disk', after: 'after apply', diff: 'changes' }; const BACKUPS_SHOWN = 8; const PLAN_DEBOUNCE_MS = 250; - const HERO_IMAGE = '/dashboard/media-ripples.jpg'; const st = { root: null, @@ -756,7 +755,7 @@ function mount(root) { st.root = root; // Overview - const heroO = F.pageHero({ image: HERO_IMAGE, label: 'Coding agents' }); + const heroO = F.pageHero({ label: 'Coding agents' }); const ovBanner = h('div', { class: 'view-banner' }); const roster = h('ul', { class: 'agents-roster set-group', role: 'list', 'aria-label': 'Agents' }); // The j/k cursor follows Tab focus, so Enter and j/k always agree on the row. @@ -781,7 +780,7 @@ h('div', { class: 'view-pad agents' }, ovBanner, rosterSection, backupSection)); // Detail - const heroD = F.pageHero({ image: HERO_IMAGE, label: 'Agent', position: '50% 60%' }); + const heroD = F.pageHero({ label: 'Agent' }); heroD.classList.add('hero-agent'); const pathHost = h('div', { class: 'agent-path-host' }); const dBanner = h('div', { class: 'view-banner' }); diff --git a/public/dashboard/app.css b/public/dashboard/app.css index b7fd889..65a68eb 100644 --- a/public/dashboard/app.css +++ b/public/dashboard/app.css @@ -1,7 +1,6 @@ /* FreeDeepseekAPI dashboard. Graphite surfaces, hairline cards, Geist. The empty chat has the - glyph field (glyphfield.js): the project mark set in re-rolling letters and digits. Settings - pages open on deep-ocean photos (MEDIA.md) under a caps DIN headline. No scrollbars: scrolling - areas fade on the edges that have more. Dark only. CSP: no inline styles; dynamic values + glyph field (glyphfield.js): the project mark set in re-rolling letters and digits. White by + default, dark with data-theme=dark. No scrollbars: scrolling areas fade on the edges that have more. CSP: no inline styles; dynamic values arrive through the CSSOM. */ /* ------------------------------------------------------------------ fonts */ @@ -37,6 +36,8 @@ --surface: #303030; --raised: #353535; --sunken: #2a2a2a; + --well: #1f1f1f; + --field: #262626; --ink: #ececec; --on-ink: #0d0d0d; --ink-2: #b4b4b4; @@ -157,21 +158,21 @@ path, circle, rect, ellipse, line, polyline { vector-effect: non-scaling-stroke; /* ------------------------------------------------------------------ shell */ .app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); height: 100vh; height: 100dvh; } -.rail { background: #1a1a1a; display: flex; flex-direction: column; min-height: 0; padding: 8px 8px 10px; gap: 0; box-shadow: inset -1px 0 0 rgb(255 255 255 / 0.06); } +.rail { background: #1a1a1a; display: flex; flex-direction: column; min-height: 0; padding: 8px 8px 10px; gap: 0; box-shadow: inset -1px 0 0 var(--rule); } .rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 0 2px 0 8px; margin-bottom: 6px; } .wordmark { display: flex; align-items: center; gap: 10px; min-width: 0; height: 32px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; } .wordmark:hover { text-decoration: none; } .wordmark-mark { width: 24px; height: 24px; flex: none; display: block; object-fit: contain; } .wordmark-sub { color: var(--ink-3); font-weight: 500; } .rail-toggle { width: 30px; height: 30px; border-radius: 7px; background: transparent; color: var(--ink-2); } -@media (hover: hover) and (pointer: fine) { .rail-toggle:hover:not([aria-disabled=true]) { background: var(--hover-wash); color: var(--ink); } } +@media (hover: hover) and (pointer: fine) { .rail-toggle:hover:not([aria-disabled=true]) { background: transparent; color: var(--ink); } } .rail-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; } .rail .nav-item { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; font-size: 0.875rem; color: var(--ink); height: 32px; padding: 0 8px; gap: 10px; cursor: pointer; } .rail .nav-item .icon { width: 17px; height: 17px; color: var(--ink-2); } -.rail .nav-item[aria-current=page] { background: rgb(255 255 255 / 0.08); } +.rail .nav-item[aria-current=page] { background: var(--rule); } .rail .nav-item[aria-current=page] .icon { color: var(--ink); } /* Search reads as a field (it opens the palette, Cmd/Ctrl K). */ -.rail .rail-search { margin: 2px 0 6px; background: #222; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); color: var(--ink-3); } +.rail .rail-search { margin: 2px 0 6px; background: var(--field); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-3); } .rail .rail-search .icon { width: 15px; height: 15px; color: var(--ink-3); } .rail-top { padding: 0 0 6px; } .rail-new { width: 100%; justify-content: flex-start; } @@ -179,7 +180,7 @@ path, circle, rect, ellipse, line, polyline { vector-effect: non-scaling-stroke; .nav-item { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: 0.9375rem; transition: background-color 120ms ease; } .nav-item:hover { text-decoration: none; } .nav-item .icon { color: var(--ink-2); } -.nav-item[aria-current=page] { background: rgb(255 255 255 / 0.12); } +.nav-item[aria-current=page] { background: var(--rule); } .nav-item[aria-current=page] .icon { color: var(--ink); } @media (hover: hover) and (pointer: fine) { .nav-item:hover:not([aria-current=page]) { background: var(--hover-wash); } } @@ -196,7 +197,7 @@ path, circle, rect, ellipse, line, polyline { vector-effect: non-scaling-stroke; .chats-filter-field { margin: 2px 0 8px; height: 32px; } .chats-title { font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: var(--ink-3); flex: 1; } .chats .chats-close { display: none; margin-right: -6px; } -.search-field { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: var(--r-sm); background: #262626; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); color: var(--ink-3); margin: 0 0 10px; transition: box-shadow 120ms ease; } +.search-field { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: var(--r-sm); background: var(--field); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-3); margin: 0 0 10px; transition: box-shadow 120ms ease; } .search-field:focus-within { outline: none; } .search-field .input, .search-field .input:focus { height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; } .search-field .icon { width: 16px; height: 16px; } @@ -207,7 +208,7 @@ path, circle, rect, ellipse, line, polyline { vector-effect: non-scaling-stroke; .chat-items { list-style: none; margin: 0; padding: 0; } .chat-item { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: var(--r-sm); color: var(--ink); font-size: 0.875rem; text-decoration: none; transition: background-color 120ms ease; } .chat-item:hover { text-decoration: none; } -.chat-item[aria-current=page] { background: rgb(255 255 255 / 0.08); } +.chat-item[aria-current=page] { background: var(--rule); } @media (hover: hover) and (pointer: fine) { .chat-item:hover:not([aria-current=page]) { background: var(--hover-wash); } } .chat-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; } .chat-item-date { flex: none; margin-left: auto; padding-left: 8px; font-size: 0.6875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; } @@ -313,10 +314,10 @@ textarea.input { height: auto; padding: 10px 14px; resize: vertical; } .input-search { height: 36px; } .field-label { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1.25rem; margin: 18px 0 8px; } -.segmented { display: inline-flex; padding: 2px; gap: 2px; border-radius: 10px; background: #262626; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); flex: none; } +.segmented { display: inline-flex; padding: 2px; gap: 2px; border-radius: 10px; background: var(--field); box-shadow: inset 0 0 0 1px var(--rule); flex: none; } .seg { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font-size: 0.875rem; font-weight: 400; transition: background-color 120ms ease, color 120ms ease; } .seg .icon { width: 16px; height: 16px; } -.seg[aria-checked=true] { background: #3a3a3a; color: var(--ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); } +.seg[aria-checked=true] { background: #3a3a3a; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); } @media (hover: hover) and (pointer: fine) { .seg:hover:not([aria-checked=true]) { color: var(--ink); } } .switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.875rem; color: var(--ink-2); user-select: none; -webkit-user-select: none; position: relative; } @@ -403,15 +404,15 @@ textarea.input { height: auto; padding: 10px 14px; resize: vertical; } /* ------------------------------------------------------------------ readouts */ /* Readouts: one card whose cells are split by hairlines. Each cell draws the line on its left and top; the card clips the ones on its own edge, so a wrapped row still lines up. */ -.readouts { display: flex; flex-wrap: wrap; overflow: hidden; border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); } -.readout { flex: 1 1 170px; min-width: 0; display: grid; gap: 4px; padding: 14px 18px 16px; box-shadow: -1px 0 0 rgb(255 255 255 / 0.08), 0 -1px 0 rgb(255 255 255 / 0.08); } +.readouts { display: flex; flex-wrap: wrap; overflow: hidden; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); } +.readout { flex: 1 1 170px; min-width: 0; display: grid; gap: 4px; padding: 14px 18px 16px; box-shadow: -1px 0 0 var(--rule), 0 -1px 0 var(--rule); } .readout-value { font-family: var(--font-ui); font-size: 2rem; line-height: 2.25rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; } .readout-value.is-crit { color: var(--crit); } .readout-label { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 0.8125rem; line-height: 1.125rem; color: var(--ink-2); } .readout-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .readout-icon { width: 15px; height: 15px; flex: none; color: var(--ink-3); } .readout-hint { font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.readouts-note { flex-basis: 100%; margin: 0; padding: 10px 18px; box-shadow: 0 -1px 0 rgb(255 255 255 / 0.08); } +.readouts-note { flex-basis: 100%; margin: 0; padding: 10px 18px; box-shadow: 0 -1px 0 var(--rule); } /* ------------------------------------------------------------------ tables */ .table-scroll { overflow-x: auto; max-width: 100%; } @@ -529,7 +530,7 @@ a.lane-label:hover .lane-name { text-decoration: underline; text-underline-offse .skel-track { display: block; height: 1px; background: var(--rule-mid); } .lanes-host-mini { margin-top: 4px; } -.recent-errors { border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); padding: 4px 8px; } +.recent-errors { border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); padding: 4px 8px; } .recent-errors > :is(.quiet, .meta) { margin: 0; padding: 12px 10px; } .recent-errors .data-table td { white-space: nowrap; } .recent-errors .data-table td.err-cell { white-space: normal; padding-top: 10px; padding-bottom: 10px; } @@ -546,7 +547,7 @@ a.lane-label:hover .lane-name { text-decoration: underline; text-underline-offse .mark-requests { fill: #d9d9d9; } .mark-errors { fill: var(--crit); } .col-hover { fill: rgb(255 255 255 / 0.05); pointer-events: none; } -.settings-pane .chart-host { padding: 16px 16px 8px; border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); } +.settings-pane .chart-host { padding: 16px 16px 8px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); } .settings-pane .chart-host .chart-empty, .settings-pane .chart-host > .quiet { padding: 24px 4px; margin: 0; } .mark-error { stroke: var(--crit); stroke-width: 1.5; stroke-linecap: round; fill: none; } .chart-empty { padding: 32px 0; } @@ -575,13 +576,13 @@ a.lane-label:hover .lane-name { text-decoration: underline; text-underline-offse .breakdowns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .breakdown { min-width: 0; padding: 16px 16px 10px; border-radius: var(--r-lg); background: var(--surface); } -.settings-pane .breakdown { border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); } +.settings-pane .breakdown { border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); } .breakdown-title { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; } /* Where it went: total, segmented share bar, ranked list (Apple storage / Battery grammar) */ .share-total { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; } .share-total-value { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); } .share-total-unit { font-size: 0.8125rem; color: var(--ink-3); } -.share-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: rgb(255 255 255 / 0.06); margin-bottom: 10px; } +.share-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--rule); margin-bottom: 10px; } .share-seg { min-width: 4px; height: 100%; transition: opacity 150ms ease; } .share-bar.is-focusing .share-seg:not(.is-on) { opacity: 0.3; } .share-list { list-style: none; margin: 0 -8px; padding: 0; } @@ -593,7 +594,7 @@ a.share-row:hover { text-decoration: none; } .share-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .share-pct { font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; } .share-value { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 2ch; text-align: right; } -/* categorical slots: validated dark palette (dataviz reference), surface #262626, all checks pass */ +/* categorical slots: validated dark palette (dataviz reference), surface var(--field), all checks pass */ .share-1 { background: #3987e5; } .share-2 { background: #d95926; } .share-3 { background: #199e70; } @@ -693,23 +694,20 @@ dialog::backdrop { background: var(--scrim); } .dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 28px; } .dialog-foot .dialog-actions { margin-top: 0; flex: none; } -/* Add account: the three steps over whale sharks rising to the surface, the form on the right. */ +/* Add account: the three steps on the sidebar's panel, the form on the right. */ .dialog.dialog-split { width: min(940px, calc(100vw - 32px)); overflow: hidden; border-radius: 24px; } .dialog-split[open] { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } -.add-visual { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 540px; overflow: hidden; background: #000; color: #f0f0fa; } -.add-visual-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; } -.add-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; - background: linear-gradient(180deg, rgb(0 0 0 / 0) 28%, rgb(0 0 0 / 0.55) 56%, rgb(0 0 0 / 0.9) 100%); } -.add-visual-inner { width: 100%; padding: 32px 30px 30px; } -.add-title { max-width: 11ch; font-family: var(--font-display); font-size: 2rem; line-height: 1.02; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance; } -.add-steps { list-style: none; display: grid; gap: 16px; margin: 26px 0 0; padding: 0; } +.add-visual { display: flex; align-items: flex-start; min-height: 540px; background: var(--panel); color: var(--ink); } +.add-visual-inner { width: 100%; padding: 32px; } +.add-title { font-size: 1.5rem; line-height: 2rem; font-weight: 500; text-wrap: balance; } +.add-steps { list-style: none; display: grid; gap: 16px; margin: 24px 0 0; padding: 0; } .add-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; } -.add-step-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgb(240 240 250 / 0.45); font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; } +.add-step-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--panel-chip); color: var(--ink); font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; } .add-step-body { display: grid; gap: 2px; padding-top: 2px; } .add-step-title { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; } -.add-step-detail { color: rgb(240 240 250 / 0.74); font-size: 0.8125rem; line-height: 1.25rem; overflow-wrap: anywhere; } -.add-step-detail strong { color: #f0f0fa; font-weight: 600; } -.add-step-detail code { white-space: nowrap; padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / 0.14); color: #f0f0fa; font-family: var(--font-mono); font-size: 0.75rem; } +.add-step-detail { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.25rem; overflow-wrap: anywhere; } +.add-step-detail strong { color: var(--ink); font-weight: 600; } +.add-step-detail code { white-space: nowrap; padding: 1px 6px; border-radius: 6px; background: var(--panel-chip); color: var(--ink); font-family: var(--font-mono); font-size: 0.75rem; } .add-panel { position: relative; display: flex; flex-direction: column; min-width: 0; max-height: calc(100dvh - 48px); overflow: auto; padding: 30px 30px 26px; } .dialog-split > .dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; } .add-panel .dialog-form { flex: 1; display: flex; flex-direction: column; padding: 0; } @@ -755,19 +753,19 @@ dialog::backdrop { background: var(--scrim); } .dialog.dialog-split { overflow: auto; border-radius: 20px; } .dialog-split[open] { grid-template-columns: minmax(0, 1fr); } .add-visual { min-height: 0; } - .add-visual-inner { padding: 168px 22px 22px; } + .add-visual-inner { padding: 24px 20px; } .add-title { font-size: 1.625rem; max-width: none; } .add-steps { gap: 12px; margin-top: 18px; } .add-panel { position: static; max-height: none; overflow: visible; padding: 22px; } /* The dialog scrolls on phones: Close sticks to its top, the actions to its bottom. Close takes no row height (negative margin) so the photo still starts at the top edge. */ - .dialog-split > .dialog-close { position: sticky; top: 12px; grid-column: 1 / -1; justify-self: end; width: 44px; height: 44px; margin: 12px 12px -56px 0; background: rgb(0 0 0 / 0.45); color: #f0f0fa; } + .dialog-split > .dialog-close { position: sticky; top: 12px; grid-column: 1 / -1; justify-self: end; width: 44px; height: 44px; margin: 12px 12px -56px 0; } .add-panel .dialog-foot { position: sticky; bottom: -22px; z-index: 1; margin: 20px -22px -22px; padding: 14px 22px 22px; background: var(--raised); box-shadow: 0 -1px 0 var(--rule); } .source-empty { min-height: 168px; } .dialog-foot { flex-direction: column; align-items: stretch; } .dialog-foot .dialog-actions > .btn { flex: 1; } } -@media (prefers-reduced-motion: reduce) { .dialog-split[open] .add-visual-media { animation: none; } .source-empty-icon { transition: none; } } +@media (prefers-reduced-motion: reduce) { .source-empty-icon { transition: none; } } /* Centred in the window; the list keeps one height so typing never moves the box. */ .palette { width: min(640px, calc(100vw - 32px)); margin: auto; border-radius: 20px; padding: 0; overflow: hidden; } @@ -803,26 +801,25 @@ dialog::backdrop { background: var(--scrim); } /* ------------------------------------------------------------------ settings window */ .settings-layer { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 24px; } .settings-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.6); animation: fade-in 180ms ease; } -.settings-modal { position: relative; width: min(1280px, 100%); height: min(780px, 100%); display: grid; grid-template-columns: 264px minmax(0, 1fr); border-radius: 16px; overflow: hidden; background: #212121; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 32px 96px rgb(0 0 0 / 0.6); outline: none; animation: modal-in 220ms var(--ease-out); } +.settings-modal { position: relative; width: min(1280px, 100%); height: min(780px, 100%); display: grid; grid-template-columns: 264px minmax(0, 1fr); border-radius: 16px; overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule), 0 32px 96px rgb(0 0 0 / 0.6); outline: none; animation: modal-in 220ms var(--ease-out); } @keyframes modal-in { from { opacity: 0; transform: scale(0.985); } } -.settings-nav { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 12px; background: #1b1b1b; box-shadow: inset -1px 0 0 rgb(255 255 255 / 0.08); } +.settings-nav { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 12px; background: var(--well); box-shadow: inset -1px 0 0 var(--rule); } .settings-search { margin-bottom: 16px; } .settings-nav-title { font-size: 0.75rem; font-weight: 500; color: var(--ink-3); padding: 0 8px 6px; } .settings-nav .nav-item { height: 32px; padding: 0 8px; gap: 10px; font-size: 0.875rem; } -.settings-nav .nav-item .icon { width: 17px; height: 17px; } -.settings-nav .nav-item[aria-current=page] { background: rgb(255 255 255 / 0.08); } -.settings-search { height: 32px; background: #222; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); } +.settings-nav .nav-item .icon { width: 16px; height: 16px; } +.settings-nav .nav-item[aria-current=page] { background: var(--rule); } +.settings-search { height: 32px; background: var(--field); box-shadow: inset 0 0 0 1px var(--rule); } /* The menu is one card like the model picker: icon-led rows with a quiet line under the name, groups split by edge-to-edge hairlines (group names stay for screen readers), the open page checked. */ -.nav-card { flex: 1; display: grid; align-content: start; padding: 4px; border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 8px 24px rgb(0 0 0 / 0.22); } +.nav-card { flex: 1; display: grid; align-content: start; padding: 4px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); } .nav-card .settings-nav-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } -.nav-card .nav-list { gap: 1px; } -.nav-card .nav-list ~ .nav-list { margin: 4px -4px 0; padding: 4px 4px 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); } -.settings-nav .nav-pick { height: auto; min-height: 44px; padding: 5px 10px; border-radius: 8px; gap: 10px; } +.nav-card .nav-list { gap: 2px; } +.nav-card .nav-list ~ .nav-list { margin: 4px -4px 0; padding: 4px 4px 0; box-shadow: inset 0 1px 0 var(--rule); } +.settings-nav .nav-pick { height: auto; min-height: 44px; padding: 4px 8px; border-radius: 8px; gap: 8px; } .settings-nav .nav-pick .icon { width: 16px; height: 16px; flex: none; color: var(--ink-2); } -.settings-nav .nav-pick[aria-current=page] { background: transparent; } .settings-nav .nav-pick[aria-current=page] .icon { color: var(--ink); } .nav-text { display: grid; flex: 1; min-width: 0; line-height: 1.125rem; } .nav-title { font-size: 0.875rem; color: var(--ink); } @@ -831,21 +828,19 @@ dialog::backdrop { background: var(--scrim); } .settings-nav .nav-pick[aria-current=page] .nav-check { display: block; } .settings-nav .nav-item .icon { color: var(--ink-2); } .settings-nav-empty { color: var(--ink-3); font-size: 0.8125rem; padding: 0 8px; } -.settings-pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #212121; } -.settings-pane .toolbar { background: #212121; padding-right: 64px; } -.app:is([data-view=status], [data-view=accounts], [data-view=usage], [data-view=requests], [data-view=agents]) .settings-pane .toolbar { background: transparent; } -.settings-pane .toolbar-title { font-size: 1rem; font-weight: 600; } +.settings-pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--bg); } +.settings-pane .toolbar { background: var(--bg); padding-right: 64px; } +.settings-pane .toolbar-title { font-size: 1rem; font-weight: 500; } +@media (min-width: 1024px) { .app[data-view=settings] .settings-pane .toolbar { padding-left: max(40px, calc(50% - 340px)); } } .settings-close { position: absolute; top: 9px; right: 12px; z-index: 12; color: var(--ink); } -.app:is([data-view=status], [data-view=accounts], [data-view=usage], [data-view=requests], [data-view=agents]) .settings-close { color: #fff; } -.app:is([data-view=status], [data-view=accounts], [data-view=usage], [data-view=requests], [data-view=agents]) .settings-pane .toolbar-title { color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / 0.5); } .settings-pane .view-pad { max-width: none; padding: 20px 32px 64px; } .settings-pane .banner-slot { max-width: none; padding: 16px 32px 0; } .settings-pane .hero-inner { padding-left: 32px; padding-right: 32px; max-width: none; } .settings-modal .btn { border-radius: var(--r-sm); } -.settings-modal .btn-secondary { background: #2c2c2c; border-color: rgb(255 255 255 / 0.12); } -.settings-modal .select-wrap { border-radius: var(--r-sm); background: #262626; } -.settings-modal .input { border-radius: var(--r-sm); background: #262626; } -.settings-pane .table-scroll { border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); padding: 4px 8px; } +.settings-modal .btn-secondary { background: var(--field); border-color: var(--rule); } +.settings-modal .select-wrap { border-radius: var(--r-sm); background: var(--field); } +.settings-modal .input { border-radius: var(--r-sm); background: var(--field); } +.settings-pane .table-scroll { border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); padding: 4px 8px; } .settings-pane .table-scroll:has(> table[hidden]) { display: none; } .settings-pane .hero-page + .view-pad { padding-top: 8px; } body.settings-open .new-pill.new-pill { left: 50%; } @@ -854,24 +849,24 @@ body.settings-open .new-pill.new-pill { left: 50%; } /* Claude-style: one centred column, sections of grouped rows, label left / control right. */ .settings-pane .view-pad.settings { max-width: 760px; margin: 0 auto; padding: 28px 40px 72px; } .settings { display: grid; gap: 40px; } -.settings-section { display: grid; gap: 14px; min-width: 0; } -.settings-head { display: grid; gap: 4px; padding: 0 2px; } -.settings-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; line-height: 1.5rem; font-weight: 600; letter-spacing: -0.01em; } +.settings-section { display: grid; gap: 16px; min-width: 0; } +.settings-head { display: grid; gap: 4px; } +.settings-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; line-height: 1.5rem; font-weight: 500; } .settings-desc { font-size: 0.8125rem; line-height: 1.25rem; color: var(--ink-3); max-width: 62ch; text-wrap: pretty; } -.settings-foot { font-size: 0.8125rem; line-height: 1.25rem; color: var(--ink-3); padding: 0 2px; max-width: 62ch; text-wrap: pretty; } +.settings-foot { font-size: 0.8125rem; line-height: 1.25rem; color: var(--ink-3); max-width: 62ch; text-wrap: pretty; } .set-stack { display: grid; gap: 12px; min-width: 0; } -.set-group { border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); min-width: 0; } +.set-group { border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); min-width: 0; } .set-stack > .notice { margin: 0; } .set-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 56px; padding: 12px 16px; min-width: 0; } -.set-row + .set-row { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); } +.set-row + .set-row { box-shadow: inset 0 1px 0 var(--rule); } .set-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; } -.set-label { font-size: 0.9375rem; line-height: 1.375rem; color: var(--ink); } +.set-label { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink); } .set-hint { font-size: 0.8125rem; line-height: 1.125rem; color: var(--ink-3); text-wrap: pretty; } .set-state { display: flex; align-items: baseline; gap: 8px; } .set-state .lamp { position: relative; top: 1px; } .set-control { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 1 auto; min-width: 0; color: var(--ink-2); font-size: 0.875rem; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } -.set-row.has-icon { gap: 8px 14px; } -.set-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #303030; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); color: var(--ink); } +.set-row.has-icon { gap: 8px 12px; } +.set-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #303030; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); } .set-icon .icon { width: 16px; height: 16px; } .set-lamp { display: inline-flex; align-items: center; gap: 8px; } /* Models: a small table, one row per model with the whale mark, its id, capability tags and copy */ @@ -883,7 +878,7 @@ body.settings-open .new-pill.new-pill { left: 50%; } .model-logo { width: 20px; height: 20px; flex: none; object-fit: contain; opacity: 0.92; } .model-id { color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .model-tags { display: flex; gap: 6px; margin-left: auto; flex: none; } -.model-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; background: #1d1d1d; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); color: var(--ink-2); font-size: 0.75rem; white-space: nowrap; } +.model-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font-size: 0.75rem; white-space: nowrap; } .model-tag .icon { width: 12px; height: 12px; } .model-row > .btn { flex: none; width: 30px; height: 30px; padding: 0; color: var(--ink-3); } .model-row:not(:has(.model-tag)) .model-tags { display: none; } @@ -892,14 +887,14 @@ body.settings-open .new-pill.new-pill { left: 50%; } .set-form { display: flex; gap: 8px; width: 100%; } .set-form .input { flex: 1; min-width: 0; height: 36px; } .set-form .btn { flex: none; } -.set-url { display: inline-flex; align-items: center; gap: 2px; min-width: 0; padding: 2px 2px 2px 10px; border-radius: var(--r-sm); background: #1d1d1d; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); } +.set-url { display: inline-flex; align-items: center; gap: 2px; min-width: 0; padding: 2px 2px 2px 10px; border-radius: var(--r-sm); background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); } .set-url code { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .set-url .btn { height: 28px; width: 28px; padding: 0; } -.set-code { margin: 0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07); } -.set-code .code-head { height: 44px; padding: 0 8px 0 6px; background: #252526; box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.06); } +.set-code { margin: 0; box-shadow: inset 0 0 0 1px var(--rule); } +.set-code .code-head { height: 44px; padding: 0 8px 0 6px; background: var(--field); box-shadow: inset 0 -1px 0 var(--rule); } .set-code .code-actions { align-items: center; gap: 8px; } -.set-code { background: #1e1e1e; } -.set-code .code-pre { padding: 14px 18px 16px 0; } +.set-code { background: var(--well); } +.set-code .code-pre { padding: 16px 16px 16px 0; } /* VS Code Dark+ token colours, with a line-number gutter that selection and copy skip */ .code-vs { color: #d4d4d4; counter-reset: ln; } .code-vs .vs-line { display: block; counter-increment: ln; } @@ -1045,10 +1040,10 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .update-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .update-changes .mono-id { flex: none; color: var(--ink-3); font-size: 0.75rem; } .update-more { padding: 0 16px 12px 48px; } -.update-byhand { display: grid; gap: 10px; padding: 14px 16px 16px; } +.update-byhand { display: grid; gap: 12px; padding: 16px; } .update-byhand-text { color: var(--ink-2); font-size: 0.875rem; } .update-manual { position: relative; } -.update-steps { display: grid; gap: 2px; margin: 0; padding: 12px 48px 12px 14px; border-radius: var(--r-md); background: #1c1c1c; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.375rem; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; } +.update-steps { display: grid; gap: 2px; margin: 0; padding: 12px 48px 12px 16px; border-radius: var(--r-md); background: var(--well); font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.375rem; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; } .update-steps .is-note { color: var(--ink-3); } .update-manual > .btn { position: absolute; top: 6px; right: 6px; } /* Access key: the Authorization header this tab sends is the whole picture. */ @@ -1058,13 +1053,13 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .auth-scheme { color: var(--ink-2); } .auth-dots { color: var(--ink-3); letter-spacing: 0.06em; } .auth-tail { color: var(--ink); font-weight: 600; } -.auth-none { color: var(--ink-3); font-style: italic; } +.auth-none { color: var(--ink-3); } .auth-line .auth-value { display: inline-block; white-space: nowrap; transition: opacity 180ms var(--ease-out); } .auth-line.is-preview .auth-value { opacity: 0.55; } -.auth-body { padding: 14px 18px 16px; border-top: 1px solid rgb(255 255 255 / 0.06); } +.auth-body { padding: 14px 18px 16px; border-top: 1px solid var(--rule); } .auth-form { display: flex; align-items: center; gap: 8px; } .auth-field { position: relative; flex: 1; min-width: 0; } -.auth-input { font-family: var(--font-mono); font-size: 0.875rem; padding-right: 44px; background: #1e1e1e; } +.auth-input { font-family: var(--font-mono); font-size: 0.875rem; padding-right: 44px; background: var(--well); } .auth-input::placeholder { font-family: var(--font-ui); } /* Centred by offset, not transform: the shared press scale would replace a translate and make it jump. */ .auth-field .auth-reveal { position: absolute; top: 0; bottom: 0; right: 4px; margin: auto 0; width: 32px; height: 32px; min-width: 0; min-height: 0; color: var(--ink-3); } @@ -1079,22 +1074,22 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl } @media (prefers-reduced-motion: reduce) { .auth-line .auth-value { transition: none; } } /* The installed build as a launch board: liftoff photo, the version in the display face. */ -.update-panel { border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); overflow: hidden; min-width: 0; } +.update-panel { border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; min-width: 0; } .update-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: 148px; padding: 20px; background: #000; color: #f0f0fa; } .update-hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; } .update-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / 0.82) 0%, rgb(0 0 0 / 0.5) 55%, rgb(0 0 0 / 0.2) 100%), linear-gradient(0deg, rgb(0 0 0 / 0.45), transparent 60%); } .update-hero-body { display: grid; gap: 6px; min-width: 0; } .update-version { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; } -.update-where { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: rgb(240 240 250 / 0.72); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; } -.update-where .mono-id { text-transform: none; letter-spacing: 0; color: rgb(240 240 250 / 0.6); padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / 0.1); } +.update-where { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: rgb(240 240 250 / 0.72); font-size: 0.8125rem; } +.update-where .mono-id { color: rgb(240 240 250 / 0.6); padding: 1px 6px; border-radius: 6px; background: var(--rule); } .update-hero-action { flex: none; } -.update-note { padding: 14px 16px; color: var(--ink-2); font-size: 0.875rem; } +.update-note { padding: 16px; color: var(--ink-2); font-size: 0.875rem; } /* Update channels and agent modes read like the model picker: one row per choice, a quiet line under the name, a white check on the chosen one. */ .channel-tiles { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 4px; } -.update-panel .channel-tiles { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); } -.mode-tiles { border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); } +.update-panel .channel-tiles { box-shadow: inset 0 1px 0 var(--rule); } +.mode-tiles { border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); } .channel-tile { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background-color 120ms ease; } @media (hover: hover) and (pointer: fine) { .channel-tile:not(.is-on):hover { background: var(--hover-wash); } } .channel-tile:focus-visible { outline: none; background: var(--active-wash); } @@ -1102,9 +1097,9 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .channel-tile.is-on .channel-check { display: block; } .channel-text { display: grid; gap: 2px; min-width: 0; } .channel-title { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; line-height: 1.25rem; } -.channel-current { padding: 1px 7px; border-radius: 999px; background: rgb(255 255 255 / 0.1); color: var(--ink-2); font-size: 0.6875rem; font-weight: 500; } +.channel-current { padding: 1px 7px; border-radius: 999px; background: var(--rule); color: var(--ink-2); font-size: 0.6875rem; font-weight: 500; } .channel-desc { color: var(--ink-3); font-size: 0.75rem; line-height: 1.125rem; } -.update-result { border-top: 1px solid rgb(255 255 255 / 0.07); } +.update-result { border-top: 1px solid var(--rule); } .update-result .set-row { min-height: 52px; } @media (max-width: 560px) { .update-hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 16px; } @@ -1131,7 +1126,7 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .view-chat.is-leaving .chat-empty { opacity: 0; } /* One bar: attach on the left, the message in the middle, send on the right. Buttons stay on the last line while the message grows; attachments sit above it inside the bar. */ -.composer.composer { width: min(768px, 100%); border-radius: 12px; padding: 5px 6px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumbs thumbs thumbs" "left input right"; align-items: end; column-gap: 4px; row-gap: 4px; background: #262626; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13), 0 8px 24px rgb(0 0 0 / 0.22); -webkit-backdrop-filter: none; backdrop-filter: none; transition: box-shadow 150ms ease; } +.composer.composer { width: min(768px, 100%); border-radius: 12px; padding: 5px 6px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumbs thumbs thumbs" "left input right"; align-items: end; column-gap: 4px; row-gap: 4px; background: var(--field); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13), 0 8px 24px rgb(0 0 0 / 0.22); -webkit-backdrop-filter: none; backdrop-filter: none; transition: box-shadow 150ms ease; } .composer.composer:focus-within { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.24), 0 8px 24px rgb(0 0 0 / 0.26); } .composer.composer.is-over { box-shadow: inset 0 0 0 1px var(--signal), 0 0 0 1px var(--signal); } .composer-input { grid-area: input; width: 100%; border: 0; background: transparent; resize: none; outline: none; font-size: 0.9375rem; line-height: 1.25rem; padding: 7px 4px; max-height: 40vh; min-height: 34px; } @@ -1165,9 +1160,9 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl /* Model and account menus: the composer's card (dark, hairline, 12px), tight rows led by an icon, a white check, hairlines running edge to edge between groups. */ .model-menu, .account-menu { gap: 1px; } -.popover:has(.model-menu), .popover:has(.account-menu) { border-radius: 12px; padding: 4px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 12px 32px rgb(0 0 0 / 0.45); } -:is(.model-menu, .account-menu) .menu-sep { margin: 4px -4px; background: rgb(255 255 255 / 0.08); } -.model-item { height: auto; min-height: 44px; padding: 5px 10px; border-radius: 8px; gap: 10px; } +.popover:has(.model-menu), .popover:has(.account-menu) { border-radius: 12px; padding: 4px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule), 0 12px 32px rgb(0 0 0 / 0.45); } +:is(.model-menu, .account-menu) .menu-sep { margin: 4px -4px; background: var(--rule); } +.model-item { height: auto; min-height: 44px; padding: 4px 8px; border-radius: 8px; gap: 8px; } .model-menu .model-icon { width: 16px; height: 16px; flex: none; color: var(--ink-2); } .model-item[aria-checked=true] .model-icon { color: var(--ink); } .model-text { display: grid; flex: 1; min-width: 0; line-height: 1.125rem; } @@ -1190,7 +1185,7 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl /* Above the composer: one compact line, red-tinted when sending is held back. */ .composer-note { width: min(768px, 100%); margin: 0 0 8px; text-align: left; } .composer-note:empty { display: none; } -.composer-note-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgb(39 39 39 / 0.96); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); color: var(--ink-2); font-size: 0.8125rem; line-height: 1.125rem; font-variant-numeric: tabular-nums; } +.composer-note-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgb(39 39 39 / 0.96); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font-size: 0.8125rem; line-height: 1.125rem; font-variant-numeric: tabular-nums; } .composer-note-pill .icon { flex: none; width: 14px; height: 14px; } .composer-note.is-crit .composer-note-pill { background: color-mix(in srgb, var(--crit) 14%, #232323); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crit) 30%, transparent); color: #ffb4ad; } .composer-note.is-crit .composer-note-pill .icon { color: var(--crit); } @@ -1199,7 +1194,7 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl /* ------------------------------------------------------------------ agents */ /* One figure carries the page: the signal path (agent → file → proxy → model), solid where a link holds, amber where it leads somewhere wrong, dashed where nothing is written yet. - Everything around it is the Settings grammar: grouped #262626 rows, sentence-case heads. */ + Everything around it is the Settings grammar: grouped var(--field) rows, sentence-case heads. */ .agents { container: agents / inline-size; display: grid; gap: 32px; } .agents > * { min-width: 0; } .agents > .view-banner .notice:last-child { margin-bottom: 0; } @@ -1207,26 +1202,26 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .agents .notice { grid-template-columns: auto minmax(0, 1fr) auto; } .agents .notice-title { overflow-wrap: anywhere; } /* Once the photo has scrolled away, the toolbar gets its ground back so content never runs under it. */ -.app[data-view=agents].agents-scrolled .settings-pane .toolbar { background: #212121; box-shadow: inset 0 -1px 0 var(--rule); } +.app[data-view=agents].agents-scrolled .settings-pane .toolbar { background: var(--bg); box-shadow: inset 0 -1px 0 var(--rule); } .app[data-view=agents].agents-scrolled .settings-pane .toolbar-title { text-shadow: none; } .agents-section { display: grid; gap: 14px; min-width: 0; } /* Each agent's tile in its brand's own avatar colours (agents.js); a hairline keeps the black tiles from sinking into the dark card. */ -.agent-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--agent-bg, #2a2a2a); color: var(--agent-fg, #fff); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; user-select: none; -webkit-user-select: none; } +.agent-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--agent-bg, #2a2a2a); color: var(--agent-fg, #fff); box-shadow: inset 0 0 0 1px var(--rule); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; user-select: none; -webkit-user-select: none; } .agent-logo { width: calc(var(--agent-scale, 0.6) * 100%); height: calc(var(--agent-scale, 0.6) * 100%); display: block; fill: currentColor; } /* roster */ .agents-roster { list-style: none; margin: 0; padding: 0; overflow: hidden; } .agent-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 16px; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; color: var(--ink); text-decoration: none; touch-action: manipulation; transition: background-color 120ms ease; } .agent-row:hover { text-decoration: none; } -.agents-roster li + li .agent-row { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06); } +.agents-roster li + li .agent-row { box-shadow: inset 0 1px 0 var(--rule); } @media (hover: hover) and (pointer: fine) { a.agent-row:hover { background: rgb(255 255 255 / 0.04); } } .agent-row:focus-visible { outline-offset: -2px; border-radius: var(--r-md); } .agent-row.is-cursor { background: var(--hover-wash); } .agent-id { display: grid; min-width: 0; } .agent-name { font-size: 0.9375rem; line-height: 1.375rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .agent-sub { display: block; color: var(--ink-3); font-size: 0.8125rem; line-height: 1.125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.agent-state { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; background: #1d1d1d; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); white-space: nowrap; justify-self: end; } +.agent-state { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); white-space: nowrap; justify-self: end; } .agent-state .lamp { color: currentColor; } .agent-state.is-ok { background: var(--ok-wash); color: var(--ok); box-shadow: none; } .agent-state.is-signal { background: var(--signal-wash); color: var(--signal); box-shadow: none; } @@ -1267,7 +1262,7 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .hero-agent .hero-inner { padding-bottom: 56px; } .agents-detail-pad { gap: 20px; } .agent-path-host { position: relative; z-index: 1; margin-top: -36px; min-width: 0; } -.sigpath-lg { grid-template-columns: minmax(0, max-content) minmax(24px, 1fr) minmax(0, max-content) minmax(24px, 1fr) minmax(0, max-content) minmax(24px, 1fr) minmax(0, max-content); padding: 16px 18px; border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 12px 32px rgb(0 0 0 / 0.35); } +.sigpath-lg { grid-template-columns: minmax(0, max-content) minmax(24px, 1fr) minmax(0, max-content) minmax(24px, 1fr) minmax(0, max-content) minmax(24px, 1fr) minmax(0, max-content); padding: 16px 18px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule), 0 12px 32px rgb(0 0 0 / 0.35); } .sigpath-lg .sig-label { font-size: 0.875rem; line-height: 1.25rem; } .sigpath-lg .sig-label.is-mono { font-size: 0.8125rem; } .sig-btn { display: grid; min-width: 0; max-width: 100%; margin: -6px 0; padding: 6px 8px; border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; text-align: left; touch-action: manipulation; transition: background-color 120ms ease; } @@ -1306,13 +1301,13 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .effects-list { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.25rem; display: grid; gap: 4px; } .agent-usage { display: grid; gap: 6px; } .notice-stack { display: grid; gap: 10px; min-width: 0; } -.notice .code-line { background: #262626; } +.notice .code-line { background: var(--field); } /* Apply stays reachable: it sticks to the window's bottom edge while the options scroll. */ /* The bar's host is display: contents so the sticky bar moves within the whole form. */ .apply-host { display: contents; } /* Focus moved by Tab or scrollIntoView stops above the pinned bar instead of under it. */ #scroll:has(.agents-page:not([hidden]) .apply-bar:not([hidden])) { scroll-padding-bottom: 160px; } -.apply-bar { position: sticky; bottom: 12px; z-index: 2; display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 8px 24px rgb(0 0 0 / 0.35); } +.apply-bar { position: sticky; bottom: 12px; z-index: 2; display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule), 0 8px 24px rgb(0 0 0 / 0.35); } .apply-summary { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.25rem; text-wrap: pretty; } .apply-summary:empty { display: none; } .apply-note { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-size: 0.8125rem; line-height: 1.25rem; } @@ -1320,12 +1315,12 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .apply-actions { display: flex; justify-content: flex-end; gap: 8px; } .manual-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: var(--ink-2); line-height: 1.375rem; } .manual-steps li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; } -.manual-steps .code-line { margin-top: 6px; background: #262626; } -.manual-steps code.mono-id { color: var(--ink); padding: 1px 6px; border-radius: 6px; background: #262626; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); white-space: nowrap; } +.manual-steps .code-line { margin-top: 6px; background: var(--field); } +.manual-steps code.mono-id { color: var(--ink); padding: 1px 6px; border-radius: 6px; background: var(--field); box-shadow: inset 0 0 0 1px var(--rule); white-space: nowrap; } /* file viewer: VS Code Dark+ ground, one tab per file the agent reads */ -.filebox { display: grid; min-width: 0; border-radius: 12px; background: #1f1f1f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); overflow: hidden; } -.filebox-tabs { display: flex; gap: 2px; padding: 6px; background: #1a1a1a; box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.08); overflow-x: auto; overscroll-behavior-x: contain; } +.filebox { display: grid; min-width: 0; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; } +.filebox-tabs { display: flex; gap: 2px; padding: 6px; background: #1a1a1a; box-shadow: inset 0 -1px 0 var(--rule); overflow-x: auto; overscroll-behavior-x: contain; } .file-tab { flex: none; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; text-align: left; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); white-space: nowrap; touch-action: manipulation; transition: background-color 120ms ease, color 120ms ease; } .file-tab[aria-selected=true] { background: #333; color: var(--ink); } @media (hover: hover) and (pointer: fine) { .file-tab:hover:not([aria-selected=true]) { background: var(--hover-wash); color: var(--ink); } } @@ -1337,7 +1332,7 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .file-delta .del { color: var(--crit); } .file-delta .new { color: var(--signal); } .file-panel { display: grid; min-width: 0; } -.file-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 48px; padding: 8px 10px 8px 16px; box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.06); } +.file-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 48px; padding: 8px 10px 8px 16px; box-shadow: inset 0 -1px 0 var(--rule); } .file-bar:empty { display: none; } .file-path { color: var(--ink); min-width: 0; overflow-wrap: anywhere; flex: 1 1 220px; } .file-link { color: var(--ink-3); } @@ -1360,9 +1355,9 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .file-empty-title { font-size: 0.9375rem; line-height: 1.375rem; font-weight: 600; overflow-wrap: anywhere; } .file-empty .meta { max-width: 46ch; text-wrap: pretty; } .file-empty .btn { margin-top: 8px; } -.file-foot { display: flex; align-items: center; gap: 6px; padding: 10px 16px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06); } +.file-foot { display: flex; align-items: center; gap: 6px; padding: 10px 16px; box-shadow: inset 0 1px 0 var(--rule); } .file-foot .icon { width: 14px; height: 14px; } -.secret-chip { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 5px; background: rgb(255 255 255 / 0.08); color: var(--ink-2); font-family: var(--font-ui); font-size: 0.6875rem; line-height: 1; vertical-align: 1px; white-space: nowrap; text-indent: 0; } +.secret-chip { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--rule); color: var(--ink-2); font-family: var(--font-ui); font-size: 0.6875rem; line-height: 1; vertical-align: 1px; white-space: nowrap; text-indent: 0; } .secret-chip .icon { width: 11px; height: 11px; } .code-diff { counter-reset: none; } .code-diff .df-line { display: grid; grid-template-columns: 3.25em 3.25em 1.25em auto; min-width: 100%; width: max-content; } @@ -1461,14 +1456,14 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl .filter-row .count { margin-left: 0; } .settings-layer { padding: 0; } .settings-modal { width: 100%; height: 100%; border-radius: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); } - .settings-nav { flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; padding: 8px 56px 8px 8px; box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.08); } + .settings-nav { flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; padding: 8px 56px 8px 8px; box-shadow: inset 0 -1px 0 var(--rule); } .settings-nav .nav-list { display: flex; gap: 4px; } .settings-nav .nav-item { white-space: nowrap; } .nav-card { display: flex; gap: 4px; padding: 0; background: none; box-shadow: none; } .nav-card .nav-list ~ .nav-list { margin: 0; padding: 0; box-shadow: none; } .settings-nav .nav-pick { min-height: 32px; padding: 0 10px; } .settings-nav .nav-pick .nav-desc, .settings-nav .nav-pick .nav-check { display: none !important; } - .settings-nav .nav-pick[aria-current=page] { background: rgb(255 255 255 / 0.08); } + .settings-nav .nav-pick[aria-current=page] { background: var(--rule); } .settings-search, .settings-nav-title, .settings-nav-empty { display: none !important; } .settings-close { top: 8px; right: 8px; } .settings-pane .view-pad { padding: 16px 16px 40px; } @@ -1608,3 +1603,133 @@ a.receipt-item:hover .receipt-value { color: var(--ink); text-decoration: underl body { overflow: visible; } .scroll { position: static; mask-image: none; padding-top: 0; } } + +/* ------------------------------------------------------------------ settings headers without photos */ +.settings-modal .hero { min-height: 0; background: none; display: block; } +.settings-modal .hero::before, .update-hero::before { display: none; } +.settings-pane .hero-inner { padding-top: var(--toolbar-h); padding-bottom: 8px; } +/* No big opening line. A problem and an agent's name still show, as plain text. */ +.settings-modal .status-sentence:not(.is-crit) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } +.settings-modal .hero-agent .status-sentence, .settings-modal .status-sentence.is-crit { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; font-family: var(--font-ui); font-size: 1rem; line-height: 1.5rem; font-weight: 500; letter-spacing: 0; text-transform: none; } +.settings-modal .hero-sub { text-shadow: none; color: var(--ink-2); } +.update-hero { min-height: 0; background: var(--well); color: var(--ink); } +.update-where { color: var(--ink-3); } +.update-where .mono-id { color: var(--ink-2); } + +/* ------------------------------------------------------------------ white theme */ +/* The dark tokens at the top are the dark theme. This is the default look. */ +:root:not([data-theme=dark]) { + color-scheme: light; + --bg: #fff; --rail: #f1f2f4; --surface: #fff; --raised: #fff; --sunken: #f1f2f4; --well: #f5f6f8; --field: #eceef1; + --ink: #15171a; --on-ink: #fff; --ink-2: #565b63; --ink-3: #6e737b; + --rule: rgb(21 23 26 / 0.08); --rule-mid: rgb(21 23 26 / 0.12); --rule-strong: rgb(21 23 26 / 0.2); + --hover-wash: rgb(21 23 26 / 0.05); --active-wash: rgb(21 23 26 / 0.09); + --signal: #1f6fd6; --signal-wash: rgb(31 111 214 / 0.1); --ok: #16895a; --warn: #a86a00; --crit: #cf3b3b; + --data-1: #15171a; --data-2: #1f6fd6; --scrim: rgb(21 23 26 / 0.4); + --shadow-pop: 0 4px 12px rgb(21 23 26 / 0.08), 0 16px 40px rgb(21 23 26 / 0.12); + --shadow-sheet: 0 24px 64px rgb(21 23 26 / 0.18); + caret-color: var(--ink); +} +:root:not([data-theme=dark]) body { background: var(--bg); color: var(--ink); } +:root:not([data-theme=dark]) .btn-primary { background: #15171a; color: #fff; } +:root:not([data-theme=dark]) .status-sentence, :root:not([data-theme=dark]) .update-hero { color: var(--ink); } +:root:not([data-theme=dark])[data-material=glass] .glass:not(.glass-thin) { background: rgb(255 255 255 / 0.82); } +:root:not([data-theme=dark]) .chat-empty-title { color: var(--ink); text-shadow: none; } +:root:not([data-theme=dark]) .chat-empty-line a { color: var(--ink); } +:root:not([data-theme=dark]) .chat-empty-line.is-warn { color: var(--warn); } +:root:not([data-theme=dark]) .chat-empty-line.is-crit { color: var(--crit); } +:root:not([data-theme=dark]) .seg[aria-checked=true], :root:not([data-theme=dark]) .segmented-sm .seg[aria-checked=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(21 23 26 / 0.14); } +:root:not([data-theme=dark]) .key-ink, :root:not([data-theme=dark]) .tip-key-ink { background: #15171a; } +:root:not([data-theme=dark]) .set-icon { background: #fff; box-shadow: inset 0 0 0 1px var(--rule); } +:root:not([data-theme=dark]) .new-pill.new-pill { background: #15171a; color: #fff; } +:root:not([data-theme=dark]) ::selection { color: inherit; } +@media (hover: hover) and (pointer: fine) { :root:not([data-theme=dark]) .btn-primary:not(.rail-new):hover:not([aria-disabled=true]) { background: #2b2e33; } } +/* Code keeps its dark block: the syntax colors are drawn for it. So does the photo on the access screen. */ +:root:not([data-theme=dark]) .codeblock, :root:not([data-theme=dark]) .set-code, .gate { + color-scheme: dark; --ink: #ececec; --ink-2: #b4b4b4; --ink-3: #8f8f8f; --on-ink: #0d0d0d; --rule: rgb(255 255 255 / 0.08); --rule-mid: rgb(255 255 255 / 0.12); --rule-strong: rgb(255 255 255 / 0.2); + --hover-wash: rgb(255 255 255 / 0.06); --active-wash: rgb(255 255 255 / 0.1); --field: #262626; --well: #1f1f1f; --surface: #303030; --raised: #353535; + color: var(--ink); +} +:root:not([data-theme=dark]) .codeblock, :root:not([data-theme=dark]) .set-code { background: #1e1e1e; } +:root:not([data-theme=dark]) .codeblock .seg[aria-checked=true], :root:not([data-theme=dark]) .set-code .seg[aria-checked=true] { background: #3a3a3a; color: #ececec; box-shadow: none; } +:root:not([data-theme=dark]) .chat-empty-mark { filter: invert(1); } + +/* ------------------------------------------------------------------ main sidebar and its menus */ +:root { --panel: #1d1e20; --panel-active: #2b2d31; --panel-chip: #26282b; --panel-field: #26282b; --panel-edge: rgb(255 255 255 / 0.04); } +:root:not([data-theme=dark]) { --panel: #f5f6f8; --panel-active: #e8eaed; --panel-chip: #fff; --panel-field: #ebedf0; --panel-edge: rgb(21 23 26 / 0.03); } +.app { --rail-w: 288px; --rail-open-w: 272px; } +.rail { margin: 8px 0 8px 8px; padding: 12px; border-radius: 20px; color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-edge); } +:root:not([data-theme=dark]) .wordmark-mark { filter: invert(1); } +.rail-head { height: 40px; padding: 0; margin-bottom: 12px; } +.wordmark-mark { width: 28px; height: 28px; } +.rail .rail-toggle, .rail .rail-toggle:hover:not([aria-disabled=true]), .rail .rail-toggle:focus, .rail .rail-toggle[aria-expanded=true] { background: transparent; } +.rail .rail-search { height: 40px; margin: 0 0 8px; padding: 0 12px; border-radius: 10px; background: var(--panel-field); box-shadow: none; color: var(--ink-2); } +.rail .rail-search .icon { width: 18px; height: 18px; color: var(--ink-2); } +.chats-title { margin: 0; padding: 0 4px; font-size: 0.8125rem; line-height: 1.25rem; font-weight: 600; color: var(--ink-2); } +.rail .nav-item { height: 36px; padding: 0 12px; gap: 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; } +.rail .nav-item .icon { width: 18px; height: 18px; } +.rail .nav-item[aria-current=page] { background: var(--panel-active); color: var(--ink); } +.rail .account-switch, .rail .account-switch:hover, .rail .account-switch[aria-expanded=true] { min-height: 44px; padding: 4px; border-radius: 10px; background: transparent; box-shadow: none; } +.rail .avatar.is-add { background: transparent; box-shadow: none; } +.rail .avatar { width: 24px; height: 24px; font-size: 0.6875rem; } +.chats { margin-top: 16px; } +.chat-item { height: 36px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; } +.chat-item[aria-current=page] { background: var(--panel-active); color: var(--ink); } +.rail-foot .nav-item.nav-item { width: 44px; height: 44px; padding: 0; justify-content: center; } + +.popover:has(.model-menu), .popover:has(.account-menu) { padding: 8px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-edge), var(--shadow-pop); } +.model-menu .menu-item, .account-menu .menu-item { border-radius: 10px; color: var(--ink-2); font-weight: 500; } +.model-menu .menu-item .icon, .account-menu .menu-item .icon { width: 18px; height: 18px; color: var(--ink-2); } +.model-menu .menu-item[aria-checked=true], .account-menu .menu-item[aria-checked=true] { color: var(--ink); } +.model-menu .menu-item[aria-checked=true] .icon, .account-menu .menu-item[aria-checked=true] .icon { color: var(--ink); } +.model-title, .model-row-label { color: var(--ink); font-weight: 500; } +.model-desc { font-weight: 400; } +.model-menu .menu-sep, .account-menu .menu-sep { background: var(--rule); margin: 4px 0; } + +/* The page title sits on the line of the sidebar's toggle. */ +@media (min-width: 720px) { .app.rail-collapsed .rail { margin: 0; } .main { --toolbar-h: 80px; } } +@media (max-width: 1099px) { + .app { --rail-w: 72px; --rail-open-w: 56px; } + .rail { padding: 8px; } + .rail .nav-item { padding: 0; } + .rail-head { margin-bottom: 4px; } + .rail .rail-search { width: 40px; padding: 0; margin-bottom: 4px; background: transparent; } + .rail .account-switch { padding: 6px; background: transparent; box-shadow: none; } +} +@media (max-width: 719px) { .rail { margin: 0; border-radius: 0; } } + +/* ------------------------------------------------------------------ settings pages share one centered column */ +@media (min-width: 1024px) { + .settings-pane .view-pad, .settings-pane .hero-inner, .settings-pane .banner-slot { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; } + .settings-pane .toolbar { padding-left: max(40px, calc(50% - 340px)); } + .app.has-inspector .settings-pane .view-pad { max-width: none; } +} + +/* ------------------------------------------------------------------ chat error card */ +.chat-error { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: start; width: 100%; padding: 16px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); animation: chat-error-in 240ms var(--ease-out); } +@keyframes chat-error-in { from { opacity: 0; transform: translateY(6px); } } +@media (prefers-reduced-motion: reduce) { .chat-error { animation: none; } } +.chat-error-icon { width: 20px; height: 20px; margin-top: 1px; } +.chat-error-line, .chat-error .chat-error-line { display: grid; gap: 2px; max-width: none; flex-basis: auto; } +.chat-error-title { font-weight: 500; } +.chat-error-text { white-space: normal; overflow: visible; overflow-wrap: anywhere; } +.chat-error-hint { grid-column: 2; padding: 0; } +.chat-error > :not(.chat-error-icon):not(.chat-error-line) { grid-column: 2; } + +/* ------------------------------------------------------------------ composer */ +.composer.composer { width: min(768px, 100%); grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "thumbs thumbs" "input input" "left right"; align-items: center; row-gap: 8px; padding: 16px 12px 8px 20px; border-radius: 28px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule-mid), 0 2px 8px rgb(0 0 0 / 0.08); } +:root[data-theme=dark] .composer.composer { background: #2a2a2a; } +.composer.composer:focus-within { box-shadow: inset 0 0 0 1px var(--rule-strong), 0 2px 12px rgb(0 0 0 / 0.12); } +.composer.composer.is-over { box-shadow: inset 0 0 0 1px var(--signal), 0 0 0 1px var(--signal); } +.composer-input { padding: 0; font-size: 1rem; line-height: 1.5rem; } +.composer-left { margin-left: -8px; } +.composer-left .icon-btn { width: 40px; height: 40px; border-radius: 50%; } +.composer-left .icon-btn .icon { width: 20px; height: 20px; } +.composer-right { gap: 8px; } +.composer .meta-btn { height: 36px; padding: 0 12px; border-radius: 999px; font-size: 0.875rem; } +.composer .meta-btn-detail { margin-left: 0; } +.send-btn { width: 40px; height: 40px; margin: 0; border-radius: 50%; background: var(--ink); color: var(--bg); } +.send-btn .icon { width: 18px; height: 18px; } +.send-btn[aria-disabled=true] { display: none; } +.composer.is-running .send-btn { display: grid; } +@media (hover: hover) and (pointer: fine) { .send-btn:hover:not([aria-disabled=true]) { background: var(--ink-2); } } diff --git a/public/dashboard/app.js b/public/dashboard/app.js index d18b906..89e573d 100644 --- a/public/dashboard/app.js +++ b/public/dashboard/app.js @@ -45,7 +45,7 @@ return route(); } try { localStorage.setItem('fdsa.lastRoute', location.hash); } catch (e) { /* preference only */ } - if (r.view === 'chat') app.lastChatHash = location.hash; + if (r.view === 'chat') F.rememberChat(location.hash); F.closePopover(false); F.hideTooltip(); F.charts.hideTip(); @@ -83,7 +83,7 @@ // ---------------------------------------------------------------- settings window function closeSettings() { if (app.view === 'chat') return false; - location.hash = app.lastChatHash || '#/chat'; + location.hash = F.chatToReturnTo(); return true; } $('settings-close').addEventListener('click', closeSettings); @@ -114,7 +114,7 @@ function renderToolbar() { const v = F.views[app.view]; const title = $('view-title'); - if (!title.querySelector('input')) title.textContent = titleFor(app.view); + if (!title.querySelector('input')) title.textContent = v.heading ?? titleFor(app.view); const actions = v.actions ? v.actions() : []; $('toolbar-actions').replaceChildren(...actions); } diff --git a/public/dashboard/chat.js b/public/dashboard/chat.js index 8684d98..0ab302d 100644 --- a/public/dashboard/chat.js +++ b/public/dashboard/chat.js @@ -249,7 +249,7 @@ const transcript = h('ol', { class: 'transcript', 'aria-label': 'Conversation' }); const scroll = h('div', { class: 'chat-scroll', id: 'chat-scroll', tabindex: '-1' }, h('div', { class: 'chat-inner' }, banners, unknown, transcript)); - const textarea = h('textarea', { class: 'composer-input', rows: '1', placeholder: F.t('Message DeepSeek through this proxy…'), 'aria-label': F.t('Message'), spellcheck: 'true' }); + const textarea = h('textarea', { class: 'composer-input', rows: '1', placeholder: F.t('Ask DeepSeek'), 'aria-label': F.t('Message'), spellcheck: 'true' }); const thumbs = h('div', { class: 'attach-row', hidden: true }); // hidden, not just visually hidden: Safari drew an empty focus box for the 1px input. const fileInput = h('input', { type: 'file', accept: 'image/png,image/jpeg,image/webp,image/gif', multiple: true, hidden: true, tabindex: '-1', 'aria-hidden': 'true' }); @@ -257,8 +257,7 @@ // Under the box, Claude-style: model and mode on the right (the account is in its menu). const modelName = h('span', { class: 'meta-btn-label' }); const modelMode = h('span', { class: 'meta-btn-detail' }); - const modelBtn = h('button', { type: 'button', class: 'meta-btn meta-btn-model', 'aria-haspopup': 'menu', 'aria-expanded': 'false' }, modelName, modelMode); - const meta = h('div', { class: 'composer-meta' }, h('div', { class: 'composer-meta-left' }), h('div', { class: 'composer-meta-right' }, modelBtn)); + const modelBtn = h('button', { type: 'button', class: 'meta-btn meta-btn-model', 'aria-haspopup': 'menu', 'aria-expanded': 'false' }, modelName, modelMode, F.icon('chevron-down', 'meta-chev')); const sendBtn = h('button', { type: 'submit', class: 'send-btn', 'aria-label': F.t('Send') }, h('span', { class: 'send-icon send-icon-send' }, F.icon('send')), h('span', { class: 'send-icon send-icon-stop' }, F.icon('stop'))); @@ -266,10 +265,10 @@ thumbs, textarea, h('div', { class: 'composer-row' }, h('div', { class: 'composer-left' }, attachBtn), - h('div', { class: 'composer-right' }, sendBtn))); + h('div', { class: 'composer-right' }, modelBtn, sendBtn))); const note = h('p', { class: 'composer-note', role: 'status' }); // The note sits above the composer, where the eye already is when a send is refused. - const dock = h('div', { class: 'composer-dock' }, note, form, meta, fileInput); + const dock = h('div', { class: 'composer-dock' }, note, form, fileInput); // Empty chat: greeting in the middle, composer at the bottom, the glyph field behind both. root.append(scroll, empty, dock); S.field = F.glyphField.attach(root, { mask: { image: '/dashboard/logo.png' }, fade: 'composer', when: (el) => el.classList.contains('is-empty') }); @@ -325,8 +324,7 @@ S.root.style.setProperty('--dock-h', `${Math.round(hgt)}px`); } - function setNote(text, tone, fromReason = false) { - S.noteFromReason = fromReason && Boolean(text); + function setNote(text, tone) { const note = S.els.note; note.className = `composer-note${tone ? ` is-${tone}` : ''}`; if (!text) { note.replaceChildren(); return; } @@ -453,8 +451,6 @@ sendBtn.setAttribute('aria-label', running ? 'Stop' : 'Send'); sendBtn.setAttribute('data-tip', running ? 'Stop' : reason || (emptyInput ? 'Type a message' : 'Send')); sendBtn.setAttribute('aria-disabled', String(!running && (Boolean(reason) || emptyInput))); - if (reason && !running && (S.els.note.textContent === '' || S.noteFromReason)) setNote(reason, S.models.error || coolLeftMs(conv) > 0 ? 'crit' : null, true); - else if (!reason && S.noteFromReason) setNote(''); } function setDisabled(btn, disabled, reason, tip) { btn.setAttribute('aria-disabled', String(Boolean(disabled))); @@ -1340,6 +1336,8 @@ F.views.chat = { get title() { const c = active(); return c ? c.title : F.t('New chat'); }, + // The page heading stays empty until a chat is open; the tab keeps the title above. + get heading() { const c = active(); return c ? c.title : ''; }, live: false, mount, async show(route) { diff --git a/public/dashboard/core.js b/public/dashboard/core.js index 52da07c..8e0c362 100644 --- a/public/dashboard/core.js +++ b/public/dashboard/core.js @@ -458,12 +458,21 @@ return `#/${view}${sub ? `/${encodeURIComponent(sub)}` : ''}${qs ? `?${qs}` : ''}`; }; F.navigate = (view, sub, params) => { location.hash = F.hashFor(view, sub, params); }; + // The chat that closing the settings window returns to. A first message gives a new chat its id + // through replaceHash, which never routes, so the route handler alone would miss it. + F.rememberChat = (hash) => { try { localStorage.setItem('fdsa.lastChat', hash); } catch (e) { /* preference only */ } F.lastChatHash = hash; }; + F.chatToReturnTo = () => { + if (F.lastChatHash) return F.lastChatHash; + try { const saved = localStorage.getItem('fdsa.lastChat'); if (saved && saved.startsWith('#/chat')) return saved; } catch (e) { /* preference only */ } + return '#/chat'; + }; // Replace the hash without adding history or re-routing. F.replaceHash = (view, sub, params) => { F._suppressRoute = true; history.replaceState(null, '', F.hashFor(view, sub, params)); F._suppressRoute = false; try { localStorage.setItem('fdsa.lastRoute', location.hash); } catch (e) { /* preference only */ } + if (view === 'chat') F.rememberChat(location.hash); }; // ---------------------------------------------------------------- clipboard @@ -801,14 +810,11 @@ }; // ---------------------------------------------------------------- notices - // Page header for the settings-window views: an ocean photo (MEDIA.md), a caps headline built - // from live data, and one quieter line under it. - F.pageHero = ({ image, label, position = '50% 50%' }) => { - const img = F.h('img', { class: 'hero-media', src: image, alt: '', decoding: 'async', 'aria-hidden': 'true' }); - img.style.setProperty('object-position', position); + // Page header for the settings-window views: a line built from live data and a quieter one under it. + F.pageHero = ({ label }) => { const title = F.h('p', { class: 'status-sentence hero-title' }); const sub = F.h('p', { class: 'hero-sub' }); - const el = F.h('section', { class: 'hero hero-page', 'aria-label': label }, img, + const el = F.h('section', { class: 'hero hero-page', 'aria-label': label }, F.h('div', { class: 'hero-inner' }, F.h('header', { class: 'status-head' }, title, sub))); el.set = (headline, detail = '', tone = null) => { title.textContent = headline; diff --git a/public/dashboard/glyphfield.js b/public/dashboard/glyphfield.js index 36e2929..7ad16f4 100644 --- a/public/dashboard/glyphfield.js +++ b/public/dashboard/glyphfield.js @@ -14,8 +14,10 @@ const FONT_PX = 11; const LINE_PX = 14; const MONO = 'ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace'; - const INK = '#a9b6c6'; // cool grey of the field - const CREST = '#5aa9ff'; // --signal: the lit crest of a ripple + // Cool grey of the field and the lit crest of a ripple (--signal), per theme. + const darkTheme = () => document.documentElement.getAttribute('data-theme') === 'dark'; + const inkColor = () => (darkTheme() ? '#a9b6c6' : '#66727f'); + const crestColor = () => (darkTheme() ? '#5aa9ff' : '#1f6fd6'); const INTERACTIVE = 'button, a, input, textarea, select, label, form, [role="menu"], [role="dialog"], .composer-meta, .composer-note, .chat-banners'; const IDLE_MS = 120; // re-roll tick while nothing moves const IDLE_SHARE = 0.012; // share of glyphs re-rolled per tick @@ -213,8 +215,8 @@ gh = Math.round(LINE_PX * dpr); cols = Math.ceil(W / gw); rows = Math.ceil(H / gh); - atlasInk = atlas(INK); - atlasCrest = atlas(CREST); + atlasInk = atlas(inkColor()); + atlasCrest = atlas(crestColor()); const alpha = markAlpha(); glyph = new Uint8Array(cols * rows); base = new Float32Array(cols * rows); @@ -308,6 +310,7 @@ new IntersectionObserver((entries) => { visible = entries[entries.length - 1].isIntersecting; update(); }).observe(host); document.addEventListener('visibilitychange', update); let resizeFrame = 0; + new MutationObserver(() => { dirty = true; }).observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] }); new ResizeObserver(() => { dirty = true; // A field that could not lay out at zero size starts once the view has a size. diff --git a/public/dashboard/i18n.js b/public/dashboard/i18n.js index 4e060d3..62cdb47 100644 --- a/public/dashboard/i18n.js +++ b/public/dashboard/i18n.js @@ -29,7 +29,10 @@ ["Show sidebar", "显示侧栏"], ["Search settings", "搜索设置"], ["Settings sections", "设置分区"], - ["Access key, connection, updates", "访问密钥、连接、更新"], + ["Theme", "主题"], + ["Light", "浅色"], + ["Dark", "深色"], + ["Key, connection, updates", "访问密钥、连接、更新"], ["Pool health and live traffic", "账号池健康状况和实时流量"], ["DeepSeek logins in the pool", "池中的 DeepSeek 登录"], ["Tokens and requests over time", "一段时间内的 token 与请求"], @@ -171,15 +174,15 @@ ["Density", "密度"], ["Comfortable", "舒适"], ["Compact", "紧凑"], - ["System follows the reduced-transparency setting of your OS.", "选择“系统”时,跟随操作系统的“降低透明度”设置。"], + ["System follows the reduced-transparency setting of your OS", "选择“系统”时,跟随操作系统的“降低透明度”设置"], ["Saved in this browser. Chinese is used when the browser language is Chinese and you have not chosen.", "保存在此浏览器。若尚未选择,且浏览器语言为中文,则使用中文。"], ["Could not save the language preference: {name}", "无法保存语言偏好:{name}"], ["Could not save the {name} preference: {error}", "无法保存{name}偏好:{error}"], - ["The PROXY_API_KEY this dashboard signs its requests with.", "此控制台用来签署请求的 PROXY_API_KEY。"], + ["The PROXY_API_KEY this dashboard signs its requests with", "此控制台用来签署请求的 PROXY_API_KEY"], ["Connection", "连接"], - ["Point any OpenAI- or Anthropic-compatible client at this proxy.", "把任何兼容 OpenAI 或 Anthropic 的客户端指向此代理。"], + ["Point any OpenAI- or Anthropic-compatible client at this proxy", "把任何兼容 OpenAI 或 Anthropic 的客户端指向此代理"], ["Server", "服务器"], - ["Facts from GET /health.", "来自 GET /health 的信息。"], + ["Facts from GET /health", "来自 GET /health 的信息"], ["Updates", "更新"], ["Stable gets a release once it has been checked. Latest gets every release first.", "Stable 在版本经过检查后才收到。Latest 会最先收到每个版本。"], ["Chat data", "聊天数据"], @@ -271,7 +274,7 @@ ["Deleting…", "正在删除…"], ["Deleted all conversations.", "已删除全部对话。"], ["Export all conversations", "导出全部对话"], - ["Downloads every conversation in this browser as one JSON file.", "把此浏览器中的每个对话下载为一个 JSON 文件。"], + ["Downloads every conversation in this browser as one JSON file", "把此浏览器中的每个对话下载为一个 JSON 文件"], ["Delete all conversations", "删除全部对话"], ["Removes them from this browser. This can't be undone.", "从此浏览器中移除。此操作无法撤销。"], ["Time window", "时间范围"], @@ -598,7 +601,7 @@ ["GET /v1/models returned no models.", "GET /v1/models 没有返回模型。"], ["What should we work on?", "想做点什么?"], ["Conversation", "对话"], - ["Message DeepSeek through this proxy…", "通过此代理给 DeepSeek 发消息…"], + ["Ask DeepSeek", "问问 DeepSeek"], ["Message", "消息"], ["Attach images", "附加图片"], ["Send", "发送"], diff --git a/public/dashboard/index.html b/public/dashboard/index.html index a1796aa..b84b982 100644 --- a/public/dashboard/index.html +++ b/public/dashboard/index.html @@ -34,7 +34,8 @@ - + + @@ -152,7 +153,7 @@

Chats

- +

FreeDeepseekAPI

@@ -177,7 +178,7 @@

FreeDeepseekAPI