/* Animated Visuals plate structure. Uses only --fs-* tokens (see themes/README.md), so any theme file
   restyles it. One figure grammar: header / stage / toolbar / caption. */

.fs-plate {
  container-type: inline-size;
  margin: 1.75rem 0;
  overflow: hidden;
  color: var(--fs-fg);
  /* Its own base size, so a host's prose sizes never reach unsized text inside. */
  font-size: 16px;
  line-height: 1.625;
  font-family: var(--fs-font-figure);
  background: var(--fs-surface);
  /* A 4px frame band, the same treatment as the host's framed images, diagrams and embeds. */
  border: var(--fs-frame-width, 4px) solid var(--fs-frame, var(--fs-surface-2));
  border-radius: var(--fs-radius);
}

/* Head: title, then status, then actions; on narrow plates the actions stay top right and the status drops below. */
.fs-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 14px 20px 0;
}

.fs-head > :not(.fs-title, .fs-head-actions, .fs-head-tabs) {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
}

@container (max-width: 560px) {
  .fs-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .fs-head > :not(.fs-title, .fs-head-actions, .fs-head-tabs) {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.fs-title {
  margin: 0 auto 0 0;
  font: var(--fs-weight-title) var(--fs-size-title) / 1.5 var(--fs-font-figure);
  letter-spacing: var(--fs-head-tracking);
  text-transform: var(--fs-head-case);
}

.fs-status {
  color: var(--fs-muted);
  font-size: var(--fs-size-status);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.fs-stage {
  position: relative;
  padding: 8px 12px;
}

.fs-stage:focus-visible {
  outline: 2px solid var(--fs-accent);
  outline-offset: -3px;
  border-radius: var(--fs-radius-inner);
}

/* Direct children only: libraries (nivo, three) size their own nested SVG/canvas. */
.fs-stage > :is(canvas, svg) {
  display: block;
  width: 100%;
  height: auto;
}

.fs-stage svg text {
  font-family: var(--fs-font-figure);
}

.fs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  align-items: center;
  justify-content: space-between;
  min-height: var(--fs-control-size);
  padding: 0 12px 0 20px;
  border-top: var(--fs-border) solid var(--fs-line);
}

.fs-position {
  color: var(--fs-muted);
  font-size: var(--fs-size-label);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.fs-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}

.fs-controls button,
button.fs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--fs-control-size);
  height: var(--fs-control-size);
  padding: 0 9px;
  color: inherit;
  font: inherit;
  font-size: var(--fs-size-label);
  background: transparent;
  border: 0;
  border-radius: var(--fs-radius-control);
  cursor: pointer;
  transition: background var(--fs-dur) var(--fs-ease);
}

.fs-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Hit areas reach 40px (44px on touch) without growing the visual. */
.fs-controls button,
.fs-iconbtn {
  position: relative;
}

.fs-controls button::after,
.fs-iconbtn::after {
  position: absolute;
  inset: min(0px, calc((var(--fs-control-size) - 40px) / 2)) -2px;
  content: "";
}

@media (pointer: coarse) {
  .fs-controls button::after,
  .fs-iconbtn::after {
    inset: min(0px, calc((var(--fs-control-size) - 44px) / 2)) -2px;
  }
}

.fs-controls button:not(:disabled):active,
.fs-iconbtn:active {
  scale: 0.96;
}

.fs-controls button,
.fs-iconbtn {
  transition:
    background var(--fs-dur) var(--fs-ease),
    color var(--fs-dur) var(--fs-ease),
    scale 150ms var(--fs-ease);
}

/* Icon buttons swap icons in one box: the outgoing icon shrinks and blurs as the new one arrives. */
.fs-controls button.fs-play,
.fs-iconbtn {
  display: inline-grid;
  place-items: center;
}

.fs-ico {
  grid-area: 1 / 1;
  transition:
    opacity 300ms var(--fs-ease),
    scale 300ms var(--fs-ease),
    filter 300ms var(--fs-ease);
}

.fs-play .fs-ico,
.fs-expand .fs-ico-close,
.fs-expand[aria-expanded="true"] .fs-ico-open {
  opacity: 0;
  scale: 0.25;
  filter: blur(4px);
}

