Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
/* Every theme-dependent color is light-dark(light, dark); data-theme selects
the scheme and starts from the browser preference. */
:root {
color-scheme: dark;
--app: light-dark(#edebe7, #0b0c0e);
--panel: light-dark(#faf9f7, #141518);
--panel-raised: light-dark(#ffffff, #1a1b1f);
--field: light-dark(#f0eeea, #222429);
--lane: light-dark(#f4f3f0, #0c0d10);
--line: light-dark(#e5e2dd, #26282d);
--line-strong: light-dark(#d1cdc7, #33363c);
--text: light-dark(#1b1a18, #e7e8eb);
--text-2: light-dark(#5c5a54, #a4a7ae);
--text-3: light-dark(#8a877f, #6f737c);
--subtab-surface: light-dark(#eeece8, #101114);
--subtab-active-surface: light-dark(#ffffff, #24262a);
--subtab-active-text: light-dark(#3a3935, #c9cbd0);
/* Replace this ramp as one unit when Hypit's interaction identity changes. */
--brand-200: #f8c1ce;
--brand-400: #ed7898;
--brand-500: #e3406a;
--brand-600: #b52b4d;
--brand-soft: color-mix(in srgb, var(--brand-500) 14%, transparent);
--brand-foreground: var(--text);
--interaction-accent: var(--brand-500);
--interaction-pressed: var(--brand-600);
--danger: #c00015;
--ok: light-dark(#2f8a63, #64c99a);
/* Studio palette tokens; Companion families never become CSS selectors. */
--tone-orange: #ac571d;
--tone-orange-rail: #ff9858;
--tone-orange-muted: #7b3702;
--tone-orange-muted-rail: #e7834c;
--tone-green: #38853e;
--tone-green-rail: #75d079;
--tone-green-muted: #285c30;
--tone-green-muted-rail: #73a478;
--tone-teal: #008889;
--tone-teal-rail: #00d4d5;
/* Semantic ruler: brightness separates content from its own band; hue marks state. */
--temporal-domain-block: light-dark(#9cc5c1, #417370);
--temporal-domain-compact: light-dark(#b5d4d0, #005551);
--temporal-domain-ink: light-dark(#1d4744, #eef0f3);
/* Author intent uses a gold annotation hue; brand pink stays in the chrome. */
--temporal-domain-point: var(--brand-500);
/* Same perceived active level as a selected/covered temporal-domain item. */
--temporal-domain-current: #009f98;
/* Ordered marker depth: one hue, decreasing contrast with the background. */
--intent-depth-0: light-dark(#6e5800, #dfca7d);
--intent-depth-1: light-dark(#846d00, #c0aa54);
--intent-depth-2: #a28b2b;
--intent-depth-3: light-dark(#c0aa54, #846d00);
--tone-blue: #1777b8;
--tone-blue-rail: #58c0ff;
--tone-blue-muted: #175079;
--tone-blue-muted-rail: #5795bf;
--tone-violet: #6f63b8;
--tone-violet-rail: #b3a6ff;
--tone-magenta: #995398;
--tone-magenta-rail: #ea93e8;
--tone-magenta-muted: #683b68;
--tone-magenta-muted-rail: #b57ab4;
--tone-neutral: #6a737c;
--tone-neutral-rail: #aeb9c4;
--timeline-label-width: 188px;
--source-width: 416px;
--workspace-width: 320px;
--timeline-height: 390px;
--timeline-item-radius: 2px;
--timeline-selection-stroke: 1px;
--timeline-selection-edge: 3px;
--timeline-selection-radius: 3px;
/* Original selection geometry; only the highlight is intentionally brighter. */
--timeline-selection-color: light-dark(rgba(27, 26, 24, .9), rgba(255, 255, 255, .92));
--font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", "微软雅黑", "Noto Sans CJK SC", sans-serif;
/* Keep the monospace family before CJK fallbacks so Latin timing/code glyphs
cannot be claimed by PingFang or Microsoft YaHei. Missing CJK glyphs then
fall through to the explicit sans-serif CJK faces. */
--font-mono: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Monaco, "Cascadia Mono", "Cascadia Code", "Segoe UI Mono", Consolas, "PingFang SC", "Microsoft YaHei", "微软雅黑", "Noto Sans Mono CJK SC", monospace;
font: 500 12px/1.45 var(--font-ui);
font-variant-numeric: tabular-nums;
font-optical-sizing: auto;
}
:root[data-theme="light"] { color-scheme: light; }
/* Waveform previews are white-stroked images; invert them onto light surfaces. */
:root[data-theme="light"] :is(.artifact-waveform, .stage-audio-wave img) { filter: invert(1); }
* { box-sizing: border-box; }
html, body, #app {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
overscroll-behavior: none;
background: var(--app);
color: var(--text);
}
body { cursor: default; }
button, [role="button"] { font: inherit; }
/* Keep ordinary content on one neutral pointer. The two explicit geometry
affordances below are the only exceptions: panel boundaries and item
boundaries have a real spatial adjustment meaning. */
#app, #app * { cursor: default !important; }
button:focus-visible, textarea:focus-visible {
outline: 1px solid var(--interaction-accent);
outline-offset: -1px;
}
::selection { background: color-mix(in srgb, var(--interaction-accent) 27%, transparent); color: light-dark(var(--text), #fff); }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
border: 3px solid transparent;
border-radius: 10px;
background: light-dark(rgba(0, 0, 0, .18), rgba(255, 255, 255, .16));
background-clip: padding-box;
}
*::-webkit-scrollbar-corner, *::-webkit-resizer { background: transparent; }
.icon, .pane-icon { display: block; width: 16px; height: 16px; flex: none; }
#app { position: relative; display: flex; flex-direction: column; }
/* App chrome and four-zone geometry */
.topbar {
height: 38px;
flex: none;
display: grid;
grid-template-columns: minmax(150px, 1fr) minmax(160px, 420px) minmax(150px, 1fr);
align-items: center;
padding: 0 12px;
border-bottom: 1px solid light-dark(#e5e2dd, #08090a);
background: light-dark(#ffffff, #151619);
user-select: none;
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand-mark { height: 22px; display: flex; align-items: center; gap: 8px; overflow: visible; }
.brand-mark svg { display: block; flex: none; overflow: visible; }
.brand-symbol { width: 22px; height: 20px; color: var(--brand-foreground); }
.brand-wordmark { width: 43px; height: 20px; color: var(--brand-foreground); }
.project-title {
min-width: 0;
justify-self: center;
overflow: hidden;
color: light-dark(#3a3935, #c7c9cf);
font-size: 12px;
font-weight: 500;
text-overflow: ellipsis;
white-space: nowrap;
}
.topbar-right { justify-self: end; display: flex; align-items: center; min-width: 0; }
.view-tabs { display: flex; flex: 0 0 auto; white-space: nowrap; align-items: center; gap: 2px; margin-left: 16px; padding: 2px; border-radius: 5px; background: var(--subtab-surface); }
.view-tabs button {
display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px;
border: 0; border-radius: 4px; color: var(--text-3); background: transparent;
}
.view-tabs button[aria-selected="true"] { color: var(--subtab-active-text); background: var(--subtab-active-surface); }
.view-tabs button:focus-visible { outline: 1px solid light-dark(#a8a49c, #8a8f99); outline-offset: -1px; }
.view-tabs .icon { width: 14px; height: 14px; }
.parameter-select.language-select { width: auto; flex: 0 0 auto; margin-left: 10px; }
.language-select .language-toggle {
display: grid; place-items: center; grid-template-columns: 1fr;
width: 28px; height: 28px; padding: 0;
color: var(--subtab-active-text); background: var(--subtab-surface);
border-color: var(--line);
}
.language-toggle .icon { width: 16px; height: 16px; }
.language-select .parameter-select-menu { width: max-content; min-width: 150px; max-width: 240px; }
.language-select .parameter-select-option { font-family: var(--font-ui); text-align: start; }
.theme-toggle {
display: grid; place-items: center; flex: none;
width: 28px; height: 28px; margin-left: 6px; padding: 0;
border: 1px solid var(--line); border-radius: 4px;
color: var(--subtab-active-text); background: var(--subtab-surface);
}
.theme-toggle .icon { animation: theme-icon-in 180ms ease-out; }
@keyframes theme-icon-in { from { opacity: 0; transform: rotate(-60deg) scale(.6); } }
.topbar { position: relative; z-index: 40; }
.meta {
color: var(--text-3);
font: 500 11px/1 var(--font-ui);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.meta:empty { display: none; }
.status { color: var(--text-3); font-size: 11px; }
.status.error { margin-left: 10px; color: var(--danger); }
.studio-shell {
flex: 1;
min-height: 0;
display: grid;
grid-template-rows: minmax(0, 1fr) 8px var(--timeline-height);
padding: 6px 6px 0;
background: light-dark(#edebe7, #0c0d0f);
user-select: none;
overflow: hidden;
}
.upper-shell {
min-width: 0;
min-height: 0;
display: grid;
grid-template-columns: var(--source-width) 8px minmax(320px, 1fr) 8px var(--workspace-width);
overflow: hidden;
}
.comments-panel, .comments-handle { display: none; }
.studio-shell[data-view="comments"] { grid-template-rows: minmax(0, 1fr); padding-bottom: 6px; }
.studio-shell[data-view="comments"] > .handle,
.studio-shell[data-view="comments"] > .timeline-panel { display: none; }
.studio-shell[data-view="comments"] .upper-shell { grid-template-columns: minmax(240px, 1fr) 8px var(--comments-width, 360px); }
.studio-shell[data-view="comments"] .source-panel,
.studio-shell[data-view="comments"] .source-handle,
.studio-shell[data-view="comments"] .workspace-panel,
.studio-shell[data-view="comments"] .workspace-handle { display: none; }
.studio-shell[data-view="comments"] .comments-handle { display: block; }
.studio-shell[data-view="comments"] .comments-panel { display: flex; }
.comments-panel { flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); border: 1px solid light-dark(#e5e2dd, #08090a); }
.comments-heading { justify-content: space-between; flex: none; }
.comments-heading [data-count] { color: var(--text-3); font-size: 11px; margin-left: 2px; }
.comments-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; padding: 5px; border: 0; border-radius: 3px; background: transparent; color: var(--text-3); }
.comments-icon:hover { background: var(--field); color: var(--text); }
.comments-icon .icon { width: 15px; height: 15px; }
.comments-icon.is-done { color: var(--ok); }
.comments-panel button:disabled { opacity: .4; }
.comments-filters { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
.comments-filters button { border: 0; background: transparent; padding: 4px 11px; border-radius: 3px; color: var(--text-3); }
.comments-filters button[aria-pressed="true"] { color: var(--text); background: light-dark(#e8e5e0, #282a30); }
.comments-list { flex: 1; min-height: 0; overflow: auto; padding: 4px 12px 12px; user-select: text; }
.comments-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; height: 100%; padding: 24px; text-align: center; color: var(--text-3); }
.comments-empty > .icon { width: 28px; height: 28px; margin-bottom: 18px; opacity: .7; }
.comments-empty strong { font-size: 13px; font-weight: 500; color: var(--text-2); }
.comments-empty p { line-height: 1.7; max-width: 230px; margin: 8px 0; }
.comment-card { padding: 12px 10px 14px; border-bottom: 1px solid var(--line); border-radius: 2px; }
.comment-card.selected { background: light-dark(#f0eeea, #1e2025); }
.comment-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.comment-location { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.comment-number { margin-right: 5px; color: var(--text-3); font: 500 11px var(--font-mono); }
.comment-actions { display: flex; align-items: center; gap: 1px; }
.comment-time { display: inline-flex; align-items: center; gap: 6px; min-height: 23px; padding: 2px 6px; background: var(--brand-soft); border: 0; border-radius: 3px; color: light-dark(var(--brand-600), var(--brand-400)); font: 500 11px/1.5 var(--font-mono); white-space: nowrap; }
.comment-time .icon { width: 13px; height: 13px; }
.comment-text { font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; }
.comment-card.resolved .comment-text { color: var(--text-3); }
.comment-composer { flex: none; border-top: 1px solid var(--line); padding: 14px 14px 12px; background: light-dark(#f4f3f0, #18191d); }
.comment-anchor { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; min-height: 24px; }
.comment-composer textarea, .comment-edit textarea { width: 100%; resize: none; background: light-dark(#ffffff, #202227); color: var(--text); border: 1px solid light-dark(#d1cdc7, #33363c); border-radius: 3px; padding: 10px 11px; font: 400 13px/1.7 var(--font-ui); display: block; min-height: 82px; user-select: text; }
.comment-composer textarea::placeholder { color: var(--text-3); }
.comments-panel textarea:focus { outline: none; box-shadow: none; }
.comment-edit textarea:focus { background: light-dark(#ffffff, #292c32); }
.comments-panel textarea::selection { background: light-dark(#1b1a1826, #dce1eb33); color: var(--text); }
.comment-input { border: 1px solid light-dark(#d1cdc7, #33363c); border-radius: 4px; background: light-dark(#ffffff, #202227); transition: background 120ms ease; }
.comment-input:focus-within { background: light-dark(#ffffff, #292c32); }
.comment-input textarea { border: 0; background: transparent; }
.comment-input-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 9px 9px; }
.comment-tools { display: flex; align-items: center; gap: 4px; }
.comment-tools .comments-icon { width: 28px; height: 28px; padding: 5px; }
.comment-tools .icon { width: 18px; height: 18px; }
.comment-submit { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: light-dark(#1b1a18, #e4e6eb); color: light-dark(#ffffff, #202227); }
.comment-submit .icon { display: block; width: 18px; height: 18px; }
.comment-submit:hover:not(:disabled) { background: light-dark(#000000, #fff); }
.comment-submit:disabled { opacity: 1; background: light-dark(#e5e2dd, #35383f); color: light-dark(#a8a49c, #858b95); }
.comment-submit:focus-visible { outline: 1px solid light-dark(#a8a49c, #aeb3bc); outline-offset: 3px; }
.comments-error { color: light-dark(var(--brand-600), var(--brand-200)); font-size: 12px; line-height: 1.6; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.comment-edit { margin-top: 10px; }
.comment-edit-actions { display: flex; justify-content: end; gap: 6px; margin-top: 8px; }
.comment-edit-actions button { padding: 4px 11px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--field); color: var(--text-2); }
.comment-edit-actions button[type="submit"] { color: var(--text); }
.source-panel, .preview-panel, .workspace-panel, .timeline-panel {
min-width: 0;
min-height: 0;
overflow: hidden;
background: var(--panel);
}
.source-panel, .workspace-panel { display: flex; flex-direction: column; }
.pane-heading, .stage-heading {
height: 36px;
flex: none;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 10px;
border-bottom: 1px solid var(--line);
background: var(--panel);
}
.pane-title, .stage-title { min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.pane-title > div { min-width: 0; }
.pane-title h2, .stage-title strong { margin: 0; font-size: 12px; font-weight: 500; }
.pane-title span:not(.pane-icon) {
display: block;
max-width: 250px;
overflow: hidden;
color: var(--text-3);
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
.pane-icon { color: var(--text-3); }
.pane-tabs { height: 100%; display: flex; align-items: stretch; gap: 18px; }
.pane-tab {
position: relative;
padding: 0 2px;
border: 0;
background: transparent;
color: var(--text-3);
font-size: 12px;
}
.pane-tab.active { color: var(--text); }
.pane-tab.active::after {
content: "";
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 2px;
background: var(--interaction-accent);
}
.icon-button, .tool-button {
width: 28px;
height: 28px;
display: grid;
place-items: center;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
color: var(--text-3);
}
.tool-button.active { background: var(--brand-soft); color: var(--interaction-accent); }
.tool-button.active:active { color: var(--interaction-pressed); }
/* Source */
.library { height: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--panel); }
.library-tabs {
height: 36px;
flex: none;
display: flex;
align-items: stretch;
justify-content: flex-start;
gap: 18px;
padding: 0 10px;
border-bottom: 1px solid var(--line);
background: var(--panel);
}
.library-tab {
position: relative;
min-width: 0;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 7px;
padding: 0 2px;
border: 0;
background: transparent;
color: var(--text-2);
}
.library-tab.active { color: var(--interaction-accent); }
.library-tab.active::after {
content: "";
position: absolute;
right: 0;
bottom: -1px;
left: 0;
height: 2px;
border-radius: 2px 2px 0 0;
background: var(--interaction-accent);
box-shadow: 0 -3px 12px color-mix(in srgb, var(--interaction-accent) 28%, transparent);
}
.library-tab > span { position: relative; display: grid; place-items: center; width: 16px; height: 16px; flex: none; }
.library .icon { width: 14px; height: 14px; }
.library-tab > strong { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.library-view { flex: 1; min-width: 0; min-height: 0; display: none; flex-direction: column; }
.library-view.active { display: flex; }
.library-refresh {
width: 27px;
height: 27px;
display: grid;
place-items: center;
flex: none;
padding: 0;
border: 1px solid transparent;
border-radius: 5px;
background: transparent;
color: light-dark(#8a877f, #777c85);
transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}
.library-refresh:hover { border-color: light-dark(#e5e2dd, #30333a); background: light-dark(#f0eeea, #202227); color: light-dark(#3a3935, #d1d4da); }
.library-refresh .icon { width: 14px; height: 14px; }
.library.is-refreshing .library-refresh .icon { animation: library-spin 700ms linear infinite; }
@keyframes library-spin { to { transform: rotate(360deg); } }
.sidebar-panel {
flex: 1;
min-width: 0;
min-height: 0;
display: grid;
grid-template-columns: 44px minmax(0, 1fr);
grid-template-rows: 36px minmax(0, 1fr);
}
.sidebar-panel-heading,
.sidebar-panel-toolbar {
min-width: 0;
display: flex;
align-items: center;
border-bottom: 1px solid var(--line);
background: light-dark(#faf9f7, #151619);
}
.sidebar-panel-heading { justify-content: center; border-right: 1px solid var(--line); }
.sidebar-panel-mark { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-3); }
.sidebar-panel-mark .icon { width: 14px; height: 14px; }
.sidebar-panel-toolbar { padding: 0 7px 0 10px; }
.sidebar-panel-toolbar .code-toolbar { width: 100%; }
.sidebar-panel-nav {
min-width: 0;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 4px 5px 24px;
border-right: 1px solid var(--line);
background: light-dark(#f4f3f0, #121316);
scrollbar-width: none;
}
.sidebar-panel-nav::-webkit-scrollbar { width: 0; }
.sidebar-panel-item {
width: 32px;
height: 32px;
display: grid;
place-items: center;
margin: 0 auto 2px;
padding: 0;
border: 0;
border-radius: var(--timeline-item-radius);
background: transparent;
color: light-dark(#8a877f, #858a93);
text-align: left;
transition: color 100ms ease;
}
.sidebar-panel-item:hover { color: light-dark(#3a3935, #bfc2c9); }
.sidebar-panel-item.active {
background: light-dark(#e5e2dd, #181a1f);
color: light-dark(#1b1a18, #cfd2d8);
}
.sidebar-panel-item .icon { width: 14px; height: 14px; }
.sidebar-panel-content { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.sidebar-panel-toolbar { justify-content: space-between; gap: 8px; }
.media-status { padding: 8px 10px; color: light-dark(#c0303f, #e58b92); font-size: 10px; }
.source-code { min-width: 0; min-height: 0; overflow: hidden; }
.source-code > .code { height: 100%; }
.source-code .code-scroll { background: light-dark(#faf9f7, #141518); }
.task-list { flex: 1; min-height: 0; overflow: auto; padding: 12px 10px 28px; background: light-dark(#f4f3f0, #121316); }
.task-card { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; align-items: start; gap: 9px; margin-bottom: 8px; padding: 11px 9px; border: 1px solid light-dark(#e5e2dd, #25272c); border-radius: 4px; background: light-dark(#ffffff, #191b20); }
.task-state { display: grid; place-items: center; width: 24px; height: 24px; color: light-dark(#8a877f, #858c98); }
.task-state .icon { width: 17px; height: 17px; }
.task-copy { min-width: 0; }
.task-title { min-width: 0; }
.task-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; overflow: hidden; padding: 0; border: 0; background: none; color: light-dark(#1b1a18, #dfe1e5); font: 500 11px/17px var(--font-ui); text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.task-name:hover { color: light-dark(#000000, #fff); }
.task-name:focus-visible { outline: 1px solid light-dark(#a8a49c, #626875); outline-offset: 2px; border-radius: 2px; }
.task-facts { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 5px; line-height: 14px; }
.task-status { color: light-dark(#6b6963, #949aa5); font-size: 10px; }
.task-facts time { color: light-dark(#8a877f, #727985); font-size: 9px; }
.task-running .task-state, .task-running .task-status, .task-queued .task-state, .task-queued .task-status, .task-waiting .task-state, .task-waiting .task-status, .task-saving-result .task-state, .task-saving-result .task-status { color: light-dark(#3f6f8a, #8daabb); }
.task-complete .task-state, .task-complete .task-status { color: light-dark(#3f7a5a, #87a896); }
.task-failed .task-state, .task-failed .task-status, .task-attention .task-state, .task-attention .task-status { color: light-dark(#a3453d, #c99490); }
.task-progress { margin-top: 7px; overflow: hidden; color: light-dark(#6b6963, #9ba1ac); font-size: 10px; line-height: 15px; white-space: nowrap; text-overflow: ellipsis; }
.task-detail { margin-top: 7px; color: light-dark(#a3453d, #bc9693); font-size: 10px; line-height: 15px; }
.task-error-message { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; user-select: text; }
.task-card.selected { background: light-dark(#f0eeea, #24272d); }
.task-card.selected .task-error-message { display: block; }
.task-copy-error { display: none; margin-top: 6px; padding: 0; border: 0; background: transparent; color: light-dark(#5c5a54, #aeb4bf); font: inherit; cursor: pointer; }
.task-card.selected .task-copy-error { display: inline-block; }
.task-card:focus-visible { outline: 1px solid light-dark(#a8a49c, #626875); outline-offset: -1px; }
.task-context { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; color: light-dark(#3a3935, #b9bfca); }
.task-context::before { content: "/"; flex: none; color: light-dark(#a8a49c, #5d6572); margin-right: 3px; }
.sidebar-panel-toolbar > .library-refresh { margin-left: auto; }
.sidebar-panel-toolbar:has(.task-context:not([hidden])) > .code-location { flex: none; max-width: 90px; }
.task-context[hidden] { display: none; }
.task-context-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; background: transparent; color: inherit; font: 500 10px/16px var(--font-ui); text-align: left; }
.task-context-name .icon { flex: none; }
.task-context-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-context-clear { flex: none; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: light-dark(#6b6963, #929aa7); }
.task-context-clear:hover, .task-context-name:hover { color: light-dark(#1b1a18, #f1f2f5); }
.task-context-clear:hover { background: light-dark(#e8e5e0, #30343c); }
.task-context button:focus-visible { outline: 1px solid light-dark(#a8a49c, #626875); }
.task-open { display: grid; place-items: center; width: 20px; height: 24px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: light-dark(#8a877f, #707885); }
.task-open .icon { width: 14px; height: 14px; }
.task-open:hover { color: light-dark(#1b1a18, #dfe1e5); background: light-dark(#e8e5e0, #25282f); }
.task-open:focus-visible { outline: 1px solid light-dark(#a8a49c, #626875); }
.artifact-grid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, 104px); align-content: start; justify-content: space-between; gap: 12px; padding: 14px 12px 30px; background: light-dark(#f4f3f0, #121316); }
.artifact-card { --artifact-selection: light-dark(#e5e2dd, #24272d); min-width: 0; padding: 0; border: 0; border-radius: 3px; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.artifact-card:focus-visible { outline: none; }
.artifact-card:focus-visible .artifact-preview { outline: 1px solid light-dark(#a8a49c, #656b79); outline-offset: 2px; border-radius: 3px; }
.artifact-preview { position: relative; flex: none; min-height: 0; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.artifact-preview img, .artifact-preview video { position: absolute; display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 2px; object-fit: contain; }
.artifact-video .artifact-preview video { opacity: 0; pointer-events: none; }
.artifact-video .artifact-preview video.is-ready { opacity: 1; }
.artifact-glyph { display: none; }
.artifact-audio .artifact-glyph { display: grid; position: absolute; place-items: center; width: 100%; height: 42px; color: light-dark(#3f7a5a, #87a896); background: light-dark(#e3ece6, #202824); border-radius: 2px; }
.artifact-audio .artifact-waveform { display: block; visibility: hidden; width: 100%; height: 42px; padding: 8px 4px; background: light-dark(#e3ece6, #202824); }
.artifact-audio .artifact-waveform.is-ready { visibility: visible; }
.artifact-waveform.is-ready ~ .artifact-glyph { display: none; }
.artifact-type { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.artifact-copy { min-width: 0; height: 44px; padding-top: 6px; text-align: center; }
.artifact-name, .artifact-name-editor { box-sizing: border-box; width: 100%; margin: 0; padding: 0 4px; border: 1px solid transparent; border-radius: 3px; color: light-dark(#1b1a18, #d8dae0); background: transparent; font: 500 11px/18px var(--font-ui); text-align: center; word-break: break-all; overflow-wrap: anywhere; }
.artifact-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 38px; overflow: hidden; white-space: normal; cursor: text; }
.artifact-name-text { padding: 1px 2px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.artifact-name:focus-visible { outline: none; box-shadow: inset 0 0 0 1px light-dark(#a8a49c, #626875); }
.artifact-name[hidden] { display: none; }
.artifact-copy.editing { height: auto; min-height: 44px; }
.artifact-name-editor { display: block; min-height: 20px; resize: none; overflow: hidden; outline: none; color: light-dark(#1b1a18, #f1f2f5); box-shadow: inset 0 0 0 1px light-dark(#a8a49c, #626875); }
.artifact-name-editor:focus-visible { outline: none; box-shadow: inset 0 0 0 1px light-dark(#a8a49c, #626875); }
.artifact-name-editor::selection { color: light-dark(#1b1a18, #fff); background: light-dark(#d1cdc7, #4b5263); }
.artifact-name-error { display: block; color: light-dark(#a3453d, #bd9c92); font-size: 9px; line-height: 13px; overflow-wrap: anywhere; }
.library-empty { grid-column: 1 / -1; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.library-empty-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid light-dark(#e5e2dd, #292c31); border-radius: 12px; background: linear-gradient(145deg, light-dark(#ffffff, #202227), light-dark(#f4f3f0, #18191d)); color: light-dark(#a8a49c, #666b74); box-shadow: 0 9px 24px rgba(0, 0, 0, .12); }
.library-empty-icon .icon { width: 21px; height: 21px; }
.library-empty strong { color: light-dark(#5c5a54, #aeb2ba); font-size: 11px; font-weight: 600; }
.library-empty p { max-width: 260px; margin: 6px 0 0; color: light-dark(#8a877f, #666b74); font-size: 9px; line-height: 1.55; }
.code { --code-inline-end: 12px; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.code-toolbar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.code-actions { display: flex; align-items: center; gap: 5px; }
.code-location {
min-width: 0;
overflow: hidden;
color: light-dark(#3a3935, #cfd2d8);
font: 600 10px/1.2 var(--font-mono);
text-overflow: ellipsis;
white-space: nowrap;
}
.code-save-state { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.code-save-state.saving, .code-save-state.dirty { color: light-dark(#9a6a1c, #d0a96c); }
.code-save-state.saved { color: light-dark(#2f8a63, #65b796); }
.code-save-state.error { color: var(--danger); }
.code-scroll {
position: relative;
flex: 1;
min-height: 0;
overflow: auto;
padding: 10px 0 42px;
background: light-dark(#faf9f7, #141518);
font: 11px/19px var(--font-mono);
user-select: text;
}
.code-editor {
display: none;
flex: 1;
min-height: 0;
width: 100%;
resize: none;
overflow: auto;
padding: 10px var(--code-inline-end) 42px 46px;
border: 0;
outline: none;
background: light-dark(#faf9f7, #141518);
color: light-dark(#3a3935, #b5b8bf);
font: 11px/19px var(--font-mono);
tab-size: 2;
caret-color: var(--interaction-accent);
user-select: text;
white-space: pre;
}
.code-wrap[aria-pressed="true"] { background: light-dark(#e8e5e0, #24262a); color: light-dark(#1b1a18, #cfd2d8); }
.code.is-wrapped .code-scroll { overflow-x: hidden; }
.code.is-wrapped .code-line { width: 100%; }
.code.is-wrapped .code-line code { min-width: 0; flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.code.is-wrapped .code-editor { white-space: pre-wrap; overflow-wrap: anywhere; }
.code.is-editing .code-scroll { display: none; }
.code.is-editing .code-editor { display: block; }
.code-line { position: relative; display: flex; align-items: flex-start; width: max-content; min-width: 100%; min-height: 19px; }
.code-line .line-number {
width: 42px;
flex: none;
padding-right: 14px;
color: light-dark(#c4c0b9, #454850);
text-align: right;
user-select: none;
}
.code-line code { flex: none; padding-right: var(--code-inline-end); color: light-dark(#3a3935, #bebebe); font: inherit; white-space: pre; }
.tok-header, .tok-comment { color: light-dark(#a8a49c, #4e5358); font-style: italic; }
.tok-punct { color: light-dark(#8a877f, #686c71); }
.tok-tag { color: light-dark(#2f6aa3, #6896c6); }
.tok-attr { color: light-dark(#6a5ca8, #8f83b7); }
.tok-string { color: light-dark(#3d7a4a, #76aa80); }
.tok-reference { color: light-dark(#b55a41, #e18f7a); }
.tok-marker { color: var(--intent-depth-1); font-weight: 500; }
.tok-role { color: light-dark(#9c4d85, #ca84b3); }
.tone-0 { --tone: var(--intent-depth-0); }
.tone-1 { --tone: var(--intent-depth-1); }
.tone-2 { --tone: var(--intent-depth-2); }
.tone-3 { --tone: var(--intent-depth-3); }
.tok-marker.tone-0, .tok-marker.tone-1, .tok-marker.tone-2, .tok-marker.tone-3 {
color: var(--tone);
background: transparent;
}
.range-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.spoken { position: absolute; z-index: 0; border-radius: 2px; background: color-mix(in srgb, var(--speech) 18%, transparent); pointer-events: none; }
.range-element { fill: light-dark(rgba(0, 0, 0, .03), rgba(255, 255, 255, .035)); stroke: light-dark(rgba(0, 0, 0, .45), rgba(255, 255, 255, .64)); stroke-width: 1; }
.range-binding { fill: transparent; stroke: var(--tone, var(--intent-depth-2)); stroke-width: 1; }
/* Preview */
.stage { height: 100%; min-height: 0; display: flex; flex-direction: column; background: var(--panel); }
.stage-viewport {
flex: 1;
min-height: 0;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
background: light-dark(#f4f3f0, #111214);
}
.stage-scaler { position: relative; transform-origin: top left; }
.stage iframe {
display: block;
border: 0;
background: #000;
transform-origin: top left;
pointer-events: none;
box-shadow: 0 0 0 1px light-dark(#e5e2dd, #27292d), 0 10px 34px light-dark(rgba(0, 0, 0, .12), rgba(0, 0, 0, .35));
}
.stage-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.box { --tone: #fff; }
.box-content { fill: transparent; stroke: rgba(228, 231, 236, .72); stroke-width: 1.5; }
.box-content-guide { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; stroke-dasharray: 3 4; }
.box-label {
fill: #fff;
font: 500 23px var(--font-ui);
paint-order: stroke;
stroke: rgba(0, 0, 0, .85);
stroke-width: 5px;
}
.box-elsewhere { opacity: .26; }
.stage-bar {
position: relative;
height: 42px;
flex: none;
display: flex;
align-items: center;
justify-content: center;
gap: 2px;
border-top: 1px solid var(--line);
background: var(--panel);
}
.stage-bar button {
width: 28px;
height: 22px;
display: grid;
place-items: center;
padding: 0;
border: 0;
border-radius: 4px;
background: transparent;
color: light-dark(#5c5a54, #b6b9c0);
}
.stage-bar button[data-play] { width: 30px; height: 30px; color: light-dark(#1b1a18, #f0f1f3); }
.stage-mute { margin-left: 5px; }
/* Inspector */
.workspace-panel,
.workspace-panel * {
scrollbar-width: none;
-ms-overflow-style: none;
}
.workspace-panel::-webkit-scrollbar,
.workspace-panel *::-webkit-scrollbar { width: 0; height: 0; }
.workspace-scroll { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.workspace-section, .inspector { min-width: 0; }
.inspector { display: flex; flex-direction: column; }
.inspector-domain-tabs {
justify-content: flex-start;
gap: 18px;
padding: 0 10px;
overflow: hidden;
}
.inspector-domain-tab {
position: relative;
height: 100%;
min-width: 0;
display: flex;
align-items: center;
gap: 7px;
padding: 0 2px;
border: 0;
background: transparent;
color: var(--text-2);
}
.inspector-domain-tab > strong { font-size: 12px; font-weight: 500; white-space: nowrap; }
.inspector-domain-tab.active { color: var(--interaction-accent); }
.inspector-domain-tab.active::after {
content: "";
position: absolute;
right: 0;
bottom: -1px;
left: 0;
height: 2px;
border-radius: 2px 2px 0 0;
background: var(--interaction-accent);
box-shadow: 0 -3px 12px color-mix(in srgb, var(--interaction-accent) 28%, transparent);
}
.inspector-subtabs {
min-height: 28px;
display: flex;
align-items: center;
gap: 2px;
margin: 10px 12px 4px;
padding: 2px;
border-radius: 5px;
background: var(--subtab-surface);
overflow: hidden;
}
.inspector-subtab {
min-width: 0;
width: 0;
flex: 1 1 0;
height: 24px;
overflow: hidden;
padding: 0 5px;
border: 0;
border-radius: 4px;
background: transparent;
color: var(--text-3);
white-space: nowrap;
}
.inspector-subtab > span {
display: block;
overflow: hidden;
font-size: 11px;
font-weight: 500;
line-height: 1;
white-space: nowrap;
}
.inspector-subtab.active { background: var(--subtab-active-surface); color: var(--subtab-active-text); }
.inspector-empty { padding: 28px 14px; color: var(--text-3); font-size: 11px; text-align: center; }
.property-group { min-width: 0; padding: 14px 14px 16px; border-bottom: 1px solid var(--line); }
.property-group h3 { margin: 0 0 10px; color: light-dark(#3a3935, #c4c6cc); font-size: 11px; font-weight: 500; }
.property-grid { min-width: 0; }
.property {
min-width: 0;
min-height: 30px;
display: grid;
grid-template-columns: 80px minmax(0, 1fr);
align-items: start;
gap: 24px;
padding: 5px 0;
}
.property > span {
overflow: hidden;
color: var(--text-3);
font-size: 11px;
line-height: 18px;
text-overflow: ellipsis;
white-space: nowrap;
}
.property > strong {
min-width: 0;
overflow: visible;
color: var(--text-2);
font-size: 11px;
font-weight: 500;
line-height: 18px;
overflow-wrap: anywhere;
text-align: left;
white-space: normal;
font-variant-numeric: tabular-nums;
}
.property-code > strong { font: 11px/18px var(--font-mono); }
.property-number > strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.parameter-group .property-grid { display: flex; flex-direction: column; gap: 7px; }
.inspector-object-group > .property-grid { display: flex; flex-direction: column; gap: 7px; }
.inspector-object {
min-width: 0;
border: 1px solid light-dark(#e5e2dd, #2b2e34);
border-radius: 4px;
background: light-dark(#faf9f7, #191a1e);
}
.inspector-object > summary {
padding: 8px 10px;
color: var(--text-2);
font-size: 11px;
font-weight: 500;
cursor: pointer;
}
.inspector-object-fields { border-top: 1px solid var(--line); }
.inspector-object-fields > .property-group:last-child { border-bottom: 0; }
.parameter-row {
min-width: 0;
min-height: 30px;
display: grid;
grid-template-columns: minmax(76px, 1fr) minmax(96px, 132px);
column-gap: 16px;
align-items: center;
padding: 1px 0;
}
.parameter-label { min-width: 0; overflow: hidden; color: var(--text-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.parameter-right { min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 5px; }
.parameter-value {
min-width: 0;
width: 100%;
box-sizing: border-box;
border: 1px solid light-dark(#e5e2dd, #2b2e34);
border-radius: 4px;
padding: 5px 7px;
background: light-dark(#ffffff, #1a1b1f);
color: var(--text);
font: 11px/1.2 var(--font-mono);
font-variant-numeric: tabular-nums;
text-align: right;
caret-color: var(--interaction-accent);
cursor: text !important;
}
.parameter-display { width: 100%; padding: 5px 7px; color: var(--text-2); font-size: 11px; line-height: 1.2; text-align: right; overflow-wrap: anywhere; user-select: text; font-variant-numeric: tabular-nums; }
.parameter-value:focus { border-color: light-dark(#a8a49c, #6a6e77); outline: 0; background: light-dark(#ffffff, #131417); }
.control-boolean .parameter-right { justify-content: flex-end; }
.control-boolean .parameter-value {
appearance: none;
width: 34px;
height: 18px;
flex: none;
position: relative;
border: 0;
border-radius: 10px;
padding: 0;
background: light-dark(#dcd8d2, #292b30);
cursor: default !important;
}
.control-boolean .parameter-value::before {
content: "";
position: absolute;
top: 3px;
left: 3px;
width: 12px;
height: 12px;
border-radius: 50%;
background: light-dark(#ffffff, #a9acb3);
transition: transform 100ms ease;
}
.control-boolean .parameter-value:focus-visible { box-shadow: 0 0 0 1px light-dark(#a8a49c, #777b84); }
.control-boolean .parameter-value:checked { background: light-dark(#3a3935, #45484f); }
.control-boolean .parameter-value:checked::before { transform: translateX(16px); background: light-dark(#ffffff, #f2f3f5); }
.parameter-color {
position: relative;
width: 25px;
height: 25px;
display: grid;
place-items: stretch;
flex: none;
padding: 3px;
border: 1px solid light-dark(#e5e2dd, #2b2e34);
border-radius: 4px;
background: light-dark(#ffffff, #1a1b1f);
overflow: hidden;
}
.parameter-color:focus-within,
.parameter-color[data-open="true"] { border-color: light-dark(#a8a49c, #6a6e77); outline: 0; background: light-dark(#ffffff, #131417); }
.parameter-color-swatch { display: block; min-width: 0; min-height: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .1), rgba(255, 255, 255, .08)); }
.parameter-color-field { min-width: 0; width: 100%; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 5px; }
.parameter-color-native {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.parameter-color-value { width: min(100%, 102px); }
.control-list,
.control-record { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 6px; }
.control-list > .parameter-right,
.control-record > .parameter-right { grid-column: 1 / -1; width: 100%; }
.parameter-structured { min-width: 0; width: 100%; }
.parameter-structured-summary {
min-height: 20px;
display: flex;
align-items: center;
justify-content: flex-end;
color: var(--text-3);
font: 10px/1 var(--font-mono);
}
.parameter-list-items { display: flex; flex-direction: column; gap: 5px; }
.parameter-list-item {
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 5px;
padding: 5px;
border: 1px solid light-dark(#e5e2dd, #272a30);
border-radius: 5px;
background: light-dark(#f4f3f0, #17181c);
}
.parameter-list-item.record { align-items: start; }
.parameter-list-actions { display: flex; align-items: center; gap: 2px; }
.parameter-list-actions button {
width: 20px;
height: 22px;
display: grid;
place-items: center;
padding: 0;
border: 0;
border-radius: 3px;
background: transparent;
color: light-dark(#8a877f, #747881);
font: 10px/1 var(--font-ui);
}
.parameter-list-actions button:disabled { color: light-dark(#d1cdc7, #34373d); }
.parameter-list-actions button:not(:disabled):focus-visible { outline: 1px solid light-dark(#a8a49c, #62666f); }
.parameter-list-actions .icon { width: 11px; height: 11px; }
.parameter-record-fields { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.parameter-structured-footer {
min-height: 30px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding-top: 6px;
}
.parameter-structured-footer button {
min-height: 24px;
padding: 0 7px;
border: 1px solid light-dark(#e5e2dd, #2b2e34);
border-radius: 4px;
background: light-dark(#ffffff, #191a1e);
color: light-dark(#6b6963, #8c9098);
font: 10px/1 var(--font-ui);
}
.parameter-structured-footer button:disabled { color: light-dark(#c4c0b9, #454850); background: light-dark(#f4f3f0, #16171a); }
.parameter-structured-add { display: inline-flex; align-items: center; gap: 4px; }
.parameter-structured-add .icon { width: 11px; height: 11px; }
.parameter-structured-notice { margin-top: 6px; color: var(--text-3); font: 10px/1.4 var(--font-ui); }
.parameter-structured-notice[hidden] { display: none; }
.parameter-select { position: relative; width: 100%; min-width: 0; }
.parameter-select-trigger {
width: 100%;
min-width: 0;
height: 27px;
display: grid;
grid-template-columns: minmax(0, 1fr) 12px;
align-items: center;
gap: 5px;
padding: 0 6px 0 8px;
border: 1px solid light-dark(#e5e2dd, #2b2e34);
border-radius: 4px;
background: light-dark(#ffffff, #1a1b1f);
color: var(--text);
font: 11px/1.2 var(--font-mono);
}
.parameter-select-trigger:focus-visible,
.parameter-select.open .parameter-select-trigger {
border-color: light-dark(#a8a49c, #6a6e77);
outline: 0;
background: light-dark(#ffffff, #131417);
}
.parameter-select-value { min-width: 0; overflow: hidden; text-align: right; white-space: nowrap; }
.parameter-select-chevron { display: grid; place-items: center; color: light-dark(#8a877f, #747881); transition: transform 100ms ease; }
.parameter-select-chevron .icon { width: 12px; height: 12px; }
.parameter-select.open .parameter-select-chevron { transform: rotate(180deg); }
.parameter-select-menu {
position: absolute;
z-index: 30;
top: calc(100% + 4px);
right: 0;
width: 100%;
max-height: 184px;
overflow-y: auto;
padding: 3px;
border: 1px solid light-dark(#e5e2dd, #34373e);
border-radius: 5px;
background: light-dark(#ffffff, #15161a);
box-shadow: 0 10px 26px light-dark(rgba(27, 26, 24, .16), rgba(0, 0, 0, .42));
}
.parameter-select.open-up .parameter-select-menu { top: auto; bottom: calc(100% + 4px); }
.parameter-select.rich-options .parameter-select-menu { width: 240px; max-height: 240px; }
.parameter-select-menu[hidden] { display: none; }
.parameter-select-option {
width: 100%;
min-height: 27px;
overflow: hidden;
padding: 0 8px;
border: 0;
border-radius: 3px;
background: transparent;
color: light-dark(#6b6963, #8e929a);
font: 11px/1.2 var(--font-mono);
text-align: right;
white-space: nowrap;
}
.parameter-select-option.active { background: light-dark(#f0eeea, #202226); color: light-dark(#1b1a18, #d5d7dc); }
.parameter-select-option:focus-visible { outline: 0; background: light-dark(#e8e5e0, #292b30); color: var(--text); }
.parameter-right > small { flex: none; color: var(--text-3); font-size: 10px; }
.parameter-value[type="number"] { appearance: textfield; }
.parameter-value[type="number"]::-webkit-inner-spin-button { opacity: .55; }
.parameter-value:invalid { border-color: light-dark(#c7325a, #a45c60); }
.parameter-value[readonly] { color: var(--text-3); }
.parameter-multiline { min-height: 64px; resize: vertical; text-align: left; line-height: 1.5; }
.parameter-select-option { padding: 6px 8px; white-space: normal; text-align: left; }
.parameter-select-option > small { display: block; margin-top: 3px; color: var(--text-3); font: 10px/1.4 var(--font-ui); }
.parameter-option-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 7px; border-radius: 2px; vertical-align: middle; box-shadow: inset 0 0 0 1px light-dark(#0000001a, #ffffff22); }
.parameter-option-font { display: block; margin-top: 4px; font-size: 18px; }
.control-color .parameter-right { flex-wrap: wrap; }
.parameter-swatches { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 3px; }
.parameter-swatches button { width: 18px; height: 18px; border: 1px solid light-dark(#0000001a, #ffffff22); border-radius: 3px; }
.parameter-swatches button:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
.status.saving { color: var(--text-2); }
.status.saved { color: var(--ok); }
/* Timeline */
.timeline { height: 100%; min-height: 0; display: flex; flex-direction: column; background: light-dark(#f4f3f0, #0f1013); }
.timeline-toolbar {
height: 38px;
flex: none;
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: 0 8px;
border-bottom: 1px solid var(--line);
background: var(--panel);
}
.timeline-tools, .timeline-view-actions { min-width: 0; display: flex; align-items: center; gap: 3px; }
.timeline-view-actions { justify-content: flex-end; }
.meta { font-variant-numeric: tabular-nums; }
.timeline-time {
color: var(--text);
font: 500 14px/1 var(--font-mono);
font-variant-numeric: tabular-nums;
letter-spacing: .01em;
}
.timeline { --timeline-ruler-height: 22px; }
.timeline-body {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: var(--timeline-label-width) 8px minmax(0, 1fr);
overflow-x: hidden;
overflow-y: auto;
overflow-anchor: none;
overscroll-behavior: contain;
scrollbar-width: none;
background: var(--lane);
}
.timeline-body::-webkit-scrollbar { width: 0; }
.timeline-labels {
position: sticky;
left: 0;
z-index: 5;
border-right: 1px solid var(--line-strong);
background: light-dark(#faf9f7, #111216);
}
.label-corner {
position: sticky;
top: 0;
z-index: 10;
height: var(--timeline-ruler-height);
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 8px;
border-bottom: 1px solid light-dark(#e5e2dd, #191b1f);
background: light-dark(#faf9f7, #111216);
color: var(--text-3);
font: 500 11px/1 var(--font-mono);
}
.track-label {
position: relative;
min-width: 0;
min-height: 0;
display: grid;
grid-template-columns: 18px minmax(0, 1fr);
align-items: center;
gap: 7px;
padding: 0 15px;
text-align: left;
border-bottom: 0;
background: transparent;
isolation: isolate;
}
.track-label::before {
content: "";
position: absolute;
z-index: -1;
inset: var(--timeline-item-inset-y) 6px;
border-radius: var(--timeline-item-radius);
background: light-dark(#f0eeea, #181a1f);
}
.track-label > * { position: relative; z-index: 1; }
.track-icon { width: 18px; height: 18px; display: grid; place-items: center; align-self: center; color: light-dark(#8a877f, #858a93); }
.track-icon .icon { display: block; width: 14px; height: 14px; }
.track-copy { min-width: 0; }
.track-copy { text-align: left; justify-self: stretch; }
.track-copy strong {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
}
.track-copy strong { color: light-dark(#3a3935, #cfd2d8); font-size: 11px; font-weight: 500; line-height: 18px; }
.track-attachment-mark {
position: relative;
width: 18px;
height: 18px;
justify-self: center;
}
.track-attachment-mark::before,
.track-attachment-mark::after {
content: "";
position: absolute;
pointer-events: none;
background: light-dark(#a8a49c, #737985);
border-radius: 999px;
}
.track-attachment-mark::before {
top: 1px;
bottom: 50%;
left: 7px;
width: 1.5px;
}
.track-attachment-mark::after {
top: 50%;
left: 7px;
width: 6px;
height: 1.5px;
transform: translateY(-50%);
}
.track-tone-blue { --track: var(--tone-blue); --rail: var(--tone-blue-rail); }
.track-tone-blue-muted { --track: var(--tone-blue-muted); --rail: var(--tone-blue-muted-rail); }
.track-tone-green { --track: var(--tone-green); --rail: var(--tone-green-rail); }
.track-tone-green-muted { --track: var(--tone-green-muted); --rail: var(--tone-green-muted-rail); }
.track-tone-teal { --track: var(--tone-teal); --rail: var(--tone-teal-rail); }
.track-tone-violet { --track: var(--tone-violet); --rail: var(--tone-violet-rail); }
.track-tone-magenta { --track: var(--tone-magenta); --rail: var(--tone-magenta-rail); }
.track-tone-magenta-muted { --track: var(--tone-magenta-muted); --rail: var(--tone-magenta-muted-rail); }
.track-tone-orange { --track: var(--tone-orange); --rail: var(--tone-orange-rail); }
.track-tone-orange-muted { --track: var(--tone-orange-muted); --rail: var(--tone-orange-muted-rail); }
.track-tone-neutral { --track: var(--tone-neutral); --rail: var(--tone-neutral-rail); }
.timeline-lanes { position: relative; min-width: 0; cursor: default; user-select: none; touch-action: pan-y; }
.ruler {
position: sticky;
top: 0;
z-index: 9;
height: var(--timeline-ruler-height);
overflow: hidden;
border-bottom: 1px solid var(--line);
background: light-dark(#faf9f7, #111216);
}
.tick {
position: absolute;
top: 0;
height: 8px;
padding-left: 4px;
border-left: 1px solid light-dark(#d1cdc7, #35383e);
color: transparent;
font: 500 10px/14px var(--font-mono);
white-space: nowrap;
}
.tick-major { height: 16px; border-left-color: light-dark(#a8a49c, #686d76); color: light-dark(#6b6963, #9da2ac); }
.tick-minor { top: 8px; height: 6px; border-left-color: light-dark(#e5e2dd, #2a2d32); }
.tick-second.tick-minor { top: 6px; height: 10px; border-left-color: light-dark(#d1cdc7, #3a3d43); }
.tick-subdivision { top: 10px; height: 6px; padding: 0; border-left-color: light-dark(#e5e2dd, #292c31); }
.tick-frame { top: 11px; height: 5px; border-left-color: light-dark(#ebe8e4, #24272c); }
.ruler-context {
position: absolute;
z-index: 2;
top: 0;
left: 0;
height: 16px;
min-width: 48px;
padding-left: 4px;
background: linear-gradient(90deg, light-dark(#faf9f7, #111216) 76%, light-dark(rgba(250, 249, 247, 0), rgba(17, 18, 22, 0)));
color: light-dark(#5c5a54, #a9aeb7);
font: 500 10px/14px var(--font-mono);
white-space: nowrap;
pointer-events: none;
}
.tick-frame-label {
position: absolute;
z-index: 1;
top: 0;
padding-left: 3px;
color: light-dark(#8a877f, #858b95);
font: 500 10px/14px var(--font-mono);
white-space: nowrap;
pointer-events: none;
}
.tick-last { padding-right: 4px; padding-left: 0; border-right: 1px solid light-dark(#c4c0b9, #45484e); border-left: 0; transform: translateX(-100%); }
.lanes { min-height: 0; cursor: default; }
.lane { position: relative; isolation: isolate; min-height: 0; overflow: hidden; border-bottom: 1px solid light-dark(#ebe8e4, #191b1f); background: var(--lane); }
.temporal-domain-group { position: sticky; top: var(--timeline-ruler-height); z-index: 8; background: var(--lane); }
.temporal-domain-lane { position: relative; min-height: 0; border-bottom: 0; background: var(--lane); }
.temporal-domain-lane:last-child { border-bottom: 1px solid var(--line); }
.temporal-domain-band {
position: absolute;
right: 0;
left: 0;
height: var(--temporal-domain-band-height);
overflow: hidden;
background: var(--lane);
box-shadow: inset 0 -1px var(--line);
isolation: isolate;
}
.temporal-domain-band:last-child { box-shadow: none; }
.lane-attached {
border-left: 0;
background: var(--lane);
}
.timeline-labels > .track-label:last-child,
.lanes > .lane:last-child { border-bottom: 0; }
.temporal-domain-cell {
--temporal-domain-cell: color-mix(in srgb, var(--speech) 54%, var(--lane));
position: absolute;
top: 0;
height: var(--temporal-domain-band-height);
min-width: 2px;
overflow: hidden;
display: flex;
align-items: center;
padding: 0;
border: 0;
border-radius: 0;
background: var(--temporal-domain-cell);
box-shadow: inset 0 0 0 1px light-dark(#ffffffb3, #ffffff12);
color: var(--text);
text-align: left;
cursor: default;
}
.temporal-domain-cell:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px light-dark(#00000059, #ffffff60); }
.temporal-domain-block {
--temporal-domain-cell: var(--temporal-domain-block);
}
.temporal-domain-compact {
--temporal-domain-cell: var(--temporal-domain-compact);
color: light-dark(var(--temporal-domain-ink), #e7e8eb);
}
.temporal-domain-cell.live { filter: brightness(1.12); }
.temporal-domain-cell.selected { z-index: 4; filter: brightness(1.16); box-shadow: inset 0 0 0 1px light-dark(#00000059, #ffffff60); }
.temporal-domain-point.selected { z-index: 5; filter: brightness(1.16); box-shadow: inset 0 0 0 1px light-dark(#00000059, #ffffff60); }
:root[data-theme="light"] .temporal-domain-cell.live { filter: brightness(.94); }
:root[data-theme="light"] :is(.temporal-domain-cell, .temporal-domain-point).selected { filter: brightness(.9); }
.temporal-domain-block-label {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: clip;
color: var(--temporal-domain-ink);
font-size: 11px;
font-weight: 500;
white-space: nowrap;
}
.temporal-domain-compact.current { background: var(--temporal-domain-current); color: #fff; }
.temporal-domain-compact-label {
display: none;
font-size: 11px;
font-weight: 500;
line-height: 1;
white-space: nowrap;
}
.temporal-domain-compact.word-label-visible .temporal-domain-compact-label { display: block; }
.temporal-domain-cell-content {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 100%;
min-width: 0;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 6px;
overflow: hidden;
padding: 0 0 0 5px;
}
.temporal-domain-compact .temporal-domain-cell-content { padding: 0 5px; }
.temporal-domain-point {
position: absolute;
top: calc((var(--temporal-domain-band-height) - 9px) / 2);
z-index: 1;
width: 9px;
height: 9px;
transform: translateX(-50%) scaleX(.6) rotate(45deg);
border-radius: 0;
padding: 0;
border: 1px solid var(--lane);
background: var(--temporal-domain-point);
}
.temporal-domain-point:focus-visible { outline: 0; }
.track-label-temporal-domain { position: sticky; top: 0; z-index: 8; border-bottom: 1px solid var(--line); background: light-dark(#faf9f7, #111216); }
.track-label-temporal-domain::before { display: none; }
.track-label-attached {
/* The branch marker occupies the same 18px prefix as a root icon;
attached and root labels therefore share one exact text column. */
padding: 0 15px;
background: transparent;
}
.track-label-attached::before { inset: var(--timeline-item-inset-y) 6px; background: light-dark(#f0eeea, #181a1f); }
.studio-item {
z-index: 0;
--track: var(--visual);
--item-head: color-mix(in srgb, var(--track) 58%, var(--lane));
--item-body: color-mix(in srgb, var(--track) 20%, var(--lane));
--item-cell: color-mix(in srgb, var(--track) 66%, var(--lane));
--item-ink: light-dark(color-mix(in srgb, var(--track) 45%, #000), #fff);
position: absolute;
top: 0;
height: calc(var(--lane-height, 52px) - 2 * var(--timeline-item-inset-y));
min-width: 2px;
margin-top: var(--timeline-item-inset-y);
overflow: hidden;
display: block;
padding: 0;
border: 0;
border-radius: var(--timeline-item-radius);
background: var(--item-body);
box-shadow: none;
color: var(--item-ink);
text-align: left;
cursor: default;
}
/* On light surfaces an item is a tint of its track hue; its text is a deep shade of the same hue. */
:root[data-theme="light"] .studio-item {
--item-head: color-mix(in srgb, var(--track) 42%, #fff);
--item-body: color-mix(in srgb, var(--track) 20%, #fff);
}
/* Only Companion-declared editable intervals enable edge gestures. */
#app .studio-item::before,
#app .studio-item::after {
content: "";
position: absolute;
z-index: 8;
top: 0;
bottom: 0;
width: 6px;
pointer-events: none;
background: transparent;
cursor: default !important;
}
#app .studio-item::before { left: 0; }
#app .studio-item::after { right: 0; }
#app .studio-item-editable::before,
#app .studio-item-editable::after {
pointer-events: auto;
cursor: ew-resize !important;
}
.studio-item.selected {
z-index: 1;
overflow: visible;
box-shadow: none;
color: var(--item-ink);
}
.studio-item.editing { box-shadow: 0 0 0 1px var(--item-ink); }
.studio-item:focus-visible { outline: 0; }
/* Draw above thumbnails and text without changing interval geometry. */
.studio-item-boundary {
position: absolute;
z-index: 5;
inset: 0;
border: 1px solid light-dark(color-mix(in srgb, var(--track) 38%, transparent), #ffffff20);
border-radius: inherit;
pointer-events: none;
}
.studio-item-selection {
position: absolute;
z-index: 6;
inset: 0;
display: none;
border: var(--timeline-selection-stroke) solid var(--timeline-selection-color);
border-radius: var(--timeline-selection-radius);
pointer-events: none;
}
.studio-item-selection::before, .studio-item-selection::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: var(--timeline-selection-edge);
background: var(--timeline-selection-color);
}
.studio-item-selection::before {
left: 0;
border-radius: var(--timeline-selection-radius) 0 0 var(--timeline-selection-radius);
}
.studio-item-selection::after {
right: 0;
border-radius: 0 var(--timeline-selection-radius) var(--timeline-selection-radius) 0;
}
.studio-item.selected > .studio-item-selection { display: block; }
.studio-item.selected > .studio-item-boundary { border-color: var(--timeline-selection-color); }
.studio-item-head {
position: absolute;
z-index: 3;
top: 0;
left: 0;
width: 100%;
height: var(--timeline-item-header-height);
display: flex;
align-items: center;
gap: 6px;
overflow: hidden;
padding: 0 0 0 5px;
border-bottom: 1px solid light-dark(color-mix(in srgb, var(--track) 22%, transparent), rgba(255, 255, 255, .13));
background: var(--item-head);
border-radius: var(--timeline-item-radius) var(--timeline-item-radius) 0 0;
}
.studio-item-body {
position: absolute;
z-index: 1;
top: var(--timeline-item-header-height);
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
background: var(--item-body);
border-radius: 0 0 var(--timeline-item-radius) var(--timeline-item-radius);
}
.studio-item-layers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.studio-item-layer { position: absolute; inset: 0; display: block; overflow: hidden; pointer-events: none; }
.studio-item-material-image, .studio-item-material-video {
background-position: left center;
background-size: auto 100%;
opacity: 1;
}
.studio-item-layer-layout-repeat-x { background-repeat: repeat-x; background-position: left center; background-size: auto 100%; }
.studio-item-layer-layout-cover { background-repeat: no-repeat; background-position: center; background-size: cover; }
.studio-item-layer-layout-contain { background-repeat: no-repeat; background-position: left center; background-size: contain; }
.studio-item-material-video { background: none; }
.studio-item-video-frame {
position: absolute;
top: 0;
bottom: 0;
background-repeat: no-repeat;
}
.studio-item-layer-layout-waveform {
inset: 2px 5px;
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: .9;
}
.studio-item-material-audio { background-image: var(--waveform); }
:root[data-theme="light"] .studio-item-material-audio {
background: color-mix(in srgb, var(--track) 70%, #000);
mask: var(--waveform) center / 100% 100% no-repeat;
}
.studio-item-layer-text {
display: flex;
height: 100%;
align-items: center;
overflow: hidden;
padding: 0 0 0 5px;
color: light-dark(var(--item-ink), #e7e8eb);
font-size: 11px;
font-weight: 500;
line-height: 1;
text-overflow: clip;
white-space: nowrap;
}
.studio-item-phase { position: absolute; bottom: 0; height: 3px; border-left: 1px solid light-dark(rgba(0, 0, 0, .14), rgba(255, 255, 255, .17)); }
.studio-item-phase-active, .studio-item-phase-enter, .studio-item-phase-exit { background: light-dark(rgba(0, 0, 0, .2), rgba(255, 255, 255, .24)); }
.studio-item-phase-settled, .studio-item-phase-body { background: light-dark(rgba(0, 0, 0, .08), rgba(255, 255, 255, .10)); }
.studio-item-phase-preferred { border-top: 1px dashed light-dark(rgba(0, 0, 0, .4), rgba(255, 255, 255, .48)); background: transparent; }
.studio-item-name, .studio-item-meta { display: block; flex: 0 0 auto; white-space: nowrap; }
.studio-item-name { color: light-dark(var(--item-ink), #eef0f3); font-size: 11px; font-weight: 500; }
.studio-item-meta {
color: light-dark(color-mix(in srgb, var(--item-ink) 72%, transparent), rgba(255, 255, 255, .75));
font: 500 11px/1 var(--font-mono);
font-variant-numeric: tabular-nums;
}
.studio-item-tone-blue { --track: var(--tone-blue); }
.studio-item-tone-blue-muted { --track: var(--tone-blue-muted); }
.studio-item-tone-green { --track: var(--tone-green); }
.studio-item-tone-green-muted { --track: var(--tone-green-muted); }
.studio-item-tone-teal { --track: var(--tone-teal); }
.studio-item-tone-violet { --track: var(--tone-violet); }
.studio-item-tone-magenta { --track: var(--tone-magenta); }
.studio-item-tone-magenta-muted { --track: var(--tone-magenta-muted); }
.studio-item-tone-orange { --track: var(--tone-orange); }
.studio-item-tone-orange-muted { --track: var(--tone-orange-muted); }
.studio-item-tone-neutral { --track: var(--tone-neutral); }
.studio-item-chrome-group {
border: 0;
background: var(--item-body);
box-shadow: none;
}
.studio-item-chrome-group > .studio-item-body { background: var(--item-body); }
.timeline-hover {
position: absolute;
top: 0;
bottom: 0;
left: 0;
z-index: 7;
display: none;
width: 1px;
background: light-dark(rgba(0, 0, 0, .25), rgba(255, 255, 255, .28));
pointer-events: none;
will-change: transform;
}
.timeline-hover.visible { display: block; }
.timeline-hover > span {
position: absolute;
top: 3px;
left: 5px;
padding: 2px 4px;
border-radius: 3px;
background: light-dark(#1b1a18, #e9ebef);
color: light-dark(#ffffff, #111318);
font: 500 10px/1.2 var(--font-mono);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.playhead {
position: absolute;
top: 0;
bottom: 0;
left: 0;
z-index: 11;
width: 2px;
background: light-dark(#1b1a18, #fff);
pointer-events: none;
will-change: transform;
}
.playhead.outside, .playhead-grip.outside { display: none; }
.playhead-grip {
position: absolute;
z-index: 12;
top: 0;
left: 0;
width: 11px;
height: 9px;
border-radius: 2px 2px 0 0;
background: light-dark(#1b1a18, #fff);
pointer-events: none;
will-change: transform;
}
.timeline-zoom {
height: 18px;
flex: none;
display: flex;
align-items: center;
padding: 0 8px 0 var(--timeline-label-width);
border-top: 1px solid light-dark(#e5e2dd, #202227);
background: light-dark(#faf9f7, #141519);
}
.zoom {
position: relative;
width: 100%;
height: 14px;
background: transparent;
}
.zoom::before {
content: "";
position: absolute;
top: 6px;
right: 0;
left: 0;
height: 2px;
border-radius: 1px;
background: light-dark(#e5e2dd, #23262c);
}
.zoom-window {
position: absolute;
top: 5px;
height: 4px;
min-width: 14px;
border-radius: 2px;
background: light-dark(#c4c0b9, #3a3e46);
transition: background 80ms ease;
}
/* The control remains easy to acquire without making its visible rail fat. */
.zoom-window::before { content: ""; position: absolute; inset: -5px 0; }
.zoom-window:active { background: light-dark(#a8a49c, #505660); }
.zoom-grip {
position: absolute;
z-index: 1;
top: -5px;
width: 12px;
height: 14px;
}
.zoom-grip-start { left: -5px; }
.zoom-grip-end { right: -5px; }
/* Resizers and errors */
.handle { position: relative; z-index: 20; background: light-dark(#edebe7, #0c0d0f); touch-action: none; }
.handle::after { content: ""; position: absolute; background: transparent; }
#app .handle-column { width: 8px; cursor: col-resize !important; }
.handle-column::after { top: 0; bottom: 0; left: 3px; width: 1px; }
#app .handle-row { height: 8px; cursor: row-resize !important; }
.handle-row::after { right: 0; left: 0; top: 3px; height: 1px; }
.failure {
position: absolute;
z-index: 50;
right: 16px;
bottom: 16px;
max-width: min(680px, calc(100vw - 32px));
margin: 0;
padding: 9px 11px;
border: 1px solid rgba(255, 100, 107, .38);
border-radius: 4px;
background: light-dark(#fdecee, #2a181a);
color: light-dark(#a1202f, #ffc1c4);
font: 11px/1.5 var(--font-mono);
white-space: pre-wrap;
pointer-events: none;
}
.failure:empty { display: none; }
@media (max-width: 920px) {
.meta, .topbar-right .status { display: none; }
.topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
.upper-shell { grid-template-columns: minmax(320px, var(--source-width)) 8px minmax(300px, 1fr); }
.workspace-handle, .workspace-panel { display: none; }
}
/* The same transport serves the composition and selected Result media. */
.stage-transport { display: flex; align-items: center; gap: 2px; }
.stage-bar button[hidden], .stage-transport[hidden], .stage-artifact[hidden], .stage-scaler[hidden] { display: none; }
.stage-bar .stage-mute { position: absolute; right: 12px; margin: 0; }
.stage-time { position: absolute; left: 12px; color: light-dark(#6b6963, #969ba5); font: 10px var(--font-mono); }
.stage-title { min-width: 0; }
.stage-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-return { flex: none; margin-left: auto; border: 0; background: transparent; color: light-dark(#5c5a54, #aeb3bd); font: 10px var(--font-ui); cursor: pointer; }
.stage-return[hidden] { display: none; }
.stage-artifact { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; }
.stage-artifact > img, .stage-artifact > video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.stage-artifact audio { display: none; }
.stage-audio-wave { width: 85%; padding: 24px 12px; border-radius: 2px; color: light-dark(#3f7a5a, #b5c2bb); background: light-dark(#e3ece6, #202824); text-align: center; }
.stage-audio-wave img { display: block; width: 100%; height: 100px; }
.stage-media-error { position: absolute; bottom: 12px; padding: 8px; background: light-dark(#f0eeea, #24262b); color: light-dark(#3a3935, #cacdd4); font-size: 11px; }
.stage-progress { position: relative; flex: none; height: 0; z-index: 2; }
.stage-progress[hidden], .scrub-preview[hidden] { display: none; }
.stage-scrubber { position: absolute; inset: -5px 0 auto; width: 100%; height: 10px; padding: 0; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.stage-scrubber::-webkit-slider-runnable-track { height: 2px; background: light-dark(#c4c0b9, #676c75); }
.stage-scrubber::-webkit-slider-thumb { appearance: none; width: 8px; height: 8px; border-radius: 50%; margin-top: -3px; background: light-dark(#1b1a18, #e1e4e9); }
.stage-scrubber::-moz-range-track { height: 2px; background: light-dark(#c4c0b9, #676c75); }
.stage-scrubber::-moz-range-thumb { width: 8px; height: 8px; border: 0; background: light-dark(#1b1a18, #e1e4e9); }
.stage-review .stage-scaler, .stage-review .stage-viewport { cursor: pointer; }
.stage-review .stage-progress { height: 24px; margin: 0 20px; }
.stage-review .stage-scrubber { top: 0; height: 24px; }
.stage-review .stage-scrubber::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: light-dark(#d1cdc7, #565b64); }
.stage-review .stage-scrubber::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; }
.stage-review .stage-scrubber::-moz-range-track { height: 4px; border-radius: 2px; background: light-dark(#d1cdc7, #565b64); }
.stage-review .stage-scrubber::-moz-range-thumb { width: 12px; height: 12px; }
.scrub-preview { position: absolute; bottom: calc(100% + 8px); padding: 3px; border: 1px solid light-dark(#d1cdc7, #4b4f56); border-radius: 4px; background: light-dark(#ffffff, #1b1d21); box-shadow: 0 4px 16px light-dark(#1b1a1829, #0006); pointer-events: none; }
.scrub-preview-picture { position: relative; display: grid; place-items: center; overflow: hidden; background: light-dark(#f4f3f0, #111215); }
.scrub-preview-picture iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; pointer-events: none; }
.scrub-preview-picture span { padding: 8px; color: var(--text-3); font: 10px var(--font-ui); text-align: center; }
.scrub-preview-picture span[hidden] { display: none; }
.scrub-preview-time { padding: 5px 3px 2px; color: light-dark(#3a3935, #d5d8df); font: 10px var(--font-mono); text-align: center; }
.preview-unavailable .artifact-type { position: static; width: auto; height: auto; clip-path: none; color: light-dark(#6b6963, #9298a2); font-size: 10px; }
.artifact-card.selected .artifact-preview { background: var(--artifact-selection); border-radius: 3px; }
.artifact-card.selected .artifact-name-text { color: light-dark(#1b1a18, #f1f2f5); background: var(--artifact-selection); }
.library-continuation { grid-column: 1 / -1; height: 28px; display: grid; place-items: center; color: light-dark(#8a877f, #777e89); font-size: 10px; }
.timeline-overlap-menu, .selection-menu {
position: fixed;
z-index: 100;
min-width: 160px;
max-width: 280px;
max-height: 240px;
overflow: auto;
padding: 4px;
border: 1px solid var(--line-strong);
border-radius: 5px;
background: var(--panel-raised);
box-shadow: 0 6px 20px light-dark(#1b1a1829, #0006);
}
.timeline-overlap-menu button, .selection-menu button {
display: block;
width: 100%;
padding: 6px 9px;
border: 0;
border-radius: 2px;
background: transparent;
color: var(--text);
font-family: inherit;
font-size: 12px;
line-height: 1.4;
text-align: left;
overflow-wrap: anywhere;
}
.timeline-overlap-menu button:hover,
.timeline-overlap-menu button:focus-visible,
.selection-menu button:hover,
.selection-menu button:focus-visible { background: var(--field); outline: none; }
/* Compact authored rules keep interval geometry without a thumbnail body. */
.studio-item-chrome-compact > .studio-item-head {
height: 100%;
border-bottom: 0;
border-radius: var(--timeline-item-radius);
background: var(--item-head);
}
.studio-item-chrome-compact > .studio-item-body,
.studio-item-chrome-compact .studio-item-meta { display: none; }
.studio-item-chrome-compact .studio-item-name { font-size: 11px; font-weight: 500; }