feat(webui): typography scale, surface depth, motion and unified nav icons

- Replace static Space Grotesk weights with a variable font (300-700) and
  bump the type scale across all tiers for a clearer weight hierarchy
- Add dot-grid texture, ambient glow, layered shadows with machined edge
  highlights, and entrance/hover/press micro-interactions (reduced-motion aware)
- Refine sidebar and session list: sliding amber active indicator, search
  focus ring, SESSIONS label header, living status dot, backdrop-blurred bars
- Replace inconsistent glyph icons with a unified Lucide-style SVG icon set;
  rename 工具&Skills to 工具 and enlarge nav font
This commit is contained in:
xiaoxixi 2026-07-26 23:46:10 +08:00
parent 3263fac7a3
commit c1a6660313
15 changed files with 218 additions and 154 deletions

View File

@ -87,12 +87,8 @@ pub async fn webui_theme_init() -> Response {
const EMBEDDED_FONTS: &[(&str, &[u8])] = &[
(
"space-grotesk-500.woff2",
include_bytes!(concat!(env!("OUT_DIR"), "/webui/fonts/space-grotesk-500.woff2")),
),
(
"space-grotesk-700.woff2",
include_bytes!(concat!(env!("OUT_DIR"), "/webui/fonts/space-grotesk-700.woff2")),
"space-grotesk.woff2",
include_bytes!(concat!(env!("OUT_DIR"), "/webui/fonts/space-grotesk.woff2")),
),
(
"jetbrains-mono-400.woff2",

Binary file not shown.

View File

@ -16,14 +16,23 @@
import PairingPage from "./pages/PairingPage.svelte";
const pages = [
["chat", "◫", "聊天"],
["overview", "◉", "概览"],
["tools", "🧰", "工具&Skills"],
["logs", "≋", "日志"],
["memory", "◇", "记忆"],
["tasks", "⌁", "任务"],
["settings", "⚙", "配置"]
["chat", "聊天"],
["overview", "概览"],
["tools", "工具"],
["logs", "日志"],
["memory", "记忆"],
["tasks", "任务"],
["settings", "配置"]
];
const icons = {
chat: '<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>',
overview: '<path d="M22 12h-4l-3 9L9 3l-3 9H2"/>',
tools: '<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>',
logs: '<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/><path d="M16 13H8"/><path d="M16 17H8"/><path d="M10 9H8"/>',
memory: '<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>',
tasks: '<path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/>',
settings: '<line x1="21" x2="14" y1="4" y2="4"/><line x1="10" x2="3" y1="4" y2="4"/><line x1="21" x2="12" y1="12" y2="12"/><line x1="8" x2="3" y1="12" y2="12"/><line x1="21" x2="16" y1="20" y2="20"/><line x1="12" x2="3" y1="20" y2="20"/><line x1="14" x2="14" y1="2" y2="6"/><line x1="8" x2="8" y1="10" y2="14"/><line x1="16" x2="16" y1="18" y2="22"/>'
};
let current = $state("chat");
let menuOpen = $state(false);
let online = $state(false);
@ -105,7 +114,10 @@
<div class="brand"><span class="brand-mark">P</span><div><strong>PicoBot</strong><small>Local agent console</small></div></div>
<nav>
{#each pages as page}
<button class:active={current === page[0]} onclick={() => selectPage(page[0])}><span>{page[1]}</span>{page[2]}</button>
<button class:active={current === page[0]} onclick={() => selectPage(page[0])}>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">{@html icons[page[0]]}</svg>
{page[1]}
</button>
{/each}
</nav>
<div class="gateway-status">
@ -120,7 +132,7 @@
<ActivitySpine {version} />
<header class="topbar">
<button class="menu" aria-label="菜单" onclick={() => (menuOpen = !menuOpen)}>☰</button>
<h1>{meta[2]}</h1>
<h1>{meta[1]}</h1>
</header>
{#if current === "chat"}<ChatPage notify={(text, error) => toast.show(text, error)} />
{:else if current === "logs"}<LogsPage />

View File

@ -42,8 +42,8 @@
</div>
<style>
.spine { display: flex; align-items: center; gap: 14px; font-size: 10.5px; color: var(--spine-text);
background: var(--spine-bg); border-bottom: 1px solid var(--line); padding: 8px 16px; }
.spine { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--spine-text);
background: var(--spine-bg); border-bottom: 1px solid var(--line); padding: 8px 16px; font-variant-numeric: tabular-nums; }
.spine-turn { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.spine-turn.active { color: var(--spine-accent); }
.spine-turn.idle { color: var(--spine-signal); }

View File

@ -16,8 +16,9 @@
</div>
<style>
.tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.value { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--text); }
.sub { font-size: 11px; color: var(--muted); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 15px 17px; transition: border-color .18s ease, transform .18s ease; }
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.value { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.sub { font-size: 12px; color: var(--muted); }
.spark { height: 28px; margin-top: 4px; }
</style>

View File

@ -379,6 +379,7 @@
<aside class="sessions-panel">
<button class="primary full" onclick={() => send({ type: "create_session", title: null })}> 新建对话</button>
<label class="search"><span></span><input bind:value={search} placeholder="搜索对话" /></label>
<div class="session-list-head"><span class="label-caps">SESSIONS</span><span class="session-count">{filteredSessions.length}</span></div>
<div class="session-list">
{#each filteredSessions as session (session.session_id)}
<button class:active={session.session_id === currentId} class="session-item" onclick={() => loadSession(session.session_id)}>

View File

@ -184,7 +184,8 @@
color: var(--muted);
border-radius: 99px;
padding: 5px 12px;
font-size: 11px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
}
@ -199,7 +200,7 @@
display: flex;
align-items: center;
gap: 7px;
font-size: 11px;
font-size: 12px;
color: var(--muted);
margin-bottom: 8px;
}

View File

@ -164,13 +164,13 @@
.danger-solid { border-radius: 9px; padding: 9px 14px; font-weight: 650; cursor: pointer; border: 1px solid var(--danger); background: var(--danger); color: #fff; }
.danger-solid:hover { filter: brightness(1.08); }
.edit-field { display: grid; gap: 6px; margin-top: 12px; }
.edit-field > span { color: var(--muted); font-size: 11px; }
.edit-field textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); padding: 10px; font: 13px/1.55 var(--font-ui); }
.edit-field > span { color: var(--muted); font-size: 12px; }
.edit-field textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); padding: 10px; font: 14px/1.6 var(--font-ui); }
.edit-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.action-error { margin: 12px 0 0; font-size: 12px; }
.action-error { margin: 12px 0 0; font-size: 13px; }
.confirm { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.confirm-text { margin: 0; color: var(--muted); font-size: 12px; }
.confirm-text { margin: 0; color: var(--muted); font-size: 13px; }
.confirm-danger { border: 1px solid var(--danger-border); border-radius: 8px; background: var(--danger-soft); padding: 12px; }
.confirm-warning { margin: 0; color: var(--danger); font-size: 12px; line-height: 1.6; }
.confirm-warning { margin: 0; color: var(--danger); font-size: 13px; line-height: 1.6; }
.load-more { display: flex; justify-content: center; padding: 6px 0; }
</style>

View File

@ -167,28 +167,28 @@
</section>
<style>
.offline { display: flex; align-items: center; gap: 10px; padding: 18px 22px; color: var(--danger); font-size: 13px; }
.offline { display: flex; align-items: center; gap: 10px; padding: 18px 22px; color: var(--danger); font-size: 14px; }
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.status-left { display: flex; align-items: center; gap: 10px; }
.status-meta { display: flex; gap: 16px; font-size: 11px; color: var(--text-soft); flex-wrap: wrap; }
.warn-bar { color: var(--accent); font-size: 11px; margin-bottom: 10px; }
.status-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-soft); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.warn-bar { color: var(--accent); font-size: 12px; margin-bottom: 10px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.section { padding: 16px 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.provider-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.provider-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 8px; border-bottom: 1px solid var(--line); font-size: 10px; }
.provider-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.provider-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.provider-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 8px; border-bottom: 1px solid var(--line); font-size: 11px; }
.provider-table td { padding: 8px 8px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.provider-table tr:last-child td { border-bottom: none; }
.spark-cell { width: 80px; height: 24px; }
.empty-cell { color: var(--muted); text-align: center; padding: 12px; }
.bus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bus-item { display: flex; flex-direction: column; gap: 6px; }
.bus-label { font-size: 10px; color: var(--muted); }
.bus-depth { font-size: 10px; color: var(--text-soft); }
.bus-footer { display: flex; gap: 20px; font-size: 11px; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 10px; }
.bus-label { font-size: 11px; color: var(--muted); }
.bus-depth { font-size: 11px; color: var(--text-soft); }
.bus-footer { display: flex; gap: 20px; font-size: 12px; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 10px; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.channel-list { display: flex; flex-direction: column; gap: 8px; }
.channel-row { display: flex; justify-content: space-between; align-items: center; }
.sched-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: var(--text-soft); }
.sched-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; color: var(--text-soft); }
.error-text { color: var(--danger); }
@media (max-width: 800px) {
.tiles { grid-template-columns: repeat(2, 1fr); }

View File

@ -186,15 +186,15 @@
.config-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; align-items: start; }
.config-sidebar { display: grid; gap: 14px; }
.sidebar-panel { padding: 14px; }
.sidebar-empty { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.sidebar-empty { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.outline-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.outline-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-soft); }
.outline-note { font-size: 10px; color: var(--muted); white-space: nowrap; }
.reload-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 12px; color: var(--text-soft); }
.outline-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-soft); }
.outline-note { font-size: 11px; color: var(--muted); white-space: nowrap; }
.reload-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13px; color: var(--text-soft); }
.reload-row + .reload-row { border-top: 1px solid var(--line); }
.reload-error { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 11px; line-height: 1.5; }
.json-error { padding: 9px 15px; color: var(--danger); font-size: 11px; background: var(--danger-soft); border-top: 1px solid var(--danger-border); }
.dirty-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.reload-error { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 12px; line-height: 1.5; }
.json-error { padding: 9px 15px; color: var(--danger); font-size: 12px; background: var(--danger-soft); border-top: 1px solid var(--danger-border); }
.dirty-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.dirty-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.editor-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.editor-head { min-height: 62px; height: auto; padding: 10px 15px; flex-wrap: wrap; gap: 8px; }

