Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
@tailwind base;
@tailwind components;
@tailwind utilities;
@font-face {
font-family: "Open Sans";
src: url("./assets/fonts/open-sans-variable.woff2") format("woff2");
font-style: normal;
font-weight: 300 800;
font-display: swap;
}
@font-face {
font-family: "Open Sans";
src: url("./assets/fonts/open-sans-variable-italic.woff2") format("woff2");
font-style: italic;
font-weight: 300 800;
font-display: swap;
}
.thread-composer-stack {
--composer-content-width: 49.5rem;
}
.thread-composer-stack.is-hero {
--composer-content-width: 58rem;
}
.subagent-task-dock {
--subagent-handle-inset: var(--radius-panel);
width: calc(100% - 0.5rem - 2 * var(--subagent-handle-inset));
max-width: calc(var(--composer-content-width, 49.5rem) - 2 * var(--subagent-handle-inset));
}
.thread-composer-stack.is-hero .subagent-task-dock {
--subagent-handle-inset: var(--radius-prominent);
width: calc(100% - 2 * var(--subagent-handle-inset));
}
.subagent-task-dock + .thread-composer-form {
padding-top: 0;
}
.thread-composer-notice {
width: calc(100% - 0.5rem);
max-width: var(--composer-content-width, 49.5rem);
margin-inline: auto;
}
.thread-composer-stack.is-hero .thread-composer-notice {
width: 100%;
}
@media (min-width: 640px) {
.thread-composer-notice {
width: 100%;
}
.subagent-task-dock {
width: calc(100% - 2 * var(--subagent-handle-inset));
}
}
@supports (content-visibility: auto) {
.apps-catalog-row {
content-visibility: auto;
contain-intrinsic-size: auto 4.25rem;
}
}
/* Only gradient owners need interpolable colors; palette tokens remain unchanged. */
@property --thread-history-background {
syntax: "<color>";
inherits: false;
initial-value: transparent;
}
@property --host-glass-spot {
syntax: "<color>";
inherits: false;
initial-value: transparent;
}
@property --host-glass-start {
syntax: "<color>";
inherits: false;
initial-value: transparent;
}
@property --host-glass-end {
syntax: "<color>";
inherits: false;
initial-value: transparent;
}
/* Design tokens — HSL form, sourced from shadcn/ui's "neutral" palette. */
@layer base {
:root {
color-scheme: light;
--content-link: #0369a1;
--content-link-hover: #075985;
--background: 0 0% 100%;
--foreground: 240 3% 12%;
--card: 0 0% 100%;
--card-foreground: 240 3% 12%;
--popover: 0 0% 100%;
--popover-foreground: 240 3% 12%;
--primary: 240 4% 16%;
--primary-foreground: 0 0% 98%;
--secondary: 0 0% 96.1%;
--secondary-foreground: 0 0% 9%;
--muted: 0 0% 96.1%;
--muted-foreground: 240 4% 40%;
--accent: 0 0% 96.1%;
--accent-foreground: 0 0% 9%;
--destructive: 0 73.7% 41.8%;
--destructive-foreground: 0 0% 98%;
--border: 40 8% 90.5%;
--input: 40 8% 90.5%;
--ring: 0 0% 3.9%;
--inline-token-highlight: #ad450b;
--inline-reference-highlight: rgb(244 169 73);
--code-comment: #62626b;
--code-string: #166534;
--code-keyword: #7e22ce;
--code-function: #1d4ed8;
--code-property: #854d0e;
--diff-added: rgb(16 185 129 / 0.09);
--diff-added-foreground: #047857;
--diff-deleted: rgb(244 63 94 / 0.09);
--diff-deleted-foreground: #be123c;
--usage-token: 29 86% 56%;
--session-handle-lightness: 0.5;
--session-handle-chroma: 0.12;
--temporary-control-active: #ef8e30;
--temporary-foreground: 17 88% 32%;
--radius: 0.4375rem;
--radius-mark: 0.25rem;
--radius-compact: 0.5rem;
--radius-control: 0.75rem;
--radius-floating: 1.125rem;
--radius-panel: 1.375rem;
--radius-modal: 2rem;
--radius-prominent: 1.75rem;
--radius-pill: 9999px;
--corner-shape: superellipse(1.5);
--content-column-width: 49.5rem;
--sidebar: 40 8% 96.8%;
--sidebar-foreground: 0 0% 3.9%;
--sidebar-content: 240 3% 30%;
--sidebar-muted-foreground: 240 2% 44%;
--sidebar-selected: 40 1% 89.4%;
--sidebar-accent: 0 0% 95.8%;
--sidebar-accent-foreground: 0 0% 9%;
--sidebar-border: 40 8% 90.5%;
--settings-canvas: var(--background);
--settings-surface: 60 6% 96.7%;
--automation-view-track: hsl(0 0% 91%);
--scrollbar-thumb: hsl(var(--muted-foreground) / 0.26);
--scrollbar-thumb-hover: hsl(var(--muted-foreground) / 0.42);
}
:root, .reading-typography {
--text-reading-size: 16px;
--reading-line-height: 1.6;
--text-code-size: calc(var(--text-reading-size) * 0.875);
--text-code-dense-size: calc(var(--text-reading-size) * 0.75);
}
:root[data-reading-text-size="small"], .reading-typography[data-reading-text-size="small"] {
--text-reading-size: 15px;
}
:root[data-reading-text-size="large"], .reading-typography[data-reading-text-size="large"] {
--text-reading-size: 18px;
}
:root[data-reading-text-size="custom"], .reading-typography[data-reading-text-size="custom"] {
--text-reading-size: var(--custom-reading-size, 18px);
}
.dark {
color-scheme: dark;
--content-link: #bae6fd;
--content-link-hover: #e0f2fe;
--background: 0 0% 19%;
--foreground: 240 4% 96%;
--card: 0 0% 22%;
--card-foreground: 240 4% 96%;
--popover: var(--card);
--popover-foreground: 240 4% 96%;
--primary: 240 5% 98%;
--primary-foreground: 0 0% 9%;
--secondary: var(--card);
--secondary-foreground: 0 0% 98%;
--muted: var(--card);
--muted-foreground: 0 0% 72%;
--accent: 0 0% 25%;
--accent-foreground: 0 0% 98%;
--destructive: 0 93.5% 81.8%;
--destructive-foreground: 0 0% 9%;
--border: 0 0% 28%;
--input: var(--border);
--ring: 0 0% 83.1%;
--inline-token-highlight: #ef8e30;
--inline-reference-highlight: rgb(244 169 73);
--code-comment: #c8c8d0;
--code-string: #b5d99c;
--code-keyword: #e3a5f7;
--code-function: #93c5fd;
--code-property: #f6c177;
--diff-added: rgb(110 231 183 / 0.11);
--diff-added-foreground: #6ee7b7;
--diff-deleted: rgb(253 164 175 / 0.11);
--diff-deleted-foreground: #fda4af;
--session-handle-lightness: 0.75;
--session-handle-chroma: 0.11;
--temporary-control-active: #ef8e30;
--temporary-foreground: 32 98% 73%;
--sidebar: var(--card);
--sidebar-foreground: 0 0% 98%;
--sidebar-content: 240 3% 84%;
--sidebar-muted-foreground: 240 2% 70%;
--sidebar-selected: 0 0% 29.8%;
--sidebar-accent: var(--background);
--sidebar-accent-foreground: 0 0% 98%;
--sidebar-border: var(--border);
--settings-canvas: var(--background);
--settings-surface: var(--card);
--automation-view-track: hsl(var(--muted) / 0.65);
--scrollbar-thumb: hsl(var(--muted-foreground) / 0.28);
--scrollbar-thumb-hover: hsl(var(--muted-foreground) / 0.44);
}
}
@layer base {
* {
@apply border-border;
}
*,
::before,
::after {
corner-shape: var(--corner-shape);
}
html,
body,
#root {
@apply h-full;
}
body {
@apply bg-background text-foreground font-sans antialiased;
overflow: hidden;
text-autospace: normal;
}
.text-reading,
.text-reading-small,
.text-composer,
.markdown-content {
font-family: "Open Sans", sans-serif;
}
/* Keep source text and editable values visually literal. */
pre,
code,
kbd,
samp,
.font-mono,
input,
textarea,
[contenteditable="true"] {
text-autospace: no-autospace;
}
#root.visual-viewport {
position: fixed;
top: var(--app-viewport-top);
left: 0;
width: 100%;
height: var(--app-viewport-height);
}
/* A landscape keyboard can leave less room than the composer needs. Keep
navigation reachable and scroll the composer instead of overlapping it. */
#root.visual-viewport .workbench-body {
min-height: 2.75rem;
}
#root.short-visual-viewport .workbench-composer-footer {
max-height: max(0px, calc(var(--app-viewport-height) - 2.75rem));
overflow-y: auto;
}
/* Body portals share the viewport owner's short-frame state. A landscape
keyboard needs input and results beside each other, not stacked. */
@media (min-width: 640px) {
body:has(> #root.short-visual-viewport) .session-search-dialog {
flex-direction: row;
}
body:has(> #root.short-visual-viewport) .session-search-input {
width: 40%;
height: auto;
border-bottom-width: 0;
border-right-width: 1px;
}
body:has(> #root.short-visual-viewport) .session-search-label {
@apply sr-only;
}
}
* {
scrollbar-color: var(--scrollbar-thumb) transparent;
scrollbar-width: thin;
}
*::-webkit-scrollbar {
width: 8px;
height: 8px;
}
*::-webkit-scrollbar-track {
background: transparent;
}
*::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb);
border-radius: var(--radius-pill);
}
*::-webkit-scrollbar-thumb:hover {
background-color: var(--scrollbar-thumb-hover);
}
*::-webkit-scrollbar-corner {
background: transparent;
}
::selection {
@apply bg-primary/15;
}
}
@layer utilities {
.composer-model-badge {
position: relative;
isolation: isolate;
overflow: hidden;
}
.kv-cache-not-reused {
background: hsl(var(--usage-token) / 0.84);
}
.kv-cache-reused {
background-color: hsl(var(--usage-token) / 0.1);
background-image: repeating-linear-gradient(
135deg,
hsl(var(--usage-token) / 0.46) 0,
hsl(var(--usage-token) / 0.46) 1px,
transparent 1px,
transparent 4px
);
}
.dark .kv-cache-not-reused {
background: hsl(var(--usage-token) / 0.92);
}
.dark .kv-cache-reused {
background-color: hsl(var(--usage-token) / 0.15);
background-image: repeating-linear-gradient(
135deg,
hsl(var(--usage-token) / 0.58) 0,
hsl(var(--usage-token) / 0.58) 1px,
transparent 1px,
transparent 4px
);
}
.composer-model-badge::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
background-color: rgb(236 141 49);
opacity: 0;
transition: opacity 180ms ease-out;
}
.composer-model-badge[data-fallback="true"] {
border-color: rgb(236 141 49 / 0.38);
}
.composer-model-badge[data-fallback="true"]::before {
opacity: 0.1;
}
.dark .composer-model-badge[data-fallback="true"]::before {
opacity: 0.15;
}
.composer-model-badge > * {
position: relative;
z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
.composer-model-badge::before {
transition-duration: 150ms;
}
}
.host-drag-region {
-webkit-app-region: drag;
}
.host-no-drag {
-webkit-app-region: no-drag;
}
html.native-host,
html.native-host body,
html.native-host #root {
background: transparent;
}
html.native-host body {
overflow: hidden;
}
.host-window-shell,
.host-sidebar-glass {
--host-glass-spot: hsl(var(--background) / 0.42);
--host-glass-start: hsl(var(--sidebar) / 0.5);
--host-glass-end: hsl(var(--sidebar) / 0.3);
background:
radial-gradient(
circle at 18% 0%,
var(--host-glass-spot),
transparent 34rem
),
linear-gradient(
180deg,
var(--host-glass-start),
var(--host-glass-end)
);
background-attachment: fixed, fixed;
-webkit-backdrop-filter: saturate(185%) blur(34px);
backdrop-filter: saturate(185%) blur(34px);
}
.host-window-shell {
transition: --host-glass-spot var(--theme-paint-duration, 0s) linear,
--host-glass-start var(--theme-paint-duration, 0s) linear,
--host-glass-end var(--theme-paint-duration, 0s) linear;
}
.host-sidebar-glass {
background: hsl(var(--sidebar) / 0.94);
-webkit-backdrop-filter: saturate(145%) blur(18px);
backdrop-filter: saturate(145%) blur(18px);
box-shadow: 14px 0 32px -30px rgb(0 0 0 / 0.12);
}
.dark .host-window-shell,
.dark .host-sidebar-glass {
--host-glass-spot: hsl(var(--foreground) / 0.06);
--host-glass-start: hsl(var(--sidebar) / 0.48);
--host-glass-end: hsl(var(--sidebar) / 0.3);
}
.dark .host-sidebar-glass {
background: hsl(var(--sidebar) / 0.96);
box-shadow: 14px 0 34px -30px rgb(0 0 0 / 0.34);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.host-sidebar-glass {
background: hsl(var(--sidebar) / 0.92);
}
}
html.native-host * {
scrollbar-width: none;
scrollbar-gutter: auto !important;
}
html.native-host *::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
}
.markdown-content > :first-child {
@apply mt-0;
}
.markdown-content > :last-child {
@apply mb-0;
}
.markdown-content {
--tw-prose-body: hsl(var(--foreground) / 0.9);
--tw-prose-headings: hsl(var(--foreground) / 0.9);
--tw-prose-bold: hsl(var(--foreground) / 0.9);
--tw-prose-lead: hsl(var(--foreground) / 0.9);
transition: var(--theme-ink-transition, color 0s);
@apply text-reading;
}
.markdown-content :is(h1, h2, h3, h4, h5, h6) {
margin-block: 1.25em 0.5em;
font-weight: 600;
line-height: 1.3;
}
.markdown-content h1 { font-size: 2em; }
.markdown-content h2 { font-size: 1.5em; }
.markdown-content h3 { font-size: 1.25em; }
.markdown-content h4 { font-size: 1.125em; }
.markdown-content :is(h5, h6) { font-size: 1em; }
.markdown-content :is(p, ul, ol) { margin-block: 0.8em; }
.markdown-content li { margin-block: 0.25em; }
.markdown-content :is(li > ul, li > ol) { margin-block: 0; }
.markdown-content strong { font-weight: 600; }
.markdown-content :is(th, td) {
font-size: inherit;
line-height: inherit;
}
.markdown-content blockquote {
font-size: 1em;
line-height: inherit;
}
.markdown-content summary {
font-size: 1em;
font-weight: 600;
line-height: inherit;
}
.markdown-inline-code {
font-size: 0.875em;
font-weight: 400;
}
.markdown-content .contains-task-list {
@apply list-none pl-0;
}
.markdown-content .task-list-item {
@apply list-none pl-0;
}
.markdown-content :is(h1, h2, h3, h4, h5, h6),
.settings-section-title {
text-wrap: balance;
}
.activity-current,
.streaming-text-sheen {
--activity-animation: 2.8s ease-in-out infinite;
}
@keyframes streaming-text-sheen-ltr {
0% {
background-position: 140% 50%;
}
100% {
background-position: -40% 50%;
}
}
.streaming-text-sheen {
position: relative;
color: hsl(var(--muted-foreground));
}
.file-reference-sheen {
color: inherit;
}
.streaming-text-sheen::after {
content: attr(data-sheen-text) / "";
position: absolute;
inset: 0;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
pointer-events: none;
padding-right: inherit;
color: transparent;
background: linear-gradient(
90deg,
transparent 0%,
transparent 38%,
hsl(var(--foreground) / 0.98) 50%,
transparent 62%,
transparent 100%
);
background-size: 260% 100%;
background-position: 140% 50%;
background-repeat: no-repeat;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: streaming-text-sheen-ltr var(--activity-animation);
}
.dark .streaming-text-sheen::after {
background-image: linear-gradient(
90deg,
transparent 0%,
transparent 38%,
hsl(var(--foreground) / 0.98) 50%,
transparent 62%,
transparent 100%
);
}
@media (prefers-reduced-motion: reduce) {
.streaming-text-sheen::after {
animation: none;
content: "";
}
}
/**
* The composer is one persistent grid item in both landing and thread
* layouts. On desktop, the landing's trailing flexible row holds it at the
* visual center; collapsing only that row lets the same element dock at the
* bottom without a remount or a transform clone.
*/
.thread-layout {
--thread-composer-fade-height: 2.25rem;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(min-content, 1fr) auto 0fr;
transition: grid-template-rows 220ms ease-out;
}
.thread-layout[data-layout="thread"] {
grid-template-rows: minmax(0, 1fr) auto 0fr;
}
.thread-layout[data-layout="external"] {
grid-template-rows: minmax(0, 1fr);
}
@media (min-width: 640px) {
.thread-layout[data-layout="hero"] {
grid-template-rows: minmax(min-content, 1fr) auto 1fr;
}
}
/**
* Keep the transcript and composer visually continuous. The scrollport owns
* the fade because overflow clips its contents before an adjacent overlay
* can soften the edge. On phones, the same mask keeps a clear top edge even
* after the initial inset scrolls away. The matching bottom in-flow gap keeps
* the last line fully visible once the user reaches the bottom.
*/
.thread-message-viewport {
--thread-top-clearance: 0px;
--thread-top-fade-height: 0px;
-webkit-mask-image: linear-gradient(
to bottom,
transparent 0,
transparent var(--thread-top-clearance),
#000 var(--thread-top-fade-height),
#000 calc(100% - var(--thread-composer-fade-height)),
transparent 100%
);
mask-image: linear-gradient(
to bottom,
transparent 0,
transparent var(--thread-top-clearance),
#000 var(--thread-top-fade-height),
#000 calc(100% - var(--thread-composer-fade-height)),
transparent 100%
);
}
@media (max-width: 639px) {
.thread-message-viewport {
--thread-top-clearance: 6px;
--thread-top-fade-height: 22px;
}
}
.thread-message-end-gap {
height: var(--thread-composer-fade-height);
}
.thread-history-status {
--thread-history-background: hsl(var(--background));
height: 48px;
background: linear-gradient(var(--thread-history-background) 35%, transparent);
color: hsl(var(--muted-foreground));
transition: --thread-history-background var(--theme-paint-duration, 0s) linear,
var(--theme-ink-transition, color 0s);
}
.thread-history-reveal {
transform: translateY(calc(var(--history-pull, 0px) - 100%));
}
.thread-history-reveal:focus-within {
transform: none;
}
.thread-history-control {
display: flex;
width: 120px;
height: 44px;
align-items: center;
justify-content: center;
}
/* loading.dev Blocks, Copyright (c) 2026 Jakub Krehel (MIT); THIRD_PARTY_NOTICES.md. */
.thread-history-blocks {
color: hsl(var(--muted-foreground));
display: grid;
width: 20px;
height: 20px;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: 2px;
}
.thread-history-blocks > span {
background: currentColor;
border-radius: 1.25px;
animation: thread-history-blocks 1300ms ease-in-out infinite;
}
.thread-history-status[data-state="error"] .thread-history-blocks {
width: 24px;
height: 24px;
color: hsl(var(--destructive));
}
.thread-history-status:not([data-state="loading"]):not([data-state="error"]) .thread-history-blocks > span {
animation: none;
transform: none;
}
@keyframes thread-history-blocks {
0%, 70%, 100% { transform: scale(1); }
35% { transform: scale(0); }
}
@media (prefers-reduced-motion: reduce) {
.thread-history-feedback {
transform: none;
}
.thread-history-blocks > span {
animation: none;
transform: scale(0.8);
}
}
.thread-composer-dock {
background: hsl(var(--background));
}
@keyframes composer-status-strip-enter {
0% {
max-height: 0;
opacity: 0;
transform: translateY(10px) scale(0.985);
}
72% {
max-height: var(--composer-strip-max-height, 46px);
opacity: 1;
transform: translateY(-1px) scale(1.004);
}
100% {
max-height: var(--composer-strip-max-height, 46px);
opacity: 1;
transform: translateY(0) scale(1);
}
}
.composer-status-strip {
transform-origin: bottom center;
will-change: max-height, opacity, transform;
}
.composer-status-strip[data-state="enter"] {
animation: composer-status-strip-enter 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.composer-status-drawer {
--composer-status-drawer-duration: 220ms;
--composer-status-drawer-easing: ease-out;
display: grid;
grid-template-rows: 0fr;
pointer-events: none;
transition:
grid-template-rows var(--composer-status-drawer-duration)
var(--composer-status-drawer-easing);
}
.composer-status-drawer[data-state="open"] {
grid-template-rows: 1fr;
pointer-events: auto;
}
.composer-status-drawer-clip {
min-height: 0;
overflow: hidden;
}
.composer-status-drawer-content {
opacity: 0;
transform: translateY(8px);
transform-origin: bottom center;
transition:
opacity var(--composer-status-drawer-duration)
var(--composer-status-drawer-easing),
transform var(--composer-status-drawer-duration)
var(--composer-status-drawer-easing);
}
.composer-status-drawer[data-state="open"] .composer-status-drawer-content {
opacity: 1;
transform: translateY(0);
}
.inline-disclosure {
--inline-disclosure-duration: 220ms;
display: grid;
grid-template-rows: 0fr;
opacity: 0;
pointer-events: none;
}
.inline-disclosure[data-state="open"] {
--inline-disclosure-duration: 240ms;
grid-template-rows: 1fr;
opacity: 1;
pointer-events: auto;
}
.inline-disclosure-clip {
min-height: 0;
overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
.expandable-text {
transition: height 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.inline-disclosure {
transition:
grid-template-rows var(--inline-disclosure-duration)
cubic-bezier(0.4, 0, 0.2, 1),
opacity var(--inline-disclosure-duration) ease-in-out;
}
.inline-disclosure-content {
transform: translateY(-6px);
transition: transform var(--inline-disclosure-duration)
cubic-bezier(0.4, 0, 0.2, 1);
}
.inline-disclosure[data-state="open"] .inline-disclosure-content {
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.composer-status-strip {
will-change: auto;
}
.composer-status-strip[data-state] {
animation: none;
}
.composer-status-drawer {
transition-duration: 0.01ms;
}
.composer-status-drawer-content {
transform: none;
transition-duration: 120ms, 0.01ms;
}
.thread-layout {
transition-duration: 0.01ms;
}
}
.thread-workspace {
container: thread-workspace / inline-size;
}
.thread-preview-layout {
container: thread-preview-layout / inline-size;
}
.context-expanded-overlay[data-state="open"] {
animation: context-backdrop-in 250ms ease-out;
}
.context-expanded-overlay[data-state="closed"] {
animation: context-backdrop-in 250ms ease-out reverse;
}
@keyframes context-backdrop-in {
from { opacity: 0; backdrop-filter: blur(0); }
to { opacity: 1; backdrop-filter: blur(12px); }
}
@media (prefers-reduced-motion: reduce) {
.context-expanded-overlay { animation: none !important; }
}
/* Sidebars share the full pane height with a local conversation composer. */
.workbench-composer-footer:not(:has([data-active-composer])) {
display: none;
}
/* A split needs 420px for the conversation plus 360px for the preview.
Narrow workbench panes use the same contained overlay as a phone. */
@container thread-preview-layout (min-width: 780px) {
/* A replacement owns the slot while the outgoing surface fades over it. */
.thread-preview-layout:has(> .file-preview-pane:not([data-closing])) > .file-preview-pane[data-closing] {
position: absolute;
width: var(--file-preview-width);
z-index: 30;
}
.file-preview-pane {
position: relative;
z-index: auto;
width: var(--file-preview-slot-width);
min-width: 0;
flex-shrink: 0;
}
.file-preview-content {
width: calc(var(--file-preview-width) - 1rem);
bottom: var(--sidebar-bottom-inset, calc(1.125rem + env(safe-area-inset-bottom)));
padding-bottom: 0;
}
.file-preview-resize {
display: flex;
}
}
@container thread-preview-layout (width < 780px) {
/* Covered conversation controls must not remain in the keyboard/AT order. */
.thread-preview-layout[data-preview-open] > .thread-conversation {
visibility: hidden;
}
}
@media (max-width: 639px) {
.context-drawer-backdrop {
animation: context-drawer-backdrop-in 150ms cubic-bezier(0.2, 0, 0, 1);
transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1), backdrop-filter 150ms cubic-bezier(0.2, 0, 0, 1);
}
.context-drawer-backdrop:has(.context-drawer-panel[data-state="closed"]) {
animation: none;
background-color: transparent;
backdrop-filter: blur(0px);
}
}
@keyframes context-drawer-backdrop-in {
from { background-color: transparent; backdrop-filter: blur(0px); }
to { background-color: rgb(0 0 0 / 0.25); backdrop-filter: blur(8px); }
}
@media (prefers-reduced-motion: reduce) {
.context-drawer-backdrop { animation: none; transition: none; }
}
.thread-preview-layout:has(.context-drawer-panel) > .thread-conversation {
visibility: visible;
}
.thread-preview-layout[data-preview-open] > .thread-conversation {
--thread-header-position: relative;
}
/* Keep room for the 49.5rem message column and controls in the side margin. */
@container thread-workspace (max-width: 72rem) {
.thread-workspace > * {
--thread-header-position: relative;
}
}
.workbench-pane {
transform-origin: top left;
}
.scrollbar-thin {
scrollbar-width: thin;
scrollbar-color: hsl(var(--muted-foreground) / 0.4) transparent;
}
.scrollbar-thin::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
background-color: hsl(var(--muted-foreground) / 0.4);
border-radius: var(--radius-pill);
}
.scrollbar-track-transparent {
scrollbar-gutter: stable;
}
.scrollbar-track-transparent::-webkit-scrollbar-track {
background: transparent;
}
/*
* Mobile responsive safety net — keep the chat viewport + composer inside a
* narrow viewport (see #4693). These are containment rules: long markdown
* (URLs, branch names, file paths, code, tables) wraps or scrolls inside its
* own box instead of forcing the whole column — and thus the page — wider
* than 100vw. Desktop layout is unchanged; the rules only engage when content
* would otherwise overflow. Fenced code blocks keep their own internal
* horizontal scroll (CodeBlock and the markdown <pre> wrappers already set
* overflow-x: auto), so clipping the thread column horizontally is safe.
*/
.markdown-content {
min-width: 0;
max-width: 100%;
overflow-wrap: anywhere;
word-wrap: break-word;
}
.markdown-content a,
.markdown-content code {
overflow-wrap: anywhere;
word-wrap: break-word;
}
.markdown-content pre,
.not-prose pre {
max-width: 100%;
overflow-x: auto;
}
/* Markdown table cells retain whole-word minimum widths. The renderer's
overflow-x:auto wrapper contains tables wider than the preview or chat. */
.thread-viewport-scrollbar {
overflow-x: hidden;
}
.thread-viewport {
container-name: thread-viewport;
container-type: inline-size;
}
.thread-prompt-rail {
display: none;
left: 1.75rem;
}
.thread-prompt-rail-scroll {
scrollbar-width: none;
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 16px), transparent);
mask-image: linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.thread-prompt-rail-scroll::-webkit-scrollbar {
display: none;
}
@media (min-width: 768px) {
.thread-prompt-rail {
display: block;
}
}
@container thread-viewport (max-width: 59rem) {
.thread-prompt-rail {
display: none;
}
}
}
.thread-message-row,
.message-block-menu-trigger,
[data-message-block-menu] {
--message-block-control-size: 1.75rem;
--message-block-action-width: 1.75rem;
--message-block-trigger-offset: 2rem;
}
.thread-message-row {
padding-inline-start: max(
calc(var(--message-block-trigger-offset) + 0.75rem),
calc((100% - var(--content-column-width)) / 2)
);
padding-inline-end: max(0.75rem, calc((100% - var(--content-column-width)) / 2));
}
.message-block-menu-trigger,
.message-block-hover-time {
pointer-events: none;
opacity: 0;
}
[data-user-text-bubble] > .message-block-menu-trigger {
top: calc((1rem + var(--text-reading-size) * var(--reading-line-height) - var(--message-block-control-size)) / 2);
}
[data-user-text-bubble] > .message-block-hover-time {
top: calc((1rem + var(--text-reading-size) * var(--reading-line-height) + var(--message-block-control-size)) / 2);
}
[data-context-block-active] .message-block-menu-trigger,
[data-message-context-menu-open] .message-block-menu-trigger,
.message-block-menu-trigger:focus-visible,
[data-context-block-active] .message-block-hover-time,
[data-message-context-menu-open] .message-block-hover-time,
.message-block-hover-time:focus-visible {
pointer-events: auto;
opacity: 1;
}
[data-block-context-rail] {
pointer-events: none;
opacity: 0;
transition: opacity 120ms ease-out;
}
[data-context-block-active] [data-block-context-rail],
[data-block-context-rail][data-block-context-expanded] {
pointer-events: auto;
opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
.message-block-menu-trigger {
transition: none;
}
[data-block-context-rail] {
transition: none;
}
}
.workspace-picker-favorite {
pointer-events: none;
opacity: 0;
transition: opacity 120ms ease-out;
}
.workspace-picker-row:hover .workspace-picker-favorite,
.workspace-picker-row:focus-within .workspace-picker-favorite,
.workspace-picker-row[data-keyboard-active] .workspace-picker-favorite {
pointer-events: auto;
opacity: 1;
}
@media (hover: none) {
.workspace-picker-favorite {
pointer-events: auto;
opacity: 1;
}
}
@media (prefers-reduced-motion: reduce) {
.workspace-picker-favorite {
transition: none;
}
}
/* loading.dev Ring, Copyright (c) 2026 Jakub Krehel (MIT); THIRD_PARTY_NOTICES.md. */
.loading-ring-arc {
transform-origin: center;
animation: loading-ring-spin 800ms linear infinite;
}
@keyframes loading-ring-spin {
to { transform: rotate(360deg); }
}
.composer-primary-action {
transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
}
.composer-action-icons {
transition: transform 120ms ease-out;
}
.composer-primary-action:active:not(:disabled) .composer-action-icons {
transform: scale(0.94);
}
.composer-action-glyph {
position: absolute;
inset: 0;
display: grid;
place-items: center;
opacity: 0;
transform: scale(0.72);
transition: opacity 140ms ease-out, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.composer-action-glyph[data-active] {
opacity: 1;
transform: scale(1);
}
.composer-action-icons[data-state="stop"] [data-action-icon="send"] {
transform: translateY(-3px) scale(0.8);
}
.composer-action-glyph:not([data-active]) .loading-ring-arc {
animation: none;
}
@media (prefers-reduced-motion: reduce) {
.loading-ring-arc {
animation: none;
}
.composer-primary-action,
.composer-action-icons,
.composer-primary-action:active:not(:disabled) .composer-action-icons {
transition: none;
transform: none;
}
.composer-action-icons[data-state] .composer-action-glyph {
transform: none;
transition: opacity 80ms linear;
}
}
@media (pointer: coarse) {
/* Readable form text avoids Safari's focus zoom without disabling the user's
pinch zoom. Keep this after utilities so compact desktop overrides cannot
shrink shared form fields on touch devices. Larger chat/search text stays
on its own typography; this is not a blanket rule for every input. */
.touch-text-input {
font-size: max(16px, 1rem);
}
.thread-message-row,
.message-block-menu-trigger,
[data-message-block-menu] {
--message-block-control-size: 2.75rem;
--message-block-action-width: 2rem;
--message-block-trigger-offset: 3rem;
}
.touch-target {
min-width: 2.75rem;
min-height: 2.75rem;
}
.touch-target.preview-tab-close {
opacity: 1;
}
/* Touch users cannot hover a sidebar row to discover its actions. */
.sidebar-action-trigger {
opacity: 1;
}
}
@media (max-width: 767px) {
.thread-message-row {
padding-inline: 1rem;
}
[data-message-mobile-actions],
[data-message-mobile-sheet] {
--message-block-control-size: 2.75rem;
--message-block-action-width: 2.75rem;
}
}
.sidebar-selection-highlight {
transition: transform 300ms ease-out, width 300ms ease-out, height 300ms ease-out,
var(--theme-paint-transition, background-color 0s);
}
@media (prefers-reduced-motion: reduce) {
.sidebar-selection-highlight {
transition: var(--theme-paint-transition, none);
}
}
.thread-composer-surface,
.context-inspector-surface,
.user-message-surface,
.side-panel-surface {
--composer-shadow-color: 240 10% 16%;
--tw-shadow: inset 0 0 0 1px hsl(var(--border) / 0.75), 0 4px 18px -8px hsl(var(--composer-shadow-color) / 0.12);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.thread-composer-surface {
transition: var(--theme-paint-transition, background-color 160ms ease-out, box-shadow 160ms ease-out), opacity 160ms ease-out;
container-name: thread-composer;
container-type: inline-size;
}
.dark .thread-composer-surface,
.dark .context-inspector-surface,
.dark .user-message-surface,
.dark .side-panel-surface {
--composer-shadow-color: 240 12% 3%;
}
@media (prefers-reduced-motion: reduce) {
.thread-composer-surface { transition: var(--theme-paint-transition, none); }
}
@media (forced-colors: active) {
.thread-composer-surface, .context-inspector-surface, .user-message-surface, .side-panel-surface { outline: 1px solid CanvasText; }
.thread-composer-surface:focus-within { outline: 2px solid Highlight; }
[data-keyboard-focus] { outline: 2px solid Highlight; outline-offset: -2px; }
}
.thread-composer-footer-actions {
flex: 0 1 auto;
max-width: 58%;
}
.thread-composer-model-badge {
flex-shrink: 1;
}
.thread-composer-model-label-fade {
-webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 0.75rem), transparent);
mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 0.75rem), transparent);
}
.composer-model-pill-setup {
border-color: hsl(var(--border) / 0.72);
transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}
.thread-composer-model-badge:hover > .composer-model-pill-setup {
border-color: hsl(var(--border));
background-color: hsl(var(--foreground) / 0.045);
}
.dark .thread-composer-model-badge:hover > .composer-model-pill-setup {
background-color: rgb(255 255 255 / 0.065);
}
.thread-composer-model-badge:not([data-switching="true"]):active > .composer-model-pill {
background-color: hsl(var(--foreground) / 0.085);
}
@keyframes composer-model-pill-setup-attention {
0%,
100% {
transform: translateX(0);
}
22% {
transform: translateX(-3px);
}
46% {
transform: translateX(3px);
}
68% {
transform: translateX(-2px);
}
86% {
transform: translateX(1px);
}
}
.composer-model-pill-setup-attention {
animation: composer-model-pill-setup-attention 280ms cubic-bezier(0.22, 0.8, 0.32, 1);
}
@keyframes composer-model-pill-viewport-enter {
from {
transform: scale(0.9074);
}
to {
transform: scale(1);
}
}
.composer-model-pill-viewport {
transform-origin: right center;
animation: composer-model-pill-viewport-enter 210ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 4px, #000 calc(100% - 4px), transparent);
mask-image: linear-gradient(to bottom, transparent, #000 4px, #000 calc(100% - 4px), transparent);
}
.composer-model-pill-dock {
transform-origin: right center;
transition-property: none;
will-change: transform;
}
.composer-model-pill-track[data-settling="true"],
.composer-model-pill-track[data-settling="true"] .composer-model-pill-dock {
transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes settings-restart-breathe {
0%, 100% { opacity: 1; }
50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: no-preference) {
.settings-restart-pending { animation: settings-restart-breathe 3s ease-in-out infinite; }
.settings-restart-pending:hover, .settings-restart-pending:focus-visible { animation: none; }
}
@keyframes preset-name-shake {
0%,
100% {
transform: translateX(0);
}
35% {
transform: translateX(-2px);
}
70% {
transform: translateX(2px);
}
}
@media (prefers-reduced-motion: reduce) {
.thread-composer-model-badge:not([data-switching="true"]):active > .composer-model-pill {
transform: none !important;
}
.composer-model-pill-setup {
transition: none;
}
.composer-model-pill-setup-attention {
animation: none;
}
.composer-model-pill-track[data-settling="true"],
.composer-model-pill-dock {
transition: none;
will-change: auto;
}
.composer-model-pill-viewport {
animation: none;
}
}
.thread-composer-meta {
padding-inline-start: calc(var(--composer-footer-inset) + var(--composer-action-margin) + (var(--composer-action-size) - 0.875rem) / 2 - 0.5rem);
}
@media (pointer: coarse) {
.thread-composer-form { --composer-action-size: 2.75rem; }
}
/* Compact composers keep their primary actions on a stable 44px touch grid. */
.thread-composer-form[data-compact-controls] {
--composer-action-size: 2.25rem;
--composer-action-margin: 0.25rem;
--composer-footer-inset: 0.5rem;
}
[data-compact-controls] .thread-composer-footer {
column-gap: 0.25rem;
padding: 0 0.5rem 0.5rem;
}
[data-compact-controls] .thread-composer-footer-primary,
[data-compact-controls] .thread-composer-footer-actions {
gap: 0.25rem;
}
[data-compact-controls] .thread-composer-footer-actions {
max-width: 50%;
}
[data-compact-controls] .thread-composer-action.touch-target {
flex: none;
width: 2.75rem;
height: 2.75rem;
min-width: 2.75rem;
min-height: 2.75rem;
}
[data-compact-controls] .thread-composer-model-badge {
max-width: 100%;
min-height: 2.75rem;
align-items: center;
}
/* Keep a 44px hit area around the quieter 36px attachment/send controls.
* The transparent pseudo-element belongs to the button, including its disabled
* state; margins reserve its space so adjacent controls never overlap it. */
[data-compact-controls] .thread-composer-round-action.touch-target {
position: relative;
width: var(--composer-action-size);
height: var(--composer-action-size);
min-width: var(--composer-action-size);
min-height: var(--composer-action-size);
margin: var(--composer-action-margin);
}
[data-compact-controls] .thread-composer-round-action::before {
content: "";
position: absolute;
inset: -0.3125rem;
border-radius: inherit;
}
[data-compact-controls] .composer-model-pill {
height: 2.25rem;
}
@media (pointer: coarse) {
.thread-composer-meta .touch-target {
min-height: 2.75rem;
min-width: 2.75rem;
}
}
@media (forced-colors: active) {
[data-workbench-move-handle]:focus-visible {
outline: 2px solid CanvasText;
outline-offset: 2px;
}
}
@layer components {
@media (prefers-reduced-motion: no-preference) {
.segmented-control-indicator[data-animate="true"] {
transition-property: translate, scale;
transition-duration: 220ms, 160ms;
transition-timing-function:
cubic-bezier(0.2, 0.95, 0.25, 1.08),
cubic-bezier(0.2, 0, 0, 1);
}
}
}
@layer components {
.settings-grid {
--settings-columns: 4;
--settings-gutter: 16px;
--settings-margin: 16px;
--settings-inset: 16px;
--settings-module-gap: 20px;
container-type: inline-size;
max-inline-size: 720px;
padding-inline: var(--settings-margin);
}
.settings-grid.settings-feature-page {
--settings-margin: 0.75rem;
max-inline-size: calc(var(--content-column-width) + 2 * var(--settings-margin));
}
.settings-grid.settings-feature-page.settings-automations-grid {
max-inline-size: calc(60rem + 2 * var(--settings-margin));
}
.automations-page {
--settings-inset: 1rem;
container: automations / inline-size;
}
.automation-create-composer .thread-composer-surface {
max-inline-size: none;
}
.automation-create-composer .thread-composer-input > :is(textarea, [aria-hidden]) {
padding-inline: var(--settings-inset);
}
.automation-view-switch .segmented-control button {
padding-inline: calc(var(--settings-inset) - 0.5rem);
}
.automation-panel-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem 1rem;
min-block-size: 4rem;
padding-block: 0.75rem;
padding-inline: 0.75rem 0.25rem;
}
.automation-create-composer .thread-composer-collapsible-layout {
padding-block-start: 0;
}
/* Match the main sidebar's lg visibility; its collapsed rail has no labels. */
@media (min-width: 1024px) {
.settings-feature-page[data-main-navigation-expanded="true"] .settings-feature-header {
margin-block-end: 0;
}
.settings-feature-page[data-main-navigation-expanded="true"] .settings-feature-header h1 {
@apply sr-only;
}
}
.automation-run-at-picker {
container: automation-run-at / inline-size;
}
@container automation-run-at (min-width: 18rem) {
.automation-run-at-fields { grid-template-columns: minmax(0, 1fr) 7rem; }
}
.automation-panel-filters {
margin-inline-start: auto;
}
.thread-composer-collapsible-layout {
container: composer-layout / inline-size;
}
/* A wrapped placeholder must not resize the empty composer. */
.thread-composer-input textarea:placeholder-shown {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.thread-composer-collapsible[data-compact] .thread-composer-input > :is(textarea, [aria-hidden]) {
display: block;
block-size: 3.125rem !important;
}
@container composer-layout (min-width: 40rem) {
.thread-composer-collapsible .thread-composer-input {
inline-size: 100%;
}
.thread-composer-collapsible .thread-composer-input > :is(textarea, [aria-hidden]) {
display: block;
min-block-size: 3.5rem;
padding-block: 1.125rem;
}
.thread-composer-collapsible[data-compact] .thread-composer-input {
inline-size: max(0px, calc(100% - var(--composer-compact-controls-width, 15rem) - 1.5rem));
}
.thread-composer-collapsible[data-compact] .thread-composer-input > :is(textarea, [aria-hidden]) {
display: block;
block-size: 3.5rem !important;
min-block-size: 3.5rem;
padding-block: 1.125rem;
}
.thread-composer-collapsible .thread-composer-footer {
min-block-size: 3.5rem;
margin-block-start: 0;
padding: 0.5rem;
pointer-events: none;
}
.thread-composer-collapsible[data-compact] .thread-composer-footer {
margin-block-start: -3.5rem;
}
.thread-composer-collapsible .thread-composer-footer-primary {
flex: 1 0 auto;
margin-inline-start: auto;
pointer-events: auto;
}
.thread-composer-collapsible[data-compact] .thread-composer-footer-primary {
flex-grow: 0;
}
.thread-composer-collapsible .thread-composer-footer-actions {
max-inline-size: none;
margin-inline-start: 0;
pointer-events: auto;
}
@media (prefers-reduced-motion: no-preference) {
.thread-composer-collapsible .thread-composer-input {
transition: inline-size 220ms ease-out;
}
.thread-composer-collapsible .thread-composer-footer {
transition: margin-block-start 220ms ease-out;
}
.thread-composer-collapsible .thread-composer-footer-primary {
transition: flex-grow 220ms ease-out;
}
}
}
.automation-calendar-grid { display: none; }
.automation-calendar-agenda { display: block; }
@container automations (min-width: 44rem) {
.automation-calendar-grid { display: block; }
.automation-calendar-agenda { display: none; }
.automation-calendar-weekdays {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
}
.automation-calendar-weekdays > div {
padding: 8px 10px;
color: hsl(var(--muted-foreground));
font-size: 10px;
line-height: 16px;
text-align: end;
}
.automation-calendar-month {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
}
.automation-calendar-day {
min-block-size: 112px;
min-inline-size: 0;
border-inline-end: 1px solid hsl(var(--border) / 0.55);
border-block-end: 1px solid hsl(var(--border) / 0.55);
}
.automation-calendar-day:nth-child(7n) { border-inline-end: 0; }
.automation-calendar-day:nth-last-child(-n + 7) { border-block-end: 0; }
}
.settings-stack > :not([hidden]) ~ :not([hidden]) {
margin-block-start: var(--settings-module-gap, 20px);
}
.settings-section-title {
margin-block-end: 20px;
padding-inline: var(--settings-inset, 16px);
line-height: 20px;
}
.settings-section-heading {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px 24px;
padding-inline: var(--settings-inset, 16px);
}
.settings-section-heading > .settings-section-title { margin: 0; padding: 0; }
.settings-stack > .settings-section-heading + :not([hidden]) { margin-block-start: 20px; }
.control-layout {
display: flex;
height: 2.25rem;
align-items: center;
gap: 0.5rem;
border-width: 1px;
padding-inline: 0.75rem;
}
.settings-row, .settings-footer, .settings-disclosure-row {
display: grid;
grid-template-columns: repeat(var(--settings-columns, 4), minmax(0, 1fr));
column-gap: var(--settings-gutter, 16px);
row-gap: 12px;
align-items: center;
padding: 12px var(--settings-inset, 16px);
min-block-size: 60px;
}
.settings-row > *, .settings-footer > * { grid-column: 1 / -1; min-inline-size: 0; }
.settings-disclosure-row { grid-template-columns: minmax(0, 1fr) auto; }
.settings-control { display: flex; align-items: center; max-inline-size: 100%; }
.settings-control > * { max-inline-size: 100%; }
.settings-control input, .settings-control textarea { max-inline-size: 100%; text-align: start; }
.settings-control input[type="number"] { font-variant-numeric: tabular-nums; }
.settings-footer { min-block-size: 60px; }
.settings-footer-auto { min-block-size: 40px; padding-block: 8px; row-gap: 0; }
.settings-footer-auto > :first-child { grid-column: 1 / -1; font-size: 12px; }
.settings-footer-auto > :nth-child(2):empty { display: none; }
.settings-row:has(> .settings-control > :is([role="switch"], [data-skeleton-switch])) {
grid-template-columns: minmax(0, 1fr) auto;
column-gap: 24px;
}
.settings-row:has(> .settings-control > :is([role="switch"], [data-skeleton-switch])) > :first-child { grid-column: 1; }
.settings-row:has(> .settings-control > :is([role="switch"], [data-skeleton-switch])) > :nth-child(2) { grid-column: 2; }
.settings-list-row, .settings-list-inset { padding-inline: var(--settings-inset, 16px); }
.settings-list-row { min-block-size: 60px; border-radius: var(--radius-control); }
.settings-list-row:focus-visible { outline: none; }
.icon-action[aria-pressed="true"], .icon-action[data-state="open"] {
color: hsl(var(--foreground));
}
.icon-action[aria-pressed="true"]::after, .icon-action[data-state="open"]::after {
content: "";
position: absolute;
bottom: 3px;
left: calc(50% - 4px);
width: 8px;
height: 2px;
border-radius: 1px;
background-color: currentColor;
pointer-events: none;
}
.icon-action svg {
transform-box: fill-box;
transform-origin: center;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
.icon-action [data-product-icon="settings"] > path {
transform-box: view-box;
transform-origin: center;
transform: rotate(0deg);
transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.icon-action:not(:disabled):hover [data-product-icon="settings"] > path {
transform: rotate(90deg);
}
}
.activity-current-trace { display: none; }
@media (prefers-reduced-motion: no-preference) {
.activity-current > path:first-child { opacity: 0.35; }
.activity-current-trace {
display: block;
stroke-dasharray: 16 84;
animation: activity-current-flow var(--activity-animation);
}
}
@keyframes activity-current-flow {
0% { stroke-dashoffset: 16; opacity: 0; }
50% { opacity: 1; }
100% { stroke-dashoffset: 116; opacity: 0; }
}
.quiet-control, .settings-hover {
--control-hover-fill: hsl(var(--foreground) / 0.045);
--control-active-fill: hsl(var(--foreground) / 0.085);
}
.dark .quiet-control, .dark .settings-hover {
--control-hover-fill: rgb(255 255 255 / 0.065);
--control-active-fill: rgb(255 255 255 / 0.105);
}
@media (hover: hover) {
.quiet-control:hover, .settings-hover:hover {
background-color: var(--control-hover-fill);
}
}
.quiet-control:active, .settings-hover:active,
.quiet-control[data-state="open"], .quiet-control[aria-pressed="true"] {
background-color: var(--control-active-fill);
}
.settings-editor { padding: 16px var(--settings-inset, 16px); }
@media (min-width: 640px) {
.settings-grid { --settings-margin: 32px; }
.settings-grid.settings-feature-page { --settings-margin: 1rem; }
}
@container (min-width: 640px) {
.settings-grid .settings-row, .settings-grid .settings-footer {
--settings-columns: 12;
--settings-gutter: 24px;
}
.settings-grid .settings-control { justify-content: flex-end; }
.settings-grid .settings-row > :first-child,
.settings-grid .settings-footer > :first-child { grid-column: 1 / 8; }
.settings-grid .settings-row > :nth-child(2),
.settings-grid .settings-footer > :nth-child(2) { grid-column: 8 / -1; }
.settings-grid .settings-footer-auto > :first-child { grid-column: 1 / -1; }
.settings-grid .settings-row:has(:is(.segmented-control, .settings-version-actions)) > :first-child { grid-column: 1 / 7; }
.settings-grid .settings-row:has(:is(.segmented-control, .settings-version-actions)) > :nth-child(2) { grid-column: 7 / -1; }
}
@media (min-width: 768px) {
.settings-grid { --settings-inset: 24px; }
}
}
.sidebar-scroll-fade {
--sidebar-fade-top: 0px;
--sidebar-fade-bottom: 0px;
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--sidebar-fade-top), #000 calc(100% - var(--sidebar-fade-bottom)), transparent);
mask-image: linear-gradient(to bottom, transparent, #000 var(--sidebar-fade-top), #000 calc(100% - var(--sidebar-fade-bottom)), transparent);
}
.sidebar-child-list {
position: relative;
}
.sidebar-child-list::before {
content: "";
position: absolute;
inset-block: 4px;
inset-inline-start: -5px;
width: 1px;
background: hsl(var(--sidebar-foreground) / 0.12);
pointer-events: none;
}
.sidebar-scrollbar {
scrollbar-width: thin;
scrollbar-color: transparent transparent;
}
.sidebar-scrollbar:is(:hover, :has(:focus-visible), [data-scrolling="true"]) {
scrollbar-color: hsl(var(--sidebar-foreground) / 0.2) transparent;
}
@supports selector(::-webkit-scrollbar) {
.sidebar-scrollbar,
.sidebar-scrollbar:is(:hover, :has(:focus-visible), [data-scrolling="true"]) {
scrollbar-width: auto;
scrollbar-color: auto;
}
.sidebar-scrollbar::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.sidebar-scrollbar::-webkit-scrollbar-button {
display: none;
width: 0;
height: 0;
}
.sidebar-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.sidebar-scrollbar::-webkit-scrollbar-thumb {
min-height: 32px;
border: 3.5px solid transparent;
border-radius: 999px;
background: transparent;
background-clip: padding-box;
transition: background-color 180ms ease-out;
}
.sidebar-scrollbar:is(:hover, :has(:focus-visible), [data-scrolling="true"])::-webkit-scrollbar-thumb {
background-color: hsl(var(--sidebar-foreground) / 0.2);
}
.sidebar-scrollbar::-webkit-scrollbar-thumb:hover,
.sidebar-scrollbar::-webkit-scrollbar-thumb:active {
background-color: hsl(var(--sidebar-foreground) / 0.38);
}
}
@media (prefers-reduced-motion: reduce) {
.sidebar-scrollbar::-webkit-scrollbar-thumb { transition: none; }
}
.workspace-directory-loading {
position: relative;
overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
.workspace-directory-loading::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
background: linear-gradient(90deg, transparent, hsl(var(--foreground) / 0.045), transparent);
transform: translateX(-100%);
animation: workspace-directory-shimmer 1.6s ease-in-out infinite;
}
}
@keyframes workspace-directory-shimmer {
to { transform: translateX(100%); }
}
.code-content {
--code-foreground: hsl(var(--foreground));
--code-background: hsl(var(--background));
color: hsl(var(--foreground));
}
.nanobot-file-diff {
--code-foreground: hsl(var(--foreground));
--code-background: hsl(var(--background));
display: block;
min-width: 0;
--diffs-font-size: var(--text-code-dense-size);
--diffs-line-height: calc(var(--text-code-dense-size) * 1.6);
--diffs-gap-block: 0px;
--diffs-bg-context-override: transparent;
--diffs-bg-context-gutter-override: transparent;
--diffs-bg-addition-override: var(--diff-added);
--diffs-bg-addition-number-override: var(--diff-added);
--diffs-bg-deletion-override: var(--diff-deleted);
--diffs-bg-deletion-number-override: var(--diff-deleted);
--diffs-addition-color-override: var(--diff-added-foreground);
--diffs-deletion-color-override: var(--diff-deleted-foreground);
--diffs-fg-number-override: hsl(var(--muted-foreground));
--diffs-bg-addition-emphasis-override: color-mix(in srgb, var(--diff-added-foreground) 15%, transparent);
--diffs-bg-deletion-emphasis-override: color-mix(in srgb, var(--diff-deleted-foreground) 15%, transparent);
}
.nanobot-diff-gap {
height: 26px;
box-sizing: border-box;
white-space: nowrap;
}