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;
background: var(--openui-foreground);
padding: 8px;
}
/* "View comparison" tab hanging centered below the top bar. z-index -2 keeps
it BELOW the pair menu's blur overlay (z -1) in the header's stacking
context, so it blurs with the page when the Change dropdown is open. */
.viewComparison {
position: absolute;
top: 100%;
right: 0;
left: 0;
z-index: -2;
display: flex;
width: fit-content;
margin-inline: auto;
flex-direction: column;
align-items: center;
pointer-events: none;
}
.viewComparisonChip {
display: inline-flex;
align-items: center;
gap: 5px;
border: 1px solid var(--openui-border-default);
border-top: 0;
border-radius: 0 0 10px 10px;
background: var(--openui-foreground);
padding: 5px 14px 6px;
color: var(--openui-text-neutral-secondary);
font: var(--openui-text-label-xs);
white-space: nowrap;
cursor: pointer;
pointer-events: auto;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
transition: color 120ms ease;
}
.viewComparisonChip:hover {
color: var(--openui-text-neutral-primary);
}
/* While the tray is open, the chip tucks over the card's bottom border so no
line runs across its top and it reads as part of the tray. */
.comparisonTrayOpen + .viewComparisonChip {
margin-top: -1px;
}
/* Dark mode, expanded only: the whole tray (card + attached chip) takes the
"Change" switch's sunken tint — flattened to an OPAQUE color (foreground +
the same 4% white) so the chip can cover the card's bottom border and no
stroke crosses its top. */
:global([data-theme="dark"]) .comparisonTrayCard,
:global([data-theme="dark"]) .viewComparisonChip[aria-expanded="true"] {
background: color-mix(in srgb, var(--openui-foreground) 96%, #fff);
}
.trayChevron {
transition: transform 160ms ease;
}
.trayChevron[data-open="true"] {
transform: rotate(180deg);
}
.viewComparisonChip:focus-visible {
outline: 2px solid var(--openui-border-accent-emphasis);
outline-offset: -2px;
}
/* Comparison tray: slides open above the chip, which rides at its bottom. */
.comparisonTray {
display: grid;
width: 26rem;
max-width: calc(100vw - 24px);
grid-template-rows: 0fr;
transition: grid-template-rows 260ms ease;
}
.comparisonTrayOpen {
grid-template-rows: 1fr;
}
/* Side/bottom padding pulled back with negative margins gives the card's
shadow room to render inside the overflow clip without shifting layout. */
.comparisonTrayInner {
overflow: hidden;
min-height: 0;
/* Clip window sized to fully contain the card shadow (extent ≈ 24px below,
14px to the sides), so it never gets cropped. */
margin: 0 -36px -36px;
padding: 0 36px 36px;
}
.comparisonTrayCard {
display: flex;
flex-direction: column;
border: 1px solid var(--openui-border-default);
/* The header's bottom stroke acts as the tray's top edge. */
border-top: 0;
border-radius: 0 0 12px 12px;
background: var(--openui-foreground);
box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.08);
padding: 14px;
/* Hidden while closed so it can't peek through the shadow padding window or
swallow clicks meant for the page beneath. */
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
opacity 200ms ease,
visibility 0s linear 200ms;
}
.comparisonTrayOpen .comparisonTrayCard {
opacity: 1;
visibility: visible;
pointer-events: auto;
transition:
opacity 200ms ease,
visibility 0s;
}
.comparisonRow {
display: grid;
grid-template-columns: 6rem 1fr 6rem;
align-items: center;
padding-block: 9px;
}
/* End-to-end separators between repeated rows. */
.comparisonRow + .comparisonRow,
.pairMenuItem + .pairMenuItem,
.suggestionButton + .suggestionButton {
border-top: 1px solid var(--openui-border-default);
}
.comparisonHeaderRow {
padding-block: 11px;
}
.comparisonColumnLabel {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
color: var(--openui-text-neutral-primary);
font: var(--openui-text-label-sm);
white-space: nowrap;
}
/* Centre column holds the features; the column sits centred in the tray while
the text inside stays left-aligned. */
.comparisonFeature {
color: var(--openui-text-neutral-secondary);
font: var(--openui-text-body-sm);
font-size: 0.8125rem;
text-align: left;
}
.comparisonIconCell {
display: inline-flex;
justify-content: center;
}
/* Primary CTA at the tray's base — compact variant. */
.comparisonCta {
display: flex;
min-height: 34px;
align-items: center;
justify-content: center;
gap: 6px;
margin-top: 12px;
border-radius: 9px;
background: var(--openui-inverted-background);
color: var(--openui-background);
font: var(--openui-text-label-sm);
text-decoration: none;
transition: opacity 120ms ease;
}
.comparisonCta:hover {
opacity: 0.88;
}
.comparisonTick {
color: #12b76a;
}
.comparisonCross {
color: var(--openui-text-neutral-tertiary);
}
/* Bottom stroke drawn as a child layer (not border-bottom) so it paints above
the negative-z .menuOverlay and stays sharp while the page blurs. */
.header::after {
content: "";
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 1px;
background: var(--openui-border-default);
pointer-events: none;
}
/* Match the two title columns to the two panel columns. The edge controls are
positioned independently so their unequal widths cannot skew either title;
the full-bleed margin cancels the header padding at the panel boundary. */
.headerRow {
position: relative;
display: grid;
min-height: 2.25rem;
margin-inline: -8px;
min-width: 0;
align-items: center;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Panel title + chip + status, hoisted into the top bar over each panel. */
.headerPanelHeading {
display: flex;
min-width: 0;
align-items: center;
justify-self: center;
gap: 12px;
}
.headerPanelHeading h2 {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0;
color: var(--openui-text-neutral-primary);
font: var(--openui-text-heading-sm);
font-size: 0.9375rem;
font-weight: 500;
white-space: nowrap;
}
.headerRow > .backLink {
position: absolute;
left: 8px;
justify-self: start;
}
.headerRow > .buildForFreeMenu {
position: absolute;
right: 8px;
justify-self: end;
}
/* Icon-only text button. */
.backLink {
display: inline-flex;
box-sizing: border-box;
width: 2.25rem;
height: 2.25rem;
flex: none;
align-items: center;
justify-content: center;
border-radius: 10px;
background: transparent;
color: var(--openui-text-neutral-primary);
text-decoration: none;
transition: background-color 120ms ease;
}
/* Shared hover and keyboard-focus treatment for interactive controls. */
.backLink:hover,
.mobileMenuButton:hover,
.mobileMenuButton[aria-expanded="true"],
.resetButton:hover,
.themeToggle:hover {
background: var(--openui-highlight);
}
.comparisonCta:focus-visible,
.backLink:focus-visible,
.pairTrigger:focus-visible,
.pairMenuItem:focus-visible,
.mobileMenuButton:focus-visible,
.mobilePanelTab:focus-visible,
.suggestionButton:focus-visible,
.composerSubmit:focus-visible,
.resetButton:focus-visible,
.themeToggle:focus-visible {
outline: 2px solid var(--openui-border-accent-emphasis);
outline-offset: 2px;
}
/* Blurs the page beneath the header while a menu is open. Negative z-index
keeps it under the header's own background (the top bar stays sharp), while
the header's stacking context keeps it above the page content. */
.menuOverlay {
position: fixed;
inset: 0;
z-index: -1;
background: color-mix(in srgb, var(--openui-background) 25%, transparent);
backdrop-filter: blur(7px);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
opacity 0.18s ease,
visibility 0s linear 0.18s;
}
.menuOverlayOpen {
opacity: 1;
visibility: visible;
transition:
opacity 0.18s ease,
visibility 0s;
}
/* Darker variant used by the mobile tray; matches the homepage mobile menu's
backdrop. Inert on desktop. */
.menuOverlayMobileDark,
.mobileMenuBackdrop {
background: rgb(0 0 0 / 60%);
backdrop-filter: blur(12px);
}
.menuOverlayMobileDark {
display: none;
}
:global([data-theme="dark"]) .menuOverlayMobileDark,
:global([data-theme="dark"]) .mobileMenuBackdrop {
background: rgb(255 255 255 / 0.1);
}
/* Mobile hamburger menu (shown only under the 900px breakpoint). The sheet
itself reuses the homepage mobile tray component's styles. */
.mobileMenuWrap {
position: relative;
display: none;
}
.mobileMenuButton {
display: grid;
width: 2.25rem;
height: 2.25rem;
place-items: center;
border: 0;
border-radius: 10px;
background: transparent;
color: var(--openui-text-neutral-primary);
cursor: pointer;
transition: background-color 120ms ease;
}
.mobileMenuBackdrop,
.mobileMenuSheet {
position: fixed;
top: 53px;
right: 0;
left: 0;
}
.mobileMenuBackdrop {
bottom: 0;
z-index: 50;
cursor: pointer;
animation: chatMobileMenuFade 0.2s ease;
}
.mobileMenuSheet {
z-index: 60;
animation: chatMobileMenuSlide 0.2s ease;
}
@keyframes chatMobileMenuFade {
from {
opacity: 0;
}
}
@keyframes chatMobileMenuSlide {
from {
opacity: 0;
transform: translateY(-8px);
}
}
.mobileMenuPairTitle {
min-width: 0;
flex: 1;
}
/* Doubled selectors: these must beat the homepage tray module's rules of
equal specificity regardless of stylesheet injection order. Layout and
spacing intentionally come from the homepage module untouched, so the two
mobile menus stay consistent. */
/* The header's bottom stroke is the only line between bar and sheet. */
.menuTrayFlush.menuTrayFlush {
border-top: 0;
}
/* A little more air above the first section. */
.menuTrayPad.menuTrayPad {
padding-top: 1.25rem;
}
/* Slightly roomier rows than the homepage default. */
.menuFlatLink.menuFlatLink {
min-height: 2.75rem;
padding-block: 0.5rem;
}
.menuFlatLink.menuFlatLink:hover {
background: transparent;
}
/* Fade-only reveal, as on the hero. */
.pairMenu {
position: absolute;
top: calc(100% + 8px);
z-index: 60;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
opacity 0.18s ease,
visibility 0s linear 0.18s;
}
/* Shared dropdown card recipe. */
.pairMenuCard {
display: flex;
flex-direction: column;
border: 1px solid var(--openui-border-default);
border-radius: 12px;
background: var(--openui-foreground);
box-shadow: var(--openui-shadow-l);
}
/* Pair switcher dropdown: absolutely centered on the screen, out of the grid,
so the surrounding headings never push it off-center. Centered via auto
margins, NOT transform — a transformed ancestor would become the containing
block for the fixed-position .menuOverlay inside. */
/* No z-index here: a stacking context would trap the negative-z overlay above
the header's siblings and blur the top bar itself. */
.modeControl {
position: absolute;
inset: 0;
width: fit-content;
height: fit-content;
margin: auto;
}
/* Small sunken chip, matching .panelChip. */
.pairTrigger {
display: inline-flex;
box-sizing: border-box;
align-items: center;
gap: 5px;
border: 1px solid var(--openui-border-default);
border-radius: 8px;
background: var(--openui-sunk);
padding: 4px 11px;
color: var(--openui-text-neutral-secondary);
font: var(--openui-text-label-xs);
white-space: nowrap;
cursor: pointer;
transition:
color 120ms ease,
border-color 120ms ease;
}
.pairTrigger:hover,
.pairTrigger[aria-expanded="true"] {
border-color: var(--openui-text-neutral-secondary);
color: var(--openui-text-neutral-primary);
}
.pairMenu {
left: 50%;
width: 22rem;
transform: translateX(-50%);
}
.pairMenuOpen {
opacity: 1;
visibility: visible;
pointer-events: auto;
transition:
opacity 0.18s ease,
visibility 0s;
}
.pairMenuCard {
overflow: hidden;
}
.pairMenuItem {
position: relative;
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0;
border: 0;
border-radius: 0;
background: transparent;
padding: 14px 18px;
text-align: center;
cursor: pointer;
transition: background-color 120ms ease;
}
.pairMenuItemTitle {
display: flex;
align-items: center;
color: var(--openui-text-neutral-primary);
font: var(--openui-text-label-sm);
}
/* Symmetric grid: "vs" occupies the exact center of every row. */
.pairTitleGroup {
display: grid;
width: 100%;
min-width: 0;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 8px;
}
.pairTitleSide,
.suggestionLabel {
display: inline-flex;
min-width: 0;
align-items: center;
gap: 6px;
}
.pairTitleSideLeft {
justify-content: flex-end;
}
.pairTitleVs {
color: var(--openui-text-neutral-tertiary);
}
/* Description reveals on row hover/focus with a gentle height expansion. */
.pairMenuItemDescWrap {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 220ms ease;
}
.pairMenuItem:hover .pairMenuItemDescWrap,
.pairMenuItem:focus-visible .pairMenuItemDescWrap {
grid-template-rows: 1fr;
}
.pairMenuItemDesc {
overflow: hidden;
min-height: 0;
padding-top: 5px;
color: var(--openui-text-neutral-secondary);
font: var(--openui-text-body-sm);
font-size: 0.75rem;
}
.comparisonViewport {
display: flex;
min-width: 0;
min-height: 0;
flex: 1;
flex-direction: column;
overflow: hidden;
background: var(--openui-foreground);
}
.panelGrid {
display: grid;
min-width: 0;
min-height: 0;
flex: 1;
grid-template-columns: repeat(2, minmax(0, 1fr));
overflow: hidden;
}
.modePanel {
position: relative;
display: flex;
min-width: 0;
min-height: 0;
order: var(--comparison-panel-order);
flex-direction: column;
overflow: hidden;
background: var(--openui-foreground);
}
.modePanel[hidden] {
display: none !important;
}
.modePanel[data-position="second"] {
border-inline-start: 1px solid var(--openui-border-default);
}
/* Empty state: the divider fades out toward the bottom instead of running as
a hard stroke into the controls area. border-image (not a pseudo-element)
because the panel's overflow: hidden would clip anything drawn inside it. */
.panelGrid[data-empty] .modePanel[data-position="second"] {
border-image: linear-gradient(
to bottom,
var(--openui-border-default) 30%,
color-mix(in srgb, var(--openui-border-default) 0%, transparent) 80%
)
1;
}
.panelChip {
display: inline-flex;
align-items: center;
border: 0;
border-radius: 7px;
background: var(--openui-sunk);
padding: 3px 10px;
color: var(--openui-text-neutral-secondary);
font: var(--openui-text-label-xs);
white-space: nowrap;
}
/* Inverted chip (Cloud): ink-on-paper flips with the theme. */
.panelChipInverted {
background: var(--openui-inverted-background);
color: var(--openui-background);
}
.panelStatus {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--openui-text-neutral-tertiary);
font: var(--openui-text-label-xs);
}
.panelStatus > span,
.mobilePanelStatus {
width: 7px;
height: 7px;
flex: none;
border-radius: 50%;
background: #f04438;
}
.panelBody {
position: relative;
display: flex;
min-width: 0;
min-height: 0;
flex: 1;
overflow: hidden;
}
.panelBody > * {
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
}
/* Covers a panel while its surface initializes (e.g. right after switching
comparisons); the surface stays mounted beneath so controllers register. */
.panelLoadingOverlay {
position: absolute;
inset: 0;
z-index: 3;
display: flex;
align-items: center;
justify-content: center;
background: var(--openui-foreground);
}
.panelBody :global(.chat-agent-surface),
.panelBody :global(.openui-agent-container) {
width: 100% !important;
height: 100% !important;
min-width: 0 !important;
min-height: 0 !important;
overflow: hidden !important;
}
/* Artifacts are the primary output in this comparison, so promote an open
detailed view above the page chrome instead of confining it to the Cloud
half of the comparison grid. AgentInterface uses a desktop split panel and
a mobile overlay; both must be fixed to the viewport for consistent
behavior at every container width. */
.panelBody :global(.openui-agent-thread-detailed-view-panel),
.panelBody :global(.openui-detailed-view-overlay) {
position: fixed !important;
inset: 0 !important;
z-index: 100;
width: 100dvw !important;
height: 100dvh !important;
min-width: 0 !important;
max-width: none !important;
flex: none !important;
overflow: auto;
overscroll-behavior: contain;
background: var(--openui-foreground);
}
/* The desktop splitter only controls the now-covered chat pane and should not
remain focusable behind the fullscreen artifact. */
.panelBody :global(.openui-agent-resizable-separator) {
display: none;
}
/* Comparison owns all navigation and input chrome. Both internal desktop and
mobile branches are suppressed because each pane measures its own width. */
.panelBody :global(.openui-agent-sidebar-container),
.panelBody :global(.openui-agent-sidebar-container__overlay),
.panelBody :global(.openui-agent-mobile-header),
.panelBody :global(.openui-agent-thread-header),
.panelBody :global(.openui-agent-composer-slot),
.panelBody :global(.openui-agent-workspace-sidebar),
.panelBody :global(.openui-agent-workspace-sidebar__overlay) {
display: none !important;
}
.panelBody :global(.openui-agent-thread-container),
.panelBody :global(.openui-agent-thread-wrapper) {
width: 100% !important;
min-width: 0 !important;
min-height: 0 !important;
flex: 1 1 100% !important;
}
.panelBody :global(.openui-agent-thread-chat-panel) {
min-width: 0 !important;
min-height: 0 !important;
}
.panelBody
:global(
.openui-agent-thread-container:not(.openui-agent-thread-container--detailed-view-active)
.openui-agent-thread-chat-panel
) {
width: 100% !important;
flex: 1 1 100% !important;
}
.panelBody :global(.openui-agent-thread-messages) {
max-width: none;
padding-top: 20px;
padding-inline: 24px;
}
.panelBody :global(.openui-agent-thread-message-assistant) {
min-width: 0;
padding-right: 0;
}
.panelBody :global(.openui-agent-thread-message-loading),
.panelBody :global(.openui-agent-thread-error) {
padding-inline: 24px;
}
.panelBody :global(.openui-agent-thread-scroll-area) {
overscroll-behavior: contain;
}
.surfaceWelcome {
display: flex;
max-width: 560px;
flex-direction: column;
align-items: center;
gap: 22px;
text-align: center;
}
.surfaceWelcomeIcon {
display: grid;
width: 56px;
height: 56px;
place-items: center;
border-radius: 14px;
color: var(--openui-text-neutral-tertiary);
background: var(--openui-sunk);
}
.surfaceWelcome p {
margin: 0;
color: var(--openui-text-neutral-secondary);
font: var(--openui-text-body-md);
font-size: 0.9375rem;
font-weight: 400;
}
.comparisonControls {
position: relative;
z-index: 4;
flex: none;
background: var(--openui-foreground);
padding: 12px 24px max(14px, env(safe-area-inset-bottom));
}
.suggestionScroller {
width: 100%;
overflow-x: auto;
scrollbar-width: none;
}
.suggestionScroller::-webkit-scrollbar {
display: none;
}
/* Starters: one card with end-to-end separators between rows. Width matches
the composer input below it. */
.suggestionRow {
display: flex;
width: min(100%, 52rem);
margin-inline: auto;
margin-bottom: 10px;
flex-direction: column;
overflow: hidden;
border: 1px solid var(--openui-border-default);
border-radius: 14px;
background: var(--openui-foreground);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.suggestionButton {
display: flex;
width: 100%;
min-height: 44px;
align-items: center;
gap: 9px;
border: 0;
background: transparent;
padding: 9px 16px;
color: var(--openui-text-neutral-primary);
font: var(--openui-text-label-sm);
text-align: left;
cursor: pointer;
}
/* Arrow slides in next to the text on hover. */
.suggestionArrow {
flex: none;
color: var(--openui-text-neutral-secondary);
opacity: 0;
transform: translateX(-4px);
transition:
opacity 140ms ease,
transform 140ms ease;
}
.suggestionButton:hover:not(:disabled) .suggestionArrow,
.suggestionButton:focus-visible .suggestionArrow {
opacity: 1;
transform: translateX(0);
}
.suggestionButton:disabled {
opacity: 0.55;
cursor: not-allowed;
}
/* Inactive rows lose their icon color too. */
.suggestionButton:disabled svg {
stroke: var(--openui-text-neutral-tertiary);
}
/* The input field spans the full centered column; the reset button hangs
outside it so the field itself sits dead-centre on the screen. */
.composerRow {
position: relative;
display: flex;
width: min(100%, 52rem);
align-items: flex-end;
gap: 10px;
margin: 0 auto;
}
.sharedComposer {
display: flex;
min-width: 0;
min-height: 54px;
flex: 1;
align-items: center;
gap: 8px;
border: 1px solid var(--openui-border-default);
border-radius: 16px;
background: var(--openui-foreground);
padding: 5px 5px 5px 16px;
box-shadow: var(--openui-shadow-s);
transition:
border-color 140ms ease,
box-shadow 140ms ease;
}
.sharedComposer:focus-within {
border-color: var(--openui-border-interactive-emphasis);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--openui-border-accent-emphasis) 14%, transparent);
}
.sharedComposer[data-running="true"] {
border-color: var(--openui-border-interactive-emphasis);
}
.sharedComposerInput {
width: 100%;
min-width: 0;
min-height: 32px;
max-height: 154px;
flex: 1;
resize: none;
overflow-y: auto;
border: 0;
outline: 0;
background: transparent;
padding: 5px 0 3px;
color: var(--openui-text-neutral-primary);
font: var(--openui-text-body-default);
}
.sharedComposerInput::placeholder {
color: var(--openui-text-neutral-tertiary);
}
.composerSubmit,
.resetButton {
display: grid;
width: 44px;
height: 44px;
flex: none;
place-items: center;
border: 1px solid var(--openui-border-default);
border-radius: 12px;
cursor: pointer;
}
.composerSubmit {
border-color: var(--openui-text-black);
background: var(--openui-text-black);
color: var(--openui-text-white);
}
.composerSubmit:disabled {
opacity: 0.38;
cursor: not-allowed;
}
/* Borderless square icon buttons, floated outside the centered column:
theme toggle on the left, reset on the right. */
.resetButton,
.themeToggle {
position: absolute;
bottom: 5px;
width: 44px;
height: 44px;
border: 0;
border-radius: 10px;
background: transparent;
color: var(--openui-text-neutral-primary);
}
.resetButton {
left: calc(100% + 10px);
}
.themeToggle {
display: grid;
right: calc(100% + 10px);
place-items: center;
cursor: pointer;
}
.mobilePanelTabs {
display: none;
}
.degradedNotice {
margin: 8px 0 0;
color: var(--openui-text-neutral-tertiary);
font: var(--openui-text-label-xs);
text-align: center;
}
.centeredState {
display: flex;
width: 100%;
height: 100%;
min-height: 220px;
align-items: center;
justify-content: center;
gap: 10px;
padding: 24px;
color: var(--openui-text-neutral-secondary);
background: var(--openui-foreground);
font: var(--openui-text-body-default);
text-align: center;
}
.centeredState p {
margin: 0;
}
.loadingIndicator {
width: 16px;
height: 16px;
flex: none;
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);
}
}
.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: 1180px) {
.buildForFreeMenu {
display: none;
}
}
@media (max-width: 900px) {
.header {
padding: 8px 12px;
}
.headerRow {
display: flex;
margin-inline: 0;
flex-wrap: wrap;
gap: 6px 12px;
}
.headerRow > .backLink {
position: static;
}
/* The Change chip moves into the hamburger menu; View comparison sits in
the bar beside it. */
.modeControl {
display: none;
}
.mobileMenuWrap {
display: flex;
margin-left: auto;
}
/* Starts below the bar (like the hamburger backdrop) so the top bar never
dims or blurs. */
.menuOverlayMobileDark {
display: block;
top: 53px;
}
.viewComparison {
top: 12px;
right: 0;
left: 0;
z-index: auto;
margin: 0 auto;
flex-direction: column-reverse;
align-items: center;
}
/* In the bar the chip looks like the Change switch, not a hanging tab. */
.viewComparisonChip {
margin-top: 0;
border: 1px solid var(--openui-border-default);
border-radius: 8px;
background: var(--openui-sunk);
box-shadow: none;
}
.comparisonTrayOpen + .viewComparisonChip {
margin-top: 0;
}
/* The tray detaches from the chip and drops edge to edge below the bar,
styled like the hamburger sheet. */
.comparisonTray {
position: fixed;
top: 53px;
right: 0;
left: 0;
width: auto;
max-width: none;
}
.comparisonTrayInner {
margin: 0 0 -36px;
padding: 0 0 36px;
}
.comparisonTrayCard {
border: 0;
border-radius: 0 0 28px 28px;
box-shadow: var(--openui-shadow-xl);
padding: 1rem 1.25rem 1.5rem;
}
/* Narrower icon columns give the feature text room to breathe. */
.comparisonRow {
grid-template-columns: 4rem 1fr 4rem;
}
/* All starter rows share one height, content top-aligned; tagged ones
stack label over tag and fill the band with symmetric padding. */
.suggestionButton {
min-height: 64px;
align-content: flex-start;
align-items: flex-start;
padding-block: 12px;
}
/* Optically centre the icon against the first text line. */
.suggestionButton > svg:first-child {
margin-top: 3px;
}
.suggestionLabel {
flex: 1;
}
.mobilePanelTabs {
display: flex;
min-height: 48px;
flex: none;
border-bottom: 1px solid var(--openui-border-default);
background: var(--openui-foreground);
padding: 4px 8px 0;
}
.mobilePanelTab {
position: relative;
display: flex;
min-width: 0;
min-height: 44px;
flex: 1;
align-items: center;
justify-content: center;
gap: 8px;
border: 0;
border-bottom: 2px solid transparent;
background: transparent;
color: var(--openui-text-neutral-secondary);
font: var(--openui-text-label-sm);
cursor: pointer;
}
.mobilePanelTab[aria-selected="true"] {
border-bottom-color: var(--openui-text-neutral-primary);
color: var(--openui-text-neutral-primary);
}
.panelGrid {
display: flex;
}
.modePanel {
width: 100%;
flex: 1;
}
.modePanel[data-position="second"] {
border-inline-start: 0;
}
.headerPanelHeading {
display: none;
}
.panelBody :global(.openui-agent-thread-messages),
.panelBody :global(.openui-agent-thread-message-loading),
.panelBody :global(.openui-agent-thread-error) {
padding-inline: 16px;
}
/* No floating panel header below 900px, so no clearance needed. */
.panelBody :global(.openui-agent-thread-messages) {
padding-top: 0;
}
.comparisonControls {
padding: 10px 12px max(10px, env(safe-area-inset-bottom));
}
/* Reset and theme live in the hamburger menu; the input takes the full
width of the controls area. */
.resetButton,
.themeToggle {
display: none;
}
}
@media (max-width: 560px) {
.suggestionButton {
padding-inline: 12px;
}
.sharedComposer {
min-height: 50px;
padding-left: 13px;
}
.surfaceWelcome {
gap: 16px;
}
.surfaceWelcomeIcon {
width: 48px;
height: 48px;
}
}
@media (prefers-reduced-motion: reduce) {
.menuOverlay,
.comparisonTray,
.comparisonTrayCard,
.trayChevron,
.viewComparisonChip,
.pairMenuItemDescWrap,
.suggestionButton,
.sharedComposer {
transition: none;
}
.mobileMenuBackdrop,
.mobileMenuSheet,
.loadingIndicator {
animation: none;
}
}