.fs-play:not([data-state]) .fs-ico-play,
.fs-play[data-state="play"] .fs-ico-play,
.fs-play[data-state="pause"] .fs-ico-pause,
.fs-play[data-state="replay"] .fs-ico-replay,
.fs-expand[aria-expanded="true"] .fs-ico-close {
  opacity: 1;
  scale: 1;
  filter: none;
}

.fs-controls button[aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fs-controls button:focus-visible,
.fs-param input:focus-visible,
.fs-scrub:focus-visible {
  outline: 2px solid var(--fs-accent);
  outline-offset: -3px;
}

@media (hover: hover) {
  .fs-controls button:not(:disabled):hover {
    background: var(--fs-surface-2);
  }
}

/* A labelled parameter control: label, value, slider. */
.fs-param {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: var(--fs-control-size);
  padding: 0 6px;
  color: var(--fs-muted);
  font-size: var(--fs-size-label);
}

.fs-param output {
  min-width: 4ch;
  color: var(--fs-fg);
  font-variant-numeric: tabular-nums;
}

.fs-param input[type="range"] {
  width: clamp(96px, 18vw, 180px);
  accent-color: var(--fs-fg);
}

.fs-dots {
  display: inline-flex;
  gap: 5px;
  padding: 0 6px;
}

.fs-dots i {
  width: 5px;
  height: 5px;
  background: var(--fs-line-strong);
  border-radius: 50%;
  transition: background var(--fs-dur) var(--fs-ease);
}

.fs-dots i[data-on] {
  background: var(--fs-fg);
}

/* Stacked captions: every caption occupies the same cell, so the box keeps the tallest height. */
.fs-stack {
  position: relative;
  display: grid;
}

.fs-stack > * {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity 220ms var(--fs-ease),
    filter 220ms var(--fs-ease),
    visibility 0s linear 220ms;
}

.fs-stack > [data-on] {
  visibility: visible;
  opacity: 1;
  filter: none;
  transition-delay: 0s;
}

.fs-sr,
.fs-stack > .fs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Changing values reserve their widest text (set by the runtime) and keep digits one width. */
.fs-reserve {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fs-step-text {
  min-height: 1.5em;
  margin: 0;
  padding: 0 20px 12px;
  color: var(--fs-muted);
  font-size: var(--fs-size-caption);
  line-height: 1.5;
}

.fs-caption {
  margin: 0;
  padding: 4px 20px 12px;
  color: var(--fs-muted);
  font-size: var(--fs-size-caption);
  line-height: 1.5;
}

.fs-toolbar + .fs-caption {
  padding-top: 0;
}

/* Readouts: the numbers a figure argues for, as real text. */
/* Dividers belong to the cells (right and bottom), so an odd last row never shows an empty block. */
.fs-readouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
  overflow: hidden;
  border-top: var(--fs-border) solid var(--fs-line);
}

.fs-readout {
  min-width: 0;
  padding: 12px 20px 14px;
  box-shadow:
    var(--fs-border) 0 0 var(--fs-line),
    0 var(--fs-border) 0 var(--fs-line);
}

.fs-readout b {
  display: block;
  font: 600 20px/1.2 var(--fs-font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.fs-readout span {
  color: var(--fs-muted);
  font-size: var(--fs-size-caption);
}

/* Inline scrubbable number in prose: drag sideways or use arrow keys. */
.fs-scrub {
  padding: 0 2px;
  color: var(--fs-fg);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed var(--fs-line-strong);
  border-radius: 2px;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.fs-scrub:hover,
.fs-scrub[data-active] {
  background: var(--fs-surface-2);
  border-bottom-color: var(--fs-fg);
}

/* Prose words linked to figure parts. */
[data-fs-ref] {
  text-decoration: underline dotted var(--fs-line-strong);
  text-underline-offset: 3px;
  cursor: default;
  transition: color var(--fs-dur) var(--fs-ease);
}

[data-fs-ref][data-active] {
  color: var(--fs-strong);
  text-decoration-color: var(--fs-accent);
}

/* The one thing happening now: a left rule and a soft tint. Clear it when the work moves on. */
.fs-live {
  margin-inline: -7px;
  padding-inline: 7px;
  background: color-mix(in srgb, var(--fs-accent) 9%, transparent);
  /* The rule sits on a flat edge: no radius on the left, so the inset line stays straight. */
  border-radius: 0 var(--fs-radius-control) var(--fs-radius-control) 0;
  box-shadow: inset 2px 0 0 var(--fs-accent);
}

/* Phase chip: the face of a state machine. The dot's pulse period encodes urgency. */
.fs-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  color: var(--fs-fg);
  font-size: var(--fs-size-label);
  background: color-mix(in srgb, var(--fs-accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--fs-accent) 40%, transparent);
  border-radius: 999px;
}

.fs-chip::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--fs-accent);
  border-radius: 50%;
}

.fs-chip[data-pulse="slow"]::before {
  animation: fs-pulse 1.1s ease-in-out infinite;
}

.fs-chip[data-pulse="fast"]::before {
  animation: fs-pulse 0.8s ease-in-out infinite;
}

@keyframes fs-pulse {
  50% {
    opacity: 0.35;
  }
}

/* ---- Direct-manipulation handles: invisible hit targets over the drawing; the figure draws the visual. ---- */
.fs-handles {
  position: absolute;
  pointer-events: none;
}

.fs-handle {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.fs-handle[data-dragging] {
  cursor: grabbing;
}

.fs-handle:focus-visible {
  outline: 2px solid var(--fs-accent);
  outline-offset: 2px;
}

/* ---- Physics slider: vertical bar handle, value bubble, rubber band at both ends. ---- */
.fs-slider {
  display: inline-grid;
  grid-template-columns: auto minmax(96px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: var(--fs-control-size);
  color: var(--fs-muted);
  font-size: var(--fs-size-label);
  outline: none;
}

.fs-slider-label {
  white-space: nowrap;
}

.fs-slider-track {
  position: relative;
  display: block;
  height: 28px;
  cursor: pointer;
  touch-action: none;
}

.fs-slider-track::before {
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--fs-over-right, 0px));
  left: calc(-1 * var(--fs-over-left, 0px));
  height: 2px;
  margin-top: -1px;
  content: "";
  background: var(--fs-line-strong);
  border-radius: 1px;
}

.fs-slider-fill {
  position: absolute;
  top: 50%;
  left: calc(-1 * var(--fs-over-left, 0px));
  height: 2px;
  margin-top: -1px;
  background: var(--fs-fg);
  border-radius: 1px;
}

.fs-slider-mark {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 8px;
  margin: -4px 0 0 -0.5px;
  background: var(--fs-line-strong);
}

.fs-slider-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 18px;
  margin: -9px 0 0 -2px;
  background: var(--fs-fg);
  border-radius: 2px;
  box-shadow: 0 0 0 3px var(--fs-surface);
  transition:
    height 220ms var(--fs-ease-spring),
    width 220ms var(--fs-ease-spring),
    margin 220ms var(--fs-ease-spring);
}

