The platform for continuously improving AI agents.
@import "tailwindcss";
@import "tw-animate-css";
@import "./styles/feedback.css";
@source "../node_modules/streamdown/dist";
/* Geist Pixel — SIL OFL 1.1, vendored from the `geist` npm package. The metric
overrides pin a 1.20em line box over the face's own 1.30em, so anything
inheriting `line-height: normal` doesn't gain 8.3% leading. */
@font-face {
font-family: "Geist Pixel";
src: url("/fonts/GeistPixel-Square.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
ascent-override: 95.8%;
descent-override: 24.2%;
}
@font-face {
font-family: "PP Mondwest";
src: url("/fonts/PPMondwest-Regular.otf") format("opentype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* NeueBit — sidebar nav rows and the breadcrumb only (DESIGN.md § Typography).
Real Regular + Bold masters, so `font-weight: 700` is a genuine cut. */
@font-face {
font-family: "NeueBit";
src: url("/fonts/PPNeueBit-Regular.otf") format("opentype");
font-weight: 400;
font-style: normal;
font-display: swap;
ascent-override: 80%;
descent-override: 20%;
}
@font-face {
font-family: "NeueBit";
src: url("/fonts/PPNeueBit-Bold.otf") format("opentype");
font-weight: 700;
font-style: normal;
font-display: swap;
ascent-override: 80%;
descent-override: 20%;
}
body {
--font-sidebar: "NeueBit", system-ui, sans-serif;
/* The app shell owns all scrolling (the outlet's overflow-y-auto); anything
leaking past the h-screen frame must clip rather than hand the document a
second scrollbar that moves the whole shell. */
overflow: hidden;
font-family: "Geist Pixel", system-ui, -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Geist Pixel has one 400 master, so every bold synthesises. Do NOT suppress
that with `font-weight: 400 700` on the @font-face — it renders bold
identical to regular and silently deletes emphasis product-wide. */
font-synthesis: weight;
@apply m-0;
}
/* PP Mondwest is restricted to .page-title; heading tags inherit Geist Pixel. */
code {
font-family: var(--font-mono);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
}
@layer components {
/* Recharts SVGs receive a browser focus outline even after pointer clicks. */
.recharts-surface:focus:not(:focus-visible) {
outline: none;
}
.page-wrapper {
@apply space-y-6 pb-8;
}
.sidebar-label {
font-family: var(--font-sidebar);
font-size: 1.46em;
font-weight: 400;
line-height: 1;
letter-spacing: 0.05em;
}
/* 22px sizes NeueBit's caps (0.5em) to the 11px caps of the top bar's 14px
Geist Pixel controls. */
.crumb-label {
font-family: var(--font-sidebar);
font-size: 22px;
line-height: 1;
}
/* Tracking Geist Pixel by anything but a whole multiple of --tracking-cell
lands glyphs off-grid; applies anywhere else that tracks this face. */
.chip-label {
font-family: var(--font-sans);
line-height: 1;
letter-spacing: var(--tracking-cell);
}
.pixel-label {
font-family: var(--font-sans);
letter-spacing: var(--tracking-cell);
}
.title-hero,
.title-section,
.title-card {
font-family: var(--font-sans);
font-weight: 400;
letter-spacing: normal;
}
.title-hero {
font-size: 2.25rem;
line-height: 2.5rem;
}
.page-title {
font-family: var(--font-display);
font-size: 1.8225rem;
font-weight: 700;
line-height: 2.025rem;
letter-spacing: -0.015em;
}
.title-section {
font-size: 1.25rem;
line-height: 1.75rem;
}
.title-card {
font-size: 1.125rem;
line-height: 1.5rem;
}
/* `letter-spacing: normal` is load-bearing: a prose block nested in a chip or
label context would otherwise inherit tracking off the 0.038em grid.
Leading stays with the caller so this composes with `text-*`. */
.prose-body {
font-family: var(--font-prose);
letter-spacing: normal;
}
/* One masked box with two mask layers, so a single background-color drives
both segments (active rows override --elbow-color). The vertical layer
stops 12px short so the corner reads as pixel steps, not a filled square.
Used by the activity feed and trace details (live-measured row centers). */
.sidebar-elbow::before {
position: absolute;
bottom: 50%;
left: -10px;
width: 12px;
height: var(--elbow-h);
content: "";
background-color: var(--elbow-color, var(--sidebar-elbow));
-webkit-mask-image:
linear-gradient(#000 0 0),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect x='0' y='0' width='2' height='8'/%3E%3Crect x='2' y='8' width='2' height='2'/%3E%3Crect x='4' y='10' width='2' height='2'/%3E%3Crect x='6' y='10' width='6' height='2'/%3E%3C/svg%3E");
mask-image:
linear-gradient(#000 0 0),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect x='0' y='0' width='2' height='8'/%3E%3Crect x='2' y='8' width='2' height='2'/%3E%3Crect x='4' y='10' width='2' height='2'/%3E%3Crect x='6' y='10' width='6' height='2'/%3E%3C/svg%3E");
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position:
top left,
bottom left;
mask-position:
top left,
bottom left;
-webkit-mask-size:
var(--elbow-stroke, 2px) calc(100% - 12px),
12px 12px;
mask-size:
var(--elbow-stroke, 2px) calc(100% - 12px),
12px 12px;
}
.sidebar-elbow-thin::before {
--elbow-stroke: 1px;
-webkit-mask-image:
linear-gradient(#000 0 0),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M.5 0V8.5H2.5V10.5H4.5V11.5H12' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
mask-image:
linear-gradient(#000 0 0),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M.5 0V8.5H2.5V10.5H4.5V11.5H12' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
}
[data-active="true"] .sidebar-label {
font-weight: 700;
}
[data-sidebar="menu-button"][data-active="true"] {
color: var(--foreground) !important;
background: color-mix(in srgb, var(--foreground) 8%, transparent) !important;
border-radius: var(--radius-sm);
}
[data-sidebar="menu-button"][data-active="true"] svg {
color: var(--foreground) !important;
}
[data-sidebar="menu-button"] {
transition:
background 150ms ease,
color 150ms ease;
}
[data-sidebar="menu-button"]:hover {
background: color-mix(in srgb, var(--foreground) 4%, transparent) !important;
border-radius: var(--radius-sm);
}
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fade-in-up {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in {
opacity: 0;
animation: fade-in 800ms ease-out forwards;
}
.animate-fade-in-up {
opacity: 0;
animation: fade-in-up 600ms ease-out forwards;
}
/* Total duration must match DELTA_MS in header-credits.tsx. */
@keyframes credits-delta-bubble {
0% {
opacity: 0;
transform: translateY(-6px);
}
14% {
opacity: 1;
transform: translateY(0);
}
86% {
opacity: 1;
transform: translateY(0);
animation-timing-function: ease-in;
}
100% {
opacity: 0;
transform: translateY(0);
}
}
.animate-credits-delta {
animation: credits-delta-bubble 2500ms ease-out both;
}
/* No exit animation needed: the timer removes the element. */
@media (prefers-reduced-motion: reduce) {
.animate-credits-delta {
animation: none;
}
}
@keyframes blink {
0%,
50% {
opacity: 1;
}
50.01%,
100% {
opacity: 0;
}
}
.workshop-stage {
--workshop-inset: 1rem;
--workshop-panel-top: 350px;
margin: calc(-1 * var(--workshop-inset));
}
@media (min-width: 640px) {
.workshop-stage {
--workshop-panel-top: clamp(350px, 56dvh, 560px);
}
}
@media (min-width: 768px) {
.workshop-stage {
--workshop-inset: 1.5rem;
}
}
.workshop-hero-content {
height: var(--workshop-panel-top);
}
.workshop-datasets {
top: var(--workshop-panel-top);
transition: top 560ms cubic-bezier(0.22, 1, 0.36, 1);
}
.workshop-datasets[data-expanded="true"] {
top: 0;
border-top-width: 0;
}
.workshop-dataset-handle {
top: 0;
border-bottom: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
transform: translate(-50%, -100%);
transition:
transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
background-color 150ms;
}
.workshop-datasets[data-expanded="true"] .workshop-dataset-handle {
top: 0;
border: 0;
transform: translate(-50%, 0);
}
.workshop-cursor {
animation: blink 1.1s step-end infinite;
}
.workshop-chat-surface {
border-radius: var(--radius-md);
view-transition-name: workshop-chat;
}
::view-transition-group(workshop-chat) {
overflow: clip;
border-radius: var(--radius-md);
animation-duration: 700ms;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(workshop-chat),
::view-transition-new(workshop-chat) {
height: 100%;
object-fit: none;
object-position: bottom;
animation-duration: 350ms;
}
.workshop-dock-body {
display: grid;
grid-template-rows: 0fr;
opacity: 0;
transition:
grid-template-rows 420ms cubic-bezier(0.16, 1, 0.3, 1),
opacity 180ms ease;
}
.workshop-dock {
interpolate-size: allow-keywords;
left: 50%;
width: min(48rem, calc(100% - 1.5rem));
max-height: calc(100% - 1.5rem);
transform: translateX(-50%);
transition:
left 560ms cubic-bezier(0.16, 1, 0.3, 1),
width 560ms cubic-bezier(0.16, 1, 0.3, 1),
transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
height 560ms cubic-bezier(0.16, 1, 0.3, 1);
}
.workshop-dock[data-panel="true"] {
left: 0.75rem;
width: min(var(--workshop-panel-width, 26rem), calc(100% - 1.5rem));
height: calc(100% - 1.5rem);
transform: translateX(0);
}
.workshop-dock[data-resizing="true"] {
user-select: none;
transition: none;
}
.resize-handle {
position: relative;
display: grid;
flex: none;
place-items: center;
height: 0.625rem;
touch-action: none;
cursor: row-resize;
user-select: none;
outline: none;
background: linear-gradient(var(--border), var(--border)) center / 100% 1px no-repeat;
}
.resize-handle[aria-orientation="vertical"] {
width: 0.625rem;
height: auto;
cursor: col-resize;
background-size: 1px 100%;
}
.resize-handle.resize-handle-edge {
position: absolute;
inset: 0 0 0 auto;
z-index: 1;
justify-items: end;
background: none;
}
.resize-handle-grip {
width: 1.5rem;
height: 0.25rem;
background: var(--border);
border-radius: 9999px;
}
.resize-handle[aria-orientation="vertical"] .resize-handle-grip {
width: 0.25rem;
height: 1.5rem;
}
.resize-handle:is(:hover, :focus-visible, [data-dragging="true"]) .resize-handle-grip {
background: var(--muted-foreground);
}
.resize-handle:focus-visible .resize-handle-grip {
outline: 1px solid var(--ring);
outline-offset: 1px;
}
.workshop-conversation {
padding: 0.75rem 1rem 3.5rem;
scroll-padding-block: 1rem 3.5rem;
scrollbar-width: thin;
}
.workshop-dock[data-panel="true"] .workshop-composer-stack {
margin: 0 0.375rem 0.375rem;
}
.workshop-dock[data-panel="true"].workshop-chat-inner {
border-radius: var(--radius-sm);
}
.workshop-chat-inner {
position: relative;
border-radius: var(--radius-sm);
transition: border-color 140ms ease;
}
.workshop-chat-inner .workshop-chat-input {
caret-color: var(--foreground);
caret-shape: auto;
cursor: text !important;
}
.workshop-chat-inner:focus-within {
border-color: var(--input);
}
/* Terminal output is column-aligned: progress bars and tables need a fixed advance. */
[data-slot="terminal-result"] :is(code, [data-slot="terminal-result-body"]) {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.workshop-chat-surface button:active:not(:disabled) {
background-color: var(--control);
}
.workshop-chat-surface pre {
font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
.workshop-dock {
transition: none;
}
}
.workshop-dock[data-expanded="true"] .workshop-dock-body {
grid-template-rows: 1fr;
opacity: 1;
}
.workshop-dock-footer {
padding: 0.125rem 0.25rem;
}
:where(.workshop-dock[data-panel="true"]) .workshop-dock-footer {
padding: 0.25rem 0.625rem 0.375rem;
}
.workshop-attachments {
scrollbar-width: thin;
}
.workshop-attachment {
animation: workshop-attachment-in 220ms ease-out both;
}
@media (hover: hover) and (pointer: fine) {
.workshop-attachment-remove {
opacity: 0;
}
.workshop-attachment:hover .workshop-attachment-remove,
.workshop-attachment:focus-within .workshop-attachment-remove {
opacity: 1;
}
}
@keyframes workshop-attachment-in {
from {
opacity: 0;
transform: translateX(10px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@media (prefers-reduced-motion: reduce) {
.workshop-datasets,
.workshop-dataset-handle,
.workshop-dock-body,
.workshop-dock-footer {
transition: none;
}
::view-transition-group(workshop-chat),
::view-transition-old(workshop-chat),
::view-transition-new(workshop-chat) {
animation-duration: 1ms;
}
.workshop-cursor,
.workshop-attachment {
animation: none;
}
}
/* Fixed categorical chart slots, never per-render or hash-derived, so a given
slot is always the same colour. Tuned for ≥AA as text on the dark panels.
`--cat-N` and `--chart-N` alias them. */
:root {
--instrument-cat-1: #6fa8dc;
--instrument-cat-2: #4cc59a;
--instrument-cat-3: #5fc3cf;
--instrument-cat-4: #b29ae8;
--instrument-cat-5: #e08abf;
--instrument-cat-6: #a4988b;
}
@keyframes workshop-working {
to {
transform: rotate(360deg);
}
}
@keyframes workshop-finished {
0% {
transform: scale(0.7);
opacity: 0.5;
}
45% {
transform: scale(1.15);
opacity: 1;
}
100% {
transform: scale(1);
}
}
.workshop-working {
animation: workshop-working 1.2s steps(8, end) infinite;
}
.workshop-finished {
animation: workshop-finished 400ms ease-out both;
}
@media (prefers-reduced-motion: reduce) {
.workshop-working,
.workshop-finished {
animation: none;
}
}
@keyframes progress-sweep {
0% {
left: -35%;
}
100% {
left: 100%;
}
}
.progress-indeterminate {
position: relative;
width: 35%;
animation: progress-sweep 1.15s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.progress-indeterminate {
left: 0;
width: 100%;
opacity: 0.5;
animation: none;
}
}
/* Neutrals share h≈75° in CIELCh, chroma below 6. Adjacent surface tiers
* are separated by ΔL*, not contrast ratio; check:contrast verifies both. */
:root {
--background: #0e0c09;
--foreground: #f6f3ef;
--card: #151311;
--card-foreground: #f6f3ef;
--popover: #1e1c1a;
--popover-foreground: #f6f3ef;
--primary: #f6f3ef;
--primary-foreground: #181614;
--secondary: #1a1816;
--secondary-foreground: #f6f3ef;
/* Controls remain distinct from both card and canvas. */
--control: #262320;
--control-hover: #2f2c29;
--muted: #191715;
--muted-foreground: #a9a39c;
/* Keep the hover wash on the neutral axis, away from the warning hue. */
--accent: #201e1b;
--accent-foreground: #f6f3ef;
--accent-warm: #f6f3ef;
/* The only two elevation steps: +2.9 / +5.9 L* over --card. */
--wash-subtle: #1b1917;
--wash-raised: #211f1c;
--scrim: rgb(0 0 0 / 0.5);
--elevation-confirmation: 0 2px 4px rgb(0 0 0 / 0.14), 0 12px 32px -8px rgb(0 0 0 / 0.36);
--destructive: #f65d57;
--destructive-foreground: #0c0a08;
/* Status text uses the tint triplet; -foreground is for solid fills. */
--success: #3ac28a;
--success-foreground: #0c0a08;
--warning: #e6a647;
--warning-foreground: #0c0a08;
--info: #6fa8dc;
--info-foreground: #0c0a08;
--auth-panel: #1c1917;
--auth-field: #252220;
--auth-field-hover: #302e2c;
--auth-border: #2e2a27;
--auth-border-strong: #3a3530;
--auth-border-hover: #4a4540;
--auth-text: #f6f3ef;
--auth-text-label: #8a8580;
--auth-accent: #f6f3ef;
/* The artwork is authored against pure black. */
--auth-splash: #000000;
/* Bare/70/60 clears the decorative contrast floor; lower alphas do not. */
--border: #3a3633;
--input: #6a645d;
--ring: #f6f3ef;
--chart-1: var(--instrument-cat-1);
--chart-2: var(--instrument-cat-2);
--chart-3: var(--instrument-cat-3);
--chart-4: var(--instrument-cat-4);
--chart-5: var(--instrument-cat-5);
/* Runtime aliases for `seriesColor`: `@theme inline` never emits real custom
properties, so without these `stroke: var(--cat-N)` resolves to nothing and
chart lines vanish. */
--cat-1: var(--instrument-cat-1);
--cat-2: var(--instrument-cat-2);
--cat-3: var(--instrument-cat-3);
--cat-4: var(--instrument-cat-4);
--cat-5: var(--instrument-cat-5);
--cat-6: var(--instrument-cat-6);
/* A tonal step below the canvas separates the sidebar. */
--sidebar: #080604;
--sidebar-foreground: #f6f3ef;
--sidebar-primary: #f6f3ef;
--sidebar-primary-foreground: #181614;
--sidebar-accent: transparent;
--sidebar-accent-foreground: #f6f3ef;
--sidebar-border: #2c2a27;
--sidebar-ring: #f6f3ef;
/* A token because the elbow is drawn with a mask and cannot reach a Tailwind
class; see .sidebar-elbow above. */
--sidebar-elbow: #56514d;
/* Inline mentions retain a light surface to read as embedded objects. */
--chip-inline: #fdfbf8;
--chip-inline-hover: #f0ebe5;
--chip-inline-border: #e0d9d2;
--chip-inline-border-hover: #cfc8c1;
--chip-inline-fg: #201b15;
--chip-inline-icon: #706962;
--code-surface: #161512;
/* The ANSI palette of the adapted terminal-result component; red is --destructive. */
--terminal-green: #4ade80;
--terminal-yellow: #facc15;
--terminal-blue: #60a5fa;
--terminal-magenta: #e879f9;
--terminal-cyan: #22d3ee;
--code-fg: #ece7df;
--code-action: #9b938a;
--code-action-hover: #ece7df;
/* `--font-mono` is NOT monospaced: Geist Pixel's advances are proportional and
it ships no `tnum`, so `tabular-nums` is inert. A surface that needs figures
to line up must name a real monospace family itself. */
--font-sans: "Geist Pixel", system-ui, -apple-system, sans-serif;
--font-mono: "Geist Pixel", ui-monospace, SFMono-Regular, Menlo, monospace;
--shadow-2xs: none;
--shadow-xs: none;
--shadow-sm: none;
--shadow: none;
--shadow-md: none;
--shadow-lg: none;
--shadow-xl: none;
--shadow-2xl: none;
--tracking-normal: 0em;
/* One Geist Pixel grid cell (38/1000em). The face quantises every advance to
this grid, so tracking by anything that isn't a whole multiple lands glyphs
off-grid. It is the only tracking step the face has. */
--tracking-cell: 0.038em;
--spacing: 0.25rem;
color-scheme: dark;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-control: var(--control);
--color-control-hover: var(--control-hover);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-wash-subtle: var(--wash-subtle);
--color-wash-raised: var(--wash-raised);
--color-chip-inline: var(--chip-inline);
--color-chip-inline-hover: var(--chip-inline-hover);
--color-chip-inline-border: var(--chip-inline-border);
--color-chip-inline-border-hover: var(--chip-inline-border-hover);
--color-chip-inline-fg: var(--chip-inline-fg);
--color-chip-inline-icon: var(--chip-inline-icon);
--color-code-surface: var(--code-surface);
--color-code-fg: var(--code-fg);
--color-code-action: var(--code-action);
--color-code-action-hover: var(--code-action-hover);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-success: var(--success);
--color-success-foreground: var(--success-foreground);
--color-warning: var(--warning);
--color-warning-foreground: var(--warning-foreground);
--color-info: var(--info);
--color-info-foreground: var(--info-foreground);
/* Categorical, never status: aliases the AA-tuned instrument scale so
`text-cat-N` works app-wide. Assign stable slots per entity type. */
--color-cat-1: var(--instrument-cat-1);
--color-cat-2: var(--instrument-cat-2);
--color-cat-3: var(--instrument-cat-3);
--color-cat-4: var(--instrument-cat-4);
--color-cat-5: var(--instrument-cat-5);
--color-cat-6: var(--instrument-cat-6);
--color-auth-panel: var(--auth-panel);
--color-auth-field: var(--auth-field);
--color-auth-field-hover: var(--auth-field-hover);
--color-auth-border: var(--auth-border);
--color-auth-border-strong: var(--auth-border-strong);
--color-auth-border-hover: var(--auth-border-hover);
--color-auth-text: var(--auth-text);
--color-auth-text-label: var(--auth-text-label);
--color-auth-accent: var(--auth-accent);
--color-auth-splash: var(--auth-splash);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
/* Self-referential only in appearance: `@theme inline` registers the Tailwind
token on the left and reads the runtime custom property from `:root` /
`body` on the right. Repoint a family there, never here. */
--font-sans: var(--font-sans);
--font-mono: var(--font-mono);
--font-sidebar: var(--font-sidebar);
--tracking-cell: var(--tracking-cell);
--font-display: "PP Mondwest", system-ui, sans-serif;
/* Geist Pixel covers 420 codepoints (Latin plus prose punctuation; no
box-drawing, Greek or Cyrillic), so the system fallback is load-bearing for
stray glyphs in user content. */
--font-prose: "Geist Pixel", system-ui, -apple-system, sans-serif;
/* The type scale is Tailwind's default rem values, unmodified. Arbitrary
`text-[Npx]` is banned by check:design. `text-2xs` is deliberately absent —
it sat 0.006rem from `text-xs`, which is the floor. */
--radius: 4px;
--radius-xs: var(--radius);
--radius-sm: var(--radius);
--radius-md: var(--radius);
--shadow-2xs: var(--shadow-2xs);
--shadow-xs: var(--shadow-xs);
--shadow-sm: var(--shadow-sm);
--shadow: var(--shadow);
--shadow-md: var(--shadow-md);
--shadow-lg: var(--shadow-lg);
--shadow-xl: var(--shadow-xl);
--shadow-2xl: var(--shadow-2xl);
--shadow-confirmation: var(--elevation-confirmation);
}
body {
letter-spacing: var(--tracking-normal);
}
*,
*::before,
*::after {
cursor:
url("/cursor-default.svg") 3 2,
auto !important;
}
a,
a *,
button,
button *,
[role="button"],
[role="button"] *,
[type="button"],
[type="submit"],
[type="reset"],
label[for],
select,
option,
summary,
[tabindex]:not([tabindex="-1"]),
input[type="checkbox"],
input[type="radio"],
.cursor-pointer,
.cursor-pointer * {
cursor:
url("/cursor-pointer.svg") 3 2,
pointer !important;
}
a:active,
a:active *,
button:active,
button:active *,
[role="button"]:active,
[role="button"]:active *,
[type="button"]:active,
[type="submit"]:active,
[type="reset"]:active,
.cursor-pointer:active,
.cursor-pointer:active * {
cursor:
url("/cursor-active.svg") 3 2,
pointer !important;
}
/* Clerk renders its own DOM, so its token contract is the only way into the
* system. It resolves these at runtime and accepts any CSS colour, so var()
* aliases share the app palette — keep them aliases, never
* literals. */
:root {
--clerk-color-primary: var(--primary);
--clerk-color-primary-foreground: var(--primary-foreground);
--clerk-color-danger: var(--destructive);
--clerk-color-success: var(--success);
--clerk-color-warning: var(--warning);
--clerk-color-neutral: var(--foreground);
--clerk-color-foreground: var(--foreground);
--clerk-color-muted-foreground: var(--muted-foreground);
--clerk-color-background: var(--popover);
--clerk-color-input: var(--input);
--clerk-color-input-foreground: var(--foreground);
--clerk-color-ring: var(--ring);
--clerk-color-shimmer: var(--wash-raised);
--clerk-color-modal-backdrop: var(--scrim);
--clerk-border-radius: 0rem;
--clerk-spacing: 1rem;
--clerk-color-muted: var(--muted);
}
/* Overlay-style scrollbar: transparent at rest, painted only while the element
* is being scrolled (`data-scrolling`, stamped by lib/autohide-scrollbars) or
* while the pointer is on the bar. The gutter is always reserved, so appearing
* and disappearing never reflows content. */
@layer base {
* {
scrollbar-color: transparent transparent;
scrollbar-width: thin;
}
*[data-scrolling] {
scrollbar-color: color-mix(in srgb, var(--foreground) 22%, transparent) transparent;
}
*::-webkit-scrollbar {
width: 10px;
height: 10px;
}
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
background: transparent;
}
*::-webkit-scrollbar-thumb {
background-color: transparent;
background-clip: padding-box;
/* Transparent border + padding-box clip insets the thumb into a slim pill. */
border: 3px solid transparent;
border-radius: var(--radius-xs);
transition: background-color 0.2s ease;
}
*[data-scrolling]::-webkit-scrollbar-thumb {
background-color: color-mix(in srgb, var(--foreground) 20%, transparent);
}
*::-webkit-scrollbar-thumb:hover {
background-color: color-mix(in srgb, var(--foreground) 38%, transparent);
}
*::-webkit-scrollbar-thumb:vertical:active,
*::-webkit-scrollbar-thumb:horizontal:active {
background-color: color-mix(in srgb, var(--foreground) 48%, transparent);
}
}
.react-flow .react-flow__edges svg {
overflow: visible !important;
}
@media (hover: hover) and (pointer: fine) {
.sheet-hover-backdrop:has(+ [data-blur-background-on-hover="true"]:hover) {
opacity: 1;
}
}
/* One focus layer keeps nested popup surfaces sharp without accumulating blur. */
body::after {
position: fixed;
inset: 0;
z-index: 55;
pointer-events: none;
content: "";
opacity: 0;
backdrop-filter: blur(2px);
transition: opacity 200ms ease-out;
}
body:has(
:is(
[data-slot="dialog-content"],
[data-slot="alert-dialog-content"],
[data-slot="popover-content"],
[data-slot="dropdown-menu-content"],
[data-slot="select-content"],
[data-slot="sheet-content"]:not([data-blur-background-on-hover="true"])
)[data-state="open"]:not([data-blur-background="false"])
) {
&::after {
opacity: 1;
}
.sheet-hover-backdrop {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
body::after {
transition: none;
}
}
@keyframes activity-highlight {
from {
background-color: color-mix(in oklab, var(--success) 16%, transparent);
}
to {
background-color: transparent;
}
}
.activity-highlight {
animation: activity-highlight 2s ease-out;
}
@media (prefers-reduced-motion: reduce) {
.activity-highlight {
outline: 1px solid var(--success);
outline-offset: -1px;
animation: none;
}
}
/* Registry components share the Console's surfaces, geometry and status tokens. */
[data-slot="workflow-step"] {
border: 0;
box-shadow: none;
}
[data-slot="workflow-canvas"] {
border-radius: 0;
}
[data-slot="tool-call-trigger"] {
height: auto;
min-height: 2rem;
}
[data-slot="tool-call-trigger"]:disabled {
cursor: default;
}
[data-slot="tool-call-group-list"] {
padding-left: 0.75rem;
}
[data-slot="tool-call-group-list"] > li {
position: relative;
padding-left: 0.75rem;
}
[data-slot="tool-call-group-list"] > li::before {
position: absolute;
top: 0;
left: 0;
width: 0.625rem;
height: 1rem;
content: "";
border-bottom: 1px solid var(--border);
border-left: 1px solid var(--border);
border-bottom-left-radius: var(--radius);
}
[data-slot="tool-call-group-list"] > li:not(:last-child)::after {
position: absolute;
top: 1rem;
bottom: 0;
left: 0;
content: "";
border-left: 1px solid var(--border);
}
[data-slot="tool-call-detail"] {
padding: 0.5rem 0 0.75rem 1.5rem;
}
[data-slot="chat-thread-user"] {
border-radius: var(--radius);
}
[data-slot="chat-thread-scroller"] {
scrollbar-width: thin;
}
[data-slot="chat-thread-jump"] {
z-index: 2;
background: var(--popover);
border: 1px solid var(--border);
}
/* Experiment nodes follow the SDK card geometry at Console type and control sizes. */
.experiment-canvas [data-slot="workflow-step"],
.experiment-canvas [data-slot="workflow-group"] {
padding: 12px;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.experiment-canvas [data-slot="workflow-group"] {
background: transparent;
}
.experiment-canvas [data-slot="workflow-step"][data-selected] {
outline-color: var(--ring);
}
.experiment-canvas [data-slot="workflow-step-title"] {
font-size: 14px;
line-height: 20px;
}
.experiment-canvas [data-slot="workflow-step-icon"] {
width: 28px;
height: 28px;
background: var(--accent);
border-radius: var(--radius);
}
.experiment-canvas [data-slot="workflow-step-body"] {
padding: 4px 0 0;
background: transparent;
}
/* Native cells retain their dimensions; only their placement changes in a deck. */
.workshop-cell-stack {
position: relative;
display: grid;
isolation: isolate;
}
.workshop-cell-stack > [data-cluster-cell] {
position: relative;
align-self: start;
isolation: isolate;
}
/* In the components layer, so a utility on the same element wins. */
@layer components {
.assistant-chat-inner {
position: relative;
border-radius: var(--radius-sm);
transition: border-color 140ms ease;
}
.assistant-chat-inner:focus-within {
border-color: var(--input);
}
/* Chat sidebar: beside the canvas from 640px, over the shell below it. */
.workspace-chat-panel {
position: absolute;
inset: 0;
z-index: 30;
pointer-events: none;
border: 0 solid var(--border);
border-radius: var(--radius);
opacity: 0;
filter: blur(4px);
transform: translateX(8px);
transition:
width 280ms cubic-bezier(0.22, 1, 0.36, 1),
opacity 200ms ease,
filter 200ms ease,
transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.workspace-chat-panel[data-open="true"] {
pointer-events: auto;
border-width: 1px;
opacity: 1;
filter: blur(0);
transform: translateX(0);
}
.workspace-chat-divider {
flex: none;
width: 0;
overflow: hidden;
opacity: 0;
transition:
width 280ms cubic-bezier(0.22, 1, 0.36, 1),
opacity 200ms ease;
}
.workspace-chat-divider[data-open="true"] {
width: 0.625rem;
opacity: 1;
}
@media (min-width: 640px) {
.workspace-chat-panel {
position: static;
width: 0;
transform: none;
}
.workspace-chat-panel[data-open="true"] {
width: var(--chat-panel-width);
}
/* The content keeps its width while the panel opens and closes around it. */
.workspace-chat-content {
width: calc(var(--chat-panel-width) - 2px);
}
}
.workspace-chat-panel[data-resizing="true"],
.workspace-chat-divider[data-resizing="true"] {
user-select: none;
transition: none;
}
.chat-resize-handle {
display: grid;
place-items: center;
width: 0.625rem;
height: 100%;
touch-action: none;
cursor: col-resize;
user-select: none;
outline: none;
}
.chat-resize-grip {
width: 2px;
height: 1.5rem;
background: var(--muted-foreground);
border-radius: 9999px;
opacity: 0;
transition: opacity 150ms ease;
}
.workspace-chat-divider:is(:hover, :focus-within, [data-resizing="true"]) .chat-resize-grip {
opacity: 1;
}
.chat-resize-handle:focus-visible .chat-resize-grip {
outline: 1px solid var(--ring);
outline-offset: 1px;
}
.chat-thread-scroller {
scrollbar-gutter: stable both-edges;
scrollbar-color: var(--border) transparent;
scrollbar-width: thin;
}
.chat-user-bubble {
max-width: 92%;
padding: 8px 10px;
}
.chat-user-folded {
mask-image: linear-gradient(to bottom, black calc(100% - 3rem), transparent);
}
/* The sidebar's type: 14px messages, 15px headings, 13px code and tables. */
.chat-user-text {
margin: 0;
font-size: 14px;
line-height: 1.45;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.chat-composer-stack {
gap: 8px;
padding: 8px 12px;
}
.chat-composer {
gap: 8px;
padding: 10px;
background: var(--background);
border: 1px solid var(--border);
border-radius: var(--radius);
transition: border-color 140ms ease;
}
.chat-composer:focus-within {
border-color: var(--ring);
}
.chat-composer-input {
min-height: 56px;
max-height: 160px;
font-size: 14px;
line-height: 1.45;
caret-color: var(--foreground);
field-sizing: content;
}
.chat-composer-footer {
gap: 4px;
}
.chat-composer-footer > :last-child {
margin-left: auto;
}
.thinking-eye {
image-rendering: pixelated;
}
@media (prefers-reduced-motion: reduce) {
.workspace-chat-panel,
.workspace-chat-divider {
filter: none;
transform: none;
transition: none;
}
.chat-resize-grip {
transition: none;
}
}
.assistant-surface pre {
font-variant-numeric: tabular-nums;
}
/* Chat replies: 15px body, 1.6 line height, 12px between blocks, headings at 1.3em and
1.15em, code and tables at 0.86em. Element rules out-rank the renderer's spacing utilities. */
.chat-prose {
display: flex;
flex-direction: column;
gap: 12px;
font-size: 15px;
line-height: 1.6;
overflow-wrap: anywhere;
}
.chat-prose :is(p, ul, ol, blockquote, h1, h2, h3, h4, h5, h6, hr) {
margin: 0;
}
.chat-prose :is(h1, h2, h3, h4, h5, h6) {
padding: 0;
font-weight: 600;
line-height: 1.35;
text-wrap: balance;
border: 0;
}
.chat-prose h1 {
font-size: 1.3em;
}
.chat-prose h2 {
font-size: 1.15em;
}
.chat-prose :is(h3, h4, h5, h6) {
font-size: 1em;
}
.chat-prose :is(code, table) {
font-size: 0.86em;
}
.chat-prose table {
line-height: 1.45;
}
.workspace-chat-panel .chat-prose {
font-size: 14px;
line-height: 1.45;
}
.workspace-chat-panel .chat-prose :is(h1, h2) {
margin-top: 4px;
font-size: 15px;
line-height: 1.4;
}
.workspace-chat-panel .chat-prose :is(h3, h4, h5, h6) {
margin-top: 4px;
font-size: 14px;
}
.workspace-chat-panel .chat-prose :is(ul, ol) {
padding-left: 22px;
}
.workspace-chat-panel .chat-prose :is(code, table, pre) {
font-size: 13px;
}
.workspace-chat-panel .chat-prose pre code {
font-size: inherit;
}
.assistant-result {
font-size: 0.8125rem;
}
/* Datasets landing: the composer over the star field, the dataset list as a sheet below. */
/* A tab on the sheet's top border: it sits on the border while the sheet is
lowered and hangs from it while raised. */
.assistant-dataset-handle {
top: 0;
transform: translate(-50%, -100%);
transition:
transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
background-color 150ms;
}
.assistant-datasets[data-expanded="true"] .assistant-dataset-handle {
transform: translate(-50%, 0);
}
.assistant-cursor {
width: 0.24em;
height: 0.8em;
animation: blink 1.1s step-end infinite;
}
.assistant-attachments {
scrollbar-width: thin;
}
@media (hover: hover) and (pointer: fine) {
.assistant-attachment-remove {
opacity: 0;
}
.assistant-attachment:hover .assistant-attachment-remove,
.assistant-attachment:focus-within .assistant-attachment-remove {
opacity: 1;
}
}
.assistant-composer {
border-radius: var(--radius);
transition: border-color 150ms;
}
.assistant-composer:focus-within {
border-color: var(--input);
}
@media (prefers-reduced-motion: reduce) {
.assistant-datasets,
.assistant-dataset-handle {
transition: none;
}
.assistant-cursor {
animation: none;
}
::view-transition-group(assistant-chat),
::view-transition-old(assistant-chat),
::view-transition-new(assistant-chat) {
animation-duration: 1ms;
}
}
}
.workspace-home .assistant-surface {
view-transition-name: none;
}
.workspace-home > [aria-hidden="true"] {
mask-image:
linear-gradient(to bottom, transparent, var(--foreground) 56px),
linear-gradient(
to right,
var(--foreground)
calc(var(--workspace-tab-center, 115px) - var(--workspace-tab-radius, 131px) - 24px),
transparent calc(var(--workspace-tab-center, 115px) - var(--workspace-tab-radius, 131px)),
transparent calc(var(--workspace-tab-center, 115px) + var(--workspace-tab-radius, 131px)),
var(--foreground)
calc(var(--workspace-tab-center, 115px) + var(--workspace-tab-radius, 131px) + 24px)
);
mask-composite: add;
}
.workspace-home .assistant-composer {
padding: 0;
}
.workspace-home .assistant-composer .assistant-chat-inner {
border: 0;
}
@font-face {
font-family: "Redaction 50";
src: url("/fonts/Redaction50-Regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
.workspace-home-heading .page-title {
font-family: "Redaction 50", serif;
font-size: 3.645rem;
font-weight: 400;
line-height: 1.125;
}
.home-typing-cursor {
display: inline-block;
width: 0.45em;
height: 0.7em;
margin-left: 0.08em;
vertical-align: baseline;
background: currentColor;
animation: home-cursor-blink 1s step-end infinite;
}
.home-typing-cursor[data-active="false"] {
animation-play-state: paused;
}
@keyframes home-cursor-blink {
50% {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.home-typing-cursor {
animation: none;
}
}
/* Text the chat's selection toolbar acts on stays marked while its field holds the focus. */
::highlight(chat-selection) {
color: HighlightText;
background-color: Highlight;
}
/* A working label sweeps light across its text. */
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
.status-shimmer {
color: transparent;
background-image: linear-gradient(
110deg,
var(--muted-foreground) 40%,
var(--foreground) 50%,
var(--muted-foreground) 60%
);
background-clip: text;
background-size: 250% 100%;
animation: status-shimmer 2s linear infinite;
}
}
@keyframes status-shimmer {
from {
background-position: 100% center;
}
to {
background-position: 0% center;
}
}
.workshop-dock[data-fullscreen="true"][data-panel="true"] {
position: relative;
inset: auto;
flex: 1;
width: 100%;
max-width: 100%;
height: 100%;
view-transition-name: none;
}
.workspace-ghost .ghost-completion-text,
.home-ghost .ghost-completion-text,
.workshop-compact-input .ghost-completion-text {
padding: 0.375rem 0.25rem;
}
.workshop-chat-surface[data-panel="true"] {
border-radius: var(--radius);
}
.workshop-chat-surface[data-panel="true"] .workshop-chat-inner {
border-radius: var(--radius);
}
.questions-panel {
border-radius: var(--radius);
}
.questions-panel-question {
font-size: 14px;
font-weight: 500;
line-height: 1.4;
}
.questions-panel .questions-panel-option {
gap: 8px;
min-height: 32px;
padding: 6px;
font-size: 13px;
line-height: 1.35;
background: transparent;
border-radius: var(--radius);
}
.questions-panel .questions-panel-option:is(:hover, [aria-pressed="true"]) {
background: var(--accent);
}
.questions-panel textarea {
min-height: 32px;
font-size: 13px;
border-radius: var(--radius);
}
.questions-panel > div:last-child button {
border-radius: var(--radius);
}
.workshop-chat-surface .workshop-chat-input,
.workshop-compact-input textarea {
field-sizing: content;
}
.workshop-dock[data-compact="true"],
.workshop-chat-inner {
border-radius: var(--radius);
}
.workshop-dock[data-panel="true"] .workshop-chat-inner {
flex-direction: row;
gap: 0;
align-items: center;
padding: 0.5rem;
}
.workshop-dock[data-panel="true"] .workshop-dock-body {
flex: 1;
min-width: 0;
}
.workshop-dock[data-panel="true"] .workshop-dock-footer {
flex-shrink: 0;
gap: 2px;
padding: 0;
}
.workspace-chat-panel .workshop-dock[data-fullscreen="true"][data-panel="true"] {
max-height: 100%;
color: var(--sidebar-foreground);
background: var(--sidebar);
border: 0;
border-radius: 0;
transform: none;
}
/* The sidebar shares the shell; only the composer needs its own surface. */
.workspace-chat-panel .workshop-dock[data-fullscreen="true"][data-panel="true"] {
gap: 0;
padding: 0;
transition: none;
}
.workspace-chat-panel [data-slot="chat-thread-content"] {
gap: 24px;
padding: 8px 12px 20px;
}
.workspace-chat-panel [data-slot="markdown"] {
font-size: 14px;
line-height: 1.45;
}
.workspace-chat-panel [data-slot="markdown"] > div {
gap: 12px;
}
.workspace-chat-panel [data-slot="markdown"] :is(h1, h2) {
margin-top: 4px;
font-size: 15px;
line-height: 1.4;
}
.workspace-chat-panel [data-slot="markdown"] :is(h3, h4, h5, h6) {
margin-top: 4px;
font-size: 14px;
line-height: 1.45;
}
.workspace-chat-panel [data-slot="markdown"] :is(ul, ol) {
gap: 6px;
padding-left: 22px;
}
.workspace-chat-panel [data-slot="markdown"] :is(code, table) {
font-size: 13px;
}
.workspace-chat-panel [data-slot="markdown"] pre code {
font-size: inherit;
}
.workspace-chat-panel [data-slot="markdown"] pre {
font-size: 13px;
line-height: 1.45;
}
.workspace-chat-panel .workshop-dock .workshop-composer-stack {
gap: 8px;
padding: 8px 12px 8px;
margin: 0;
}
.workspace-chat-panel .workshop-dock .workshop-chat-inner {
flex-direction: column;
gap: 8px;
align-items: stretch;
padding: 10px;
background: var(--background);
border: 1px solid var(--border);
}
.workspace-chat-panel .workshop-dock .workshop-chat-inner:focus-within {
border-color: var(--ring);
}
.workspace-chat-panel .workshop-chat-input {
min-height: 56px;
max-height: 160px;
font-size: 14px;
line-height: 1.45;
}
.workspace-chat-panel .workshop-dock .workshop-dock-footer {
gap: 4px;
width: 100%;
}
.workspace-chat-panel .workshop-dock .workshop-dock-footer > :last-child {
margin-left: auto;
}
.workspace-chat-panel [data-slot="chat-thread-scroller"] {
scrollbar-color: var(--border) transparent;
scrollbar-width: thin;
}
.workspace-chat-panel [data-slot="chat-thread-user"] {
max-width: 92%;
padding: 8px 10px;
}
.workspace-chat-panel .workshop-dock .workshop-chat-inner .workspace-ghost {
overflow: auto;
scrollbar-width: thin;
}