Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

20.1 KB
Raw Blame
@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable-4.001.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Commit Mono';
  src: url('/fonts/CommitMono-1.143.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

html {
  /* Keep short and scrolling routes on the same horizontal grid. */
  scrollbar-gutter: stable;
}

@supports (scrollbar-gutter: stable) {
  /* Radix scroll locks must not compensate for the already reserved gutter. */
  html body[data-scroll-locked] {
    margin-right: 0 !important;
  }
}

@layer components {
  .page-container {
    @apply w-full min-w-0 px-4 sm:px-6 lg:px-10;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@layer base {
  /* Token mapping: design palette (#13161B / #00B0F0 / #5ad67d …) expressed as the
     HSL triples the shadcn primitives already consume, so re-skinning is a token swap.
     Verified exact: hsl(196 100% 47%) === #00B0F0 (the accent/brand blue). */
  :root {
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Commit Mono', ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;

    /* light theme — bg #FFFFFF, card #F3F4F6, fg #13161B, dim #6B7079, border #E2E5EA */
    --background: 0 0% 100%;
    --foreground: 218 17% 9%;
    --card: 220 14% 96%;
    --card-foreground: 218 17% 9%;
    --popover: 0 0% 100%;
    --popover-foreground: 218 17% 9%;
    --primary: 218 17% 9%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 14% 96%;
    --secondary-foreground: 218 17% 9%;
    --muted: 220 14% 96%;
    --muted-foreground: 219 6% 42%;
    --accent: 220 14% 93%;
    --accent-foreground: 218 17% 9%;

    /* brand accent (the design's --accent blue) — kept distinct from shadcn's neutral
       hover "accent" so hovers stay neutral and the blue stays intentional. */
    --brand: 196 100% 47%;
    --link: #0077a3;
    --brand-foreground: 218 17% 9%;

    --border: 218 16% 90%;
    --border-hover: 218 10% 75%;
    --border-selected: 218 8% 55%;
    --input: 218 16% 90%;
    --ring: 196 100% 47%;

    --chart-1: 196 100% 47%;
    --chart-2: 137 60% 45%;
    --chart-3: 43 72% 47%;
    --chart-4: 219 6% 55%;
    --chart-5: 196 70% 70%;
    --chart-6: 196 60% 35%;
    --chart-7: 5 71% 52%;

    --radius: 0rem;
    --spacing: 0.25rem;

    /* Flat, bordered surfaces; shadow reserved for floating overlays only. */
    --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -10px rgba(16, 24, 40, 0.1);
    --shadow-card-hover: 0 2px 4px rgba(16, 24, 40, 0.06), 0 14px 32px -12px rgba(16, 24, 40, 0.14);

    --info: 196 100% 47%;
    --info-background: 196 60% 95%;
    --info-foreground: 200 60% 30%;
    --info-separator: 200 30% 85%;

    --success: 137 45% 38%;
    --success-background: 137 35% 94%;
    --success-foreground: 137 50% 28%;
    --success-separator: 137 25% 84%;

    --warning: 38 80% 40%;
    --warning-background: 43 70% 94%;
    --warning-foreground: 38 85% 32%;
    --warning-separator: 43 55% 84%;

    --destructive: 5 71% 50%;
    --destructive-solid: 5 71% 50%;
    --destructive-background: 5 60% 95%;
    --destructive-foreground: 5 66% 46%;
    --destructive-separator: 5 48% 85%;

    --sidebar-background: var(--background);
    --sidebar-foreground: 0 0% 35%;
    --sidebar-primary: 218 17% 9%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 0 0% 94%;
    --sidebar-accent-foreground: var(--selection-foreground);
    --sidebar-border: 218 16% 90%;
    --sidebar-ring: 196 100% 47%;

    --code-background: 216 33% 97%;

    --scrollbar-track: 220 14% 96%;
    --scrollbar-thumb: 218 16% 74%;
    --scrollbar-thumb-hover: 196 100% 47%;
    --control-hover: 0 0% 96%;
    --selection: 0 0% 84%;
    --selection-foreground: var(--foreground);
    --sidebar-muted-foreground: 0 0% 42%;
    --sidebar-hover: var(--control-hover);
  }

  .dark {
    /* Neutral near-black surfaces; semantic state and brand colors retain their hues. */
    --background: 0 0% 4%;
    --foreground: 0 0% 100%;
    --card: 0 0% 7%;
    --card-foreground: 0 0% 100%;
    --popover: 0 0% 9%;
    --popover-foreground: 0 0% 100%;
    --primary: 0 0% 100%;
    --primary-foreground: 0 0% 4%;
    --secondary: 0 0% 7%;
    --secondary-foreground: 0 0% 100%;
    --muted: 0 0% 7%;
    --muted-foreground: 0 0% 62%;
    --accent: 0 0% 12%;
    --accent-foreground: 0 0% 100%;

    --brand: 196 100% 47%;
    --link: #49bde8;
    --brand-foreground: 218 17% 9%;

    --border: 0 0% 16%;
    --border-hover: 0 0% 23%;
    --border-selected: 0 0% 30%;
    --input: 0 0% 16%;
    --ring: 196 100% 47%;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -8px rgba(0, 0, 0, 0.55);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 16px 36px -10px rgba(0, 0, 0, 0.65);

    --chart-1: 196 100% 47%;
    --chart-2: 137 60% 60%;
    --chart-3: 43 72% 57%;
    --chart-4: 221 7% 58%;
    --chart-5: 196 70% 72%;
    --chart-6: 196 60% 40%;
    --chart-7: 5 71% 58%;

    --info: 196 100% 47%;
    --info-background: 200 40% 14%;
    --info-foreground: 196 80% 70%;
    --info-separator: 200 25% 20%;

    --success: 137 60% 60%;
    --success-background: 137 30% 12%;
    --success-foreground: 137 55% 65%;
    --success-separator: 137 22% 18%;

    --warning: 43 72% 57%;
    --warning-background: 38 35% 11%;
    --warning-foreground: 43 80% 65%;
    --warning-separator: 38 30% 18%;

    --destructive: 5 71% 58%;
    --destructive-solid: 5 71% 50%;
    --destructive-background: 5 34% 12%;
    --destructive-foreground: 5 85% 72%;
    --destructive-separator: 5 29% 18%;

    --sidebar-background: var(--background);
    --sidebar-foreground: 0 0% 68%;
    --sidebar-primary: 0 0% 100%;
    --sidebar-primary-foreground: 0 0% 4%;
    --sidebar-accent: 0 0% 13%;
    --sidebar-accent-foreground: var(--selection-foreground);
    --sidebar-border: 0 0% 16%;
    --sidebar-ring: 196 100% 47%;

    --code-background: 0 0% 3%;

    --scrollbar-track: 0 0% 3%;
    --scrollbar-thumb: 0 0% 24%;
    --scrollbar-thumb-hover: 196 100% 47%;
    --control-hover: 0 0% 10%;
    --selection: 0 0% 24%;
    --selection-foreground: var(--foreground);
    --sidebar-muted-foreground: 0 0% 68%;
    --sidebar-hover: var(--control-hover);
  }

  html {
    font-size: 16px;
  }

  * {
    @apply border-border outline-ring/50;
  }

  /* One focus indicator for anything that does not draw its own: keyboard focus must
     always be visible, including on scroll containers and tab panels. */
  :focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
  }

  body {
    @apply bg-background font-sans text-foreground;
    font-size: 13px;
    line-height: 1.45;
  }

  code,
  pre,
  kbd,
  samp {
    @apply font-mono;
    font-variant-ligatures: none;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }

  input[type='time']::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
  }

  input[type='time']::-webkit-clear-button,
  input[type='time']::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
  }

  input[type='time'] {
    -moz-appearance: textfield;
  }

  .slide-in-from-right {
    animation: slide-in-from-right 0.2s ease-out;
  }

  .slide-out-to-right {
    animation: slide-out-to-right 0.2s ease-out;
  }

  @keyframes slide-in-from-right {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  @keyframes slide-out-to-right {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(100%);
    }
  }

  /* Shared ASCII/terminal motifs from the design prototypes. */
  @keyframes blink {
    0%,
    49% {
      opacity: 1;
    }
    50%,
    100% {
      opacity: 0;
    }
  }

  @keyframes live-pulse {
    0% {
      box-shadow: 0 0 0 0 hsl(var(--brand) / 0.55);
    }
    70% {
      box-shadow: 0 0 0 6px hsl(var(--brand) / 0);
    }
    100% {
      box-shadow: 0 0 0 0 hsl(var(--brand) / 0);
    }
  }

  @keyframes stat-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  /* A box assembling: one face's outline draws in, holds while its siblings
     arrive, then all three clear together for the next pass. */
  @keyframes box-draw {
    0% {
      stroke-dashoffset: 140;
    }
    28%,
    82% {
      stroke-dashoffset: 0;
    }
    100% {
      stroke-dashoffset: 140;
    }
  }

  /* The top face catches the light once the three faces have met. */
  @keyframes box-lit {
    0%,
    22% {
      fill-opacity: 0;
    }
    42% {
      fill-opacity: 0.18;
    }
    70%,
    100% {
      fill-opacity: 0;
    }
  }

  /* A brand segment travelling through a neutral track. Rest is `--border`,
     not a pale brand tint: an empty segment is empty — the same rule the
     quota and concurrency bars follow. */
  @keyframes seg-wave {
    0%,
    100% {
      background-color: hsl(var(--border));
    }
    45% {
      background-color: hsl(var(--brand));
    }
  }

  @keyframes qs-fall {
    to {
      transform: translateY(140px) rotate(220deg);
      opacity: 0;
    }
  }

  @keyframes qs-pulse {
    0%,
    100% {
      box-shadow: 0 0 0 0 hsl(var(--brand) / 0.5);
    }
    50% {
      box-shadow: 0 0 0 7px hsl(var(--brand) / 0);
    }
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--scrollbar-thumb)) hsl(var(--scrollbar-track));
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: hsl(var(--scrollbar-track));
}