.fs-slider:hover .fs-slider-thumb {
  height: 22px;
  margin-top: -11px;
}

.fs-slider[data-active] .fs-slider-thumb {
  width: 5px;
  height: 26px;
  margin: -13px 0 0 -2.5px;
}

.fs-slider:focus-visible .fs-slider-thumb {
  outline: 2px solid var(--fs-accent);
  outline-offset: 3px;
}

.fs-slider-bubble {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  padding: 2px 6px;
  color: var(--fs-surface);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  background: var(--fs-fg);
  border-radius: var(--fs-radius-control);
  opacity: 0;
  transform: translate(-50%, 4px) scale(0.85);
  transition:
    opacity 140ms var(--fs-ease),
    transform 280ms var(--fs-ease-spring);
}

.fs-slider[data-active] .fs-slider-bubble,
.fs-slider:focus-visible .fs-slider-bubble {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.fs-slider-value {
  min-width: 4ch;
  color: var(--fs-fg);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* The toolbar's position readout already shows the time; the scrubber keeps only its drag bubble. */
.fs-toolbar:has(.fs-position) [data-fs-seek] .fs-slider-value {
  display: none;
}

/* ---- Tabs: examples of the same idea; a pill slides to the active one. ---- */
.fs-tabbar {
  padding: 10px 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.fs-tabs {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--fs-surface-2);
  border-radius: calc(var(--fs-radius-control) + 3px);
  isolation: isolate;
}

.fs-tabs button {
  position: relative;
  z-index: 1;
  height: 30px;
  padding: 0 12px;
  color: var(--fs-muted);
  font: inherit;
  font-size: var(--fs-size-label);
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: var(--fs-radius-control);
  cursor: pointer;
  transition:
    color var(--fs-dur) var(--fs-ease),
    scale 150ms var(--fs-ease);
}

.fs-tabs button::after {
  position: absolute;
  inset: -5px 0;
  content: "";
}

.fs-tabs button:hover,
.fs-tabs button[aria-selected="true"] {
  color: var(--fs-fg);
}

.fs-tabs button:active {
  scale: 0.96;
}

.fs-tabs button:focus-visible {
  outline: 2px solid var(--fs-accent);
  outline-offset: -2px;
}

.fs-tabs-ink {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  z-index: 0;
  background: var(--fs-surface);
  border: var(--fs-border) solid var(--fs-line);
  border-radius: var(--fs-radius-control);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--fs-fg) 8%, transparent);
  transition:
    transform 420ms var(--fs-ease-spring),
    width 320ms var(--fs-ease);
}

