/*
 * The demo page (site/pages/demo.html): a simplified copy of the ParetoForm window in its light theme,
 * with only the controls that work. On a desktop the window fills the screen under the site's menu.
 * The colors of the window are the program's own (studio-base theme.rs, Theme::light), not the site's:
 * window #EDEEF1, panels #F5F6F8, borders #D9DBE1, text #1F2328, dim text #5C616B, accent #2F6FEB,
 * selected row #DCE3F5, success #1A7F37, 3D view #F4F6FA to #D8DDE6. The rest comes from site.css.
 */

.demo-band { padding: 16px 0 clamp(48px, 6vw, 80px); }
/* the page's heading is for screen readers and search results; the window is the page */
.demo-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.demo-wide { width: 100%; max-width: 1488px; margin: 0 auto; padding: 0 var(--gutter); }

.demo-placeholder {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 22px; padding: 12px 16px; font-size: 0.95rem;
  border: 1px solid rgba(235, 139, 41, 0.45); border-radius: var(--radius); background: rgba(235, 139, 41, 0.08);
}
.on-ink .demo-placeholder { color: var(--ink-text); }
.demo-placeholder[hidden] { display: none; }
.demo-flag {
  display: inline-block; font: 500 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 6px; border-radius: 4px; border: 1px solid rgba(235, 139, 41, 0.6); color: #f3b377; white-space: nowrap; vertical-align: 1px;
}

/* ---------------------------------------------------------------- the window */

.pf-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.pf {
  --pf-text: #1f2328; --pf-dim: #5c616b; --pf-line: #d9dbe1; --pf-line-2: #c9ccd4; --pf-window: #edeef1; --pf-panel: #f5f6f8;
  --pf-accent: #2f6feb; --pf-active: #dce3f5; --pf-green: #1a7f37; --pf-orange: #f57f17;
  display: flex; flex-direction: column; overflow: hidden;
  font: 400 13px/1.4 var(--font); color: var(--pf-text); background: var(--pf-window);
  border: 1px solid rgba(141, 187, 242, 0.28); border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.on-ink .pf p { margin: 0; color: inherit; }
.pf svg { width: 16px; height: 16px; flex: none; }
.pf button { font: inherit; color: inherit; }
.pf [hidden] { display: none !important; }

.pf-title { position: relative; display: flex; align-items: center; height: 40px; padding-left: 10px; border-bottom: 1px solid var(--pf-line); white-space: nowrap; user-select: none; }
.pf-logo { width: 22px; height: 22px; margin-right: 10px; flex: none; background: url(/img/paretoform-mark.svg) center / contain no-repeat; }
.pf-menu { display: flex; }
.pf-menu span { padding: 6px 9px; }
.pf-title-text { position: absolute; left: 50%; transform: translateX(-50%); color: var(--pf-dim); }
@media (max-width: 1240px) { .pf-title-text { position: static; transform: none; flex: 1; min-width: 0; padding: 0 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; } }
.pf-win { display: flex; align-items: center; margin-left: auto; }
.pf-win > * { width: 46px; height: 40px; }
.pf-win i { position: relative; }
.pf-win i::before { content: ""; position: absolute; left: 18px; top: 19px; width: 10px; border-top: 1px solid var(--pf-text); }
.pf-win .pf-win-max::before { top: 15px; height: 9px; border: 1px solid var(--pf-text); width: 9px; }
.pf .pf-win svg { width: 46px; height: 40px; padding: 12px 15px; box-sizing: border-box; }

.pf-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 0; }

