The Open Standard for Generative UI
.page {
display: flex;
width: 100%;
height: 100dvh;
min-width: 0;
flex-direction: column;
overflow: hidden;
color: var(--openui-text-neutral-primary);
background: var(--openui-background);
}
.header {
position: relative;
z-index: 5;
flex: none;
border-bottom: 1px solid var(--openui-border-default);
background: var(--openui-foreground);
padding: 8px;
}
.headerRow {
display: grid;
min-height: 2.25rem;
min-width: 0;
align-items: center;
grid-template-columns: 1fr auto 1fr;
gap: 8px;
}
.backLink {
display: inline-flex;
box-sizing: border-box;
width: 2.25rem;
height: 2.25rem;
flex: none;
align-items: center;
justify-content: center;
justify-self: start;
border-radius: 10px;
background: transparent;
color: var(--openui-text-neutral-primary);
text-decoration: none;
transition: background-color 120ms ease;
}
.backLink:hover {
background: var(--openui-highlight);
}
.backLink:focus-visible {
outline: 2px solid var(--openui-border-accent-emphasis);
outline-offset: 2px;
}
.viewportControl {
min-width: 0;
justify-self: center;
}
.viewportGroup {
display: inline-flex !important;
width: auto !important;
min-width: 0;
flex-wrap: nowrap !important;
gap: 2px !important;
border: 0;
border-radius: 0;
background: transparent;
padding: 0;
}
.viewportItem {
display: inline-flex;
min-height: 2.25rem !important;
align-items: center;
gap: 6px;
border: 0 !important;
border-radius: 10px !important;
background: transparent !important;
padding: 7px 14px !important;
color: var(--openui-text-neutral-secondary) !important;
font: var(--openui-text-label-sm) !important;
white-space: nowrap;
transition:
color 120ms ease,
background-color 120ms ease;
}
.viewportItem:hover:not(:disabled) {
color: var(--openui-text-neutral-primary) !important;
background: var(--openui-highlight) !important;
}
.viewportItem[data-state="on"] {
color: var(--openui-text-neutral-primary) !important;
background: var(--openui-sunk) !important;
box-shadow: none;
}
.viewportItem:focus-visible {
position: relative;
z-index: 1;
outline: 2px solid var(--openui-border-accent-emphasis);
outline-offset: 1px;
}
.buildForFreeMenu {
position: relative;
min-width: 0;
justify-self: end;
}
.agentViewport {
position: relative;
display: flex;
min-width: 0;
min-height: 0;
flex: 1;
align-items: stretch;
justify-content: center;
overflow: hidden;
background: var(--openui-background);
padding: 12px;
}
.agentViewport[data-viewport="desktop"] {
padding: 0;
}
.agentFrame {
position: relative;
height: 100%;
min-width: 0;
min-height: 0;
overflow: hidden;
background: var(--openui-foreground);
transition:
width 180ms ease,
border-radius 180ms ease,
box-shadow 180ms ease;
}
.agentFrame[data-viewport="desktop"] {
width: 100%;
}
.agentFrame[data-viewport="mobile"] {
width: min(390px, 100%);
border: 1px solid var(--openui-border-default);
border-radius: 14px;
box-shadow: var(--openui-shadow-m);
}
.agentFrame[data-viewport="tablet"] {
width: min(820px, 100%);
border: 1px solid var(--openui-border-default);
border-radius: 14px;
box-shadow: var(--openui-shadow-m);
}
.agentFrame > * {
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
}
.agentViewport :global(.chat-agent-surface) {
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.agentViewport :global(.openui-agent-container) {
width: 100% !important;
height: 100% !important;
overflow: clip !important;
}
.agentViewport :global(.openui-agent-sidebar-header__logo) {
border-radius: 7px;
background: var(--openui-border-default);
padding: 3px;
object-fit: contain;
}
.agentViewport :global([data-chat-mode="cloud"] .openui-agent-thread-error) {
display: none;
}
.agentViewport :global(.openui-detailed-view-panel) {
display: flex !important;
min-height: 0 !important;
flex: 1 1 0% !important;
flex-direction: column !important;
}
.agentViewport :global(.openui-detailed-view-panel > .thesys-artifact-standalone) {
min-height: 0 !important;
flex: 1 1 0% !important;
}
.agentViewport :global(.openui-detailed-view-panel .c1-slide-scaled-container) {
border: 0;
}
/* Source citation cards: compact equal-width tiles in a single row, with a
small logo beside the title and the article name below. Scoped to snippet
cards that contain an image (the demo's source cards); icon-based stock
cards are unaffected. The library wraps items in row divs, so the rows are
flattened with display: contents to let all cards share one flex line. */
.agentViewport :global(.c1-small-card-block__grid:has(.c1-image-text__image)) {
display: flex;
flex-direction: row !important;
flex-wrap: wrap;
gap: 8px;
}
.agentViewport :global(.c1-small-card-block__row:has(.c1-image-text__image)) {
display: contents;
}
.agentViewport :global(.c1-small-card-block__item:has(.c1-image-text__image)) {
width: 260px;
flex: 0 0 auto;
}
.agentViewport :global(.c1-value-card:has(.c1-image-text__image)) {
padding: 10px 12px;
}
.agentViewport :global(.c1-value-card .c1-image-text__image-container) {
width: 24px !important;
height: 24px !important;
}
.agentViewport :global(.c1-value-card__rhs:empty) {
display: none;
}
.sidebarBuiltWith {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 6px;
margin-bottom: 10px;
color: var(--openui-text-neutral-primary);
font: var(--openui-text-label-xs);
white-space: nowrap;
}
.centeredState {
display: flex;
width: 100%;
height: 100%;
min-height: 220px;
align-items: center;
justify-content: center;
gap: 10px;
color: var(--openui-text-neutral-secondary);
background: var(--openui-foreground);
font: var(--openui-text-body-default);
}
.centeredState p {
margin: 0;
}
.loadingIndicator {
width: 16px;
height: 16px;
border: 2px solid var(--openui-border-default);
border-top-color: var(--openui-text-neutral-primary);
border-radius: 999px;
animation: chat-loading-spin 700ms linear infinite;
}
@keyframes chat-loading-spin {
to {
transform: rotate(360deg);
}
}
.modelSwitcher {
min-width: 0;
}
.cloudThreadHeader .modelSwitcher {
flex: 0 1 auto;
}
.modelSwitcherFieldset {
min-width: 0;
margin: 0;
border: 0;
padding: 0;
}
.modelSwitcherFieldset:disabled {
opacity: 0.58;
}
.modelSwitcherFieldset:disabled :global(.openui-model-switcher-trigger) {
cursor: not-allowed;
box-shadow: none;
}
.modelProviderLogo {
display: block;
width: 14px;
height: 14px;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
.modelProviderLogo[data-provider="google"] {
background-image: url("/chat/google-light.svg");
}
.modelProviderLogo[data-provider="openai"] {
background-image: url("/chat/openai-light.svg");
}
.modelProviderLogo[data-provider="anthropic"] {
background-image: url("/chat/anthropic-light.svg");
}
:global(.dark) .modelProviderLogo[data-provider="google"] {
background-image: url("/chat/google-dark.svg");
}
:global(.dark) .modelProviderLogo[data-provider="openai"] {
background-image: url("/chat/openai-dark.svg");
}
:global(.dark) .modelProviderLogo[data-provider="anthropic"] {
background-image: url("/chat/anthropic-dark.svg");
}
.cloudMobileHeader :global(.openui-agent-mobile-header-logo-container) {
display: none;
}
.cloudMobileHeader :global(.openui-agent-mobile-header-actions) {
min-width: 0;
flex: 1 1 auto;
justify-content: space-between;
}
.cloudMobileHeader .modelSwitcher {
order: -1;
min-width: 0;
flex: 0 1 auto;
}
.cloudMobileHeader .modelSwitcher :global(.openui-model-switcher-trigger) {
width: min(220px, 100%) !important;
}
.analyticsContents {
display: contents;
}
.demoThreadGroup {
display: flex;
flex-direction: column;
gap: 2px;
padding-block: 6px 12px;
}
.demoThreadGroupLabel {
padding: 4px 12px 7px;
color: var(--openui-text-neutral-tertiary);
font: var(--openui-text-label-xs);
letter-spacing: 0.01em;
}
.agentViewport :global(.openui-agent-sidebar-container--collapsed) .demoThreadGroupLabel {
display: none;
}
.demoReadOnlyMarker {
display: none;
}
.agentViewport
:global([data-openui-demo-readonly-renderer])
:is(
a[href],
button,
input,
textarea,
select,
[contenteditable="true"],
[role="button"],
[role="checkbox"],
[role="combobox"],
[role="link"],
[role="menuitem"],
[role="option"],
[role="radio"],
[role="slider"],
[role="spinbutton"],
[role="switch"],
[role="tab"]
) {
cursor: not-allowed !important;
}
.agentViewport :global([data-openui-demo-readonly-renderer]) {
user-select: text;
}
.demoComposerState {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
background: var(--openui-foreground);
padding: 6px 16px 18px;
}
.demoComposerState::before {
content: "";
position: absolute;
bottom: 100%;
left: 0;
right: 0;
height: 56px;
background: linear-gradient(to top, var(--openui-foreground), transparent);
pointer-events: none;
}
.demoComposerCta {
display: inline-flex;
height: 2.25rem;
align-items: center;
justify-content: center;
border: 0;
border-radius: 10px;
background: var(--openui-inverted-background);
box-shadow:
inset 0 2px 1px -0.5px color-mix(in srgb, var(--openui-inverted-background) 84%, white),
inset 0 -3px 6px -1px color-mix(in srgb, var(--openui-inverted-background) 90%, black);
padding-inline: 1rem;
color: var(--openui-background);
font-family: "Inter", "Segoe UI", sans-serif;
font-size: 0.9375rem;
font-weight: 500;
cursor: pointer;
transition: opacity 120ms ease;
}
.demoComposerCta:hover:not(:disabled) {
opacity: 0.9;
}
.demoComposerCta:disabled {
opacity: 0.65;
cursor: default;
}
.demoComposerError {
grid-column: 1 / -1;
margin: 0;
color: var(--openui-text-danger-primary);
font: var(--openui-text-body-sm);
}
.agentFrame[data-viewport="mobile"] .demoComposerState {
padding: 6px 12px 14px;
}
.srOnly {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@media (max-width: 767px) {
.header {
padding: 8px 12px;
}
.headerRow {
grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
gap: 6px;
}
.viewportControl {
display: none;
}
.viewportGroup {
width: 100% !important;
}
.viewportItem {
min-width: 0;
flex: 1;
justify-content: center;
padding-inline: 4px !important;
}
.viewportItemLabel {
display: none;
}
.buildForFreeMenu {
display: none;
}
.agentViewport {
padding: 0;
}
.agentFrame:is([data-viewport="mobile"], [data-viewport="tablet"]) {
border: 0;
border-radius: 0;
box-shadow: none;
}
.demoComposerState {
grid-template-columns: 1fr;
padding: 10px 12px 12px;
}
.demoComposerNotice,
.demoComposerError {
grid-column: 1;
}
.demoComposerNotice {
align-items: flex-start;
}
.demoComposerNoticeCopy {
flex-direction: column;
gap: 2px;
}
.demoComposerNoticeCopy span {
display: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.desktopViewportItem {
display: none;
}
}
@media (max-width: 380px) {
.cloudMobileHeader .modelSwitcher :global(.openui-model-switcher-trigger) {
width: min(190px, 100%) !important;
}
}
@media (prefers-reduced-motion: reduce) {
.viewportItem,
.agentFrame {
transition: none;
}
.loadingIndicator {
animation: none;
}
}
/* Sidebar footer: powered-by label plus the "Why upgrade?" trigger for the
12-reasons bottom sheet. */
.sidebarUpgradeFooter {
/* The sidebar container pads 16px 12px; these negative offsets even the
visible gap out to about 10px on every side. */
margin: auto -2px -6px;
border: 1px solid var(--openui-border-default);
border-radius: 12px;
background: var(--openui-foreground);
box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.1);
padding: 12px;
}
.agentViewport :global(.openui-agent-sidebar-container--collapsed) .sidebarUpgradeFooter,
.agentViewport
:global(.openui-agent-sidebar-container[data-sidebar-visual-state="collapsing"])
.sidebarUpgradeFooter {
display: none;
}
.sidebarBuiltWith {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 6px;
margin-bottom: 10px;
color: var(--openui-text-neutral-primary);
font: var(--openui-text-label-xs);
white-space: nowrap;
}
.sidebarCloudChip {
display: inline-flex;
align-items: center;
border: 1px solid var(--openui-inverted-background);
border-radius: 6px;
background: transparent;
padding: 1px 7px;
color: var(--openui-text-neutral-primary);
font: var(--openui-text-label-xs);
}
.sidebarUpgradeButton {
display: flex;
width: 100%;
align-items: center;
justify-content: center;
border: 1px solid var(--openui-inverted-background);
border-radius: 9px;
background: var(--openui-inverted-background);
padding: 8px 14px;
color: var(--openui-background);
font: var(--openui-text-label-xs);
cursor: pointer;
transition: background-color 120ms ease;
}
.sidebarUpgradeButton:hover {
background: color-mix(in srgb, var(--openui-inverted-background) 88%, var(--openui-background));
}
.sidebarUpgradeButton:focus-visible {
outline: 2px solid var(--openui-border-accent-emphasis);
outline-offset: -2px;
}
/* Bottom sheet with the Cloud page's 12-reasons feature marquee. */
.upgradeSheetOverlay {
position: fixed;
inset: 0;
z-index: 90;
display: flex;
align-items: flex-end;
background: rgba(0, 0, 0, 0.42);
animation: upgradeSheetFade 160ms ease;
}
.upgradeSheet {
width: 100%;
max-height: 85dvh;
overflow-y: auto;
border-radius: 18px 18px 0 0;
background: var(--openui-foreground);
padding: 16px 24px 20px;
animation: upgradeSheetRise 260ms ease;
}
.upgradeSheetHeader {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 22px;
}
.upgradeSheetTitle {
margin: 0;
color: var(--openui-text-neutral-primary);
font-size: 1.25rem;
font-weight: 600;
}
.upgradeSheetActions {
display: flex;
flex: none;
align-items: center;
gap: 8px;
}
.upgradeSheetCta {
display: inline-flex;
height: 2.25rem;
align-items: center;
justify-content: center;
gap: 6px;
border-radius: 10px;
background: var(--openui-inverted-background);
padding-inline: 1rem;
color: var(--openui-background);
font: var(--openui-text-label-sm);
text-decoration: none;
transition: opacity 120ms ease;
}
.upgradeSheetCta:hover {
opacity: 0.9;
}
.upgradeSheetCtaMobile {
display: none;
}
.upgradeSheetClose {
display: inline-flex;
width: 2.25rem;
height: 2.25rem;
flex: none;
align-items: center;
justify-content: center;
border: 1px solid var(--openui-border-default);
border-radius: 10px;
background: var(--openui-foreground);
color: var(--openui-text-neutral-primary);
cursor: pointer;
transition: background-color 120ms ease;
}
.upgradeSheetClose:hover {
background: var(--openui-highlight);
}
@keyframes upgradeSheetFade {
from {
opacity: 0;
}
}
@keyframes upgradeSheetRise {
from {
transform: translateY(24px);
opacity: 0;
}
}
/* The marquee section ships with the marketing page's tall vertical padding
and card size; flatten and shrink it about 15% inside the sheet. */
.upgradeSheet > :global(section) {
--card-w: clamp(11rem, 17vw, 15.3rem);
padding-block: 0 !important;
}
/* The scroller centers itself to the marketing page's 75rem container, which
leaves a large leading gap inside the sheet; keep just a small inset. */
.upgradeSheet :global(div[role="group"]) {
padding-inline: 0.5rem !important;
}
/* On mobile the drawer's floating New Chat button overlaps the sidebar
footer, so the powered-by banner moves to the top of the drawer, above
the Presentations nav, with wider side insets. The sidebar container is a
flex column, so ordering the header before the banner slots it in place. */
.agentFrame[data-viewport="mobile"] :global(.openui-agent-sidebar-header) {
order: -2;
}
.agentFrame[data-viewport="mobile"] .sidebarUpgradeFooter {
order: -1;
margin: 4px 12px 10px;
}
@media (max-width: 767px) {
.agentViewport :global(.openui-agent-sidebar-header) {
order: -2;
}
.agentViewport .sidebarUpgradeFooter {
order: -1;
margin: 4px 12px 10px;
}
}
/* Mobile-only refinements: tighter sidebar section rhythm, a stacked sheet
header with a smaller title, and a more compact marquee. */
@media (max-width: 767px) {
.agentViewport :global(.openui-agent-sidebar-container) {
gap: 14px;
}
.upgradeSheet {
position: relative;
}
.upgradeSheetHeader {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.upgradeSheetTitle {
padding-right: 3rem;
font-size: 1.05rem;
}
.upgradeSheetCtaDesktop {
display: none;
}
.upgradeSheetCtaMobile {
display: flex;
width: 100%;
justify-content: space-between;
margin-top: 28px;
}
.upgradeSheetClose {
position: absolute;
top: 12px;
right: 12px;
}
.upgradeSheet > :global(section) {
--card-w: 9rem;
}
.upgradeSheet :global(h3) {
font-size: 0.875rem !important;
font-weight: 400 !important;
}
.upgradeSheet :global(button[aria-label="Show previous features"]),
.upgradeSheet :global(button[aria-label="Show next features"]) {
display: none !important;
}
.upgradeSheet :global(div[role="group"]) {
-webkit-mask-image: linear-gradient(
to right,
transparent 0,
#000 2%,
#000 98%,
transparent 100%
) !important;
mask-image: linear-gradient(
to right,
transparent 0,
#000 2%,
#000 98%,
transparent 100%
) !important;
}
}