Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Add CSS branding and initial image references

Bitti8d74cabff564
diff --git a/public/logo.png b/public/logo.png
deleted file mode 100644
index 418bf67..0000000
Binary files a/public/logo.png and /dev/null differ
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 4d28571..c4afac0 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -204,6 +204,13 @@ struct ImportedReferenceImage {
mime_type: String,
}
+#[derive(Debug, Clone, Serialize)]
+#[serde(rename_all = "camelCase")]
+struct PendingReferenceImage {
+ source_path: String,
+ name: String,
+}
+
fn normalize_project_path(value: &str) -> Result<String, String> {
if value.is_empty() || value.contains('\0') {
return Err("Project paths cannot be empty or contain null bytes.".into());
@@ -561,31 +568,38 @@ fn choose_project_folder(app: AppHandle) -> Result<Option<ProjectRecord>, String
}
#[tauri::command]
-fn choose_reference_image(
- app: AppHandle,
- folder_path: String,
-) -> Result<Option<ImportedReferenceImage>, String> {
+fn choose_initial_reference_images(app: AppHandle) -> Result<Vec<PendingReferenceImage>, String> {
let selected = app
.dialog()
.file()
- .set_title("Add an image reference")
+ .set_title("Add references to the project brief")
.add_filter("Images", &["png", "jpg", "jpeg", "webp"])
- .blocking_pick_file();
- let Some(selected) = selected else {
- return Ok(None);
- };
- let source = selected
- .into_path()
- .map_err(|error| format!("Could not access selected image: {error}"))?;
+ .blocking_pick_files()
+ .unwrap_or_default();
+ selected
+ .into_iter()
+ .map(|path| {
+ let source = path
+ .into_path()
+ .map_err(|error| format!("Could not access selected image: {error}"))?;
+ validate_reference_image(&source)?;
+ let name = source
+ .file_name()
+ .and_then(|value| value.to_str())
+ .unwrap_or("Image reference")
+ .to_string();
+ Ok(PendingReferenceImage {
+ source_path: source.to_string_lossy().into_owned(),
+ name,
+ })
+ })
+ .collect()
+}
+
+fn validate_reference_image(source: &Path) -> Result<(String, &'static str), String> {
if !source.is_file() {
return Err("The selected image does not exist.".into());
}
- let project_folder = PathBuf::from(folder_path)
- .canonicalize()
- .map_err(|error| format!("Could not resolve project folder: {error}"))?;
- let references_folder = project_folder.join("references");
- fs::create_dir_all(&references_folder)
- .map_err(|error| format!("Could not prepare references folder: {error}"))?;
let extension = source
.extension()
.and_then(|value| value.to_str())
@@ -597,6 +611,17 @@ fn choose_reference_image(
"webp" => "image/webp",
_ => return Err("Choose a PNG, JPEG, or WebP image.".into()),
};
+ Ok((extension, mime_type))
+}
+
+fn copy_reference_image(
+ source: &Path,
+ project_folder: &Path,
+) -> Result<ImportedReferenceImage, String> {
+ let (extension, mime_type) = validate_reference_image(source)?;
+ let references_folder = project_folder.join("references");
+ fs::create_dir_all(&references_folder)
+ .map_err(|error| format!("Could not prepare references folder: {error}"))?;
let display_name = source
.file_stem()
.and_then(|value| value.to_str())
@@ -610,13 +635,39 @@ fn choose_reference_image(
destination = references_folder.join(&file_name);
suffix += 1;
}
- fs::copy(&source, &destination)
+ fs::copy(source, &destination)
.map_err(|error| format!("Could not copy image into this project: {error}"))?;
- Ok(Some(ImportedReferenceImage {
+ Ok(ImportedReferenceImage {
name: display_name.to_string(),
relative_path: format!("references/{file_name}"),
mime_type: mime_type.into(),
- }))
+ })
+}
+
+#[tauri::command]
+fn choose_reference_image(
+ app: AppHandle,
+ folder_path: String,
+) -> Result<Option<ImportedReferenceImage>, String> {
+ let selected = app
+ .dialog()
+ .file()
+ .set_title("Add an image reference")
+ .add_filter("Images", &["png", "jpg", "jpeg", "webp"])
+ .blocking_pick_file();
+ let Some(selected) = selected else {
+ return Ok(None);
+ };
+ let source = selected
+ .into_path()
+ .map_err(|error| format!("Could not access selected image: {error}"))?;
+ if !source.is_file() {
+ return Err("The selected image does not exist.".into());
+ }
+ let project_folder = PathBuf::from(folder_path)
+ .canonicalize()
+ .map_err(|error| format!("Could not resolve project folder: {error}"))?;
+ copy_reference_image(&source, &project_folder).map(Some)
}
#[tauri::command]
@@ -624,6 +675,7 @@ fn create_project(
app: AppHandle,
parent_directory: Option<String>,
config: ProjectConfig,
+ initial_reference_paths: Option<Vec<String>>,
) -> Result<Option<ProjectRecord>, String> {
let config = validate_and_normalize_config(config)?;
let parent = match parent_directory {
@@ -640,11 +692,25 @@ fn create_project(
None => return Ok(None),
},
};
- create_project_in(&parent, &config).map(Some)
+ let reference_paths = initial_reference_paths
+ .unwrap_or_default()
+ .into_iter()
+ .map(PathBuf::from)
+ .collect::<Vec<_>>();
+ create_project_in_with_references(&parent, &config, &reference_paths).map(Some)
}
+#[cfg(test)]
fn create_project_in(parent: &Path, config: &ProjectConfig) -> Result<ProjectRecord, String> {
- let config = validate_and_normalize_config(config.clone())?;
+ create_project_in_with_references(parent, config, &[])
+}
+
+fn create_project_in_with_references(
+ parent: &Path,
+ config: &ProjectConfig,
+ reference_paths: &[PathBuf],
+) -> Result<ProjectRecord, String> {
+ let mut config = validate_and_normalize_config(config.clone())?;
if !parent.is_dir() {
return Err("The selected parent folder does not exist.".into());
}
@@ -661,7 +727,36 @@ fn create_project_in(parent: &Path, config: &ProjectConfig) -> Result<ProjectRec
fs::create_dir_all(project_folder.join(child))
.map_err(|error| format!("Could not create {child} folder: {error}"))?;
}
- if let Err(error) = write_project(&project_folder, &config) {
+ let prepare_result = (|| -> Result<(), String> {
+ for (index, source) in reference_paths.iter().enumerate() {
+ let imported = copy_reference_image(source, &project_folder)?;
+ let mut reference_id = format!("ref-initial-{}", index + 1);
+ let mut suffix = 2;
+ while config
+ .references
+ .iter()
+ .any(|reference| reference.id == reference_id)
+ {
+ reference_id = format!("ref-initial-{}-{suffix}", index + 1);
+ suffix += 1;
+ }
+ config.references.push(ReusableReference {
+ id: reference_id.clone(),
+ kind: "image".into(),
+ name: imported.name,
+ description: "Visual reference supplied with the initial project brief.".into(),
+ content: None,
+ relative_path: Some(imported.relative_path),
+ intended_use: vec!["style".into()],
+ created_at: config.created_at.clone(),
+ });
+ if let Some(job) = config.generation_jobs.first_mut() {
+ job.reference_ids.push(reference_id);
+ }
+ }
+ write_project(&project_folder, &config)
+ })();
+ if let Err(error) = prepare_result {
let _ = fs::remove_dir_all(&project_folder);
return Err(error);
}
@@ -745,6 +840,7 @@ pub fn run() {
.invoke_handler(tauri::generate_handler![
open_project,
choose_project_folder,
+ choose_initial_reference_images,
choose_reference_image,
create_project,
save_project,
@@ -920,6 +1016,37 @@ mod tests {
.contains("unknown reference"));
}
+ #[test]
+ fn initial_reference_images_are_copied_and_bound_to_the_first_draft() {
+ let root = tempfile::tempdir().unwrap();
+ let source = root.path().join("mood board.webp");
+ fs::write(&source, b"fixture-image").unwrap();
+ let config = fixture();
+
+ let created =
+ create_project_in_with_references(root.path(), &config, std::slice::from_ref(&source))
+ .unwrap();
+ let reference = created
+ .config
+ .references
+ .iter()
+ .find(|reference| reference.id == "ref-initial-1")
+ .unwrap();
+
+ assert_eq!(reference.kind, "image");
+ assert_eq!(reference.intended_use, vec!["style"]);
+ assert!(created
+ .config
+ .generation_jobs
+ .first()
+ .unwrap()
+ .reference_ids
+ .contains(&reference.id));
+ assert!(Path::new(&created.folder_path)
+ .join(reference.relative_path.as_ref().unwrap())
+ .is_file());
+ }
+
#[test]
fn sanitizes_folder_names() {
assert_eq!(safe_folder_name(" Launch: Film? "), "Launch- Film-");
diff --git a/src/App.test.tsx b/src/App.test.tsx
index 01aa7e0..f2294b8 100644
--- a/src/App.test.tsx
+++ b/src/App.test.tsx
@@ -11,6 +11,8 @@ describe("project library controls", () => {
it("focuses search with Ctrl/Cmd+K and switches between grid and list", async () => {
const { container } = render(<App />);
await screen.findByText("Northern Light — Brand Film");
+ expect(container.querySelector(".brand .pol-logo")).not.toBeNull();
+ expect(container.querySelector(".brand img")).toBeNull();
const search = screen.getByRole("textbox", { name: "Search projects" });
fireEvent.keyDown(window, { key: "k", ctrlKey: true });
diff --git a/src/components/Brand.tsx b/src/components/Brand.tsx
index 62cd8df..c1a4c0c 100644
--- a/src/components/Brand.tsx
+++ b/src/components/Brand.tsx
@@ -1,9 +1,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="brand__lens">
- <img src="/logo.png" alt="Pol Studio" />
- </div>
+ <PolStudioLogo compact={compact} decorative />
{!compact && <span className="brand__edition">BETA</span>}
</div>
);
diff --git a/src/components/PolStudioLogo.tsx b/src/components/PolStudioLogo.tsx
new file mode 100644
index 0000000..33eedfd
--- /dev/null
+++ b/src/components/PolStudioLogo.tsx
@@ -0,0 +1,24 @@
+interface PolStudioLogoProps {
+ compact?: boolean;
+ decorative?: boolean;
+ className?: string;
+}
+
+export function PolStudioLogo({ compact = false, decorative = false, className = "" }: PolStudioLogoProps) {
+ const classes = ["pol-logo", compact ? "pol-logo--compact" : "", className].filter(Boolean).join(" ");
+
+ return (
+ <span
+ className={classes}
+ role={decorative ? undefined : "img"}
+ aria-label={decorative ? undefined : "Pol Studio"}
+ aria-hidden={decorative || undefined}
+ >
+ <span className="pol-logo__ticket">
+ <span className="pol-logo__perforations" aria-hidden="true"><i /><i /><i /><i /></span>
+ <span className="pol-logo__pols">PolS</span>
+ </span>
+ {!compact && <span className="pol-logo__tudio">tudio</span>}
+ </span>
+ );
+}
diff --git a/src/components/PromptComposer.tsx b/src/components/PromptComposer.tsx
index db6ad56..8b3493c 100644
--- a/src/components/PromptComposer.tsx
+++ b/src/components/PromptComposer.tsx
@@ -1,7 +1,9 @@
-import { ArrowUp, Clapperboard, Clock3, Monitor, Sparkles, WandSparkles } from "lucide-react";
+import { ArrowUp, Clapperboard, Clock3, ImagePlus, Monitor, WandSparkles, X } from "lucide-react";
import { useState } from "react";
+import { chooseInitialReferenceImages, isTauri } from "../lib/persistence";
import type { AspectRatio, CreateProjectInput, Resolution } from "../lib/project";
import { projectNameFromPrompt } from "../lib/project";
+import { PolStudioLogo } from "./PolStudioLogo";
interface PromptComposerProps {
busy: boolean;
@@ -19,6 +21,18 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {
const [aspectRatio, setAspectRatio] = useState<AspectRatio>("16:9");
const [resolution, setResolution] = useState<Resolution>("1080p");
const [duration, setDuration] = useState(60);
+ const [referenceImages, setReferenceImages] = useState<NonNullable<CreateProjectInput["referenceImages"]>>([]);
+ const [referenceError, setReferenceError] = useState<string | null>(null);
+
+ const addReferenceImages = async () => {
+ setReferenceError(null);
+ try {
+ const selected = await chooseInitialReferenceImages();
+ setReferenceImages((current) => [...current, ...selected.filter((image) => !current.some((item) => item.sourcePath === image.sourcePath))]);
+ } catch (reason) {
+ setReferenceError(reason instanceof Error ? reason.message : String(reason));
+ }
+ };
const submit = async () => {
if (!prompt.trim() || busy) return;
@@ -28,6 +42,7 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {
aspectRatio,
resolution,
targetDurationSeconds: duration,
+ referenceImages,
});
};
@@ -41,7 +56,7 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {
</div>
<div className="composer">
<div className="composer__input-row">
- <Sparkles className="composer__spark" size={19} />
+ <PolStudioLogo compact decorative className="composer__brand-mark" />
<textarea
value={prompt}
onChange={(event) => setPrompt(event.target.value)}
@@ -57,6 +72,10 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {
<span className="sr-only">Create project</span>
</button>
</div>
+ {(referenceImages.length > 0 || referenceError) && <div className="composer__references" aria-label="Initial reference images">
+ {referenceImages.map((image) => <span className="composer__reference" key={image.sourcePath}><ImagePlus size={12} /><b>{image.name}</b><button onClick={() => setReferenceImages((current) => current.filter((item) => item.sourcePath !== image.sourcePath))} aria-label={`Remove ${image.name}`}><X size={11} /></button></span>)}
+ {referenceError && <small role="alert">{referenceError}</small>}
+ </div>}
<div className="composer__settings">
<label><Monitor size={14} /><span>Format</span>
<select value={aspectRatio} onChange={(event) => setAspectRatio(event.target.value as AspectRatio)}>
@@ -75,6 +94,8 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {
<option value={15}>15 sec</option><option value={30}>30 sec</option><option value={60}>1 min</option><option value={90}>90 sec</option>
</select>
</label>
+ <span className="composer__divider" />
+ <button className="composer__attach" onClick={() => void addReferenceImages()} disabled={busy || !isTauri()} title={isTauri() ? "Add PNG, JPEG, or WebP references" : "Reference image import is available in the desktop app"}><ImagePlus size={13} /> References{referenceImages.length > 0 && <b>{referenceImages.length}</b>}</button>
<span className="composer__hint">⌘ Enter to create</span>
</div>
</div>
diff --git a/src/components/workspace/AgentDock.tsx b/src/components/workspace/AgentDock.tsx
index 59b9ecf..164f541 100644
--- a/src/components/workspace/AgentDock.tsx
+++ b/src/components/workspace/AgentDock.tsx
@@ -1,7 +1,8 @@
-import { ArrowUp, Command, LoaderCircle, Sparkles, Square } from "lucide-react";
+import { ArrowUp, Command, LoaderCircle, Square } from "lucide-react";
import { useMemo, useState } from "react";
import { cancelAgentTurn, runAgentTurn, type ProviderId, type ProviderStatus } from "../../lib/runtime";
import type { ProjectRecord } from "../../lib/project";
+import { PolStudioLogo } from "../PolStudioLogo";
export function AgentDock({ context, record, providers, onRecord, onProviderChange }: {
context: string;
@@ -44,7 +45,7 @@ export function AgentDock({ context, record, providers, onRecord, onProviderChan
{error && <p className="agent-conversation__error"><b>Provider unavailable</b>{error}</p>}
</div>}
<form className="agent-dock" onSubmit={(event) => { event.preventDefault(); void send(); }}>
- <span className="agent-dock__identity"><Sparkles size={15} /><b>Pol</b></span>
+ <span className="agent-dock__identity"><PolStudioLogo compact decorative /><b>Pol</b></span>
<label className={`agent-provider agent-provider--${selected?.state ?? "unknown"}`} title={selected?.detail}>
<i />
<select aria-label="Agent provider" value={provider} onChange={(event) => { const next = event.target.value as ProviderId; setProvider(next); onProviderChange(next); }}>
diff --git a/src/lib/persistence.ts b/src/lib/persistence.ts
index 0e979de..247161e 100644
--- a/src/lib/persistence.ts
+++ b/src/lib/persistence.ts
@@ -4,6 +4,7 @@ import {
parseProjectConfig,
seedProjectWorkspace,
type CreateProjectInput,
+ type PendingReferenceImage,
type ProjectConfig,
type ProjectRecord,
} from "./project";
@@ -113,12 +114,18 @@ export async function chooseAndOpenProject(): Promise<ProjectRecord | null> {
return record;
}
+export async function chooseInitialReferenceImages(): Promise<PendingReferenceImage[]> {
+ if (!isTauri()) return [];
+ return invoke<PendingReferenceImage[]>("choose_initial_reference_images");
+}
+
export async function createProject(input: CreateProjectInput): Promise<ProjectRecord | null> {
const config = createProjectConfig(input);
if (isTauri()) {
const value = await invoke<ProjectRecord | null>("create_project", {
parentDirectory: input.parentDirectory ?? null,
config,
+ initialReferencePaths: input.referenceImages?.map((image) => image.sourcePath) ?? [],
});
if (!value) return null;
const record = { ...value, config: parseProjectConfig(value.config) };
diff --git a/src/lib/project.ts b/src/lib/project.ts
index e229d1f..be22bdb 100644
--- a/src/lib/project.ts
+++ b/src/lib/project.ts
@@ -159,6 +159,7 @@ export type ProviderSetting = z.infer<typeof providerSettingSchema>;
export type ProjectConfig = z.infer<typeof projectConfigSchema>;
export interface ProjectRecord { folderPath: string; config: ProjectConfig }
+export interface PendingReferenceImage { sourcePath: string; name: string }
export interface CreateProjectInput {
name: string;
prompt: string;
@@ -166,6 +167,7 @@ export interface CreateProjectInput {
resolution: Resolution;
targetDurationSeconds: number;
parentDirectory?: string;
+ referenceImages?: PendingReferenceImage[];
}
export function compileMiniMaxH3Prompt(creativeBrief: string): string {
diff --git a/src/styles/app.css b/src/styles/app.css
index efbb2d4..d950033 100644
--- a/src/styles/app.css
+++ b/src/styles/app.css
@@ -33,8 +33,19 @@ button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-
.app-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; background: radial-gradient(circle at 72% -20%, rgba(49, 76, 153, 0.11), transparent 37%), var(--bg); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 218px; padding: 22px 14px 16px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(9, 11, 16, 0.96); }
.brand { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 7px; }
-.brand__lens { width: 114px; height: 29px; overflow: hidden; border-radius: 5px; background: #fafafa; position: relative; }
-.brand__lens img { position: absolute; width: 150px; max-width: none; height: 150px; object-fit: cover; left: -19px; top: -60px; }
+.pol-logo { width: 114px; height: 29px; flex: 0 0 auto; display: inline-flex; align-items: center; overflow: hidden; padding: 4px 5px; border: 1px solid rgba(7,18,46,.09); border-radius: 5px; color: #07132f; background: linear-gradient(180deg,#fff,#f5f7fb); box-shadow: inset 0 1px #fff, 0 2px 8px #0002; white-space: nowrap; }
+.pol-logo__ticket { position: relative; z-index: 1; width: 51px; height: 21px; flex: 0 0 51px; display: flex; align-items: center; border-radius: 4px 1px 1px 4px; color: white; background: linear-gradient(145deg,#0878f5 0%,#075be3 48%,#153bc5 100%); box-shadow: inset 0 1px #ffffff35,0 1px 3px #123cac55; }
+.pol-logo__ticket::after { content: ""; position: absolute; z-index: -1; width: 15px; height: 15px; right: -7px; top: 3px; border-radius: 2px; background: linear-gradient(135deg,#075be3,#153bc5); transform: rotate(45deg); }
+.pol-logo__perforations { width: 5px; height: 16px; margin-left: 3px; display: grid; grid-template-rows: repeat(4,3px); gap: 1px; align-content: center; }
+.pol-logo__perforations i { width: 4px; height: 3px; display: block; border-radius: 1px; background: #fff; box-shadow: inset 0 -1px #dfe8ff; }
+.pol-logo__pols { position: relative; z-index: 2; margin-left: 3px; font-size: 15px; font-weight: 800; line-height: 1; letter-spacing: -1.5px; }
+.pol-logo__tudio { position: relative; z-index: 2; margin-left: 8px; color: #07132f; font-size: 17px; font-weight: 700; line-height: 1; letter-spacing: -1.3px; }
+.pol-logo--compact { width: 32px; height: 19px; padding: 3px; border-radius: 4px; }
+.pol-logo--compact .pol-logo__ticket { width: 25px; height: 13px; flex-basis: 25px; border-radius: 3px 1px 1px 3px; }
+.pol-logo--compact .pol-logo__ticket::after { width: 9px; height: 9px; right: -4px; top: 2px; border-radius: 1px; }
+.pol-logo--compact .pol-logo__perforations { width: 3px; height: 10px; margin-left: 2px; grid-template-rows: repeat(4,1.5px); gap: 1px; }
+.pol-logo--compact .pol-logo__perforations i { width: 2.5px; height: 1.5px; border-radius: .5px; }
+.pol-logo--compact .pol-logo__pols { margin-left: 2px; font-size: 7.5px; letter-spacing: -.7px; }
.brand__edition { font: 500 8px/1 "DM Mono", monospace; letter-spacing: .12em; color: #737b8b; border: 1px solid var(--line-strong); border-radius: 3px; padding: 3px 4px; }
.sidebar__nav { margin-top: 37px; }
.sidebar__label { padding: 0 10px; margin: 0 0 8px; color: #59606e; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
@@ -89,7 +100,13 @@ button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-
.composer { position: relative; border: 1px solid rgba(114, 139, 218, .27); border-radius: 10px; background: rgba(7,9,14,.72); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 10px 25px rgba(0,0,0,.2); }
.composer:focus-within { border-color: rgba(103, 138, 245, .55); box-shadow: 0 0 0 3px rgba(52, 89, 203, .08), 0 12px 30px rgba(0,0,0,.25); }
.composer__input-row { min-height: 70px; display: flex; align-items: flex-start; gap: 10px; padding: 15px; }
-.composer__spark { flex: 0 0 auto; color: #6e90ff; margin-top: 2px; }
+.composer__brand-mark { margin-top: 1px; }
+.composer__references { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 0 14px 10px 56px; }
+.composer__references > small { color: #c9868e; font-size: 8px; }
+.composer__reference { max-width: 190px; height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0 3px 0 7px; border: 1px solid rgba(91,121,211,.26); border-radius: 5px; color: #7792df; background: rgba(45,67,130,.15); }
+.composer__reference b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9da9cf; font-size: 7px; font-weight: 600; }
+.composer__reference button { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 0; border-radius: 3px; color: #667394; background: transparent; }
+.composer__reference button:hover { color: #e0e5f4; background: rgba(255,255,255,.06); }
.composer textarea { min-width: 0; width: 100%; resize: none; border: 0; outline: 0; color: #e9ebf1; background: transparent; font-size: 13px; line-height: 1.5; }
.composer textarea::placeholder { color: #59606e; }
.composer__submit { flex: 0 0 auto; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #6382e9; border-radius: 8px; color: white; background: linear-gradient(180deg, #5f82f3, #345bd6); box-shadow: 0 5px 16px rgba(44,80,198,.35); }
@@ -98,6 +115,10 @@ button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-
.composer__settings label { display: flex; align-items: center; gap: 5px; color: #667080; font-size: 9px; }
.composer__settings label > span { color: #777f8d; }
.composer__settings select { border: 0; outline: 0; padding: 3px 14px 3px 4px; color: #c4c9d4; background: transparent; font-size: 9px; font-weight: 600; }
+.composer__attach { height: 25px; display: inline-flex; align-items: center; gap: 5px; padding: 0 6px; border: 0; border-radius: 4px; color: #7f8aaa; background: transparent; font-size: 8px; }
+.composer__attach:hover:not(:disabled) { color: #aebbe3; background: rgba(73,99,174,.12); }
+.composer__attach:disabled { cursor: not-allowed; color: #4e5564; }
+.composer__attach b { min-width: 14px; padding: 1px 4px; border-radius: 7px; color: #9badde; background: #26345c; font: 500 7px "DM Mono",monospace; }
.composer__divider { width: 1px; height: 14px; margin: 0 7px; background: var(--line); }
.composer__hint { margin-left: auto; color: #4f5664; font: 400 8px "DM Mono", monospace; }
.idea-row { position: relative; display: flex; align-items: center; gap: 7px; margin-top: 13px; }
@@ -161,7 +182,7 @@ button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-
.timeline-placeholder { border-top: 1px solid var(--line); padding: 10px 13px; background: #0c0f14; }.timeline-placeholder__top { height: 33px; display: flex; justify-content: space-between; align-items: flex-start; }.timeline-placeholder__top div { display: flex; gap: 9px; align-items: baseline; }.timeline-placeholder__top strong { font-size: 9px; }.timeline-placeholder__top span { color: #525a67; font-size: 7px; }.timeline-placeholder__top .secondary-button { min-height: 26px; font-size: 8px; }.timeline-placeholder__track { display: grid; grid-template-columns: 32px 1fr; height: 95px; border-top: 1px solid var(--line); }.timeline-placeholder__track > span { padding-top: 11px; color: #505865; font: 500 8px "DM Mono", monospace; }.timeline-placeholder__track > div { position: relative; margin-top: 8px; border: 1px solid var(--line); border-radius: 5px; display: flex; gap: 4px; align-items: center; justify-content: center; background: repeating-linear-gradient(90deg, rgba(255,255,255,.01) 0 50px, transparent 50px 51px); }.timeline-placeholder__track i { width: 46px; height: 34px; border: 1px solid rgba(73,95,159,.12); border-radius: 3px; background: rgba(46,64,119,.08); }.timeline-placeholder__track p { color: #505866; font-size: 8px; margin-left: 8px; }
@media (max-width: 900px) {
- .app-shell { grid-template-columns: 74px minmax(0,1fr); }.sidebar { width: 74px; padding-inline: 8px; }.brand { padding: 0; justify-content: center; }.brand__lens { width: 43px; }.brand__lens img { left: -19px; }.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 { display: none; }.nav-item { justify-content: center; padding: 0; }.nav-item__badge { position: absolute; margin: -22px 0 0 27px; }.library { grid-column: 2; }.library__content { width: calc(100% - 36px); }.project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.workspace__body { grid-template-columns: 55px 210px 1fr; }.workspace__project-name { width: 210px; }
+ .app-shell { grid-template-columns: 74px minmax(0,1fr); }.sidebar { width: 74px; padding-inline: 8px; }.brand { padding: 0; justify-content: center; }.brand .pol-logo { width: 43px; }.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 { display: none; }.nav-item { justify-content: center; padding: 0; }.nav-item__badge { position: absolute; margin: -22px 0 0 27px; }.library { grid-column: 2; }.library__content { width: calc(100% - 36px); }.project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.workspace__body { grid-template-columns: 55px 210px 1fr; }.workspace__project-name { width: 210px; }
}
.stage .transport { bottom: 62px; }