.pf-tree { position: relative; background: var(--pf-panel); border-right: 1px solid var(--pf-line); min-height: 0; user-select: none; }
.pf-tree-head { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--pf-dim); }
.pf-tree-head span { flex: 1; }
.pf-tree-head i { font: 300 20px/1 var(--font); color: var(--pf-text); }
/* the tree scrolls: its rows fade out at the bottom edge, and the last row clears the fade */
.pf-tree-rows { position: absolute; inset: 40px 0 0; overflow-y: auto; scrollbar-width: thin; padding: 0 6px 30px; -webkit-mask-image: linear-gradient(#000 calc(100% - 30px), transparent); mask-image: linear-gradient(#000 calc(100% - 30px), transparent); }
.pf-row { display: grid; grid-template-columns: 16px minmax(0, max-content) minmax(0, 1fr); align-items: center; gap: 0 7px; min-height: 26px; padding: 2px 8px 2px 0; border-radius: 4px; line-height: 1.25; }
.pf-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-row small { font-size: 11.5px; color: var(--pf-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-row b { justify-self: end; min-width: 16px; padding: 1px 0; border-radius: 8px; background: var(--pf-active); color: var(--pf-dim); font: 400 10.5px/1.3 var(--font); text-align: center; }
.pf-l0 { padding-left: 4px; }
.pf-l1 { padding-left: 26px; }
.pf-l2 { padding-left: 40px; }
/* a long name: the gray words go on a line of their own, as in the program */
.pf-two { padding-top: 4px; padding-bottom: 4px; }
.pf-two > span { grid-column: 2 / -1; }
.pf-two small { grid-column: 2 / -1; }
.pf-group { grid-template-columns: 14px 16px minmax(0, max-content) minmax(0, 1fr); }
.pf-root > span { font-weight: 500; }
.pf-row-on { background: var(--pf-active); }
.pf-group > svg:first-child { width: 14px; height: 14px; color: var(--pf-dim); }
.pf-i-blue { color: var(--pf-accent); }
.pf-i-green { color: var(--pf-green); }
.pf-i-orange { color: var(--pf-orange); }
.pf-dot { width: 16px; height: 16px; flex: none; position: relative; }
.pf-dot::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: currentColor; }

.pf-main { display: flex; flex-direction: column; min-width: 0; }

/* the choices written by the replay tool hold the page data; the dialog shows the parts */
.pf-choices[hidden] { display: none; }

.pf-head { display: flex; align-items: center; gap: 20px; padding: 9px 16px; background: var(--pf-panel); border-bottom: 1px solid var(--pf-line); }
.pf-doc { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 270px; }
.pf-doc-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 7px; background: var(--pf-active); color: var(--pf-accent); }
.pf-doc p { min-width: 0; line-height: 1.25; }
.pf-doc strong, .pf-doc small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a long project title takes a second line instead of losing its end */
.pf-doc strong { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.2; }
.pf-root > span { white-space: normal; }
.pf-doc strong { font-weight: 500; font-size: 14px; }
.pf-doc small { font-size: 11.5px; color: var(--pf-dim); }
.pf-steps { flex: 1 1 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 800px; margin: 0 0 0 auto; padding: 0; list-style: none; counter-reset: pf-step; }
.pf-steps li { position: relative; counter-increment: pf-step; text-align: center; font-size: 11.5px; line-height: 1.2; color: var(--pf-dim); white-space: nowrap; }
.pf-steps li + li::before { content: ""; position: absolute; top: 9px; right: calc(50% + 13px); width: calc(100% - 26px); border-top: 1px solid var(--pf-line-2); }
.pf-steps i { display: grid; place-items: center; width: 18px; height: 18px; margin: 0 auto 4px; border-radius: 50%; border: 1px solid var(--pf-line-2); background: #fff; font: 400 10.5px/1 var(--font); color: var(--pf-dim); }
.pf-steps i::before { content: counter(pf-step); }
.pf-steps .pf-done i { background: var(--pf-accent); border-color: var(--pf-accent); }
.pf-steps .pf-done i::before {
  content: ""; width: 12px; height: 12px; background: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.4 3 3 6-6.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pf-steps .pf-done + li::before, .pf-steps .pf-done + .pf-current::before { border-color: var(--pf-accent); }
.pf-steps .pf-current { color: var(--pf-text); font-weight: 500; }
.pf-steps .pf-current:not(.pf-done) i { border-color: var(--pf-accent); color: var(--pf-accent); box-shadow: 0 0 0 2px rgba(47, 111, 235, 0.18); }

.pf-work { display: grid; grid-template-columns: minmax(0, 1fr) 336px; background: #fff; }

/* A desktop window fills the screen under the site's menu (64 px), so the whole window is in view. */
@media (min-width: 861px) {
  .pf { height: calc(100vh - 64px - 32px); height: calc(100dvh - 64px - 32px); min-height: 560px; max-height: 1100px; }
  .pf-body { flex: 1; grid-template-rows: minmax(0, 1fr); }
  .pf-main { min-height: 0; }
  .pf-work { flex: 1; min-height: 0; }
  .pf-work > .pf-view { aspect-ratio: auto; height: 100%; }
}

/* The 3D view. 4:3, the shape of the wide video and still pictures, so all three show the part at the same size. */
.pf-view { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size; background: linear-gradient(#f4f6fa, #d8dde6); }
.pf-view img, .pf-view > canvas, .pf-view > video { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-view img, .pf-view > video { object-fit: contain; }
.pf-view > canvas { touch-action: none; cursor: grab; outline-offset: -3px; }
.pf-view > canvas:active { cursor: grabbing; }
.pf-view > canvas:focus-visible { outline: 2px solid var(--pf-accent); }
/* the end of the run: a green sign at the top of the view */
.on-ink .pf .pf-complete-badge {
  display: none; position: absolute; left: 50%; top: 12px; transform: translateX(-50%); align-items: center; gap: 7px; margin: 0; padding: 6px 14px 6px 10px;
  border-radius: 16px; background: var(--pf-green); color: #fff; font: 600 13px/1.2 var(--font); white-space: nowrap; box-shadow: 0 2px 10px rgba(26, 32, 48, 0.2); pointer-events: none;
}
.pf[data-phase="done"] .pf-complete-badge { display: flex; }
.pf-complete-badge svg { width: 15px; height: 15px; }
/* "Drag to rotate the model": on the 3D view until the visitor first turns it (owner, 24 November 2026) */
.on-ink .pf .pf-orbit {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; margin: 0; padding: 6px 14px 6px 10px;
  border-radius: 16px; background: rgba(26, 32, 48, 0.78); color: #fff; font: 500 13px/1.2 var(--font); white-space: nowrap; box-shadow: 0 2px 10px rgba(26, 32, 48, 0.2); pointer-events: none;
}
.on-ink .pf .pf-orbit[hidden] { display: none; }
.pf[data-phase="done"] .pf-orbit { top: 52px !important; }
.pf-orbit svg { width: 18px; height: 18px; animation: pf-sway 2.4s ease-in-out infinite; }
@keyframes pf-sway { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }
.pf-triad { position: absolute; left: 12px; bottom: 10px; width: 56px !important; height: 56px !important; pointer-events: none; }
.pf-triad path { stroke-width: 1.5; fill: none; }
.pf-triad text { font: 500 9px var(--font); }
.pf-pill { position: absolute; background: #fff; box-shadow: 0 2px 10px rgba(26, 32, 48, 0.18); color: var(--pf-dim); white-space: nowrap; pointer-events: none; }
/* the line about the drawn surface, at the bottom edge clear of the part */
.on-ink .pf .pf-pill { left: 78px; bottom: 12px; padding: 4px 12px; border-radius: 14px; font-size: 12px; color: var(--pf-dim); font-variant-numeric: tabular-nums; }

/* The step's panel. It never sets the height of the window: the 3D view does, and the panel scrolls. */
.pf-panel { position: relative; background: var(--pf-panel); border-left: 1px solid var(--pf-line); min-height: 0; }
.pf-panel-in { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: thin; padding: 13px 16px 16px; }
.pf-panel-in > * { display: none; margin-top: 10px; }
.pf-panel-in > :not([class*="pf-on-"]) { display: block; }
.pf[data-phase="ready"] .pf-on-ready, .pf[data-phase="running"] .pf-on-running, .pf[data-phase="done"] .pf-on-done { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* Run again and Choose another model, at the top of the Result step so they show without scrolling */
.pf[data-phase="done"] .pf-actions { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 16px; }
.on-ink .pf .pf-step-no { margin-top: 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pf-accent); }
.on-ink .pf .pf-h { margin: 5px 0 0; font: 600 19px/1.25 var(--font); letter-spacing: 0; color: var(--pf-text); }
.on-ink .pf .pf-intro, .on-ink .pf .pf-dim, .on-ink .pf .pf-note { color: var(--pf-dim); }
.pf-intro:empty { display: none !important; }
.pf-note { font-size: 12px; }
.pf-note:empty { display: none !important; }
.pf-dim { font-variant-numeric: tabular-nums; }
.on-ink .pf .pf-label { margin-top: 4px; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--pf-dim); }

.pf-ready { list-style: none; margin: 0; padding: 0; }
.pf-ready li { display: flex; align-items: center; gap: 8px; height: 30px; }
.pf-ready strong { font-weight: 500; white-space: nowrap; }
.pf-ready span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pf-dim); }

.pf-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 34px; padding: 0 12px;
  background: #f3f4f6; border: 1px solid var(--pf-line-2); border-radius: 6px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.pf-btn:hover { background: #e9ebef; }
.pf .pf-primary { background: var(--pf-accent); border-color: var(--pf-accent); color: #fff; font-weight: 600; }
.pf .pf-primary:hover { background: #2560d6; }
/* Generate shape glows, so the next step is plain (owner, 24 November 2026) */
.pf .pf-primary.pf-tall:not(:disabled) { animation: pf-glow 1.8s ease-in-out infinite; }
@keyframes pf-glow {
  0%, 100% { box-shadow: 0 0 6px 1px rgb(47 111 235 / 0.45), 0 0 0 0 rgb(47 111 235 / 0.5); }
  50% { box-shadow: 0 0 18px 4px rgb(47 111 235 / 0.65), 0 0 0 6px rgb(47 111 235 / 0); }
}
.pf-btn.pf-tall { height: 40px; margin-top: 4px; }
.pf-btn:disabled { opacity: 0.45; cursor: default; }
.pf-btn:focus-visible, .pf-link:focus-visible, .pf-seg button:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 2px; }
.pf-link { justify-self: start; padding: 0; background: none; border: 0; color: var(--pf-accent) !important; cursor: pointer; text-align: left; }
.pf-link:hover { text-decoration: underline; }

.pf-stage { display: flex; align-items: center; gap: 9px; }
.pf-stage strong { font-weight: 600; font-size: 13.5px; }
.pf-spinner { width: 16px; height: 16px; flex: none; border: 2px solid var(--pf-line-2); border-top-color: var(--pf-accent); border-radius: 50%; animation: pf-spin 0.9s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .pf-spinner, .pf-orbit svg { animation: none; }
  .pf .pf-primary.pf-tall:not(:disabled) { animation: none; box-shadow: 0 0 14px 3px rgb(47 111 235 / 0.55); }
}
.pf-bar { height: 4px; border-radius: 2px; background: var(--pf-active); overflow: hidden; }
.pf-bar span, .pf-status-bar i { display: block; height: 100%; width: 0; background: var(--pf-accent); }

.pf-chart { background: #fff; border: 1px solid var(--pf-line); border-radius: 8px; }
.pf-chart svg { display: block; width: 100%; height: auto; }
.pf-chart text { font: 400 11px var(--font); font-variant-numeric: tabular-nums; }

.pf-range { width: 100%; margin: 0; accent-color: var(--pf-accent); }

.pf[data-phase] .pf-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.on-ink .pf .pf-tiles p { padding: 9px 12px 10px; background: #fff; border: 1px solid var(--pf-line); border-radius: 8px; min-width: 0; }
.pf-tiles strong { display: block; font: 600 18px/1.3 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-tiles span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--pf-dim); }
.pf-tiles .pf-good strong { color: var(--pf-green); }

.pf-seg button[aria-disabled="true"] { cursor: default; }

.pf-seg { display: flex !important; gap: 2px !important; padding: 3px; background: #fff; border: 1px solid var(--pf-line-2); border-radius: 8px; }
.pf-seg button { flex: 1; height: 26px; background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.pf-seg button[aria-pressed="true"] { border-color: var(--pf-line-2); font-weight: 600; box-shadow: 0 1px 2px rgba(26, 32, 48, 0.12); }

.pf-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 26px; padding: 0 12px; border-top: 1px solid var(--pf-line); font-size: 12px; color: var(--pf-dim); white-space: nowrap; user-select: none; }
.pf-status-left, .pf-status-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pf-status-left i { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border: 1px solid var(--pf-dim); border-radius: 50%; vertical-align: -1px; }
.pf-status-left .pf-warn { border-radius: 2px; transform: rotate(45deg) scale(0.8); margin-left: 12px; }
.pf-status-run { font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.pf-status-run:empty, .pf-status-run:empty + .pf-status-bar { display: none; }
.pf-status-bar { width: 56px; height: 3px; border-radius: 2px; background: var(--pf-active); overflow: hidden; }

/* ---------------------------------------------------------------- the dialog that chooses the model */

.demo-picker {
  width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; margin: auto; padding: 24px;
  border: 1px solid #d9dbe1; border-radius: 12px; background: #f5f6f8; color: #1f2328; box-shadow: 0 24px 70px rgb(0 0 0 / 0.5); overflow-y: auto;
}
.demo-picker::backdrop { background: rgb(5 8 13 / 0.78); }
.demo-picker h2 { margin: 0; font: 600 1.3rem/1.3 var(--font); letter-spacing: 0; color: #1f2328; }
.demo-picker > p { margin: 6px 0 18px; color: #5c616b; font-size: 0.95rem; }
.demo-picker-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 280px)); justify-content: center; gap: 14px; }
.demo-pick {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 0 0 12px; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid #d9dbe1; border-radius: 10px; background: #fff; color: #1f2328; font: inherit;
}
.demo-pick img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 8px; background: linear-gradient(#f4f6fa, #d8dde6); }
.demo-pick strong { padding: 0 12px; font-weight: 600; font-size: 0.98rem; }
.demo-pick span { padding: 0 12px; color: #5c616b; font-size: 0.82rem; line-height: 1.35; }
.demo-pick:hover { border-color: #2f6feb; box-shadow: 0 4px 16px rgb(26 32 48 / 0.14); }
.demo-pick:focus-visible { outline: 2px solid #2f6feb; outline-offset: 2px; }
.demo-pick[aria-current="true"] { border-color: #2f6feb; }
@media (max-width: 560px) {
  .demo-picker { padding: 18px 14px; }
  .demo-picker-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .demo-pick span { display: none; }
}

/* ---------------------------------------------------------------- under the window */

.demo-under { max-width: 62em; margin: 18px auto 0; display: grid; gap: 6px; font-size: 0.92rem; }
.on-ink .demo-under p { margin: 0; color: var(--ink-text-2); }
.on-ink .demo-under .demo-hint { color: var(--ink-muted); }
.on-ink .demo-under .demo-notice { color: var(--ink-text); }
.demo-notice:empty { display: none; }
/* what a click on a picture of a control says */
.demo-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 9px 14px; border-radius: 8px;
  background: #1f2328; color: #fff; font-size: 13px; line-height: 1.35; box-shadow: 0 6px 24px rgb(0 0 0 / 0.4); pointer-events: none;
}
.demo-toast[hidden] { display: none; }
/* the state of the run for screen readers; the window shows it to everyone else */
.demo-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.demo-switch { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--blue-300); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo-switch:hover { color: #fff; }
.demo-switch[hidden] { display: none; }

/* ---------------------------------------------------------------- smaller windows */

/* no room for the model tree: the program lets you close it too */
@media (max-width: 1240px) {
  .pf-body { grid-template-columns: minmax(0, 1fr); }
  .pf-tree { display: none; }
}
@media (max-width: 1020px) {
  .pf-doc { flex-basis: 190px; }
  .pf-work { grid-template-columns: minmax(0, 1fr) 300px; }
}
/* narrow: the panel stands under the 3D view, and the window is as high as it needs */
@media (max-width: 860px) {
  .pf-body { grid-template-columns: minmax(0, 1fr); }
  .pf-menu { display: none; }
  .pf-title-text { text-align: left; padding: 0; }
  .pf-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .pf-doc { flex: none; }
  .pf-steps { margin: 0; max-width: none; }
  .pf-work { grid-template-columns: minmax(0, 1fr); }
  .pf-panel { border-left: 0; border-top: 1px solid var(--pf-line); }
  .pf-panel-in { position: static; overflow: visible; }
}
/* phones: a square 3D view; the page loads the square video and still pictures for it (SQUARE_MEDIA in format.ts) */
@media (max-width: 560px) {
  .pf-view { aspect-ratio: 1 / 1; }
  .demo-wide { padding: 0 10px; }
  .pf-win i { display: none; }
  .pf-win > * { width: 40px; }
  .pf-steps li span { display: none; }
  .pf-steps .pf-current span { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .pf-steps { padding-bottom: 16px; }
  .pf-pill { display: none; }
  .on-ink .pf .pf-complete-badge { top: 8px; font-size: 12px; padding: 5px 12px 5px 8px; }
  .pf-status-left { display: none; }
  .pf-status-right { width: 100%; justify-content: space-between; }
}

/* Recording the design cycles for the video (src/build/demo-video.ts): only the 3D view, at its exact pixel size. */
html.demo-recording, html.demo-recording body { margin: 0; overflow: hidden; }
html.demo-recording body * { visibility: hidden !important; }
html.demo-recording .pf-view, html.demo-recording .pf-view > canvas { visibility: visible !important; }
html.demo-recording .pf-view { position: fixed; left: 0; top: 0; z-index: 1000; aspect-ratio: auto; }