*::-webkit-scrollbar-thumb {
  min-height: 40px;
  border: 2px solid hsl(var(--scrollbar-track));
  border-radius: 0;
  background-color: hsl(var(--scrollbar-thumb));
}

*::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--scrollbar-thumb-hover));
}

*::-webkit-scrollbar-corner {
  background: hsl(var(--scrollbar-track));
}

.scrollbar-elevated {
  scrollbar-gutter: stable;
  scrollbar-color: hsl(var(--scrollbar-thumb)) hsl(var(--scrollbar-track));
}

.scrollbar-elevated::-webkit-scrollbar-thumb {
  background-color: hsl(var(--scrollbar-thumb));
}

.scrollbar-elevated::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--scrollbar-thumb-hover));
}

.scrollbar-thin,
.scrollbar-sm {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--scrollbar-thumb)) hsl(var(--scrollbar-track));
}

.scrollbar-thin::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.scrollbar-sm::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scrollbar-thumb-border::-webkit-scrollbar-thumb,
.scrollbar-sm::-webkit-scrollbar-thumb {
  border: 2px solid hsl(var(--scrollbar-track));
  border-radius: 0;
  background-color: hsl(var(--scrollbar-thumb));
}

.scrollbar-sm::-webkit-scrollbar-thumb {
  min-height: 32px;
}