/* Tabs in the head: when the examples are the figure's main choice, the tabs take the title's place (the title stays
   for screen readers with .fs-sr), stretch to the width of the column they control (--fs-tabs-width, set by the
   figure) and line up with the status and actions. */
.fs-head:has(> .fs-head-tabs) {
  align-items: center;
}

.fs-head > .fs-head-tabs {
  display: flex;
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
  width: var(--fs-tabs-width, auto);
  max-width: 100%;
}

.fs-head-tabs > button {
  flex: 1 1 0;
}

/* ---- Head actions: settings and expand, 32px icons with 40px targets. ---- */
.fs-head {
  position: relative;
}

.fs-head-actions {
  display: inline-flex;
  grid-row: 1;
  grid-column: -2;
  gap: 4px;
  align-items: center;
  align-self: center;
  margin: -6px -10px -6px 0;
}

.fs-iconbtn {
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--fs-muted);
  background: transparent;
  border: 0;
  border-radius: var(--fs-radius-control);
  cursor: pointer;
}

.fs-iconbtn:hover,
.fs-iconbtn[aria-expanded="true"] {
  color: var(--fs-fg);
  background: var(--fs-surface-2);
}

.fs-iconbtn:focus-visible {
  outline: 2px solid var(--fs-accent);
  outline-offset: 2px;
}

.fs-settings svg {
  transition: transform 260ms var(--fs-ease-spring);
}

.fs-settings[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.fs-popover {
  position: fixed;
  inset: auto;
  width: min(288px, calc(100vw - 24px));
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--fs-fg);
  font-family: var(--fs-font-figure);
  background: var(--fs-surface);
  border: var(--fs-border) solid var(--fs-line);
  border-radius: calc(var(--fs-radius) - 2px);
  box-shadow: var(--fs-shadow);
  transform-origin: top right;
}

.fs-popover:popover-open,
.fs-popover:not([popover]):not([hidden]) {
  animation: fs-pop-in 260ms var(--fs-ease-spring) both;
}

@keyframes fs-pop-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
}

.fs-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 14px;
  color: var(--fs-muted);
  font-size: var(--fs-size-label);
}

.fs-popover-reset {
  padding: 4px 6px;
  margin: -4px -6px;
  color: var(--fs-muted);
  font: inherit;
  background: transparent;
  border: 0;
  border-radius: var(--fs-radius-control);
  cursor: pointer;
}

.fs-popover-reset:hover {
  color: var(--fs-fg);
  background: var(--fs-surface-2);
}

.fs-popover-body {
  display: grid;
  gap: 2px;
  padding: 0 14px 10px;
}

.fs-popover-body .fs-slider {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(96px, 1fr) auto;
}

