/* The gallery (gallery.js): every design drawn live with his data, the recommended ones on top. Its box scrolls; its place
   is set where it lives (studio.css: the Studio's stage; editor.css: the panel's editor). Light theme only. */
.gl { --gl-ease: cubic-bezier(.2, 0, 0, 1); padding: 28px clamp(16px, 3vw, 32px) 40px; scrollbar-width: none; }
.gl::-webkit-scrollbar { display: none; }
.gl-head { display: grid; gap: 6px; margin-bottom: 24px; }
.gl-title { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.gl-lead { margin: 0; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.gl-say { display: none; } /* a phone only: the assistant's latest words, the conversation being out of sight */
.gl-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 20px; color: var(--ink); }
.gl-label svg { color: var(--ink-2); flex: none; }
.gl-label-all { margin-top: 32px; }
/* the layout every design below is drawn in (gallery.js): a segmented switch beside the label, under it when it does not fit */
.gl-all-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 32px 0 12px; }
.gl-all-head .gl-label-all { margin: 0; }
.gl-layouts { flex: 0 1 380px; min-width: 0; }
.gl-layouts.fx-seg { background: rgba(0, 0, 0, .05); } /* its track on the white Studio and the grey editor alike */
/* a segmented control (fx-controls.js segmented): the gallery's layouts, the tray's order; its pill glides to the choice */
.fx-seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; border-radius: 12px; background: var(--bg-2); }
.fx-seg-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .3s var(--st-ease, cubic-bezier(.2, 0, 0, 1)); }
.fx-seg button { position: relative; z-index: 1; min-width: 0; height: 36px; padding: 0 6px; border: 0; background: none; font: 400 .8125rem var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s ease; }
.fx-seg button[aria-checked="true"] { color: var(--ink); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .fx-seg-ind { transition-duration: 1ms; } }
/* No tile is narrower than the signature in the e-mail – its GIF's frame (designs.js FRAME, 400 px) and the tile's 8 px
   on each side (gallery.js fitMini) – so a design is never shown smaller than it will be: as many columns as fit that,
   on a phone a list, one design a row, as wide as the screen (the owner, 2026-11-09). As low as the designs: the
   classic, 110 px with its margin, at its real size. */
.gl-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 416px), 1fr)); --gl-h: 124px; }

/* a tile: the design on white, its title under it */
.gl-tile { display: grid; grid-template-rows: auto auto; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.gl-stage { position: relative; display: grid; place-items: center; height: var(--gl-h); overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 .5px var(--hair-2), 0 10px 30px -24px rgba(0, 0, 0, .35); transition: box-shadow .2s ease, transform .2s var(--gl-ease); }
.gl-tile:hover .gl-stage { box-shadow: 0 0 0 1px var(--ink-3), 0 14px 34px -22px rgba(0, 0, 0, .35); transform: translateY(-2px); }
.gl-tile:active .gl-stage { transform: scale(.985); }
.gl-tile:focus-visible { outline: none; }
.gl-tile:focus-visible .gl-stage { box-shadow: 0 0 0 2px var(--focus, #0a66ff); }
.gl-tile[aria-current="true"] .gl-stage { box-shadow: 0 0 0 2px var(--ink); }
.gl-mini { width: 400px; display: grid; justify-items: center; pointer-events: none; } /* a GIF's frame (designs.js FRAME) */
.gl-mini > .live { padding: 10px; display: grid; justify-items: center; }
.gl-name { display: grid; min-width: 0; padding: 0 2px; }
.gl-name b { font-size: .875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-name small { font-size: .8125rem; line-height: 18px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-name small:empty { display: none; }

/* only what is in sight moves; with reduced motion nothing does (frame 0 of every design is the whole signature at rest) */
.gl-tile:not(.gl-run) .gl-mini *, .gl-tile:not(.gl-run) .gl-mini *::before, .gl-tile:not(.gl-run) .gl-mini *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  /* as specific as any preset's rule (fx.css: .fx-ring-draw > .fx-ring circle), which is !important too */
  .gl .gl-tile .gl-mini *, .gl .gl-tile .gl-mini *::before, .gl .gl-tile .gl-mini *::after { animation-play-state: paused !important; animation-delay: 0s !important; }
  .gl-stage { transition: none; }
}

/* a phone: the assistant's words on top */
@media (max-width: 899px) {
  .gl { padding: 20px 16px 28px; }
  .gl-head { margin-bottom: 20px; }
  .gl-title { font-size: 1.1875rem; }
  .gl-lead { font-size: .875rem; }
  .gl-say:not([hidden]) { display: block; margin-top: 8px; }
  .gl-say p::before { content: attr(data-say); }
  .gl-say p { margin: 0; padding: 10px 14px; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--surface, #fff); box-shadow: inset 0 0 0 .5px var(--hair-2); font-size: .9375rem; line-height: 22px; color: var(--ink); }
  .gl-label-all { margin-top: 28px; }
}