.scrollbar-thumb-border::-webkit-scrollbar-thumb:hover,
.scrollbar-sm::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--scrollbar-thumb-hover));
}

.scrollbar-track-background::-webkit-scrollbar-track,
.scrollbar-sm::-webkit-scrollbar-track {
  background: hsl(var(--scrollbar-track));
}

.scrollbar-track-transparent::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

::selection {
  @apply bg-brand text-brand-foreground;
}

/* Halftone / Ben-Day dot texture — for placeholders, empty states, "coming soon" tiles. */
.halftone {
  background-image: radial-gradient(hsl(var(--muted-foreground) / 0.55) 1px, transparent 1.6px);
  background-size: 6px 6px;
}
.halftone-brand {
  background-image: radial-gradient(hsl(var(--brand) / 0.5) 1px, transparent 1.6px);
  background-size: 6px 6px;
}

/* A continuous reading path through the four inline SDK steps. */
.quickstart-sequence {
  padding-left: 42px;
}
.quickstart-step {
  position: relative;
  padding-bottom: 36px;
}
.quickstart-step::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: hsl(var(--border));
}
.quickstart-step:last-of-type::before {
  display: none;
}
.quickstart-step-number {
  position: absolute;
  left: -42px;
  top: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  font-family: var(--font-mono);
  font-size: 12px;
}
.quickstart-step h2 {
  position: relative;
}

