Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
design: import the OpenScreen Design System
Etienne Lescote9f1d79e9190
diff --git a/design/SKILL.md b/design/SKILL.mdnew file mode 100644index 000000000..cf8e24598--- /dev/null+++ b/design/SKILL.md@@ -0,0 +1,16 @@+---+name: openscreen-design+description: Use this skill to generate well-branded interfaces and assets for OpenScreen (an AI-native screen-recording studio & video editor), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.+user-invocable: true+---++Read the README.md file within this skill, and explore the other available files.+If creating visual artifacts (slides, mocks, throwaway prototypes, etc), copy assets out and create static HTML files for the user to view. If working on production code, you can copy assets and read the rules here to become an expert in designing with this brand.+If the user invokes this skill without any other guidance, ask them what they want to build or design, ask some questions, and act as an expert designer who outputs HTML artifacts _or_ production code, depending on the need.++Quick orientation:+- `styles.css` is the single CSS entry point — link it and use the CSS custom properties (never hard-code hex). Dark is the default; add `data-theme="light"` on a wrapper for the light palette.+- Type: Geist (UI) + Geist Mono (numbers/technical). Base 13px.+- One brand hue: emerald `--accent`. Ration it. Timeline lanes add amber/orange/red semantic accents.+- Components live in `components/` (forms, display, editor); full-screen recreations in `ui_kits/editor/`. Icons are Lucide.+- No emoji, no gradients-as-decoration, no photographic backgrounds. Dense pro-tool density, glassy floating panels, hairline borders.diff --git a/design/_adherence.oxlintrc.json b/design/_adherence.oxlintrc.jsonnew file mode 100644index 000000000..62081bd57--- /dev/null+++ b/design/_adherence.oxlintrc.json@@ -0,0 +1,511 @@+{+ "plugins": [+ "react",+ "import"+ ],+ "rules": {+ "react/forbid-elements": [+ "warn",+ {+ "forbid": []+ }+ ],+ "no-restricted-imports": [+ "warn",+ {+ "patterns": [+ {+ "group": [+ "components/display/**",+ "components/editor/**",+ "components/forms/**"+ ],+ "message": "Import design-system components from 'index.js', not component internals."+ }+ ]+ }+ ],+ "no-restricted-syntax": [+ "warn",+ {+ "selector": "Literal[value=/#[0-9a-fA-F]{3,8}\\b/]",+ "message": "Raw hex color — use a design-system color token via var()."+ },+ {+ "selector": "Literal[value=/\\b\\d+px\\b/]",+ "message": "Raw px value — use a design-system spacing token via var()."+ },+ {+ "selector": "Literal[value=/font-family\\s*:\\s*(?!['\\\"]?(?:Geist|Geist Mono|Inter|IBM Plex Mono|Fira Code|Caveat|Permanent Marker|Bebas Neue|Oswald|Space Grotesk|Playfair Display))/i]",+ "message": "Font not provided by the design system. Available: Geist, Geist Mono, Inter, IBM Plex Mono, Fira Code, Caveat, Permanent Marker, Bebas Neue, Oswald, Space Grotesk, Playfair Display."+ },+ {+ "selector": "JSXOpeningElement[name.name='Badge'] > JSXAttribute > JSXIdentifier[name!=/^(?:children|tone|dot|soft|mono|style|key|ref|className|style|children)$/]",+ "message": "<Badge> doesn't accept that prop. Declared props: children, tone, dot, soft, mono, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Badge'] > JSXAttribute[name.name='tone'] > Literal[value!=/^(?:accent|neutral|danger|warn)$/]",+ "message": "<Badge> tone must be one of 'accent' | 'neutral' | 'danger' | 'warn'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Button'] > JSXAttribute > JSXIdentifier[name!=/^(?:variant|size|icon|iconRight|disabled|fullWidth|onClick|children|style|key|ref|className|style|children)$/]",+ "message": "<Button> doesn't accept that prop. Declared props: variant, size, icon, iconRight, disabled, fullWidth, onClick, children, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Button'] > JSXAttribute[name.name='variant'] > Literal[value!=/^(?:primary|secondary|ghost)$/]",+ "message": "<Button> variant must be one of 'primary' | 'secondary' | 'ghost'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Button'] > JSXAttribute[name.name='size'] > Literal[value!=/^(?:sm|md|lg)$/]",+ "message": "<Button> size must be one of 'sm' | 'md' | 'lg'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Card'] > JSXAttribute > JSXIdentifier[name!=/^(?:children|title|headerRight|elevation|level|radius|padding|style|bodyStyle|key|ref|className|style|children)$/]",+ "message": "<Card> doesn't accept that prop. Declared props: children, title, headerRight, elevation, level, radius, padding, style, bodyStyle."+ },+ {+ "selector": "JSXOpeningElement[name.name='Card'] > JSXAttribute[name.name='elevation'] > Literal[value!=/^(?:card|pop)$/]",+ "message": "<Card> elevation must be one of 'card' | 'pop'."+ },+ {+ "selector": "JSXOpeningElement[name.name='ChatBubble'] > JSXAttribute > JSXIdentifier[name!=/^(?:role|author|time|avatar|children|key|ref|className|style|children)$/]",+ "message": "<ChatBubble> doesn't accept that prop. Declared props: role, author, time, avatar, children."+ },+ {+ "selector": "JSXOpeningElement[name.name='ChatBubble'] > JSXAttribute[name.name='role'] > Literal[value!=/^(?:assistant|user|system)$/]",+ "message": "<ChatBubble> role must be one of 'assistant' | 'user' | 'system'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Chip'] > JSXAttribute > JSXIdentifier[name!=/^(?:children|icon|onClick|style|key|ref|className|style|children)$/]",+ "message": "<Chip> doesn't accept that prop. Declared props: children, icon, onClick, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='FacetRailButton'] > JSXAttribute > JSXIdentifier[name!=/^(?:active|title|onClick|children|style|key|ref|className|style|children)$/]",+ "message": "<FacetRailButton> doesn't accept that prop. Declared props: active, title, onClick, children, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='IconButton'] > JSXAttribute > JSXIdentifier[name!=/^(?:size|active|tone|disabled|title|onClick|children|style|key|ref|className|style|children)$/]",+ "message": "<IconButton> doesn't accept that prop. Declared props: size, active, tone, disabled, title, onClick, children, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='IconButton'] > JSXAttribute[name.name='tone'] > Literal[value!=/^(?:default|danger)$/]",+ "message": "<IconButton> tone must be one of 'default' | 'danger'."+ },+ {+ "selector": "JSXOpeningElement[name.name='MediaCard'] > JSXAttribute > JSXIdentifier[name!=/^(?:name|duration|size|from|to|selected|draggable|onClick|onDragStart|onDragEnd|style|key|ref|className|style|children)$/]",+ "message": "<MediaCard> doesn't accept that prop. Declared props: name, duration, size, from, to, selected, draggable, onClick, onDragStart, onDragEnd, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='ProgressBar'] > JSXAttribute > JSXIdentifier[name!=/^(?:value|height|gradient|style|key|ref|className|style|children)$/]",+ "message": "<ProgressBar> doesn't accept that prop. Declared props: value, height, gradient, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='ProposalItem'] > JSXAttribute > JSXIdentifier[name!=/^(?:range|dur|key|ref|className|style|children)$/]",+ "message": "<ProposalItem> doesn't accept that prop. Declared props: range, dur."+ },+ {+ "selector": "JSXOpeningElement[name.name='SegmentOption'] > JSXAttribute > JSXIdentifier[name!=/^(?:value|label|key|ref|className|style|children)$/]",+ "message": "<SegmentOption> doesn't accept that prop. Declared props: value, label."+ },+ {+ "selector": "JSXOpeningElement[name.name='SelectOption'] > JSXAttribute > JSXIdentifier[name!=/^(?:value|label|key|ref|className|style|children)$/]",+ "message": "<SelectOption> doesn't accept that prop. Declared props: value, label."+ },+ {+ "selector": "JSXOpeningElement[name.name='Slider'] > JSXAttribute > JSXIdentifier[name!=/^(?:label|value|min|max|step|format|onChange|card|style|key|ref|className|style|children)$/]",+ "message": "<Slider> doesn't accept that prop. Declared props: label, value, min, max, step, format, onChange, card, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Switch'] > JSXAttribute > JSXIdentifier[name!=/^(?:checked|onChange|disabled|style|key|ref|className|style|children)$/]",+ "message": "<Switch> doesn't accept that prop. Declared props: checked, onChange, disabled, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='TextField'] > JSXAttribute > JSXIdentifier[name!=/^(?:value|onChange|placeholder|multiline|leadingIcon|rows|style|wrapStyle|key|ref|className|style|children)$/]",+ "message": "<TextField> doesn't accept that prop. Declared props: value, onChange, placeholder, multiline, leadingIcon, rows, style, wrapStyle."+ },+ {+ "selector": "JSXOpeningElement[name.name='TimelinePill'] > JSXAttribute > JSXIdentifier[name!=/^(?:tone|icon|children|leftPct|widthPct|style|key|ref|className|style|children)$/]",+ "message": "<TimelinePill> doesn't accept that prop. Declared props: tone, icon, children, leftPct, widthPct, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='TimelinePill'] > JSXAttribute[name.name='tone'] > Literal[value!=/^(?:accent|annotation|speed|danger)$/]",+ "message": "<TimelinePill> tone must be one of 'accent' | 'annotation' | 'speed' | 'danger'."+ }+ ]+ },+ "overrides": [+ {+ "files": [+ "**/index.js"+ ],+ "rules": {+ "no-restricted-imports": "off"+ }+ }+ ],+ "x-omelette": {+ "components": {+ "Badge": {+ "replaces": []+ },+ "Button": {+ "replaces": []+ },+ "Card": {+ "replaces": []+ },+ "ChatBubble": {+ "replaces": []+ },+ "Chip": {+ "replaces": []+ },+ "FacetRailButton": {+ "replaces": []+ },+ "IconButton": {+ "replaces": []+ },+ "MediaCard": {+ "replaces": []+ },+ "ProgressBar": {+ "replaces": []+ },+ "ProposalItem": {+ "replaces": []+ },+ "SegmentOption": {+ "replaces": []+ },+ "SelectOption": {+ "replaces": []+ },+ "Slider": {+ "replaces": []+ },+ "Switch": {+ "replaces": []+ },+ "TextField": {+ "replaces": []+ },+ "TimelinePill": {+ "replaces": []+ }+ },+ "tokens": [+ "--accent",+ "--accent-foreground",+ "--accent-primary",+ "--background",+ "--border",+ "--border-default",+ "--brand-green",+ "--brand-green-active",+ "--brand-green-glow",+ "--brand-green-hover",+ "--brand-green-ring",+ "--brand-green-tint",+ "--card",+ "--card-foreground",+ "--color-bg",+ "--color-fg",+ "--control-h-lg",+ "--control-h-md",+ "--control-h-sm",+ "--control-h-xs",+ "--destructive",+ "--destructive-foreground",+ "--dur",+ "--dur-base",+ "--dur-fast",+ "--dur-mid",+ "--dur-slow",+ "--ease",+ "--elev-card",+ "--elev-pop",+ "--fill",+ "--fill-hover",+ "--fill-subtle",+ "--focus-ring",+ "--font-caption-grotesk",+ "--font-caption-hand",+ "--font-caption-impact",+ "--font-caption-marker",+ "--font-caption-serif",+ "--font-mono",+ "--font-sans",+ "--foreground",+ "--fw-bold",+ "--fw-medium",+ "--fw-regular",+ "--fw-semibold",+ "--glass-blur",+ "--glass-blur-strong",+ "--glass-hud",+ "--glass-popover",+ "--glass-shell",+ "--glow-accent",+ "--gradient-panel",+ "--gradient-selected",+ "--gradient-workspace",+ "--icon-lg",+ "--icon-md",+ "--icon-sm",+ "--icon-xs",+ "--input",+ "--lh-none",+ "--lh-normal",+ "--lh-relaxed",+ "--lh-snug",+ "--lh-tight",+ "--line",+ "--line-strong",+ "--line-subtle",+ "--muted",+ "--muted-foreground",+ "--popover",+ "--popover-foreground",+ "--press-scale",+ "--primary",+ "--primary-foreground",+ "--radius",+ "--radius-2xl",+ "--radius-3xl",+ "--radius-full",+ "--radius-lg",+ "--radius-md",+ "--radius-pill",+ "--radius-sm",+ "--radius-window",+ "--radius-xl",+ "--radius-xs",+ "--rail-width",+ "--rec-amber",+ "--rec-amber-text",+ "--rec-red",+ "--rec-red-text",+ "--ring",+ "--ring-focus",+ "--ring-slider",+ "--secondary",+ "--secondary-foreground",+ "--shadow-badge",+ "--shadow-capture",+ "--shadow-card",+ "--shadow-card-hover",+ "--shadow-hud",+ "--shadow-inset-hi",+ "--shadow-panel",+ "--shadow-popover",+ "--shell-0",+ "--shell-1",+ "--shell-2",+ "--shell-3",+ "--shell-4",+ "--shell-5",+ "--space-0",+ "--space-0-5",+ "--space-1",+ "--space-1-5",+ "--space-10",+ "--space-12",+ "--space-2",+ "--space-2-5",+ "--space-3",+ "--space-3-5",+ "--space-4",+ "--space-5",+ "--space-6",+ "--space-8",+ "--surface-card",+ "--surface-popover",+ "--text-1",+ "--text-10",+ "--text-11",+ "--text-12",+ "--text-13",+ "--text-2",+ "--text-2xl",+ "--text-3",+ "--text-4",+ "--text-5",+ "--text-9",+ "--text-base",+ "--text-body",+ "--text-hi",+ "--text-lg",+ "--text-muted",+ "--text-slate-500",+ "--text-sm",+ "--text-xl",+ "--tracking-normal",+ "--tracking-tight",+ "--workspace-pad"+ ],+ "tokenKinds": {+ "--ease": "other",+ "--dur": "other",+ "--brand-green": "color",+ "--brand-green-hover": "color",+ "--brand-green-active": "color",+ "--brand-green-ring": "color",+ "--brand-green-glow": "color",+ "--brand-green-tint": "color",+ "--rec-red": "color",+ "--rec-red-text": "font",+ "--rec-amber": "color",+ "--rec-amber-text": "font",+ "--background": "other",+ "--foreground": "other",+ "--card": "other",+ "--card-foreground": "other",+ "--popover": "other",+ "--popover-foreground": "other",+ "--primary": "other",+ "--primary-foreground": "other",+ "--secondary": "other",+ "--secondary-foreground": "other",+ "--muted": "other",+ "--muted-foreground": "other",+ "--accent": "other",+ "--accent-foreground": "other",+ "--destructive": "other",+ "--destructive-foreground": "other",+ "--border": "other",+ "--input": "other",+ "--ring": "other",+ "--radius": "radius",+ "--shell-0": "color",+ "--shell-1": "color",+ "--shell-2": "color",+ "--shell-3": "color",+ "--shell-4": "color",+ "--shell-5": "color",+ "--line-subtle": "color",+ "--line": "color",+ "--line-strong": "color",+ "--fill-subtle": "color",+ "--fill": "color",+ "--fill-hover": "color",+ "--text-hi": "font",+ "--text-1": "font",+ "--text-2": "font",+ "--text-3": "font",+ "--text-4": "font",+ "--text-5": "font",+ "--text-slate-500": "font",+ "--color-bg": "color",+ "--color-fg": "color",+ "--surface-card": "color",+ "--surface-popover": "color",+ "--text-body": "font",+ "--text-muted": "font",+ "--border-default": "color",+ "--focus-ring": "shadow",+ "--accent-primary": "color",+ "--font-sans": "font",+ "--font-mono": "font",+ "--font-caption-marker": "font",+ "--font-caption-hand": "font",+ "--font-caption-impact": "font",+ "--font-caption-serif": "font",+ "--font-caption-grotesk": "font",+ "--fw-regular": "other",+ "--fw-medium": "other",+ "--fw-semibold": "other",+ "--fw-bold": "other",+ "--text-9": "font",+ "--text-10": "font",+ "--text-11": "font",+ "--text-12": "font",+ "--text-13": "font",+ "--text-sm": "font",+ "--text-base": "font",+ "--text-lg": "font",+ "--text-xl": "font",+ "--text-2xl": "font",+ "--lh-none": "other",+ "--lh-tight": "other",+ "--lh-snug": "other",+ "--lh-normal": "other",+ "--lh-relaxed": "other",+ "--tracking-tight": "font",+ "--tracking-normal": "font",+ "--space-0": "spacing",+ "--space-0-5": "spacing",+ "--space-1": "spacing",+ "--space-1-5": "spacing",+ "--space-2": "spacing",+ "--space-2-5": "spacing",+ "--space-3": "spacing",+ "--space-3-5": "spacing",+ "--space-4": "spacing",+ "--space-5": "spacing",+ "--space-6": "spacing",+ "--space-8": "spacing",+ "--space-10": "spacing",+ "--space-12": "spacing",+ "--radius-sm": "radius",+ "--radius-md": "radius",+ "--radius-lg": "radius",+ "--radius-xl": "radius",+ "--radius-2xl": "radius",+ "--radius-3xl": "radius",+ "--radius-window": "radius",+ "--radius-full": "radius",+ "--control-h-xs": "spacing",+ "--control-h-sm": "spacing",+ "--control-h-md": "spacing",+ "--control-h-lg": "spacing",+ "--icon-xs": "spacing",+ "--icon-sm": "spacing",+ "--icon-md": "spacing",+ "--icon-lg": "spacing",+ "--rail-width": "other",+ "--workspace-pad": "spacing",+ "--radius-xs": "radius",+ "--radius-pill": "radius",+ "--elev-card": "shadow",+ "--elev-pop": "shadow",+ "--glow-accent": "color",+ "--shadow-hud": "shadow",+ "--shadow-panel": "shadow",+ "--shadow-popover": "shadow",+ "--shadow-card": "shadow",+ "--shadow-card-hover": "shadow",+ "--shadow-badge": "shadow",+ "--shadow-inset-hi": "shadow",+ "--shadow-capture": "shadow",+ "--glass-blur": "other",+ "--glass-blur-strong": "other",+ "--glass-shell": "other",+ "--glass-hud": "color",+ "--glass-popover": "color",+ "--gradient-workspace": "other",+ "--gradient-panel": "other",+ "--gradient-selected": "other",+ "--dur-fast": "other",+ "--dur-base": "other",+ "--dur-mid": "other",+ "--dur-slow": "other",+ "--press-scale": "other",+ "--ring-focus": "color",+ "--ring-slider": "shadow"+ },+ "fontFamilies": [+ "Bebas Neue",+ "Caveat",+ "Fira Code",+ "Geist",+ "Geist Mono",+ "IBM Plex Mono",+ "Inter",+ "Oswald",+ "Permanent Marker",+ "Playfair Display",+ "Space Grotesk"+ ]+ }+}diff --git a/design/_ds_bundle.js b/design/_ds_bundle.jsnew file mode 100644index 000000000..f410753e0--- /dev/null+++ b/design/_ds_bundle.js@@ -0,0 +1,1328 @@+/* @ds-bundle: {"format":4,"namespace":"DesignSystem_d5355e","components":[{"name":"Badge","sourcePath":"components/display/Badge.jsx"},{"name":"Card","sourcePath":"components/display/Card.jsx"},{"name":"Chip","sourcePath":"components/display/Chip.jsx"},{"name":"ProgressBar","sourcePath":"components/display/ProgressBar.jsx"},{"name":"ChatBubble","sourcePath":"components/editor/ChatBubble.jsx"},{"name":"FacetRailButton","sourcePath":"components/editor/FacetRailButton.jsx"},{"name":"MediaCard","sourcePath":"components/editor/MediaCard.jsx"},{"name":"ProposalCard","sourcePath":"components/editor/ProposalCard.jsx"},{"name":"TimelinePill","sourcePath":"components/editor/TimelinePill.jsx"},{"name":"Button","sourcePath":"components/forms/Button.jsx"},{"name":"IconButton","sourcePath":"components/forms/IconButton.jsx"},{"name":"SegmentedControl","sourcePath":"components/forms/SegmentedControl.jsx"},{"name":"Select","sourcePath":"components/forms/Select.jsx"},{"name":"Slider","sourcePath":"components/forms/Slider.jsx"},{"name":"Switch","sourcePath":"components/forms/Switch.jsx"},{"name":"TextField","sourcePath":"components/forms/TextField.jsx"}],"sourceHashes":{"components/display/Badge.jsx":"945d417894b4","components/display/Card.jsx":"0a49c008b484","components/display/Chip.jsx":"e8ce89e14157","components/display/ProgressBar.jsx":"389c60a837a5","components/editor/ChatBubble.jsx":"9fb2d4f5b482","components/editor/FacetRailButton.jsx":"0787738d5dbc","components/editor/MediaCard.jsx":"e7c8e7020f73","components/editor/ProposalCard.jsx":"a9b5577f85d1","components/editor/TimelinePill.jsx":"54dd80c4b997","components/forms/Button.jsx":"da1cbfaa0d8e","components/forms/IconButton.jsx":"acc85205377d","components/forms/SegmentedControl.jsx":"8ead5ca73ac1","components/forms/Select.jsx":"acfccc2a37f2","components/forms/Slider.jsx":"70f722a063d1","components/forms/Switch.jsx":"b6f070e782e5","components/forms/TextField.jsx":"000e9d209e3e"},"inlinedExternals":[],"unexposedExports":[]} */++(() => {++const __ds_ns = (window.DesignSystem_d5355e = window.DesignSystem_d5355e || {});++const __ds_scope = {};++(__ds_ns.__errors = __ds_ns.__errors || []);++// components/display/Badge.jsx+try { (() => {+/**+ * OpenScreen Badge — the small status pill. Optional leading dot.+ * tones: accent (default) · neutral · danger · warn. `soft` uses the+ * tinted fill (default); pass soft={false} for a bordered outline.+ */+function Badge({+ children,+ tone = 'accent',+ dot = false,+ soft = true,+ mono = true,+ style = {}+}) {+ const map = {+ accent: {+ fg: 'var(--accent)',+ bg: 'var(--accent-soft)',+ bd: 'var(--accent-border)',+ dot: 'var(--accent)'+ },+ neutral: {+ fg: 'var(--muted)',+ bg: 'var(--surface-2)',+ bd: 'var(--border)',+ dot: 'var(--muted)'+ },+ danger: {+ fg: 'var(--danger)',+ bg: 'var(--danger-soft)',+ bd: 'var(--danger)',+ dot: 'var(--danger)'+ },+ warn: {+ fg: 'var(--annotation)',+ bg: 'var(--annotation-wash)',+ bd: 'var(--annotation)',+ dot: 'var(--annotation)'+ }+ };+ const c = map[tone] || map.accent;+ return /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ gap: 5,+ padding: dot ? '3px 9px 3px 7px' : '3px 9px',+ borderRadius: 9999,+ background: soft ? c.bg : 'transparent',+ border: soft ? 'none' : `1px solid ${c.bd}`,+ color: c.fg,+ fontFamily: mono ? 'var(--font-mono)' : 'var(--font-display)',+ fontSize: mono ? 9.5 : 11.5,+ fontWeight: 600,+ whiteSpace: 'nowrap',+ ...style+ }+ }, dot && /*#__PURE__*/React.createElement("span", {+ style: {+ width: 4,+ height: 4,+ borderRadius: '50%',+ background: c.dot+ }+ }), children);+}+Object.assign(__ds_scope, { Badge });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/Badge.jsx", error: String((e && e.message) || e) }); }++// components/display/Card.jsx+try { (() => {+/**+ * OpenScreen Card — the flat bordered surface container. `elevation`+ * "card" (resting) or "pop" (floating). `level` picks the fill surface.+ * Optional `title` renders a bordered header.+ */+function Card({+ children,+ title = null,+ headerRight = null,+ elevation = 'card',+ level = 1,+ radius = 14,+ padding = 14,+ style = {},+ bodyStyle = {}+}) {+ const fills = {+ 0: 'var(--surface)',+ 1: 'var(--surface-1)',+ 2: 'var(--surface-2)'+ };+ return /*#__PURE__*/React.createElement("div", {+ style: {+ border: '1px solid var(--border)',+ borderRadius: radius,+ background: fills[level] || fills[1],+ boxShadow: elevation === 'pop' ? 'var(--elev-pop)' : 'var(--elev-card)',+ overflow: 'hidden',+ ...style+ }+ }, title && /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 8,+ padding: '11px 13px 10px',+ borderBottom: '1px solid var(--border-soft)'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 12,+ fontWeight: 600,+ color: 'var(--fg)',+ letterSpacing: '-0.01em'+ }+ }, title), headerRight && /*#__PURE__*/React.createElement("span", {+ style: {+ marginLeft: 'auto'+ }+ }, headerRight)), /*#__PURE__*/React.createElement("div", {+ style: {+ padding,+ ...bodyStyle+ }+ }, children));+}+Object.assign(__ds_scope, { Card });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/Card.jsx", error: String((e && e.message) || e) }); }++// components/display/Chip.jsx+try { (() => {+/**+ * OpenScreen Chip — rounded action/filter pill with optional leading+ * icon. Used for the quick-action row above the composer. Hover gives+ * an accent wash + border.+ */+function Chip({+ children,+ icon = null,+ onClick,+ style = {}+}) {+ const [hover, setHover] = React.useState(false);+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ flex: '0 0 auto',+ display: 'inline-flex',+ alignItems: 'center',+ gap: 6,+ padding: '6px 11px',+ borderRadius: 9999,+ background: hover ? 'var(--accent-wash)' : 'var(--surface-1)',+ border: `1px solid ${hover ? 'var(--accent-border)' : 'var(--border)'}`,+ color: hover ? 'var(--fg)' : 'var(--fg-2)',+ fontFamily: 'var(--font-display)',+ fontSize: 11.5,+ fontWeight: 500,+ cursor: 'pointer',+ whiteSpace: 'nowrap',+ ...style+ }+ }, icon && /*#__PURE__*/React.createElement("span", {+ style: {+ color: 'var(--accent)',+ display: 'inline-flex'+ }+ }, icon), children);+}+Object.assign(__ds_scope, { Chip });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/Chip.jsx", error: String((e && e.message) || e) }); }++// components/display/ProgressBar.jsx+try { (() => {+/**+ * OpenScreen ProgressBar — thin track with an emerald (or gradient)+ * fill. Used for the recipe step progress and generic determinate+ * progress. Height defaults to the 3px recipe bar.+ */+function ProgressBar({+ value = 0,+ height = 3,+ gradient = true,+ style = {}+}) {+ const pct = Math.max(0, Math.min(100, value));+ return /*#__PURE__*/React.createElement("div", {+ style: {+ height,+ background: 'var(--surface-3)',+ position: 'relative',+ borderRadius: height / 2,+ overflow: 'hidden',+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'absolute',+ left: 0,+ top: 0,+ bottom: 0,+ width: `${pct}%`,+ background: gradient ? 'linear-gradient(90deg, var(--brand-lo), var(--brand))' : 'var(--accent)'+ }+ }));+}+Object.assign(__ds_scope, { ProgressBar });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/ProgressBar.jsx", error: String((e && e.message) || e) }); }++// components/editor/ChatBubble.jsx+try { (() => {+/**+ * OpenScreen ChatBubble — a single agent-conversation row. Handles the+ * three roles: assistant (avatar + left bubble, meta header), user+ * (right, emerald-tinted), system (centered pill).+ */+function ChatBubble({+ role = 'assistant',+ author,+ time,+ children,+ avatar = null+}) {+ if (role === 'system') {+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ justifyContent: 'center'+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ maxWidth: '94%',+ padding: '6px 13px',+ borderRadius: 9999,+ background: 'var(--surface-1)',+ border: '1px solid var(--border-soft)',+ color: 'var(--muted)',+ fontSize: 11.5+ }+ }, children));+ }+ if (role === 'user') {+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ justifyContent: 'flex-end'+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ gap: 6,+ alignItems: 'flex-end',+ maxWidth: '86%'+ }+ }, (author || time) && /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'baseline',+ gap: 8,+ padding: '0 2px'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 11.5,+ fontWeight: 600,+ color: 'var(--fg)',+ letterSpacing: '-0.01em'+ }+ }, author), time && /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 10,+ color: 'var(--meta)'+ }+ }, time)), /*#__PURE__*/React.createElement("div", {+ style: {+ padding: '10px 14px',+ borderRadius: '15px 5px 15px 15px',+ background: 'var(--accent-soft)',+ border: '1px solid var(--accent-border)',+ color: 'var(--fg)',+ fontSize: 13,+ lineHeight: 1.55+ }+ }, children)));+ }+ // assistant+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ gap: 10,+ alignItems: 'flex-start'+ }+ }, /*#__PURE__*/React.createElement("span", {+ "aria-hidden": "true",+ style: {+ width: 26,+ height: 26,+ borderRadius: 8,+ background: 'var(--surface-2)',+ border: '1px solid var(--border)',+ flexShrink: 0,+ marginTop: 2,+ display: 'grid',+ placeItems: 'center',+ color: 'var(--accent)'+ }+ }, avatar), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ gap: 6,+ minWidth: 0,+ maxWidth: '86%'+ }+ }, (author || time) && /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'baseline',+ gap: 8,+ padding: '0 2px'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 11.5,+ fontWeight: 600,+ color: 'var(--fg)',+ letterSpacing: '-0.01em'+ }+ }, author), time && /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 10,+ color: 'var(--meta)'+ }+ }, time)), /*#__PURE__*/React.createElement("div", {+ style: {+ padding: '11px 14px',+ borderRadius: '5px 15px 15px 15px',+ background: 'var(--surface)',+ border: '1px solid var(--border)',+ color: 'var(--fg-2)',+ fontSize: 13,+ lineHeight: 1.55,+ boxShadow: 'var(--elev-card)'+ }+ }, children)));+}+Object.assign(__ds_scope, { ChatBubble });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/editor/ChatBubble.jsx", error: String((e && e.message) || e) }); }++// components/editor/FacetRailButton.jsx+try { (() => {+/**+ * OpenScreen FacetRailButton — an icon button in the vertical facet+ * rail beside the inspector. Active facet gets the emerald-soft fill.+ */+function FacetRailButton({+ active = false,+ title,+ onClick,+ children,+ style = {}+}) {+ const [hover, setHover] = React.useState(false);+ let color = active ? 'var(--accent)' : 'var(--muted)';+ let background = active ? 'var(--accent-soft)' : 'transparent';+ if (!active && hover) {+ color = 'var(--fg)';+ background = 'var(--surface-3)';+ }+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ title: title,+ "aria-label": title,+ "aria-pressed": active,+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ width: 40,+ height: 40,+ display: 'grid',+ placeItems: 'center',+ border: 0,+ borderRadius: 11,+ background,+ color,+ cursor: 'pointer',+ ...style+ }+ }, children);+}+Object.assign(__ds_scope, { FacetRailButton });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/editor/FacetRailButton.jsx", error: String((e && e.message) || e) }); }++// components/editor/MediaCard.jsx+try { (() => {+/**+ * OpenScreen MediaCard — a clip tile in the media library. Gradient+ * thumbnail with a film-strip glyph, a drag-handle affordance, and a+ * name/duration/size footer. Selected → 1.5px emerald border.+ */+function MediaCard({+ name,+ duration,+ size,+ from = '#10b981',+ to = '#0d986a',+ selected = false,+ draggable = true,+ onClick,+ onDragStart,+ onDragEnd,+ style = {}+}) {+ return /*#__PURE__*/React.createElement("button", {+ draggable: draggable,+ onClick: onClick,+ onDragStart: onDragStart,+ onDragEnd: onDragEnd,+ style: {+ display: 'flex',+ flexDirection: 'column',+ padding: 0,+ border: `1.5px solid ${selected ? 'var(--accent)' : 'var(--border)'}`,+ borderRadius: 12,+ background: 'var(--surface)',+ overflow: 'hidden',+ cursor: 'grab',+ textAlign: 'left',+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'relative',+ height: 84,+ display: 'grid',+ placeItems: 'center',+ background: `linear-gradient(135deg, ${from}, ${to})`+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "30",+ height: "30",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "rgba(255,255,255,0.85)",+ strokeWidth: "1.8",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("rect", {+ x: "2.5",+ y: "4",+ width: "19",+ height: "16",+ rx: "2"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M7 4v16M17 4v16M2.5 9h4.5M2.5 15h4.5M17 9h4.5M17 15h4.5"+ })), /*#__PURE__*/React.createElement("span", {+ "aria-hidden": "true",+ style: {+ position: 'absolute',+ top: 7,+ left: 7,+ width: 22,+ height: 22,+ display: 'grid',+ placeItems: 'center',+ borderRadius: 6,+ background: 'rgba(8,10,13,0.45)',+ backdropFilter: 'blur(6px)'+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "12",+ height: "12",+ viewBox: "0 0 24 24",+ fill: "rgba(255,255,255,0.9)"+ }, /*#__PURE__*/React.createElement("circle", {+ cx: "9",+ cy: "6",+ r: "1.6"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "15",+ cy: "6",+ r: "1.6"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "9",+ cy: "12",+ r: "1.6"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "15",+ cy: "12",+ r: "1.6"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "9",+ cy: "18",+ r: "1.6"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "15",+ cy: "18",+ r: "1.6"+ })))), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 7,+ padding: '10px 12px'+ }+ }, selected && /*#__PURE__*/React.createElement("span", {+ style: {+ width: 6,+ height: 6,+ borderRadius: '50%',+ background: 'var(--accent)',+ flexShrink: 0+ }+ }), /*#__PURE__*/React.createElement("div", {+ style: {+ minWidth: 0,+ flex: 1+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ fontSize: 12.5,+ fontWeight: 600,+ color: 'var(--fg)',+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ textOverflow: 'ellipsis'+ }+ }, name), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ justifyContent: 'space-between',+ gap: 8+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 10.5,+ color: 'var(--muted)'+ }+ }, duration), /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 10.5,+ color: 'var(--meta)'+ }+ }, size)))));+}+Object.assign(__ds_scope, { MediaCard });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/editor/MediaCard.jsx", error: String((e && e.message) || e) }); }++// components/editor/ProposalCard.jsx+try { (() => {+/**+ * OpenScreen ProposalCard — the agent's "Proposed cuts" card: a header+ * with total + confidence badge, a list of time-range rows with striped+ * clip chips, an apply/review action row, and a rationale footnote.+ */+function ProposalCard({+ title = 'Proposed cuts',+ total,+ confidence = 'High confidence',+ items = [],+ rationale,+ applyLabel = 'Apply',+ onApply,+ onReview+}) {+ return /*#__PURE__*/React.createElement("div", {+ style: {+ border: '1px solid var(--border)',+ borderRadius: 14,+ background: 'var(--surface-1)',+ overflow: 'hidden',+ boxShadow: 'var(--elev-card)'+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 8,+ padding: '11px 13px 10px',+ borderBottom: '1px solid var(--border-soft)'+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "13",+ height: "13",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round",+ style: {+ color: 'var(--accent)'+ }+ }, /*#__PURE__*/React.createElement("path", {+ d: "M20 6 9 17l-5-5"+ })), /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 12,+ fontWeight: 600,+ color: 'var(--fg)',+ letterSpacing: '-0.01em'+ }+ }, title), total != null && /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 10,+ color: 'var(--meta)'+ }+ }, "−", total), /*#__PURE__*/React.createElement("span", {+ style: {+ marginLeft: 'auto',+ display: 'inline-flex',+ alignItems: 'center',+ gap: 5,+ padding: '3px 8px',+ borderRadius: 9999,+ background: 'var(--accent-soft)',+ color: 'var(--accent)',+ fontFamily: 'var(--font-mono)',+ fontSize: 9.5,+ fontWeight: 600,+ border: '1px solid var(--accent-border)'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ width: 4,+ height: 4,+ borderRadius: '50%',+ background: 'var(--accent)'+ }+ }), confidence)), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column'+ }+ }, items.map((it, i) => /*#__PURE__*/React.createElement("div", {+ key: i,+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 10,+ padding: '8px 13px',+ borderBottom: '1px solid var(--border-soft)'+ }+ }, /*#__PURE__*/React.createElement("span", {+ "aria-hidden": "true",+ style: {+ width: 16,+ height: 9,+ borderRadius: 2,+ flexShrink: 0,+ background: 'var(--accent-wash)',+ backgroundImage: 'repeating-linear-gradient(45deg, var(--accent-stripe) 0, var(--accent-stripe) 3px, transparent 3px, transparent 6px)'+ }+ }), /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 11.5,+ color: 'var(--fg)'+ }+ }, it.range), /*#__PURE__*/React.createElement("span", {+ style: {+ marginLeft: 'auto',+ fontFamily: 'var(--font-mono)',+ fontSize: 10.5,+ color: 'var(--muted)'+ }+ }, "−", it.dur)))), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 8,+ padding: '11px 13px',+ background: 'var(--surface)'+ }+ }, /*#__PURE__*/React.createElement("button", {+ onClick: onApply,+ style: {+ flex: 1,+ padding: '8px 12px',+ borderRadius: 10,+ border: '1px solid var(--accent)',+ background: 'var(--accent)',+ color: '#fff',+ fontSize: 12,+ fontWeight: 600,+ cursor: 'pointer',+ boxShadow: '0 2px 8px -3px var(--accent-soft)'+ }+ }, applyLabel), /*#__PURE__*/React.createElement("button", {+ onClick: onReview,+ style: {+ padding: '8px 12px',+ borderRadius: 10,+ border: '1px solid var(--border)',+ background: 'var(--surface-1)',+ color: 'var(--fg-2)',+ fontSize: 12,+ fontWeight: 500,+ cursor: 'pointer'+ }+ }, "Review each")), rationale && /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'flex-start',+ gap: 6,+ padding: '0 13px 12px'+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "12",+ height: "12",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round",+ style: {+ color: 'var(--meta)',+ flexShrink: 0,+ marginTop: 1+ }+ }, /*#__PURE__*/React.createElement("circle", {+ cx: "12",+ cy: "12",+ r: "10"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M12 16v-4"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M12 8h.01"+ })), /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 10.5,+ color: 'var(--meta)',+ lineHeight: 1.45+ }+ }, rationale)));+}+Object.assign(__ds_scope, { ProposalCard });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/editor/ProposalCard.jsx", error: String((e && e.message) || e) }); }++// components/editor/TimelinePill.jsx+try { (() => {+/**+ * OpenScreen TimelinePill — a labelled marker on a timeline lane.+ * tone maps to the four lane accents. `fixedWidth` (tag mode) sizes to+ * content; otherwise it spans a range via left/width percentages.+ */+function TimelinePill({+ tone = 'accent',+ icon = null,+ children,+ leftPct = 0,+ widthPct = null,+ style = {}+}) {+ const map = {+ accent: {+ c: 'var(--accent)',+ w: 'var(--accent-soft)'+ },+ annotation: {+ c: 'var(--annotation)',+ w: 'var(--annotation-wash)'+ },+ speed: {+ c: 'var(--speed)',+ w: 'var(--speed-wash)'+ },+ danger: {+ c: 'var(--danger)',+ w: 'var(--danger-soft)'+ }+ };+ const t = map[tone] || map.accent;+ return /*#__PURE__*/React.createElement("span", {+ style: {+ position: 'absolute',+ top: 1,+ left: `${leftPct}%`,+ width: widthPct == null ? 'max-content' : `${widthPct}%`,+ height: 22,+ display: 'inline-flex',+ alignItems: 'center',+ gap: 5,+ padding: '0 9px 0 7px',+ borderRadius: 6,+ border: `1.5px solid ${t.c}`,+ background: t.w,+ color: tone === 'danger' ? 'var(--danger)' : 'var(--fg)',+ fontSize: 11,+ fontWeight: 600,+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ boxSizing: 'border-box',+ ...style+ }+ }, icon, children);+}+Object.assign(__ds_scope, { TimelinePill });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/editor/TimelinePill.jsx", error: String((e && e.message) || e) }); }++// components/forms/Button.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * OpenScreen Button — the primary text action.+ * variants: primary (emerald fill) · secondary (surface + border) · ghost (transparent).+ * Icons are passed as children alongside a label, or use IconButton for icon-only.+ */+function Button({+ variant = 'primary',+ size = 'md',+ icon = null,+ iconRight = null,+ disabled = false,+ fullWidth = false,+ onClick,+ children,+ style = {},+ ...rest+}) {+ const sizes = {+ sm: {+ h: 28,+ px: 10,+ fs: 12,+ gap: 6,+ radius: 8+ },+ md: {+ h: 32,+ px: 14,+ fs: 13,+ gap: 7,+ radius: 9+ },+ lg: {+ h: 40,+ px: 18,+ fs: 14,+ gap: 9,+ radius: 12+ }+ };+ const s = sizes[size] || sizes.md;+ const variants = {+ primary: {+ background: 'var(--accent)',+ color: '#fff',+ border: '1px solid var(--accent)',+ boxShadow: '0 2px 10px -3px var(--accent-soft)'+ },+ secondary: {+ background: 'var(--surface-1)',+ color: 'var(--fg-2)',+ border: '1px solid var(--border)'+ },+ ghost: {+ background: 'transparent',+ color: 'var(--fg-2)',+ border: '1px solid transparent'+ }+ };+ const v = variants[variant] || variants.primary;+ const base = {+ display: 'inline-flex',+ alignItems: 'center',+ justifyContent: 'center',+ gap: s.gap,+ height: s.h,+ padding: `0 ${s.px}px`,+ borderRadius: s.radius,+ fontFamily: 'var(--font-display)',+ fontSize: s.fs,+ fontWeight: 600,+ lineHeight: 1,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.45 : 1,+ whiteSpace: 'nowrap',+ ...v,+ ...style+ };+ const [hover, setHover] = React.useState(false);+ const hoverStyle = !disabled && hover ? variant === 'primary' ? {+ background: 'var(--brand-lo)'+ } : variant === 'secondary' ? {+ borderColor: 'var(--border-hi)',+ color: 'var(--fg)'+ } : {+ background: 'var(--surface-1)',+ borderColor: 'var(--border)'+ } : {};+ return /*#__PURE__*/React.createElement("button", _extends({+ type: "button",+ disabled: disabled,+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ ...base,+ ...hoverStyle,+ width: fullWidth ? '100%' : undefined+ }+ }, rest), icon, children, iconRight);+}+Object.assign(__ds_scope, { Button });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/Button.jsx", error: String((e && e.message) || e) }); }++// components/forms/IconButton.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * OpenScreen IconButton — square, icon-only. The workhorse of toolbars,+ * the topbar, and floating chrome. Ghost by default; `active` gives the+ * emerald-soft selected look; `tone="danger"` for destructive.+ */+function IconButton({+ size = 32,+ active = false,+ tone = 'default',+ disabled = false,+ title,+ onClick,+ children,+ style = {},+ ...rest+}) {+ const [hover, setHover] = React.useState(false);+ const rest_ = {+ default: 'var(--muted)',+ danger: 'var(--muted)'+ }[tone];+ let color = active ? 'var(--accent)' : rest_;+ let background = active ? 'var(--accent-soft)' : 'transparent';+ if (!disabled && hover && !active) {+ if (tone === 'danger') {+ color = 'var(--danger)';+ background = 'var(--danger-soft)';+ } else {+ color = 'var(--fg)';+ background = 'var(--surface-2)';+ }+ }+ return /*#__PURE__*/React.createElement("button", _extends({+ type: "button",+ title: title,+ "aria-label": title,+ "aria-pressed": active || undefined,+ disabled: disabled,+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ width: size,+ height: size,+ display: 'grid',+ placeItems: 'center',+ borderRadius: size <= 28 ? 6 : 9,+ border: 0,+ background,+ color,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.4 : 1,+ flexShrink: 0,+ ...style+ }+ }, rest), children);+}+Object.assign(__ds_scope, { IconButton });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/IconButton.jsx", error: String((e && e.message) || e) }); }++// components/forms/SegmentedControl.jsx+try { (() => {+/**+ * OpenScreen SegmentedControl — the pill-in-a-trough tab switcher.+ * Used for Media/Edit/Rec stage modes, Image/Color/Gradient background+ * tabs, Screen/Window source, etc. The active segment gets a raised+ * surface chip; inactive segments are muted text.+ */+function SegmentedControl({+ options = [],+ value,+ onChange,+ size = 'md',+ style = {}+}) {+ const s = size === 'sm' ? {+ pad: '6px 8px',+ fs: 11.5,+ trough: 2,+ radius: 8,+ inner: 6+ } : {+ pad: '7px 14px',+ fs: 12.5,+ trough: 3,+ radius: 11,+ inner: 8+ };+ return /*#__PURE__*/React.createElement("div", {+ role: "tablist",+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ gap: 2,+ padding: s.trough,+ background: 'var(--surface-1)',+ border: '1px solid var(--border)',+ borderRadius: s.radius,+ ...style+ }+ }, options.map(opt => {+ const val = typeof opt === 'string' ? opt : opt.value;+ const label = typeof opt === 'string' ? opt : opt.label;+ const active = val === value;+ return /*#__PURE__*/React.createElement("button", {+ key: val,+ role: "tab",+ "aria-selected": active,+ onClick: () => onChange && onChange(val),+ style: {+ padding: s.pad,+ border: 0,+ borderRadius: s.inner,+ cursor: 'pointer',+ fontFamily: 'var(--font-display)',+ fontSize: s.fs,+ fontWeight: 600,+ lineHeight: 1,+ background: active ? 'var(--surface-hi)' : 'transparent',+ color: active ? 'var(--fg-emphasis)' : 'var(--muted)',+ boxShadow: active ? 'var(--elev-card)' : 'none'+ }+ }, label);+ }));+}+Object.assign(__ds_scope, { SegmentedControl });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/SegmentedControl.jsx", error: String((e && e.message) || e) }); }++// components/forms/Select.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * OpenScreen Select — native dropdown styled to match. Used for+ * caption style, layout preset, transcript language, etc.+ */+function Select({+ options = [],+ value,+ onChange,+ fullWidth = true,+ style = {},+ ...rest+}) {+ return /*#__PURE__*/React.createElement("select", _extends({+ value: value,+ onChange: e => onChange && onChange(e.target.value),+ style: {+ width: fullWidth ? '100%' : undefined,+ height: 36,+ padding: '0 11px',+ borderRadius: 10,+ border: '1px solid var(--border)',+ background: 'var(--surface-2)',+ color: 'var(--fg-2)',+ fontFamily: 'var(--font-display)',+ fontSize: 12.5,+ fontWeight: 500,+ outline: 'none',+ cursor: 'pointer',+ ...style+ }+ }, rest), options.map(opt => {+ const val = typeof opt === 'string' ? opt : opt.value;+ const label = typeof opt === 'string' ? opt : opt.label;+ return /*#__PURE__*/React.createElement("option", {+ key: val,+ value: val+ }, label);+ }));+}+Object.assign(__ds_scope, { Select });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/Select.jsx", error: String((e && e.message) || e) }); }++// components/forms/Slider.jsx+try { (() => {+/**+ * OpenScreen Slider — the labelled range control inside inspector cards.+ * Renders the whole card: label (left) + mono value in emerald (right)+ * above a filled range track. Pass `card={false}` for a bare track.+ */+function Slider({+ label,+ value = 0,+ min = 0,+ max = 100,+ step = 1,+ format,+ onChange,+ card = true,+ style = {}+}) {+ const pct = (value - min) / (max - min) * 100;+ const trackStyle = {+ width: '100%',+ display: 'block',+ backgroundImage: `linear-gradient(var(--accent),var(--accent)), linear-gradient(var(--surface-3),var(--surface-3))`,+ backgroundSize: `${pct}% 5px, 100% 5px`+ };+ const display = format ? format(value) : value;+ const input = /*#__PURE__*/React.createElement("input", {+ type: "range",+ min: min,+ max: max,+ step: step,+ value: value,+ onChange: e => onChange && onChange(Number(e.target.value)),+ style: trackStyle+ });+ if (!card) return input;+ return /*#__PURE__*/React.createElement("div", {+ style: {+ border: '1px solid var(--border)',+ borderRadius: 12,+ background: 'var(--surface)',+ padding: '11px 13px',+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ marginBottom: 8+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 11.5,+ fontWeight: 500,+ color: 'var(--fg-2)'+ }+ }, label), /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 11,+ color: 'var(--accent)',+ marginLeft: 'auto'+ }+ }, display)), input);+}+Object.assign(__ds_scope, { Slider });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/Slider.jsx", error: String((e && e.message) || e) }); }++// components/forms/Switch.jsx+try { (() => {+/**+ * OpenScreen Switch — the pill toggle used in inspector setting rows+ * (Blur background, Mirror webcam, Shrink on zoom, Show cursor…).+ * Track fills emerald when on; knob slides right.+ */+function Switch({+ checked = false,+ onChange,+ disabled = false,+ style = {}+}) {+ const W = 38,+ H = 22,+ KNOB = 16,+ PAD = 3;+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ role: "switch",+ "aria-checked": checked,+ disabled: disabled,+ onClick: () => !disabled && onChange && onChange(!checked),+ style: {+ position: 'relative',+ width: W,+ height: H,+ flexShrink: 0,+ border: 0,+ borderRadius: 9999,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ background: checked ? 'var(--accent)' : 'var(--surface-3)',+ transition: 'background .18s var(--ease)',+ ...style+ }+ }, /*#__PURE__*/React.createElement("span", {+ "aria-hidden": "true",+ style: {+ position: 'absolute',+ top: PAD,+ left: checked ? W - KNOB - PAD : PAD,+ width: KNOB,+ height: KNOB,+ borderRadius: '50%',+ background: '#fff',+ boxShadow: '0 1px 3px rgba(0,0,0,0.35)',+ transition: 'left .18s var(--ease)'+ }+ }));+}+Object.assign(__ds_scope, { Switch });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/Switch.jsx", error: String((e && e.message) || e) }); }++// components/forms/TextField.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * OpenScreen TextField — one primitive for both single-line inputs and+ * the multiline composer (same border/fill/radius vocabulary).+ * `multiline` swaps <input> for an auto-height <textarea>.+ * `leadingIcon` renders a search/glyph inside a bordered wrapper.+ */+function TextField({+ value,+ onChange,+ placeholder,+ multiline = false,+ leadingIcon = null,+ rows = 2,+ style = {},+ wrapStyle = {},+ ...rest+}) {+ const shared = {+ width: '100%',+ minWidth: 0,+ border: 0,+ background: 'transparent',+ fontFamily: 'var(--font-display)',+ fontSize: 13,+ lineHeight: 1.5,+ color: 'var(--fg)',+ outline: 'none',+ resize: 'none'+ };+ const control = multiline ? /*#__PURE__*/React.createElement("textarea", _extends({+ value: value,+ onChange: e => onChange && onChange(e.target.value),+ placeholder: placeholder,+ rows: rows,+ style: {+ ...shared,+ minHeight: 28,+ ...style+ }+ }, rest)) : /*#__PURE__*/React.createElement("input", _extends({+ value: value,+ onChange: e => onChange && onChange(e.target.value),+ placeholder: placeholder,+ style: {+ ...shared,+ ...style+ }+ }, rest));+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: multiline ? 'flex-start' : 'center',+ gap: 10,+ padding: multiline ? '9px 11px' : '10px 14px',+ border: '1px solid var(--border)',+ borderRadius: multiline ? 14 : 10,+ background: 'var(--surface-1)',+ ...wrapStyle+ }+ }, leadingIcon, control);+}+Object.assign(__ds_scope, { TextField });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/TextField.jsx", error: String((e && e.message) || e) }); }++__ds_ns.Badge = __ds_scope.Badge;++__ds_ns.Card = __ds_scope.Card;++__ds_ns.Chip = __ds_scope.Chip;++__ds_ns.ProgressBar = __ds_scope.ProgressBar;++__ds_ns.ChatBubble = __ds_scope.ChatBubble;++__ds_ns.FacetRailButton = __ds_scope.FacetRailButton;++__ds_ns.MediaCard = __ds_scope.MediaCard;++__ds_ns.ProposalCard = __ds_scope.ProposalCard;++__ds_ns.TimelinePill = __ds_scope.TimelinePill;++__ds_ns.Button = __ds_scope.Button;++__ds_ns.IconButton = __ds_scope.IconButton;++__ds_ns.SegmentedControl = __ds_scope.SegmentedControl;++__ds_ns.Select = __ds_scope.Select;++__ds_ns.Slider = __ds_scope.Slider;++__ds_ns.Switch = __ds_scope.Switch;++__ds_ns.TextField = __ds_scope.TextField;++})();diff --git a/design/_ds_manifest.json b/design/_ds_manifest.jsonnew file mode 100644index 000000000..082a6cb6b--- /dev/null+++ b/design/_ds_manifest.json@@ -0,0 +1 @@+{"namespace":"DesignSystem_d5355e","components":[{"name":"Badge","sourcePath":"components/display/Badge.jsx"},{"name":"Card","sourcePath":"components/display/Card.jsx"},{"name":"Chip","sourcePath":"components/display/Chip.jsx"},{"name":"ProgressBar","sourcePath":"components/display/ProgressBar.jsx"},{"name":"ChatBubble","sourcePath":"components/editor/ChatBubble.jsx"},{"name":"FacetRailButton","sourcePath":"components/editor/FacetRailButton.jsx"},{"name":"MediaCard","sourcePath":"components/editor/MediaCard.jsx"},{"name":"ProposalCard","sourcePath":"components/editor/ProposalCard.jsx"},{"name":"TimelinePill","sourcePath":"components/editor/TimelinePill.jsx"},{"name":"Button","sourcePath":"components/forms/Button.jsx"},{"name":"IconButton","sourcePath":"components/forms/IconButton.jsx"},{"name":"SegmentedControl","sourcePath":"components/forms/SegmentedControl.jsx"},{"name":"Select","sourcePath":"components/forms/Select.jsx"},{"name":"Slider","sourcePath":"components/forms/Slider.jsx"},{"name":"Switch","sourcePath":"components/forms/Switch.jsx"},{"name":"TextField","sourcePath":"components/forms/TextField.jsx"}],"startingPoints":[{"name":"editor","path":"ui_kits/editor/index.html","previewPath":"ui_kits/editor/index.html","kind":"screen","section":"Editor","subtitle":"OpenScreen editor shell (chat + stage + timeline)","viewport":"1360x840"}],"cards":[{"path":"guidelines/brand-elevation.card.html","group":"Brand","viewport":"700x170","subtitle":"Resting card vs floating popover","name":"Elevation"},{"path":"guidelines/brand-logo.card.html","group":"Brand","viewport":"700x140","subtitle":"Icon mark + Geist wordmark lockup","name":"Logo"},{"path":"guidelines/brand-motion.card.html","group":"Brand","viewport":"700x150","subtitle":"One easing, 0.15s; record dot pulses","name":"Motion"},{"path":"guidelines/brand-radii.card.html","group":"Brand","viewport":"700x170","subtitle":"Nested-radius rhythm, 2 → fully round","name":"Radii"},{"path":"guidelines/colors-brand.card.html","group":"Colors","viewport":"700x150","subtitle":"Emerald — the single brand hue","name":"Brand / accent"},{"path":"guidelines/colors-semantic.card.html","group":"Colors","viewport":"700x150","subtitle":"Timeline lanes & status — rationed accents","name":"Semantic"},{"path":"guidelines/colors-surfaces.card.html","group":"Colors","viewport":"700x160","subtitle":"Near-black blue-grey, low → high","name":"Surfaces & borders"},{"path":"guidelines/colors-text.card.html","group":"Colors","viewport":"700x140","subtitle":"Primary → meta text ramp","name":"Text"},{"path":"components/display/display.card.html","group":"Components","viewport":"700x300","subtitle":"Badge · Chip · Card · ProgressBar","name":"Display"},{"path":"components/editor/editor.card.html","group":"Components","viewport":"700x520","subtitle":"ChatBubble · ProposalCard · MediaCard · TimelinePill · FacetRailButton","name":"Editor"},{"path":"components/forms/forms.card.html","group":"Components","viewport":"700x430","subtitle":"Button · IconButton · SegmentedControl · Switch · Slider · Select · TextField","name":"Forms"},{"path":"ui_kits/editor/index.html","group":"Editor","viewport":"1360x840","subtitle":"Full OpenScreen editor — Edit mode"},{"path":"guidelines/spacing-scale.card.html","group":"Spacing","viewport":"700x150","subtitle":"Common rungs — dense, off-grid","name":"Scale"},{"path":"guidelines/type-families.card.html","group":"Type","viewport":"700x170","subtitle":"Geist (UI) + Geist Mono (numeric)","name":"Families"},{"path":"guidelines/type-reading.card.html","group":"Type","viewport":"700x150","subtitle":"Transcript reads at 1.85 line-height","name":"Reading"},{"path":"guidelines/type-scale.card.html","group":"Type","viewport":"700x230","subtitle":"9.5px labels → 16.5px headings","name":"Scale"}],"templates":[],"hasThumbnailHtml":false,"globalCssPaths":["tokens/base.css","tokens/fonts.css","tokens/colors.css","tokens/typography.css","tokens/spacing.css","tokens/radii.css","tokens/elevation.css","tokens/effects.css","styles.css"],"tokens":[{"name":"--ease","value":"cubic-bezier(0.4, 0, 0.2, 1)","kind":"other","definedIn":"tokens/effects.css"},{"name":"--dur","value":"0.15s","kind":"other","definedIn":"tokens/base.css"},{"name":"--brand-green","value":"#34b27b","kind":"color","definedIn":"tokens/colors.css"},{"name":"--brand-green-hover","value":"#2d9e6c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--brand-green-active","value":"#27885c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--brand-green-ring","value":"rgba(52, 178, 123, 0.5)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--brand-green-glow","value":"rgba(74, 222, 128, 0.4)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--brand-green-tint","value":"rgba(52, 178, 123, 0.13)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--rec-red","value":"#ef4444","kind":"color","definedIn":"tokens/colors.css"},{"name":"--rec-red-text","value":"#f87171","kind":"font","definedIn":"tokens/colors.css"},{"name":"--rec-amber","value":"#f59e0b","kind":"color","definedIn":"tokens/colors.css"},{"name":"--rec-amber-text","value":"#fbbf24","kind":"font","definedIn":"tokens/colors.css"},{"name":"--background","value":"0 0% 100%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--foreground","value":"20 14.3% 4.1%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--card","value":"0 0% 100%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--card-foreground","value":"20 14.3% 4.1%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--popover","value":"0 0% 100%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--popover-foreground","value":"20 14.3% 4.1%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--primary","value":"24 9.8% 10%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--primary-foreground","value":"60 9.1% 97.8%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--secondary","value":"60 4.8% 95.9%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--secondary-foreground","value":"24 9.8% 10%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--muted","value":"60 4.8% 95.9%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--muted-foreground","value":"25 5.3% 44.7%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--accent","value":"60 4.8% 95.9%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--accent-foreground","value":"24 9.8% 10%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--destructive","value":"0 84.2% 60.2%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--destructive-foreground","value":"60 9.1% 97.8%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--border","value":"20 5.9% 90%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--input","value":"20 5.9% 90%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--ring","value":"20 14.3% 4.1%","kind":"other","definedIn":"tokens/colors.css"},{"name":"--radius","value":"0.5rem","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--shell-0","value":"#050606","kind":"color","definedIn":"tokens/colors.css"},{"name":"--shell-1","value":"#07080a","kind":"color","definedIn":"tokens/colors.css"},{"name":"--shell-2","value":"#08090b","kind":"color","definedIn":"tokens/colors.css"},{"name":"--shell-3","value":"#090a0c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--shell-4","value":"#09090b","kind":"color","definedIn":"tokens/colors.css"},{"name":"--shell-5","value":"#0b0c10","kind":"color","definedIn":"tokens/colors.css"},{"name":"--line-subtle","value":"rgba(255, 255, 255, 0.055)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--line","value":"rgba(255, 255, 255, 0.075)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--line-strong","value":"rgba(255, 255, 255, 0.10)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fill-subtle","value":"rgba(255, 255, 255, 0.032)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fill","value":"rgba(255, 255, 255, 0.045)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fill-hover","value":"rgba(255, 255, 255, 0.075)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--text-hi","value":"#ffffff","kind":"font","definedIn":"tokens/colors.css"},{"name":"--text-1","value":"#e4e4e7","kind":"font","definedIn":"tokens/colors.css"},{"name":"--text-2","value":"#d9e2ee","kind":"font","definedIn":"tokens/colors.css"},{"name":"--text-3","value":"#a1a1aa","kind":"font","definedIn":"tokens/colors.css"},{"name":"--text-4","value":"rgba(255, 255, 255, 0.6)","kind":"font","definedIn":"tokens/colors.css"},{"name":"--text-5","value":"rgba(255, 255, 255, 0.4)","kind":"font","definedIn":"tokens/colors.css"},{"name":"--text-slate-500","value":"#64748b","kind":"font","definedIn":"tokens/colors.css"},{"name":"--color-bg","value":"hsl(var(--background))","kind":"color","definedIn":"tokens/colors.css"},{"name":"--color-fg","value":"hsl(var(--foreground))","kind":"color","definedIn":"tokens/colors.css"},{"name":"--surface-card","value":"hsl(var(--card))","kind":"color","definedIn":"tokens/colors.css"},{"name":"--surface-popover","value":"hsl(var(--popover))","kind":"color","definedIn":"tokens/colors.css"},{"name":"--text-body","value":"hsl(var(--foreground))","kind":"font","definedIn":"tokens/colors.css"},{"name":"--text-muted","value":"hsl(var(--muted-foreground))","kind":"font","definedIn":"tokens/colors.css"},{"name":"--border-default","value":"hsl(var(--border))","kind":"color","definedIn":"tokens/colors.css"},{"name":"--focus-ring","value":"0 0 0 3px rgba(16,185,129,0.32)","kind":"shadow","definedIn":"tokens/elevation.css"},{"name":"--accent-primary","value":"var(--brand-green)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--font-sans","value":"\"Inter\", ui-sans-serif, system-ui, -apple-system,\n\t\t\"Segoe UI\", Roboto, Helvetica, Arial, sans-serif","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-mono","value":"\"IBM Plex Mono\", \"Fira Code\", ui-monospace,\n\t\tSFMono-Regular, Menlo, Consolas, monospace","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-caption-marker","value":"\"Permanent Marker\", cursive","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-caption-hand","value":"\"Caveat\", cursive","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-caption-impact","value":"\"Bebas Neue\", \"Oswald\", sans-serif","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-caption-serif","value":"\"Playfair Display\", Georgia, serif","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-caption-grotesk","value":"\"Space Grotesk\", sans-serif","kind":"font","definedIn":"tokens/typography.css"},{"name":"--fw-regular","value":"400","kind":"other","definedIn":"tokens/typography.css"},{"name":"--fw-medium","value":"500","kind":"other","definedIn":"tokens/typography.css"},{"name":"--fw-semibold","value":"600","kind":"other","definedIn":"tokens/typography.css"},{"name":"--fw-bold","value":"700","kind":"other","definedIn":"tokens/typography.css"},{"name":"--text-9","value":"9px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-10","value":"10px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-11","value":"11px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-12","value":"12px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-13","value":"13px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-sm","value":"14px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-base","value":"16px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-lg","value":"18px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-xl","value":"20px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-2xl","value":"24px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--lh-none","value":"1","kind":"other","definedIn":"tokens/typography.css"},{"name":"--lh-tight","value":"1.15","kind":"other","definedIn":"tokens/typography.css"},{"name":"--lh-snug","value":"1.35","kind":"other","definedIn":"tokens/typography.css"},{"name":"--lh-normal","value":"1.5","kind":"other","definedIn":"tokens/typography.css"},{"name":"--lh-relaxed","value":"1.6","kind":"other","definedIn":"tokens/typography.css"},{"name":"--tracking-tight","value":"-0.01em","kind":"font","definedIn":"tokens/typography.css"},{"name":"--tracking-normal","value":"0","kind":"font","definedIn":"tokens/typography.css"},{"name":"--space-0","value":"0","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-0-5","value":"2px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-1","value":"4px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-1-5","value":"6px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-2","value":"8px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-2-5","value":"10px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-3","value":"12px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-3-5","value":"14px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-4","value":"16px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-5","value":"20px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-6","value":"24px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-8","value":"32px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-10","value":"40px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-12","value":"48px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--radius-sm","value":"6px","kind":"radius","definedIn":"tokens/radii.css"},{"name":"--radius-md","value":"9px","kind":"radius","definedIn":"tokens/radii.css"},{"name":"--radius-lg","value":"11px","kind":"radius","definedIn":"tokens/radii.css"},{"name":"--radius-xl","value":"12px","kind":"radius","definedIn":"tokens/radii.css"},{"name":"--radius-2xl","value":"14px","kind":"radius","definedIn":"tokens/radii.css"},{"name":"--radius-3xl","value":"16px","kind":"radius","definedIn":"tokens/radii.css"},{"name":"--radius-window","value":"24px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-full","value":"9999px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--control-h-xs","value":"28px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--control-h-sm","value":"32px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--control-h-md","value":"36px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--control-h-lg","value":"40px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--icon-xs","value":"11px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--icon-sm","value":"13px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--icon-md","value":"16px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--icon-lg","value":"20px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--rail-width","value":"clamp(286px, 20vw, 352px)","kind":"other","definedIn":"tokens/spacing.css"},{"name":"--workspace-pad","value":"14px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--radius-xs","value":"2px","kind":"radius","definedIn":"tokens/radii.css"},{"name":"--radius-pill","value":"9999px","kind":"radius","definedIn":"tokens/radii.css"},{"name":"--elev-card","value":"inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 10px -4px rgba(0,0,0,0.55)","kind":"shadow","definedIn":"tokens/elevation.css"},{"name":"--elev-pop","value":"0 20px 50px -16px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.05)","kind":"shadow","definedIn":"tokens/elevation.css"},{"name":"--glow-accent","value":"0 2px 10px -3px var(--accent-soft)","kind":"color","definedIn":"tokens/elevation.css"},{"name":"--elev-card","value":"0 1px 2px rgba(15,23,42,0.05), 0 2px 10px -3px rgba(15,23,42,0.08)","kind":"shadow","definedIn":"tokens/elevation.css","scope":"[data-theme=\"light\"]"},{"name":"--elev-pop","value":"0 20px 48px -16px rgba(15,23,42,0.22), 0 4px 12px rgba(15,23,42,0.08)","kind":"shadow","definedIn":"tokens/elevation.css","scope":"[data-theme=\"light\"]"},{"name":"--focus-ring","value":"0 0 0 3px rgba(16,185,129,0.2)","kind":"shadow","definedIn":"tokens/elevation.css","scope":"[data-theme=\"light\"]"},{"name":"--shadow-hud","value":"0 20px 60px rgba(0, 0, 0, 0.42),\n\t\tinset 0 1px 0 rgba(255, 255, 255, 0.06)","kind":"shadow","definedIn":"tokens/effects.css"},{"name":"--shadow-panel","value":"0 24px 70px rgba(0, 0, 0, 0.42),\n\t\tinset 0 1px 0 rgba(255, 255, 255, 0.045)","kind":"shadow","definedIn":"tokens/effects.css"},{"name":"--shadow-popover","value":"0 18px 42px rgba(0, 0, 0, 0.48),\n\t\tinset 0 1px 0 rgba(255, 255, 255, 0.045)","kind":"shadow","definedIn":"tokens/effects.css"},{"name":"--shadow-card","value":"inset 0 1px 0 rgba(255, 255, 255, 0.035)","kind":"shadow","definedIn":"tokens/effects.css"},{"name":"--shadow-card-hover","value":"0 10px 24px rgba(0, 0, 0, 0.22),\n\t\tinset 0 1px 0 rgba(255, 255, 255, 0.04)","kind":"shadow","definedIn":"tokens/effects.css"},{"name":"--shadow-badge","value":"0 6px 14px rgba(0, 0, 0, 0.35)","kind":"shadow","definedIn":"tokens/effects.css"},{"name":"--shadow-inset-hi","value":"inset 0 1px 0 rgba(255, 255, 255, 0.025)","kind":"shadow","definedIn":"tokens/effects.css"},{"name":"--shadow-capture","value":"0 40px 90px rgba(0, 0, 0, 0.45),\n\t\t0 12px 32px rgba(0, 0, 0, 0.35)","kind":"shadow","definedIn":"tokens/effects.css"},{"name":"--glass-blur","value":"blur(24px) saturate(150%)","kind":"other","definedIn":"tokens/effects.css"},{"name":"--glass-blur-strong","value":"blur(24px) saturate(140%)","kind":"other","definedIn":"tokens/effects.css"},{"name":"--glass-shell","value":"linear-gradient(\n\t\t145deg,\n\t\trgba(13, 14, 17, 0.94) 0%,\n\t\trgba(8, 9, 12, 0.9) 100%\n\t)","kind":"other","definedIn":"tokens/effects.css"},{"name":"--glass-hud","value":"rgba(7, 8, 10, 0.9)","kind":"color","definedIn":"tokens/effects.css"},{"name":"--glass-popover","value":"rgba(8, 9, 12, 0.96)","kind":"color","definedIn":"tokens/effects.css"},{"name":"--gradient-workspace","value":"radial-gradient(\n\t\t\tcircle at 18% 0%,\n\t\t\trgba(52, 178, 123, 0.08),\n\t\t\ttransparent 30%\n\t\t),\n\t\tlinear-gradient(180deg, #08090b 0%, #050606 100%)","kind":"other","definedIn":"tokens/effects.css"},{"name":"--gradient-panel","value":"linear-gradient(\n\t\t\t180deg,\n\t\t\trgba(255, 255, 255, 0.035),\n\t\t\trgba(255, 255, 255, 0.012)\n\t\t),\n\t\t#090a0c","kind":"other","definedIn":"tokens/effects.css"},{"name":"--gradient-selected","value":"linear-gradient(\n\t\t145deg,\n\t\trgba(52, 178, 123, 0.13),\n\t\trgba(255, 255, 255, 0.045)\n\t)","kind":"other","definedIn":"tokens/effects.css"},{"name":"--dur-fast","value":"120ms","kind":"other","definedIn":"tokens/effects.css"},{"name":"--dur-base","value":"150ms","kind":"other","definedIn":"tokens/effects.css"},{"name":"--dur-mid","value":"200ms","kind":"other","definedIn":"tokens/effects.css"},{"name":"--dur-slow","value":"300ms","kind":"other","definedIn":"tokens/effects.css"},{"name":"--press-scale","value":"0.95","kind":"other","definedIn":"tokens/effects.css"},{"name":"--ring-focus","value":"0 0 0 2px var(--brand-green-ring)","kind":"color","definedIn":"tokens/effects.css"},{"name":"--ring-slider","value":"0 0 0 4px rgba(52, 178, 123, 0.12)","kind":"shadow","definedIn":"tokens/effects.css"}],"themes":[{"selector":".dark","label":"Dark"},{"selector":"[data-theme=\"light\"]","label":"Light"}],"fonts":[],"brandFonts":[{"family":"Inter","status":"ok","tokens":["--font-sans"],"path":"tokens/typography.css"},{"family":"IBM Plex Mono","status":"ok","tokens":["--font-mono"],"path":"tokens/typography.css"},{"family":"Permanent Marker","status":"ok","tokens":["--font-caption-marker"],"path":"tokens/typography.css"},{"family":"Caveat","status":"ok","tokens":["--font-caption-hand"],"path":"tokens/typography.css"},{"family":"Bebas Neue","status":"ok","tokens":["--font-caption-impact"],"path":"tokens/typography.css"},{"family":"Playfair Display","status":"ok","tokens":["--font-caption-serif"],"path":"tokens/typography.css"},{"family":"Space Grotesk","status":"ok","tokens":["--font-caption-grotesk"],"path":"tokens/typography.css"}],"source":"spa"}diff --git a/design/components/display/Badge.d.ts b/design/components/display/Badge.d.tsnew file mode 100644index 000000000..9a87e3976--- /dev/null+++ b/design/components/display/Badge.d.ts@@ -0,0 +1,15 @@+export interface BadgeProps {+ children?: React.ReactNode;+ /** @default "accent" */+ tone?: 'accent' | 'neutral' | 'danger' | 'warn';+ /** Show a leading status dot. */+ dot?: boolean;+ /** Tinted fill (true) vs bordered outline (false). @default true */+ soft?: boolean;+ /** Geist Mono (true) vs Geist (false). @default true */+ mono?: boolean;+ style?: React.CSSProperties;+}++/** Small status pill — "Saved", "0% context", "High confidence". */+export function Badge(props: BadgeProps): JSX.Element;diff --git a/design/components/display/Badge.jsx b/design/components/display/Badge.jsxnew file mode 100644index 000000000..ae809b149--- /dev/null+++ b/design/components/display/Badge.jsx@@ -0,0 +1,45 @@+import React from 'react';++/**+ * OpenScreen Badge — the small status pill. Optional leading dot.+ * tones: accent (default) · neutral · danger · warn. `soft` uses the+ * tinted fill (default); pass soft={false} for a bordered outline.+ */+export function Badge({+ children,+ tone = 'accent',+ dot = false,+ soft = true,+ mono = true,+ style = {},+}) {+ const map = {+ accent: { fg: 'var(--accent)', bg: 'var(--accent-soft)', bd: 'var(--accent-border)', dot: 'var(--accent)' },+ neutral: { fg: 'var(--muted)', bg: 'var(--surface-2)', bd: 'var(--border)', dot: 'var(--muted)' },+ danger: { fg: 'var(--danger)', bg: 'var(--danger-soft)', bd: 'var(--danger)', dot: 'var(--danger)' },+ warn: { fg: 'var(--annotation)', bg: 'var(--annotation-wash)', bd: 'var(--annotation)', dot: 'var(--annotation)' },+ };+ const c = map[tone] || map.accent;+ return (+ <span+ style={{+ display: 'inline-flex',+ alignItems: 'center',+ gap: 5,+ padding: dot ? '3px 9px 3px 7px' : '3px 9px',+ borderRadius: 9999,+ background: soft ? c.bg : 'transparent',+ border: soft ? 'none' : `1px solid ${c.bd}`,+ color: c.fg,+ fontFamily: mono ? 'var(--font-mono)' : 'var(--font-display)',+ fontSize: mono ? 9.5 : 11.5,+ fontWeight: 600,+ whiteSpace: 'nowrap',+ ...style,+ }}+ >+ {dot && <span style={{ width: 4, height: 4, borderRadius: '50%', background: c.dot }} />}+ {children}+ </span>+ );+}diff --git a/design/components/display/Badge.prompt.md b/design/components/display/Badge.prompt.mdnew file mode 100644index 000000000..6fa2a6abb--- /dev/null+++ b/design/components/display/Badge.prompt.md@@ -0,0 +1,9 @@+**Badge** — status pill. Used for save state, context %, confidence, "Not generated yet". Defaults to a soft emerald mono pill with an optional pulsing-style dot.++```jsx+<Badge dot>Saved</Badge>+<Badge tone="accent" soft={false} dot>High confidence</Badge>+<Badge tone="neutral" mono={false}>Not generated yet</Badge>+```++- `mono` on by default — most badges carry numbers/status codes. Turn off for sentence-case labels.diff --git a/design/components/display/Card.d.ts b/design/components/display/Card.d.tsnew file mode 100644index 000000000..e294f8044--- /dev/null+++ b/design/components/display/Card.d.ts@@ -0,0 +1,20 @@+import React from 'react';++export interface CardProps {+ children?: React.ReactNode;+ /** Optional bordered header title. */+ title?: React.ReactNode;+ /** Node pinned to the right of the header. */+ headerRight?: React.ReactNode;+ /** Resting card vs floating popover shadow. @default "card" */+ elevation?: 'card' | 'pop';+ /** Fill surface level 0–2. @default 1 */+ level?: 0 | 1 | 2;+ radius?: number;+ padding?: number;+ style?: React.CSSProperties;+ bodyStyle?: React.CSSProperties;+}++/** Flat bordered surface container. */+export function Card(props: CardProps): JSX.Element;diff --git a/design/components/display/Card.jsx b/design/components/display/Card.jsxnew file mode 100644index 000000000..44a506550--- /dev/null+++ b/design/components/display/Card.jsx@@ -0,0 +1,44 @@+import React from 'react';++/**+ * OpenScreen Card — the flat bordered surface container. `elevation`+ * "card" (resting) or "pop" (floating). `level` picks the fill surface.+ * Optional `title` renders a bordered header.+ */+export function Card({+ children,+ title = null,+ headerRight = null,+ elevation = 'card',+ level = 1,+ radius = 14,+ padding = 14,+ style = {},+ bodyStyle = {},+}) {+ const fills = { 0: 'var(--surface)', 1: 'var(--surface-1)', 2: 'var(--surface-2)' };+ return (+ <div+ style={{+ border: '1px solid var(--border)',+ borderRadius: radius,+ background: fills[level] || fills[1],+ boxShadow: elevation === 'pop' ? 'var(--elev-pop)' : 'var(--elev-card)',+ overflow: 'hidden',+ ...style,+ }}+ >+ {title && (+ <div style={{+ display: 'flex', alignItems: 'center', gap: 8,+ padding: '11px 13px 10px',+ borderBottom: '1px solid var(--border-soft)',+ }}>+ <span style={{ fontSize: 12, fontWeight: 600, color: 'var(--fg)', letterSpacing: '-0.01em' }}>{title}</span>+ {headerRight && <span style={{ marginLeft: 'auto' }}>{headerRight}</span>}+ </div>+ )}+ <div style={{ padding, ...bodyStyle }}>{children}</div>+ </div>+ );+}diff --git a/design/components/display/Card.prompt.md b/design/components/display/Card.prompt.mdnew file mode 100644index 000000000..a7a37272f--- /dev/null+++ b/design/components/display/Card.prompt.md@@ -0,0 +1,8 @@+**Card** — the generic bordered container behind setting rows, popovers, and panels. Use `elevation="pop"` for anything that floats over the stage (inspector, menus), `card` for resting content.++```jsx+<Card title="Proposed cuts" headerRight={<Badge dot>High</Badge>}>…</Card>+<Card elevation="pop" level={1} radius={16} padding={0}>…</Card>+```++- `level` maps to `--surface` / `--surface-1` / `--surface-2`. Nested containers should round less than their parent.diff --git a/design/components/display/Chip.d.ts b/design/components/display/Chip.d.tsnew file mode 100644index 000000000..b53da258c--- /dev/null+++ b/design/components/display/Chip.d.ts@@ -0,0 +1,12 @@+import React from 'react';++export interface ChipProps {+ children?: React.ReactNode;+ /** Leading icon (rendered in accent). */+ icon?: React.ReactNode;+ onClick?: (e: React.MouseEvent) => void;+ style?: React.CSSProperties;+}++/** Rounded quick-action / filter pill with hover wash. */+export function Chip(props: ChipProps): JSX.Element;diff --git a/design/components/display/Chip.jsx b/design/components/display/Chip.jsxnew file mode 100644index 000000000..670e6d3cf--- /dev/null+++ b/design/components/display/Chip.jsx@@ -0,0 +1,38 @@+import React from 'react';++/**+ * OpenScreen Chip — rounded action/filter pill with optional leading+ * icon. Used for the quick-action row above the composer. Hover gives+ * an accent wash + border.+ */+export function Chip({ children, icon = null, onClick, style = {} }) {+ const [hover, setHover] = React.useState(false);+ return (+ <button+ type="button"+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ flex: '0 0 auto',+ display: 'inline-flex',+ alignItems: 'center',+ gap: 6,+ padding: '6px 11px',+ borderRadius: 9999,+ background: hover ? 'var(--accent-wash)' : 'var(--surface-1)',+ border: `1px solid ${hover ? 'var(--accent-border)' : 'var(--border)'}`,+ color: hover ? 'var(--fg)' : 'var(--fg-2)',+ fontFamily: 'var(--font-display)',+ fontSize: 11.5,+ fontWeight: 500,+ cursor: 'pointer',+ whiteSpace: 'nowrap',+ ...style,+ }}+ >+ {icon && <span style={{ color: 'var(--accent)', display: 'inline-flex' }}>{icon}</span>}+ {children}+ </button>+ );+}diff --git a/design/components/display/Chip.prompt.md b/design/components/display/Chip.prompt.mdnew file mode 100644index 000000000..63f4a51a2--- /dev/null+++ b/design/components/display/Chip.prompt.md@@ -0,0 +1,8 @@+**Chip** — tappable rounded pill, typically in a horizontal scroll row of suggested actions above the composer.++```jsx+<Chip icon={<ArrowRightIcon/>} onClick={fill}>Remove silences</Chip>+<Chip icon={<ArrowRightIcon/>}>Tighten pacing</Chip>+```++- Rests on `--surface-1`; hover fills `--accent-wash` with an accent-tinted border and the leading arrow in emerald.diff --git a/design/components/display/ProgressBar.d.ts b/design/components/display/ProgressBar.d.tsnew file mode 100644index 000000000..8273fa581--- /dev/null+++ b/design/components/display/ProgressBar.d.ts@@ -0,0 +1,12 @@+export interface ProgressBarProps {+ /** 0–100. */+ value: number;+ /** Track height in px. @default 3 */+ height?: number;+ /** Emerald gradient fill vs flat accent. @default true */+ gradient?: boolean;+ style?: React.CSSProperties;+}++/** Thin determinate progress track (recipe steps, generic progress). */+export function ProgressBar(props: ProgressBarProps): JSX.Element;diff --git a/design/components/display/ProgressBar.jsx b/design/components/display/ProgressBar.jsxnew file mode 100644index 000000000..26cc7fcec--- /dev/null+++ b/design/components/display/ProgressBar.jsx@@ -0,0 +1,19 @@+import React from 'react';++/**+ * OpenScreen ProgressBar — thin track with an emerald (or gradient)+ * fill. Used for the recipe step progress and generic determinate+ * progress. Height defaults to the 3px recipe bar.+ */+export function ProgressBar({ value = 0, height = 3, gradient = true, style = {} }) {+ const pct = Math.max(0, Math.min(100, value));+ return (+ <div style={{ height, background: 'var(--surface-3)', position: 'relative', borderRadius: height / 2, overflow: 'hidden', ...style }}>+ <div style={{+ position: 'absolute', left: 0, top: 0, bottom: 0,+ width: `${pct}%`,+ background: gradient ? 'linear-gradient(90deg, var(--brand-lo), var(--brand))' : 'var(--accent)',+ }} />+ </div>+ );+}diff --git a/design/components/display/ProgressBar.prompt.md b/design/components/display/ProgressBar.prompt.mdnew file mode 100644index 000000000..3a3686a85--- /dev/null+++ b/design/components/display/ProgressBar.prompt.md@@ -0,0 +1,6 @@+**ProgressBar** — thin determinate bar. Default 3px with an emerald gradient, matching the recipe-progress strip under the agent header.++```jsx+<ProgressBar value={60} />+<ProgressBar value={40} height={5} gradient={false} />+```diff --git a/design/components/display/display.card.html b/design/components/display/display.card.htmlnew file mode 100644index 000000000..df22c869d--- /dev/null+++ b/design/components/display/display.card.html@@ -0,0 +1,58 @@+<!-- @dsCard group="Components" viewport="700x300" subtitle="Badge · Chip · Card · ProgressBar" name="Display" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../../styles.css">+<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>+<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>+<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>+<script src="https://unpkg.com/lucide@latest"></script>+<script src="../../_ds_bundle.js"></script>+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:22px;}+ #root{display:flex;flex-direction:column;gap:18px;}+ .grp{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}+ .cap{font-family:var(--font-mono);font-size:9.5px;letter-spacing:0.08em;color:var(--meta);width:100%;}+</style></head>+<body>+<div id="root"></div>+<script type="text/babel">+ function pick(name){ for(const k in window){ try{ const v=window[k]; if(v&&typeof v==='object'&&typeof v[name]==='function') return v[name]; }catch(e){} } return ()=>null; }+ const Badge=pick('Badge'), Chip=pick('Chip'), Card=pick('Card'), ProgressBar=pick('ProgressBar');+ const I=(n,s=11)=><i data-lucide={n} style={{width:s,height:s}}></i>;+ function Demo(){+ React.useEffect(()=>{ window.lucide && window.lucide.createIcons(); });+ return (+ <React.Fragment>+ <div className="grp"><span className="cap">BADGE</span>+ <Badge dot>Saved</Badge>+ <Badge dot>0% context</Badge>+ <Badge soft={false} dot>High confidence</Badge>+ <Badge tone="neutral" mono={false}>Not generated yet</Badge>+ <Badge tone="danger" dot>3 skips</Badge>+ </div>+ <div className="grp"><span className="cap">CHIP</span>+ <Chip icon={I('arrow-right')}>Remove silences</Chip>+ <Chip icon={I('arrow-right')}>Tighten pacing</Chip>+ <Chip icon={I('arrow-right')}>Add captions</Chip>+ </div>+ <div className="grp"><span className="cap">PROGRESSBAR</span>+ <div style={{width:220}}><ProgressBar value={60}/></div>+ <span style={{fontFamily:'var(--font-mono)',fontSize:10.5,color:'var(--muted)'}}>3/5</span>+ </div>+ <div className="grp"><span className="cap">CARD</span>+ <div style={{width:260}}>+ <Card title="Proposed cuts" headerRight={<Badge soft={false} dot>High</Badge>}>+ <div style={{fontSize:12,color:'var(--fg-2)'}}>3 silences over 600ms found in track 1.</div>+ </Card>+ </div>+ <div style={{width:200}}>+ <Card elevation="pop" level={1}>+ <div style={{fontSize:12,color:'var(--fg-2)'}}>Floating popover surface.</div>+ </Card>+ </div>+ </div>+ </React.Fragment>+ );+ }+ ReactDOM.createRoot(document.getElementById('root')).render(<Demo/>);+</script>+</body></html>diff --git a/design/components/editor/ChatBubble.d.ts b/design/components/editor/ChatBubble.d.tsnew file mode 100644index 000000000..96c50b3de--- /dev/null+++ b/design/components/editor/ChatBubble.d.ts@@ -0,0 +1,14 @@+import React from 'react';++export interface ChatBubbleProps {+ /** @default "assistant" */+ role?: 'assistant' | 'user' | 'system';+ author?: string;+ time?: string;+ /** Avatar glyph for assistant role. */+ avatar?: React.ReactNode;+ children?: React.ReactNode;+}++/** One row in the agent conversation (assistant / user / system). */+export function ChatBubble(props: ChatBubbleProps): JSX.Element;diff --git a/design/components/editor/ChatBubble.jsx b/design/components/editor/ChatBubble.jsxnew file mode 100644index 000000000..7d0959a03--- /dev/null+++ b/design/components/editor/ChatBubble.jsx@@ -0,0 +1,54 @@+import React from 'react';++/**+ * OpenScreen ChatBubble — a single agent-conversation row. Handles the+ * three roles: assistant (avatar + left bubble, meta header), user+ * (right, emerald-tinted), system (centered pill).+ */+export function ChatBubble({ role = 'assistant', author, time, children, avatar = null }) {+ if (role === 'system') {+ return (+ <div style={{ display: 'flex', justifyContent: 'center' }}>+ <div style={{ maxWidth: '94%', padding: '6px 13px', borderRadius: 9999, background: 'var(--surface-1)', border: '1px solid var(--border-soft)', color: 'var(--muted)', fontSize: 11.5 }}>+ {children}+ </div>+ </div>+ );+ }+ if (role === 'user') {+ return (+ <div style={{ display: 'flex', justifyContent: 'flex-end' }}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 6, alignItems: 'flex-end', maxWidth: '86%' }}>+ {(author || time) && (+ <div style={{ display: 'flex', alignItems: 'baseline', gap: 8, padding: '0 2px' }}>+ <span style={{ fontSize: 11.5, fontWeight: 600, color: 'var(--fg)', letterSpacing: '-0.01em' }}>{author}</span>+ {time && <span style={{ fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--meta)' }}>{time}</span>}+ </div>+ )}+ <div style={{ padding: '10px 14px', borderRadius: '15px 5px 15px 15px', background: 'var(--accent-soft)', border: '1px solid var(--accent-border)', color: 'var(--fg)', fontSize: 13, lineHeight: 1.55 }}>+ {children}+ </div>+ </div>+ </div>+ );+ }+ // assistant+ return (+ <div style={{ display: 'flex', gap: 10, alignItems: 'flex-start' }}>+ <span aria-hidden="true" style={{ width: 26, height: 26, borderRadius: 8, background: 'var(--surface-2)', border: '1px solid var(--border)', flexShrink: 0, marginTop: 2, display: 'grid', placeItems: 'center', color: 'var(--accent)' }}>+ {avatar}+ </span>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 6, minWidth: 0, maxWidth: '86%' }}>+ {(author || time) && (+ <div style={{ display: 'flex', alignItems: 'baseline', gap: 8, padding: '0 2px' }}>+ <span style={{ fontSize: 11.5, fontWeight: 600, color: 'var(--fg)', letterSpacing: '-0.01em' }}>{author}</span>+ {time && <span style={{ fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--meta)' }}>{time}</span>}+ </div>+ )}+ <div style={{ padding: '11px 14px', borderRadius: '5px 15px 15px 15px', background: 'var(--surface)', border: '1px solid var(--border)', color: 'var(--fg-2)', fontSize: 13, lineHeight: 1.55, boxShadow: 'var(--elev-card)' }}>+ {children}+ </div>+ </div>+ </div>+ );+}diff --git a/design/components/editor/ChatBubble.prompt.md b/design/components/editor/ChatBubble.prompt.mdnew file mode 100644index 000000000..ded1604d2--- /dev/null+++ b/design/components/editor/ChatBubble.prompt.md@@ -0,0 +1,10 @@+**ChatBubble** — one message in the OpenScreen Agent panel.++```jsx+<ChatBubble role="user" author="YOU">Clean up the intro please.</ChatBubble>+<ChatBubble role="assistant" author="OpenScreen" time="10:41" avatar={<BotGlyph/>}>On it — scanning track 1…</ChatBubble>+<ChatBubble role="system">Applied 3 cuts</ChatBubble>+```++- Assistant bubbles have a distinctive asymmetric radius (`5px 15px 15px 15px`) + avatar; user bubbles mirror it in emerald-soft.+- For an attached proposal, render a `ProposalCard` as the bubble's child or directly after it.diff --git a/design/components/editor/FacetRailButton.d.ts b/design/components/editor/FacetRailButton.d.tsnew file mode 100644index 000000000..5c17a5494--- /dev/null+++ b/design/components/editor/FacetRailButton.d.ts@@ -0,0 +1,12 @@+import React from 'react';++export interface FacetRailButtonProps {+ active?: boolean;+ title?: string;+ onClick?: () => void;+ children?: React.ReactNode;+ style?: React.CSSProperties;+}++/** Icon button in the vertical inspector facet rail. */+export function FacetRailButton(props: FacetRailButtonProps): JSX.Element;diff --git a/design/components/editor/FacetRailButton.jsx b/design/components/editor/FacetRailButton.jsxnew file mode 100644index 000000000..9490d85f0--- /dev/null+++ b/design/components/editor/FacetRailButton.jsx@@ -0,0 +1,26 @@+import React from 'react';++/**+ * OpenScreen FacetRailButton — an icon button in the vertical facet+ * rail beside the inspector. Active facet gets the emerald-soft fill.+ */+export function FacetRailButton({ active = false, title, onClick, children, style = {} }) {+ const [hover, setHover] = React.useState(false);+ let color = active ? 'var(--accent)' : 'var(--muted)';+ let background = active ? 'var(--accent-soft)' : 'transparent';+ if (!active && hover) { color = 'var(--fg)'; background = 'var(--surface-3)'; }+ return (+ <button+ type="button"+ title={title}+ aria-label={title}+ aria-pressed={active}+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{ width: 40, height: 40, display: 'grid', placeItems: 'center', border: 0, borderRadius: 11, background, color, cursor: 'pointer', ...style }}+ >+ {children}+ </button>+ );+}diff --git a/design/components/editor/FacetRailButton.prompt.md b/design/components/editor/FacetRailButton.prompt.mdnew file mode 100644index 000000000..9840925c6--- /dev/null+++ b/design/components/editor/FacetRailButton.prompt.md@@ -0,0 +1,7 @@+**FacetRailButton** — one icon in the vertical rail that switches the floating inspector's facet (Background, Effects, Layout, Cursor, Captions, Chapters, Transcript, Crop).++```jsx+<FacetRailButton title="Background" active={facet==='bg'} onClick={()=>setFacet('bg')}><ImageIcon/></FacetRailButton>+```++- 40×40, radius 11. Active facet = emerald-soft fill; hover steps to `--surface-3`.diff --git a/design/components/editor/MediaCard.d.ts b/design/components/editor/MediaCard.d.tsnew file mode 100644index 000000000..2e886c7d9--- /dev/null+++ b/design/components/editor/MediaCard.d.ts@@ -0,0 +1,17 @@+export interface MediaCardProps {+ name: string;+ duration: string;+ size: string;+ /** Thumbnail gradient stops. */+ from?: string;+ to?: string;+ selected?: boolean;+ draggable?: boolean;+ onClick?: () => void;+ onDragStart?: (e: React.DragEvent) => void;+ onDragEnd?: (e: React.DragEvent) => void;+ style?: React.CSSProperties;+}++/** A draggable clip tile in the media library grid. */+export function MediaCard(props: MediaCardProps): JSX.Element;diff --git a/design/components/editor/MediaCard.jsx b/design/components/editor/MediaCard.jsxnew file mode 100644index 000000000..68a0508ad--- /dev/null+++ b/design/components/editor/MediaCard.jsx@@ -0,0 +1,52 @@+import React from 'react';++/**+ * OpenScreen MediaCard — a clip tile in the media library. Gradient+ * thumbnail with a film-strip glyph, a drag-handle affordance, and a+ * name/duration/size footer. Selected → 1.5px emerald border.+ */+export function MediaCard({+ name,+ duration,+ size,+ from = '#10b981',+ to = '#0d986a',+ selected = false,+ draggable = true,+ onClick,+ onDragStart,+ onDragEnd,+ style = {},+}) {+ return (+ <button+ draggable={draggable}+ onClick={onClick}+ onDragStart={onDragStart}+ onDragEnd={onDragEnd}+ style={{+ display: 'flex', flexDirection: 'column', padding: 0,+ border: `1.5px solid ${selected ? 'var(--accent)' : 'var(--border)'}`,+ borderRadius: 12, background: 'var(--surface)', overflow: 'hidden',+ cursor: 'grab', textAlign: 'left', ...style,+ }}+ >+ <div style={{ position: 'relative', height: 84, display: 'grid', placeItems: 'center', background: `linear-gradient(135deg, ${from}, ${to})` }}>+ <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.85)" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"><rect x="2.5" y="4" width="19" height="16" rx="2" /><path d="M7 4v16M17 4v16M2.5 9h4.5M2.5 15h4.5M17 9h4.5M17 15h4.5" /></svg>+ <span aria-hidden="true" style={{ position: 'absolute', top: 7, left: 7, width: 22, height: 22, display: 'grid', placeItems: 'center', borderRadius: 6, background: 'rgba(8,10,13,0.45)', backdropFilter: 'blur(6px)' }}>+ <svg width="12" height="12" viewBox="0 0 24 24" fill="rgba(255,255,255,0.9)"><circle cx="9" cy="6" r="1.6" /><circle cx="15" cy="6" r="1.6" /><circle cx="9" cy="12" r="1.6" /><circle cx="15" cy="12" r="1.6" /><circle cx="9" cy="18" r="1.6" /><circle cx="15" cy="18" r="1.6" /></svg>+ </span>+ </div>+ <div style={{ display: 'flex', alignItems: 'center', gap: 7, padding: '10px 12px' }}>+ {selected && <span style={{ width: 6, height: 6, borderRadius: '50%', background: 'var(--accent)', flexShrink: 0 }} />}+ <div style={{ minWidth: 0, flex: 1 }}>+ <div style={{ fontSize: 12.5, fontWeight: 600, color: 'var(--fg)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{name}</div>+ <div style={{ display: 'flex', justifyContent: 'space-between', gap: 8 }}>+ <span style={{ fontFamily: 'var(--font-mono)', fontSize: 10.5, color: 'var(--muted)' }}>{duration}</span>+ <span style={{ fontFamily: 'var(--font-mono)', fontSize: 10.5, color: 'var(--meta)' }}>{size}</span>+ </div>+ </div>+ </div>+ </button>+ );+}diff --git a/design/components/editor/MediaCard.prompt.md b/design/components/editor/MediaCard.prompt.mdnew file mode 100644index 000000000..1f56d4be3--- /dev/null+++ b/design/components/editor/MediaCard.prompt.md@@ -0,0 +1,8 @@+**MediaCard** — a clip in the media-library grid. Gradient thumbnail (stands in for a real frame), film-strip glyph, drag handle, mono duration/size footer.++```jsx+<MediaCard name="demo-n8n-as-code-1.mp4" duration="0:02:34.7" size="110 MB"+ from="#10b981" to="#0d986a" selected onClick={select} onDragStart={…} />+```++- Selected state = 1.5px emerald border + a dot before the name. Cards are draggable onto the timeline.diff --git a/design/components/editor/ProposalCard.d.ts b/design/components/editor/ProposalCard.d.tsnew file mode 100644index 000000000..1a6ee0aef--- /dev/null+++ b/design/components/editor/ProposalCard.d.ts@@ -0,0 +1,23 @@+export interface ProposalItem {+ /** Time range, e.g. "0:31.0 – 0:37.3". */+ range: string;+ /** Removed duration, e.g. "6.3s". */+ dur: string;+}++export interface ProposalCardProps {+ title?: string;+ /** Total removed, shown as −{total} in the header. */+ total?: string;+ /** @default "High confidence" */+ confidence?: string;+ items: ProposalItem[];+ rationale?: string;+ /** Primary button label. @default "Apply" */+ applyLabel?: string;+ onApply?: () => void;+ onReview?: () => void;+}++/** The agent's proposed-cuts card (header + range rows + actions + rationale). */+export function ProposalCard(props: ProposalCardProps): JSX.Element;diff --git a/design/components/editor/ProposalCard.jsx b/design/components/editor/ProposalCard.jsxnew file mode 100644index 000000000..f8320a9dd--- /dev/null+++ b/design/components/editor/ProposalCard.jsx@@ -0,0 +1,49 @@+import React from 'react';++/**+ * OpenScreen ProposalCard — the agent's "Proposed cuts" card: a header+ * with total + confidence badge, a list of time-range rows with striped+ * clip chips, an apply/review action row, and a rationale footnote.+ */+export function ProposalCard({+ title = 'Proposed cuts',+ total,+ confidence = 'High confidence',+ items = [],+ rationale,+ applyLabel = 'Apply',+ onApply,+ onReview,+}) {+ return (+ <div style={{ border: '1px solid var(--border)', borderRadius: 14, background: 'var(--surface-1)', overflow: 'hidden', boxShadow: 'var(--elev-card)' }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '11px 13px 10px', borderBottom: '1px solid var(--border-soft)' }}>+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" style={{ color: 'var(--accent)' }}><path d="M20 6 9 17l-5-5" /></svg>+ <span style={{ fontSize: 12, fontWeight: 600, color: 'var(--fg)', letterSpacing: '-0.01em' }}>{title}</span>+ {total != null && <span style={{ fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--meta)' }}>−{total}</span>}+ <span style={{ marginLeft: 'auto', display: 'inline-flex', alignItems: 'center', gap: 5, padding: '3px 8px', borderRadius: 9999, background: 'var(--accent-soft)', color: 'var(--accent)', fontFamily: 'var(--font-mono)', fontSize: 9.5, fontWeight: 600, border: '1px solid var(--accent-border)' }}>+ <span style={{ width: 4, height: 4, borderRadius: '50%', background: 'var(--accent)' }} />{confidence}+ </span>+ </div>+ <div style={{ display: 'flex', flexDirection: 'column' }}>+ {items.map((it, i) => (+ <div key={i} style={{ display: 'flex', alignItems: 'center', gap: 10, padding: '8px 13px', borderBottom: '1px solid var(--border-soft)' }}>+ <span aria-hidden="true" style={{ width: 16, height: 9, borderRadius: 2, flexShrink: 0, background: 'var(--accent-wash)', backgroundImage: 'repeating-linear-gradient(45deg, var(--accent-stripe) 0, var(--accent-stripe) 3px, transparent 3px, transparent 6px)' }} />+ <span style={{ fontFamily: 'var(--font-mono)', fontSize: 11.5, color: 'var(--fg)' }}>{it.range}</span>+ <span style={{ marginLeft: 'auto', fontFamily: 'var(--font-mono)', fontSize: 10.5, color: 'var(--muted)' }}>−{it.dur}</span>+ </div>+ ))}+ </div>+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '11px 13px', background: 'var(--surface)' }}>+ <button onClick={onApply} style={{ flex: 1, padding: '8px 12px', borderRadius: 10, border: '1px solid var(--accent)', background: 'var(--accent)', color: '#fff', fontSize: 12, fontWeight: 600, cursor: 'pointer', boxShadow: '0 2px 8px -3px var(--accent-soft)' }}>{applyLabel}</button>+ <button onClick={onReview} style={{ padding: '8px 12px', borderRadius: 10, border: '1px solid var(--border)', background: 'var(--surface-1)', color: 'var(--fg-2)', fontSize: 12, fontWeight: 500, cursor: 'pointer' }}>Review each</button>+ </div>+ {rationale && (+ <div style={{ display: 'flex', alignItems: 'flex-start', gap: 6, padding: '0 13px 12px' }}>+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" style={{ color: 'var(--meta)', flexShrink: 0, marginTop: 1 }}><circle cx="12" cy="12" r="10" /><path d="M12 16v-4" /><path d="M12 8h.01" /></svg>+ <span style={{ fontSize: 10.5, color: 'var(--meta)', lineHeight: 1.45 }}>{rationale}</span>+ </div>+ )}+ </div>+ );+}diff --git a/design/components/editor/ProposalCard.prompt.md b/design/components/editor/ProposalCard.prompt.mdnew file mode 100644index 000000000..ec7828047--- /dev/null+++ b/design/components/editor/ProposalCard.prompt.md@@ -0,0 +1,15 @@+**ProposalCard** — the distinctive agent output: a reviewable set of proposed edits attached to an assistant message.++```jsx+<ProposalCard+ total="0:44.1"+ confidence="High confidence"+ applyLabel="Apply 3 cuts"+ items={[{range:'0:31.0 – 0:37.3', dur:'6.3s'}, …]}+ rationale="Detected silences over 600ms and 4 filler words."+ onApply={apply} onReview={review}+/>+```++- Time ranges + durations are always Geist Mono. Each row has a striped emerald clip chip.+- Render it as a child of, or immediately after, an assistant `ChatBubble`.diff --git a/design/components/editor/TimelinePill.d.ts b/design/components/editor/TimelinePill.d.tsnew file mode 100644index 000000000..1c1620d99--- /dev/null+++ b/design/components/editor/TimelinePill.d.ts@@ -0,0 +1,16 @@+import React from 'react';++export interface TimelinePillProps {+ /** Lane accent. @default "accent" */+ tone?: 'accent' | 'annotation' | 'speed' | 'danger';+ icon?: React.ReactNode;+ children?: React.ReactNode;+ /** Left offset as % of the lane. */+ leftPct?: number;+ /** Width as % of the lane; omit for content-sized (tag) mode. */+ widthPct?: number | null;+ style?: React.CSSProperties;+}++/** Labelled marker on a timeline lane (annotation / speed / skip / zoom). */+export function TimelinePill(props: TimelinePillProps): JSX.Element;diff --git a/design/components/editor/TimelinePill.jsx b/design/components/editor/TimelinePill.jsxnew file mode 100644index 000000000..91d4572f0--- /dev/null+++ b/design/components/editor/TimelinePill.jsx@@ -0,0 +1,51 @@+import React from 'react';++/**+ * OpenScreen TimelinePill — a labelled marker on a timeline lane.+ * tone maps to the four lane accents. `fixedWidth` (tag mode) sizes to+ * content; otherwise it spans a range via left/width percentages.+ */+export function TimelinePill({+ tone = 'accent',+ icon = null,+ children,+ leftPct = 0,+ widthPct = null,+ style = {},+}) {+ const map = {+ accent: { c: 'var(--accent)', w: 'var(--accent-soft)' },+ annotation: { c: 'var(--annotation)', w: 'var(--annotation-wash)' },+ speed: { c: 'var(--speed)', w: 'var(--speed-wash)' },+ danger: { c: 'var(--danger)', w: 'var(--danger-soft)' },+ };+ const t = map[tone] || map.accent;+ return (+ <span+ style={{+ position: 'absolute',+ top: 1,+ left: `${leftPct}%`,+ width: widthPct == null ? 'max-content' : `${widthPct}%`,+ height: 22,+ display: 'inline-flex',+ alignItems: 'center',+ gap: 5,+ padding: '0 9px 0 7px',+ borderRadius: 6,+ border: `1.5px solid ${t.c}`,+ background: t.w,+ color: tone === 'danger' ? 'var(--danger)' : 'var(--fg)',+ fontSize: 11,+ fontWeight: 600,+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ boxSizing: 'border-box',+ ...style,+ }}+ >+ {icon}+ {children}+ </span>+ );+}diff --git a/design/components/editor/TimelinePill.prompt.md b/design/components/editor/TimelinePill.prompt.mdnew file mode 100644index 000000000..589b48c38--- /dev/null+++ b/design/components/editor/TimelinePill.prompt.md@@ -0,0 +1,11 @@+**TimelinePill** — a marker on a timeline lane. Position it inside a `position:relative` lane track via `leftPct`/`widthPct`.++```jsx+<div style={{position:'relative', height:24}}>+ <TimelinePill tone="speed" leftPct={19} widthPct={5} icon={<ClockIcon/>}>1.5×</TimelinePill>+ <TimelinePill tone="danger" leftPct={10} widthPct={10}>0:37.3</TimelinePill>+ <TimelinePill tone="annotation" leftPct={40} icon={<CommentIcon/>}>New annotation</TimelinePill>+</div>+```++- `accent`=zoom, `annotation`=amber comment, `speed`=orange ramp, `danger`=red skip/cut.diff --git a/design/components/editor/editor.card.html b/design/components/editor/editor.card.htmlnew file mode 100644index 000000000..017c424c8--- /dev/null+++ b/design/components/editor/editor.card.html@@ -0,0 +1,73 @@+<!-- @dsCard group="Components" viewport="700x520" subtitle="ChatBubble · ProposalCard · MediaCard · TimelinePill · FacetRailButton" name="Editor" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../../styles.css">+<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>+<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>+<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>+<script src="https://unpkg.com/lucide@latest"></script>+<script src="../../_ds_bundle.js"></script>+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:22px;}+ #root{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start;}+ .cap{font-family:var(--font-mono);font-size:9.5px;letter-spacing:0.08em;color:var(--meta);margin-bottom:10px;}+ .stack{display:flex;flex-direction:column;gap:16px;}+</style></head>+<body>+<div id="root"></div>+<script type="text/babel">+ function pick(name){ for(const k in window){ try{ const v=window[k]; if(v&&typeof v==='object'&&typeof v[name]==='function') return v[name]; }catch(e){} } return ()=>null; }+ const ChatBubble=pick('ChatBubble'), ProposalCard=pick('ProposalCard'), MediaCard=pick('MediaCard'),+ TimelinePill=pick('TimelinePill'), FacetRailButton=pick('FacetRailButton');+ const I=(n,s=17)=><i data-lucide={n} style={{width:s,height:s}}></i>;+ const Bot=<svg width="15" height="15" viewBox="0 0 16 16" shapeRendering="crispEdges"><rect x="7" y="0" width="2" height="2" fill="currentColor"/><rect x="3" y="3" width="10" height="9" rx="1" fill="none" stroke="currentColor" strokeWidth="1.4"/><rect x="5" y="6" width="2" height="2" fill="currentColor"/><rect x="9" y="6" width="2" height="2" fill="currentColor"/><rect x="5.5" y="9.5" width="5" height="1.4" fill="currentColor"/></svg>;++ function Demo(){+ const [facet,setFacet]=React.useState('bg');+ React.useEffect(()=>{ window.lucide && window.lucide.createIcons(); });+ const facets=[['bg','image'],['fx','sliders-horizontal'],['layout','layout'],['cursor','mouse-pointer-2'],['cap','captions'],['crop','crop']];+ return (+ <React.Fragment>+ <div>+ <div className="cap">CHATBUBBLE + PROPOSALCARD</div>+ <div className="stack">+ <ChatBubble role="user" author="YOU">Clean up the intro — lots of dead air while I read my notes.</ChatBubble>+ <ChatBubble role="assistant" author="OpenScreen" time="10:41" avatar={Bot}>+ On it — scanning track 1 for silences and filler words. I'll flag anything over 600ms.+ </ChatBubble>+ <ProposalCard total="0:44.1" applyLabel="Apply 3 cuts"+ items={[{range:'0:31.0 – 0:37.3',dur:'6.3s'},{range:'1:23.0 – 1:27.0',dur:'4.0s'},{range:'1:35.0 – 2:34.0',dur:'30.3s'}]}+ rationale="Detected 3 silences over 600ms and 4 filler words across the intro."/>+ <ChatBubble role="system">Applied 3 cuts · saved</ChatBubble>+ </div>+ <div className="cap" style={{marginTop:22}}>TIMELINEPILL</div>+ <div style={{display:'flex',flexDirection:'column',gap:6}}>+ <div style={{position:'relative',height:24,borderRadius:6,background:'var(--surface-1)'}}>+ <TimelinePill tone="annotation" leftPct={8} icon={I('message-square',11)}>New annotation</TimelinePill>+ <TimelinePill tone="annotation" leftPct={55} icon={I('message-square',11)}>New annotation</TimelinePill>+ </div>+ <div style={{position:'relative',height:24,borderRadius:6,background:'var(--surface-1)'}}>+ <TimelinePill tone="speed" leftPct={18} widthPct={12} icon={I('clock',11)}>1.5×</TimelinePill>+ <TimelinePill tone="danger" leftPct={40} widthPct={18}>0:37.3</TimelinePill>+ <TimelinePill tone="accent" leftPct={70} widthPct={10} icon={I('zoom-in',11)}>1.8×</TimelinePill>+ </div>+ </div>+ </div>++ <div>+ <div className="cap">MEDIACARD</div>+ <MediaCard name="demo-n8n-as-code-1.mp4" duration="0:02:34.7" size="110 MB" from="#10b981" to="#0d986a" selected/>+ <div style={{height:14}}></div>+ <MediaCard name="intro-take-3.mp4" duration="0:00:41.2" size="24 MB" from="#fbbf24" to="#f59e0b"/>+ <div className="cap" style={{marginTop:22}}>FACETRAILBUTTON</div>+ <div style={{display:'inline-flex',flexDirection:'column',gap:4,padding:6,background:'var(--surface-1)',border:'1px solid var(--border)',borderRadius:14,boxShadow:'var(--elev-pop)'}}>+ {facets.map(([k,ic])=>(+ <FacetRailButton key={k} title={k} active={facet===k} onClick={()=>setFacet(k)}>{I(ic)}</FacetRailButton>+ ))}+ </div>+ </div>+ </React.Fragment>+ );+ }+ ReactDOM.createRoot(document.getElementById('root')).render(<Demo/>);+</script>+</body></html>diff --git a/design/components/forms/Button.d.ts b/design/components/forms/Button.d.tsnew file mode 100644index 000000000..70be2a332--- /dev/null+++ b/design/components/forms/Button.d.ts@@ -0,0 +1,24 @@+import React from 'react';++export interface ButtonProps {+ /** Visual weight. @default "primary" */+ variant?: 'primary' | 'secondary' | 'ghost';+ /** @default "md" */+ size?: 'sm' | 'md' | 'lg';+ /** Leading icon node (Lucide SVG). */+ icon?: React.ReactNode;+ /** Trailing icon node (e.g. chevron). */+ iconRight?: React.ReactNode;+ disabled?: boolean;+ fullWidth?: boolean;+ onClick?: (e: React.MouseEvent) => void;+ children?: React.ReactNode;+ style?: React.CSSProperties;+}++/**+ * The primary text-action button.+ *+ * @startingPoint section="Forms" subtitle="Primary / secondary / ghost text button" viewport="700x120"+ */+export function Button(props: ButtonProps): JSX.Element;diff --git a/design/components/forms/Button.jsx b/design/components/forms/Button.jsxnew file mode 100644index 000000000..da7b521d4--- /dev/null+++ b/design/components/forms/Button.jsx@@ -0,0 +1,88 @@+import React from 'react';++/**+ * OpenScreen Button — the primary text action.+ * variants: primary (emerald fill) · secondary (surface + border) · ghost (transparent).+ * Icons are passed as children alongside a label, or use IconButton for icon-only.+ */+export function Button({+ variant = 'primary',+ size = 'md',+ icon = null,+ iconRight = null,+ disabled = false,+ fullWidth = false,+ onClick,+ children,+ style = {},+ ...rest+}) {+ const sizes = {+ sm: { h: 28, px: 10, fs: 12, gap: 6, radius: 8 },+ md: { h: 32, px: 14, fs: 13, gap: 7, radius: 9 },+ lg: { h: 40, px: 18, fs: 14, gap: 9, radius: 12 },+ };+ const s = sizes[size] || sizes.md;++ const variants = {+ primary: {+ background: 'var(--accent)',+ color: '#fff',+ border: '1px solid var(--accent)',+ boxShadow: '0 2px 10px -3px var(--accent-soft)',+ },+ secondary: {+ background: 'var(--surface-1)',+ color: 'var(--fg-2)',+ border: '1px solid var(--border)',+ },+ ghost: {+ background: 'transparent',+ color: 'var(--fg-2)',+ border: '1px solid transparent',+ },+ };+ const v = variants[variant] || variants.primary;++ const base = {+ display: 'inline-flex',+ alignItems: 'center',+ justifyContent: 'center',+ gap: s.gap,+ height: s.h,+ padding: `0 ${s.px}px`,+ borderRadius: s.radius,+ fontFamily: 'var(--font-display)',+ fontSize: s.fs,+ fontWeight: 600,+ lineHeight: 1,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.45 : 1,+ whiteSpace: 'nowrap',+ ...v,+ ...style,+ };++ const [hover, setHover] = React.useState(false);+ const hoverStyle = !disabled && hover ? (+ variant === 'primary' ? { background: 'var(--brand-lo)' }+ : variant === 'secondary' ? { borderColor: 'var(--border-hi)', color: 'var(--fg)' }+ : { background: 'var(--surface-1)', borderColor: 'var(--border)' }+ ) : {};++ return (+ <button+ type="button"+ disabled={disabled}+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{ ...base, ...hoverStyle, width: fullWidth ? '100%' : undefined }}+ {...rest}+ >+ {icon}+ {children}+ {iconRight}+ </button>+ );+}diff --git a/design/components/forms/Button.prompt.md b/design/components/forms/Button.prompt.mdnew file mode 100644index 000000000..629f7083d--- /dev/null+++ b/design/components/forms/Button.prompt.md@@ -0,0 +1,11 @@+**Button** — the primary text action. Use `primary` for the one main action in a view (Export, Apply cuts, Send), `secondary` for adjacent choices (Review each), `ghost` for low-emphasis toolbar/topbar actions.++```jsx+<Button variant="primary" icon={<ExportIcon/>}>Export</Button>+<Button variant="secondary">Review each</Button>+<Button variant="ghost" size="sm">demo2</Button>+```++- Primary is emerald with a soft accent glow; darkens to `--brand-lo` on hover.+- Keep labels short imperative verbs. No emoji.+- Icon-only actions → use `IconButton` instead.diff --git a/design/components/forms/IconButton.d.ts b/design/components/forms/IconButton.d.tsnew file mode 100644index 000000000..d6edd79fa--- /dev/null+++ b/design/components/forms/IconButton.d.ts@@ -0,0 +1,20 @@+import React from 'react';++export interface IconButtonProps {+ /** Square size in px. @default 32 */+ size?: number;+ /** Selected / toggled-on state → emerald-soft fill. */+ active?: boolean;+ /** @default "default" */+ tone?: 'default' | 'danger';+ disabled?: boolean;+ /** Used for both title and aria-label. */+ title?: string;+ onClick?: (e: React.MouseEvent) => void;+ /** The icon (Lucide SVG at 24-viewbox, sized ~55% of the button). */+ children?: React.ReactNode;+ style?: React.CSSProperties;+}++/** Square icon-only button — toolbars, topbar, floating chrome. */+export function IconButton(props: IconButtonProps): JSX.Element;diff --git a/design/components/forms/IconButton.jsx b/design/components/forms/IconButton.jsxnew file mode 100644index 000000000..46421a7e8--- /dev/null+++ b/design/components/forms/IconButton.jsx@@ -0,0 +1,59 @@+import React from 'react';++/**+ * OpenScreen IconButton — square, icon-only. The workhorse of toolbars,+ * the topbar, and floating chrome. Ghost by default; `active` gives the+ * emerald-soft selected look; `tone="danger"` for destructive.+ */+export function IconButton({+ size = 32,+ active = false,+ tone = 'default',+ disabled = false,+ title,+ onClick,+ children,+ style = {},+ ...rest+}) {+ const [hover, setHover] = React.useState(false);++ const rest_ = { default: 'var(--muted)', danger: 'var(--muted)' }[tone];+ let color = active ? 'var(--accent)' : rest_;+ let background = active ? 'var(--accent-soft)' : 'transparent';++ if (!disabled && hover && !active) {+ if (tone === 'danger') { color = 'var(--danger)'; background = 'var(--danger-soft)'; }+ else { color = 'var(--fg)'; background = 'var(--surface-2)'; }+ }++ return (+ <button+ type="button"+ title={title}+ aria-label={title}+ aria-pressed={active || undefined}+ disabled={disabled}+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ width: size,+ height: size,+ display: 'grid',+ placeItems: 'center',+ borderRadius: size <= 28 ? 6 : 9,+ border: 0,+ background,+ color,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.4 : 1,+ flexShrink: 0,+ ...style,+ }}+ {...rest}+ >+ {children}+ </button>+ );+}diff --git a/design/components/forms/IconButton.prompt.md b/design/components/forms/IconButton.prompt.mdnew file mode 100644index 000000000..86fbce1c5--- /dev/null+++ b/design/components/forms/IconButton.prompt.md@@ -0,0 +1,11 @@+**IconButton** — icon-only square button, ghost by default. The most-used control in the editor chrome (topbar, timeline toolbar, panel close, transport).++```jsx+<IconButton title="Settings"><SettingsIcon/></IconButton>+<IconButton title="Loop" active={loopOn} onClick={toggleLoop}><LoopIcon/></IconButton>+<IconButton title="Delete clip" tone="danger"><TrashIcon/></IconButton>+```++- Rests at `--muted`, hovers to `--fg` on `--surface-2`.+- `active` = emerald-soft fill for toggled tools.+- Sizes: 26–28px inside dense toolbars (radius 6), 30–34px in the topbar/transport (radius 9). Always pass a `title`.diff --git a/design/components/forms/SegmentedControl.d.ts b/design/components/forms/SegmentedControl.d.tsnew file mode 100644index 000000000..20f43a9da--- /dev/null+++ b/design/components/forms/SegmentedControl.d.ts@@ -0,0 +1,18 @@+export interface SegmentOption {+ value: string;+ label: string;+}++export interface SegmentedControlProps {+ /** Segments — plain strings or {value,label} objects. */+ options: (string | SegmentOption)[];+ /** Currently selected value. */+ value: string;+ onChange?: (value: string) => void;+ /** @default "md" */+ size?: 'sm' | 'md';+ style?: React.CSSProperties;+}++/** Pill-in-a-trough tab switcher (stage mode, background tabs, source). */+export function SegmentedControl(props: SegmentedControlProps): JSX.Element;diff --git a/design/components/forms/SegmentedControl.jsx b/design/components/forms/SegmentedControl.jsxnew file mode 100644index 000000000..852654c11--- /dev/null+++ b/design/components/forms/SegmentedControl.jsx@@ -0,0 +1,64 @@+import React from 'react';++/**+ * OpenScreen SegmentedControl — the pill-in-a-trough tab switcher.+ * Used for Media/Edit/Rec stage modes, Image/Color/Gradient background+ * tabs, Screen/Window source, etc. The active segment gets a raised+ * surface chip; inactive segments are muted text.+ */+export function SegmentedControl({+ options = [],+ value,+ onChange,+ size = 'md',+ style = {},+}) {+ const s = size === 'sm'+ ? { pad: '6px 8px', fs: 11.5, trough: 2, radius: 8, inner: 6 }+ : { pad: '7px 14px', fs: 12.5, trough: 3, radius: 11, inner: 8 };++ return (+ <div+ role="tablist"+ style={{+ display: 'inline-flex',+ alignItems: 'center',+ gap: 2,+ padding: s.trough,+ background: 'var(--surface-1)',+ border: '1px solid var(--border)',+ borderRadius: s.radius,+ ...style,+ }}+ >+ {options.map((opt) => {+ const val = typeof opt === 'string' ? opt : opt.value;+ const label = typeof opt === 'string' ? opt : opt.label;+ const active = val === value;+ return (+ <button+ key={val}+ role="tab"+ aria-selected={active}+ onClick={() => onChange && onChange(val)}+ style={{+ padding: s.pad,+ border: 0,+ borderRadius: s.inner,+ cursor: 'pointer',+ fontFamily: 'var(--font-display)',+ fontSize: s.fs,+ fontWeight: 600,+ lineHeight: 1,+ background: active ? 'var(--surface-hi)' : 'transparent',+ color: active ? 'var(--fg-emphasis)' : 'var(--muted)',+ boxShadow: active ? 'var(--elev-card)' : 'none',+ }}+ >+ {label}+ </button>+ );+ })}+ </div>+ );+}diff --git a/design/components/forms/SegmentedControl.prompt.md b/design/components/forms/SegmentedControl.prompt.mdnew file mode 100644index 000000000..7a473a426--- /dev/null+++ b/design/components/forms/SegmentedControl.prompt.md@@ -0,0 +1,9 @@+**SegmentedControl** — mutually-exclusive tab switcher in a recessed trough. Use for 2–4 short peer choices that swap the view (stage Media/Edit/Rec, background Image/Color/Gradient, source Screen/Window).++```jsx+<SegmentedControl options={['Media','Edit','Rec']} value={mode} onChange={setMode} />+<SegmentedControl size="sm" options={['Screen','Window']} value={src} onChange={setSrc} />+```++- Active segment = raised `--surface-hi` chip with `--elev-card`; inactive = `--muted` text.+- `md` for topbar-scale switches, `sm` for inside panels/menus.diff --git a/design/components/forms/Select.d.ts b/design/components/forms/Select.d.tsnew file mode 100644index 000000000..bb0be31cf--- /dev/null+++ b/design/components/forms/Select.d.ts@@ -0,0 +1,13 @@+export interface SelectOption { value: string; label: string; }++export interface SelectProps {+ options: (string | SelectOption)[];+ value: string;+ onChange?: (value: string) => void;+ /** @default true */+ fullWidth?: boolean;+ style?: React.CSSProperties;+}++/** Native <select> styled for OpenScreen (surface-2 fill, 36px tall). */+export function Select(props: SelectProps): JSX.Element;diff --git a/design/components/forms/Select.jsx b/design/components/forms/Select.jsxnew file mode 100644index 000000000..939954272--- /dev/null+++ b/design/components/forms/Select.jsx@@ -0,0 +1,43 @@+import React from 'react';++/**+ * OpenScreen Select — native dropdown styled to match. Used for+ * caption style, layout preset, transcript language, etc.+ */+export function Select({+ options = [],+ value,+ onChange,+ fullWidth = true,+ style = {},+ ...rest+}) {+ return (+ <select+ value={value}+ onChange={(e) => onChange && onChange(e.target.value)}+ style={{+ width: fullWidth ? '100%' : undefined,+ height: 36,+ padding: '0 11px',+ borderRadius: 10,+ border: '1px solid var(--border)',+ background: 'var(--surface-2)',+ color: 'var(--fg-2)',+ fontFamily: 'var(--font-display)',+ fontSize: 12.5,+ fontWeight: 500,+ outline: 'none',+ cursor: 'pointer',+ ...style,+ }}+ {...rest}+ >+ {options.map((opt) => {+ const val = typeof opt === 'string' ? opt : opt.value;+ const label = typeof opt === 'string' ? opt : opt.label;+ return <option key={val} value={val}>{label}</option>;+ })}+ </select>+ );+}diff --git a/design/components/forms/Select.prompt.md b/design/components/forms/Select.prompt.mdnew file mode 100644index 000000000..686ef86aa--- /dev/null+++ b/design/components/forms/Select.prompt.md@@ -0,0 +1,7 @@+**Select** — styled native dropdown for a longer list of exclusive options where a segmented control would be too wide (caption style, layout preset, language).++```jsx+<Select options={['Bold Center','Minimal Bottom','Karaoke','Boxed']} value={style} onChange={setStyle} />+```++- 36px tall, `--surface-2` fill, radius 10. Pair with a mono uppercase eyebrow label above it.diff --git a/design/components/forms/Slider.d.ts b/design/components/forms/Slider.d.tsnew file mode 100644index 000000000..ce57f5656--- /dev/null+++ b/design/components/forms/Slider.d.ts@@ -0,0 +1,17 @@+export interface SliderProps {+ /** Label shown top-left of the card. */+ label?: string;+ value: number;+ min?: number;+ max?: number;+ step?: number;+ /** Formats the mono value shown top-right, e.g. v => `${v}%`. */+ format?: (v: number) => string | number;+ onChange?: (v: number) => void;+ /** Wrap in the bordered setting card. @default true */+ card?: boolean;+ style?: React.CSSProperties;+}++/** Labelled range slider inside an inspector setting card. */+export function Slider(props: SliderProps): JSX.Element;diff --git a/design/components/forms/Slider.jsx b/design/components/forms/Slider.jsxnew file mode 100644index 000000000..fcab589fd--- /dev/null+++ b/design/components/forms/Slider.jsx@@ -0,0 +1,59 @@+import React from 'react';++/**+ * OpenScreen Slider — the labelled range control inside inspector cards.+ * Renders the whole card: label (left) + mono value in emerald (right)+ * above a filled range track. Pass `card={false}` for a bare track.+ */+export function Slider({+ label,+ value = 0,+ min = 0,+ max = 100,+ step = 1,+ format,+ onChange,+ card = true,+ style = {},+}) {+ const pct = ((value - min) / (max - min)) * 100;+ const trackStyle = {+ width: '100%',+ display: 'block',+ backgroundImage: `linear-gradient(var(--accent),var(--accent)), linear-gradient(var(--surface-3),var(--surface-3))`,+ backgroundSize: `${pct}% 5px, 100% 5px`,+ };+ const display = format ? format(value) : value;++ const input = (+ <input+ type="range"+ min={min}+ max={max}+ step={step}+ value={value}+ onChange={(e) => onChange && onChange(Number(e.target.value))}+ style={trackStyle}+ />+ );++ if (!card) return input;++ return (+ <div+ style={{+ border: '1px solid var(--border)',+ borderRadius: 12,+ background: 'var(--surface)',+ padding: '11px 13px',+ ...style,+ }}+ >+ <div style={{ display: 'flex', alignItems: 'center', marginBottom: 8 }}>+ <span style={{ fontSize: 11.5, fontWeight: 500, color: 'var(--fg-2)' }}>{label}</span>+ <span style={{ fontFamily: 'var(--font-mono)', fontSize: 11, color: 'var(--accent)', marginLeft: 'auto' }}>{display}</span>+ </div>+ {input}+ </div>+ );+}diff --git a/design/components/forms/Slider.prompt.md b/design/components/forms/Slider.prompt.mdnew file mode 100644index 000000000..a135acd3e--- /dev/null+++ b/design/components/forms/Slider.prompt.md@@ -0,0 +1,9 @@+**Slider** — labelled range control. By default renders the full inspector card (label + mono emerald value + filled track). The track uses the global range-slider chrome from `base.css`.++```jsx+<Slider label="Shadow" value={shadow} onChange={setShadow} format={v => `${v}%`} />+<Slider label="Zoom" value={zoom} min={0} max={100} format={v => `${(1+v/50).toFixed(1)}×`} />+```++- Value read-out is always Geist Mono in `--accent`.+- Pass `card={false}` for a bare track (e.g. embedded elsewhere).diff --git a/design/components/forms/Switch.d.ts b/design/components/forms/Switch.d.tsnew file mode 100644index 000000000..0dd8a65ff--- /dev/null+++ b/design/components/forms/Switch.d.ts@@ -0,0 +1,9 @@+export interface SwitchProps {+ checked?: boolean;+ onChange?: (next: boolean) => void;+ disabled?: boolean;+ style?: React.CSSProperties;+}++/** Pill toggle for boolean inspector settings. Emerald when on. */+export function Switch(props: SwitchProps): JSX.Element;diff --git a/design/components/forms/Switch.jsx b/design/components/forms/Switch.jsxnew file mode 100644index 000000000..ee13eb719--- /dev/null+++ b/design/components/forms/Switch.jsx@@ -0,0 +1,47 @@+import React from 'react';++/**+ * OpenScreen Switch — the pill toggle used in inspector setting rows+ * (Blur background, Mirror webcam, Shrink on zoom, Show cursor…).+ * Track fills emerald when on; knob slides right.+ */+export function Switch({ checked = false, onChange, disabled = false, style = {} }) {+ const W = 38, H = 22, KNOB = 16, PAD = 3;+ return (+ <button+ type="button"+ role="switch"+ aria-checked={checked}+ disabled={disabled}+ onClick={() => !disabled && onChange && onChange(!checked)}+ style={{+ position: 'relative',+ width: W,+ height: H,+ flexShrink: 0,+ border: 0,+ borderRadius: 9999,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ background: checked ? 'var(--accent)' : 'var(--surface-3)',+ transition: 'background .18s var(--ease)',+ ...style,+ }}+ >+ <span+ aria-hidden="true"+ style={{+ position: 'absolute',+ top: PAD,+ left: checked ? W - KNOB - PAD : PAD,+ width: KNOB,+ height: KNOB,+ borderRadius: '50%',+ background: '#fff',+ boxShadow: '0 1px 3px rgba(0,0,0,0.35)',+ transition: 'left .18s var(--ease)',+ }}+ />+ </button>+ );+}diff --git a/design/components/forms/Switch.prompt.md b/design/components/forms/Switch.prompt.mdnew file mode 100644index 000000000..d83909e64--- /dev/null+++ b/design/components/forms/Switch.prompt.md@@ -0,0 +1,11 @@+**Switch** — boolean toggle. Lives at the right edge of an inspector setting row (label on the left).++```jsx+<div style={{display:'flex',alignItems:'center',justifyContent:'space-between'}}>+ <span>Blur background</span>+ <Switch checked={blur} onChange={setBlur} />+</div>+```++- Track fills `--accent` when on, `--surface-3` when off; white knob slides.+- For a choice that changes what's on screen but isn't on/off, use SegmentedControl instead.diff --git a/design/components/forms/TextField.d.ts b/design/components/forms/TextField.d.tsnew file mode 100644index 000000000..3864e8fa9--- /dev/null+++ b/design/components/forms/TextField.d.ts@@ -0,0 +1,20 @@+import React from 'react';++export interface TextFieldProps {+ value?: string;+ onChange?: (value: string) => void;+ placeholder?: string;+ /** Render an auto-height textarea instead of an input. */+ multiline?: boolean;+ /** Icon node rendered inside the field (e.g. a search glyph). */+ leadingIcon?: React.ReactNode;+ /** Rows when multiline. @default 2 */+ rows?: number;+ /** Style for the control element. */+ style?: React.CSSProperties;+ /** Style for the bordered wrapper. */+ wrapStyle?: React.CSSProperties;+}++/** Text input / composer — single primitive for both single- and multi-line. */+export function TextField(props: TextFieldProps): JSX.Element;diff --git a/design/components/forms/TextField.jsx b/design/components/forms/TextField.jsxnew file mode 100644index 000000000..1cc629828--- /dev/null+++ b/design/components/forms/TextField.jsx@@ -0,0 +1,69 @@+import React from 'react';++/**+ * OpenScreen TextField — one primitive for both single-line inputs and+ * the multiline composer (same border/fill/radius vocabulary).+ * `multiline` swaps <input> for an auto-height <textarea>.+ * `leadingIcon` renders a search/glyph inside a bordered wrapper.+ */+export function TextField({+ value,+ onChange,+ placeholder,+ multiline = false,+ leadingIcon = null,+ rows = 2,+ style = {},+ wrapStyle = {},+ ...rest+}) {+ const shared = {+ width: '100%',+ minWidth: 0,+ border: 0,+ background: 'transparent',+ fontFamily: 'var(--font-display)',+ fontSize: 13,+ lineHeight: 1.5,+ color: 'var(--fg)',+ outline: 'none',+ resize: 'none',+ };++ const control = multiline ? (+ <textarea+ value={value}+ onChange={(e) => onChange && onChange(e.target.value)}+ placeholder={placeholder}+ rows={rows}+ style={{ ...shared, minHeight: 28, ...style }}+ {...rest}+ />+ ) : (+ <input+ value={value}+ onChange={(e) => onChange && onChange(e.target.value)}+ placeholder={placeholder}+ style={{ ...shared, ...style }}+ {...rest}+ />+ );++ return (+ <div+ style={{+ display: 'flex',+ alignItems: multiline ? 'flex-start' : 'center',+ gap: 10,+ padding: multiline ? '9px 11px' : '10px 14px',+ border: '1px solid var(--border)',+ borderRadius: multiline ? 14 : 10,+ background: 'var(--surface-1)',+ ...wrapStyle,+ }}+ >+ {leadingIcon}+ {control}+ </div>+ );+}diff --git a/design/components/forms/TextField.prompt.md b/design/components/forms/TextField.prompt.mdnew file mode 100644index 000000000..7b136e235--- /dev/null+++ b/design/components/forms/TextField.prompt.md@@ -0,0 +1,8 @@+**TextField** — text entry. One primitive covers the search input (single-line, radius 10, with a leading search icon) and the chat composer (multiline, radius 14). The composer typically has a toolbar row below it (model pill + send) — compose that around the TextField.++```jsx+<TextField leadingIcon={<SearchIcon/>} placeholder="Search media…" value={q} onChange={setQ} />+<TextField multiline placeholder="Describe the edit you want…" value={msg} onChange={setMsg} />+```++- Wrapper carries the border + `--surface-1` fill; the control itself is borderless/transparent.diff --git a/design/components/forms/forms.card.html b/design/components/forms/forms.card.htmlnew file mode 100644index 000000000..6f469756b--- /dev/null+++ b/design/components/forms/forms.card.html@@ -0,0 +1,74 @@+<!-- @dsCard group="Components" viewport="700x430" subtitle="Button · IconButton · SegmentedControl · Switch · Slider · Select · TextField" name="Forms" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../../styles.css">+<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>+<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>+<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>+<script src="https://unpkg.com/lucide@latest"></script>+<script src="../../_ds_bundle.js"></script>+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:22px;}+ #root{display:flex;flex-direction:column;gap:18px;}+ .grp{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}+ .cap{font-family:var(--font-mono);font-size:9.5px;letter-spacing:0.08em;color:var(--meta);width:100%;}+ .col{display:flex;flex-direction:column;gap:12px;width:260px;}+</style></head>+<body>+<div id="root"></div>+<script type="text/babel">+ // Resolve the generated bundle namespace regardless of its name.+ function pick(name){+ for(const k in window){ try{ const v=window[k]; if(v && typeof v==='object' && typeof v[name]==='function') return v[name]; }catch(e){} }+ return () => null;+ }+ const Button = pick('Button'), IconButton = pick('IconButton'),+ SegmentedControl = pick('SegmentedControl'), Switch = pick('Switch'),+ Slider = pick('Slider'), Select = pick('Select'), TextField = pick('TextField');+ const I = (n, s=15) => <i data-lucide={n} style={{width:s,height:s}}></i>;++ function Demo(){+ const [mode,setMode] = React.useState('Edit');+ const [on,setOn] = React.useState(true);+ const [sh,setSh] = React.useState(24);+ const [q,setQ] = React.useState('');+ React.useEffect(()=>{ window.lucide && window.lucide.createIcons(); });+ return (+ <React.Fragment>+ <div className="grp"><span className="cap">BUTTON</span>+ <Button variant="primary" icon={I('download')}>Export</Button>+ <Button variant="secondary">Review each</Button>+ <Button variant="ghost" size="sm" iconRight={I('chevron-down',11)}>demo2</Button>+ <Button variant="primary" disabled>Disabled</Button>+ </div>+ <div className="grp"><span className="cap">ICONBUTTON</span>+ <IconButton title="Settings">{I('settings')}</IconButton>+ <IconButton title="Loop" active>{I('repeat')}</IconButton>+ <IconButton title="Delete" tone="danger">{I('trash-2')}</IconButton>+ <IconButton title="Split" size={28}>{I('scissors',13)}</IconButton>+ </div>+ <div className="grp"><span className="cap">SEGMENTED</span>+ <SegmentedControl options={['Media','Edit','Rec']} value={mode} onChange={setMode} />+ <SegmentedControl size="sm" options={['Screen','Window']} value={mode==='Rec'?'Window':'Screen'} onChange={()=>{}} />+ </div>+ <div className="grp"><span className="cap">SWITCH</span>+ <Switch checked={on} onChange={setOn} />+ <Switch checked={!on} onChange={()=>setOn(!on)} />+ <span style={{fontSize:13,color:'var(--fg-2)'}}>Blur background</span>+ </div>+ <div className="grp">+ <div className="col"><span className="cap">SLIDER</span>+ <Slider label="Shadow" value={sh} onChange={setSh} format={v=>`${v}%`} />+ </div>+ <div className="col"><span className="cap">SELECT</span>+ <Select options={['Bold Center','Minimal Bottom','Karaoke','Boxed']} value="Bold Center" onChange={()=>{}} />+ </div>+ <div className="col"><span className="cap">TEXTFIELD</span>+ <TextField leadingIcon={I('search')} placeholder="Search media…" value={q} onChange={setQ} />+ </div>+ </div>+ </React.Fragment>+ );+ }+ ReactDOM.createRoot(document.getElementById('root')).render(<Demo/>);+</script>+</body></html>diff --git a/design/guidelines/brand-elevation.card.html b/design/guidelines/brand-elevation.card.htmlnew file mode 100644index 000000000..00554187c--- /dev/null+++ b/design/guidelines/brand-elevation.card.html@@ -0,0 +1,13 @@+<!-- @dsCard group="Brand" viewport="700x170" subtitle="Resting card vs floating popover" name="Elevation" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:30px 28px;display:flex;gap:34px;align-items:center;}+ .sw{display:flex;flex-direction:column;gap:12px;align-items:center;}+ .box{width:150px;height:70px;background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius-2xl);display:grid;place-items:center;font-size:11.5px;color:var(--fg-2);}+ .n{font-family:var(--font-mono);font-size:10px;color:var(--meta);}+</style></head>+<body>+ <div class="sw"><div class="box" style="box-shadow:var(--elev-card);">elev-card</div><span class="n">resting cards</span></div>+ <div class="sw"><div class="box" style="box-shadow:var(--elev-pop);">elev-pop</div><span class="n">floating panels · glass</span></div>+</body></html>diff --git a/design/guidelines/brand-logo.card.html b/design/guidelines/brand-logo.card.htmlnew file mode 100644index 000000000..53a983893--- /dev/null+++ b/design/guidelines/brand-logo.card.html@@ -0,0 +1,17 @@+<!-- @dsCard group="Brand" viewport="700x140" subtitle="Icon mark + Geist wordmark lockup" name="Logo" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:26px 24px;display:flex;align-items:center;gap:40px;}+ .lock{display:inline-flex;align-items:center;gap:9px;}+ .lock img{width:26px;height:26px;object-fit:contain;display:block;}+ .word{font-size:18px;font-weight:600;letter-spacing:-0.015em;color:var(--fg-emphasis);}+ .n{font-family:var(--font-mono);font-size:10px;color:var(--meta);}+</style></head>+<body>+ <div style="display:flex;flex-direction:column;gap:12px;">+ <div class="lock"><img src="../assets/logo-icon.png" alt="OpenScreen"><span class="word">OpenScreen</span></div>+ <span class="n">logo-icon.png · Geist 600 · -0.015em</span>+ </div>+ <img src="../assets/logo-icon.png" alt="OpenScreen mark" style="width:48px;height:48px;object-fit:contain;">+</body></html>diff --git a/design/guidelines/brand-motion.card.html b/design/guidelines/brand-motion.card.htmlnew file mode 100644index 000000000..e5a1ce169--- /dev/null+++ b/design/guidelines/brand-motion.card.html@@ -0,0 +1,16 @@+<!-- @dsCard group="Brand" viewport="700x150" subtitle="One easing, 0.15s; record dot pulses" name="Motion" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:24px 22px;display:flex;gap:34px;align-items:center;}+ .sw{display:flex;flex-direction:column;gap:10px;}+ .lab{font-size:11.5px;color:var(--fg-2);font-weight:500;}+ .n{font-family:var(--font-mono);font-size:10px;color:var(--meta);}+ .demo{height:34px;padding:0 16px;display:inline-flex;align-items:center;gap:9px;border-radius:var(--radius-md);background:var(--accent);color:#fff;font-size:12.5px;font-weight:600;cursor:pointer;box-shadow:var(--glow-accent);align-self:flex-start;}+ .demo:hover{background:var(--brand-lo);}+ .dot{width:9px;height:9px;border-radius:50%;background:var(--danger);animation:os-pulse 1.4s ease-in-out infinite;}+</style></head>+<body>+ <div class="sw"><span class="lab">Hover me — 0.15s ease</span><span class="demo">Apply 3 cuts</span><span class="n">cubic-bezier(0.2,0,0,1)</span></div>+ <div class="sw"><span class="lab">Recording pulse</span><span style="display:inline-flex;align-items:center;gap:8px;"><span class="dot"></span><span class="n">os-pulse · 1.4s</span></span></div>+</body></html>diff --git a/design/guidelines/brand-radii.card.html b/design/guidelines/brand-radii.card.htmlnew file mode 100644index 000000000..b237056c5--- /dev/null+++ b/design/guidelines/brand-radii.card.html@@ -0,0 +1,18 @@+<!-- @dsCard group="Brand" viewport="700x170" subtitle="Nested-radius rhythm, 2 → fully round" name="Radii" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:22px 20px;display:flex;gap:16px;flex-wrap:wrap;}+ .sw{display:flex;flex-direction:column;align-items:center;gap:8px;}+ .box{width:64px;height:44px;background:var(--surface-2);border:1px solid var(--border-hi);}+ .n{font-family:var(--font-mono);font-size:10px;color:var(--meta);}+ .lab{font-size:10.5px;color:var(--fg-2);}+</style></head>+<body>+ <div class="sw"><div class="box" style="border-radius:6px;"></div><span class="lab">sm control</span><span class="n">6px</span></div>+ <div class="sw"><div class="box" style="border-radius:9px;"></div><span class="lab">md control</span><span class="n">9px</span></div>+ <div class="sw"><div class="box" style="border-radius:11px;"></div><span class="lab">card / clip</span><span class="n">11px</span></div>+ <div class="sw"><div class="box" style="border-radius:14px;"></div><span class="lab">composer</span><span class="n">14px</span></div>+ <div class="sw"><div class="box" style="border-radius:16px;"></div><span class="lab">panel</span><span class="n">16px</span></div>+ <div class="sw"><div class="box" style="width:80px;border-radius:9999px;"></div><span class="lab">pill</span><span class="n">full</span></div>+</body></html>diff --git a/design/guidelines/colors-brand.card.html b/design/guidelines/colors-brand.card.htmlnew file mode 100644index 000000000..0a2ff8685--- /dev/null+++ b/design/guidelines/colors-brand.card.html@@ -0,0 +1,21 @@+<!-- @dsCard group="Colors" viewport="700x150" subtitle="Emerald — the single brand hue" name="Brand / accent" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:20px;}+ .row{display:flex;gap:12px;flex-wrap:wrap;}+ .sw{display:flex;flex-direction:column;gap:7px;}+ .chip{width:96px;height:52px;border-radius:var(--radius-lg);border:1px solid var(--border-hi);}+ .lab{font-size:11px;color:var(--fg-2);font-weight:500;}+ .hex{font-family:var(--font-mono);font-size:10px;color:var(--meta);}+</style></head>+<body>+ <div class="row">+ <div class="sw"><div class="chip" style="background:var(--accent);"></div><span class="lab">accent / brand</span><span class="hex">#10b981</span></div>+ <div class="sw"><div class="chip" style="background:var(--brand-lo);"></div><span class="lab">brand-lo (hover)</span><span class="hex">#0d986a</span></div>+ <div class="sw"><div class="chip" style="background:var(--accent-soft);"></div><span class="lab">accent-soft</span><span class="hex">14% α</span></div>+ <div class="sw"><div class="chip" style="background:var(--accent-wash);"></div><span class="lab">accent-wash</span><span class="hex">7% α</span></div>+ <div class="sw"><div class="chip" style="background:transparent;border:1px solid var(--accent-border);"></div><span class="lab">accent-border</span><span class="hex">26% α</span></div>+ <div class="sw"><div class="chip" style="background:transparent;box-shadow:var(--focus-ring);"></div><span class="lab">focus / ring</span><span class="hex">32% α</span></div>+ </div>+</body></html>diff --git a/design/guidelines/colors-semantic.card.html b/design/guidelines/colors-semantic.card.htmlnew file mode 100644index 000000000..adb7bdc50--- /dev/null+++ b/design/guidelines/colors-semantic.card.html@@ -0,0 +1,15 @@+<!-- @dsCard group="Colors" viewport="700x150" subtitle="Timeline lanes & status — rationed accents" name="Semantic" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:20px;display:flex;gap:12px;flex-wrap:wrap;}+ .pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px 0 8px;border-radius:var(--radius-sm);font-size:11px;font-weight:600;border:1.5px solid;box-sizing:border-box;}+ .sw{display:flex;flex-direction:column;gap:8px;}+ .hex{font-family:var(--font-mono);font-size:9.5px;color:var(--meta);}+</style></head>+<body>+ <div class="sw"><span class="pill" style="border-color:var(--annotation);background:var(--annotation-wash);">Annotation</span><span class="hex">annotation · #fbbf24</span></div>+ <div class="sw"><span class="pill" style="border-color:var(--speed);background:var(--speed-wash);">1.5×</span><span class="hex">speed · #fb923c</span></div>+ <div class="sw"><span class="pill" style="border-color:var(--danger);background:var(--danger-soft);color:var(--danger);">Skip / cut</span><span class="hex">danger · #f87171</span></div>+ <div class="sw"><span class="pill" style="border-color:var(--accent);background:var(--accent-soft);color:var(--accent);">Zoom 1.8×</span><span class="hex">accent · #10b981</span></div>+</body></html>diff --git a/design/guidelines/colors-surfaces.card.html b/design/guidelines/colors-surfaces.card.htmlnew file mode 100644index 000000000..753f5b667--- /dev/null+++ b/design/guidelines/colors-surfaces.card.html@@ -0,0 +1,22 @@+<!-- @dsCard group="Colors" viewport="700x160" subtitle="Near-black blue-grey, low → high" name="Surfaces & borders" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:20px;}+ .row{display:flex;gap:10px;flex-wrap:wrap;}+ .sw{display:flex;flex-direction:column;gap:7px;}+ .chip{width:84px;height:48px;border-radius:var(--radius-md);border:1px solid var(--border);}+ .lab{font-size:10.5px;color:var(--fg-2);font-weight:500;}+ .hex{font-family:var(--font-mono);font-size:9.5px;color:var(--meta);}+</style></head>+<body>+ <div class="row">+ <div class="sw"><div class="chip" style="background:var(--bg);"></div><span class="lab">bg</span><span class="hex">#080a0d</span></div>+ <div class="sw"><div class="chip" style="background:var(--surface);"></div><span class="lab">surface</span><span class="hex">#0f1216</span></div>+ <div class="sw"><div class="chip" style="background:var(--surface-1);"></div><span class="lab">surface-1</span><span class="hex">#14171c</span></div>+ <div class="sw"><div class="chip" style="background:var(--surface-2);"></div><span class="lab">surface-2</span><span class="hex">#1a1e25</span></div>+ <div class="sw"><div class="chip" style="background:var(--surface-3);"></div><span class="lab">surface-3</span><span class="hex">#232830</span></div>+ <div class="sw"><div class="chip" style="background:var(--surface-hi);"></div><span class="lab">surface-hi</span><span class="hex">#2b313b</span></div>+ <div class="sw"><div class="chip" style="background:var(--surface);border-color:var(--border-hi);"></div><span class="lab">border-hi</span><span class="hex">#333a45</span></div>+ </div>+</body></html>diff --git a/design/guidelines/colors-text.card.html b/design/guidelines/colors-text.card.htmlnew file mode 100644index 000000000..dbecdbdfd--- /dev/null+++ b/design/guidelines/colors-text.card.html@@ -0,0 +1,16 @@+<!-- @dsCard group="Colors" viewport="700x140" subtitle="Primary → meta text ramp" name="Text" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);font-family:var(--font-display);padding:22px 20px;display:flex;flex-direction:column;gap:11px;}+ .line{display:flex;align-items:baseline;gap:14px;}+ .t{font-size:17px;font-weight:600;letter-spacing:-0.01em;min-width:280px;}+ .n{font-family:var(--font-mono);font-size:10.5px;color:var(--meta);}+</style></head>+<body>+ <div class="line"><span class="t" style="color:var(--fg-emphasis);">fg-emphasis — headings, key numbers</span><span class="n">#ffffff</span></div>+ <div class="line"><span class="t" style="color:var(--fg-2);">fg-2 — strong body, labels</span><span class="n">#f5f7fa</span></div>+ <div class="line"><span class="t" style="color:var(--fg);">fg — primary body</span><span class="n">#e9edf3</span></div>+ <div class="line"><span class="t" style="color:var(--muted);">muted — secondary, inactive icons</span><span class="n">#828c99</span></div>+ <div class="line"><span class="t" style="color:var(--meta);">meta — timestamps, mono meta</span><span class="n">#565f6b</span></div>+</body></html>diff --git a/design/guidelines/spacing-scale.card.html b/design/guidelines/spacing-scale.card.htmlnew file mode 100644index 000000000..8148b60c9--- /dev/null+++ b/design/guidelines/spacing-scale.card.html@@ -0,0 +1,19 @@+<!-- @dsCard group="Spacing" viewport="700x150" subtitle="Common rungs — dense, off-grid" name="Scale" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:22px 20px;display:flex;align-items:flex-end;gap:16px;}+ .sw{display:flex;flex-direction:column;align-items:center;gap:8px;}+ .bar{background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:var(--radius-xs);}+ .n{font-family:var(--font-mono);font-size:10px;color:var(--meta);}+</style></head>+<body>+ <div class="sw"><div class="bar" style="width:4px;height:4px;"></div><span class="n">2</span></div>+ <div class="sw"><div class="bar" style="width:8px;height:8px;"></div><span class="n">8</span></div>+ <div class="sw"><div class="bar" style="width:12px;height:12px;"></div><span class="n">12</span></div>+ <div class="sw"><div class="bar" style="width:16px;height:16px;"></div><span class="n">16</span></div>+ <div class="sw"><div class="bar" style="width:20px;height:20px;"></div><span class="n">20</span></div>+ <div class="sw"><div class="bar" style="width:24px;height:24px;"></div><span class="n">24</span></div>+ <div class="sw"><div class="bar" style="width:32px;height:32px;"></div><span class="n">32</span></div>+ <div class="sw"><div class="bar" style="width:48px;height:48px;"></div><span class="n">48</span></div>+</body></html>diff --git a/design/guidelines/type-families.card.html b/design/guidelines/type-families.card.htmlnew file mode 100644index 000000000..e3d242156--- /dev/null+++ b/design/guidelines/type-families.card.html@@ -0,0 +1,13 @@+<!-- @dsCard group="Type" viewport="700x170" subtitle="Geist (UI) + Geist Mono (numeric)" name="Families" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:22px 20px;display:flex;flex-direction:column;gap:18px;}+ .eyebrow{font-family:var(--font-mono);font-size:9.5px;letter-spacing:0.08em;color:var(--meta);margin-bottom:8px;}+ .big{font-size:30px;font-weight:600;letter-spacing:-0.015em;color:var(--fg-emphasis);}+ .mono{font-family:var(--font-mono);font-size:24px;font-weight:500;color:var(--fg-2);letter-spacing:0.01em;}+</style></head>+<body>+ <div><div class="eyebrow">GEIST · DISPLAY / UI</div><div class="big">Record. Clean up. Ship it.</div></div>+ <div><div class="eyebrow">GEIST MONO · NUMERIC / TECHNICAL</div><div class="mono">0:00.0 / 7:03.6 · 1920 × 1080 · 60 fps</div></div>+</body></html>diff --git a/design/guidelines/type-reading.card.html b/design/guidelines/type-reading.card.htmlnew file mode 100644index 000000000..4ec85dd0f--- /dev/null+++ b/design/guidelines/type-reading.card.html@@ -0,0 +1,12 @@+<!-- @dsCard group="Type" viewport="700x150" subtitle="Transcript reads at 1.85 line-height" name="Reading" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:22px 24px;}+ p{margin:0;font-size:12.5px;line-height:1.85;color:var(--fg-2);max-width:640px;}+ .cut{color:var(--danger);}+ .pause{display:inline-block;padding:1px 6px;margin:0 2px;background:var(--danger-soft);color:var(--danger);border-radius:6px;font-family:var(--font-mono);font-size:11px;}+</style></head>+<body>+ <p>Okay so let's see how to install and run n8n as code from scratch, <span class="cut">so you will need VS Code that you can download here okay</span> once it's downloaded you can install it <span class="pause">(0.8s)</span> then open the editor and search for the extension.</p>+</body></html>diff --git a/design/guidelines/type-scale.card.html b/design/guidelines/type-scale.card.htmlnew file mode 100644index 000000000..0b66a658c--- /dev/null+++ b/design/guidelines/type-scale.card.html@@ -0,0 +1,16 @@+<!-- @dsCard group="Type" viewport="700x230" subtitle="9.5px labels → 16.5px headings" name="Scale" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+ body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-display);padding:20px;display:flex;flex-direction:column;gap:12px;}+ .line{display:flex;align-items:baseline;gap:14px;}+ .n{font-family:var(--font-mono);font-size:10px;color:var(--meta);min-width:120px;}+</style></head>+<body>+ <div class="line"><span class="n">lg · 16.5 / 700</span><span style="font-size:16.5px;font-weight:700;letter-spacing:-0.01em;color:var(--fg-emphasis);">Source Transcript</span></div>+ <div class="line"><span class="n">md · 14 / 600</span><span style="font-size:14px;font-weight:600;letter-spacing:-0.01em;color:var(--fg-emphasis);">Background</span></div>+ <div class="line"><span class="n">base · 13 / 500</span><span style="font-size:13px;font-weight:500;color:var(--fg-2);">Describe the edit you want…</span></div>+ <div class="line"><span class="n">sm · 11.5 / 500</span><span style="font-size:11.5px;font-weight:500;color:var(--fg-2);">Remove silences</span></div>+ <div class="line"><span class="n">xs · 10.5 mono</span><span style="font-family:var(--font-mono);font-size:10.5px;color:var(--muted);">−0:37.3</span></div>+ <div class="line"><span class="n">xxs · 9.5 label</span><span style="font-family:var(--font-mono);font-size:9.5px;letter-spacing:0.08em;color:var(--meta);">ASPECT RATIO</span></div>+</body></html>diff --git a/design/public/rec-button.png b/design/public/rec-button.pngnew file mode 100644index 000000000..5e6bbc4fbBinary files /dev/null and b/design/public/rec-button.png differdiff --git a/design/readme.md b/design/readme.mdnew file mode 100644index 000000000..2e1390c73--- /dev/null+++ b/design/readme.md@@ -0,0 +1,140 @@+# OpenScreen Design System++A design system extracted from the **OpenScreen Editor** — an AI-native screen-recording+studio and video editor. Think "Screen Studio meets a chat agent": you record your screen,+and an AI agent cleans up dead air, filler words, and pacing, proposes cuts you approve, and+lets you restyle backgrounds, cursors, captions, zoom and layout from a floating inspector.++The UI is a **dark-first, dense, pro-tool** aesthetic built around a single emerald brand hue,+Geist / Geist Mono type, glassy floating panels, and a rich multi-lane timeline.++## Source++Everything here was extracted from a single ground-truth file in this project:++- **`OpenScreen Editor v4.dc.html`** — the most complete build of the editor (chat + stage + timeline).++No external codebase or Figma was provided; the `.dc.html` source IS the ground truth. Related+earlier files (`OpenScreen Editor v2/v3`, `OpenScreen Recording Widget`) were left out of scope+per the request (v4 only).++> **Sharing:** to let others in your org use this, open the **Share** menu and set the file+> type to **Design System**.++---++## CONTENT FUNDAMENTALS++How OpenScreen writes.++- **Voice:** calm, competent, first-person-as-agent. The agent says *"On it — scanning track 1+ for silences now"* and *"I'll flag anything over 600ms."* It narrates what it's doing in plain+ language, commits to specifics (numbers, thresholds), and never gushes.+- **Person:** the product speaks as **"I"** (the agent) to **"you"** (the creator). UI chrome is+ impersonal and imperative: *"Describe the edit you want…"*, *"Drag a clip onto the timeline+ below to add it"*, *"Add chapter at playhead"*.+- **Casing:** Sentence case for body, buttons, and helper text. **UPPERCASE mono micro-labels**+ for section eyebrows only — `RECIPE`, `PRESET`, `STYLE`, `ASPECT RATIO`, `CAMERA SHAPE`.+- **Numbers are first-class.** Timecodes (`0:00.0`), durations (`−0:37.3`), resolutions+ (`1920 × 1080 · 60 fps`), counts (`3/5`, `−3 cuts`), percentages (`0% context`) all render in+ **Geist Mono**. Precision reads as trustworthy.+- **Verbs for actions:** "Apply 3 cuts", "Review each", "Regenerate", "Import media", "Export".+ Short, concrete, no "Click here".+- **Tone of empty states:** factual, lightly guiding — *"Not generated yet — pick a language and+ click regenerate."*, *"No annotations yet"*.+- **No emoji.** None anywhere in the product. Don't introduce them.+- **Filenames stay real:** `demo-n8n-as-code-1.mp4`, `recording-1783066227227.mp4` — never+ "My Video.mp4".++---++## VISUAL FOUNDATIONS++- **Theme:** dark-first. A light theme exists and is a full token swap (`data-theme="light"`),+ but dark is the default and the "hero" look. The accent emerald is identical in both themes.+- **Color:** near-black blue-grey surfaces (`#080a0d` → `#2b313b`), a single **emerald** brand+ hue (`#10b981`) used sparingly for primary actions, active states, and focus. Timeline lanes+ add three semantic accents — **amber** annotations, **orange** speed ramps, **red/danger**+ skips & cuts. Color is rationed: most of the UI is greyscale, emerald marks the one thing that+ matters on screen.+- **Type:** Geist for everything UI, Geist Mono for anything numeric/technical. Base 13px. Tight+ negative tracking on headings; wide positive tracking on tiny uppercase labels.+- **Backgrounds:** subtle radial gradient on the app shell (lighter toward top-center). The+ preview stage sits on its own radial vignette. No photographic backgrounds, no patterns, no+ noise/grain. Surfaces are flat fills separated by hairline borders.+- **Borders:** 1px hairlines everywhere (`--border`), with a softer variant for internal dividers+ (`--border-soft`) and a brighter one for hover/handles (`--border-hi`). Selected/active+ controls get a 1.5px emerald border.+- **Elevation:** two levels. Resting cards use a barely-there inset top highlight + soft shadow.+ Floating things (inspector, transport, popover menus) use `--elev-pop` — a deep soft drop+ shadow plus a 1px inner top highlight, reading as glass.+- **Blur / transparency:** floating panels and on-video chrome use `backdrop-filter: blur(12–20px)`+ over semi-transparent dark fills. This is reserved for elements that float **over the video+ stage** (transport, inspector, recording bar, clip labels) — flat panels in the shell do not+ blur.+- **Corner radii:** nested-radius rhythm — small controls 6–9px, cards 11–12px, panels/popovers+ 14–16px, status chips fully round. Containers always round more than what's nested in them.+- **Cards:** flat `--surface`/`--surface-1` fill, 1px border, radius 11–14px, `--elev-card`+ shadow. Setting cards in the inspector pair a label (left) with a mono value in emerald (right)+ above a slider.+- **Motion:** one shared easing `cubic-bezier(0.2,0,0,1)` at **0.15s** on color/border/shadow/+ transform for every interactive element. Sliders scale their thumb 1.14× on hover with an+ emerald halo. The record dot pulses (`os-pulse`, 1.4s). Content fades up 6px (`os-fade`). No+ bounces in chrome, no long durations.+- **Hover:** surfaces step up one level (`transparent → --surface-1/2/3`); ghost icon buttons go+ `--muted → --fg`; primary buttons darken to `--brand-lo`; chips gain an `--accent-wash` fill and+ `--accent-border`.+- **Press/active/selected:** active tabs & tools get an `--accent-soft` fill with `--accent` text;+ selected clips/media get a 1.5px emerald border; toggles slide a knob and fill emerald.+- **Focus:** 3px emerald ring (`--focus-ring`) via `:focus-visible`, no outline.+- **Density:** high. This is a desktop pro tool, not a marketing site. Compact controls+ (26–36px tall), off-grid odd paddings (7/9/11/13px), tight gaps.++---++## ICONOGRAPHY++- **Lucide-style line icons.** Every icon in the product is a stroked SVG at `viewBox="0 0 24 24"`,+ `stroke-width` 1.8–2.4, round caps/joins, `fill:none` (a few small glyphs use solid fill —+ play/pause triangles, cursor arrow, waveform bars). This matches the **Lucide** icon set almost+ exactly, so this system standardises on **Lucide** (`https://unpkg.com/lucide@latest`) as the+ icon source. Component cards link Lucide from CDN.+- Icon sizes: 9–17px inside controls, scaled to the control. Stroke colour is always+ `currentColor` so icons inherit the control's text colour (muted → fg on hover, accent when+ active).+- **No emoji, no icon font, no PNG icons** anywhere. One raster asset only: the logo mark.+- A few icons in the source are hand-tuned (the OpenScreen agent avatar built from `<rect>`s, the+ waveform bars, the cursor arrow). Treat those as bespoke; use Lucide for everything standard.++### Brand mark++- **`assets/logo-icon.png`** — the OpenScreen app icon (22×22 in the topbar). This is the only+ provided brand asset. There is **no wordmark file**; the product sets "OpenScreen" in Geist+ 600, 15px, `-0.015em` tracking next to the icon. Do not redraw or recolour the mark.++---++## Index / manifest++Root:+- `styles.css` — the single entry point consumers link. `@import`s everything below.+- `readme.md` — this file.+- `SKILL.md` — Agent-Skill front-matter wrapper.+- `assets/logo-icon.png` — brand mark.++`tokens/` — CSS custom properties (all reachable from `styles.css`):+- `fonts.css` · `colors.css` · `typography.css` · `spacing.css` · `radii.css` · `elevation.css` · `base.css`++`guidelines/` — foundation specimen cards (Design System tab): colors, type, spacing, radii, elevation, motion.++`components/` — reusable React primitives (see each `*.prompt.md`):+- `forms/` — Button, IconButton, SegmentedControl, Switch, Slider, Select, TextField+- `display/` — Badge, Chip, Card, ProgressBar+- `editor/` — ChatBubble, ProposalCard, MediaCard, TimelinePill, FacetRailButton++`ui_kits/editor/` — high-fidelity recreation of the OpenScreen Editor (chat + stage + timeline).++## Intentional additions++None. The component inventory is exactly what the v4 editor defines. `TextField` merges the+`<input>` and `<textarea>` patterns (identical styling) into one primitive.diff --git a/design/styles.css b/design/styles.cssnew file mode 100644index 000000000..acc4d96c4--- /dev/null+++ b/design/styles.css@@ -0,0 +1,17 @@+/* ============================================================+ OpenScreen Design System — global entry point.+ Consumers link THIS file. It is a manifest of @imports only;+ never add rules here. Everything reachable from these imports+ (tokens + @font-face + Google font @imports) ships to+ consumers and is indexed by the compiler.+ Source of truth: getopenscreen/openscreen (src/index.css).+ ============================================================ */++@import url("./tokens/base.css");+@import url("./tokens/fonts.css");+@import url("./tokens/colors.css");+@import url("./tokens/typography.css");+@import url("./tokens/spacing.css");+@import url("./tokens/radii.css");+@import url("./tokens/elevation.css");+@import url("./tokens/effects.css");diff --git a/design/tokens/base.css b/design/tokens/base.cssnew file mode 100644index 000000000..80f9aca8a--- /dev/null+++ b/design/tokens/base.css@@ -0,0 +1,85 @@+/* ─────────────────────────────────────────────────────────────+ BASE+ Motion, focus, selection, and the range-slider chrome that the+ product relies on. Import last. These are the ONLY global rules —+ everything else is component-scoped inline style.+ ───────────────────────────────────────────────────────────── */+:root {+ --ease: cubic-bezier(0.2, 0, 0, 1);+ --dur: 0.15s;+}++/* the standard transition surface for every interactive element */+button,+[role="button"],+a,+select,+textarea,+input {+ transition:+ background-color var(--dur) var(--ease),+ color var(--dur) var(--ease),+ border-color var(--dur) var(--ease),+ box-shadow var(--dur) var(--ease),+ transform var(--dur) var(--ease);+}++:focus-visible {+ outline: none;+ box-shadow: var(--focus-ring);+}++::selection {+ background: var(--accent-ring);+ color: var(--fg-emphasis);+}++/* Links — define defaults so consumer-added <a> never renders browser blue */+a { color: var(--accent); text-decoration: none; }+a:hover { color: var(--brand-lo); }++/* ── Range slider (used across the inspector) ────────────────── */+input[type="range"] {+ -webkit-appearance: none;+ appearance: none;+ height: 14px;+ cursor: pointer;+ border-radius: 999px;+ background-color: transparent;+ background-repeat: no-repeat;+ background-position: 0 center;+ background-size: 100% 5px;+}+input[type="range"]::-webkit-slider-thumb {+ -webkit-appearance: none;+ appearance: none;+ width: 14px;+ height: 14px;+ border-radius: 50%;+ background: var(--surface);+ border: 2px solid var(--brand);+ box-shadow: 0 1px 3px rgba(0,0,0,0.4);+ transition: transform 0.12s ease, box-shadow 0.12s ease;+}+input[type="range"]:hover::-webkit-slider-thumb {+ transform: scale(1.14);+ box-shadow: 0 0 0 5px var(--accent-soft);+}+input[type="range"]::-moz-range-thumb {+ width: 14px;+ height: 14px;+ border: 2px solid var(--brand);+ border-radius: 50%;+ background: var(--surface);+}+input[type="range"]::-moz-range-track {+ height: 5px;+ border-radius: 999px;+ background: transparent;+}++/* keyframes referenced by product (rec pulse, fades, etc.) */+@keyframes os-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }+@keyframes os-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }+@keyframes os-glow { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }+@keyframes os-bounce{ 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }diff --git a/design/tokens/colors.css b/design/tokens/colors.cssnew file mode 100644index 000000000..3cd2fa8ca--- /dev/null+++ b/design/tokens/colors.css@@ -0,0 +1,112 @@+/* ============================================================+ OpenScreen — Color tokens+ Base palette (shadcn "new-york", stone base) + signature+ OpenScreen green. Values lifted verbatim from src/index.css.+ OpenScreen is DARK-FIRST: the recorder HUD, source selector,+ and video-editor studio all run on near-black surfaces. The+ light theme exists (shadcn :root) but is rarely the product.+ ============================================================ */++:root {+ /* ---- Signature brand green -------------------------------- */+ /* The one saturated accent in the whole product: record CTAs,+ active toggles, slider fills, selection rings, progress. */+ --brand-green: #34b27b; /* primary accent */+ --brand-green-hover: #2d9e6c; /* button hover */+ --brand-green-active: #27885c; /* button press */+ --brand-green-ring: rgba(52, 178, 123, 0.5); /* focus ring */+ --brand-green-glow: rgba(74, 222, 128, 0.4); /* active drop-shadow (green-400) */+ --brand-green-tint: rgba(52, 178, 123, 0.13); /* selected surface wash */++ /* ---- Recording state colors ------------------------------ */+ --rec-red: #ef4444; /* recording (red-500) */+ --rec-red-text: #f87171; /* recording label (red-400) */+ --rec-amber: #f59e0b; /* paused (amber-500) */+ --rec-amber-text: #fbbf24;/* paused label (amber-400) */++ /* ---- shadcn base scale (HSL channels, light theme) -------- */+ --background: 0 0% 100%;+ --foreground: 20 14.3% 4.1%;+ --card: 0 0% 100%;+ --card-foreground: 20 14.3% 4.1%;+ --popover: 0 0% 100%;+ --popover-foreground: 20 14.3% 4.1%;+ --primary: 24 9.8% 10%;+ --primary-foreground: 60 9.1% 97.8%;+ --secondary: 60 4.8% 95.9%;+ --secondary-foreground: 24 9.8% 10%;+ --muted: 60 4.8% 95.9%;+ --muted-foreground: 25 5.3% 44.7%;+ --accent: 60 4.8% 95.9%;+ --accent-foreground: 24 9.8% 10%;+ --destructive: 0 84.2% 60.2%;+ --destructive-foreground: 60 9.1% 97.8%;+ --border: 20 5.9% 90%;+ --input: 20 5.9% 90%;+ --ring: 20 14.3% 4.1%;+ --radius: 0.5rem;++ /* ---- Editor / studio dark shell surfaces ----------------- */+ /* The near-black canvas the whole app sits on. Not pure #000+ — a hair of warmth toward blue-black. */+ --shell-0: #050606; /* deepest workspace gradient end */+ --shell-1: #07080a; /* HUD bar / floating chrome */+ --shell-2: #08090b; /* workspace top */+ --shell-3: #090a0c; /* editor panels base */+ --shell-4: #09090b; /* empty-state / editor canvas */+ --shell-5: #0b0c10; /* raised popovers (device selector) */++ /* Hairline strokes & fills used pervasively on the dark shell.+ Everything is white-at-low-alpha, never a solid gray line. */+ --line-subtle: rgba(255, 255, 255, 0.055);+ --line: rgba(255, 255, 255, 0.075);+ --line-strong: rgba(255, 255, 255, 0.10);+ --fill-subtle: rgba(255, 255, 255, 0.032);+ --fill: rgba(255, 255, 255, 0.045);+ --fill-hover: rgba(255, 255, 255, 0.075);++ /* Text ramp on dark (zinc/slate mix used across the app). */+ --text-hi: #ffffff; /* headings, active */+ --text-1: #e4e4e7; /* body (zinc-200) */+ --text-2: #d9e2ee; /* inspector body */+ --text-3: #a1a1aa; /* secondary (zinc-400) */+ --text-4: rgba(255, 255, 255, 0.6); /* labels */+ --text-5: rgba(255, 255, 255, 0.4); /* disabled/idle icons */+ --text-slate-500: #64748b; /* empty-state hints */+}++/* ---- shadcn dark theme (the product's default look) --------- */+.dark {+ --background: 20 14.3% 4.1%;+ --foreground: 60 9.1% 97.8%;+ --card: 20 14.3% 4.1%;+ --card-foreground: 60 9.1% 97.8%;+ --popover: 20 14.3% 4.1%;+ --popover-foreground: 60 9.1% 97.8%;+ --primary: 60 9.1% 97.8%;+ --primary-foreground: 24 9.8% 10%;+ --secondary: 12 6.5% 15.1%;+ --secondary-foreground: 60 9.1% 97.8%;+ --muted: 12 6.5% 15.1%;+ --muted-foreground: 24 5.4% 63.9%;+ --accent: 12 6.5% 15.1%;+ --accent-foreground: 60 9.1% 97.8%;+ --destructive: 0 62.8% 30.6%;+ --destructive-foreground: 60 9.1% 97.8%;+ --border: 12 6.5% 15.1%;+ --input: 12 6.5% 15.1%;+ --ring: 24 5.7% 82.9%;+}++/* ---- Semantic aliases (prefer these in components) ---------- */+:root {+ --color-bg: hsl(var(--background));+ --color-fg: hsl(var(--foreground));+ --surface-card: hsl(var(--card));+ --surface-popover: hsl(var(--popover));+ --text-body: hsl(var(--foreground));+ --text-muted: hsl(var(--muted-foreground));+ --border-default: hsl(var(--border));+ --focus-ring: var(--brand-green-ring);+ --accent-primary: var(--brand-green);+}diff --git a/design/tokens/effects.css b/design/tokens/effects.cssnew file mode 100644index 000000000..642db9018--- /dev/null+++ b/design/tokens/effects.css@@ -0,0 +1,82 @@+/* ============================================================+ OpenScreen — Effects: shadows, glass, gradients, motion+ The signature look is DEPTH ON DARK: floating chrome with a+ big soft outer shadow + a 1px inner top highlight, sat over a+ heavy backdrop-blur. Nothing is flat. Motion is quick and+ functional (120–300ms ease), with subtle scale on press.+ ============================================================ */++:root {+ /* ---- Elevation shadows (dark shell) --------------------- */+ /* Floating HUD bar — the archetype: deep drop + inner top light. */+ --shadow-hud: 0 20px 60px rgba(0, 0, 0, 0.42),+ inset 0 1px 0 rgba(255, 255, 255, 0.06);+ /* Editor panels. */+ --shadow-panel: 0 24px 70px rgba(0, 0, 0, 0.42),+ inset 0 1px 0 rgba(255, 255, 255, 0.045);+ /* Popovers / menus (device selector, language menu). */+ --shadow-popover: 0 18px 42px rgba(0, 0, 0, 0.48),+ inset 0 1px 0 rgba(255, 255, 255, 0.045);+ /* Cards at rest / on hover. */+ --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.035);+ --shadow-card-hover: 0 10px 24px rgba(0, 0, 0, 0.22),+ inset 0 1px 0 rgba(255, 255, 255, 0.04);+ /* Small badges (selection check). */+ --shadow-badge: 0 6px 14px rgba(0, 0, 0, 0.35);+ /* Inner top highlight used alone on control surfaces. */+ --shadow-inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.025);++ /* ---- The "beautified recording" shadow ------------------ */+ /* What OpenScreen renders around the captured window sitting+ on a wallpaper. Big, soft, slightly lifted. */+ --shadow-capture: 0 40px 90px rgba(0, 0, 0, 0.45),+ 0 12px 32px rgba(0, 0, 0, 0.35);++ /* ---- Glass / backdrop ----------------------------------- */+ --glass-blur: blur(24px) saturate(150%);+ --glass-blur-strong: blur(24px) saturate(140%);+ --glass-shell: linear-gradient(+ 145deg,+ rgba(13, 14, 17, 0.94) 0%,+ rgba(8, 9, 12, 0.9) 100%+ );+ --glass-hud: rgba(7, 8, 10, 0.9); /* #07080a/90 */+ --glass-popover: rgba(8, 9, 12, 0.96);++ /* ---- Surface gradients ---------------------------------- */+ /* The workspace backdrop: a faint green glow up top over a+ near-black vertical fade. This green wash is a brand tell. */+ --gradient-workspace: radial-gradient(+ circle at 18% 0%,+ rgba(52, 178, 123, 0.08),+ transparent 30%+ ),+ linear-gradient(180deg, #08090b 0%, #050606 100%);+ /* Panel face: barely-there white top sheen. */+ --gradient-panel: linear-gradient(+ 180deg,+ rgba(255, 255, 255, 0.035),+ rgba(255, 255, 255, 0.012)+ ),+ #090a0c;+ /* Selected card wash (green tint → glass). */+ --gradient-selected: linear-gradient(+ 145deg,+ rgba(52, 178, 123, 0.13),+ rgba(255, 255, 255, 0.045)+ );++ /* ---- Motion --------------------------------------------- */+ /* Fast + linear-to-ease. No bounce, no spring in the chrome. */+ --ease: cubic-bezier(0.4, 0, 0.2, 1);+ --dur-fast: 120ms; /* hovers, color swaps */+ --dur-base: 150ms; /* buttons, most transitions */+ --dur-mid: 200ms; /* cards, dialogs */+ --dur-slow: 300ms; /* expanding device selectors */+ /* Press feedback: the app scales controls to 0.95 on active. */+ --press-scale: 0.95;++ /* ---- Focus ---------------------------------------------- */+ --ring-focus: 0 0 0 2px var(--brand-green-ring);+ --ring-slider: 0 0 0 4px rgba(52, 178, 123, 0.12);+}diff --git a/design/tokens/elevation.css b/design/tokens/elevation.cssnew file mode 100644index 000000000..f44b64d31--- /dev/null+++ b/design/tokens/elevation.css@@ -0,0 +1,24 @@+/* ─────────────────────────────────────────────────────────────+ ELEVATION & FOCUS+ Dark theme leans on a subtle inset top-highlight + soft drop+ shadow (glass-on-dark). Light theme uses conventional soft grey+ shadows. Two levels only:+ --elev-card resting cards / proposal cards+ --elev-pop floating popovers, inspector, transport, menus+ Plus the focus ring (emerald, matches --accent-ring).+ ───────────────────────────────────────────────────────────── */+:root,+[data-theme="dark"] {+ --elev-card: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 10px -4px rgba(0,0,0,0.55);+ --elev-pop: 0 20px 50px -16px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.05);+ --focus-ring: 0 0 0 3px rgba(16,185,129,0.32);++ /* accent-tinted button glow, used under primary buttons */+ --glow-accent: 0 2px 10px -3px var(--accent-soft);+}++[data-theme="light"] {+ --elev-card: 0 1px 2px rgba(15,23,42,0.05), 0 2px 10px -3px rgba(15,23,42,0.08);+ --elev-pop: 0 20px 48px -16px rgba(15,23,42,0.22), 0 4px 12px rgba(15,23,42,0.08);+ --focus-ring: 0 0 0 3px rgba(16,185,129,0.2);+}diff --git a/design/tokens/fonts.css b/design/tokens/fonts.cssnew file mode 100644index 000000000..179b34309--- /dev/null+++ b/design/tokens/fonts.css@@ -0,0 +1,4 @@+/* OpenScreen uses Geist (UI) + Geist Mono (numeric / technical), loaded from+ Google Fonts. If you self-host, drop the .woff2 files in assets/fonts and+ replace these @import lines with @font-face rules pointing at them. */+@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap");diff --git a/design/tokens/radii.css b/design/tokens/radii.cssnew file mode 100644index 000000000..9169095ae--- /dev/null+++ b/design/tokens/radii.css@@ -0,0 +1,16 @@+/* ─────────────────────────────────────────────────────────────+ RADII+ Nested-radius rhythm: small controls 6–9px, mid controls/cards+ 10–12px, panels & popovers 14–16px, pills fully round. Bigger+ containers always round more than the controls nested inside them.+ ───────────────────────────────────────────────────────────── */+:root {+ --radius-xs: 2px; /* tick marks, tiny swatches */+ --radius-sm: 6px; /* toolbar icon buttons, lane pills, menu rows */+ --radius-md: 9px; /* topbar buttons, inputs, selects */+ --radius-lg: 11px; /* chips, timeline clips, setting cards */+ --radius-xl: 12px; /* popover menus, media cards */+ --radius-2xl: 14px; /* composer, proposal cards, facet rail */+ --radius-3xl: 16px; /* inspector panel, transport bar, big rec btn */+ --radius-pill: 9999px; /* status badges, quick-action chips */+}diff --git a/design/tokens/spacing.css b/design/tokens/spacing.cssnew file mode 100644index 000000000..207cc02c6--- /dev/null+++ b/design/tokens/spacing.css@@ -0,0 +1,55 @@+/* ============================================================+ OpenScreen — Spacing, radius & sizing tokens+ The chrome is compact: 8px grid at heart, but control heights+ land on real values from the source (h-7=28, h-8=32, h-9=36,+ h-10=40). Radii run large & soft — the product's whole look is+ rounded windows on wallpaper, so nothing is sharp.+ ============================================================ */++:root {+ /* ---- Spacing scale (Tailwind-derived, px) --------------- */+ --space-0: 0;+ --space-0-5: 2px;+ --space-1: 4px;+ --space-1-5: 6px;+ --space-2: 8px;+ --space-2-5: 10px;+ --space-3: 12px;+ --space-3-5: 14px; /* panel padding in the workspace */+ --space-4: 16px;+ --space-5: 20px;+ --space-6: 24px; /* dialog / card padding */+ --space-8: 32px;+ --space-10: 40px;+ --space-12: 48px;++ /* ---- Radius --------------------------------------------- */+ /* shadcn --radius is 0.5rem; the app layers larger radii on+ floating chrome. corner-shape: squircle is used on the+ source selector + cards for the iOS-style continuous curve. */+ --radius: 0.5rem; /* shadcn base (8px) */+ --radius-sm: 6px; /* small pills, list items */+ --radius-md: 8px; /* controls, inputs */+ --radius-lg: 10px; /* control surfaces, popovers */+ --radius-xl: 13px; /* cards (source selector) */+ --radius-2xl: 16px; /* editor panels */+ --radius-3xl: 18px; /* preview / timeline panels */+ --radius-window: 24px; /* floating windows, glass shells */+ --radius-full: 9999px; /* record button, meters, switches */++ /* ---- Control heights (from source) ---------------------- */+ --control-h-xs: 28px; /* h-7 aux HUD buttons */+ --control-h-sm: 32px; /* h-8 HUD buttons, sm buttons */+ --control-h-md: 36px; /* h-9 default button, tabs list */+ --control-h-lg: 40px; /* h-10 input, select, lg toggle */++ /* ---- Icon sizing ---------------------------------------- */+ --icon-xs: 11px;+ --icon-sm: 13px; /* language / small chrome */+ --icon-md: 16px; /* shadcn default [&_svg]:size-4 */+ --icon-lg: 20px; /* HUD control icons (ICON_SIZE) */++ /* ---- Layout ---------------------------------------------- */+ --rail-width: clamp(286px, 20vw, 352px); /* editor settings rail */+ --workspace-pad: 14px;+}diff --git a/design/tokens/typography.css b/design/tokens/typography.cssnew file mode 100644index 000000000..e1f3e712e--- /dev/null+++ b/design/tokens/typography.css@@ -0,0 +1,61 @@+/* ============================================================+ OpenScreen — Typography tokens+ The app UI ships in Inter (via Tailwind default sans on the+ Electron shell). The editor ALSO bundles a large font picker+ for on-canvas captions/annotations — those Google families are+ imported here so caption specimens render true. UI text is+ tight, small, and functional: 9–14px is the working range.+ ============================================================ */++@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;700&family=Fira+Code:wght@400;700&family=Caveat:wght@400;700&family=Permanent+Marker&family=Bebas+Neue&family=Oswald:wght@400;700&family=Space+Grotesk:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap");++:root {+ /* ---- Families ------------------------------------------- */+ /* UI: Inter everywhere in the chrome. */+ --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,+ "Segoe UI", Roboto, Helvetica, Arial, sans-serif;+ /* Mono: timers, timecodes, tabular numerals (the app uses+ tabular-nums heavily on the record timer + scrubber). */+ --font-mono: "IBM Plex Mono", "Fira Code", ui-monospace,+ SFMono-Regular, Menlo, Consolas, monospace;++ /* Caption / annotation display families (editor font picker).+ Not used in UI chrome — only for text drawn onto the video. */+ --font-caption-marker: "Permanent Marker", cursive;+ --font-caption-hand: "Caveat", cursive;+ --font-caption-impact: "Bebas Neue", "Oswald", sans-serif;+ --font-caption-serif: "Playfair Display", Georgia, serif;+ --font-caption-grotesk: "Space Grotesk", sans-serif;++ /* ---- Weights -------------------------------------------- */+ --fw-regular: 400;+ --fw-medium: 500; /* default for buttons, labels */+ --fw-semibold: 600; /* section titles, emphasis */+ --fw-bold: 700;++ /* ---- UI type scale (px — the app is dense) --------------- */+ /* Names map to real usage seen across the recorder + editor. */+ --text-9: 9px; /* scrubber timecode */+ --text-10: 10px; /* device labels, badges */+ --text-11: 11px; /* the workhorse: buttons, tabs, tooltips*/+ --text-12: 12px; /* xs body */+ --text-13: 13px; /* prompt titles */+ --text-sm: 14px; /* body / dialog copy (0.875rem) */+ --text-base: 16px; /* dialog/section headings */+ --text-lg: 18px; /* dialog title */+ --text-xl: 20px; /* empty-state title */+ --text-2xl: 24px; /* rare, marketing */++ /* ---- Line heights --------------------------------------- */+ --lh-none: 1;+ --lh-tight: 1.15;+ --lh-snug: 1.35;+ --lh-normal: 1.5;+ --lh-relaxed: 1.6;++ /* ---- Tracking ------------------------------------------- */+ /* The inspector explicitly zeroes letter-spacing everywhere;+ OpenScreen UI text is never tracked out. */+ --tracking-tight: -0.01em;+ --tracking-normal: 0;+}diff --git a/design/ui_kits/editor/README.md b/design/ui_kits/editor/README.mdnew file mode 100644index 000000000..ee848471c--- /dev/null+++ b/design/ui_kits/editor/README.md@@ -0,0 +1,26 @@+# OpenScreen Editor — UI kit++A high-fidelity recreation of the OpenScreen Editor's **Edit** view, composed from the design+system primitives. It is a visual + light-interaction recreation, not production code.++## Screen++`index.html` — the full editor shell in **Edit** mode:+- **Topbar** — logo lockup, project switcher, Media/Edit/Rec stage tabs, save state, theme toggle, Export.+- **Agent panel** (left, 392px) — recipe header + progress, a conversation (`ChatBubble` ++ `ProposalCard`), quick-action `Chip` row, and the composer (`TextField`).+- **Stage** (center) — 16:9 preview with rule-of-thirds grid, timecode + resolution badges, webcam+ PiP, a floating transport bar, and the floating **inspector** (facet rail via `FacetRailButton`+ + an Effects panel of `Slider`s and `Switch`es).+- **Timeline ribbon** (bottom) — tool row, ruler, the annotation / speed / skip / zoom lanes+ (`TimelinePill`), the clips lane with generated waveforms, and the zoom/pan nav bar.++Interaction is intentionally shallow: the stage tabs switch, the theme toggles, sliders/switches+move, chips fill the composer. It demonstrates the look and the component composition — the real+editing engine is out of scope.++## Composition++Everything pulls tokens from `../../styles.css` and components from the generated bundle. The+screen resolves the bundle namespace defensively (`pick(name)`) so it works regardless of the+compiled namespace name.diff --git a/design/ui_kits/editor/index.html b/design/ui_kits/editor/index.htmlnew file mode 100644index 000000000..5d0f720dc--- /dev/null+++ b/design/ui_kits/editor/index.html@@ -0,0 +1,256 @@+<!-- @dsCard group="Editor" viewport="1360x840" subtitle="Full OpenScreen editor — Edit mode" -->+<!-- @startingPoint section="Editor" subtitle="OpenScreen editor shell (chat + stage + timeline)" viewport="1360x840" -->+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>OpenScreen Editor</title>+<link rel="stylesheet" href="../../styles.css">+<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>+<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>+<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>+<script src="https://unpkg.com/lucide@latest"></script>+<script src="../../_ds_bundle.js"></script>+<style>+ html,body{margin:0;height:100%;}+ body{background:var(--bg);color:var(--fg);font-family:var(--font-display);font-size:13px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow:hidden;}+ #root{height:100vh;}+</style></head>+<body>+<div id="root"></div>+<script type="text/babel">+function pick(name){ for(const k in window){ try{ const v=window[k]; if(v&&typeof v==='object'&&typeof v[name]==='function') return v[name]; }catch(e){} } return ()=>null; }+const Button=pick('Button'), IconButton=pick('IconButton'), SegmentedControl=pick('SegmentedControl'),+ Switch=pick('Switch'), Slider=pick('Slider'), Chip=pick('Chip'), TextField=pick('TextField'),+ Badge=pick('Badge'), ChatBubble=pick('ChatBubble'), ProposalCard=pick('ProposalCard'),+ MediaCard=pick('MediaCard'), TimelinePill=pick('TimelinePill'), FacetRailButton=pick('FacetRailButton');+const I=(n,s=16)=><i data-lucide={n} style={{width:s,height:s,display:'block'}}></i>;+const Bot=<svg width="15" height="15" viewBox="0 0 16 16" shapeRendering="crispEdges"><rect x="7" y="0" width="2" height="2" fill="currentColor"/><rect x="3" y="3" width="10" height="9" rx="1" fill="none" stroke="currentColor" strokeWidth="1.4"/><rect x="5" y="6" width="2" height="2" fill="currentColor"/><rect x="9" y="6" width="2" height="2" fill="currentColor"/><rect x="5.5" y="9.5" width="5" height="1.4" fill="currentColor"/></svg>;+const HR=()=><span style={{width:1,height:18,background:'var(--border)',flexShrink:0}}></span>;++function wave(seed,count){ let x=seed*9301+49297; const r=()=>{x=(x*9301+49297)%233280;return x/233280;}; const b=[]; let v=0.55; for(let i=0;i<count;i++){v=v*0.6+r()*0.4;b.push(0.3+v*0.7);} return b; }++function Editor(){+ const [theme,setTheme]=React.useState('dark');+ const [mode,setMode]=React.useState('Edit');+ const [facet,setFacet]=React.useState('fx');+ const [msg,setMsg]=React.useState('');+ const [playing,setPlaying]=React.useState(false);+ const [sh,setSh]=React.useState(24),[rd,setRd]=React.useState(42),[pd,setPd]=React.useState(30);+ const [blur,setBlur]=React.useState(false),[mir,setMir]=React.useState(false);+ const root=React.useRef(null);+ React.useEffect(()=>{ window.lucide && window.lucide.createIcons(); });++ const facets=[['bg','Background','image'],['fx','Effects','sliders-horizontal'],['layout','Layout','layout'],+ ['cursor','Cursor','mouse-pointer-2'],['cap','Captions','captions'],['ch','Chapters','git-fork'],+ ['tr','Transcript','file-text'],['crop','Crop','crop']];+ const facetTitle={bg:'Background',fx:'Video Effects',layout:'Layout',cursor:'Cursor',cap:'Captions',ch:'Chapters',tr:'Transcript',crop:'Crop'}[facet];++ const clipWave=wave(2,90);++ return (+ <div ref={root} data-theme={theme} style={{height:'100vh',background:'var(--bg-grad)',color:'var(--fg)',overflow:'hidden'}}>+ <div style={{display:'grid',gridTemplateRows:'58px 1fr 308px',height:'100vh'}}>++ {/* TOPBAR */}+ <header style={{display:'flex',alignItems:'center',gap:14,padding:'0 18px',borderBottom:'1px solid var(--border-soft)'}}>+ <IconButton title="Toggle chat">{I('panel-left',17)}</IconButton>+ <HR/>+ <span style={{display:'inline-flex',alignItems:'center',gap:9}}>+ <img src="../../assets/logo-icon.png" alt="" style={{width:22,height:22,objectFit:'contain'}}/>+ <span style={{fontSize:15,fontWeight:600,letterSpacing:'-0.015em',color:'var(--fg-emphasis)'}}>OpenScreen</span>+ </span>+ <HR/>+ <Button variant="ghost" size="sm" iconRight={I('chevron-down',11)}>demo2</Button>+ <HR/>+ <IconButton title="Open project">{I('folder-open',16)}</IconButton>+ <IconButton title="Save project">{I('save',16)}</IconButton>+ <span style={{display:'inline-flex',alignItems:'center',gap:6,fontFamily:'var(--font-mono)',fontSize:11,color:'var(--muted)'}}>+ <span style={{width:6,height:6,borderRadius:'50%',background:'var(--accent)',boxShadow:'0 0 0 3px var(--accent-soft)'}}></span>Saved+ </span>+ <div style={{margin:'0 auto'}}>+ <SegmentedControl options={['Media','Edit','Rec']} value={mode} onChange={setMode}/>+ </div>+ <IconButton title="Toggle theme" onClick={()=>setTheme(t=>t==='dark'?'light':'dark')}>{theme==='dark'?I('moon',16):I('sun',16)}</IconButton>+ <IconButton title="Settings">{I('settings',16)}</IconButton>+ <Button variant="primary" icon={I('download',15)}>Export</Button>+ </header>++ {/* BODY */}+ <div style={{display:'grid',gridTemplateColumns:'392px 1fr',minHeight:0}}>++ {/* AGENT PANEL */}+ <aside style={{display:'grid',gridTemplateRows:'auto 1fr auto',minHeight:0,background:'var(--surface)',borderRight:'1px solid var(--border)'}}>+ <div style={{padding:'12px 18px 0',borderBottom:'1px solid var(--border-soft)'}}>+ <div style={{display:'flex',alignItems:'center',gap:10,marginBottom:10}}>+ <span style={{fontSize:13.5,fontWeight:600,color:'var(--fg-emphasis)',letterSpacing:'-0.01em'}}>OpenScreen Agent</span>+ <Badge dot>0% context</Badge>+ </div>+ <div style={{display:'flex',alignItems:'center',gap:8,marginBottom:10}}>+ <span style={{fontFamily:'var(--font-mono)',fontSize:9,letterSpacing:'0.08em',color:'var(--meta)'}}>RECIPE</span>+ <span style={{flex:1,minWidth:0,fontSize:12,color:'var(--fg-2)',whiteSpace:'nowrap',overflow:'hidden',textOverflow:'ellipsis'}}>Remove blanks, silences and hesitations…</span>+ <span style={{fontFamily:'var(--font-mono)',fontSize:9.5,color:'var(--muted)'}}>3/5</span>+ </div>+ <div style={{height:3,background:'var(--surface-3)',position:'relative'}}><div style={{position:'absolute',left:0,top:0,bottom:0,width:'60%',background:'linear-gradient(90deg,var(--brand-lo),var(--brand))'}}></div></div>+ </div>++ <div style={{overflowY:'auto',minHeight:0,padding:'14px 20px'}}>+ <div style={{display:'flex',flexDirection:'column',gap:16}}>+ <ChatBubble role="user" author="YOU">Hey, can you clean up the intro on this recording? There's a bunch of dead air while I was reading my notes.</ChatBubble>+ <ChatBubble role="assistant" author="OpenScreen" time="10:41" avatar={Bot}>On it — scanning track 1 for silences and filler words now. I'll flag anything over 600ms.</ChatBubble>+ <ProposalCard total="0:44.1" applyLabel="Apply 3 cuts"+ items={[{range:'0:31.0 – 0:37.3',dur:'6.3s'},{range:'1:23.0 – 1:27.0',dur:'4.0s'},{range:'1:35.0 – 2:34.0',dur:'30.3s'}]}+ rationale="Detected 3 silences over 600ms and 4 filler words across the intro. Pacing tightened to 1.1×."/>+ <ChatBubble role="system">Applied 3 cuts · saved</ChatBubble>+ </div>+ </div>++ <div style={{borderTop:'1px solid var(--border-soft)',background:'var(--surface)'}}>+ <div style={{display:'flex',gap:6,padding:'8px 20px 0',overflowX:'auto'}}>+ <Chip icon={I('arrow-right',11)} onClick={()=>setMsg('Remove all silences over 500ms')}>Remove silences</Chip>+ <Chip icon={I('arrow-right',11)} onClick={()=>setMsg('Tighten the pacing across both clips')}>Tighten pacing</Chip>+ <Chip icon={I('arrow-right',11)} onClick={()=>setMsg('Add captions in a bold center style')}>Add captions</Chip>+ </div>+ <div style={{padding:'6px 20px 10px'}}>+ <TextField multiline placeholder="Describe the edit you want, or pick an action above…" value={msg} onChange={setMsg}+ wrapStyle={{borderRadius:14}}/>+ <div style={{display:'flex',alignItems:'center',gap:8,marginTop:-38,padding:'0 11px 0',position:'relative',pointerEvents:'none'}}></div>+ </div>+ </div>+ </aside>++ {/* STAGE */}+ <section style={{position:'relative',overflow:'hidden',background:'radial-gradient(ellipse 68% 54% at 52% 32%, var(--surface-1) 0%, var(--bg) 66%)'}}>+ <div style={{position:'absolute',inset:0,display:'flex',alignItems:'center',justifyContent:'center',padding:'40px 360px 110px 80px',boxSizing:'border-box'}}>+ <div style={{position:'relative',aspectRatio:'16/9',width:'100%',maxWidth:820,maxHeight:'100%',background:'radial-gradient(ellipse at 50% 34%, #e6e8ea 0%, #b7bbc2 34%, #676d78 68%, #14161c 100%)',borderRadius:16,boxShadow:'0 40px 90px -30px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,255,255,0.09)',overflow:'hidden'}}>+ <div aria-hidden="true" style={{position:'absolute',inset:0,opacity:0.16,pointerEvents:'none'}}>+ <div style={{position:'absolute',left:'33.33%',top:0,bottom:0,width:1,background:'rgba(255,255,255,0.6)'}}></div>+ <div style={{position:'absolute',left:'66.66%',top:0,bottom:0,width:1,background:'rgba(255,255,255,0.6)'}}></div>+ <div style={{position:'absolute',top:'33.33%',left:0,right:0,height:1,background:'rgba(255,255,255,0.6)'}}></div>+ <div style={{position:'absolute',top:'66.66%',left:0,right:0,height:1,background:'rgba(255,255,255,0.6)'}}></div>+ </div>+ <span style={{position:'absolute',top:14,left:14,padding:'5px 10px',borderRadius:9,background:'rgba(8,10,13,0.5)',backdropFilter:'blur(12px)',border:'1px solid rgba(255,255,255,0.14)',color:'#fff',fontFamily:'var(--font-mono)',fontSize:11}}>00:00:12.4</span>+ <span style={{position:'absolute',top:14,right:14,padding:'5px 10px',borderRadius:9,background:'rgba(8,10,13,0.42)',backdropFilter:'blur(12px)',border:'1px solid rgba(255,255,255,0.14)',color:'#fff',fontFamily:'var(--font-mono)',fontSize:10}}>1920 × 1080 · 60 fps</span>+ <div style={{position:'absolute',inset:0,display:'grid',placeItems:'center',color:'rgba(255,255,255,0.5)',fontFamily:'var(--font-mono)',fontSize:10,letterSpacing:'0.1em',textTransform:'uppercase'}}>preview · 16:9</div>+ <div style={{position:'absolute',right:16,bottom:16,width:132,aspectRatio:'16/9',borderRadius:12,background:'linear-gradient(135deg,#1a1c22,#0e0f14)',border:'2px solid rgba(255,255,255,0.1)',boxShadow:'0 12px 28px -10px rgba(0,0,0,0.7)',display:'grid',placeItems:'center'}}>+ <span style={{width:34,height:34,borderRadius:'50%',background:'linear-gradient(180deg,#c2c6cc,#676d78)'}}></span>+ </div>+ </div>+ </div>++ {/* transport */}+ <div style={{position:'absolute',left:0,right:0,bottom:22,display:'flex',justifyContent:'center',zIndex:15}}>+ <div role="toolbar" style={{display:'inline-flex',alignItems:'center',gap:8,padding:'8px 10px',borderRadius:16,background:'var(--surface-1)',border:'1px solid var(--border)',boxShadow:'var(--elev-pop)'}}>+ <IconButton title="Previous" size={34}>{I('skip-back',15)}</IconButton>+ <button onClick={()=>setPlaying(p=>!p)} style={{width:44,height:44,display:'grid',placeItems:'center',borderRadius:12,background:'var(--accent)',color:'#fff',border:0,cursor:'pointer',boxShadow:'0 4px 14px -4px var(--accent-soft)'}}>{playing?I('pause',16):I('play',16)}</button>+ <IconButton title="Next" size={34}>{I('skip-forward',15)}</IconButton>+ <HR/>+ <span style={{fontFamily:'var(--font-mono)',fontSize:13,color:'var(--fg)',minWidth:104,textAlign:'center'}}><b>0:00.0</b><span style={{color:'var(--meta)',margin:'0 5px'}}>/</span><span style={{color:'var(--muted)'}}>7:03.6</span></span>+ <IconButton title="Loop" size={34}>{I('repeat',15)}</IconButton>+ <IconButton title="Fullscreen" size={34}>{I('maximize',15)}</IconButton>+ </div>+ </div>++ {/* INSPECTOR */}+ <div style={{position:'absolute',top:20,right:20,bottom:16,display:'flex',alignItems:'flex-start',gap:10,zIndex:20}}>+ <div style={{width:288,maxHeight:'100%',display:'flex',flexDirection:'column',background:'var(--surface-1)',border:'1px solid var(--border)',borderRadius:16,boxShadow:'var(--elev-pop)',overflow:'hidden',backdropFilter:'blur(18px)'}}>+ <header style={{display:'flex',alignItems:'center',gap:8,padding:'14px 16px 12px',borderBottom:'1px solid var(--border-soft)'}}>+ <h2 style={{margin:0,fontSize:14,fontWeight:600,color:'var(--fg-emphasis)',letterSpacing:'-0.01em'}}>{facetTitle}</h2>+ <IconButton title="Collapse" size={26} style={{marginLeft:'auto'}}>{I('chevron-right',15)}</IconButton>+ </header>+ <div style={{overflowY:'auto',minHeight:0,padding:'14px 16px 16px'}}>+ <div style={{display:'flex',alignItems:'center',justifyContent:'space-between',gap:12,padding:'12px 14px',marginBottom:12,border:'1px solid var(--border)',borderRadius:12,background:'var(--surface)'}}>+ <span style={{fontSize:13,fontWeight:500,color:'var(--fg-2)'}}>Blur background</span>+ <Switch checked={blur} onChange={setBlur}/>+ </div>+ <div style={{display:'flex',alignItems:'center',justifyContent:'space-between',gap:12,padding:'12px 14px',marginBottom:12,border:'1px solid var(--border)',borderRadius:12,background:'var(--surface)'}}>+ <span style={{fontSize:13,fontWeight:500,color:'var(--fg-2)'}}>Mirror webcam</span>+ <Switch checked={mir} onChange={setMir}/>+ </div>+ <div style={{display:'flex',flexDirection:'column',gap:10}}>+ <Slider label="Shadow" value={sh} onChange={setSh} format={v=>`${v}%`}/>+ <Slider label="Roundness" value={rd} onChange={setRd} format={v=>`${v}%`}/>+ <Slider label="Padding" value={pd} onChange={setPd} format={v=>`${v}%`}/>+ </div>+ </div>+ </div>+ <div style={{display:'flex',flexDirection:'column',gap:4,padding:6,background:'var(--surface-1)',border:'1px solid var(--border)',borderRadius:14,boxShadow:'var(--elev-pop)',backdropFilter:'blur(18px)'}}>+ {facets.map(([k,label,ic])=>(<FacetRailButton key={k} title={label} active={facet===k} onClick={()=>setFacet(k)}>{I(ic,17)}</FacetRailButton>))}+ </div>+ </div>+ </section>+ </div>++ {/* TIMELINE */}+ <footer style={{position:'relative',background:'var(--surface)',borderTop:'1px solid var(--border)',minHeight:0}}>+ <div style={{display:'flex',alignItems:'center',gap:8,padding:'0 16px',height:40,borderBottom:'1px solid var(--border-soft)'}}>+ <div role="toolbar" style={{display:'flex',alignItems:'center',gap:1}}>+ {[['mouse-pointer-2','Select',true],['film','Capture frame'],['scissors','Split'],['message-square','Comment'],['gauge','Speed'],['sparkles','Auto-enhance']].map(([ic,lbl,act],i)=>(+ <IconButton key={i} title={lbl} size={28} active={!!act}>{I(ic,15)}</IconButton>+ ))}+ </div>+ <HR/>+ <Button variant="ghost" size="sm" iconRight={I('chevron-down',10)}>Widescreen 16:9</Button>+ <div style={{marginLeft:'auto',display:'flex',alignItems:'center',gap:10}}>+ <span style={{display:'inline-flex',alignItems:'center',gap:7,height:26,padding:'0 10px',background:'var(--surface-1)',border:'1px solid var(--border)',borderRadius:7}}>+ <span style={{fontFamily:'var(--font-mono)',fontSize:10.5,fontWeight:600,color:'var(--fg-2)'}}>Scroll</span>{I('arrow-right',11)}<span style={{fontSize:11,color:'var(--muted)'}}>Pan</span>+ </span>+ <span style={{display:'inline-flex',alignItems:'center',gap:7,height:26,padding:'0 10px',background:'var(--surface-1)',border:'1px solid var(--border)',borderRadius:7}}>+ <span style={{fontFamily:'var(--font-mono)',fontSize:10.5,fontWeight:600,color:'var(--fg-2)'}}>Ctrl+Scroll</span>{I('arrow-right',11)}<span style={{fontSize:11,color:'var(--muted)'}}>Zoom</span>+ </span>+ </div>+ </div>++ <div style={{position:'relative',padding:'8px 20px 0'}}>+ {/* playhead */}+ <div aria-hidden="true" style={{position:'absolute',top:2,bottom:66,left:'42%',width:2,background:'var(--accent)',zIndex:6,boxShadow:'0 0 10px var(--accent-soft)'}}>+ <span style={{position:'absolute',top:-5,left:'50%',transform:'translateX(-50%) rotate(45deg)',width:9,height:9,background:'var(--accent)',borderRadius:2}}></span>+ </div>+ <div style={{display:'flex',justifyContent:'space-between',height:15,marginBottom:7}}>+ {['0:00','0:15','0:30','0:45','1:00','1:15','1:30','1:45','2:00','2:15','2:30'].map(t=><span key={t} style={{fontFamily:'var(--font-mono)',fontSize:10,color:'var(--meta)'}}>{t}</span>)}+ </div>+ {/* lanes */}+ <div style={{position:'relative',height:24,marginBottom:5,borderRadius:6,background:'var(--surface-1)'}}>+ <TimelinePill tone="annotation" leftPct={19} icon={I('message-square',11)}>New annotation</TimelinePill>+ <TimelinePill tone="annotation" leftPct={72} icon={I('message-square',11)}>New annotation</TimelinePill>+ </div>+ <div style={{position:'relative',height:24,marginBottom:5,borderRadius:6,background:'var(--surface-1)'}}>+ <TimelinePill tone="speed" leftPct={18} widthPct={5} icon={I('clock',11)}>1.5×</TimelinePill>+ <TimelinePill tone="speed" leftPct={76} widthPct={14} icon={I('clock',11)}>1.5×</TimelinePill>+ </div>+ <div style={{position:'relative',height:24,marginBottom:5,borderRadius:6,background:'var(--surface-1)'}}>+ <TimelinePill tone="danger" leftPct={10} widthPct={10} icon={I('scissors',11)}>0:37.3</TimelinePill>+ <TimelinePill tone="danger" leftPct={27} widthPct={2}></TimelinePill>+ <TimelinePill tone="danger" leftPct={31} widthPct={19} icon={I('scissors',11)}>0:30.3</TimelinePill>+ </div>+ <div style={{position:'relative',height:24,marginBottom:8,borderRadius:6,background:'var(--surface-1)'}}>+ <TimelinePill tone="accent" leftPct={11} widthPct={7} icon={I('zoom-in',11)}>1.8×</TimelinePill>+ <TimelinePill tone="accent" leftPct={47} widthPct={6} icon={I('zoom-in',11)}>1.5×</TimelinePill>+ </div>+ {/* clips */}+ <div style={{position:'relative',display:'flex',gap:6,height:66}}>+ {[0,1].map(ci=>(+ <div key={ci} style={{position:'relative',flex:1,borderRadius:11,border:`1.5px solid ${ci===1?'var(--accent)':'var(--border)'}`,background:'var(--surface-1)',overflow:'hidden',boxShadow:'inset 0 1px 8px rgba(255,255,255,0.09)'}}>+ <div style={{position:'absolute',inset:0,display:'flex',alignItems:'center',justifyContent:'space-between',gap:1,padding:'0 2px'}}>+ {clipWave.map((h,i)=><span key={i} style={{flex:'1 1 0',alignSelf:'center',height:`${Math.round(h*100)}%`,maxWidth:2,background:'var(--accent)',opacity:(0.5+h*0.5).toFixed(2),borderRadius:2}}></span>)}+ </div>+ <div style={{position:'absolute',left:10,top:8,display:'inline-flex',alignItems:'center',gap:8,padding:'3px 9px 3px 6px',borderRadius:8,background:'rgba(8,10,13,0.55)',backdropFilter:'blur(8px)',border:'1px solid rgba(255,255,255,0.08)'}}>+ <span style={{width:16,height:16,display:'grid',placeItems:'center',borderRadius:5,background:'var(--surface)',color:'var(--fg)'}}>{I('pencil',9)}</span>+ <span style={{fontSize:11,fontWeight:500,color:'#fff'}}>demo-n8n-as-code-1.mp4</span>+ </div>+ </div>+ ))}+ </div>+ </div>++ {/* nav bar */}+ <div style={{position:'relative',height:20,margin:'8px 20px 12px'}}>+ <div style={{position:'absolute',top:7,left:0,right:0,height:6,borderRadius:3,background:'var(--surface-3)'}}></div>+ <div style={{position:'absolute',top:5,left:'6%',width:'62%',height:10,borderRadius:5,background:'var(--surface-hi)',border:'1px solid var(--border-hi)'}}></div>+ </div>+ </footer>+ </div>+ </div>+ );+}+ReactDOM.createRoot(document.getElementById('root')).render(<Editor/>);+</script>+</body></html>