Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Split styles into token-based design system

Bitti4fad10f0ee0b
diff --git a/src/main.tsx b/src/main.tsx
index a9f1f82..0808d9e 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -1,7 +1,7 @@
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
-import "./styles/app.css";
+import "./styles/index.css";
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
diff --git a/src/styles/app.css b/src/styles/app.css
deleted file mode 100644
index d950033..0000000
--- a/src/styles/app.css
+++ /dev/null
@@ -1,231 +0,0 @@
-@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");
-
-:root {
- color-scheme: dark;
- font-family: "Manrope", Inter, system-ui, sans-serif;
- color: #eff1f7;
- background: #080a0f;
- font-synthesis: none;
- text-rendering: optimizeLegibility;
- --bg: #080a0f;
- --panel: #0d1016;
- --panel-2: #12151d;
- --panel-3: #171b24;
- --line: rgba(255, 255, 255, 0.085);
- --line-strong: rgba(255, 255, 255, 0.14);
- --muted: #868d9c;
- --soft: #b6bbc7;
- --blue: #3d6df2;
- --blue-bright: #6b8dff;
- --blue-dark: #173ca6;
- --shadow: 0 22px 65px rgba(0, 0, 0, 0.34);
-}
-
-* { box-sizing: border-box; }
-html, body, #root { min-width: 320px; min-height: 100%; margin: 0; }
-body { min-height: 100vh; overflow-x: hidden; }
-button, input, textarea, select { font: inherit; }
-button { color: inherit; }
-button, select { cursor: pointer; }
-button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
-.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
-
-.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; }
-.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; }
-.nav-item, .utility-button { width: 100%; border: 0; background: transparent; display: flex; align-items: center; text-align: left; color: #8f96a4; }
-.nav-item { height: 40px; border-radius: 7px; gap: 11px; padding: 0 10px; font-size: 13px; font-weight: 600; margin-bottom: 3px; transition: .18s ease; }
-.nav-item:hover { color: #d9dde6; background: rgba(255,255,255,.035); }
-.nav-item--active { color: #f5f7ff; background: linear-gradient(90deg, rgba(60, 105, 239, .19), rgba(60, 105, 239, .075)); box-shadow: inset 2px 0 var(--blue-bright); }
-.nav-item__badge { margin-left: auto; color: #91aaff; font: 500 9px "DM Mono", monospace; border: 1px solid rgba(85, 124, 245, .3); background: rgba(50, 87, 199, .13); padding: 2px 4px; border-radius: 3px; }
-.sidebar__status { margin: auto 4px 20px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; display: flex; gap: 9px; align-items: center; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent); }
-.sidebar__status-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; color: #83a0ff; background: rgba(58, 99, 224, .13); }
-.sidebar__status strong, .sidebar__status span { display: block; }
-.sidebar__status strong { font-size: 10px; font-weight: 600; color: #c1c6d0; }
-.sidebar__status span { margin-top: 2px; font-size: 9px; color: #656c79; }
-.sidebar__bottom { border-top: 1px solid var(--line); padding-top: 10px; }
-.utility-button { gap: 9px; padding: 8px 9px; font-size: 11px; border-radius: 6px; }
-.utility-button:hover { color: #d6d9e1; background: rgba(255,255,255,.03); }
-.profile-button { width: 100%; border: 0; border-radius: 8px; padding: 8px 7px; margin-top: 7px; display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 8px; text-align: left; background: rgba(255,255,255,.025); }
-.profile-button__avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; background: #1c2850; color: #9ab0ff; font-size: 9px; font-weight: 700; }
-.profile-button strong, .profile-button small { display: block; }
-.profile-button strong { font-size: 10px; color: #c6cad4; }.profile-button small { color: #676e7c; font-size: 8px; margin-top: 1px; }
-
-.library { grid-column: 2; min-width: 0; }
-.library__topbar { height: 66px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(8,10,15,.74); backdrop-filter: blur(16px); }
-.search-field { height: 34px; width: 224px; display: flex; align-items: center; gap: 8px; padding: 0 9px; color: #606775; background: #0e1117; border: 1px solid var(--line); border-radius: 7px; }
-.search-field:focus-within { border-color: rgba(92, 127, 236, .6); }
-.search-field input { min-width: 0; flex: 1; background: none; border: 0; outline: none; color: #d5d9e1; font-size: 11px; }
-.search-field input::placeholder { color: #5d6471; }
-.search-field kbd { font: 500 9px "DM Mono", monospace; color: #5b6270; border: 1px solid var(--line); padding: 2px 4px; border-radius: 3px; }
-.secondary-button, .primary-button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 7px; padding: 0 12px; font-size: 11px; font-weight: 600; transition: .18s ease; }
-.secondary-button { border: 1px solid var(--line-strong); color: #b9bec9; background: rgba(255,255,255,.025); }
-.secondary-button:hover { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.05); }
-.primary-button { border: 1px solid #5578ed; color: white; background: linear-gradient(180deg, #5279f4, #3159d4); box-shadow: 0 5px 18px rgba(31, 70, 196, .26), inset 0 1px rgba(255,255,255,.15); }
-.primary-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
-.primary-button:disabled, .secondary-button:disabled { opacity: .5; cursor: not-allowed; }
-.icon-button { width: 29px; height: 29px; padding: 0; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 6px; color: #686f7d; background: transparent; }
-.icon-button:hover { color: #d2d6df; background: rgba(255,255,255,.045); }
-.icon-button--active { color: #c7d2ff; border-color: rgba(88, 119, 218, .25); background: rgba(55, 91, 205, .15); }
-.icon-button--strong { color: #c4c9d3; border-color: var(--line); }
-.library__content { width: min(1180px, calc(100% - 68px)); margin: 0 auto; padding: 46px 0 28px; }
-.library__intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
-.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #7588c6; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
-.library__intro h1 { margin: 6px 0 4px; font-size: clamp(28px, 3vw, 39px); font-weight: 500; letter-spacing: -.04em; }
-.library__intro > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
-.storage-pill { display: inline-flex; gap: 7px; align-items: center; color: #858d9b; font: 500 9px "DM Mono", monospace; border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px; }
-.storage-pill i { width: 6px; height: 6px; border-radius: 50%; background: #62c68b; box-shadow: 0 0 8px rgba(98,198,139,.6); }
-
-.composer-shell { position: relative; overflow: hidden; border: 1px solid rgba(91, 121, 211, .2); border-radius: 14px; padding: 27px 28px 23px; background: linear-gradient(135deg, rgba(21,29,53,.76), rgba(13,16,23,.95) 55%, #0d1016); box-shadow: var(--shadow); }
-.composer-shell__glow { position: absolute; width: 360px; height: 240px; right: -80px; top: -120px; border-radius: 50%; background: rgba(51, 89, 217, .13); filter: blur(50px); pointer-events: none; }
-.composer-heading { position: relative; }
-.composer-heading h2 { margin: 6px 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
-.composer-heading p { margin: 0 0 17px; color: #858d9d; font-size: 11px; }
-.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__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); }
-.composer__submit:disabled { color: #555b68; background: #171a21; border-color: var(--line); box-shadow: none; cursor: default; }
-.composer__settings { height: 41px; border-top: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; }
-.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; }
-.idea-row > span { margin-right: 3px; color: #555d6b; font-size: 9px; }
-.idea-row button { border: 1px solid var(--line); border-radius: 99px; color: #777f8e; background: rgba(255,255,255,.017); padding: 5px 9px; font-size: 9px; }
-.idea-row button:hover { color: #b8bfce; border-color: rgba(112,139,226,.3); }
-.spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
-@keyframes spin { to { transform: rotate(360deg); } }
-
-.recent-projects { margin-top: 38px; }
-.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
-.section-heading > div:first-child { display: flex; align-items: baseline; gap: 9px; }.section-heading h2 { margin: 0; font-size: 14px; font-weight: 600; }.section-heading span { color: #5f6674; font-size: 9px; }
-.view-controls { display: flex; gap: 2px; }
-.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
-.project-grid--list { grid-template-columns: 1fr; }
-.project-grid--list .project-card { display: grid; grid-template-columns: minmax(180px, 24%) 1fr; }
-.project-grid--list .project-card__art, .project-grid--list .project-card__art-button { height: 100%; }
-.project-grid--list .project-card__art { aspect-ratio: auto; min-height: 112px; }
-.project-grid--list .project-card__body { align-self: center; }
-.project-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #0e1117; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
-.project-card:hover, .project-card:focus { transform: translateY(-2px); border-color: rgba(117, 137, 198, .28); box-shadow: 0 15px 35px rgba(0,0,0,.28); outline: none; }
-.project-card__art-button { display: block; width: 100%; padding: 0; border: 0; background: none; }
-.project-card__art { position: relative; overflow: hidden; aspect-ratio: 16/8.8; background-size: cover; background-position: center; }
-.project-card__art::before, .project-card__art::after { content: ""; position: absolute; }
-.project-card__art--aurora { background: linear-gradient(155deg, #101c38, #172d55 45%, #6e6d4d); }
-.project-card__art--aurora::before { width: 120%; height: 55%; left: -10%; bottom: -20%; background: linear-gradient(160deg, transparent 15%, #8bb3d5 16%, #283a58 32%, #090e17 33%); transform: skewY(-7deg); }
-.project-card__art--aurora::after { width: 48%; height: 140%; left: 27%; top: -25%; background: radial-gradient(ellipse, rgba(112,183,230,.55), transparent 58%); filter: blur(13px); }
-.project-card__art--paper { background: #cabca3; }
-.project-card__art--paper::before { width: 110px; height: 150px; left: 45%; top: -25px; border-radius: 50%; transform: rotate(35deg); background: linear-gradient(90deg, #613a26, #e6bd83 42%, #2b4d46 44%, #142724 70%); box-shadow: -45px 60px 0 rgba(48,29,22,.62); }
-.project-card__art--paper::after { inset: 0; background: linear-gradient(110deg, rgba(255,255,255,.2), transparent 45%), repeating-linear-gradient(0deg, rgba(62,47,29,.05) 0 1px, transparent 1px 5px); }
-.project-card__art--chrome { background: radial-gradient(circle at 58% 52%, #cfe5f4 0 4%, #385370 5% 10%, #dce7e7 11% 18%, #273d5d 20% 28%, transparent 29%), linear-gradient(135deg, #10131a, #29405f 52%, #846a51); }
-.project-card__art--chrome::before { width: 100px; height: 100px; left: 18%; top: 18%; border: 12px solid rgba(205,225,237,.66); border-radius: 50%; filter: blur(1px); transform: rotateX(60deg); }
-.project-card__art--chrome::after { width: 140%; height: 1px; left: -20%; bottom: 25%; background: rgba(255,255,255,.3); box-shadow: 0 8px rgba(255,255,255,.1); }
-.project-card__art--ember { background: radial-gradient(circle at 65% 38%, #ef9f67 0 2%, transparent 3%), linear-gradient(140deg,#101218,#4b1b2d 60%,#d36b42); }
-.project-card__format, .project-card__quality { position: absolute; z-index: 2; top: 9px; border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.78); background: rgba(4,6,10,.52); backdrop-filter: blur(8px); border-radius: 4px; padding: 3px 5px; font: 500 7px "DM Mono", monospace; }
-.project-card__format { left: 9px; display: flex; gap: 4px; align-items: center; }.project-card__quality { right: 9px; }
-.project-card__play { position: absolute; z-index: 3; inset: 50% auto auto 50%; transform: translate(-50%,-50%) scale(.8); width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(5,7,11,.45); opacity: 0; transition: .2s; backdrop-filter: blur(8px); }
-.project-card:hover .project-card__play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
-.project-card__art-copy { position: absolute; z-index: 2; inset: auto 10px 9px; display: flex; gap: 6px; align-items: center; color: rgba(255,255,255,.75); text-shadow: 0 1px 5px #000; font-size: 8px; text-align: left; }
-.project-card__art-copy svg { flex: 0 0 auto; }.project-card__art-copy span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
-.project-card__body { padding: 11px 12px 10px; }
-.project-card__title-row { position: relative; display: flex; align-items: center; gap: 4px; }.project-card__title-row h3 { min-width: 0; flex: 1; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d9dce3; font-size: 11px; font-weight: 600; }
-.project-card__menu { position: absolute; z-index: 5; top: 27px; right: 0; min-width: 120px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 6px; background: #171b24; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
-.project-card__menu button { width: 100%; height: 28px; padding: 0 7px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 4px; color: #c8cdd7; background: transparent; font-size: 9px; text-align: left; }
-.project-card__menu button:hover { background: rgba(255,255,255,.06); }
-.project-card__path { margin: 3px 0 10px; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #555d6b; font: 400 8px "DM Mono", monospace; }
-.project-card__path svg { flex: 0 0 auto; }.project-card__meta { border-top: 1px solid var(--line); padding-top: 8px; display: flex; justify-content: space-between; color: #676e7b; font-size: 8px; }.project-card__meta span { display: flex; align-items: center; gap: 4px; }
-.project-skeleton { height: 225px; border-radius: 10px; padding: 10px; border: 1px solid var(--line); background: #0e1117; }.project-skeleton i { display: block; height: 145px; border-radius: 6px; background: #151922; }.project-skeleton span, .project-skeleton small { display: block; height: 8px; margin-top: 14px; border-radius: 4px; background: #181c24; }.project-skeleton small { width: 60%; margin-top: 8px; }
-.library-empty { min-height: 220px; border: 1px dashed var(--line-strong); border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #626a78; }.library-empty h3 { color: #bec3cc; font-size: 13px; margin: 10px 0 3px; }.library-empty p { font-size: 10px; margin: 0 0 14px; }
-.library__footer { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; color: #4d5461; font: 400 8px "DM Mono", monospace; }.library__footer i { width: 2px; height: 2px; background: #444b57; border-radius: 50%; }
-.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: 330px; padding: 13px 14px; border: 1px solid rgba(244,104,104,.25); border-radius: 9px; background: #171116; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; }.toast strong { font-size: 11px; }.toast span { grid-column: 1; color: #a28d94; font-size: 9px; }.toast button { grid-column: 2; grid-row: 1/3; border: 0; background: none; color: #e1939f; font-size: 9px; }
-
-.placeholder-view { grid-column: 2; min-height: 100vh; padding: 40px; background: radial-gradient(circle at 50% 30%, rgba(51,82,177,.12), transparent 35%); }.back-link { display: flex; gap: 6px; align-items: center; border: 0; background: none; color: #737b89; font-size: 10px; }.placeholder-view__card { width: min(480px, 90%); margin: 18vh auto 0; text-align: center; }.placeholder-view__card > span { width: 54px; height: 54px; margin: 0 auto 18px; display: grid; place-items: center; color: #84a0f9; border: 1px solid rgba(91,126,231,.27); border-radius: 13px; background: rgba(44,76,177,.13); }.placeholder-view__card h1 { font-size: 28px; letter-spacing: -.04em; margin: 8px 0; }.placeholder-view__card > p:not(.eyebrow) { color: #757d8c; font-size: 11px; line-height: 1.7; margin: 0 auto 20px; max-width: 390px; }
-
-/* Project workspace */
-.workspace { min-height: 100vh; display: grid; grid-template-rows: 58px minmax(390px, 1fr) 176px; background: #080a0f; }
-.workspace__topbar { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #0c0f15; }.workspace__project-name { min-width: 0; width: 300px; }.workspace__project-name strong, .workspace__project-name span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.workspace__project-name strong { color: #d8dce4; font-size: 11px; }.workspace__project-name span { margin-top: 2px; color: #5b6370; font-size: 8px; }.workspace__project-name span svg { vertical-align: -2px; color: #64bd88; }.workspace__project-name i { margin: 0 3px; }.workspace__history { display: flex; margin-left: 4px; }.workspace__actions { margin-left: auto; display: flex; gap: 7px; }
-.workspace__body { min-height: 0; display: grid; grid-template-columns: 68px 247px 1fr; }.toolrail { padding: 14px 7px; border-right: 1px solid var(--line); background: #0b0e13; }.toolrail__item { width: 54px; height: 49px; margin-bottom: 5px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #646c7a; display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; font-size: 8px; }.toolrail__item:hover { color: #c8cdd7; background: rgba(255,255,255,.03); }.toolrail__item--active { color: #9db0f3; border-color: rgba(81,112,208,.18); background: rgba(53,83,178,.13); }
-.inspector-panel { overflow-y: auto; padding: 17px 14px; border-right: 1px solid var(--line); background: #0e1117; }.inspector-panel__heading { display: flex; justify-content: space-between; color: #6c84d2; }.inspector-panel__heading h2 { margin: 4px 0 12px; color: #d7dbe3; font-size: 15px; }.agent-brief { padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: #0a0d12; }.agent-brief p { margin: 0; color: #aeb4c0; font-size: 9px; line-height: 1.55; }.agent-brief__meta { display: flex; gap: 5px; margin-top: 9px; }.agent-brief__meta span { border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; color: #68707e; font: 400 7px "DM Mono", monospace; text-transform: uppercase; }.agent-action { width: 100%; margin-top: 9px; padding: 10px; border: 1px solid rgba(82,115,220,.25); border-radius: 7px; display: flex; gap: 9px; align-items: center; text-align: left; color: #83a0ff; background: linear-gradient(90deg, rgba(52,87,195,.17), rgba(34,55,117,.08)); }.agent-action strong, .agent-action small { display: block; }.agent-action strong { color: #bcc9f9; font-size: 9px; }.agent-action small { color: #66739f; font-size: 8px; margin-top: 2px; }.panel-section { margin-top: 20px; }.panel-section__title { display: flex; align-items: center; justify-content: space-between; color: #7c8492; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }.asset-drop { width: 100%; height: 85px; border: 1px dashed var(--line-strong); border-radius: 7px; color: #626b79; background: rgba(255,255,255,.01); display: flex; flex-direction: column; align-items: center; justify-content: center; }.asset-drop strong { margin-top: 5px; color: #9ca3af; font-size: 8px; }.asset-drop small { font-size: 7px; margin-top: 2px; }.project-location { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; gap: 7px; color: #5f6876; }.project-location span { min-width: 0; }.project-location strong, .project-location small { display: block; }.project-location strong { color: #7c8492; font-size: 8px; }.project-location small { margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 7px "DM Mono", monospace; }
-.stage { min-width: 0; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 36px 50px 46px; background-color: #090b10; background-image: radial-gradient(rgba(255,255,255,.035) .6px, transparent .6px); background-size: 13px 13px; }.stage__toolbar { position: absolute; right: 13px; top: 10px; display: flex; align-items: center; gap: 5px; color: #626977; font-size: 8px; }.stage__toolbar i { width: 1px; height: 12px; margin: 0 3px; background: var(--line); }.canvas-frame { position: relative; max-width: 720px; max-height: 68%; width: min(72%, 720px); aspect-ratio: 16/9; display: flex; border: 1px solid rgba(255,255,255,.1); border-radius: 3px; background: #10141c; box-shadow: 0 25px 80px rgba(0,0,0,.55); overflow: hidden; }.canvas-frame--9-16 { width: min(29%, 280px); aspect-ratio: 9/16; }.canvas-frame--1-1 { width: min(48%, 500px); aspect-ratio: 1; }.canvas-frame--4-5 { width: min(39%, 400px); aspect-ratio: 4/5; }.canvas-frame__glow { position: absolute; inset: 0; background: radial-gradient(circle at 70% 25%, rgba(55,88,180,.23), transparent 37%), radial-gradient(circle at 23% 78%, rgba(148,75,92,.12), transparent 34%); }.canvas-frame__empty { position: relative; z-index: 2; margin: auto; text-align: center; max-width: 260px; padding: 20px; }.canvas-frame__empty > span { width: 49px; height: 49px; display: grid; place-items: center; margin: 0 auto 13px; border: 1px solid rgba(94,122,202,.21); border-radius: 12px; color: #738bd2; background: rgba(48,71,137,.11); }.canvas-frame__empty h2 { margin: 0; color: #d4d8e0; font-size: 14px; }.canvas-frame__empty p { margin: 6px 0 14px; color: #667080; font-size: 8px; line-height: 1.5; }.transport { position: absolute; bottom: 12px; display: flex; align-items: center; gap: 13px; color: #555d6a; font: 400 7px "DM Mono", monospace; }.transport button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: #c7ccd6; background: #141821; }
-.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 .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; }
-.workspace-prompt { position: absolute; left: 50%; bottom: 12px; width: min(650px, calc(100% - 70px)); height: 39px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 0 7px 0 11px; border: 1px solid rgba(86,117,213,.28); border-radius: 9px; color: #7f9dfd; background: rgba(14,18,28,.94); box-shadow: 0 10px 32px rgba(0,0,0,.42); backdrop-filter: blur(14px); }
-.workspace-prompt:focus-within { border-color: rgba(102,137,243,.58); }
-.workspace-prompt input { min-width: 0; flex: 1; border: 0; outline: 0; color: #d4d8e1; background: transparent; font-size: 9px; }
-.workspace-prompt input::placeholder { color: #596170; }
-.workspace-prompt button { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #5878df; border-radius: 6px; color: white; background: #345bd1; }
-.workspace-prompt button:disabled { color: #555d69; border-color: var(--line); background: #181c24; cursor: default; }
-
-@media (max-width: 650px) {
- .app-shell { display: block; }.sidebar { display: none; }.library { grid-column: 1; }.library__topbar { padding: 0 16px; }.search-field { flex: 1; }.library__content { padding-top: 28px; }.project-grid { grid-template-columns: 1fr; }.idea-row { flex-wrap: wrap; }.composer-shell { padding: 21px 17px; }.composer__settings label > span, .composer__hint { display: none; }.library__intro { align-items: flex-start; }.storage-pill { margin-top: 10px; }.workspace { grid-template-rows: 58px minmax(450px,1fr) 150px; }.workspace__project-name { width: 140px; }.workspace__actions .secondary-button { display: none; }.workspace__body { grid-template-columns: 48px 1fr; }.inspector-panel { display: none; }.stage { padding-inline: 20px; }.timeline-placeholder__track i { display: none; }
-}
-
-/* Full project editor */
-.project-shell { height: 100vh; min-width: 1040px; overflow: hidden; display: grid; grid-template-rows: 56px 42px minmax(0, 1fr) 58px; color: #dfe3eb; background: #080a0e; }
-.project-topbar { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid #232630; background: #0d1016; }
-.project-title { width: 300px; min-width: 0; padding-left: 2px; }.project-title strong,.project-title span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.project-title strong { font-size: 11px; color: #e1e4ea; }.project-title span { margin-top: 2px; color: #68717f; font-size: 8px; }.project-title span svg { color: #5fbc87; vertical-align: -2px; }.project-title span i { margin: 0 4px; color: #3d424d; }
-.project-history { display: flex; gap: 1px; padding-left: 8px; border-left: 1px solid var(--line); }.project-topbar__actions { display: flex; gap: 7px; margin-left: auto; }.project-topbar .secondary-button,.project-topbar .primary-button { min-height: 31px; font-size: 9px; }
-.project-nav { min-width: 0; display: flex; align-items: center; padding: 0 16px 0 54px; border-bottom: 1px solid #262934; background: #0b0e13; }.project-nav > div { height: 100%; display: flex; gap: 4px; }.project-nav button { position: relative; height: 100%; min-width: 105px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; color: #727b89; background: transparent; font-size: 10px; font-weight: 600; }.project-nav button:hover { color: #cbd1dc; }.project-nav button.active { color: #e8ebf2; }.project-nav button.active::after { content: ""; position: absolute; height: 2px; inset: auto 10px -1px; border-radius: 2px 2px 0 0; background: #708df0; }.project-nav button span { min-width: 16px; padding: 2px 4px; border: 1px solid rgba(104,134,231,.26); border-radius: 8px; color: #98abec; background: rgba(70,99,194,.15); font: 500 7px "DM Mono",monospace; }.project-nav__meta { margin-left: auto; color: #4f5765; font: 500 8px "DM Mono", monospace; }
-.project-content { min-height: 0; overflow: hidden; }.project-agent-row { position: relative; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 8px 18px; border-top: 1px solid #252934; background: #0b0e13; box-shadow: 0 -12px 30px rgba(0,0,0,.2); }
-.agent-dock-wrap { position: relative; width: min(820px, calc(100% - 40px)); }.agent-dock { height: 41px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 12px; border: 1px solid rgba(99,127,219,.34); border-radius: 9px; background: linear-gradient(90deg,#121827,#11151f); box-shadow: 0 5px 20px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.025); }.agent-dock:focus-within { border-color: #627fe0; box-shadow: 0 0 0 3px rgba(63,94,198,.1); }.agent-dock__identity { display: flex; gap: 6px; align-items: center; padding-right: 10px; border-right: 1px solid var(--line); color: #7e99ef; font-size: 9px; }.agent-dock__identity b { color: #cbd5fa; }.agent-dock input { min-width: 0; flex: 1; border: 0; outline: 0; color: #d9dee8; background: none; font-size: 10px; }.agent-dock input::placeholder { color: #626b7b; }.agent-dock__hint { display: flex; align-items: center; gap: 3px; color: #474f5c; font: 500 7px "DM Mono",monospace; }.agent-dock button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #5f7fe8; border-radius: 6px; color: white; background: #3f64d9; }.agent-dock button:disabled { color: #535a66; border-color: #292e39; background: #1a1e26; }.agent-toast { position: absolute; left: 50%; bottom: 49px; transform: translateX(-50%); padding: 7px 10px; border: 1px solid #303749; border-radius: 6px; color: #bac5e7; background: #161c29; box-shadow: 0 8px 25px #0008; font-size: 8px; }
-
-/* Timeline workspace */
-.timeline-view { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(320px,1fr) 309px; outline: none; }.edit-panels { min-height: 0; display: grid; grid-template-columns: 246px minmax(480px,1fr) 274px; border-bottom: 1px solid #282c36; }.scene-panel,.clip-inspector { min-width: 0; overflow: hidden; background: #0e1117; }.scene-panel { border-right: 1px solid #252934; }.clip-inspector { border-left: 1px solid #252934; overflow-y: auto; }.panel-tabs { height: 36px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }.panel-tabs button { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; color: #626b79; background: none; font-size: 8px; font-weight: 600; }.panel-tabs button.active { color: #bdc8e9; background: rgba(78,103,178,.08); }.panel-tabs button.active::after { content:""; position:absolute; inset:auto 12px -1px; height:2px; background:#6682df; }.scene-panel__head { height: 37px; display:flex; align-items:center; justify-content:space-between; padding:0 10px 0 12px; color:#687181; font-size:8px; text-transform:uppercase; letter-spacing:.09em; }.scene-panel__head button,.reference-library__toolbar button { width:25px; height:25px; display:grid; place-items:center; padding:0; border:0; color:#6e7683; background:none; }
-.scene-list { height: calc(100% - 73px); padding: 0 8px 14px; overflow-y:auto; }.scene-card { width:100%; min-height:61px; display:grid; grid-template-columns:79px minmax(0,1fr); gap:9px; align-items:center; margin-bottom:5px; padding:4px; border:1px solid transparent; border-radius:6px; text-align:left; color:#8f97a5; background:transparent; }.scene-card:hover { background:#141821; }.scene-card.selected { border-color:rgba(101,129,222,.48); background:rgba(61,84,159,.15); box-shadow:inset 2px 0 #6f8ef1; }.scene-card__thumb { position:relative; height:46px; overflow:hidden; border-radius:3px; background:linear-gradient(145deg,#1d314e,#a2785d); }.scene-card--2 .scene-card__thumb { background:linear-gradient(145deg,#332829,#a07962); }.scene-card--3 .scene-card__thumb { background:radial-gradient(circle at 65% 30%,#c7ad88 0 5%,transparent 6%),linear-gradient(145deg,#222c39,#58606a); }.scene-card--4 .scene-card__thumb { background:linear-gradient(165deg,#25344c 0 55%,#c9875b 56% 59%,#222 60%); }.scene-card__thumb::after { content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);transform:skew(-20deg); }.scene-card__thumb i,.scene-card__thumb em { position:absolute; z-index:2; padding:2px 3px; border-radius:2px; color:#fff; background:#090b0f99; font:500 6px "DM Mono"; font-style:normal; }.scene-card__thumb i{left:3px;top:3px}.scene-card__thumb em{right:3px;bottom:3px}.scene-card > span:last-child,.scene-card b,.scene-card small { display:block; min-width:0; }.scene-card b { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#bcc2cc; font-size:8px; }.scene-card small { margin-top:4px; color:#5f6876;font-size:7px}.scene-card.selected small{color:#7f92ce}.scene-add { width:100%; height:36px; display:flex;align-items:center;justify-content:center;gap:6px;border:1px dashed #2d3340;border-radius:6px;color:#6f7785;background:#11141a;font-size:8px; }
-.media-grid { height:calc(100% - 73px); overflow-y:auto; display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 9px 12px}.media-grid button{min-width:0;padding:0 0 7px;overflow:hidden;border:1px solid #252a34;border-radius:5px;text-align:left;background:#11151c}.media-grid button b,.media-grid button small{display:block;padding:0 6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.media-grid button b{margin-top:5px;color:#aeb5c1;font-size:7px}.media-grid button small{margin-top:2px;color:#57606d;font-size:6px}.media-thumb{height:48px;display:grid;place-items:center;color:#9aabc9;background:linear-gradient(140deg,#243751,#775a52)}.media-thumb--1{background:linear-gradient(140deg,#402a35,#87634e)}.media-thumb--2{background:linear-gradient(140deg,#28333c,#666f75)}.media-thumb--3{background:#21283a}.media-grid .media-import{min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#7381ac;border-style:dashed}.media-import b,.media-import small{width:100%;text-align:center}
-.program-panel { min-width:0; min-height:0; display:grid; grid-template-rows:34px minmax(0,1fr) 42px; background:#090b0f; }.panel-chrome { height:34px; display:flex; align-items:center; justify-content:space-between; padding:0 10px; border-bottom:1px solid var(--line); color:#6e7684; font-size:8px; text-transform:uppercase; letter-spacing:.08em; }.panel-chrome > span { display:flex;align-items:center;gap:6px}.panel-chrome button{display:flex;align-items:center;gap:5px;padding:4px 6px;border:0;border-radius:4px;color:#68717f;background:none;font-size:7px}.live-dot{width:5px;height:5px;border-radius:50%;background:#5fc586;box-shadow:0 0 6px #5fc586}.program-canvas{min-height:0;display:flex;align-items:center;justify-content:center;padding:14px 28px;background-color:#080a0e;background-image:radial-gradient(#ffffff09 .6px,transparent .6px);background-size:12px 12px}.program-image{position:relative;height:min(100%,330px);width:min(100%,586px);aspect-ratio:16/9;overflow:hidden;border:1px solid #292d36;background:linear-gradient(176deg,#24354c 0 48%,#d39563 49% 52%,#1b212a 54%);box-shadow:0 18px 50px #0008}.program-image::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 66% 35%,#efc69c55,transparent 24%),linear-gradient(90deg,#0a162166,transparent 45%,#8d4f3155)}.program-image--2{background:linear-gradient(165deg,#3b3939 0 42%,#ad8061 43% 46%,#1b2028 47%)}.program-image--3{background:linear-gradient(150deg,#1b2635,#697178 48%,#b07c60 49%,#20252d 55%)}.program-image--4{background:linear-gradient(178deg,#25344b 0 59%,#d9905e 60% 62%,#161b22 63%)}.program-image__architecture{position:absolute;inset:18% 10% 0 34%;display:flex;align-items:flex-end;gap:3px;transform:perspective(400px) rotateY(-8deg)}.program-image__architecture i{flex:1;height:72%;background:linear-gradient(90deg,#171e28,#5a6170 30%,#b58162 33%,#1b222c 37%);box-shadow:inset 1px 0 #ffffff1c}.program-image__architecture i:nth-child(2){height:90%}.program-image__architecture i:nth-child(3){height:100%}.program-image__architecture i:nth-child(4){height:83%}.program-image__architecture i:nth-child(5){height:64%}.program-image__caption{position:absolute;z-index:3;left:6%;bottom:10%;padding-left:8px;border-left:2px solid #dad0c1;color:white;text-shadow:0 2px 8px #000}.program-image__caption span,.program-image__caption small{display:block}.program-image__caption span{font-size:10px;letter-spacing:.2em}.program-image__caption small{margin-top:3px;color:#d6d2cb;font-size:6px}.safe-frame{position:absolute;inset:6%;border:1px dashed #ffffff19}.monitor-transport{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 13px;border-top:1px solid var(--line);background:#0c0f14}.monitor-transport strong{color:#bbc1cc;font:500 8px "DM Mono"}.monitor-transport>div{display:flex;align-items:center;gap:3px}.monitor-transport button{width:27px;height:27px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;color:#858e9c;background:none}.monitor-transport button:hover{background:#191e27;color:white}.monitor-transport .play-button{color:white;background:#3f62d2}.monitor-transport>span{justify-self:end;color:#535c69;font:500 7px "DM Mono"}
-.inspector-summary{display:flex;gap:9px;align-items:center;padding:11px;border-bottom:1px solid var(--line)}.clip-chip{width:34px;height:34px;display:grid;place-items:center;border-radius:5px;color:#ecf0f9;box-shadow:inset 0 0 0 1px #ffffff1b}.inspector-summary>div{min-width:0}.inspector-summary b,.inspector-summary small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.inspector-summary b{color:#c9ced7;font-size:8px}.inspector-summary small{margin-top:4px;color:#626b78;font-size:7px;text-transform:capitalize}.inspector-section{padding:11px;border-bottom:1px solid var(--line)}.inspector-section h3,.intended-use h3,.reference-used-by h3{margin:0 0 9px;color:#68717e;font-size:7px;letter-spacing:.1em}.inspector-section label{display:block;margin-top:7px}.inspector-section label>span,.reference-fields label>span{display:block;margin-bottom:4px;color:#59616e;font-size:7px}.inspector-section input:not([type=range]),.reference-fields input,.reference-fields textarea{width:100%;height:27px;padding:0 7px;border:1px solid #262b35;border-radius:4px;outline:0;color:#aeb5c0;background:#0a0d12;font-size:8px}.inspector-section input:focus,.reference-fields input:focus,.reference-fields textarea:focus{border-color:#536fca}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}.range-field>span{display:flex!important;justify-content:space-between}.range-field b{color:#8a94a3;font-weight:500}.range-field input{width:100%;height:2px;accent-color:#6784e5}.inspector-empty,.reference-empty{height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center;color:#555e6b}.inspector-empty b,.reference-empty b{margin:10px 0 3px;color:#8f97a4;font-size:9px}.inspector-empty>span{font-size:7px;line-height:1.5}.selection-glyph{position:relative;width:32px;height:32px;border:1px solid #374156;border-radius:7px}.selection-glyph span{position:absolute;inset:7px;border:1px dashed #6881d2}.selection-glyph i{position:absolute;width:5px;height:5px;right:4px;bottom:4px;border-radius:1px;background:#718ce5}
-.pro-timeline{min-height:0;background:#0b0e13}.timeline-toolbar{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 13px;border-bottom:1px solid #292d37}.timeline-toolbar>div:first-child{display:flex;align-items:center;gap:13px}.timeline-toolbar strong{font-size:9px}.timeline-toolbar span{color:#8fa1d7;font:500 8px "DM Mono"}.timeline-tools{height:100%;display:flex;align-items:center;gap:2px}.timeline-tools button{height:26px;display:flex;align-items:center;gap:4px;padding:0 7px;border:1px solid transparent;border-radius:4px;color:#6e7785;background:none;font-size:7px}.timeline-tools button:hover:not(:disabled){color:#c9ced8;background:#171b23}.timeline-tools button:disabled{opacity:.32}.timeline-tools i{width:1px;height:14px;margin:0 5px;background:#272c35}.timeline-tools input{width:58px;height:2px;accent-color:#5e7ddd}.timeline-grid{position:relative;display:grid;grid-template-columns:156px minmax(0,1fr);grid-template-rows:26px repeat(4,61px);height:270px;overflow:hidden}.track-corner{display:flex;align-items:center;padding-left:13px;border-right:1px solid #292e38;border-bottom:1px solid #292e38;color:#4c5461;font:500 6px "DM Mono"}.time-ruler{position:relative;border-bottom:1px solid #292e38;cursor:crosshair;background:#0c0f14}.time-ruler>span{position:absolute;top:0;height:100%;color:#4f5764;font:500 6px "DM Mono"}.time-ruler>span i{display:block;width:1px;height:6px;margin-bottom:3px;background:#444c59}.track-head{min-width:0;display:grid;grid-template-columns:25px minmax(0,1fr) 22px 22px;align-items:center;gap:4px;padding:0 7px;border-right:1px solid #292e38;border-bottom:1px solid #222630;background:#0e1117}.track-kind{width:22px;height:22px;display:grid;place-items:center;border-radius:4px;color:#7891df;background:#27365a}.track-kind--audio{color:#65aca5;background:#1c3939}.track-head b,.track-head small{display:block}.track-head b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#aab1bc;font-size:7px}.track-head small{margin-top:2px;color:#4f5864;font:500 5px "DM Mono"}.track-head button{width:21px;height:21px;display:grid;place-items:center;padding:0;border:0;border-radius:3px;color:#4f5865;background:none}.track-head button:hover,.track-head button.active{color:#d1d6df;background:#242a35}.track-head button.active{color:#8ba3ef}.track-lane{position:relative;overflow:hidden;border-bottom:1px solid #222630;background-color:#0a0d12;background-image:linear-gradient(90deg,#ffffff09 1px,transparent 1px);background-size:14.7% 100%}.track-lane.muted{opacity:.46}.timeline-clip{position:absolute;top:5px;height:50px;min-width:22px;overflow:hidden;padding:0;border:1px solid color-mix(in srgb,var(--clip-color,#516fba) 70%,white 10%);border-radius:4px;text-align:left;color:#dce2ed;background:linear-gradient(180deg,color-mix(in srgb,var(--clip-color,#516fba) 72%,#27303f),color-mix(in srgb,var(--clip-color,#516fba) 48%,#11151d));box-shadow:inset 0 1px #ffffff12}.timeline-clip::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,#ffffff0a 0 18px,transparent 18px 21px)}.timeline-clip--audio{background:linear-gradient(180deg,color-mix(in srgb,var(--clip-color,#3d817c) 62%,#1d3032),color-mix(in srgb,var(--clip-color,#3d817c) 38%,#10191b))}.timeline-clip:hover{filter:brightness(1.14)}.timeline-clip.selected{border-color:#bdcaff;box-shadow:0 0 0 2px #6f8df0,inset 0 1px #ffffff2b;z-index:3}.clip-text{position:relative;z-index:2;display:block;padding:7px 7px}.clip-text b,.clip-text small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.clip-text b{font-size:7px}.clip-text small{margin-top:5px;color:#c1cad9aa;font:500 6px "DM Mono"}.timeline-playhead{position:absolute;z-index:9;top:17px;bottom:0;width:1px;background:#ff705f;pointer-events:none}.timeline-playhead span{position:absolute;width:8px;height:8px;left:-4px;top:-1px;border-radius:2px 2px 5px 5px;background:#ff705f}.timeline-playhead i{position:absolute;left:-3px;top:9px;width:7px;height:1px;background:#ff705f55}
-
-/* Generator */
-.generator-view{height:100%;min-height:0;display:grid;grid-template-columns:265px minmax(0,1fr);background:#0a0d12}.queue-panel{min-height:0;overflow-y:auto;border-right:1px solid #292d37;background:#0d1016}.queue-panel__title{height:55px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid var(--line)}.queue-panel__title span,.queue-panel__title b{display:block}.queue-panel__title span{color:#6b7481;font-size:7px;letter-spacing:.1em}.queue-panel__title b{margin-top:4px;color:#a8afb9;font-size:8px}.queue-panel__title button{border:0;color:#636c7a;background:none}.queue-group{padding:12px 8px 4px}.queue-group h3{height:18px;margin:0 4px;color:#606976;font-size:7px;text-transform:uppercase;letter-spacing:.1em}.queue-group h3 span{float:right;padding:1px 4px;border-radius:6px;background:#1a1f28}.queue-group>button{width:100%;min-height:53px;display:grid;grid-template-columns:36px minmax(0,1fr) 14px;align-items:center;gap:8px;margin-bottom:4px;padding:6px;border:1px solid transparent;border-radius:6px;text-align:left;color:#5c6572;background:transparent}.queue-group>button:hover{background:#13171f}.queue-group>button.selected{border-color:rgba(90,120,218,.35);background:rgba(51,76,154,.15)}.queue-thumb{width:36px;height:36px;display:grid;place-items:center;border-radius:4px;color:#8aa3ec;background:linear-gradient(140deg,#24375d,#604e54)}.queue-thumb--generating svg{animation:spin 1.4s linear infinite}.queue-thumb--completed{color:#76be93;background:#1d3c32}.queue-thumb--failed,.queue-thumb--cancelled{color:#cb777d;background:#3b2227}.queue-group button b,.queue-group button small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.queue-group button b{color:#aab1bc;font-size:7px}.queue-group button small{margin-top:4px;color:#5b6471;font-size:6px;text-transform:capitalize}.mini-progress{display:block;height:2px;margin-top:6px;border-radius:2px;background:#242a35}.mini-progress em{display:block;height:100%;border-radius:2px;background:#637fe0}.queue-runtime{margin:14px 12px;padding:10px;border:1px solid var(--line);border-radius:6px;background:#0a0d12}.queue-runtime span,.queue-runtime small{display:block}.queue-runtime span{color:#8e96a2;font-size:7px}.queue-runtime span i{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:#5fc489}.queue-runtime small{margin-top:4px;color:#505967;font-size:6px}.generator-main{min-height:0;overflow-y:auto;padding:24px 28px 28px}.generator-heading{display:flex;justify-content:space-between;align-items:flex-end;max-width:1120px;margin:0 auto 18px}.generator-heading h1,.references-heading h1{margin:5px 0 3px;font-size:23px;letter-spacing:-.035em}.generator-heading p,.references-heading p{margin:0;color:#707987;font-size:9px}.generator-heading .secondary-button{font-size:8px}.generation-composer{max-width:1120px;margin:0 auto 18px;border:1px solid rgba(91,121,211,.3);border-radius:9px;background:linear-gradient(120deg,#111827,#11141c);box-shadow:0 14px 30px #0004}.generation-composer__top{min-height:74px;display:flex;align-items:flex-start;gap:10px;padding:13px;color:#7592ed}.generation-composer textarea{min-height:46px;flex:1;resize:none;border:0;outline:0;color:#d5dae4;background:none;font-size:10px;line-height:1.5}.generation-composer textarea::placeholder{color:#596271}.generation-composer__top button{height:32px;display:flex;align-items:center;gap:6px;padding:0 10px;border:1px solid #5d7de6;border-radius:6px;color:white;background:#3e63da;font-size:8px}.generation-settings{height:35px;display:flex;align-items:center;gap:5px;padding:0 10px;border-top:1px solid var(--line);color:#606a78;font:500 6px "DM Mono"}.generation-settings>span:first-child{color:#8198df}.generation-settings button{display:flex;align-items:center;gap:3px;padding:4px 6px;border:1px solid #272d37;border-radius:4px;color:#888f9b;background:#151922;font-size:7px}.generation-settings i{width:1px;height:13px;margin:0 5px;background:#2a2f38}.job-detail{max-width:1120px;min-height:390px;margin:0 auto;display:grid;grid-template-columns:minmax(440px,1.5fr) minmax(280px,.75fr);overflow:hidden;border:1px solid #282d37;border-radius:9px;background:#0e1117}.job-detail__visual{min-width:0;padding:17px;border-right:1px solid #282d37}.generation-preview{position:relative;height:270px;overflow:hidden;border:1px solid #303640;border-radius:6px;background:linear-gradient(150deg,#26374f 0 48%,#ca8b60 49% 51%,#171c24 52%)}.generation-preview__flare{position:absolute;width:250px;height:250px;right:-80px;top:-110px;border-radius:50%;background:#efb17544;filter:blur(25px)}.generation-preview__model{position:absolute;inset:18% 12% 0 30%;display:flex;align-items:flex-end;gap:5px;transform:perspective(500px) rotateY(-12deg)}.generation-preview__model i{flex:1;height:70%;background:linear-gradient(90deg,#101722,#747c87 20%,#b77d5d 23%,#1d2530 27%)}.generation-preview__model i:nth-child(2){height:100%}.generation-preview__model i:nth-child(3){height:84%}.generation-preview__model i:nth-child(4){height:55%}.generation-scanner{position:absolute;inset:-40% 0 auto;height:50%;background:linear-gradient(transparent,#91a8ff25,transparent);animation:scan 2.5s ease-in-out infinite}@keyframes scan{to{transform:translateY(420%)}}.preview-status{position:absolute;left:9px;bottom:9px;display:flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid #ffffff20;border-radius:4px;color:#d9e0ee;background:#090c12b8;backdrop-filter:blur(6px);font-size:7px}.preview-status svg{color:#7896f0}.generation-preview--completed .preview-status svg{color:#70c38f}.job-progress-block{padding:13px 3px 0}.job-progress-block>div:first-child{display:flex;justify-content:space-between}.job-progress-block b{font-size:9px}.job-progress-block span{color:#626b79;font-size:7px}.progress-track{height:4px;margin:9px 0;border-radius:4px;background:#20252e}.progress-track i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#4468db,#7d9aff);box-shadow:0 0 8px #5b7ee088}.stage-rail{display:flex!important;justify-content:space-between!important}.stage-rail span{display:flex;align-items:center;gap:4px;font-size:6px!important}.stage-rail span i{width:14px;height:14px;display:grid;place-items:center;border:1px solid #303642;border-radius:50%;font-style:normal;font-size:6px}.stage-rail span.done{color:#839ae3}.stage-rail span.done i{color:white;border-color:#5575d9;background:#3b5fce}.job-detail__info{min-width:0;padding:16px;overflow-y:auto}.job-title{display:flex;align-items:flex-start;gap:9px;padding-bottom:13px;border-bottom:1px solid var(--line)}.status-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:5px;color:#87a0ed;background:#28365b}.status-icon--generating svg{animation:spin 1.4s linear infinite}.status-icon--completed{color:#76bd92;background:#1c3c31}.job-title>div>span{color:#7089d5;font:500 6px "DM Mono";letter-spacing:.1em}.job-title h2{margin:3px 0 0;color:#d1d5dd;font-size:11px}.job-prompt{padding:12px 0;border-bottom:1px solid var(--line)}.job-prompt>span,.job-refs>span{color:#5c6572;font-size:6px;letter-spacing:.1em}.job-prompt p{margin:7px 0 0;color:#9fa6b1;font-size:8px;line-height:1.55}.job-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.job-meta span,.job-meta b{display:block}.job-meta span{color:#505866;font-size:6px}.job-meta b{margin-top:3px;color:#9098a5;font-size:7px}.job-refs{padding:12px 0}.job-refs>div{display:grid;grid-template-columns:28px minmax(0,1fr);margin-top:7px;align-items:center}.job-refs .ref-mini{grid-row:1/3;width:25px;height:25px;border-radius:4px;background:linear-gradient(140deg,#304465,#a2755a)}.ref-mini--1{background:linear-gradient(140deg,#392d40,#676b87)!important}.job-refs b,.job-refs small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.job-refs b{font-size:7px}.job-refs small{margin-top:2px;color:#5b6471;font-size:6px}.job-actions{margin-top:8px}.danger-button{height:30px;display:flex;align-items:center;justify-content:center;gap:6px;width:100%;border:1px solid #65363e;border-radius:6px;color:#d58a92;background:#26171b;font-size:7px}.job-actions .primary-button{width:100%;min-height:31px;font-size:8px}.job-empty{max-width:1120px;height:300px;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #292f39;border-radius:9px;color:#6173a9}.job-empty h2{margin:9px 0 3px;color:#9ca5b5;font-size:12px}.job-empty p{margin:0;color:#606977;font-size:8px}
-
-/* References */
-.references-view{height:100%;min-height:0;overflow-y:auto;padding:24px 28px 28px;background:radial-gradient(circle at 20% -20%,#2f456b22,transparent 35%),#0a0d12}.references-heading{max-width:1180px;margin:0 auto 19px;display:flex;justify-content:space-between;align-items:flex-end}.references-heading>div:last-child{display:flex;gap:7px}.references-heading .secondary-button,.references-heading .primary-button{min-height:31px;font-size:8px}.reference-layout{max-width:1180px;min-height:590px;margin:auto;display:grid;grid-template-columns:minmax(560px,1fr) 300px;overflow:hidden;border:1px solid #292e38;border-radius:9px;background:#0e1117}.reference-library{min-width:0;padding-bottom:18px;border-right:1px solid #292e38}.reference-library__toolbar{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--line);color:#626b78;font-size:7px;letter-spacing:.1em}.reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:13px}.reference-grid>button{min-width:0;height:147px;display:grid;grid-template-columns:110px minmax(0,1fr);overflow:hidden;padding:0;border:1px solid #272d37;border-radius:7px;text-align:left;color:#68717f;background:#11151c}.reference-grid>button:hover{border-color:#3a4353}.reference-grid>button.selected{border-color:#647fdb;box-shadow:0 0 0 2px #4e69bd33}.reference-art,.reference-copy-art{position:relative;height:100%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(155deg,#24344e,#9f735a)}.reference-art i{position:absolute;width:70%;height:82%;left:18%;bottom:-8%;background:repeating-linear-gradient(90deg,#17202c 0 12px,#8c684f 13px 15px);transform:perspective(200px) rotateY(-16deg)}.reference-art em{position:absolute;z-index:2;left:6px;bottom:6px;display:flex;align-items:center;gap:4px;padding:3px 4px;border-radius:3px;color:#d8dee9;background:#090b0fa6;font:500 5px "DM Mono";font-style:normal}.reference-copy-art{color:#8199e4;background:radial-gradient(circle at 50% 40%,#33436b,#171c2a)}.reference-copy-art i{width:46px;height:46px;display:grid;place-items:center;border:1px solid #6681d64d;border-radius:50%;color:#bfccf5;background:#34436a;font-size:18px;font-style:normal}.reference-copy-art svg{position:absolute;right:6px;bottom:6px}.reference-card__body{min-width:0;padding:10px}.reference-card__body>span:first-child b,.reference-card__body>span:first-child small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.reference-card__body b{color:#bcc2cc;font-size:8px}.reference-card__body small{margin-top:3px;color:#555f6d;font:500 5px "DM Mono"}.reference-card__body p{height:57px;overflow:hidden;margin:9px 0 6px;color:#747d8a;font-size:7px;line-height:1.5}.use-tags{display:flex;flex-wrap:wrap;gap:3px}.use-tags i{padding:2px 4px;border:1px solid #303744;border-radius:3px;color:#7788b9;background:#171d2b;font:500 5px "DM Mono";font-style:normal;text-transform:uppercase}.reference-grid .reference-add-card{display:flex;flex-direction:column;align-items:center;justify-content:center;border-style:dashed;color:#68717e;background:#0d1016}.reference-add-card>span{width:34px;height:34px;display:grid;place-items:center;margin-bottom:7px;border:1px solid #333a46;border-radius:7px;color:#8297d7;background:#151c2d}.reference-add-card b{font-size:8px}.reference-add-card small{margin-top:3px;font-size:6px}.reference-explainer{display:flex;gap:10px;margin:3px 13px 0;padding:11px;border:1px solid rgba(83,111,199,.22);border-radius:7px;color:#7e96de;background:rgba(40,61,124,.1)}.reference-explainer b{display:block;color:#a8b5dc;font-size:8px}.reference-explainer p{margin:4px 0 0;color:#63708c;font-size:7px;line-height:1.5}.reference-explainer code{font:500 6px "DM Mono"}.reference-inspector{min-width:0;overflow-y:auto;background:#0c0f14}.reference-detail-art{height:112px;position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(150deg,#263957,#997057)}.reference-detail-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,#ffffff13,transparent);transform:skew(-20deg)}.reference-detail-art>span{position:relative;z-index:2;width:53px;height:53px;display:grid;place-items:center;border:1px solid #ffffff24;border-radius:50%;color:#d8e0ed;background:#12182470}.reference-detail-art em{position:absolute;z-index:3;left:8px;bottom:7px;max-width:90%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#d4dae5;font:500 6px "DM Mono";font-style:normal;text-shadow:0 1px 4px #000}.reference-detail-art--text{background:radial-gradient(circle at 50% 40%,#34456f,#171d2c)}.reference-fields{padding:12px;border-bottom:1px solid var(--line)}.reference-fields label{display:block;margin-bottom:10px}.reference-fields textarea{height:84px;padding:7px;resize:none;line-height:1.5}.intended-use,.reference-used-by{padding:12px;border-bottom:1px solid var(--line)}.intended-use h3{margin-bottom:3px}.intended-use p{margin:0 0 8px;color:#555e6b;font-size:7px}.intended-use>div{display:flex;flex-wrap:wrap;gap:5px}.intended-use button{height:22px;display:flex;align-items:center;gap:4px;padding:0 6px;border:1px solid #2b313b;border-radius:4px;color:#697280;background:#11151b;font-size:6px;text-transform:capitalize}.intended-use button.active{color:#9fb0e4;border-color:#485b99;background:#1b2540}.reference-used-by h3 span{float:right;padding:1px 4px;border-radius:6px;background:#1a2029}.reference-used-by>div{display:grid;grid-template-columns:8px minmax(0,1fr) 15px;align-items:center;gap:7px;margin-top:8px}.job-link-dot{width:6px;height:6px;border-radius:50%;background:#5d7edf}.job-link-dot--completed{background:#5dbb82}.reference-used-by b,.reference-used-by small{display:block}.reference-used-by b{font-size:7px}.reference-used-by small{margin-top:2px;color:#58616e;font-size:6px}.reference-used-by>p{color:#5c6572;font-size:7px}.portable-path{display:flex;gap:8px;padding:12px;color:#6679b4}.portable-path b,.portable-path code{display:block}.portable-path b{color:#798391;font-size:7px}.portable-path code{max-width:235px;margin-top:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#596474;font:500 6px "DM Mono"}.reference-empty p{margin:0;color:#59616f;font-size:7px;line-height:1.5}
-
-.program-empty{width:min(100%,586px);min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;border:1px dashed #303743;border-radius:8px;text-align:center;color:#6579b8;background:linear-gradient(145deg,#101621,#0c0f14)}
-.program-empty strong{max-width:85%;margin:12px 0 6px;color:#c2c9d5;font-size:15px}.program-empty span{max-width:72%;color:#788290;font-size:8px;line-height:1.55}.program-empty small{margin-top:13px;color:#515b69;font-size:7px}
-.queue-runtime--unavailable span i{background:#c88a55}.job-actions .primary-button:disabled{cursor:not-allowed;color:#737b88;border-color:#303642;background:#171b22;opacity:1}
-.reference-dialog-backdrop{position:fixed;z-index:100;inset:0;display:grid;place-items:center;background:#05070ab8;backdrop-filter:blur(5px)}.reference-dialog{width:min(430px,calc(100vw - 32px));padding:20px;border:1px solid #343b49;border-radius:9px;background:#11151c;box-shadow:0 24px 70px #000b}.reference-dialog h2{margin:0;color:#d5dae3;font-size:15px}.reference-dialog p{margin:7px 0 16px;color:#747d8b;font-size:8px;line-height:1.55}.reference-dialog label{display:block;margin-top:10px}.reference-dialog label>span{display:block;margin-bottom:5px;color:#626b79;font-size:7px}.reference-dialog input,.reference-dialog textarea{width:100%;padding:8px;border:1px solid #2c323e;border-radius:5px;outline:0;color:#cbd1db;background:#0a0d12;font-size:9px}.reference-dialog textarea{height:90px;resize:none;line-height:1.5}.reference-dialog>div{display:flex;justify-content:flex-end;gap:7px;margin-top:15px}.reference-dialog .primary-button:disabled{opacity:.4}
-.agent-provider{height:25px;display:flex;align-items:center;gap:4px;padding:0 5px;border:1px solid #292f3a;border-radius:5px;background:#0d1119}.agent-provider i{width:5px;height:5px;border-radius:50%;background:#6cc18d}.agent-provider--disabled i,.agent-provider--notInstalled i,.agent-provider--unavailable i{background:#b77878}.agent-provider select{max-width:132px;border:0;outline:0;color:#8993a4;background:transparent;font-size:7px}.agent-dock .agent-cancel{border-color:#6b3941;color:#d88a92;background:#29171b}.agent-busy{color:#7994e9;animation:spin 1.2s linear infinite}.agent-conversation{position:absolute;left:0;right:0;bottom:49px;max-height:170px;overflow:auto;padding:7px;border:1px solid #303749;border-radius:7px;background:#10151fcc;box-shadow:0 10px 30px #0009;backdrop-filter:blur(12px)}.agent-conversation p{display:grid;grid-template-columns:34px minmax(0,1fr);gap:7px;margin:0;padding:5px 6px;color:#aeb6c4;font-size:8px;line-height:1.4}.agent-conversation p+p{border-top:1px solid #242a34}.agent-conversation b{color:#6f89da;font-size:7px}.agent-conversation__error,.agent-conversation__error b{color:#d08a92!important}.queue-runtime--runtimeMissing span i,.queue-runtime--incompatible span i,.queue-runtime--modelsMissing span i{background:#c27b75}.queue-runtime--demo span i{background:#7089dc}.queue-thumb--ready,.status-icon--ready{color:#78b991;background:#1b3a31}.job-runtime-note{padding:10px 0;border-bottom:1px solid var(--line)}.job-runtime-note span{color:#6379b9;font-size:6px;letter-spacing:.1em}.job-runtime-note p{margin:5px 0 0;color:#737e8e;font-size:7px;line-height:1.45}
-
-@media (max-width: 1180px) {
- .edit-panels{grid-template-columns:210px minmax(440px,1fr) 240px}.project-nav{padding-left:18px}.scene-card{grid-template-columns:65px minmax(0,1fr)}.reference-layout{grid-template-columns:minmax(520px,1fr) 280px}.generator-main{padding-inline:20px}
-}
diff --git a/src/styles/base.css b/src/styles/base.css
new file mode 100644
index 0000000..9c570e4
--- /dev/null
+++ b/src/styles/base.css
@@ -0,0 +1,134 @@
+/* ============================================================================
+ base.css — reset, document defaults, element defaults, focus, utilities.
+ ========================================================================== */
+
+*,
+*::before,
+*::after {
+ box-sizing: border-box;
+}
+
+:root {
+ font-family: var(--font-sans);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+ color: var(--text-primary);
+ background: var(--bg);
+ font-synthesis: none;
+ text-rendering: optimizeLegibility;
+ -webkit-font-smoothing: antialiased;
+}
+
+html,
+body,
+#root {
+ min-width: 320px;
+ min-height: 100%;
+ margin: 0;
+}
+
+body {
+ min-height: 100vh;
+ overflow-x: hidden;
+}
+
+/* --- Prose defaults -------------------------------------------------------- */
+
+p,
+li,
+dd {
+ line-height: var(--leading-normal);
+}
+
+h1,
+h2,
+h3,
+h4 {
+ line-height: var(--leading-tight);
+}
+
+code,
+kbd,
+samp,
+pre {
+ font-family: var(--font-mono);
+}
+
+/* --- Form / interactive element defaults ----------------------------------- */
+
+button,
+input,
+textarea,
+select {
+ font: inherit;
+ letter-spacing: inherit;
+}
+
+button {
+ color: inherit;
+}
+
+button,
+select {
+ cursor: pointer;
+}
+
+button:disabled {
+ cursor: not-allowed;
+}
+
+input,
+textarea,
+select {
+ color: var(--text-primary);
+}
+
+::placeholder {
+ color: var(--text-faint);
+ opacity: 1;
+}
+
+/* --- Focus ----------------------------------------------------------------- */
+
+button:focus-visible,
+input:focus-visible,
+textarea:focus-visible,
+select:focus-visible,
+a:focus-visible,
+[tabindex]:focus-visible {
+ outline: 2px solid var(--accent-bright);
+ outline-offset: 2px;
+}
+
+/* --- Utilities ------------------------------------------------------------- */
+
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border: 0;
+}
+
+.spinner {
+ width: 16px;
+ height: 16px;
+ border: 2px solid rgba(255, 255, 255, 0.35);
+ border-top-color: #fff;
+ border-radius: 50%;
+ animation: spin 0.7s linear infinite;
+}
+
+/* --- Animations ------------------------------------------------------------ */
+
+@keyframes spin {
+ to { transform: rotate(360deg); }
+}
+
+@keyframes scan {
+ to { transform: translateY(420%); }
+}
diff --git a/src/styles/controls.css b/src/styles/controls.css
new file mode 100644
index 0000000..6c835d7
--- /dev/null
+++ b/src/styles/controls.css
@@ -0,0 +1,348 @@
+/* ============================================================================
+ controls.css — shared UI primitives used by every surface.
+ Buttons, icon buttons, fields, pills, toasts, progress bars, panel chrome.
+ ========================================================================== */
+
+/* --- Buttons --------------------------------------------------------------- */
+
+.primary-button,
+.secondary-button {
+ min-height: var(--control-md);
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-4);
+ border-radius: var(--radius-md);
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+ transition: 0.18s ease;
+}
+
+/* Primary actions are the hero control size. */
+.primary-button {
+ min-height: var(--control-lg);
+ padding: 0 var(--space-5);
+ border: 1px solid #5578ed;
+ color: #fff;
+ background: linear-gradient(180deg, #5279f4, #3159d4);
+ box-shadow:
+ 0 5px 18px rgba(31, 70, 196, 0.26),
+ inset 0 1px rgba(255, 255, 255, 0.15);
+}
+
+.primary-button:hover:not(:disabled) {
+ filter: brightness(1.1);
+ transform: translateY(-1px);
+}
+
+.secondary-button {
+ border: 1px solid var(--line-strong);
+ color: var(--text-secondary);
+ background: rgba(255, 255, 255, 0.025);
+}
+
+.secondary-button:hover:not(:disabled) {
+ border-color: rgba(255, 255, 255, 0.25);
+ color: var(--text-primary);
+ background: rgba(255, 255, 255, 0.05);
+}
+
+.primary-button:disabled,
+.secondary-button:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+}
+
+.danger-button {
+ width: 100%;
+ min-height: var(--control-md);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-4);
+ border: 1px solid #65363e;
+ border-radius: var(--radius-md);
+ color: var(--danger);
+ background: #26171b;
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+}
+
+.danger-button:hover:not(:disabled) {
+ border-color: #7d434c;
+ background: #2e1b20;
+}
+
+/* --- Icon buttons ---------------------------------------------------------- */
+
+.icon-button {
+ width: var(--icon-button);
+ height: var(--icon-button);
+ padding: 0;
+ display: inline-grid;
+ place-items: center;
+ border: 1px solid transparent;
+ border-radius: var(--radius-md);
+ color: var(--text-muted);
+ background: transparent;
+ transition: 0.16s ease;
+}
+
+.icon-button:hover {
+ color: var(--text-secondary);
+ background: rgba(255, 255, 255, 0.045);
+}
+
+.icon-button--active {
+ color: #c7d2ff;
+ border-color: rgba(88, 119, 218, 0.25);
+ background: var(--accent-soft);
+}
+
+.icon-button--strong {
+ color: var(--text-secondary);
+ border-color: var(--line);
+}
+
+/* --- Search field ---------------------------------------------------------- */
+
+.search-field {
+ height: var(--field-height);
+ width: 260px;
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-3);
+ color: var(--text-muted);
+ background: #0e1117;
+ border: 1px solid var(--line);
+ border-radius: var(--radius-md);
+}
+
+.search-field:focus-within {
+ border-color: rgba(92, 127, 236, 0.6);
+}
+
+.search-field input {
+ min-width: 0;
+ flex: 1;
+ height: 100%;
+ background: none;
+ border: 0;
+ outline: none;
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+}
+
+.search-field input::placeholder {
+ color: var(--text-faint);
+}
+
+.search-field kbd {
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ color: var(--text-faint);
+ border: 1px solid var(--line);
+ padding: var(--space-1) var(--space-2);
+ border-radius: var(--radius-xs);
+}
+
+/* --- Eyebrow / pills ------------------------------------------------------- */
+
+.eyebrow {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-2);
+ margin: 0;
+ color: #8fa0d8;
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-bold);
+ line-height: var(--leading-snug);
+ text-transform: uppercase;
+ letter-spacing: var(--tracking-label);
+}
+
+.storage-pill {
+ display: inline-flex;
+ gap: var(--space-2);
+ align-items: center;
+ min-height: var(--control-sm);
+ color: var(--text-muted);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-pill);
+ padding: var(--space-2) var(--space-3);
+}
+
+.storage-pill i {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--success);
+ box-shadow: 0 0 8px rgba(110, 207, 149, 0.6);
+}
+
+/* --- Back link ------------------------------------------------------------- */
+
+.back-link {
+ min-height: var(--control-sm);
+ display: inline-flex;
+ gap: var(--space-2);
+ align-items: center;
+ padding: 0 var(--space-2);
+ margin-left: calc(var(--space-2) * -1);
+ border: 0;
+ border-radius: var(--radius-sm);
+ background: none;
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+}
+
+.back-link:hover {
+ color: var(--text-secondary);
+ background: rgba(255, 255, 255, 0.03);
+}
+
+/* --- Panel chrome (shared header strip inside editor panels) ---------------- */
+
+.panel-chrome {
+ height: var(--control-lg);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 var(--space-3);
+ border-bottom: 1px solid var(--line);
+ color: var(--text-muted);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+ text-transform: uppercase;
+ letter-spacing: var(--tracking-label);
+}
+
+.panel-chrome > span {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+}
+
+.panel-chrome button {
+ min-height: var(--control-sm);
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-2);
+ border: 0;
+ border-radius: var(--radius-xs);
+ color: var(--text-muted);
+ background: none;
+ font-size: var(--text-2xs);
+ letter-spacing: var(--tracking-label);
+}
+
+.panel-chrome button:hover {
+ color: var(--text-secondary);
+ background: rgba(255, 255, 255, 0.04);
+}
+
+.live-dot {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--success);
+ box-shadow: 0 0 6px var(--success);
+}
+
+/* --- Progress -------------------------------------------------------------- */
+
+.progress-track {
+ height: 6px;
+ margin: var(--space-3) 0;
+ border-radius: var(--radius-xs);
+ background: #20252e;
+}
+
+.progress-track i {
+ display: block;
+ height: 100%;
+ border-radius: var(--radius-xs);
+ background: linear-gradient(90deg, #4468db, #7d9aff);
+ box-shadow: 0 0 8px rgba(91, 126, 224, 0.53);
+}
+
+.mini-progress {
+ display: block;
+ height: 4px;
+ margin-top: var(--space-2);
+ border-radius: var(--radius-xs);
+ background: #242a35;
+}
+
+.mini-progress em {
+ display: block;
+ height: 100%;
+ border-radius: var(--radius-xs);
+ background: #637fe0;
+}
+
+/* --- Toast ----------------------------------------------------------------- */
+
+.toast {
+ position: fixed;
+ z-index: 100;
+ right: var(--space-5);
+ bottom: var(--space-5);
+ width: 380px;
+ padding: var(--space-4);
+ border: 1px solid rgba(244, 104, 104, 0.25);
+ border-radius: var(--radius-lg);
+ background: #171116;
+ box-shadow: var(--shadow);
+ display: grid;
+ grid-template-columns: 1fr auto;
+ gap: var(--space-1) var(--space-4);
+}
+
+.toast strong {
+ font-size: var(--text-md);
+ line-height: var(--leading-snug);
+}
+
+.toast span {
+ grid-column: 1;
+ color: #c0a4ab;
+ font-size: var(--text-sm);
+ line-height: var(--leading-normal);
+}
+
+.toast button {
+ grid-column: 2;
+ grid-row: 1 / 3;
+ min-height: var(--control-sm);
+ padding: 0 var(--space-2);
+ border: 0;
+ border-radius: var(--radius-sm);
+ background: none;
+ color: #e1939f;
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+}
+
+.toast button:hover {
+ background: rgba(255, 255, 255, 0.06);
+}
+
+@media (max-width: 650px) {
+ .search-field {
+ flex: 1;
+ width: auto;
+ }
+
+ .toast {
+ right: var(--space-3);
+ left: var(--space-3);
+ width: auto;
+ }
+}
diff --git a/src/styles/generator.css b/src/styles/generator.css
new file mode 100644
index 0000000..7aefd7b
--- /dev/null
+++ b/src/styles/generator.css
@@ -0,0 +1,703 @@
+/* ============================================================================
+ generator.css — generation queue, prompt composer, job detail panel.
+ ========================================================================== */
+
+.generator-view {
+ height: 100%;
+ min-height: 0;
+ display: grid;
+ grid-template-columns: 300px minmax(0, 1fr);
+ background: #0a0d12;
+}
+
+/* --- Queue rail ------------------------------------------------------------ */
+
+.queue-panel {
+ min-height: 0;
+ overflow-y: auto;
+ border-right: 1px solid #292d37;
+ background: var(--panel);
+}
+
+.queue-panel__title {
+ height: var(--topbar-height);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 var(--space-4);
+ border-bottom: 1px solid var(--line);
+}
+
+.queue-panel__title span,
+.queue-panel__title b {
+ display: block;
+}
+
+.queue-panel__title span {
+ color: var(--text-muted);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+ letter-spacing: var(--tracking-label);
+}
+
+.queue-panel__title b {
+ margin-top: var(--space-1);
+ color: var(--text-secondary);
+ font-size: var(--text-base);
+ line-height: var(--leading-snug);
+}
+
+.queue-panel__title button {
+ min-width: var(--control-sm);
+ min-height: var(--control-sm);
+ display: grid;
+ place-items: center;
+ border: 0;
+ border-radius: var(--radius-sm);
+ color: var(--text-muted);
+ background: none;
+}
+
+.queue-panel__title button:hover {
+ color: var(--text-secondary);
+ background: rgba(255, 255, 255, 0.04);
+}
+
+.queue-group {
+ padding: var(--space-3) var(--space-2) var(--space-1);
+}
+
+.queue-group h3 {
+ height: var(--space-5);
+ margin: 0 var(--space-1);
+ color: var(--text-muted);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-bold);
+ line-height: var(--space-5);
+ text-transform: uppercase;
+ letter-spacing: var(--tracking-label);
+}
+
+.queue-group h3 span {
+ float: right;
+ padding: 0 var(--space-2);
+ border-radius: var(--radius-pill);
+ background: #1a1f28;
+}
+
+.queue-group > button {
+ width: 100%;
+ min-height: var(--space-9);
+ display: grid;
+ grid-template-columns: 44px minmax(0, 1fr) 16px;
+ align-items: center;
+ gap: var(--space-2);
+ margin-bottom: var(--space-1);
+ padding: var(--space-2);
+ border: 1px solid transparent;
+ border-radius: var(--radius-sm);
+ text-align: left;
+ color: var(--text-muted);
+ background: transparent;
+}
+
+.queue-group > button:hover {
+ background: #13171f;
+}
+
+.queue-group > button.selected {
+ border-color: rgba(90, 120, 218, 0.35);
+ background: rgba(51, 76, 154, 0.15);
+}
+
+.queue-thumb {
+ width: 44px;
+ height: 44px;
+ display: grid;
+ place-items: center;
+ border-radius: var(--radius-sm);
+ color: #9db3f2;
+ background: linear-gradient(140deg, #24375d, #604e54);
+}
+
+.queue-thumb--generating svg {
+ animation: spin 1.4s linear infinite;
+}
+
+.queue-thumb--completed {
+ color: var(--success);
+ background: #1d3c32;
+}
+
+.queue-thumb--failed,
+.queue-thumb--cancelled {
+ color: var(--danger);
+ background: #3b2227;
+}
+
+.queue-thumb--ready,
+.status-icon--ready {
+ color: var(--success);
+ background: #1b3a31;
+}
+
+.queue-group button b,
+.queue-group button small {
+ display: block;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.queue-group button b {
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.queue-group button small {
+ margin-top: var(--space-1);
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+ text-transform: capitalize;
+}
+
+.queue-runtime {
+ margin: var(--space-4) var(--space-3);
+ padding: var(--space-3);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-sm);
+ background: #0a0d12;
+}
+
+.queue-runtime span,
+.queue-runtime small {
+ display: block;
+}
+
+.queue-runtime span {
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.queue-runtime span i {
+ display: inline-block;
+ width: 6px;
+ height: 6px;
+ margin-right: var(--space-2);
+ border-radius: 50%;
+ background: var(--success);
+}
+
+.queue-runtime small {
+ margin-top: var(--space-1);
+ color: var(--text-faint);
+ font-size: var(--text-2xs);
+ line-height: var(--leading-snug);
+}
+
+.queue-runtime--unavailable span i {
+ background: var(--warning);
+}
+
+.queue-runtime--runtimeMissing span i,
+.queue-runtime--incompatible span i,
+.queue-runtime--modelsMissing span i {
+ background: var(--danger);
+}
+
+.queue-runtime--demo span i {
+ background: var(--accent-bright);
+}
+
+/* --- Main column ----------------------------------------------------------- */
+
+.generator-main {
+ min-height: 0;
+ overflow-y: auto;
+ padding: var(--space-6) var(--space-7) var(--space-7);
+}
+
+.generator-heading {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-end;
+ max-width: var(--content-max);
+ margin: 0 auto var(--space-5);
+}
+
+.generator-heading h1 {
+ margin: var(--space-1) 0 var(--space-1);
+ font-size: var(--text-xl);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-tight);
+ letter-spacing: var(--tracking-hero);
+}
+
+.generator-heading p {
+ margin: 0;
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+/* --- Generation composer --------------------------------------------------- */
+
+.generation-composer {
+ max-width: var(--content-max);
+ margin: 0 auto var(--space-5);
+ border: 1px solid rgba(91, 121, 211, 0.3);
+ border-radius: var(--radius-lg);
+ background: linear-gradient(120deg, #111827, #11141c);
+ box-shadow: var(--shadow-sm);
+}
+
+.generation-composer__top {
+ min-height: 96px;
+ display: flex;
+ align-items: flex-start;
+ gap: var(--space-3);
+ padding: var(--space-4);
+ color: #8ea6f2;
+}
+
+.generation-composer textarea {
+ min-height: 64px;
+ flex: 1;
+ resize: none;
+ border: 0;
+ outline: 0;
+ color: var(--text-secondary);
+ background: none;
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.generation-composer textarea::placeholder {
+ color: var(--text-faint);
+}
+
+.generation-composer__top button {
+ min-height: var(--control-md);
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-4);
+ border: 1px solid #5d7de6;
+ border-radius: var(--radius-sm);
+ color: #fff;
+ background: #3e63da;
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+}
+
+.generation-settings {
+ min-height: var(--control-lg);
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: var(--space-1) var(--space-3);
+ border-top: 1px solid var(--line);
+ color: var(--text-muted);
+ font: var(--weight-medium) var(--text-2xs) / var(--leading-snug) var(--font-mono);
+}
+
+.generation-settings > span:first-child {
+ color: #8ea6f2;
+}
+
+.generation-settings button {
+ min-height: var(--control-sm);
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+ padding: 0 var(--space-2);
+ border: 1px solid #272d37;
+ border-radius: var(--radius-xs);
+ color: var(--text-muted);
+ background: #151922;
+ font-size: var(--text-xs);
+ font-family: var(--font-sans);
+}
+
+.generation-settings button:hover {
+ color: var(--text-secondary);
+ border-color: #39414f;
+}
+
+.generation-settings i {
+ width: 1px;
+ height: 20px;
+ margin: 0 var(--space-1);
+ background: #2a2f38;
+}
+
+/* --- Job detail ------------------------------------------------------------ */
+
+.job-detail {
+ max-width: var(--content-max);
+ min-height: 460px;
+ margin: 0 auto;
+ display: grid;
+ grid-template-columns: minmax(480px, 1.5fr) minmax(320px, 0.75fr);
+ overflow: hidden;
+ border: 1px solid #282d37;
+ border-radius: var(--radius-lg);
+ background: #0e1117;
+}
+
+.job-detail__visual {
+ min-width: 0;
+ padding: var(--space-5);
+ border-right: 1px solid #282d37;
+}
+
+.generation-preview {
+ position: relative;
+ height: 320px;
+ overflow: hidden;
+ border: 1px solid #303640;
+ border-radius: var(--radius-sm);
+ background: linear-gradient(150deg, #26374f 0 48%, #ca8b60 49% 51%, #171c24 52%);
+}
+
+.generation-preview__flare {
+ position: absolute;
+ width: 250px;
+ height: 250px;
+ right: -80px;
+ top: -110px;
+ border-radius: 50%;
+ background: #efb17544;
+ filter: blur(25px);
+}
+
+.generation-preview__model {
+ position: absolute;
+ inset: 18% 12% 0 30%;
+ display: flex;
+ align-items: flex-end;
+ gap: 5px;
+ transform: perspective(500px) rotateY(-12deg);
+}
+
+.generation-preview__model i {
+ flex: 1;
+ height: 70%;
+ background: linear-gradient(90deg, #101722, #747c87 20%, #b77d5d 23%, #1d2530 27%);
+}
+
+.generation-preview__model i:nth-child(2) { height: 100%; }
+.generation-preview__model i:nth-child(3) { height: 84%; }
+.generation-preview__model i:nth-child(4) { height: 55%; }
+
+.generation-scanner {
+ position: absolute;
+ inset: -40% 0 auto;
+ height: 50%;
+ background: linear-gradient(transparent, #91a8ff25, transparent);
+ animation: scan 2.5s ease-in-out infinite;
+}
+
+.preview-status {
+ position: absolute;
+ left: var(--space-3);
+ bottom: var(--space-3);
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: var(--space-1) var(--space-2);
+ border: 1px solid rgba(255, 255, 255, 0.13);
+ border-radius: var(--radius-xs);
+ color: #dde3ef;
+ background: rgba(9, 12, 18, 0.72);
+ backdrop-filter: blur(6px);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.preview-status svg {
+ color: var(--accent-bright);
+}
+
+.generation-preview--completed .preview-status svg {
+ color: var(--success);
+}
+
+/* --- Progress block -------------------------------------------------------- */
+
+.job-progress-block {
+ padding: var(--space-4) var(--space-1) 0;
+}
+
+.job-progress-block > div:first-child {
+ display: flex;
+ justify-content: space-between;
+}
+
+.job-progress-block b {
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.job-progress-block span {
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.stage-rail {
+ display: flex !important;
+ justify-content: space-between !important;
+}
+
+.stage-rail span {
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+ font-size: var(--text-2xs) !important;
+}
+
+.stage-rail span i {
+ width: 20px;
+ height: 20px;
+ display: grid;
+ place-items: center;
+ border: 1px solid #303642;
+ border-radius: 50%;
+ font-style: normal;
+ font-size: var(--text-2xs);
+}
+
+.stage-rail span.done {
+ color: #9db3f2;
+}
+
+.stage-rail span.done i {
+ color: #fff;
+ border-color: #5575d9;
+ background: #3b5fce;
+}
+
+/* --- Job info column ------------------------------------------------------- */
+
+.job-detail__info {
+ min-width: 0;
+ padding: var(--space-4);
+ overflow-y: auto;
+}
+
+.job-title {
+ display: flex;
+ align-items: flex-start;
+ gap: var(--space-3);
+ padding-bottom: var(--space-4);
+ border-bottom: 1px solid var(--line);
+}
+
+.status-icon {
+ width: var(--control-sm);
+ height: var(--control-sm);
+ flex: 0 0 auto;
+ display: grid;
+ place-items: center;
+ border-radius: var(--radius-sm);
+ color: #9db3f2;
+ background: #28365b;
+}
+
+.status-icon--generating svg {
+ animation: spin 1.4s linear infinite;
+}
+
+.status-icon--completed {
+ color: var(--success);
+ background: #1c3c31;
+}
+
+.job-title > div > span {
+ color: #8ea6f2;
+ font: var(--weight-medium) var(--text-2xs) / var(--leading-snug) var(--font-mono);
+ letter-spacing: var(--tracking-label);
+}
+
+.job-title h2 {
+ margin: var(--space-1) 0 0;
+ color: var(--text-secondary);
+ font-size: var(--text-md);
+ line-height: var(--leading-snug);
+}
+
+.job-prompt {
+ padding: var(--space-3) 0;
+ border-bottom: 1px solid var(--line);
+}
+
+.job-prompt > span,
+.job-refs > span {
+ color: var(--text-muted);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-semibold);
+ letter-spacing: var(--tracking-label);
+}
+
+.job-prompt p {
+ margin: var(--space-2) 0 0;
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.job-meta {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: var(--space-3);
+ padding: var(--space-3) 0;
+ border-bottom: 1px solid var(--line);
+}
+
+.job-meta span,
+.job-meta b {
+ display: block;
+}
+
+.job-meta span {
+ color: var(--text-muted);
+ font-size: var(--text-2xs);
+ line-height: var(--leading-snug);
+ letter-spacing: var(--tracking-label);
+}
+
+.job-meta b {
+ margin-top: var(--space-1);
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.job-refs {
+ padding: var(--space-3) 0;
+}
+
+.job-refs > div {
+ display: grid;
+ grid-template-columns: 36px minmax(0, 1fr);
+ margin-top: var(--space-2);
+ align-items: center;
+}
+
+.job-refs .ref-mini {
+ grid-row: 1 / 3;
+ width: 32px;
+ height: 32px;
+ border-radius: var(--radius-xs);
+ background: linear-gradient(140deg, #304465, #a2755a);
+}
+
+.ref-mini--1 {
+ background: linear-gradient(140deg, #392d40, #676b87) !important;
+}
+
+.job-refs b,
+.job-refs small {
+ display: block;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.job-refs b {
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.job-refs small {
+ margin-top: 2px;
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.job-runtime-note {
+ padding: var(--space-3) 0;
+ border-bottom: 1px solid var(--line);
+}
+
+.job-runtime-note span {
+ color: #8ea6f2;
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-semibold);
+ letter-spacing: var(--tracking-label);
+}
+
+.job-runtime-note p {
+ margin: var(--space-2) 0 0;
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.job-actions {
+ margin-top: var(--space-3);
+}
+
+.job-actions .primary-button {
+ width: 100%;
+ min-height: var(--control-lg);
+}
+
+.job-actions .primary-button:disabled {
+ cursor: not-allowed;
+ color: var(--text-muted);
+ border-color: #303642;
+ background: #171b22;
+ opacity: 1;
+}
+
+/* --- Empty state ----------------------------------------------------------- */
+
+.job-empty {
+ max-width: var(--content-max);
+ min-height: 340px;
+ margin: auto;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ border: 1px dashed #292f39;
+ border-radius: var(--radius-lg);
+ color: #7f8fc4;
+}
+
+.job-empty h2 {
+ margin: var(--space-3) 0 var(--space-1);
+ color: var(--text-secondary);
+ font-size: var(--text-lg);
+ line-height: var(--leading-snug);
+}
+
+.job-empty p {
+ margin: 0;
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+/* --- Responsive ------------------------------------------------------------ */
+
+@media (max-width: 1180px) {
+ .generator-view {
+ grid-template-columns: 264px minmax(0, 1fr);
+ }
+
+ .generator-main {
+ padding-inline: var(--space-5);
+ }
+
+ .job-detail {
+ grid-template-columns: minmax(420px, 1.5fr) minmax(300px, 0.75fr);
+ }
+}
diff --git a/src/styles/index.css b/src/styles/index.css
new file mode 100644
index 0000000..c5cf849
--- /dev/null
+++ b/src/styles/index.css
@@ -0,0 +1,22 @@
+/* ============================================================================
+ Pol Studio — stylesheet entry point.
+
+ This is the ONLY file imported by the app (src/main.tsx). Everything else is
+ pulled in from here, in cascade order. Keep the font @import first: CSS
+ requires all @import rules to precede any other rule.
+ ========================================================================== */
+
+@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");
+
+/* Foundation */
+@import "./tokens.css";
+@import "./base.css";
+@import "./controls.css";
+
+/* Application surfaces */
+@import "./shell.css";
+@import "./library.css";
+@import "./workspace.css";
+@import "./generator.css";
+@import "./timeline.css";
+@import "./references.css";
diff --git a/src/styles/library.css b/src/styles/library.css
new file mode 100644
index 0000000..cee4e07
--- /dev/null
+++ b/src/styles/library.css
@@ -0,0 +1,799 @@
+/* ============================================================================
+ library.css — project library: topbar, hero, prompt composer, project grid.
+ ========================================================================== */
+
+.library {
+ grid-column: 2;
+ min-width: 0;
+}
+
+.library__topbar {
+ height: var(--topbar-height);
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: var(--space-3);
+ padding: 0 var(--space-6);
+ border-bottom: 1px solid var(--line);
+ background: rgba(8, 10, 15, 0.74);
+ backdrop-filter: blur(16px);
+}
+
+.library__content {
+ width: min(var(--content-max), calc(100% - var(--space-9)));
+ margin: 0 auto;
+ padding: var(--space-8) 0 var(--space-6);
+}
+
+.library__intro {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-end;
+ margin-bottom: var(--space-6);
+}
+
+.library__intro h1 {
+ margin: var(--space-2) 0 var(--space-1);
+ font-size: var(--text-3xl);
+ font-weight: var(--weight-medium);
+ line-height: var(--leading-tight);
+ letter-spacing: var(--tracking-hero);
+}
+
+.library__intro > div > p:last-child {
+ margin: 0;
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.library__footer {
+ margin-top: var(--space-7);
+ padding-top: var(--space-4);
+ border-top: 1px solid var(--line);
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+ color: var(--text-faint);
+ font: var(--weight-regular) var(--text-2xs) / var(--leading-snug) var(--font-mono);
+}
+
+.library__footer i {
+ width: 3px;
+ height: 3px;
+ background: var(--text-faint);
+ border-radius: 50%;
+}
+
+/* --- Prompt composer ------------------------------------------------------- */
+
+.composer-shell {
+ position: relative;
+ overflow: hidden;
+ border: 1px solid rgba(91, 121, 211, 0.2);
+ border-radius: var(--radius-xl);
+ padding: var(--space-6) var(--space-6) var(--space-5);
+ background: linear-gradient(
+ 135deg,
+ rgba(21, 29, 53, 0.76),
+ rgba(13, 16, 23, 0.95) 55%,
+ #0d1016
+ );
+ box-shadow: var(--shadow);
+}
+
+.composer-shell__glow {
+ position: absolute;
+ width: 360px;
+ height: 240px;
+ right: -80px;
+ top: -120px;
+ border-radius: 50%;
+ background: rgba(51, 89, 217, 0.13);
+ filter: blur(50px);
+ pointer-events: none;
+}
+
+.composer-heading {
+ position: relative;
+}
+
+.composer-heading h2 {
+ margin: var(--space-2) 0 var(--space-1);
+ font-size: var(--text-lg);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-tight);
+ letter-spacing: var(--tracking-tight);
+}
+
+.composer-heading p {
+ margin: 0 0 var(--space-5);
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.composer {
+ position: relative;
+ border: 1px solid rgba(114, 139, 218, 0.27);
+ border-radius: var(--radius-lg);
+ background: rgba(7, 9, 14, 0.72);
+ box-shadow:
+ inset 0 1px rgba(255, 255, 255, 0.025),
+ 0 10px 25px rgba(0, 0, 0, 0.2);
+}
+
+.composer:focus-within {
+ border-color: rgba(103, 138, 245, 0.55);
+ box-shadow:
+ 0 0 0 3px rgba(52, 89, 203, 0.08),
+ 0 12px 30px rgba(0, 0, 0, 0.25);
+}
+
+.composer__input-row {
+ min-height: 88px;
+ display: flex;
+ align-items: flex-start;
+ gap: var(--space-3);
+ padding: var(--space-4);
+}
+
+.composer__brand-mark {
+ margin-top: 2px;
+}
+
+.composer textarea {
+ min-width: 0;
+ width: 100%;
+ resize: none;
+ border: 0;
+ outline: 0;
+ color: var(--text-primary);
+ background: transparent;
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.composer textarea::placeholder {
+ color: var(--text-faint);
+}
+
+.composer__submit {
+ flex: 0 0 auto;
+ width: var(--control-lg);
+ height: var(--control-lg);
+ display: grid;
+ place-items: center;
+ border: 1px solid #6382e9;
+ border-radius: var(--radius-md);
+ color: #fff;
+ background: linear-gradient(180deg, #5f82f3, #345bd6);
+ box-shadow: 0 5px 16px rgba(44, 80, 198, 0.35);
+}
+
+.composer__submit:disabled {
+ color: var(--text-faint);
+ background: #171a21;
+ border-color: var(--line);
+ box-shadow: none;
+ cursor: default;
+}
+
+.composer__references {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-4) var(--space-3) calc(var(--space-9) + var(--space-4));
+}
+
+.composer__references > small {
+ color: var(--danger);
+ font-size: var(--text-xs);
+}
+
+.composer__reference {
+ max-width: 240px;
+ height: var(--control-md);
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: 0 2px 0 var(--space-3);
+ border: 1px solid rgba(91, 121, 211, 0.26);
+ border-radius: var(--radius-sm);
+ color: #92a9ec;
+ background: rgba(45, 67, 130, 0.15);
+}
+
+.composer__reference b {
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ color: #b7c1e0;
+ font-size: var(--text-xs);
+ font-weight: var(--weight-semibold);
+}
+
+.composer__reference button {
+ width: var(--control-sm);
+ height: var(--control-sm);
+ flex: 0 0 auto;
+ display: grid;
+ place-items: center;
+ padding: 0;
+ border: 0;
+ border-radius: var(--radius-xs);
+ color: var(--text-muted);
+ background: transparent;
+}
+
+.composer__reference button:hover {
+ color: var(--text-primary);
+ background: rgba(255, 255, 255, 0.06);
+}
+
+.composer__settings {
+ min-height: 56px;
+ border-top: 1px solid var(--line);
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+ padding: var(--space-2) var(--space-3);
+}
+
+.composer__settings label {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+}
+
+.composer__settings label > span {
+ color: var(--text-muted);
+}
+
+.composer__settings select {
+ min-height: var(--control-sm);
+ border: 0;
+ outline: 0;
+ padding: 0 var(--space-4) 0 var(--space-1);
+ color: var(--text-secondary);
+ background: transparent;
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+}
+
+.composer__attach {
+ min-height: var(--control-sm);
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-2);
+ border: 0;
+ border-radius: var(--radius-sm);
+ color: #98a5cb;
+ background: transparent;
+ font-size: var(--text-sm);
+}
+
+.composer__attach:hover:not(:disabled) {
+ color: #c1cbea;
+ background: rgba(73, 99, 174, 0.12);
+}
+
+.composer__attach:disabled {
+ cursor: not-allowed;
+ color: var(--text-faint);
+}
+
+.composer__attach b {
+ min-width: 18px;
+ padding: 2px var(--space-1);
+ border-radius: var(--radius-pill);
+ color: #b1bfe8;
+ background: #26345c;
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+}
+
+.composer__divider {
+ width: 1px;
+ height: 20px;
+ margin: 0 var(--space-2);
+ background: var(--line);
+}
+
+.composer__hint {
+ margin-left: auto;
+ color: var(--text-faint);
+ font: var(--weight-regular) var(--text-2xs) / 1 var(--font-mono);
+}
+
+.idea-row {
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ margin-top: var(--space-4);
+}
+
+.idea-row > span {
+ margin-right: var(--space-1);
+ color: var(--text-faint);
+ font-size: var(--text-sm);
+}
+
+.idea-row button {
+ min-height: var(--control-sm);
+ padding: 0 var(--space-3);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-pill);
+ color: var(--text-muted);
+ background: rgba(255, 255, 255, 0.017);
+ font-size: var(--text-sm);
+}
+
+.idea-row button:hover {
+ color: var(--text-secondary);
+ border-color: rgba(112, 139, 226, 0.3);
+}
+
+/* --- Section heading + view controls --------------------------------------- */
+
+.recent-projects {
+ margin-top: var(--space-8);
+}
+
+.section-heading {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: var(--space-4);
+}
+
+.section-heading > div:first-child {
+ display: flex;
+ align-items: baseline;
+ gap: var(--space-3);
+}
+
+.section-heading h2 {
+ margin: 0;
+ font-size: var(--text-md);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+}
+
+.section-heading span {
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+}
+
+.view-controls {
+ display: flex;
+ gap: var(--space-1);
+}
+
+/* --- Project grid ---------------------------------------------------------- */
+
+.project-grid {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: var(--space-4);
+}
+
+.project-grid--list {
+ grid-template-columns: 1fr;
+}
+
+.project-grid--list .project-card {
+ display: grid;
+ grid-template-columns: minmax(220px, 24%) 1fr;
+}
+
+.project-grid--list .project-card__art,
+.project-grid--list .project-card__art-button {
+ height: 100%;
+}
+
+.project-grid--list .project-card__art {
+ aspect-ratio: auto;
+ min-height: 140px;
+}
+
+.project-grid--list .project-card__body {
+ align-self: center;
+}
+
+.project-card {
+ min-width: 0;
+ border: 1px solid var(--line);
+ border-radius: var(--radius-lg);
+ background: #0e1117;
+ overflow: hidden;
+ transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
+}
+
+.project-card:hover,
+.project-card:focus {
+ transform: translateY(-2px);
+ border-color: rgba(117, 137, 198, 0.28);
+ box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
+ outline: none;
+}
+
+.project-card__art-button {
+ display: block;
+ width: 100%;
+ padding: 0;
+ border: 0;
+ background: none;
+}
+
+.project-card__art {
+ position: relative;
+ overflow: hidden;
+ aspect-ratio: 16 / 8.8;
+ background-size: cover;
+ background-position: center;
+}
+
+.project-card__art::before,
+.project-card__art::after {
+ content: "";
+ position: absolute;
+}
+
+/* Generated cover artwork — decorative, sizes intentionally unchanged. */
+.project-card__art--aurora {
+ background: linear-gradient(155deg, #101c38, #172d55 45%, #6e6d4d);
+}
+
+.project-card__art--aurora::before {
+ width: 120%;
+ height: 55%;
+ left: -10%;
+ bottom: -20%;
+ background: linear-gradient(160deg, transparent 15%, #8bb3d5 16%, #283a58 32%, #090e17 33%);
+ transform: skewY(-7deg);
+}
+
+.project-card__art--aurora::after {
+ width: 48%;
+ height: 140%;
+ left: 27%;
+ top: -25%;
+ background: radial-gradient(ellipse, rgba(112, 183, 230, 0.55), transparent 58%);
+ filter: blur(13px);
+}
+
+.project-card__art--paper {
+ background: #cabca3;
+}
+
+.project-card__art--paper::before {
+ width: 110px;
+ height: 150px;
+ left: 45%;
+ top: -25px;
+ border-radius: 50%;
+ transform: rotate(35deg);
+ background: linear-gradient(90deg, #613a26, #e6bd83 42%, #2b4d46 44%, #142724 70%);
+ box-shadow: -45px 60px 0 rgba(48, 29, 22, 0.62);
+}
+
+.project-card__art--paper::after {
+ inset: 0;
+ background:
+ linear-gradient(110deg, rgba(255, 255, 255, 0.2), transparent 45%),
+ repeating-linear-gradient(0deg, rgba(62, 47, 29, 0.05) 0 1px, transparent 1px 5px);
+}
+
+.project-card__art--chrome {
+ background:
+ radial-gradient(
+ circle at 58% 52%,
+ #cfe5f4 0 4%, #385370 5% 10%, #dce7e7 11% 18%, #273d5d 20% 28%, transparent 29%
+ ),
+ linear-gradient(135deg, #10131a, #29405f 52%, #846a51);
+}
+
+.project-card__art--chrome::before {
+ width: 100px;
+ height: 100px;
+ left: 18%;
+ top: 18%;
+ border: 12px solid rgba(205, 225, 237, 0.66);
+ border-radius: 50%;
+ filter: blur(1px);
+ transform: rotateX(60deg);
+}
+
+.project-card__art--chrome::after {
+ width: 140%;
+ height: 1px;
+ left: -20%;
+ bottom: 25%;
+ background: rgba(255, 255, 255, 0.3);
+ box-shadow: 0 8px rgba(255, 255, 255, 0.1);
+}
+
+.project-card__art--ember {
+ background:
+ radial-gradient(circle at 65% 38%, #ef9f67 0 2%, transparent 3%),
+ linear-gradient(140deg, #101218, #4b1b2d 60%, #d36b42);
+}
+
+.project-card__format,
+.project-card__quality {
+ position: absolute;
+ z-index: 2;
+ top: var(--space-3);
+ border: 1px solid rgba(255, 255, 255, 0.16);
+ color: rgba(255, 255, 255, 0.82);
+ background: rgba(4, 6, 10, 0.52);
+ backdrop-filter: blur(8px);
+ border-radius: var(--radius-xs);
+ padding: var(--space-1) var(--space-2);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+}
+
+.project-card__format {
+ left: var(--space-3);
+ display: flex;
+ gap: var(--space-1);
+ align-items: center;
+}
+
+.project-card__quality {
+ right: var(--space-3);
+}
+
+.project-card__play {
+ position: absolute;
+ z-index: 3;
+ inset: 50% auto auto 50%;
+ transform: translate(-50%, -50%) scale(0.8);
+ width: var(--control-lg);
+ height: var(--control-lg);
+ display: grid;
+ place-items: center;
+ border: 1px solid rgba(255, 255, 255, 0.35);
+ border-radius: 50%;
+ color: #fff;
+ background: rgba(5, 7, 11, 0.45);
+ opacity: 0;
+ transition: 0.2s;
+ backdrop-filter: blur(8px);
+}
+
+.project-card:hover .project-card__play {
+ opacity: 1;
+ transform: translate(-50%, -50%) scale(1);
+}
+
+.project-card__art-copy {
+ position: absolute;
+ z-index: 2;
+ inset: auto var(--space-3) var(--space-3);
+ display: flex;
+ gap: var(--space-2);
+ align-items: center;
+ color: rgba(255, 255, 255, 0.82);
+ text-shadow: 0 1px 5px #000;
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+ text-align: left;
+}
+
+.project-card__art-copy svg {
+ flex: 0 0 auto;
+}
+
+.project-card__art-copy span {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.project-card__body {
+ padding: var(--space-3) var(--space-4) var(--space-4);
+}
+
+.project-card__title-row {
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+}
+
+.project-card__title-row h3 {
+ min-width: 0;
+ flex: 1;
+ margin: 0;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ color: var(--text-secondary);
+ font-size: var(--text-base);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+}
+
+.project-card__menu {
+ position: absolute;
+ z-index: 5;
+ top: var(--space-6);
+ right: 0;
+ min-width: 180px;
+ padding: var(--space-1);
+ border: 1px solid var(--line-strong);
+ border-radius: var(--radius-md);
+ background: var(--panel-3);
+ box-shadow: var(--shadow-sm);
+}
+
+.project-card__menu button {
+ width: 100%;
+ min-height: var(--control-sm);
+ padding: 0 var(--space-2);
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ border: 0;
+ border-radius: var(--radius-sm);
+ color: var(--text-secondary);
+ background: transparent;
+ font-size: var(--text-sm);
+ text-align: left;
+}
+
+.project-card__menu button:hover {
+ background: rgba(255, 255, 255, 0.06);
+}
+
+.project-card__path {
+ margin: var(--space-1) 0 var(--space-3);
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ color: var(--text-faint);
+ font: var(--weight-regular) var(--text-2xs) / var(--leading-snug) var(--font-mono);
+}
+
+.project-card__path svg {
+ flex: 0 0 auto;
+}
+
+.project-card__meta {
+ border-top: 1px solid var(--line);
+ padding-top: var(--space-2);
+ display: flex;
+ justify-content: space-between;
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+}
+
+.project-card__meta span {
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+}
+
+/* --- Skeleton + empty state ------------------------------------------------ */
+
+.project-skeleton {
+ height: 280px;
+ border-radius: var(--radius-lg);
+ padding: var(--space-3);
+ border: 1px solid var(--line);
+ background: #0e1117;
+}
+
+.project-skeleton i {
+ display: block;
+ height: 180px;
+ border-radius: var(--radius-sm);
+ background: #151922;
+}
+
+.project-skeleton span,
+.project-skeleton small {
+ display: block;
+ height: var(--space-3);
+ margin-top: var(--space-4);
+ border-radius: var(--radius-xs);
+ background: #181c24;
+}
+
+.project-skeleton small {
+ width: 60%;
+ margin-top: var(--space-2);
+}
+
+.library-empty {
+ min-height: 260px;
+ border: 1px dashed var(--line-strong);
+ border-radius: var(--radius-lg);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ color: var(--text-muted);
+}
+
+.library-empty h3 {
+ color: var(--text-secondary);
+ font-size: var(--text-md);
+ line-height: var(--leading-snug);
+ margin: var(--space-3) 0 var(--space-1);
+}
+
+.library-empty p {
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+ margin: 0 0 var(--space-4);
+}
+
+/* --- Responsive ------------------------------------------------------------ */
+
+@media (max-width: 900px) {
+ .library {
+ grid-column: 2;
+ }
+
+ .library__content {
+ width: calc(100% - var(--space-6));
+ }
+
+ .project-grid {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+}
+
+@media (max-width: 650px) {
+ .library {
+ grid-column: 1;
+ }
+
+ .library__topbar {
+ padding: 0 var(--space-4);
+ }
+
+ .library__content {
+ padding-top: var(--space-6);
+ }
+
+ .library__intro {
+ align-items: flex-start;
+ }
+
+ .storage-pill {
+ margin-top: var(--space-3);
+ }
+
+ .project-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .idea-row {
+ flex-wrap: wrap;
+ }
+
+ .composer-shell {
+ padding: var(--space-5) var(--space-4);
+ }
+
+ .composer__references {
+ padding-left: var(--space-4);
+ }
+
+ .composer__settings label > span,
+ .composer__hint {
+ display: none;
+ }
+}
diff --git a/src/styles/references.css b/src/styles/references.css
new file mode 100644
index 0000000..018e883
--- /dev/null
+++ b/src/styles/references.css
@@ -0,0 +1,651 @@
+/* ============================================================================
+ references.css — reference library, reference inspector, add-reference dialog.
+ ========================================================================== */
+
+.references-view {
+ height: 100%;
+ min-height: 0;
+ overflow-y: auto;
+ padding: var(--space-6) var(--space-7) var(--space-7);
+ background:
+ radial-gradient(circle at 20% -20%, #2f456b22, transparent 35%),
+ #0a0d12;
+}
+
+.references-heading {
+ max-width: var(--content-max);
+ margin: 0 auto var(--space-5);
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-end;
+}
+
+.references-heading > div:last-child {
+ display: flex;
+ gap: var(--space-2);
+}
+
+.references-heading h1 {
+ margin: var(--space-1) 0 var(--space-1);
+ font-size: var(--text-xl);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-tight);
+ letter-spacing: var(--tracking-hero);
+}
+
+.references-heading p {
+ margin: 0;
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+/* --- Layout ---------------------------------------------------------------- */
+
+.reference-layout {
+ max-width: var(--content-max);
+ min-height: 640px;
+ margin: auto;
+ display: grid;
+ grid-template-columns: minmax(600px, 1fr) 340px;
+ overflow: hidden;
+ border: 1px solid #292e38;
+ border-radius: var(--radius-lg);
+ background: #0e1117;
+}
+
+.reference-library {
+ min-width: 0;
+ padding-bottom: var(--space-5);
+ border-right: 1px solid #292e38;
+}
+
+.reference-library__toolbar {
+ height: var(--control-lg);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 var(--space-4);
+ border-bottom: 1px solid var(--line);
+ color: var(--text-muted);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+ text-transform: uppercase;
+ letter-spacing: var(--tracking-label);
+}
+
+.reference-library__toolbar button {
+ width: var(--control-sm);
+ height: var(--control-sm);
+ display: grid;
+ place-items: center;
+ padding: 0;
+ border: 0;
+ border-radius: var(--radius-sm);
+ color: var(--text-muted);
+ background: none;
+}
+
+.reference-library__toolbar button:hover {
+ color: var(--text-secondary);
+ background: rgba(255, 255, 255, 0.04);
+}
+
+/* --- Reference cards ------------------------------------------------------- */
+
+.reference-grid {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: var(--space-3);
+ padding: var(--space-4);
+}
+
+.reference-grid > button {
+ min-width: 0;
+ height: 180px;
+ display: grid;
+ grid-template-columns: 132px minmax(0, 1fr);
+ overflow: hidden;
+ padding: 0;
+ border: 1px solid #272d37;
+ border-radius: var(--radius-md);
+ text-align: left;
+ color: var(--text-muted);
+ background: #11151c;
+}
+
+.reference-grid > button:hover {
+ border-color: #3a4353;
+}
+
+.reference-grid > button.selected {
+ border-color: #647fdb;
+ box-shadow: 0 0 0 2px #4e69bd33;
+}
+
+.reference-art,
+.reference-copy-art {
+ position: relative;
+ height: 100%;
+ overflow: hidden;
+ display: grid;
+ place-items: center;
+ background: linear-gradient(155deg, #24344e, #9f735a);
+}
+
+.reference-art i {
+ position: absolute;
+ width: 70%;
+ height: 82%;
+ left: 18%;
+ bottom: -8%;
+ background: repeating-linear-gradient(90deg, #17202c 0 12px, #8c684f 13px 15px);
+ transform: perspective(200px) rotateY(-16deg);
+}
+
+.reference-art em {
+ position: absolute;
+ z-index: 2;
+ left: var(--space-2);
+ bottom: var(--space-2);
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+ padding: 2px var(--space-1);
+ border-radius: var(--radius-xs);
+ color: #d8dee9;
+ background: rgba(9, 11, 15, 0.72);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ font-style: normal;
+}
+
+.reference-copy-art {
+ color: #94a8ea;
+ background: radial-gradient(circle at 50% 40%, #33436b, #171c2a);
+}
+
+.reference-copy-art i {
+ width: 56px;
+ height: 56px;
+ display: grid;
+ place-items: center;
+ border: 1px solid #6681d64d;
+ border-radius: 50%;
+ color: #bfccf5;
+ background: #34436a;
+ font-size: var(--text-lg);
+ font-style: normal;
+}
+
+.reference-copy-art svg {
+ position: absolute;
+ right: var(--space-2);
+ bottom: var(--space-2);
+}
+
+.reference-card__body {
+ min-width: 0;
+ padding: var(--space-3);
+}
+
+.reference-card__body > span:first-child b,
+.reference-card__body > span:first-child small {
+ display: block;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.reference-card__body b {
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.reference-card__body small {
+ margin-top: var(--space-1);
+ color: var(--text-faint);
+ font: var(--weight-medium) var(--text-2xs) / var(--leading-snug) var(--font-mono);
+}
+
+.reference-card__body p {
+ height: 66px;
+ overflow: hidden;
+ margin: var(--space-3) 0 var(--space-2);
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-normal);
+}
+
+.use-tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-1);
+}
+
+.use-tags i {
+ padding: 2px var(--space-1);
+ border: 1px solid #303744;
+ border-radius: var(--radius-xs);
+ color: #8d9dcb;
+ background: #171d2b;
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ font-style: normal;
+ text-transform: uppercase;
+}
+
+.reference-grid .reference-add-card {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ border-style: dashed;
+ color: var(--text-muted);
+ background: var(--panel);
+}
+
+.reference-add-card > span {
+ width: var(--control-md);
+ height: var(--control-md);
+ display: grid;
+ place-items: center;
+ margin-bottom: var(--space-2);
+ border: 1px solid #333a46;
+ border-radius: var(--radius-md);
+ color: #97a9e0;
+ background: #151c2d;
+}
+
+.reference-add-card b {
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.reference-add-card small {
+ margin-top: var(--space-1);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.reference-explainer {
+ display: flex;
+ gap: var(--space-3);
+ margin: var(--space-1) var(--space-4) 0;
+ padding: var(--space-3);
+ border: 1px solid rgba(83, 111, 199, 0.22);
+ border-radius: var(--radius-md);
+ color: #8ea6f2;
+ background: rgba(40, 61, 124, 0.1);
+}
+
+.reference-explainer b {
+ display: block;
+ color: #b9c4e4;
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.reference-explainer p {
+ margin: var(--space-1) 0 0;
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.reference-explainer code {
+ font: var(--weight-medium) var(--text-sm) / 1 var(--font-mono);
+}
+
+/* --- Reference inspector --------------------------------------------------- */
+
+.reference-inspector {
+ min-width: 0;
+ overflow-y: auto;
+ background: #0c0f14;
+}
+
+.reference-detail-art {
+ height: 140px;
+ position: relative;
+ display: grid;
+ place-items: center;
+ overflow: hidden;
+ background: linear-gradient(150deg, #263957, #997057);
+}
+
+.reference-detail-art::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(90deg, transparent, #ffffff13, transparent);
+ transform: skew(-20deg);
+}
+
+.reference-detail-art > span {
+ position: relative;
+ z-index: 2;
+ width: var(--space-9);
+ height: var(--space-9);
+ display: grid;
+ place-items: center;
+ border: 1px solid #ffffff24;
+ border-radius: 50%;
+ color: #d8e0ed;
+ background: #12182470;
+}
+
+.reference-detail-art em {
+ position: absolute;
+ z-index: 3;
+ left: var(--space-2);
+ bottom: var(--space-2);
+ max-width: 90%;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ color: #d4dae5;
+ font: var(--weight-medium) var(--text-2xs) / var(--leading-snug) var(--font-mono);
+ font-style: normal;
+ text-shadow: 0 1px 4px #000;
+}
+
+.reference-detail-art--text {
+ background: radial-gradient(circle at 50% 40%, #34456f, #171d2c);
+}
+
+.reference-fields {
+ padding: var(--space-4);
+ border-bottom: 1px solid var(--line);
+}
+
+.reference-fields label {
+ display: block;
+ margin-bottom: var(--space-3);
+}
+
+.reference-fields label > span {
+ display: block;
+ margin-bottom: var(--space-1);
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.reference-fields input,
+.reference-fields textarea {
+ width: 100%;
+ height: var(--field-height);
+ padding: 0 var(--space-3);
+ border: 1px solid #262b35;
+ border-radius: var(--radius-sm);
+ outline: 0;
+ color: var(--text-secondary);
+ background: #0a0d12;
+ font-size: var(--text-sm);
+}
+
+.reference-fields input:focus,
+.reference-fields textarea:focus {
+ border-color: #536fca;
+}
+
+.reference-fields textarea {
+ height: 112px;
+ padding: var(--space-2) var(--space-3);
+ resize: none;
+ line-height: var(--leading-normal);
+}
+
+/* --- Intended use / usage list --------------------------------------------- */
+
+.intended-use,
+.reference-used-by {
+ padding: var(--space-4);
+ border-bottom: 1px solid var(--line);
+}
+
+.intended-use h3,
+.reference-used-by h3 {
+ margin: 0 0 var(--space-3);
+ color: var(--text-muted);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-bold);
+ line-height: var(--leading-snug);
+ text-transform: uppercase;
+ letter-spacing: var(--tracking-label);
+}
+
+.intended-use h3 {
+ margin-bottom: var(--space-1);
+}
+
+.intended-use p {
+ margin: 0 0 var(--space-3);
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+ line-height: var(--leading-normal);
+}
+
+.intended-use > div {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-2);
+}
+
+.intended-use button {
+ min-height: var(--control-sm);
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+ padding: 0 var(--space-3);
+ border: 1px solid #2b313b;
+ border-radius: var(--radius-sm);
+ color: var(--text-muted);
+ background: #11151b;
+ font-size: var(--text-xs);
+ text-transform: capitalize;
+}
+
+.intended-use button.active {
+ color: #aebce8;
+ border-color: #485b99;
+ background: #1b2540;
+}
+
+.reference-used-by h3 span {
+ float: right;
+ padding: 0 var(--space-2);
+ border-radius: var(--radius-pill);
+ background: #1a2029;
+}
+
+.reference-used-by > div {
+ display: grid;
+ grid-template-columns: 8px minmax(0, 1fr) 16px;
+ align-items: center;
+ gap: var(--space-2);
+ margin-top: var(--space-2);
+}
+
+.job-link-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: #5d7edf;
+}
+
+.job-link-dot--completed {
+ background: var(--success);
+}
+
+.reference-used-by b,
+.reference-used-by small {
+ display: block;
+}
+
+.reference-used-by b {
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.reference-used-by small {
+ margin-top: 2px;
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.reference-used-by > p {
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+ line-height: var(--leading-normal);
+}
+
+/* --- Portable path --------------------------------------------------------- */
+
+.portable-path {
+ display: flex;
+ gap: var(--space-2);
+ padding: var(--space-4);
+ color: #8ea6f2;
+}
+
+.portable-path b,
+.portable-path code {
+ display: block;
+}
+
+.portable-path b {
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.portable-path code {
+ max-width: 280px;
+ margin-top: var(--space-1);
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ color: var(--text-faint);
+ font: var(--weight-medium) var(--text-2xs) / var(--leading-snug) var(--font-mono);
+}
+
+/* --- Empty state ----------------------------------------------------------- */
+
+.reference-empty {
+ height: 280px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: var(--space-5);
+ text-align: center;
+ color: var(--text-muted);
+}
+
+.reference-empty b {
+ margin: var(--space-3) 0 var(--space-1);
+ color: var(--text-secondary);
+ font-size: var(--text-md);
+ line-height: var(--leading-snug);
+}
+
+.reference-empty p {
+ margin: 0;
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+/* --- Add-reference dialog -------------------------------------------------- */
+
+.reference-dialog-backdrop {
+ position: fixed;
+ z-index: 100;
+ inset: 0;
+ display: grid;
+ place-items: center;
+ background: rgba(5, 7, 10, 0.72);
+ backdrop-filter: blur(5px);
+}
+
+.reference-dialog {
+ width: min(520px, calc(100vw - var(--space-6)));
+ padding: var(--space-6);
+ border: 1px solid #343b49;
+ border-radius: var(--radius-lg);
+ background: #11151c;
+ box-shadow: 0 24px 70px #000b;
+}
+
+.reference-dialog h2 {
+ margin: 0;
+ color: var(--text-secondary);
+ font-size: var(--text-lg);
+ line-height: var(--leading-tight);
+}
+
+.reference-dialog p {
+ margin: var(--space-2) 0 var(--space-5);
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.reference-dialog label {
+ display: block;
+ margin-top: var(--space-4);
+}
+
+.reference-dialog label > span {
+ display: block;
+ margin-bottom: var(--space-1);
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.reference-dialog input,
+.reference-dialog textarea {
+ width: 100%;
+ height: var(--field-height);
+ padding: 0 var(--space-3);
+ border: 1px solid #2c323e;
+ border-radius: var(--radius-sm);
+ outline: 0;
+ color: var(--text-secondary);
+ background: #0a0d12;
+ font-size: var(--text-base);
+}
+
+.reference-dialog textarea {
+ height: 120px;
+ padding: var(--space-2) var(--space-3);
+ resize: none;
+ line-height: var(--leading-normal);
+}
+
+.reference-dialog > div {
+ display: flex;
+ justify-content: flex-end;
+ gap: var(--space-2);
+ margin-top: var(--space-5);
+}
+
+.reference-dialog .primary-button:disabled {
+ opacity: 0.4;
+}
+
+/* --- Responsive ------------------------------------------------------------ */
+
+@media (max-width: 1180px) {
+ .reference-layout {
+ grid-template-columns: minmax(540px, 1fr) 300px;
+ }
+
+ .references-view {
+ padding-inline: var(--space-5);
+ }
+}
diff --git a/src/styles/shell.css b/src/styles/shell.css
new file mode 100644
index 0000000..abf809f
--- /dev/null
+++ b/src/styles/shell.css
@@ -0,0 +1,431 @@
+/* ============================================================================
+ shell.css — application frame: grid shell, sidebar, brand mark, placeholders.
+ ========================================================================== */
+
+.app-shell {
+ display: grid;
+ grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
+ min-height: 100vh;
+ background:
+ radial-gradient(circle at 72% -20%, rgba(49, 76, 153, 0.11), transparent 37%),
+ var(--bg);
+}
+
+/* --- Sidebar --------------------------------------------------------------- */
+
+.sidebar {
+ position: fixed;
+ z-index: 20;
+ inset: 0 auto 0 0;
+ width: var(--sidebar-width);
+ padding: var(--space-5) var(--space-4) var(--space-4);
+ display: flex;
+ flex-direction: column;
+ border-right: 1px solid var(--line);
+ background: rgba(9, 11, 16, 0.96);
+}
+
+.sidebar__nav {
+ margin-top: var(--space-6);
+}
+
+.sidebar__label {
+ padding: 0 var(--space-3);
+ margin: 0 0 var(--space-2);
+ color: var(--text-faint);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-bold);
+ line-height: var(--leading-snug);
+ letter-spacing: var(--tracking-label);
+ text-transform: uppercase;
+}
+
+.nav-item,
+.utility-button {
+ width: 100%;
+ border: 0;
+ background: transparent;
+ display: flex;
+ align-items: center;
+ text-align: left;
+ color: var(--text-muted);
+}
+
+.nav-item {
+ 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-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+ transition: 0.18s ease;
+}
+
+.nav-item:hover {
+ color: var(--text-secondary);
+ background: rgba(255, 255, 255, 0.035);
+}
+
+.nav-item--active {
+ color: var(--text-primary);
+ background: linear-gradient(
+ 90deg,
+ rgba(60, 105, 239, 0.19),
+ rgba(60, 105, 239, 0.075)
+ );
+ box-shadow: inset 2px 0 var(--accent-bright);
+}
+
+.nav-item__badge {
+ margin-left: auto;
+ color: #a4b8ff;
+ font: var(--weight-medium) 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);
+ border-radius: var(--radius-xs);
+}
+
+.sidebar__status {
+ margin: auto var(--space-1) var(--space-5);
+ padding: var(--space-3);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-lg);
+ display: flex;
+ gap: var(--space-3);
+ align-items: center;
+ background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent);
+}
+
+.sidebar__status-icon {
+ width: var(--control-md);
+ height: var(--control-md);
+ flex: 0 0 auto;
+ display: grid;
+ place-items: center;
+ border-radius: var(--radius-md);
+ color: #9db3ff;
+ background: rgba(58, 99, 224, 0.13);
+}
+
+.sidebar__status strong,
+.sidebar__status span {
+ display: block;
+}
+
+.sidebar__status strong {
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+ color: var(--text-secondary);
+}
+
+.sidebar__status span {
+ margin-top: var(--space-1);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+ color: var(--text-faint);
+}
+
+.sidebar__bottom {
+ border-top: 1px solid var(--line);
+ padding-top: var(--space-3);
+}
+
+.utility-button {
+ min-height: var(--control-sm);
+ gap: var(--space-3);
+ padding: var(--space-2) var(--space-3);
+ font-size: var(--text-sm);
+ border-radius: var(--radius-sm);
+}
+
+.utility-button:hover {
+ 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);
+}
+
+.profile-button small {
+ margin-top: 2px;
+ color: var(--text-faint);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+/* --- Brand ----------------------------------------------------------------- */
+
+.brand {
+ height: var(--control-lg);
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-2);
+}
+
+.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);
+}
+
+/* --- Logo mark (decorative artwork — proportions preserved) ----------------- */
+
+.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, 0.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: #fff;
+ 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: var(--text-base);
+ font-weight: 800;
+ line-height: 1;
+ letter-spacing: -1.5px;
+}
+
+.pol-logo__tudio {
+ position: relative;
+ z-index: 2;
+ margin-left: var(--space-2);
+ color: #07132f;
+ font-size: var(--text-md);
+ font-weight: var(--weight-bold);
+ line-height: 1;
+ letter-spacing: -1.3px;
+}
+
+/* Compact mark: the ticket only. Scaled so the wordmark clears the 12px floor. */
+.pol-logo--compact {
+ width: 51px;
+ height: 29px;
+ padding: 4px 5px;
+ border-radius: 5px;
+}
+
+.pol-logo--compact .pol-logo__ticket {
+ width: 40px;
+ flex-basis: 40px;
+}
+
+.pol-logo--compact .pol-logo__pols {
+ font-size: var(--text-2xs);
+ letter-spacing: -1.1px;
+}
+
+/* --- Placeholder views ----------------------------------------------------- */
+
+.placeholder-view {
+ grid-column: 2;
+ min-height: 100vh;
+ padding: var(--space-7);
+ background: radial-gradient(
+ circle at 50% 30%,
+ rgba(51, 82, 177, 0.12),
+ transparent 35%
+ );
+}
+
+.placeholder-view__card {
+ width: min(560px, 90%);
+ margin: 18vh auto 0;
+ text-align: center;
+}
+
+.placeholder-view__card > span {
+ width: var(--space-9);
+ height: var(--space-9);
+ margin: 0 auto var(--space-5);
+ display: grid;
+ place-items: center;
+ color: #9db3ff;
+ border: 1px solid rgba(91, 126, 231, 0.27);
+ border-radius: var(--radius-xl);
+ background: rgba(44, 76, 177, 0.13);
+}
+
+.placeholder-view__card h1 {
+ font-size: var(--text-2xl);
+ font-weight: var(--weight-semibold);
+ letter-spacing: var(--tracking-hero);
+ margin: var(--space-2) 0;
+}
+
+.placeholder-view__card > p:not(.eyebrow) {
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-relaxed);
+ margin: 0 auto var(--space-5);
+ max-width: 460px;
+}
+
+/* --- Responsive ------------------------------------------------------------ */
+
+@media (max-width: 900px) {
+ .app-shell {
+ grid-template-columns: 88px minmax(0, 1fr);
+ }
+
+ .sidebar {
+ width: 88px;
+ padding-inline: var(--space-2);
+ }
+
+ .brand {
+ padding: 0;
+ justify-content: center;
+ }
+
+ .brand .pol-logo {
+ width: 56px;
+ }
+
+ .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: -26px 0 0 30px;
+ }
+
+ .profile-button {
+ grid-template-columns: 1fr;
+ justify-items: center;
+ }
+}
+
+@media (max-width: 650px) {
+ .app-shell {
+ display: block;
+ }
+
+ .sidebar {
+ display: none;
+ }
+
+ .placeholder-view {
+ grid-column: 1;
+ padding: var(--space-5);
+ }
+}
diff --git a/src/styles/timeline.css b/src/styles/timeline.css
new file mode 100644
index 0000000..1bdbe84
--- /dev/null
+++ b/src/styles/timeline.css
@@ -0,0 +1,985 @@
+/* ============================================================================
+ timeline.css — the edit view: scene/media panels, program monitor, clip
+ inspector, and the multi-track timeline.
+ ========================================================================== */
+
+.timeline-view {
+ height: 100%;
+ min-height: 0;
+ display: grid;
+ grid-template-rows: minmax(360px, 1fr) 356px;
+ outline: none;
+}
+
+.edit-panels {
+ min-height: 0;
+ display: grid;
+ grid-template-columns: 280px minmax(520px, 1fr) 320px;
+ border-bottom: 1px solid #282c36;
+}
+
+.scene-panel,
+.clip-inspector {
+ min-width: 0;
+ overflow: hidden;
+ background: #0e1117;
+}
+
+.scene-panel {
+ border-right: 1px solid #252934;
+}
+
+.clip-inspector {
+ border-left: 1px solid #252934;
+ overflow-y: auto;
+}
+
+/* --- Panel tabs ------------------------------------------------------------ */
+
+.panel-tabs {
+ height: var(--control-lg);
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ border-bottom: 1px solid var(--line);
+}
+
+.panel-tabs button {
+ position: relative;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: var(--space-2);
+ border: 0;
+ color: var(--text-muted);
+ background: none;
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+}
+
+.panel-tabs button:hover {
+ color: var(--text-secondary);
+}
+
+.panel-tabs button.active {
+ color: #c9d3f0;
+ background: rgba(78, 103, 178, 0.08);
+}
+
+.panel-tabs button.active::after {
+ content: "";
+ position: absolute;
+ inset: auto var(--space-3) -1px;
+ height: 2px;
+ background: #6682df;
+}
+
+/* --- Scene panel ----------------------------------------------------------- */
+
+.scene-panel__head {
+ height: var(--control-lg);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 var(--space-3) 0 var(--space-4);
+ color: var(--text-muted);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+ text-transform: uppercase;
+ letter-spacing: var(--tracking-label);
+}
+
+.scene-panel__head button {
+ width: var(--control-sm);
+ height: var(--control-sm);
+ display: grid;
+ place-items: center;
+ padding: 0;
+ border: 0;
+ border-radius: var(--radius-sm);
+ color: var(--text-muted);
+ background: none;
+}
+
+.scene-panel__head button:hover {
+ color: var(--text-secondary);
+ background: rgba(255, 255, 255, 0.04);
+}
+
+/* Panel body fills what is left after the tabs (48px) and the head (48px). */
+.scene-list {
+ height: calc(100% - 96px);
+ padding: 0 var(--space-2) var(--space-4);
+ overflow-y: auto;
+}
+
+.scene-card {
+ width: 100%;
+ min-height: 76px;
+ display: grid;
+ grid-template-columns: 96px minmax(0, 1fr);
+ gap: var(--space-3);
+ align-items: center;
+ margin-bottom: var(--space-1);
+ padding: var(--space-2);
+ border: 1px solid transparent;
+ border-radius: var(--radius-sm);
+ text-align: left;
+ color: var(--text-muted);
+ background: transparent;
+}
+
+.scene-card:hover {
+ background: #141821;
+}
+
+.scene-card.selected {
+ border-color: rgba(101, 129, 222, 0.48);
+ background: rgba(61, 84, 159, 0.15);
+ box-shadow: inset 2px 0 #6f8ef1;
+}
+
+.scene-card__thumb {
+ position: relative;
+ height: 56px;
+ overflow: hidden;
+ border-radius: var(--radius-xs);
+ background: linear-gradient(145deg, #1d314e, #a2785d);
+}
+
+.scene-card--2 .scene-card__thumb {
+ background: linear-gradient(145deg, #332829, #a07962);
+}
+
+.scene-card--3 .scene-card__thumb {
+ background:
+ radial-gradient(circle at 65% 30%, #c7ad88 0 5%, transparent 6%),
+ linear-gradient(145deg, #222c39, #58606a);
+}
+
+.scene-card--4 .scene-card__thumb {
+ background: linear-gradient(165deg, #25344c 0 55%, #c9875b 56% 59%, #222 60%);
+}
+
+.scene-card__thumb::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
+ transform: skew(-20deg);
+}
+
+.scene-card__thumb i,
+.scene-card__thumb em {
+ position: absolute;
+ z-index: 2;
+ padding: 2px var(--space-1);
+ border-radius: 2px;
+ color: #fff;
+ background: rgba(9, 11, 15, 0.72);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ font-style: normal;
+}
+
+.scene-card__thumb i { left: 4px; top: 4px; }
+.scene-card__thumb em { right: 4px; bottom: 4px; }
+
+.scene-card > span:last-child,
+.scene-card b,
+.scene-card small {
+ display: block;
+ min-width: 0;
+}
+
+.scene-card b {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.scene-card small {
+ margin-top: var(--space-1);
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.scene-card.selected small {
+ color: #9db0e4;
+}
+
+.scene-add {
+ width: 100%;
+ min-height: var(--control-md);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: var(--space-2);
+ border: 1px dashed #2d3340;
+ border-radius: var(--radius-sm);
+ color: var(--text-muted);
+ background: #11141a;
+ font-size: var(--text-sm);
+}
+
+.scene-add:hover {
+ color: var(--text-secondary);
+ border-color: #3c4454;
+}
+
+/* --- Media panel ----------------------------------------------------------- */
+
+.media-grid {
+ height: calc(100% - 96px);
+ overflow-y: auto;
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: var(--space-2);
+ padding: 0 var(--space-2) var(--space-3);
+}
+
+.media-grid button {
+ min-width: 0;
+ padding: 0 0 var(--space-2);
+ overflow: hidden;
+ border: 1px solid #252a34;
+ border-radius: var(--radius-sm);
+ text-align: left;
+ background: #11151c;
+}
+
+.media-grid button:hover {
+ border-color: #3a4353;
+}
+
+.media-grid button b,
+.media-grid button small {
+ display: block;
+ padding: 0 var(--space-2);
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.media-grid button b {
+ margin-top: var(--space-2);
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.media-grid button small {
+ margin-top: 2px;
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.media-thumb {
+ height: var(--space-9);
+ display: grid;
+ place-items: center;
+ color: #aabbd9;
+ background: linear-gradient(140deg, #243751, #775a52);
+}
+
+.media-thumb--1 { background: linear-gradient(140deg, #402a35, #87634e); }
+.media-thumb--2 { background: linear-gradient(140deg, #28333c, #666f75); }
+.media-thumb--3 { background: #21283a; }
+
+.media-grid .media-import {
+ min-height: 104px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ color: #8b99c4;
+ border-style: dashed;
+}
+
+.media-import b,
+.media-import small {
+ width: 100%;
+ text-align: center;
+}
+
+/* --- Program monitor ------------------------------------------------------- */
+
+.program-panel {
+ min-width: 0;
+ min-height: 0;
+ display: grid;
+ grid-template-rows: var(--control-lg) minmax(0, 1fr) 56px;
+ background: #090b0f;
+}
+
+.program-canvas {
+ min-height: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: var(--space-4) var(--space-6);
+ background-color: #080a0e;
+ background-image: radial-gradient(#ffffff09 0.6px, transparent 0.6px);
+ background-size: 12px 12px;
+}
+
+/* Program artwork — decorative, intentionally left at its designed proportions. */
+.program-image {
+ position: relative;
+ height: min(100%, 360px);
+ width: min(100%, 640px);
+ aspect-ratio: 16 / 9;
+ overflow: hidden;
+ border: 1px solid #292d36;
+ background: linear-gradient(176deg, #24354c 0 48%, #d39563 49% 52%, #1b212a 54%);
+ box-shadow: 0 18px 50px #0008;
+}
+
+.program-image::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background:
+ radial-gradient(circle at 66% 35%, #efc69c55, transparent 24%),
+ linear-gradient(90deg, #0a162166, transparent 45%, #8d4f3155);
+}
+
+.program-image--2 {
+ background: linear-gradient(165deg, #3b3939 0 42%, #ad8061 43% 46%, #1b2028 47%);
+}
+
+.program-image--3 {
+ background: linear-gradient(150deg, #1b2635, #697178 48%, #b07c60 49%, #20252d 55%);
+}
+
+.program-image--4 {
+ background: linear-gradient(178deg, #25344b 0 59%, #d9905e 60% 62%, #161b22 63%);
+}
+
+.program-image__architecture {
+ position: absolute;
+ inset: 18% 10% 0 34%;
+ display: flex;
+ align-items: flex-end;
+ gap: 3px;
+ transform: perspective(400px) rotateY(-8deg);
+}
+
+.program-image__architecture i {
+ flex: 1;
+ height: 72%;
+ background: linear-gradient(90deg, #171e28, #5a6170 30%, #b58162 33%, #1b222c 37%);
+ box-shadow: inset 1px 0 #ffffff1c;
+}
+
+.program-image__architecture i:nth-child(2) { height: 90%; }
+.program-image__architecture i:nth-child(3) { height: 100%; }
+.program-image__architecture i:nth-child(4) { height: 83%; }
+.program-image__architecture i:nth-child(5) { height: 64%; }
+
+.program-image__caption {
+ position: absolute;
+ z-index: 3;
+ left: 6%;
+ bottom: 10%;
+ padding-left: var(--space-2);
+ border-left: 2px solid #dad0c1;
+ color: #fff;
+ text-shadow: 0 2px 8px #000;
+}
+
+.program-image__caption span,
+.program-image__caption small {
+ display: block;
+}
+
+.program-image__caption span {
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+ letter-spacing: 0.2em;
+}
+
+.program-image__caption small {
+ margin-top: var(--space-1);
+ color: #d6d2cb;
+ font-size: var(--text-2xs);
+ line-height: var(--leading-snug);
+}
+
+.safe-frame {
+ position: absolute;
+ inset: 6%;
+ border: 1px dashed #ffffff19;
+}
+
+.program-empty {
+ width: min(100%, 640px);
+ min-height: 260px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: var(--space-6);
+ border: 1px dashed #303743;
+ border-radius: var(--radius-md);
+ text-align: center;
+ color: #8290c9;
+ background: linear-gradient(145deg, #101621, #0c0f14);
+}
+
+.program-empty strong {
+ max-width: 85%;
+ margin: var(--space-3) 0 var(--space-2);
+ color: var(--text-secondary);
+ font-size: var(--text-md);
+ line-height: var(--leading-snug);
+}
+
+.program-empty span {
+ max-width: 72%;
+ color: var(--text-muted);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.program-empty small {
+ margin-top: var(--space-3);
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+/* --- Monitor transport ----------------------------------------------------- */
+
+.monitor-transport {
+ display: grid;
+ grid-template-columns: 1fr auto 1fr;
+ align-items: center;
+ padding: 0 var(--space-4);
+ border-top: 1px solid var(--line);
+ background: #0c0f14;
+}
+
+.monitor-transport strong {
+ color: var(--text-secondary);
+ font: var(--weight-medium) var(--text-xs) / 1 var(--font-mono);
+}
+
+.monitor-transport > div {
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+}
+
+.monitor-transport button {
+ width: var(--control-sm);
+ height: var(--control-sm);
+ display: grid;
+ place-items: center;
+ padding: 0;
+ border: 0;
+ border-radius: 50%;
+ color: var(--text-muted);
+ background: none;
+}
+
+.monitor-transport button:hover {
+ background: #191e27;
+ color: var(--text-primary);
+}
+
+.monitor-transport .play-button {
+ color: #fff;
+ background: #3f62d2;
+}
+
+.monitor-transport > span {
+ justify-self: end;
+ color: var(--text-muted);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+}
+
+/* --- Clip inspector -------------------------------------------------------- */
+
+.inspector-summary {
+ display: flex;
+ gap: var(--space-3);
+ align-items: center;
+ padding: var(--space-3);
+ border-bottom: 1px solid var(--line);
+}
+
+.clip-chip {
+ width: var(--control-md);
+ height: var(--control-md);
+ flex: 0 0 auto;
+ display: grid;
+ place-items: center;
+ border-radius: var(--radius-sm);
+ color: var(--text-primary);
+ box-shadow: inset 0 0 0 1px #ffffff1b;
+}
+
+.inspector-summary > div {
+ min-width: 0;
+}
+
+.inspector-summary b,
+.inspector-summary small {
+ display: block;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.inspector-summary b {
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.inspector-summary small {
+ margin-top: var(--space-1);
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+ text-transform: capitalize;
+}
+
+.inspector-section {
+ padding: var(--space-3);
+ border-bottom: 1px solid var(--line);
+}
+
+.inspector-section h3 {
+ margin: 0 0 var(--space-3);
+ color: var(--text-muted);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-bold);
+ line-height: var(--leading-snug);
+ text-transform: uppercase;
+ letter-spacing: var(--tracking-label);
+}
+
+.inspector-section label {
+ display: block;
+ margin-top: var(--space-3);
+}
+
+.inspector-section label > span {
+ display: block;
+ margin-bottom: var(--space-1);
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.inspector-section input:not([type="range"]) {
+ width: 100%;
+ height: var(--field-height);
+ padding: 0 var(--space-3);
+ border: 1px solid #262b35;
+ border-radius: var(--radius-sm);
+ outline: 0;
+ color: var(--text-secondary);
+ background: #0a0d12;
+ font-size: var(--text-sm);
+}
+
+.inspector-section input:focus {
+ border-color: #536fca;
+}
+
+.field-pair {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: var(--space-2);
+}
+
+.range-field > span {
+ display: flex !important;
+ justify-content: space-between;
+}
+
+.range-field b {
+ color: var(--text-secondary);
+ font-weight: var(--weight-medium);
+}
+
+/* Sliders get a real grab area rather than the old 2px hairline. */
+.range-field input {
+ width: 100%;
+ height: var(--space-5);
+ accent-color: #6784e5;
+}
+
+.inspector-empty {
+ height: 280px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: var(--space-5);
+ text-align: center;
+ color: var(--text-muted);
+}
+
+.inspector-empty b {
+ margin: var(--space-3) 0 var(--space-1);
+ color: var(--text-secondary);
+ font-size: var(--text-md);
+ line-height: var(--leading-snug);
+}
+
+.inspector-empty > span {
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.selection-glyph {
+ position: relative;
+ width: var(--control-md);
+ height: var(--control-md);
+ border: 1px solid #374156;
+ border-radius: var(--radius-md);
+}
+
+.selection-glyph span {
+ position: absolute;
+ inset: var(--space-2);
+ border: 1px dashed #6881d2;
+}
+
+.selection-glyph i {
+ position: absolute;
+ width: 5px;
+ height: 5px;
+ right: var(--space-1);
+ bottom: var(--space-1);
+ border-radius: 1px;
+ background: #718ce5;
+}
+
+/* --- Timeline toolbar ------------------------------------------------------ */
+
+.pro-timeline {
+ min-height: 0;
+ background: #0b0e13;
+}
+
+.timeline-toolbar {
+ height: var(--control-lg);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 var(--space-3) 0 var(--space-4);
+ border-bottom: 1px solid #292d37;
+}
+
+.timeline-toolbar > div:first-child {
+ display: flex;
+ align-items: center;
+ gap: var(--space-4);
+}
+
+.timeline-toolbar strong {
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.timeline-toolbar span {
+ color: #a3b3e0;
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+}
+
+.timeline-tools {
+ height: 100%;
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+}
+
+.timeline-tools button {
+ min-height: var(--control-sm);
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+ padding: 0 var(--space-2);
+ border: 1px solid transparent;
+ border-radius: var(--radius-xs);
+ color: var(--text-muted);
+ background: none;
+ font-size: var(--text-xs);
+}
+
+.timeline-tools button:hover:not(:disabled) {
+ color: var(--text-secondary);
+ background: #171b23;
+}
+
+.timeline-tools button:disabled {
+ opacity: 0.4;
+}
+
+.timeline-tools i {
+ width: 1px;
+ height: 20px;
+ margin: 0 var(--space-1);
+ background: #272c35;
+}
+
+.timeline-tools input {
+ width: 96px;
+ height: var(--space-5);
+ accent-color: #5e7ddd;
+}
+
+/* --- Track grid ------------------------------------------------------------ */
+
+.timeline-grid {
+ position: relative;
+ display: grid;
+ grid-template-columns: 200px minmax(0, 1fr);
+ grid-template-rows: 34px repeat(4, 68px);
+ height: 306px;
+ overflow: hidden;
+}
+
+.track-corner {
+ display: flex;
+ align-items: center;
+ padding-left: var(--space-4);
+ border-right: 1px solid #292e38;
+ border-bottom: 1px solid #292e38;
+ color: var(--text-muted);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+}
+
+.time-ruler {
+ position: relative;
+ border-bottom: 1px solid #292e38;
+ cursor: crosshair;
+ background: #0c0f14;
+}
+
+.time-ruler > span {
+ position: absolute;
+ top: 0;
+ height: 100%;
+ color: var(--text-muted);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+}
+
+.time-ruler > span i {
+ display: block;
+ width: 1px;
+ height: 8px;
+ margin-bottom: var(--space-1);
+ background: #545c69;
+}
+
+.track-head {
+ min-width: 0;
+ display: grid;
+ grid-template-columns: 32px minmax(0, 1fr) 32px 32px;
+ align-items: center;
+ gap: var(--space-1);
+ padding: 0 var(--space-2);
+ border-right: 1px solid #292e38;
+ border-bottom: 1px solid #222630;
+ background: #0e1117;
+}
+
+.track-kind {
+ width: 32px;
+ height: 32px;
+ display: grid;
+ place-items: center;
+ border-radius: var(--radius-xs);
+ color: #8ea6f2;
+ background: #27365a;
+}
+
+.track-kind--audio {
+ color: #7cc3bc;
+ background: #1c3939;
+}
+
+.track-head b,
+.track-head small {
+ display: block;
+}
+
+.track-head b {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ line-height: var(--leading-snug);
+}
+
+.track-head small {
+ margin-top: 2px;
+ color: var(--text-faint);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+}
+
+/* 32px, not 36px: two icon toggles share a fixed-width track header column and
+ the grid cannot grow without eating the track name. */
+.track-head button {
+ width: 32px;
+ height: 32px;
+ display: grid;
+ place-items: center;
+ padding: 0;
+ border: 0;
+ border-radius: var(--radius-xs);
+ color: var(--text-muted);
+ background: none;
+}
+
+.track-head button:hover,
+.track-head button.active {
+ color: var(--text-secondary);
+ background: #242a35;
+}
+
+.track-head button.active {
+ color: #8ba3ef;
+}
+
+.track-lane {
+ position: relative;
+ overflow: hidden;
+ border-bottom: 1px solid #222630;
+ background-color: #0a0d12;
+ background-image: linear-gradient(90deg, #ffffff09 1px, transparent 1px);
+ background-size: 14.7% 100%;
+}
+
+.track-lane.muted {
+ opacity: 0.46;
+}
+
+/* --- Clips ----------------------------------------------------------------- */
+
+.timeline-clip {
+ position: absolute;
+ top: 6px;
+ height: 56px;
+ min-width: 28px;
+ overflow: hidden;
+ padding: 0;
+ border: 1px solid color-mix(in srgb, var(--clip-color, #516fba) 70%, white 10%);
+ border-radius: var(--radius-xs);
+ text-align: left;
+ color: #dce2ed;
+ background: linear-gradient(
+ 180deg,
+ color-mix(in srgb, var(--clip-color, #516fba) 72%, #27303f),
+ color-mix(in srgb, var(--clip-color, #516fba) 48%, #11151d)
+ );
+ box-shadow: inset 0 1px #ffffff12;
+}
+
+.timeline-clip::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: repeating-linear-gradient(90deg, #ffffff0a 0 18px, transparent 18px 21px);
+}
+
+.timeline-clip--audio {
+ background: linear-gradient(
+ 180deg,
+ color-mix(in srgb, var(--clip-color, #3d817c) 62%, #1d3032),
+ color-mix(in srgb, var(--clip-color, #3d817c) 38%, #10191b)
+ );
+}
+
+.timeline-clip:hover {
+ filter: brightness(1.14);
+}
+
+.timeline-clip.selected {
+ border-color: #bdcaff;
+ box-shadow: 0 0 0 2px #6f8df0, inset 0 1px #ffffff2b;
+ z-index: 3;
+}
+
+.clip-text {
+ position: relative;
+ z-index: 2;
+ display: block;
+ padding: var(--space-2);
+}
+
+.clip-text b,
+.clip-text small {
+ display: block;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.clip-text b {
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.clip-text small {
+ margin-top: var(--space-1);
+ color: #c1cad9aa;
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+}
+
+.timeline-playhead {
+ position: absolute;
+ z-index: 9;
+ top: 22px;
+ bottom: 0;
+ width: 1px;
+ background: #ff705f;
+ pointer-events: none;
+}
+
+.timeline-playhead span {
+ position: absolute;
+ width: 8px;
+ height: 8px;
+ left: -4px;
+ top: -1px;
+ border-radius: 2px 2px 5px 5px;
+ background: #ff705f;
+}
+
+.timeline-playhead i {
+ position: absolute;
+ left: -3px;
+ top: 9px;
+ width: 7px;
+ height: 1px;
+ background: #ff705f55;
+}
+
+/* --- Responsive ------------------------------------------------------------ */
+
+@media (max-width: 1180px) {
+ .edit-panels {
+ grid-template-columns: 248px minmax(460px, 1fr) 288px;
+ }
+
+ .scene-card {
+ grid-template-columns: 80px minmax(0, 1fr);
+ }
+
+ .timeline-grid {
+ grid-template-columns: 176px minmax(0, 1fr);
+ }
+}
diff --git a/src/styles/tokens.css b/src/styles/tokens.css
new file mode 100644
index 0000000..28f35ef
--- /dev/null
+++ b/src/styles/tokens.css
@@ -0,0 +1,127 @@
+/* ============================================================================
+ Pol Studio — design tokens
+ ----------------------------------------------------------------------------
+ This file is the contract. Every other stylesheet consumes these variables
+ and MUST NOT introduce raw px type sizes, raw greys, or off-grid spacing.
+
+ RULES
+ 1. Body copy is 15px (--text-base). Prose never goes below it.
+ 2. 12px (--text-2xs) is the ABSOLUTE FLOOR, reserved for mono micro-labels
+ (timecodes, badges, uppercase eyebrows). Nothing in the app is smaller.
+ 3. Spacing follows an 8px rhythm with 4px half-steps. Use --space-*, never
+ arbitrary values.
+ 4. Every interactive control is at least 36px (--control-sm) in its smallest
+ interactive dimension. 32px is tolerated ONLY for icon buttons packed into
+ a dense grid that cannot grow.
+ 5. Primary actions are at least 40px (--control-md); hero CTAs 48px
+ (--control-lg). Text fields and selects are --field-height (40px).
+ 6. Prose uses line-height 1.5 (--leading-normal). Tight UI labels may use
+ --leading-snug (1.35); only display type uses --leading-tight.
+ 7. The dimmest text allowed anywhere is --text-faint, which clears 4.5:1 on
+ --panel / --panel-3. Never hand-write a grey below it.
+ ========================================================================== */
+
+:root {
+ color-scheme: dark;
+
+ /* --- Font families ------------------------------------------------------ */
+ --font-sans: "Manrope", Inter, system-ui, sans-serif;
+ --font-mono: "DM Mono", ui-monospace, SFMono-Regular, monospace;
+
+ /* --- Type scale (base body = 15px, floor = 12px) ------------------------ */
+ --text-2xs: 12px; /* absolute floor — mono micro-labels only */
+ --text-xs: 13px; /* secondary text, captions, dense panel labels */
+ --text-sm: 14px;
+ --text-base: 15px; /* body / default */
+ --text-md: 17px;
+ --text-lg: 20px;
+ --text-xl: 24px;
+ --text-2xl: 30px;
+ --text-3xl: clamp(30px, 3vw, 40px); /* page hero */
+
+ /* --- Line height -------------------------------------------------------- */
+ --leading-tight: 1.2;
+ --leading-snug: 1.35;
+ --leading-normal: 1.5;
+ --leading-relaxed: 1.6;
+
+ /* --- Weight ------------------------------------------------------------- */
+ --weight-regular: 400;
+ --weight-medium: 500;
+ --weight-semibold: 600;
+ --weight-bold: 700;
+
+ /* --- Letter spacing ----------------------------------------------------- */
+ --tracking-tight: -0.02em;
+ --tracking-hero: -0.03em;
+ --tracking-label: 0.08em;
+
+ /* --- Spacing (8px rhythm, 4px half-steps) ------------------------------- */
+ --space-1: 4px;
+ --space-2: 8px;
+ --space-3: 12px;
+ --space-4: 16px;
+ --space-5: 24px;
+ --space-6: 32px;
+ --space-7: 40px;
+ --space-8: 48px;
+ --space-9: 64px;
+
+ /* --- Radii -------------------------------------------------------------- */
+ --radius-xs: 4px;
+ --radius-sm: 6px;
+ --radius-md: 8px;
+ --radius-lg: 12px;
+ --radius-xl: 16px;
+ --radius-pill: 999px;
+
+ /* --- Control sizing (minimum hit targets — never go under) -------------- */
+ --control-sm: 36px; /* dense/secondary controls, minimum hit target */
+ --control-md: 40px; /* default control + icon buttons */
+ --control-lg: 48px; /* primary actions */
+ --icon-button: 40px; /* square icon buttons */
+ --field-height: 40px; /* text inputs, selects */
+
+ /* --- Layout ------------------------------------------------------------- */
+ --sidebar-width: 252px;
+ --topbar-height: 72px;
+ --content-max: 1180px;
+
+ /* --- Surfaces ----------------------------------------------------------- */
+ --bg: #080a0f;
+ --panel: #0d1016;
+ --panel-2: #12151d;
+ --panel-3: #171b24;
+ --line: rgba(255, 255, 255, 0.085);
+ --line-strong: rgba(255, 255, 255, 0.14);
+
+ /* --- Text (contrast-checked against --panel / --panel-3) ---------------- */
+ --text-primary: #eff1f7;
+ --text-secondary: #c5cbd7;
+ --text-muted: #9aa2b1; /* replaces every #86..#9x grey */
+ --text-faint: #838b9a; /* DIMMEST text allowed — ~5:1 on --panel */
+
+ /* --- Accent ------------------------------------------------------------- */
+ --accent: #3d6df2;
+ --accent-bright: #6b8dff;
+ --accent-dark: #173ca6;
+ --accent-soft: rgba(60, 105, 239, 0.15);
+
+ /* --- Status ------------------------------------------------------------- */
+ --success: #6ecf95;
+ --warning: #e3a862;
+ --danger: #ec7d86;
+
+ /* --- Elevation ---------------------------------------------------------- */
+ --shadow: 0 22px 65px rgba(0, 0, 0, 0.34);
+ --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.28);
+
+ /* --- Legacy aliases ------------------------------------------------------
+ Kept so in-flight work that still references the old names keeps working.
+ Do not use these in new rules. */
+ --muted: var(--text-muted);
+ --soft: var(--text-secondary);
+ --blue: var(--accent);
+ --blue-bright: var(--accent-bright);
+ --blue-dark: var(--accent-dark);
+}
diff --git a/src/styles/workspace.css b/src/styles/workspace.css
new file mode 100644
index 0000000..410fe63
--- /dev/null
+++ b/src/styles/workspace.css
@@ -0,0 +1,364 @@
+/* ============================================================================
+ workspace.css — the full project editor frame: topbar, view nav, content
+ region, and the Pol agent dock that sits along the bottom.
+ ========================================================================== */
+
+.project-shell {
+ height: 100vh;
+ min-width: var(--content-max);
+ overflow: hidden;
+ display: grid;
+ grid-template-rows: var(--topbar-height) 56px minmax(0, 1fr) 80px;
+ color: var(--text-secondary);
+ background: #080a0e;
+}
+
+/* --- Topbar ---------------------------------------------------------------- */
+
+.project-topbar {
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+ padding: 0 var(--space-4);
+ border-bottom: 1px solid #232630;
+ background: var(--panel);
+}
+
+.project-title {
+ width: 320px;
+ min-width: 0;
+ padding-left: var(--space-1);
+}
+
+.project-title strong,
+.project-title span {
+ display: block;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.project-title strong {
+ font-size: var(--text-base);
+ 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);
+ line-height: var(--leading-snug);
+}
+
+.project-title span svg {
+ color: var(--success);
+ vertical-align: -2px;
+}
+
+.project-title span i {
+ margin: 0 var(--space-1);
+ color: var(--text-faint);
+}
+
+.project-history {
+ display: flex;
+ gap: var(--space-1);
+ padding-left: var(--space-3);
+ border-left: 1px solid var(--line);
+}
+
+.project-topbar__actions {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ margin-left: auto;
+}
+
+/* --- View navigation ------------------------------------------------------- */
+
+.project-nav {
+ min-width: 0;
+ display: flex;
+ align-items: center;
+ padding: 0 var(--space-5) 0 var(--space-8);
+ border-bottom: 1px solid #262934;
+ background: #0b0e13;
+}
+
+.project-nav > div {
+ height: 100%;
+ display: flex;
+ gap: var(--space-1);
+}
+
+.project-nav button {
+ position: relative;
+ height: 100%;
+ min-height: var(--control-md);
+ min-width: 128px;
+ padding: 0 var(--space-4);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: var(--space-2);
+ border: 0;
+ color: var(--text-muted);
+ background: transparent;
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+}
+
+.project-nav button:hover {
+ color: var(--text-secondary);
+}
+
+.project-nav button.active {
+ color: var(--text-primary);
+}
+
+.project-nav button.active::after {
+ content: "";
+ position: absolute;
+ height: 2px;
+ inset: auto var(--space-3) -1px;
+ border-radius: 2px 2px 0 0;
+ background: #708df0;
+}
+
+.project-nav button span {
+ min-width: 20px;
+ padding: 2px var(--space-1);
+ border: 1px solid rgba(104, 134, 231, 0.26);
+ border-radius: var(--radius-pill);
+ color: #a8b8ef;
+ background: rgba(70, 99, 194, 0.15);
+ font: var(--weight-medium) var(--text-2xs) / 1 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);
+}
+
+/* --- Content region -------------------------------------------------------- */
+
+.project-content {
+ min-height: 0;
+ overflow: hidden;
+}
+
+/* --- Agent dock ------------------------------------------------------------ */
+
+.project-agent-row {
+ position: relative;
+ z-index: 30;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: var(--space-4) var(--space-5);
+ border-top: 1px solid #252934;
+ background: #0b0e13;
+ box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.2);
+}
+
+.agent-dock-wrap {
+ position: relative;
+ width: min(880px, calc(100% - var(--space-7)));
+}
+
+.agent-dock {
+ height: var(--control-lg);
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+ padding: 0 var(--space-2) 0 var(--space-4);
+ border: 1px solid rgba(99, 127, 219, 0.34);
+ border-radius: var(--radius-lg);
+ background: linear-gradient(90deg, #121827, #11151f);
+ box-shadow:
+ 0 5px 20px rgba(0, 0, 0, 0.3),
+ inset 0 1px rgba(255, 255, 255, 0.025);
+}
+
+.agent-dock:focus-within {
+ border-color: #627fe0;
+ box-shadow: 0 0 0 3px rgba(63, 94, 198, 0.1);
+}
+
+.agent-dock__identity {
+ 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);
+}
+
+.agent-dock__identity b {
+ color: #cbd5fa;
+}
+
+.agent-dock input {
+ min-width: 0;
+ flex: 1;
+ height: 100%;
+ border: 0;
+ outline: 0;
+ color: var(--text-secondary);
+ background: none;
+ font-size: var(--text-base);
+}
+
+.agent-dock input::placeholder {
+ color: var(--text-faint);
+}
+
+.agent-dock__hint {
+ display: flex;
+ align-items: center;
+ gap: var(--space-1);
+ color: var(--text-faint);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+}
+
+.agent-dock button {
+ width: var(--control-sm);
+ height: var(--control-sm);
+ flex: 0 0 auto;
+ display: grid;
+ place-items: center;
+ padding: 0;
+ border: 1px solid #5f7fe8;
+ border-radius: var(--radius-sm);
+ color: #fff;
+ background: #3f64d9;
+}
+
+.agent-dock button:disabled {
+ color: var(--text-faint);
+ border-color: #292e39;
+ background: #1a1e26;
+}
+
+.agent-dock .agent-cancel {
+ border-color: #6b3941;
+ color: var(--danger);
+ background: #29171b;
+}
+
+.agent-busy {
+ flex: 0 0 auto;
+ color: #7994e9;
+ animation: spin 1.2s linear infinite;
+}
+
+/* --- Provider selector ----------------------------------------------------- */
+
+.agent-provider {
+ min-height: var(--control-sm);
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-2);
+ border: 1px solid #292f3a;
+ border-radius: var(--radius-sm);
+ background: #0d1119;
+}
+
+.agent-provider i {
+ width: 6px;
+ height: 6px;
+ flex: 0 0 auto;
+ border-radius: 50%;
+ background: var(--success);
+}
+
+.agent-provider--disabled i,
+.agent-provider--notInstalled i,
+.agent-provider--unavailable i {
+ background: var(--warning);
+}
+
+.agent-provider select {
+ max-width: 160px;
+ height: var(--control-sm);
+ border: 0;
+ outline: 0;
+ color: var(--text-muted);
+ background: transparent;
+ font-size: var(--text-sm);
+}
+
+/* --- Conversation overlay + toast ------------------------------------------ */
+
+.agent-conversation {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 60px;
+ max-height: 220px;
+ overflow: auto;
+ padding: var(--space-2);
+ border: 1px solid #303749;
+ border-radius: var(--radius-md);
+ background: rgba(16, 21, 31, 0.8);
+ 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);
+ margin: 0;
+ padding: var(--space-2);
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ line-height: var(--leading-normal);
+}
+
+.agent-conversation p + p {
+ border-top: 1px solid #242a34;
+}
+
+.agent-conversation b {
+ color: #8098e0;
+ font-size: var(--text-xs);
+}
+
+.agent-conversation__error,
+.agent-conversation__error b {
+ 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) {
+ .project-nav {
+ padding-left: var(--space-5);
+ }
+
+ .project-nav button {
+ min-width: 112px;
+ padding: 0 var(--space-3);
+ }
+}