Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Rescale app shell and workspace chrome

Bitti280e2e1a2281
diff --git a/src/components/Brand.tsx b/src/components/Brand.tsx
index c1a4c0c..665c843 100644
--- a/src/components/Brand.tsx
+++ b/src/components/Brand.tsx
@@ -2,10 +2,9 @@ import { PolStudioLogo } from "./PolStudioLogo";
export function Brand({ compact = false }: { compact?: boolean }) {
return (
- <div className={compact ? "brand brand--compact" : "brand"} aria-label="Pol Studio">
+ <div className={compact ? "brand brand--compact" : "brand"} role="img" aria-label="Pol Studio">
<PolStudioLogo compact={compact} decorative />
{!compact && <span className="brand__edition">BETA</span>}
</div>
);
}
-
diff --git a/src/components/EmptyPlaceholder.tsx b/src/components/EmptyPlaceholder.tsx
index f747614..dcedc32 100644
--- a/src/components/EmptyPlaceholder.tsx
+++ b/src/components/EmptyPlaceholder.tsx
@@ -6,13 +6,25 @@ export function EmptyPlaceholder({ title, copy, icon: Icon = Construction, onBac
}) {
return (
<main className="placeholder-view">
- <button className="back-link" onClick={onBack}><ArrowLeft size={15} /> Project library</button>
+ <button className="back-link" type="button" onClick={onBack}>
+ <ArrowLeft size={16} aria-hidden="true" /> Project library
+ </button>
<div className="placeholder-view__card">
- <span><Icon size={24} /></span>
- <p className="eyebrow">Workspace preview</p>
+ <span aria-hidden="true"><Icon size={28} /></span>
+ <p className="eyebrow">Lives inside a project</p>
<h1>{title}</h1>
<p>{copy}</p>
- <button className="primary-button" onClick={onBack}>Return to projects</button>
+ <ol className="placeholder-view__steps">
+ <li>
+ <b>Open or create a project</b>
+ <span>Describe the video you want in the project library, or open a project folder you already have.</span>
+ </li>
+ <li>
+ <b>Work from the project tabs</b>
+ <span>Timeline, Generator, and References all open along the top of a project, with your files kept together in its folder.</span>
+ </li>
+ </ol>
+ <button className="primary-button" type="button" onClick={onBack}>Go to Projects</button>
</div>
</main>
);
diff --git a/src/components/ProjectWorkspace.tsx b/src/components/ProjectWorkspace.tsx
index 2b6db1a..bd9fee7 100644
--- a/src/components/ProjectWorkspace.tsx
+++ b/src/components/ProjectWorkspace.tsx
@@ -1,4 +1,4 @@
-import { ArrowLeft, BookOpen, ChevronDown, Cloud, Film, Play, Redo2, Save, Share2, Sparkles, Undo2 } from "lucide-react";
+import { ArrowLeft, BookOpen, Cloud, Download, Film, Save, Sparkles } from "lucide-react";
import { useEffect, useState } from "react";
import type { ProjectConfig, ProjectRecord } from "../lib/project";
import { getRuntimeStatus, type ProviderId, type RuntimeStatus } from "../lib/runtime";
@@ -65,14 +65,26 @@ export function ProjectWorkspace({ project, initialView = "timeline", onBack, on
return <div className="project-shell">
<header className="project-topbar">
<button className="icon-button icon-button--strong" onClick={onBack} aria-label="Back to project library"><ArrowLeft size={18} /></button>
- <div className="project-title"><strong>{config.name}</strong><span><Cloud size={11} /> Local project <i>•</i> {dirty ? "Unsaved changes" : "All changes saved"}</span></div>
- <div className="project-history"><button className="icon-button" aria-label="Undo"><Undo2 size={15} /></button><button className="icon-button" aria-label="Redo"><Redo2 size={15} /></button></div>
- <div className="project-topbar__actions"><button className="secondary-button" onClick={() => void save()} disabled={saving}><Save size={14} /> {saving ? "Saving…" : "Save"}</button><button className="secondary-button"><Share2 size={14} /> Share</button><button className="primary-button"><Play size={14} fill="currentColor" /> Export <ChevronDown size={12} /></button></div>
+ <div className="project-title"><strong>{config.name}</strong><span><Cloud size={13} aria-hidden="true" /> Local project</span></div>
+ <p className={`save-state save-state--${dirty ? "dirty" : "saved"}`} aria-live="polite"><i aria-hidden="true" />{dirty ? "Unsaved changes" : "All changes saved"}</p>
+ <div className="project-topbar__actions">
+ {/* Export is not wired to anything yet, so it must not look like a working action. */}
+ <button className="secondary-button" type="button" disabled title="Export isn’t available yet. Finished clips are already written into your project folder.">
+ <Download size={16} aria-hidden="true" /> Export <span className="project-topbar__soon">Soon</span>
+ </button>
+ <button className="primary-button" onClick={() => void save()} disabled={saving}><Save size={16} aria-hidden="true" /> {saving ? "Saving…" : "Save"}</button>
+ </div>
</header>
<nav className="project-nav" aria-label="Project views">
- <div>{([ ["timeline", Film, "Timeline"], ["generator", Sparkles, "Generator"], ["references", BookOpen, "References"] ] as const).map(([id, Icon, label]) => <button key={id} className={view === id ? "active" : ""} onClick={() => setView(id)}><Icon size={14} /> {label}{id === "generator" && <span>{config.generationJobs.filter((job) => job.status === "generating" || job.status === "queued").length}</span>}</button>)}</div>
- <span className="project-nav__meta">{config.settings.aspectRatio} · {config.settings.resolution.toUpperCase()} · {config.settings.frameRate} FPS</span>
+ <div>{([ ["timeline", Film, "Timeline"], ["generator", Sparkles, "Generator"], ["references", BookOpen, "References"] ] as const).map(([id, Icon, label]) => {
+ const running = id === "generator" ? config.generationJobs.filter((job) => job.status === "generating" || job.status === "queued").length : 0;
+ return <button key={id} type="button" className={view === id ? "active" : ""} aria-current={view === id ? "page" : undefined} onClick={() => setView(id)}>
+ <Icon size={18} aria-hidden="true" /> {label}
+ {running > 0 && <span title={`${running} generation${running === 1 ? "" : "s"} running or queued`}>{running}</span>}
+ </button>;
+ })}</div>
+ <span className="project-nav__meta" title="Aspect ratio, resolution, and frame rate for this project">{config.settings.aspectRatio} · {config.settings.resolution.toUpperCase()} · {config.settings.frameRate} FPS</span>
</nav>
<div className={`project-content project-content--${view}`}>
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index 29aaf02..73455f8 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -1,7 +1,7 @@
+import type { LucideIcon } from "lucide-react";
import {
Aperture,
BookImage,
- ChevronDown,
CircleHelp,
FolderKanban,
Settings,
@@ -16,10 +16,17 @@ interface SidebarProps {
onNavigate: (view: WorkspaceView) => void;
}
-const navItems = [
- { id: "library" as const, label: "Projects", icon: FolderKanban },
- { id: "generate" as const, label: "Generate", icon: Sparkles },
- { id: "references" as const, label: "References", icon: BookImage },
+const navItems: Array<{ id: WorkspaceView; label: string; icon: LucideIcon }> = [
+ { id: "library", label: "Projects", icon: FolderKanban },
+ { id: "generate", label: "Generate", icon: Sparkles },
+ { id: "references", label: "References", icon: BookImage },
+];
+
+/* These two are not built yet. They stay visible so the shape of the app is
+ honest, but they are disabled and labelled so nobody clicks a dead control. */
+const notBuiltYet: Array<{ label: string; icon: LucideIcon; title: string }> = [
+ { label: "Help & shortcuts", icon: CircleHelp, title: "Help & shortcuts isn’t available yet." },
+ { label: "Settings", icon: Settings, title: "Settings aren’t available yet." },
];
export function Sidebar({ view, onNavigate }: SidebarProps) {
@@ -34,10 +41,11 @@ export function Sidebar({ view, onNavigate }: SidebarProps) {
<button
className={`nav-item ${view === item.id ? "nav-item--active" : ""}`}
key={item.id}
+ type="button"
onClick={() => onNavigate(item.id)}
aria-current={view === item.id ? "page" : undefined}
>
- <Icon size={17} strokeWidth={1.8} />
+ <Icon size={20} strokeWidth={1.8} aria-hidden="true" />
<span>{item.label}</span>
{item.id === "generate" && <span className="nav-item__badge">AI</span>}
</button>
@@ -46,7 +54,7 @@ export function Sidebar({ view, onNavigate }: SidebarProps) {
</nav>
<div className="sidebar__status">
- <div className="sidebar__status-icon"><Aperture size={17} /></div>
+ <div className="sidebar__status-icon" aria-hidden="true"><Aperture size={20} /></div>
<div>
<strong>Local workspace</strong>
<span>Files stay on this device</span>
@@ -54,15 +62,17 @@ export function Sidebar({ view, onNavigate }: SidebarProps) {
</div>
<div className="sidebar__bottom">
- <button className="utility-button"><CircleHelp size={16} /> Help & shortcuts</button>
- <button className="utility-button"><Settings size={16} /> Settings</button>
- <button className="profile-button" aria-label="Open profile menu">
- <span className="profile-button__avatar">PS</span>
- <span><strong>Pol Studio</strong><small>Creator workspace</small></span>
- <ChevronDown size={14} />
- </button>
+ {notBuiltYet.map((item) => {
+ const Icon = item.icon;
+ return (
+ <button className="utility-button" key={item.label} type="button" disabled title={item.title}>
+ <Icon size={18} aria-hidden="true" />
+ <span>{item.label}</span>
+ <span className="utility-button__soon">Soon</span>
+ </button>
+ );
+ })}
</div>
</aside>
);
}
-
diff --git a/src/components/workspace/AgentDock.tsx b/src/components/workspace/AgentDock.tsx
index 164f541..3c0488d 100644
--- a/src/components/workspace/AgentDock.tsx
+++ b/src/components/workspace/AgentDock.tsx
@@ -1,4 +1,4 @@
-import { ArrowUp, Command, LoaderCircle, Square } from "lucide-react";
+import { ArrowUp, CornerDownLeft, LoaderCircle, Square, TriangleAlert } from "lucide-react";
import { useMemo, useState } from "react";
import { cancelAgentTurn, runAgentTurn, type ProviderId, type ProviderStatus } from "../../lib/runtime";
import type { ProjectRecord } from "../../lib/project";
@@ -21,6 +21,11 @@ export function AgentDock({ context, record, providers, onRecord, onProviderChan
const ready = selected?.state === "ready";
const messages = useMemo(() => record.config.agentConversation.messages.slice(-4), [record.config.agentConversation.messages]);
+ // When Pol can't run, say what is wrong AND what the user can do about it.
+ const blockedDetail = selected && !ready
+ ? [selected.detail, providerNextStep(selected)].filter(Boolean).join(" ")
+ : null;
+
const send = async () => {
const clean = prompt.trim();
if (!clean || !ready || requestId) return;
@@ -42,11 +47,11 @@ export function AgentDock({ context, record, providers, onRecord, onProviderChan
<div className="agent-dock-wrap">
{(messages.length > 0 || error) && <div className="agent-conversation" aria-live="polite">
{messages.map((message) => <p key={message.id} className={`agent-conversation__${message.role}`}><b>{message.role === "user" ? "You" : "Pol"}</b>{message.content}</p>)}
- {error && <p className="agent-conversation__error"><b>Provider unavailable</b>{error}</p>}
+ {error && <p className="agent-conversation__error"><b>Pol</b>Couldn’t finish that request. {error}</p>}
</div>}
<form className="agent-dock" onSubmit={(event) => { event.preventDefault(); void send(); }}>
<span className="agent-dock__identity"><PolStudioLogo compact decorative /><b>Pol</b></span>
- <label className={`agent-provider agent-provider--${selected?.state ?? "unknown"}`} title={selected?.detail}>
+ <label className={`agent-provider agent-provider--${selected?.state ?? "unknown"}`} title={blockedDetail ?? selected?.detail}>
<i />
<select aria-label="Agent provider" value={provider} onChange={(event) => { const next = event.target.value as ProviderId; setProvider(next); onProviderChange(next); }}>
{providers.map((item) => <option value={item.id} key={item.id}>{item.label} · {providerStateLabel(item.state)}</option>)}
@@ -56,17 +61,34 @@ export function AgentDock({ context, record, providers, onRecord, onProviderChan
aria-label={`Ask Pol about ${context}`}
value={prompt}
onChange={(event) => setPrompt(event.target.value)}
- placeholder={ready ? `Ask Pol to refine ${context}, generate a shot, or make an edit…` : selected?.detail ?? "No agent provider is available"}
+ placeholder={ready ? `Ask Pol to refine ${context}, generate a shot, or make an edit…` : blockedDetail ?? "No agent provider is available"}
disabled={!ready || Boolean(requestId)}
/>
- {requestId ? <button type="button" className="agent-cancel" onClick={() => void cancelAgentTurn(requestId)} aria-label="Cancel agent turn"><Square size={13} /></button> : <>
- <span className="agent-dock__hint"><Command size={10} /> Enter</span>
- <button type="submit" disabled={!prompt.trim() || !ready} aria-label="Send to Pol"><ArrowUp size={15} /></button>
+ {requestId ? <button type="button" className="agent-cancel" onClick={() => void cancelAgentTurn(requestId)} aria-label="Cancel agent turn"><Square size={14} /></button> : <>
+ {ready
+ ? <span className="agent-dock__hint"><CornerDownLeft size={14} aria-hidden="true" /> Enter to send</span>
+ : <span className="agent-dock__blocked"><TriangleAlert size={14} aria-hidden="true" /> {selected ? providerStateLabel(selected.state) : "Unavailable"}</span>}
+ <button type="submit" disabled={!prompt.trim() || !ready} aria-label="Send to Pol"><ArrowUp size={16} /></button>
</>}
- {requestId && <LoaderCircle className="agent-busy" size={14} />}
+ {requestId && <LoaderCircle className="agent-busy" size={16} />}
</form>
</div>
);
}
const providerStateLabel = (state: ProviderStatus["state"]) => state === "ready" ? "Ready" : state === "notInstalled" ? "Not installed" : state === "authRequired" ? "Sign in required" : state === "disabled" ? "Disabled" : "Unavailable";
+
+/* Only states with a genuine user action get a next step — never invent one. */
+const providerNextStep = ({ state, label }: ProviderStatus): string => {
+ switch (state) {
+ case "notInstalled":
+ return `Install ${label} and make sure it is on your PATH, then reopen this project.`;
+ case "authRequired":
+ return `Sign in to ${label} in your terminal, then reopen this project.`;
+ case "disabled":
+ return `${label} is switched off for this project.`;
+ case "ready":
+ case "unavailable":
+ return "";
+ }
+};
diff --git a/src/styles/shell.css b/src/styles/shell.css
index abf809f..e89c4b0 100644
--- a/src/styles/shell.css
+++ b/src/styles/shell.css
@@ -31,9 +31,9 @@
.sidebar__label {
padding: 0 var(--space-3);
- margin: 0 0 var(--space-2);
+ margin: 0 0 var(--space-3);
color: var(--text-faint);
- font-size: var(--text-2xs);
+ font-size: var(--text-xs);
font-weight: var(--weight-bold);
line-height: var(--leading-snug);
letter-spacing: var(--tracking-label);
@@ -52,12 +52,13 @@
}
.nav-item {
+ position: relative;
height: var(--control-lg);
border-radius: var(--radius-md);
gap: var(--space-3);
padding: 0 var(--space-3);
margin-bottom: var(--space-1);
- font-size: var(--text-sm);
+ font-size: var(--text-base);
font-weight: var(--weight-semibold);
line-height: var(--leading-snug);
transition: 0.18s ease;
@@ -80,11 +81,11 @@
.nav-item__badge {
margin-left: auto;
- color: #a4b8ff;
- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ color: var(--accent-bright);
+ font: var(--weight-semibold) var(--text-2xs) / 1 var(--font-mono);
border: 1px solid rgba(85, 124, 245, 0.3);
background: rgba(50, 87, 199, 0.13);
- padding: var(--space-1);
+ padding: var(--space-1) var(--space-2);
border-radius: var(--radius-xs);
}
@@ -106,7 +107,7 @@
display: grid;
place-items: center;
border-radius: var(--radius-md);
- color: #9db3ff;
+ color: var(--accent-bright);
background: rgba(58, 99, 224, 0.13);
}
@@ -116,17 +117,17 @@
}
.sidebar__status strong {
- font-size: var(--text-sm);
+ font-size: var(--text-base);
font-weight: var(--weight-semibold);
line-height: var(--leading-snug);
- color: var(--text-secondary);
+ color: var(--text-primary);
}
.sidebar__status span {
margin-top: var(--space-1);
- font-size: var(--text-xs);
+ font-size: var(--text-sm);
line-height: var(--leading-snug);
- color: var(--text-faint);
+ color: var(--text-muted);
}
.sidebar__bottom {
@@ -135,69 +136,35 @@
}
.utility-button {
- min-height: var(--control-sm);
+ min-height: var(--control-md);
gap: var(--space-3);
padding: var(--space-2) var(--space-3);
- font-size: var(--text-sm);
+ font-size: var(--text-base);
+ font-weight: var(--weight-medium);
+ line-height: var(--leading-snug);
border-radius: var(--radius-sm);
}
-.utility-button:hover {
+.utility-button:hover:not(:disabled) {
color: var(--text-secondary);
background: rgba(255, 255, 255, 0.03);
}
-.profile-button {
- width: 100%;
- min-height: var(--control-lg);
- border: 0;
- border-radius: var(--radius-md);
- padding: var(--space-2);
- margin-top: var(--space-2);
- display: grid;
- grid-template-columns: var(--control-md) 1fr auto;
- align-items: center;
- gap: var(--space-3);
- text-align: left;
- background: rgba(255, 255, 255, 0.025);
-}
-
-.profile-button:hover {
- background: rgba(255, 255, 255, 0.05);
-}
-
-.profile-button__avatar {
- width: var(--control-md);
- height: var(--control-md);
- display: grid;
- place-items: center;
- border-radius: var(--radius-md);
- background: #1c2850;
- color: #adbfff;
- font-size: var(--text-xs);
- font-weight: var(--weight-bold);
-}
-
-.profile-button strong,
-.profile-button small {
- display: block;
- min-width: 0;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
-}
-
-.profile-button strong {
- font-size: var(--text-sm);
- line-height: var(--leading-snug);
- color: var(--text-secondary);
+/* Not built yet — greyed out and labelled rather than pretending to work. */
+.utility-button:disabled {
+ color: var(--text-faint);
+ background: transparent;
}
-.profile-button small {
- margin-top: 2px;
+.utility-button__soon {
+ margin-left: auto;
+ padding: var(--space-1) var(--space-2);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-xs);
color: var(--text-faint);
- font-size: var(--text-xs);
- line-height: var(--leading-snug);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ letter-spacing: var(--tracking-label);
+ text-transform: uppercase;
}
/* --- Brand ----------------------------------------------------------------- */
@@ -210,13 +177,20 @@
padding: 0 var(--space-2);
}
+/* Icon-only lockup for narrow rails: the ticket mark, centred, no edition tag. */
+.brand--compact {
+ gap: 0;
+ padding: 0;
+ justify-content: center;
+}
+
.brand__edition {
font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
letter-spacing: var(--tracking-label);
color: var(--text-faint);
border: 1px solid var(--line-strong);
border-radius: var(--radius-xs);
- padding: var(--space-1);
+ padding: var(--space-1) var(--space-2);
}
/* --- Logo mark (decorative artwork — proportions preserved) ----------------- */
@@ -336,8 +310,8 @@
}
.placeholder-view__card {
- width: min(560px, 90%);
- margin: 18vh auto 0;
+ width: min(620px, 100%);
+ margin: clamp(var(--space-7), 9vh, var(--space-9)) auto 0;
text-align: center;
}
@@ -347,7 +321,7 @@
margin: 0 auto var(--space-5);
display: grid;
place-items: center;
- color: #9db3ff;
+ color: var(--accent-bright);
border: 1px solid rgba(91, 126, 231, 0.27);
border-radius: var(--radius-xl);
background: rgba(44, 76, 177, 0.13);
@@ -357,15 +331,68 @@
font-size: var(--text-2xl);
font-weight: var(--weight-semibold);
letter-spacing: var(--tracking-hero);
- margin: var(--space-2) 0;
+ margin: var(--space-2) 0 var(--space-3);
}
.placeholder-view__card > p:not(.eyebrow) {
- color: var(--text-muted);
+ color: var(--text-secondary);
font-size: var(--text-base);
line-height: var(--leading-relaxed);
margin: 0 auto var(--space-5);
- max-width: 460px;
+ max-width: 480px;
+}
+
+/* The route is project-scoped: spell out how to actually get there. */
+.placeholder-view__steps {
+ max-width: 480px;
+ margin: 0 auto var(--space-5);
+ padding: var(--space-4) var(--space-5);
+ list-style: none;
+ counter-reset: placeholder-step;
+ text-align: left;
+ border: 1px solid var(--line);
+ border-radius: var(--radius-lg);
+ background: rgba(255, 255, 255, 0.02);
+}
+
+.placeholder-view__steps li {
+ display: grid;
+ grid-template-columns: var(--space-5) minmax(0, 1fr);
+ align-items: start;
+ gap: var(--space-1) var(--space-3);
+ counter-increment: placeholder-step;
+}
+
+.placeholder-view__steps li + li {
+ margin-top: var(--space-4);
+ padding-top: var(--space-4);
+ border-top: 1px solid var(--line);
+}
+
+.placeholder-view__steps li::before {
+ content: counter(placeholder-step);
+ grid-row: 1 / span 2;
+ width: var(--space-5);
+ height: var(--space-5);
+ display: grid;
+ place-items: center;
+ border-radius: 50%;
+ color: var(--accent-bright);
+ background: var(--accent-soft);
+ font: var(--weight-bold) var(--text-2xs) / 1 var(--font-mono);
+}
+
+.placeholder-view__steps b {
+ color: var(--text-primary);
+ font-size: var(--text-base);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+}
+
+.placeholder-view__steps span {
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
}
/* --- Responsive ------------------------------------------------------------ */
@@ -385,17 +412,30 @@
justify-content: center;
}
+ /* Swap to the ticket-only mark instead of clipping the wordmark. */
.brand .pol-logo {
- width: 56px;
+ width: 51px;
+ }
+
+ .brand .pol-logo__ticket {
+ width: 40px;
+ flex-basis: 40px;
+ }
+
+ .brand .pol-logo__pols {
+ font-size: var(--text-2xs);
+ letter-spacing: -1.1px;
+ }
+
+ .brand .pol-logo__tudio {
+ display: none;
}
.brand__edition,
.sidebar__label,
.nav-item span:not(.nav-item__badge),
.sidebar__status,
- .utility-button,
- .profile-button > span:not(.profile-button__avatar),
- .profile-button > svg {
+ .sidebar__bottom {
display: none;
}
@@ -406,12 +446,10 @@
.nav-item__badge {
position: absolute;
- margin: -26px 0 0 30px;
- }
-
- .profile-button {
- grid-template-columns: 1fr;
- justify-items: center;
+ top: var(--space-1);
+ right: var(--space-1);
+ margin: 0;
+ padding: 1px var(--space-1);
}
}
diff --git a/src/styles/workspace.css b/src/styles/workspace.css
index 410fe63..af8ad50 100644
--- a/src/styles/workspace.css
+++ b/src/styles/workspace.css
@@ -39,34 +39,62 @@
}
.project-title strong {
- font-size: var(--text-base);
+ font-size: var(--text-md);
font-weight: var(--weight-semibold);
line-height: var(--leading-snug);
color: var(--text-primary);
}
.project-title span {
- margin-top: 2px;
- color: var(--text-faint);
- font-size: var(--text-xs);
+ margin-top: var(--space-1);
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ color: var(--text-muted);
+ font-size: var(--text-sm);
line-height: var(--leading-snug);
}
-.project-title span svg {
- color: var(--success);
- vertical-align: -2px;
+/* Save feedback is the one piece of state the user needs at a glance. */
+.save-state {
+ flex: 0 0 auto;
+ margin: 0;
+ min-height: var(--control-sm);
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-3);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-pill);
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+ white-space: nowrap;
}
-.project-title span i {
- margin: 0 var(--space-1);
- color: var(--text-faint);
+.save-state i {
+ width: 8px;
+ height: 8px;
+ flex: 0 0 auto;
+ border-radius: 50%;
}
-.project-history {
- display: flex;
- gap: var(--space-1);
- padding-left: var(--space-3);
- border-left: 1px solid var(--line);
+.save-state--saved {
+ color: var(--text-secondary);
+}
+
+.save-state--saved i {
+ background: var(--success);
+}
+
+.save-state--dirty {
+ color: var(--warning);
+ border-color: rgba(227, 168, 98, 0.35);
+ background: rgba(227, 168, 98, 0.08);
+}
+
+.save-state--dirty i {
+ background: var(--warning);
}
.project-topbar__actions {
@@ -76,6 +104,21 @@
margin-left: auto;
}
+/* Match the primary action height so the row reads as one band of controls. */
+.project-topbar__actions .secondary-button {
+ min-height: var(--control-lg);
+}
+
+.project-topbar__soon {
+ padding: var(--space-1) var(--space-2);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-xs);
+ color: var(--text-faint);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ letter-spacing: var(--tracking-label);
+ text-transform: uppercase;
+}
+
/* --- View navigation ------------------------------------------------------- */
.project-nav {
@@ -96,8 +139,8 @@
.project-nav button {
position: relative;
height: 100%;
- min-height: var(--control-md);
- min-width: 128px;
+ min-height: var(--control-lg);
+ min-width: 136px;
padding: 0 var(--space-4);
display: flex;
align-items: center;
@@ -106,42 +149,46 @@
border: 0;
color: var(--text-muted);
background: transparent;
- font-size: var(--text-sm);
+ font-size: var(--text-base);
font-weight: var(--weight-semibold);
line-height: var(--leading-snug);
+ transition: 0.16s ease;
}
.project-nav button:hover {
color: var(--text-secondary);
+ background: rgba(255, 255, 255, 0.03);
}
.project-nav button.active {
color: var(--text-primary);
+ background: rgba(60, 105, 239, 0.09);
}
.project-nav button.active::after {
content: "";
position: absolute;
- height: 2px;
+ height: 3px;
inset: auto var(--space-3) -1px;
- border-radius: 2px 2px 0 0;
- background: #708df0;
+ border-radius: 3px 3px 0 0;
+ background: var(--accent-bright);
}
.project-nav button span {
- min-width: 20px;
- padding: 2px var(--space-1);
+ min-width: 22px;
+ padding: 2px var(--space-2);
border: 1px solid rgba(104, 134, 231, 0.26);
border-radius: var(--radius-pill);
- color: #a8b8ef;
+ color: var(--accent-bright);
background: rgba(70, 99, 194, 0.15);
- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ font: var(--weight-medium) var(--text-2xs) / 1.4 var(--font-mono);
}
.project-nav__meta {
margin-left: auto;
- color: var(--text-faint);
- font: var(--weight-medium) var(--text-2xs) / var(--leading-snug) var(--font-mono);
+ padding-left: var(--space-4);
+ color: var(--text-muted);
+ font: var(--weight-medium) var(--text-xs) / var(--leading-snug) var(--font-mono);
}
/* --- Content region -------------------------------------------------------- */
@@ -175,7 +222,7 @@
display: flex;
align-items: center;
gap: var(--space-3);
- padding: 0 var(--space-2) 0 var(--space-4);
+ padding: 0 var(--space-2) 0 var(--space-3);
border: 1px solid rgba(99, 127, 219, 0.34);
border-radius: var(--radius-lg);
background: linear-gradient(90deg, #121827, #11151f);
@@ -190,17 +237,19 @@
}
.agent-dock__identity {
+ flex: 0 0 auto;
display: flex;
gap: var(--space-2);
align-items: center;
padding-right: var(--space-3);
border-right: 1px solid var(--line);
- color: #8ea6f2;
- font-size: var(--text-sm);
+ color: var(--text-muted);
+ font-size: var(--text-base);
}
.agent-dock__identity b {
- color: #cbd5fa;
+ color: var(--text-secondary);
+ font-weight: var(--weight-semibold);
}
.agent-dock input {
@@ -209,7 +258,7 @@
height: 100%;
border: 0;
outline: 0;
- color: var(--text-secondary);
+ color: var(--text-primary);
background: none;
font-size: var(--text-base);
}
@@ -219,11 +268,30 @@
}
.agent-dock__hint {
+ flex: 0 0 auto;
display: flex;
align-items: center;
gap: var(--space-1);
color: var(--text-faint);
- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+ white-space: nowrap;
+}
+
+/* Says what is wrong and what the user can do, instead of a silent dead input. */
+.agent-dock__blocked {
+ flex: 0 0 auto;
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ max-width: 260px;
+ color: var(--warning);
+ font-size: var(--text-xs);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
.agent-dock button {
@@ -260,6 +328,7 @@
/* --- Provider selector ----------------------------------------------------- */
.agent-provider {
+ flex: 0 0 auto;
min-height: var(--control-sm);
display: flex;
align-items: center;
@@ -271,54 +340,77 @@
}
.agent-provider i {
- width: 6px;
- height: 6px;
+ width: 8px;
+ height: 8px;
flex: 0 0 auto;
border-radius: 50%;
+ background: var(--text-faint);
+}
+
+/* Provider state is real information — every state gets a truthful colour. */
+.agent-provider--ready i {
background: var(--success);
+ box-shadow: 0 0 8px rgba(110, 207, 149, 0.55);
}
-.agent-provider--disabled i,
-.agent-provider--notInstalled i,
-.agent-provider--unavailable i {
+.agent-provider--authRequired i,
+.agent-provider--notInstalled i {
background: var(--warning);
}
+.agent-provider--unavailable i {
+ background: var(--danger);
+}
+
+.agent-provider--disabled i,
+.agent-provider--unknown i {
+ background: var(--text-faint);
+}
+
+.agent-provider--authRequired,
+.agent-provider--notInstalled {
+ border-color: rgba(227, 168, 98, 0.32);
+}
+
+.agent-provider--unavailable {
+ border-color: rgba(236, 125, 134, 0.3);
+}
+
.agent-provider select {
- max-width: 160px;
+ max-width: 200px;
height: var(--control-sm);
border: 0;
outline: 0;
- color: var(--text-muted);
+ color: var(--text-secondary);
background: transparent;
font-size: var(--text-sm);
}
-/* --- Conversation overlay + toast ------------------------------------------ */
+/* --- Conversation overlay -------------------------------------------------- */
.agent-conversation {
position: absolute;
left: 0;
right: 0;
- bottom: 60px;
- max-height: 220px;
+ bottom: calc(var(--control-lg) + var(--space-3));
+ max-height: 280px;
overflow: auto;
padding: var(--space-2);
border: 1px solid #303749;
border-radius: var(--radius-md);
- background: rgba(16, 21, 31, 0.8);
+ background: rgba(16, 21, 31, 0.86);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
backdrop-filter: blur(12px);
}
.agent-conversation p {
display: grid;
- grid-template-columns: 48px minmax(0, 1fr);
- gap: var(--space-2);
+ grid-template-columns: 56px minmax(0, 1fr);
+ gap: var(--space-3);
margin: 0;
- padding: var(--space-2);
+ padding: var(--space-3);
color: var(--text-secondary);
- font-size: var(--text-sm);
+ font-size: var(--text-base);
line-height: var(--leading-normal);
}
@@ -327,8 +419,20 @@
}
.agent-conversation b {
- color: #8098e0;
+ color: var(--accent-bright);
font-size: var(--text-xs);
+ font-weight: var(--weight-bold);
+ line-height: var(--leading-normal);
+ letter-spacing: var(--tracking-label);
+ text-transform: uppercase;
+}
+
+.agent-conversation__user b {
+ color: var(--text-muted);
+}
+
+.agent-conversation__assistant b {
+ color: var(--accent-bright);
}
.agent-conversation__error,
@@ -336,20 +440,6 @@
color: var(--danger) !important;
}
-.agent-toast {
- position: absolute;
- left: 50%;
- bottom: 60px;
- transform: translateX(-50%);
- padding: var(--space-2) var(--space-3);
- border: 1px solid #303749;
- border-radius: var(--radius-sm);
- color: #c5cfec;
- background: #161c29;
- box-shadow: var(--shadow-sm);
- font-size: var(--text-sm);
-}
-
/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
@@ -358,7 +448,7 @@
}
.project-nav button {
- min-width: 112px;
+ min-width: 120px;
padding: 0 var(--space-3);
}
}