View File

@ -143,8 +143,8 @@
</section>
<style>
.cron { font-size: 11px; color: var(--text-soft); background: var(--code-bg); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
.cron { font-size: 12px; color: var(--text-soft); background: var(--code-bg); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.status-dots { display: flex; gap: 4px; margin-top: 6px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.elapsed { color: var(--info); font-family: var(--font-mono); font-size: 10px; }
.elapsed { color: var(--info); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
</style>

View File

@ -170,15 +170,15 @@
<style>
.filters-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 6px 12px; font-size: 11px; cursor: pointer; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 500; cursor: pointer; }
.chip.active { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.cap-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.badge.src-mcp { background: var(--info-soft); color: var(--info); }
.schema-wrap { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.schema-wrap summary { cursor: pointer; color: var(--muted); font-size: 11px; }
.schema-wrap pre { max-height: 300px; margin: 8px 0 0; padding: 10px 11px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; color: var(--text-soft); background: var(--code-bg); font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.schema-wrap summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.schema-wrap pre { max-height: 300px; margin: 8px 0 0; padding: 10px 11px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; color: var(--text-soft); background: var(--code-bg); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 800px) {
.tool-grid { grid-template-columns: 1fr; }
}

View File

@ -1,12 +1,7 @@
@font-face {
font-family: "Space Grotesk";
src: url("/fonts/space-grotesk-500.woff2") format("woff2");
font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
font-family: "Space Grotesk";
src: url("/fonts/space-grotesk-700.woff2") format("woff2");
font-weight: 700; font-style: normal; font-display: swap;
src: url("/fonts/space-grotesk.woff2") format("woff2");
font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
font-family: "JetBrains Mono";
@ -24,7 +19,11 @@
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
color-scheme: dark;
font-family: var(--font-ui);
font-weight: 400;
font-synthesis: none;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-kerning: normal;
color: #e7ecf3;
background: #0b1017;
--bg: #0b1017;
@ -64,6 +63,12 @@
--spine-accent: #ffb454;
--spine-faint: #8fa3b8;
--shadow: 0 16px 45px rgb(0 0 0 / 35%);
--shadow-sm: 0 1px 2px rgb(2 6 12 / 45%), 0 6px 20px rgb(2 6 12 / 22%);
--shadow-lift: 0 4px 10px rgb(2 6 12 / 50%), 0 18px 44px rgb(2 6 12 / 32%);
--edge: inset 0 1px 0 0 rgb(255 255 255 / 5%);
--dot: rgb(140 170 210 / 7%);
--glow: rgb(255 180 84 / 6%);
--accent-glow: rgb(255 180 84 / 26%);
--radius: 11px;
}
@ -105,123 +110,159 @@
--user-bubble: #ece7fb;
--spine-bg: #0e1520;
--shadow: 0 16px 45px rgb(31 41 55 / 12%);
--shadow-sm: 0 1px 2px rgb(23 32 48 / 7%), 0 6px 20px rgb(23 32 48 / 6%);
--shadow-lift: 0 4px 10px rgb(23 32 48 / 10%), 0 18px 44px rgb(23 32 48 / 13%);
--edge: inset 0 1px 0 0 rgb(255 255 255 / 70%);
--dot: rgb(26 42 70 / 6%);
--glow: rgb(196 116 0 / 5%);
--accent-glow: rgb(196 116 0 / 20%);
}
* { box-sizing: border-box; }
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background-color: var(--faint); }
::selection { background: var(--accent); color: var(--accent-contrast); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; }
strong, b { font-weight: 600; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); transition: color .2s, background .2s; }
.pairing-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 38%), var(--bg); }
.pairing-card { width: min(100%, 420px); padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.pairing-card { width: min(100%, 420px); padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--edge), var(--shadow); }
.pairing-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.pairing-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; color: var(--accent); background: var(--accent-soft); font-size: 24px; }
.pairing-card h1 { margin: 0 0 9px; font-size: 24px; }
.pairing-card > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.pairing-command { display: block; margin-bottom: 22px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--code-bg); font: 12px/1.5 var(--font-mono); }
.pairing-card h1 { margin: 0 0 9px; font-size: 26px; }
.pairing-card > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.pairing-command { display: block; margin-bottom: 22px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--code-bg); font: 13px/1.5 var(--font-mono); }
.pairing-card form { display: grid; gap: 10px; }
.pairing-card label { color: var(--text-soft); font-size: 11px; font-weight: 650; }
.pairing-card input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--panel-2); font: 600 22px/1.2 var(--font-mono); letter-spacing: .28em; text-align: center; }
.pairing-card label { color: var(--text-soft); font-size: 12px; font-weight: 600; }
.pairing-card input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--panel-2); font: 600 24px/1.2 var(--font-mono); letter-spacing: .28em; text-align: center; }
.pairing-card form .primary { margin-top: 3px; padding: 11px 14px; }
.pairing-card > small { display: block; margin-top: 17px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.pairing-error { padding: 8px 10px; border-radius: 8px; color: var(--danger); background: var(--danger-soft); font-size: 11px; }
.auth-loading { color: var(--muted); font-size: 13px; }
.pairing-card > small { display: block; margin-top: 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.pairing-error { padding: 8px 10px; border-radius: 8px; color: var(--danger); background: var(--danger-soft); font-size: 12px; }
.auth-loading { color: var(--muted); font-size: 14px; }
button, input, textarea, select { font: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .45; }
.shell { height: 100vh; display: grid; grid-template-columns: 232px 1fr; }
.sidebar { border-right: 1px solid var(--line); background: var(--sidebar); display: flex; flex-direction: column; padding: 20px 14px; }
.sidebar { border-right: 1px solid var(--line); background: radial-gradient(circle at 18% -4%, var(--glow), transparent 42%), var(--sidebar); display: flex; flex-direction: column; padding: 20px 14px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 26px; }
.brand-mark, .empty-logo { display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); font-weight: 900; border-radius: 10px; }
.brand-mark { width: 35px; height: 35px; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.brand-mark { width: 36px; height: 36px; box-shadow: var(--edge), 0 5px 18px var(--accent-glow); }
.brand strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button, .settings-nav button { border: 0; background: transparent; color: var(--muted); text-align: left; padding: 11px 13px; border-radius: 9px; cursor: pointer; }
.sidebar nav button span { display: inline-block; width: 25px; }
.sidebar nav button, .settings-nav button { position: relative; border: 0; background: transparent; color: var(--muted); text-align: left; padding: 11px 13px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.sidebar nav button::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 20px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); transform: translateY(-50%) scaleY(0); transition: transform .22s cubic-bezier(.22,.9,.36,1); }
.sidebar nav button.active::before { transform: translateY(-50%) scaleY(1); }
.sidebar nav button { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.sidebar nav button svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.sidebar nav button:hover svg, .sidebar nav button.active svg { opacity: 1; }
.sidebar nav button:hover, .sidebar nav button.active, .settings-nav button:hover, .settings-nav button[data-state="active"] { background: var(--accent-soft); color: var(--text); }
.sidebar nav button.active { color: var(--accent); }
@keyframes status-breathe { 0%, 100% { box-shadow: 0 0 7px currentColor; } 50% { box-shadow: 0 0 15px currentColor; } }
.gateway-status { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 8px 2px; display: flex; gap: 10px; align-items: center; }
.gateway-status i { width: 9px; height: 9px; border-radius: 50%; color: var(--warning); background: currentColor; box-shadow: 0 0 12px currentColor; }
.gateway-status i.online { color: var(--signal); background: currentColor; }
.gateway-status b, .gateway-status small { display: block; font-size: 12px; }
.gateway-status i.online { color: var(--signal); background: currentColor; animation: status-breathe 2.6s ease-in-out infinite; }
.gateway-status b, .gateway-status small { display: block; font-size: 13px; }
.gateway-status b { font-weight: 600; }
.gateway-status small { color: var(--muted); margin-top: 2px; }
main { min-width: 0; height: 100vh; display: flex; flex-direction: column; }
main { min-width: 0; height: 100vh; display: flex; flex-direction: column;
background-color: var(--bg);
background-image:
radial-gradient(circle at 82% -8%, var(--glow), transparent 46%),
radial-gradient(var(--dot) 1px, transparent 1.5px);
background-size: auto, 22px 22px;
}
.topbar { height: 76px; flex: 0 0 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 26px; background: var(--header); backdrop-filter: blur(16px); }
.topbar h1 { font-size: 18px; margin: 0; }
.topbar p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.topbar h1 { font-size: 20px; margin: 0; font-weight: 700; letter-spacing: -0.015em; }
.topbar p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.topbar .menu { display: none; background: none; border: 0; color: var(--text); font-size: 20px; margin-right: 12px; }
.theme-toggle { margin-left: auto; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel); cursor: pointer; font-size: 12px; }
.theme-toggle { margin-left: auto; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel); cursor: pointer; font-size: 13px; font-weight: 500; transition: color .15s ease, border-color .15s ease; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent-border); }
.page { min-height: 0; flex: 1; }
.page { min-height: 0; flex: 1; animation: page-in .32s cubic-bezier(.22,.9,.36,1) both; }
.chat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.chat-layout.todo-open { grid-template-columns: 270px minmax(0, 1fr) 320px; }
.sessions-panel { border-right: 1px solid var(--line); padding: 16px; background: color-mix(in srgb, var(--sidebar) 72%, transparent); overflow: auto; }
.primary, .secondary { border-radius: 9px; padding: 9px 14px; font-weight: 650; cursor: pointer; }
.sessions-panel { border-right: 1px solid var(--line); padding: 16px; background: color-mix(in srgb, var(--sidebar) 60%, var(--panel)); overflow: auto; }
.primary, .secondary { border-radius: 9px; padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .18s ease, border-color .15s ease, background-color .15s ease; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-contrast); }
.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); box-shadow: 0 6px 18px var(--accent-glow); }
.primary:active, .secondary:active { transform: scale(.97); }
.secondary { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.secondary:hover { border-color: var(--line-strong); }
.full { width: 100%; padding: 11px; }
.search { height: 39px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); display: flex; align-items: center; padding: 0 11px; color: var(--muted); }
.sessions-panel > .search { margin: 13px 0; }
.search input { border: 0; outline: 0; background: transparent; color: var(--text); width: 100%; padding: 0 7px; }
.session-list { display: grid; gap: 5px; }
.session-item { width: 100%; padding: 10px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; color: var(--text); background: transparent; text-align: left; }
.session-item:hover, .session-item.active { background: var(--panel-2); border-color: var(--line); }
.session-item.active { border-left-color: var(--accent); }
.session-item strong { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { height: 39px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); display: flex; align-items: center; padding: 0 11px; color: var(--muted); transition: border-color .15s ease, box-shadow .15s ease; }
.search:focus-within { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-soft); }
.sessions-panel > .search { margin: 13px 0 0; }
.search input { border: 0; outline: 0; background: transparent; color: var(--text); width: 100%; padding: 0 7px; font-size: 14px; }
.session-list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 15px 2px 9px; }
.session-count { font-family: var(--font-mono); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.session-list { display: grid; gap: 6px; }
.session-item { position: relative; width: 100%; padding: 11px 12px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; color: var(--text); background: transparent; text-align: left; transition: background-color .15s ease, border-color .15s ease; }
.session-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 22px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); transform: translateY(-50%) scaleY(0); transition: transform .22s cubic-bezier(.22,.9,.36,1); }
.session-item:hover { background: var(--panel-2); border-color: var(--line); }
.session-item.active { background: var(--accent-soft); border-color: var(--accent-border); }
.session-item.active::before { transform: translateY(-50%) scaleY(1); }
.session-item strong { font-size: 14px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-unread { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.session-item small { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; margin-top: 6px; }
.session-item small { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; margin-top: 6px; }
.chat-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-heading { height: 57px; flex: 0 0 57px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.chat-heading { height: 57px; flex: 0 0 57px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--header); backdrop-filter: blur(16px); }
.chat-heading strong, .chat-heading small { display: block; }
.chat-heading strong { font-size: 13px; }
.chat-heading strong { font-size: 14px; font-weight: 600; }
.chat-heading-actions { display: flex; align-items: center; gap: 9px; }
.todo-toggle { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: var(--panel-2); color: var(--muted); font-size: 11px; cursor: pointer; }
.todo-toggle { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.todo-toggle.active { border-color: var(--accent-border); color: var(--accent); background: var(--accent-soft); }
.chat-heading small { font-size: 10px; color: var(--muted); margin-top: 3px; }
.icon-button { border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; border-radius: 6px; }
.tooltip { z-index: 50; border: 1px solid var(--line); background: var(--overlay); color: var(--text); padding: 6px 9px; border-radius: 7px; font-size: 11px; box-shadow: var(--shadow); }
.chat-heading small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.icon-button { border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; border-radius: 6px; transition: color .15s ease, transform .12s ease; }
.icon-button:hover { color: var(--text); }
.icon-button:active { transform: scale(.9); }
.tooltip { z-index: 50; border: 1px solid var(--line); background: var(--overlay); color: var(--text); padding: 6px 9px; border-radius: 7px; font-size: 12px; box-shadow: var(--shadow); }
.tooltip-arrow { fill: var(--overlay); }
.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 26px max(24px, calc((100% - 850px) / 2)) 18px; }
.empty { text-align: center; color: var(--muted); padding-top: 12vh; }
.empty-logo { width: 54px; height: 54px; margin: auto; font-size: 24px; }
.empty h2 { color: var(--text); font-size: 24px; margin: 18px 0 8px; }
.empty p { font-size: 13px; }
.message { display: flex; gap: 12px; margin: 15px 0; align-items: flex-start; }
.empty h2 { color: var(--text); font-size: 26px; font-weight: 700; letter-spacing: -0.015em; margin: 18px 0 8px; }
.empty p { font-size: 14px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.message { display: flex; gap: 12px; margin: 15px 0; align-items: flex-start; animation: msg-in .3s cubic-bezier(.22,.9,.36,1) both; }
.message.user { flex-direction: row-reverse; }
.avatar { width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; font-size: 11px; background: var(--panel-2); }
.avatar { width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--panel-2); }
.message.assistant .avatar { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); font-weight: bold; }
.message-content { display: grid; gap: 8px; max-width: min(82%, 760px); min-width: 0; }
.message.user .message-content { justify-items: end; }
.bubble { max-width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 14px; line-height: 1.62; overflow-wrap: anywhere; }
.bubble { max-width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; box-shadow: var(--edge); }
.message.user .bubble { background: var(--user-bubble); border-color: var(--accent-border); }
.message-attachments { display: grid; gap: 7px; width: min(100%, 520px); }
.attachment-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 30px; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.attachment-icon { width: 42px; height: 42px; border-radius: 7px; background: var(--panel-2); display: grid; place-items: center; color: var(--accent); }
.attachment-card strong, .attachment-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-card strong { font-size: 12px; }.attachment-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.attachment-card strong { font-size: 13px; font-weight: 600; }.attachment-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.attachment-card a { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); text-decoration: none; }
.image-attachment { width: min(100%, 680px); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.image-preview-link { display: grid; max-height: 520px; overflow: hidden; place-items: center; background: var(--panel-2); }
.image-preview { display: block; max-width: 100%; max-height: 520px; object-fit: contain; }
.attachment-meta { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 9px; align-items: center; padding: 8px 10px; }
.attachment-meta strong, .attachment-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-meta strong { font-size: 12px; }.attachment-meta small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.attachment-meta strong { font-size: 13px; font-weight: 600; }.attachment-meta small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.attachment-meta > a { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); text-decoration: none; }
.typing .bubble { color: var(--muted); }
.active-turn .message-content { width: min(82%, 760px); }
.streaming { border-color: var(--accent-border); }
.reasoning-block, .live-tool { width: min(100%, 680px); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.reasoning-block summary, .live-tool summary { padding: 9px 12px; color: var(--muted); font-size: 11px; cursor: pointer; user-select: none; }
.reasoning-block, .live-tool { width: min(100%, 680px); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--edge); }
.reasoning-block summary, .live-tool summary { padding: 9px 12px; color: var(--muted); font-size: 12px; cursor: pointer; user-select: none; }
.reasoning-block summary::marker, .live-tool summary::marker { color: var(--accent); }
.reasoning-content { padding: 10px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.reasoning-content { padding: 10px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.65; }
.reasoning-block.historical { border-style: dashed; }
.live-tool summary { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; }
.live-tool summary strong { color: var(--text); font: 600 12px/1.4 var(--font-mono); }
.live-tool summary strong { color: var(--text); font: 600 13px/1.4 var(--font-mono); }
.live-tool summary small { color: var(--muted); }
.live-tool-details { display: grid; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.live-tool-details pre { max-height: 260px; margin: 0; padding: 10px; overflow: auto; border-radius: 8px; color: var(--text-soft); background: var(--code-bg); font: 11px/1.5 var(--font-mono); white-space: pre-wrap; }
.turn-status, .completion-status { color: var(--muted); font-size: 10px; }
.live-tool-details pre { max-height: 260px; margin: 0; padding: 10px; overflow: auto; border-radius: 8px; color: var(--text-soft); background: var(--code-bg); font: 12px/1.55 var(--font-mono); white-space: pre-wrap; }
.turn-status, .completion-status { color: var(--muted); font-size: 11px; }
.turn-status.failed, .turn-error { color: var(--danger); }
.turn-error { padding: 8px 10px; border-radius: 8px; background: var(--danger-soft); font-size: 11px; }
.turn-error { padding: 8px 10px; border-radius: 8px; background: var(--danger-soft); font-size: 12px; }
.pulse { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.8); } }
.markdown-body { min-width: 0; }
@ -245,61 +286,67 @@ main { min-width: 0; height: 100vh; display: flex; flex-direction: column; }
.markdown-body hr { border: 0; border-top: 1px solid var(--line); }
.markdown-body img { max-width: 100%; border-radius: 9px; }
.tool-calls { display: grid; gap: 7px; width: min(100%, 680px); }
.tool-call { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.tool-call { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); box-shadow: var(--edge); transition: border-color .18s ease; }
.tool-call:hover { border-color: var(--line-strong); }
.tool-call.open { border-color: var(--accent-border); }
.tool-call-summary { width: 100%; min-height: 48px; display: grid; grid-template-columns: 30px 1fr auto 18px; align-items: center; gap: 9px; padding: 7px 11px; border: 0; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.tool-call-summary:hover { background: var(--panel-2); }
.tool-call-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: 13px; }
.tool-call-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: 14px; }
.tool-call-title small, .tool-call-title strong { display: block; }
.tool-call-title small { margin-bottom: 1px; color: var(--muted); font-size: 9px; font-weight: 500; }
.tool-call-title strong { font: 600 12px/1.4 var(--font-mono); }
.tool-call-status { color: var(--muted); font-size: 10px; }
.tool-call-title small { margin-bottom: 1px; color: var(--muted); font-size: 10px; font-weight: 500; }
.tool-call-title strong { font: 600 13px/1.4 var(--font-mono); }
.tool-call-status { color: var(--muted); font-size: 11px; }
.tool-call-chevron { color: var(--muted); transition: transform .18s; }
.tool-call.open .tool-call-chevron { transform: rotate(180deg); }
.tool-call-details { display: grid; gap: 12px; padding: 12px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 55%, transparent); }
.tool-call-details > div > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tool-call-details pre, .tool-result { max-height: 300px; margin: 0; padding: 10px 11px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; color: var(--text-soft); background: var(--code-bg); font: 11px/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.tool-call-details > div > span { display: block; margin-bottom: 6px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.tool-call-details pre, .tool-result { max-height: 300px; margin: 0; padding: 10px 11px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; color: var(--text-soft); background: var(--code-bg); font: 12px/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.tool-result .markdown-body { font: inherit; }
.composer { position: relative; margin: 0 max(18px, calc((100% - 850px) / 2)) 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 10px 11px 6px; display: grid; grid-template-columns: 38px 1fr 38px; box-shadow: var(--shadow); }
.composer textarea { resize: none; max-height: 180px; background: transparent; border: 0; outline: 0; color: var(--text); padding: 7px; line-height: 1.5; }
.composer { position: relative; margin: 0 max(18px, calc((100% - 850px) / 2)) 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 10px 11px 6px; display: grid; grid-template-columns: 38px 1fr 38px; box-shadow: var(--edge), var(--shadow); transition: border-color .18s ease; }
.composer:focus-within { border-color: var(--accent-border); }
.composer textarea { resize: none; max-height: 180px; background: transparent; border: 0; outline: 0; color: var(--text); padding: 7px; font-size: 15px; line-height: 1.6; }
.file-input { display: none; }
.attach { width: 34px; height: 34px; align-self: end; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel-2); cursor: pointer; font-size: 18px; }
.attach { width: 34px; height: 34px; align-self: end; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel-2); cursor: pointer; font-size: 18px; transition: color .15s ease, border-color .15s ease, transform .12s ease; }
.attach:hover { color: var(--accent); border-color: var(--accent-border); }
.attach:active { transform: scale(.94); }
.pending-uploads { grid-column: 1 / -1; display: flex; gap: 7px; padding: 2px 4px 8px; overflow-x: auto; }
.pending-upload { min-width: 170px; max-width: 260px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 22px; gap: 6px; align-items: center; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); }
.pending-upload.error { border-color: var(--danger); }.pending-upload strong, .pending-upload small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.pending-upload strong { font-size: 10px; }.pending-upload small { color: var(--muted); font-size: 9px; }.pending-upload button { border: 0; color: var(--muted); background: none; cursor: pointer; }
.send { width: 36px; height: 36px; border-radius: 10px; color: var(--accent-contrast); background: var(--accent); border: 0; font-size: 19px; cursor: pointer; }
.composer small { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 3px 7px; color: var(--muted); font-size: 10px; }
.pending-upload.error { border-color: var(--danger); }.pending-upload strong, .pending-upload small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.pending-upload strong { font-size: 11px; font-weight: 600; }.pending-upload small { color: var(--muted); font-size: 10px; }.pending-upload button { border: 0; color: var(--muted); background: none; cursor: pointer; }
.send { width: 36px; height: 36px; border-radius: 10px; color: var(--accent-contrast); background: var(--accent); border: 0; font-size: 19px; cursor: pointer; transition: transform .12s ease, box-shadow .18s ease, background-color .15s ease; }
.send:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 5px 16px var(--accent-glow); }
.send:active:not(:disabled) { transform: scale(.92); }
.composer small { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 3px 7px; color: var(--muted); font-size: 11px; }
.composer small .online { color: var(--accent); }
.todo-panel { display: none; min-width: 0; border-left: 1px solid var(--line); background: var(--sidebar); overflow: hidden; }
.todo-open .todo-panel { display: flex; flex-direction: column; }
.todo-heading { min-height: 78px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.todo-heading small, .todo-heading strong { display: block; }
.todo-heading small { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.todo-heading strong { font-size: 13px; line-height: 1.4; }
.todo-heading small { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.todo-heading strong { font-size: 14px; font-weight: 600; line-height: 1.4; }
.todo-progress { height: 3px; background: var(--panel-2); }
.todo-progress span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.todo-summary { display: flex; justify-content: space-between; padding: 11px 16px; color: var(--muted); font-size: 10px; }
.todo-summary { display: flex; justify-content: space-between; padding: 11px 16px; color: var(--muted); font-size: 11px; }
.todo-items { min-height: 0; overflow-y: auto; padding: 4px 12px 18px; }
.todo-item { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 10px 8px; border-radius: 9px; color: var(--text-soft); }
.todo-item + .todo-item { margin-top: 3px; }
.todo-item.running { background: var(--accent-soft); color: var(--text); }
.todo-item.blocked { background: var(--danger-soft); }
.todo-item.done { color: var(--muted); }
.todo-icon { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; }
.todo-icon { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; }
.todo-item.running .todo-icon { color: var(--accent); border-color: var(--accent-border); }
.todo-item.blocked .todo-icon { color: var(--danger); border-color: var(--danger); }
.todo-item.done .todo-icon { color: var(--accent); }
.todo-item strong, .todo-item small { display: block; }
.todo-item strong { font-size: 12px; line-height: 1.45; }
.todo-item small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.todo-item p { margin: 6px 0 0; color: var(--text-soft); font-size: 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.todo-item strong { font-size: 13px; font-weight: 600; line-height: 1.45; }
.todo-item small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.todo-item p { margin: 6px 0 0; color: var(--text-soft); font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.command-menu { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(100% + 8px); max-height: min(360px, 48vh); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: var(--overlay); box-shadow: var(--shadow); }
.command-menu-heading { position: sticky; top: -6px; z-index: 1; display: flex; justify-content: space-between; gap: 16px; padding: 9px 10px 8px; color: var(--muted); background: var(--overlay); font-size: 10px; }
.command-menu-heading { position: sticky; top: -6px; z-index: 1; display: flex; justify-content: space-between; gap: 16px; padding: 9px 10px 8px; color: var(--muted); background: var(--overlay); font-size: 11px; }
.command-menu-heading kbd { color: var(--muted); font: inherit; }
.command-menu button { display: grid; grid-template-columns: minmax(100px, auto) 1fr; gap: 14px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.command-menu button:hover, .command-menu button.selected { background: var(--accent-soft); }
.command-menu code { color: var(--accent); font: 600 12px/1.4 var(--font-mono); }
.command-menu button span { color: var(--text-soft); font-size: 12px; line-height: 1.4; }
.command-menu code { color: var(--accent); font: 600 13px/1.4 var(--font-mono); }
.command-menu button span { color: var(--text-soft); font-size: 13px; line-height: 1.4; }
.content-page { padding: 22px 26px; overflow: auto; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.tabs { display: flex; background: var(--panel); padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
@ -308,26 +355,28 @@ main { min-width: 0; height: 100vh; display: flex; flex-direction: column; }
.filters select { height: 39px; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 0 10px; }
.grow { flex: 1; max-width: 520px; }
.cards { display: grid; gap: 11px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; box-shadow: var(--edge), var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--edge), var(--shadow-lift); }
.card-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.card h3 { font-size: 14px; margin: 0 0 7px; }
.card p { color: var(--text-soft); font-size: 12px; line-height: 1.55; margin: 5px 0; white-space: pre-wrap; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.badge { border-radius: 99px; padding: 4px 8px; font-size: 10px; background: var(--panel-2); color: var(--text-soft); white-space: nowrap; }
.card h3 { font-size: 15px; font-weight: 600; margin: 0 0 7px; }
.card p { color: var(--text-soft); font-size: 13px; line-height: 1.6; margin: 5px 0; white-space: pre-wrap; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.badge { border-radius: 99px; padding: 4px 9px; font-size: 11px; font-weight: 500; background: var(--panel-2); color: var(--text-soft); white-space: nowrap; }
.badge.ok { background: var(--success-soft); color: var(--signal); }
.badge.fail { background: var(--danger-soft); color: var(--danger); }
.badge.run { background: var(--warning-soft); color: var(--warning); }
.details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.run-row + .run-row { margin-top: 7px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.metric b { font-size: 22px; display: block; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--edge), var(--shadow-sm); transition: border-color .18s ease; }
.metric:hover { border-color: var(--line-strong); }
.metric b { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; display: block; font-variant-numeric: tabular-nums; }
.metric small { color: var(--muted); }
.memory-content { font-size: 13px !important; }
.memory-content { font-size: 14px !important; }
.memory-key { color: var(--accent); font-family: var(--font-mono); }
.log-view { margin: 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--text-soft); min-height: calc(100vh - 190px); font: 11px/1.65 var(--font-mono); white-space: pre-wrap; overflow: auto; }
.log-meta { color: var(--muted); font-size: 11px; margin: -8px 0 8px; }
.switch-label { color: var(--muted); font-size: 12px; display: flex; gap: 7px; align-items: center; cursor: pointer; }
.log-view { margin: 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--text-soft); min-height: calc(100vh - 190px); font: 12px/1.7 var(--font-mono); white-space: pre-wrap; overflow: auto; }
.log-meta { color: var(--muted); font-size: 12px; margin: -8px 0 8px; }
.switch-label { color: var(--muted); font-size: 13px; display: flex; gap: 7px; align-items: center; cursor: pointer; }
.switch { width: 34px; height: 20px; padding: 2px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); cursor: pointer; }
.switch[data-state="checked"] { background: var(--accent); border-color: var(--accent); }
.switch-thumb { display: block; width: 14px; height: 14px; background: var(--muted); border-radius: 50%; transition: transform .15s, background .15s; }
@ -337,20 +386,21 @@ main { min-width: 0; height: 100vh; display: flex; flex-direction: column; }
.editor-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.editor-head { height: 62px; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.editor-head strong, .editor-head small { display: block; }
.editor-head small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.editor-card textarea { display: block; width: 100%; height: calc(100vh - 275px); min-height: 420px; resize: vertical; border: 0; outline: 0; padding: 18px; background: var(--code-bg); color: var(--text); font: 12px/1.6 var(--font-mono); tab-size: 2; }
.notice { padding: 11px 15px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
.editor-head strong { font-weight: 600; }
.editor-head small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.editor-card textarea { display: block; width: 100%; height: calc(100vh - 275px); min-height: 420px; resize: vertical; border: 0; outline: 0; padding: 18px; background: var(--code-bg); color: var(--text); font: 13px/1.65 var(--font-mono); tab-size: 2; }
.notice { padding: 11px 15px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
code { color: var(--accent); }
#toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; color: var(--text); background: var(--overlay); border: 1px solid var(--line); border-radius: 10px; padding: 11px 15px; font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; box-shadow: var(--shadow); }
#toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; color: var(--text); background: var(--overlay); border: 1px solid var(--line); border-radius: 10px; padding: 11px 15px; font-size: 13px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: none; }
#toast.error { border-color: var(--danger); color: var(--danger); }
.loading, .empty-card { text-align: center; color: var(--muted); padding: 50px; }
.empty-card.compact { padding: 24px 8px; }
.error-text { color: var(--danger) !important; }
.mono { font-family: var(--font-mono); }
.label-caps { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; color: var(--faint); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.cap { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; border-radius: 6px; padding: 2.5px 8px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.label-caps { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; color: var(--faint); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--edge), var(--shadow-sm); }
.cap { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; border-radius: 6px; padding: 3px 8px; }
.cap.signal { color: var(--signal); background: var(--signal-soft); border: 1px solid var(--signal-border); }
.cap.accent { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); }
.cap.danger { color: var(--danger); background: var(--danger-soft); border: 1px solid var(--danger-border); }
@ -359,7 +409,10 @@ code { color: var(--accent); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; animation: spine-pulse 1.6s ease-in-out infinite; }
.pulse-dot.active { background: var(--spine-accent); box-shadow: 0 0 10px var(--spine-accent); }
.pulse-dot.idle { background: var(--spine-signal); animation: none; }
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.pulse-dot, .pulse { animation: none; }
}
@media (max-width: 800px) {
.shell { grid-template-columns: 1fr; }