/* round 19: folders with 3 + 3 logos and 3 + 3 names; app update bar */
.fd9-row.g19 { padding-top: 44px; margin-top: -10px; }
.fd9w.g19 { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; -webkit-tap-highlight-color: transparent; }
.fd9w.g19 .fd9 { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.fd9-row.g19:not(.glow) .fd9w.g19 .fd9-back { box-shadow: 0 2px 6px rgba(0, 0, 0, .10); }   /* no light glow spreading under the folder */
.fd9w.g19 .fd9-ls { position: absolute; inset: auto 4% calc(100% - 46px) 4%; z-index: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; justify-items: center; pointer-events: none; }
.fd9w.g19 .fd9-ls.n1 { grid-template-columns: 1fr; }
.fd9w.g19 .fd9-ls.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fd9w.g19 .fd9-l { position: relative; left: auto; top: auto; margin: 0; width: 30px; height: 30px; opacity: 0; transform: translateY(26px) scale(.4) rotate(calc((var(--i) - 2.5) * 8deg));
  transition: transform .42s cubic-bezier(.2, 1.3, .3, 1), opacity .2s ease; transition-delay: calc(var(--i) * 35ms); }
.fd9w.g19 .fd9:hover .fd9-l, .fd9w.g19 .fd9:focus-visible .fd9-l, .fd9w.g19.press .fd9-l, .fd9w.g19.up .fd9-l { opacity: 1; transform: none; }
.fd9w.g19.up .fd9-ls { pointer-events: auto; }
.fd9w.g19 .fd9:hover .fd9-ls { pointer-events: auto; }
.fd9w.g19 .fd9 .fd9-l:hover, .fd9w.g19 .fd9-l.on { transform: translateY(-2px) scale(1.1); z-index: 3; }
.fd9w.g19 .fd9-l.on .lg9 { box-shadow: 0 0 0 2px var(--c, var(--brand)); }
.fd9w.g19 .fd9-l::after { display: none !important; content: none; }
.fd9w.g19 .fd9-front small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd9w.g19 .fd9-tags { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: none; max-height: none; overflow: visible; }
.fd9w.g19 .fd9-tag, .fd9w.g19 .fd9-tag:nth-child(n+3) { display: inline-block !important; max-width: 100%; font-size: 11px; line-height: 1.3; padding: 2px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd9w.g19 .fd9-tag[hidden] { display: none !important; }
.fd9w.g19 .fd9-more { align-self: center; border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; cursor: pointer; min-height: 30px; }
.fd9w.g19 .fd9-more[hidden] { display: none; }
.fd9w.g19 .fd9-more:hover, .fd9w.g19 .fd9-more:focus-visible { border-color: var(--c, var(--brand)); }
@media (min-width: 700px) {
  .fd9-row.g19 { padding-top: 60px; margin-top: -16px; }
  .fd9w.g19 .fd9-ls { inset: auto 4% calc(100% - 58px) 4%; }
  .fd9w.g19 .fd9-l { width: 38px; height: 38px; }
  .fd9w.g19 .fd9-tag { font-size: 12px; }
}
#up19 { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 120; display: flex; align-items: center; gap: 8px;
  width: min(560px, calc(100% - 20px)); padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--card, #fff); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 14px; }
#up19 span { flex: 1; min-width: 0; }
@media (min-width: 900px) { #up19 { bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .fd9w.g19 .fd9-l { transition: opacity .15s; transform: none; } }

/* preview choices: logos always shown above the folder, short names in 2 rows of 3 */
.fd9-row.g19.l-always { padding-top: 70px; margin-top: -16px; }
.fd9-row.g19.l-always .fd9-l { opacity: 1; transform: none; }
.fd9-row.g19.l-always .fd9-ls { pointer-events: auto; }
.fd9-row.g19.n-short .fd9w.g19 .fd9-tags { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fd9-row.g19.n-short .fd9w.g19 .fd9-tag { text-align: center; }
@media (min-width: 700px) { .fd9-row.g19.l-always { padding-top: 86px; margin-top: -22px; } }

/* the first look (fan): 4 logos tucked in the folder fan out on tap, hold or mouse over */
.fd9-row.g19.fan { padding-top: 54px; margin-top: -14px; }
.fd9w.g19 .fd9-ls.fan { inset: 0; display: block; z-index: 1; pointer-events: none; }
.fd9w.g19 .fd9-ls.fan .fd9-l { position: absolute; left: 50%; top: 22%; width: 34px; height: 34px; margin: 0 0 0 -17px; opacity: 1;
  transform: translate(calc(var(--a) * 8px), 6px) rotate(calc(var(--a) * 6deg)); transition: transform .42s cubic-bezier(.2, .9, .2, 1.15); transition-delay: calc(var(--i) * 35ms); }
.fd9w.g19 .fd9:hover .fd9-ls.fan .fd9-l, .fd9w.g19 .fd9:focus-visible .fd9-ls.fan .fd9-l, .fd9w.g19.press .fd9-ls.fan .fd9-l, .fd9w.g19.tap .fd9-ls.fan .fd9-l, .fd9w.g19.up .fd9-ls.fan .fd9-l {
  transform: translate(calc(var(--a) * 26px), -46px) rotate(calc(var(--a) * 12deg)); }
.fd9w.g19.up .fd9-ls.fan, .fd9w.g19 .fd9:hover .fd9-ls.fan { pointer-events: auto; }
.fd9w.g19 .fd9-ls.fan .fd9-l.on { transform: translate(calc(var(--a) * 26px), -54px) rotate(0) scale(1.12); z-index: 5; }
@media (min-width: 700px) {
  .fd9-row.g19.fan { padding-top: 70px; margin-top: -20px; }
  .fd9w.g19 .fd9-ls.fan .fd9-l { width: 44px; height: 44px; margin-left: -22px; top: 24%; }
  .fd9w.g19 .fd9:hover .fd9-ls.fan .fd9-l, .fd9w.g19.up .fd9-ls.fan .fd9-l { transform: translate(calc(var(--a) * 44px), -62px) rotate(calc(var(--a) * 13deg)); }
}
/* full tool names as plain text, 2 lines, never cut in the middle */
.fd9w.g19 .fd9-tags { column-gap: 0; row-gap: 2px; }
.fd9w.g19 .fd9-tag, .fd9w.g19 .fd9-tag:nth-child(n+3) { background: none !important; border: 0 !important; padding: 0 !important; font-size: 11px; font-weight: 600; color: var(--ink-2, var(--ink)); overflow: visible; text-overflow: clip; }
.fd9w.g19 .fd9-tag:not(:last-child):not([hidden])::after { content: '·'; margin: 0 5px; opacity: .45; font-weight: 400; }
.fd9w.g19 .fd9-tag.endv::after { content: none !important; }
/* folders never get too small to read: at least 132 px wide, the row scrolls sideways (like the first version) */
@media (min-width: 700px) { .fd9-row.g19 { grid-auto-columns: max(132px, calc((100% - 4 * 14px) / 5)); } }
@media (min-width: 900px) { .fd9-row.g19 { grid-auto-columns: max(132px, calc((100% - 5 * 14px) / 6)); } }
/* room at both ends so the first and last folder's logos are not cut when they fan out */
.fd9-row.g19.fan { padding-left: 28px; padding-right: 28px; scroll-padding-left: 28px; }
@media (min-width: 700px) { .fd9-row.g19.fan { padding-left: 44px; padding-right: 44px; scroll-padding-left: 44px; } }

/* tool names under the folder: one text, at most 2 lines, then "…"; "+ Show more" opens the folder */
.fd9w.g19 .fd9-names { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-align: center;
  font-size: 11px; line-height: 1.35; font-weight: 600; color: var(--ink-2, var(--ink)); margin-top: 2px; }
.fd9w.g19 .fd9-more.fd9-sm { min-height: 28px; padding: 3px 12px; font-size: 12px; }
@media (min-width: 700px) { .fd9w.g19 .fd9-names { font-size: 12px; } }