/* Code is reading material, not a tracked uppercase label. Keep this scoped to
   the walkthrough so other compact console code blocks retain their scale. */
.quickstart-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: normal;
  font-variant-ligatures: none;
  tab-size: 4;
}

/* Shared desktop resource contracts. Consumers opt in; business layouts remain local. */
@layer components {
  .resource-page {
    @apply flex min-h-0 flex-col gap-6 px-4 py-7 sm:px-6 lg:px-10;
  }
  .resource-header {
    @apply flex flex-col gap-5;
  }
  .resource-title {
    @apply font-display text-page font-semibold text-foreground;
  }
  .resource-page-header {
    @apply mb-6 shrink-0;
  }
  .resource-toolbar {
    @apply flex min-h-9 shrink-0 flex-wrap items-center justify-between gap-3;
  }
  .resource-filter {
    @apply flex h-9 w-full min-w-0 items-center gap-3 border border-border bg-card px-3 transition-colors focus-within:border-foreground sm:w-[380px] sm:flex-none;
  }
  .resource-empty {
    @apply flex min-h-[280px] flex-1 flex-col items-center justify-center gap-3 px-6 py-12 text-center;
  }
  .resource-content {
    @apply flex min-h-0 flex-1 flex-col overflow-auto;
  }
  .resource-empty-icon {
    @apply mb-2 flex size-12 items-center justify-center text-muted-foreground [&>svg]:size-9 [&>svg]:stroke-1;
  }
  .resource-list-head {
    @apply min-h-11 border-b border-border px-4 py-3 font-sans text-meta font-medium normal-case tracking-normal text-muted-foreground;
  }
  .resource-list-row {
    @apply min-h-12 border-b border-border/60 px-4 py-2 text-body transition-colors hover:bg-accent/40 focus-within:bg-accent/40;
  }
  .resource-object-icon {
    @apply flex size-5 shrink-0 items-center justify-center text-muted-foreground [&>svg]:size-5;
  }
  .resource-table th {
    @apply h-11 whitespace-nowrap px-4 text-meta font-medium text-muted-foreground;
  }
  .resource-table tbody tr {
    @apply h-12 border-border/60;
  }
  .resource-table tbody tr:last-child {
    @apply border-b;
  }
  .resource-table td {
    @apply px-4 py-2 text-meta;
  }
  .resource-table tbody tr:has(.resource-empty) {
    @apply border-0;
  }
  .resource-table td:has(.resource-empty) {
    @apply p-0;
  }
  .resource-name {
    @apply truncate font-mono text-body font-semibold text-foreground;
  }
  .resource-link {
    @apply resource-name outline-none underline-offset-4 hover:underline focus-visible:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-foreground;
  }
  .resource-status {
    @apply inline-flex items-center gap-2 whitespace-nowrap font-sans text-meta font-normal normal-case tracking-normal text-foreground;
  }
  .resource-footer {
    @apply flex flex-wrap items-center justify-between gap-3 px-4 py-4 font-sans text-meta normal-case tracking-normal text-muted-foreground;
  }
  .form-dialog-body {
    @apply min-h-0 flex-1 space-y-5 overflow-y-auto px-6 py-6;
  }
  .form-dialog [data-slot='dialog-title'] {
    @apply font-display text-section font-semibold tracking-normal;
  }
  .form-field-label {
    @apply mb-2 block font-sans text-meta font-medium normal-case tracking-normal text-foreground;
  }
  .form-field-input {
    @apply h-10 w-full border border-border bg-background px-3 text-body text-foreground outline-none transition-colors focus:border-foreground/50 focus:ring-2 focus:ring-foreground/10 aria-[invalid=true]:border-destructive;
  }
}

.resource-guide-link {
  @apply underline underline-offset-4 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand;
  color: var(--link);
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}

.resource-guide-link:hover {
  text-decoration-color: currentColor;
}