/* Switch: a knob that springs across. */
.fs-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0;
  color: var(--fs-muted);
  font: inherit;
  font-size: var(--fs-size-label);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.fs-switch i {
  position: relative;
  width: 28px;
  height: 16px;
  background: var(--fs-line-strong);
  border-radius: 8px;
  transition: background var(--fs-dur) var(--fs-ease);
}

.fs-switch i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--fs-surface);
  border-radius: 50%;
  transition: transform 300ms var(--fs-ease-spring);
}

.fs-switch[aria-checked="true"] i {
  background: var(--fs-fg);
}

.fs-switch[aria-checked="true"] i::after {
  transform: translateX(12px);
}

.fs-switch:focus-visible {
  outline: 2px solid var(--fs-accent);
  outline-offset: 2px;
  border-radius: var(--fs-radius-control);
}

.fs-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-height: 40px;
  color: var(--fs-muted);
  font-size: var(--fs-size-label);
}

.fs-segmented span {
  margin-right: auto;
}

.fs-segmented button {
  padding: 5px 8px;
  color: var(--fs-muted);
  font: inherit;
  background: transparent;
  border: var(--fs-border) solid var(--fs-line);
  border-radius: var(--fs-radius-control);
  cursor: pointer;
}

.fs-segmented button[aria-pressed="true"] {
  color: var(--fs-fg);
  border-color: var(--fs-fg);
}

/* ---- Timeline surface: the drawing itself scrubs. ---- */
.fs-scrubbable > :is(canvas, svg) {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.fs-scrubbable > .fs-scrub-off {
  cursor: default;
}

:root.fs-grabbing,
:root.fs-grabbing * {
  cursor: grabbing;
  user-select: none;
}

/* ---- Tips: short explanations after a hover delay (top layer, never clipped). ---- */
.fs-tip {
  position: fixed;
  inset: 0 auto auto 0;
  width: max-content;
  max-width: min(264px, calc(100vw - 16px));
  margin: 0;
  padding: 9px 11px 10px;
  overflow: visible;
  color: var(--fs-fg);
  font: 400 var(--fs-size-caption) / 1.45 var(--fs-font-figure);
  pointer-events: none;
  background: var(--fs-surface);
  border: var(--fs-border) solid var(--fs-line-strong);
  border-radius: calc(var(--fs-radius) - 4px);
  box-shadow: var(--fs-shadow);
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition:
    opacity 140ms var(--fs-ease),
    transform 220ms var(--fs-ease);
}

.fs-tip[data-side="bottom"] {
  transform: translateY(-4px) scale(0.98);
}

.fs-tip.fs-tip-glide {
  transition:
    opacity 140ms var(--fs-ease),
    transform 220ms var(--fs-ease),
    translate 240ms var(--fs-ease);
}

.fs-tip[data-open] {
  opacity: 1;
  transform: none;
}

.fs-tip b {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
  font-size: var(--fs-size-label);
}

.fs-tip span {
  display: block;
  color: var(--fs-muted);
}

[data-fs-tip] {
  cursor: help;
}

/* ---- Expand: the plate rises nearly full screen; a holder keeps its place in the page. ---- */
:root.fs-modal-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.fs-holder {
  display: block;
}

.fs-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: color-mix(in srgb, var(--fs-bg, var(--fs-surface)) 72%, transparent);
  backdrop-filter: blur(8px);
}

.fs-plate[data-fs-expanded] {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  /* The "fill" expand (spec.expand: "fill"); the default "fit" pins the plate's own box and scales it. */
  width: 84vw;
  max-width: none;
  height: fit-content;
  max-height: 84dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: var(--fs-shadow);
}

@media (prefers-reduced-motion: reduce) {
  .fs-plate *,
  .fs-popover,
  .fs-popover *,
  .fs-tip,
  .fs-chip::before {
    transition-duration: 0s !important;
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .fs-head,
  .fs-caption,
  .fs-step-text,
  .fs-tabbar {
    padding-inline: 14px;
  }

  .fs-toolbar {
    padding-left: 14px;
  }

  .fs-stage {
    padding: 6px;
  }

  .fs-plate[data-fs-expanded] {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
}
