The Open Standard for Generative UI
.demo {
--demo-panel: var(--openui-foreground);
--demo-surface: #f8f8f8;
--demo-ink: var(--openui-text-neutral-primary);
--demo-muted: var(--openui-text-neutral-secondary);
--demo-line: var(--home-hairline);
--demo-card: #f7f7f8;
--demo-blue: #286ac8;
--demo-green: #2e754f;
--demo-purple: #8b50ac;
--phone-panel: #fff;
--phone-line: #e7e7e7;
display: grid;
/* Code, phone, timeline. The phone holds the centre column, so it sits in
the middle of the panel. */
grid-template-columns: minmax(0, 1fr) 326px minmax(0, 1fr);
align-items: stretch;
gap: 48px;
height: 100%;
padding: 48px 64px 64px;
position: relative;
color: var(--demo-ink);
font-family: var(--home-font-display);
}
[data-theme="dark"] .demo {
--demo-surface: #0e0e0e;
--demo-blue: #8db9ee;
--demo-green: #96c6a2;
--demo-purple: #c4a2dd;
--demo-card: #2a2a2a;
--phone-panel: #212121;
--phone-line: #383838;
}
.codePanel {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.panelHeader {
min-height: 76px;
padding: 12px 20px;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
flex: none;
font-size: 13px;
}
.timer {
display: flex;
align-items: center;
gap: 14px;
color: var(--demo-muted);
}
.timer small {
max-width: 40px;
font-size: 10px;
line-height: 1.3;
}
.timer strong {
display: flex;
align-items: center;
gap: 8px;
font-size: 26px;
font-weight: 500;
font-variant-numeric: tabular-nums;
letter-spacing: -0.04em;
}
.timer time {
min-width: 76px;
text-align: right;
}
.timer time span {
font-size: 16px;
margin-left: 3px;
}
.timerDone strong {
color: #128357;
}
[data-theme="dark"] .timerDone strong {
color: #63dca5;
}
.code {
flex: 1;
min-height: 0;
margin: 0;
padding: 22px 18px;
overflow: auto;
scrollbar-width: thin;
font: 12px/1.8 var(--home-font-code, ui-monospace, monospace);
}
.codeLine {
display: grid;
grid-template-columns: 20px minmax(0, 1fr);
gap: 12px;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.lineNumber {
user-select: none;
text-align: right;
color: var(--demo-muted);
}
.string {
color: var(--demo-green);
}
.component {
color: var(--demo-blue);
}
.annotation {
color: var(--demo-purple);
}
/* ---------- timeline ---------- */
.timeline {
display: flex;
flex-direction: column;
min-width: 0;
padding: 20px 0 12px 20px;
}
.timerLabel {
margin-bottom: 2px;
font-size: 12px;
line-height: 18px;
color: var(--demo-muted);
}
.timeline .timer time {
min-width: 0;
text-align: left;
}
.timeline .timer strong {
font-size: 20px;
}
.timeline .timer time span {
font-size: 13px;
}
/* the timer stays at the top of the column; the events drop to the bottom */
.events {
position: relative;
margin: auto 0 0;
padding: 0;
list-style: none;
}
/* the rail the dots sit on: time column (36px) + gap (12px) + half a dot */
.events::before {
content: "";
position: absolute;
top: 14px;
bottom: 14px;
left: 50px;
width: 1px;
background: var(--demo-line);
}
.event {
position: relative;
display: grid;
grid-template-columns: 36px 5px minmax(0, 1fr);
gap: 12px;
align-items: start;
padding: 6px 0;
font-size: 12px;
line-height: 18px;
color: var(--demo-muted);
opacity: 0.45;
transition:
color 150ms,
opacity 150ms;
}
.event[data-done="true"] {
color: color-mix(in srgb, var(--demo-ink) 72%, transparent);
opacity: 1;
}
.eventTime {
font-family: var(--home-font-mono);
font-size: 12px;
font-variant-numeric: tabular-nums;
text-align: right;
color: var(--demo-muted);
opacity: 0.7;
}
.eventDot {
box-sizing: border-box;
width: 5px;
height: 5px;
margin-top: 6.5px;
border: 1px solid currentColor;
border-radius: 50%;
background: var(--openui-background);
transition: background-color 150ms;
}
.event[data-done="true"] .eventDot {
background: currentColor;
}
.eventCopy small {
display: block;
font-size: 12px;
color: var(--demo-muted);
}
/* On wide screens the timeline carries the timer and the request. */
@media (min-width: 1100.02px) {
.codePanel .panelHeader {
display: none;
}
/* The phone stays centred, so the code gains width by reaching into the
panel's padding on its left and the gap on its right. */
.codePanel {
margin: 0 -16px 0 -40px;
}
.codePanel .code {
padding: 22px 0;
}
/* Beside the phone the code and the timeline are supporting detail, so they
sit back into the stage and let the phone lead. */
.codePanel,
.timeline {
opacity: 0.55;
}
}
/* Below that there is no room for three columns: drop the timeline. */
@media (max-width: 1100px) {
.timeline {
display: none;
}
}
.phoneSide {
display: flex;
justify-content: center;
align-items: center;
min-height: 0;
}
.phone {
width: min(326px, 100%);
height: auto;
max-height: 100%;
flex: none;
aspect-ratio: 326 / 668;
min-height: 0;
display: flex;
flex-direction: column;
position: relative;
border: 7px solid #161616;
border-radius: 46px;
padding-top: 30px;
background: var(--phone-panel);
box-shadow:
0 0 0 1px #777,
0 0 0 3px #b3b3b3,
0 24px 40px -28px #0008;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.phone::before {
content: "";
width: 80px;
height: 20px;
border-radius: 20px;
position: absolute;
top: 9px;
left: 50%;
transform: translateX(-50%);
background: #111;
}
[data-theme="dark"] .phone {
box-shadow:
0 0 0 1px #777,
0 0 0 3px #424242,
0 24px 40px -28px #000c;
}
.screen {
min-height: 0;
flex: 1;
overflow: auto;
scrollbar-width: none;
padding: 16px 17px 30px;
font-size: 13px;
line-height: 1.5;
}
.screen::-webkit-scrollbar {
display: none;
}
.block {
margin-bottom: 16px;
}
.homeIndicator {
position: absolute;
pointer-events: none;
width: 102px;
height: 4px;
background: var(--demo-ink);
border-radius: 4px;
bottom: 8px;
left: 50%;
transform: translateX(-50%);
}
.screenHeader small {
font-size: 10px;
color: var(--demo-muted);
}
.screenHeader h3 {
margin: 3px 0 8px;
font-size: 26px;
font-weight: 600;
line-height: 1.2;
letter-spacing: -0.7px;
}
.sectionLabel {
margin: 20px 0 10px;
font-size: 12px;
font-weight: 500;
color: var(--demo-muted);
}
.list,
.kv {
border: 1px solid var(--phone-line);
border-radius: 16px;
margin: 0;
overflow: hidden;
background: var(--phone-panel);
}
.row {
width: 100%;
display: flex;
align-items: center;
gap: 9px;
padding: 12px;
border: 0;
border-bottom: 1px solid var(--phone-line);
background: none;
font: inherit;
color: inherit;
text-align: left;
}
.row:last-child {
border-bottom: 0;
}
button.row,
.screenButton {
cursor: pointer;
}
button.row:hover {
background: var(--demo-card);
}
.leading {
width: 20px;
height: 22px;
display: grid;
place-items: center;
flex: none;
color: var(--demo-muted);
}
.rowCopy {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
.rowCopy b {
font-size: 13px;
font-weight: 500;
line-height: 1.35;
}
.rowCopy small,
.trailing {
font-size: 11px;
line-height: 1.4;
color: var(--demo-muted);
}
.trailing {
max-width: 62px;
text-align: right;
}
.row input {
appearance: none;
width: 34px;
height: 20px;
border-radius: 20px;
background: #c7c7c9;
flex: none;
position: relative;
cursor: pointer;
transition: background 150ms;
}
.row input::after {
content: "";
position: absolute;
width: 16px;
height: 16px;
border-radius: 50%;
background: #fff;
top: 2px;
left: 2px;
box-shadow: 0 1px 2px #0002;
transition: transform 150ms;
}
.row input:checked {
background: #248866;
}
.row input:checked::after {
transform: translateX(14px);
}
.categories {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
border: 0;
border-radius: 0;
background: transparent;
}
.categories .row {
flex-direction: column;
justify-content: center;
gap: 8px;
border: 0;
border-radius: 16px;
background: var(--demo-card);
padding: 16px 4px;
text-align: center;
}
.categories .leading {
color: var(--demo-ink);
}
.categories .rowCopy {
flex: none;
}
.categories .rowCopy b {
font-size: 12px;
}
.kv {
background: var(--demo-card);
border-color: transparent;
}
.kv > div {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 13px 16px;
border-bottom: 1px solid var(--phone-line);
font-size: 12px;
}
.kv > div:last-child {
border: 0;
}
.kv dt {
color: var(--demo-muted);
}
.kv dd {
margin: 0;
text-align: right;
font-weight: 500;
}
.photo {
margin: 0;
height: 180px;
position: relative;
border-radius: 16px;
overflow: hidden;
}
.photo img {
width: 100%;
height: 100%;
object-fit: cover;
}
.photo figcaption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 30px 14px 12px;
background: linear-gradient(transparent, #000b);
color: #fff;
font-size: 12px;
}
.chips {
display: flex;
gap: 5px;
overflow: auto;
scrollbar-width: none;
white-space: nowrap;
}
.chips span {
border-radius: 999px;
background: var(--demo-card);
color: var(--demo-muted);
font-size: 10px;
padding: 8px 10px;
}
.chips span:first-child {
background: var(--demo-ink);
color: var(--phone-panel);
}
.screenButton {
border: 0;
border-radius: 999px;
width: 100%;
min-height: 42px;
padding: 11px 14px;
font-family: inherit;
font-size: 13px;
font-weight: 500;
line-height: 1.3;
background: var(--demo-ink);
color: var(--phone-panel);
}
.screenButton.secondary {
background: var(--phone-panel);
color: var(--demo-ink);
border: 1px solid var(--phone-line);
}
.screenActions {
display: flex;
flex-direction: column;
gap: 10px;
}
.controls {
position: absolute;
bottom: 16px;
right: 24px;
display: flex;
align-items: center;
}
.controls > div {
display: flex;
gap: 4px;
}
.controls button {
display: grid;
place-items: center;
width: 34px;
height: 34px;
border: 0;
border-radius: 50%;
background: #fff;
color: #555;
cursor: pointer;
box-shadow: 0 1px 3px #00000012;
}
.controls button:hover,
.controls button:focus-visible {
opacity: 1;
background: #f3f3f3;
}
.demo button:focus-visible,
.demo input:focus-visible {
outline: 2px solid var(--demo-blue);
outline-offset: 2px;
}
@media (min-width: 900px) and (max-width: 1100px) {
.demo {
padding: 40px 32px 56px;
gap: 32px;
grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
}
.code {
font-size: 11px;
}
.panelHeader {
padding: 12px;
}
.timer {
gap: 6px;
}
.timer strong {
font-size: 24px;
}
}
@media (max-width: 899.98px) {
.demo {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: 240px minmax(0, 1fr);
padding: 28px 32px 56px;
gap: 32px;
}
.code {
font-size: 11px;
padding: 14px;
}
.panelHeader {
min-height: 54px;
padding: 8px 16px;
}
.timer strong {
font-size: 24px;
}
}
@media (max-width: 500px) {
.demo {
padding: 20px 18px 48px;
gap: 28px;
grid-template-rows: 220px minmax(0, 1fr);
}
.phone {
border-radius: 42px;
}
.panelHeader {
padding: 8px 12px;
font-size: 11px;
}
.timer {
gap: 6px;
}
.timer small {
font-size: 9px;
}
.timer strong {
font-size: 22px;
gap: 3px;
}
.timer time {
min-width: 62px;
}
.code {
font-size: 10px;
padding: 10px;
}
.codeLine {
gap: 8px;
}
.screen {
padding-inline: 13px;
}
.row {
padding-inline: 10px;
gap: 7px;
}
.rowCopy b {
font-size: 12px;
}
.rowCopy small,
.trailing {
font-size: 10px;
}
.controls {
right: 16px;
bottom: 10px;
}
}
@media (max-width: 360px) {
.panelHeader > span:first-child svg {
display: none;
}
}
.statusBar {
position: absolute;
top: 9px;
left: 23px;
right: 21px;
height: 24px;
display: flex;
align-items: center;
justify-content: space-between;
font-family: Arial, sans-serif;
font-size: 12px;
font-weight: 600;
pointer-events: none;
}
.categoryPhoto {
overflow: hidden;
border-radius: 12px;
background: var(--demo-card);
text-align: center;
}
.categoryPhoto img {
width: 100%;
height: 70px;
object-fit: cover;
display: block;
}
.categoryPhoto b {
display: block;
padding: 8px 0;
font-size: 12px;
font-weight: 600;
}
.productItem {
overflow: hidden;
border-radius: 14px;
background: var(--demo-card);
}
.productItem > img {
display: block;
width: 100%;
height: 132px;
object-fit: cover;
}
.productItem > div {
padding: 14px;
display: flex;
flex-direction: column;
gap: 5px;
}
.productItem b {
font-size: 14px;
font-weight: 600;
}
.productItem small {
font-size: 11px;
color: var(--demo-muted);
}
.productItem strong {
margin-top: 6px;
font-size: 15px;
font-weight: 600;
}
.deliveryMap {
border: 1px solid var(--phone-line);
overflow: hidden;
border-radius: 14px;
}
.deliveryMap svg {
display: block;
width: 100%;
height: auto;
}
.deliveryMap > div {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px;
}
.deliveryMap b,
.deliveryMap small {
display: block;
}
.deliveryMap b {
font-size: 12px;
font-weight: 600;
}
.deliveryMap small {
font-size: 10px;
color: var(--demo-muted);
margin-top: 3px;
}
.deliveryDot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #36966c;
}
.phone {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.restaurantPhoto {
flex: none;
width: 38px;
height: 38px;
overflow: hidden;
border-radius: 9px;
}
.restaurantPhoto img {
width: 100%;
height: 100%;
object-fit: cover;
}
.selectedCheck {
color: #258269;
}
.productDetails {
padding: 0 2px;
}
.productTitle {
display: flex;
align-items: flex-start;
gap: 14px;
justify-content: space-between;
}
.productTitle h3 {
margin: 0;
font-size: 23px;
font-weight: 650;
line-height: 1.15;
letter-spacing: -0.6px;
}
.productTitle > strong {
font-size: 16px;
line-height: 1.7;
font-weight: 600;
white-space: nowrap;
}
.productDetails > p {
font-size: 12px;
line-height: 1.5;
color: var(--demo-muted);
margin: 12px 0;
}
.productMeta {
display: flex;
gap: 14px;
align-items: center;
font-size: 11px;
font-weight: 500;
}
.productMeta span {
display: inline-flex;
align-items: center;
gap: 4px;
}
.photo {
height: 195px;
border-radius: 14px;
}
.productItem {
display: flex;
gap: 12px;
padding: 12px;
border: 1px solid var(--phone-line);
border-radius: 12px;
background: var(--phone-panel);
}
.productItem > img {
width: 76px;
height: 86px;
border-radius: 9px;
flex: none;
}
.productItem > div {
padding: 0;
flex: 1;
gap: 6px;
}
.productItem b {
font-size: 13px;
line-height: 1.3;
}
.productItem small {
font-size: 10px;
line-height: 1.4;
}
.cartPrice {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 3px;
gap: 8px;
}
.cartPrice strong {
margin: 0;
font-size: 12px;
}
.cartPrice small {
border: 1px solid var(--phone-line);
border-radius: 5px;
padding: 2px 5px;
}
.list:has(.productItem) {
border: 0;
border-radius: 0;
}
.orderSummary {
background: transparent;
}
.orderSummary > div {
padding: 9px 2px;
border-bottom: 0;
}
.orderSummary > div:last-child {
border-top: 1px solid var(--phone-line);
margin-top: 6px;
padding-top: 13px;
font-weight: 600;
}
.orderSummary > div:last-child dt {
color: var(--demo-ink);
}
.demo[data-demo-scene="truffle"] .sectionLabel {
margin-top: 22px;
}
@media (max-width: 767px) {
.phoneSide,
.codePanel {
pointer-events: none;
user-select: none;
}
.screen,
.code {
overflow: hidden;
}
.demo {
touch-action: pan-y;
}
}
@media (min-width: 768px) and (max-width: 1100px) {
.demo {
grid-template-columns: minmax(0, 1fr) 300px;
grid-template-rows: minmax(0, 1fr);
gap: 28px;
padding: 40px 32px 64px;
}
.phone {
width: 300px;
}
}
@media (max-width: 767px) {
.demo {
grid-template-rows: 132px minmax(0, 1fr);
gap: 20px;
padding: 20px 18px 52px;
}
.phone {
width: min(272px, 100%);
max-height: none;
}
.panelHeader {
min-height: 32px;
padding: 0 0 6px;
justify-content: space-between;
}
.codeLabel {
color: var(--demo-muted);
font-size: 12px;
}
.code {
padding: 0;
font-size: 10px;
line-height: 1.5;
}
.phoneSide {
align-items: flex-start;
padding-top: 4px;
}
.controls {
right: 18px;
bottom: 12px;
}
}
/* One shared workspace gives source, output and timing a common structure. */
.demo {
grid-template-columns: minmax(0, 1fr) 366px minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
gap: 0;
height: 722px;
width: 100%;
margin: 0;
padding: 0;
border: 1px solid var(--demo-line);
border-radius: 24px;
overflow: hidden;
background: var(--demo-surface);
}
.demo .panelHeader {
min-height: 48px;
padding: 8px 18px;
background: var(--demo-panel);
justify-content: space-between;
border-bottom: 1px solid var(--demo-line);
font: 11px/20px var(--home-font-code, ui-monospace, monospace);
}
.panelMeta {
color: var(--demo-muted);
font-size: 10px;
}
.compactTimer {
display: none;
}
.demo .codePanel {
margin: 0;
opacity: 1;
}
.demo .codePanel .panelHeader {
display: flex;
}
.demo .code {
padding: 18px 16px 24px 10px;
font-size: 11px;
line-height: 1.85;
}
.codeLine {
grid-template-columns: 20px minmax(0, 1fr);
gap: 10px;
}
.lineNumber {
opacity: 0.55;
}
.previewPanel {
display: flex;
flex-direction: column;
min-height: 0;
min-width: 0;
border-inline: 1px solid var(--demo-line);
}
.phoneSide {
flex: 1;
padding: 35px 24px;
background: transparent;
}
.demo .phone {
width: 326px;
max-height: none;
zoom: 0.9;
}
.demo .timeline {
padding: 0;
opacity: 1;
}
.traceSummary {
padding: 22px 20px 20px;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
}
.traceSummary > .timer {
justify-content: flex-end;
}
.traceSummary > .progressTrack {
grid-column: 1 / -1;
}
.timerLabel {
display: block;
font-size: 11px;
}
.timeline .timer strong {
font-size: 30px;
line-height: 1.5;
}
.timeline .timer time span {
font-size: 14px;
margin-left: 4px;
}
.progressTrack {
height: 3px;
margin-top: 14px;
background: var(--demo-line);
border-radius: 3px;
overflow: hidden;
}
.progressTrack span {
display: block;
height: 100%;
background: var(--demo-green);
transition: width 160ms linear;
}
.events {
margin: 0 20px;
padding: 12px 0 20px;
border-top: 1px solid var(--demo-line);
}
.events::before {
left: 2px;
top: 27px;
bottom: 38px;
}
.event {
grid-template-columns: 5px minmax(0, 1fr) 44px;
padding-block: 9px;
font-size: 11px;
line-height: 17px;
}
.eventCopy small {
font-size: 11px;
margin-top: 3px;
}
.eventTime {
grid-column: 3;
grid-row: 1;
font-size: inherit;
}
.eventDot {
grid-column: 1;
grid-row: 1;
}
.eventCopy {
grid-column: 2;
grid-row: 1;
}
.event[data-done="true"] .eventDot {
color: var(--demo-green);
}
.demo .controls {
position: static;
flex: none;
}
.controls > div {
gap: 6px;
}
.controls button {
width: 30px;
height: 30px;
border: 1px solid var(--demo-line);
background: transparent;
color: var(--demo-muted);
box-shadow: none;
}
.controls button:hover,
.controls button:focus-visible {
background: color-mix(in srgb, var(--demo-ink) 5%, transparent);
}
@media (max-width: 1100px) {
.demo {
margin: 0;
height: auto;
border-radius: 24px;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: 100px auto;
gap: 0;
padding: 0;
}
.controls button {
width: 32px;
height: 32px;
}
.demo .panelHeader {
min-height: 44px;
padding: 6px 12px;
font-size: 10px;
}
.demo .code {
padding: 8px 12px;
font-size: 9px;
line-height: 1.6;
}
.codePanel .panelMeta {
display: none;
}
.compactTimer {
display: block;
}
.compactTimer .timer strong {
font-size: 15px;
}
.compactTimer .timer time {
min-width: 0;
}
.compactTimer .timer time span {
font-size: 11px;
}
.previewPanel {
border-inline: 0;
border-top: 1px solid var(--demo-line);
}
.phoneSide {
align-items: center;
padding: 32px 16px;
overflow: hidden;
}
.demo .phone {
width: 326px;
zoom: 0.74;
}
}
@media (prefers-reduced-motion: reduce) {
.progressTrack span {
transition: none;
}
}
@media (max-width: 360px) {
.demo .phone {
zoom: 0.64;
}
}
@media (max-width: 1100px) {
.demo {
--mobile-phone-scale: 0.74;
}
.previewPanel {
container-type: inline-size;
}
.demo .phoneSide {
padding-block: max(16px, calc((100cqw - 326px * var(--mobile-phone-scale)) / 2));
}
}
@media (max-width: 360px) {
.demo {
--mobile-phone-scale: 0.64;
}
}
/* A clean preview surface and quieter supporting details. */
.demo .phoneSide {
background: transparent;
}
.demo .phone {
box-shadow:
0 0 0 1px #777,
0 0 0 3px #b3b3b3,
0 14px 24px -18px #0006;
}
[data-theme="dark"] .demo .phone {
box-shadow:
0 0 0 1px #777,
0 0 0 3px #424242,
0 14px 24px -18px #0009;
}
.demo .traceSummary {
padding-bottom: 16px;
}
.demo .timeline .timer strong {
font-size: 26px;
}
.demo .progressTrack {
height: 4px;
}
.demo .events {
border-top: 0;
}
.demo .eventTime {
font-family: var(--home-font-code, ui-monospace, monospace);
font-style: normal;
opacity: 0.85;
}
.demo .timerLabel {
font-size: 14px;
line-height: 20px;
}
.mobileRequest {
display: none;
}
.previewLabel {
display: inline-flex;
align-items: center;
gap: 8px;
}
@media (max-width: 1100px) {
.demo {
grid-template-rows: auto auto;
}
.demo .codePanel {
display: none;
}
.mobileRequest {
display: block;
}
.mobileRequestText {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 16px;
font-size: 14px;
line-height: 20px;
text-wrap: pretty;
}
.mobileRequestLabel {
display: block;
color: var(--demo-muted);
font-size: 11px;
line-height: 16px;
}
.mobileTiming {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 10px 16px;
border-top: 1px solid var(--demo-line);
}
.mobileTiming > .mobileRequestLabel {
font-size: 13px;
}
.mobileTiming .timer {
justify-content: flex-end;
margin-top: 0;
}
.mobileTiming .timer strong {
font-size: 24px;
line-height: 28px;
}
.mobileTiming .timer time {
min-width: 0;
}
.mobileTiming .timer time span {
font-size: 12px;
}
.demo .previewPanel > .panelHeader {
display: contents;
}
.previewLabel {
display: none;
}
.demo .previewPanel .controls {
order: 2;
align-self: flex-end;
margin: 0 16px 16px;
}
.demo .phoneSide {
order: 1;
}
}
/* One compact layout across phones and tablets, scaled to its own panel. */
@media (max-width: 1100px) {
.demo .phone {
zoom: clamp(0.64, tan(atan2(78cqw, 326px)), 1.35);
}
.demo .phoneSide {
padding: clamp(24px, 11cqw, 48px) 16px;
pointer-events: none;
user-select: none;
}
.demo .screen {
overflow: hidden;
}
.demo {
touch-action: pan-y;
}
}
/* Let this interactive preview fill the mobile hero instead of the image-sized slot. */
@media (max-width: 899px) {
.responsiveHero div:has(> [data-demo-scene]) {
width: 100%;
max-width: none;
}
}
.mobileQueryAvatar {
display: grid;
place-items: center;
flex: none;
width: 26px;
height: 26px;
border-radius: 50%;
background: var(--demo-ink);
color: var(--demo-panel);
}