/* Code boundaries use the same quiet structural border as the rest of the console. */
.quickstart-code-surface {
  --quickstart-code-border: var(--border);
  border: 1px solid hsl(var(--quickstart-code-border));
  background: hsl(0 0% 98%);
}
.dark .quickstart-code-surface {
  background: hsl(0 0% 7%);
}
@media (min-width: 768px) and (min-height: 800px) {
  .template-detail {
    position: sticky;
    top: 84px;
    max-height: calc(100svh - 108px);
    overflow-y: auto;
  }
}

/* Surface roles stay neutral; input shadows compose with Tailwind's focus rings. */
:root {
  --field-surface: 0 0% 99%;
  --field-inset: inset 0 1px 2px rgb(16 24 40 / 0.035);
  --shadow-floating: 0 2px 4px rgb(16 24 40 / 0.04), 0 8px 24px -8px rgb(16 24 40 / 0.14);
  --shadow-dialog: 0 4px 8px rgb(16 24 40 / 0.05), 0 24px 64px -20px rgb(16 24 40 / 0.25);
  --scroll-edge-color: 0 0% 0% / 0.09;
}
.dark {
  --field-surface: 0 0% 5%;
  --field-inset: inset 0 1px 2px rgb(0 0 0 / 0.24);
  --shadow-floating: 0 2px 4px rgb(0 0 0 / 0.2), 0 8px 24px -8px rgb(0 0 0 / 0.5);
  --shadow-dialog: 0 4px 8px rgb(0 0 0 / 0.24), 0 24px 64px -20px rgb(0 0 0 / 0.65);
  --scroll-edge-color: 0 0% 100% / 0.065;
}
.console-input-surface:not([data-slot='input-group-control']),
.form-field-input {
  background-color: hsl(var(--field-surface));
  --tw-shadow: var(--field-inset);
  --tw-shadow-colored: var(--field-inset);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.console-floating-surface {
  box-shadow: var(--shadow-floating);
}
.console-dialog-surface {
  box-shadow: var(--shadow-dialog);
}

/* Local covers disappear with the scroll; shallow edge backgrounds never cover content.
   Use only on solid native scroll surfaces, not on masked Radix viewports. */
.scroll-edge {
  --scroll-surface: var(--background);
  background-image:
    linear-gradient(hsl(var(--scroll-surface)) 35%, hsl(var(--scroll-surface) / 0)),
    linear-gradient(hsl(var(--scroll-surface) / 0), hsl(var(--scroll-surface)) 65%),
    linear-gradient(hsl(var(--scroll-edge-color)), transparent),
    linear-gradient(transparent, hsl(var(--scroll-edge-color)));
  background-position:
    center top,
    center bottom,
    center top,
    center bottom;
  background-size:
    100% 28px,
    100% 28px,
    100% 8px,
    100% 8px;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.code-scroll-edge {
  --scroll-surface: var(--code-background);
}
.quickstart-code-surface .code-scroll-edge {
  --scroll-surface: 0 0% 98%;
}
.dark .quickstart-code-surface .code-scroll-edge {
  --scroll-surface: 0 0% 7%;
}

.quota-ticks {
  display: inline-grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 2px;
  width: 64px;
  height: 8px;
  flex: none;
  vertical-align: middle;
}
.quota-tick {
  position: relative;
  background: hsl(var(--border));
}
.quota-tick > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: currentColor;
  opacity: 0.75;
}

/* Resource icon animations affect their accents only; existing row feedback is independent. */
.resource-state-accent,
.resource-state-trace {
  stroke: var(--resource-state-color);
}
.resource-state-face,
.resource-state-light {
  fill: var(--resource-state-color);
  stroke: none;
}
.resource-state-face {
  opacity: 0.07;
}
.resource-state-trace {
  stroke-dasharray: 8 44;
  animation: resource-state-trace 2.8s linear infinite;
}
.resource-state-breathe {
  animation: resource-state-breathe 2.6s ease-in-out infinite;
}
@keyframes resource-state-trace {
  to {
    stroke-dashoffset: -52;
  }
}
@keyframes resource-state-breathe {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .resource-state-trace,
  .resource-state-breathe {
    animation: none;
  }
  .resource-state-trace {
    stroke-dashoffset: -7;
  }
}