/* Library in the homepage's system: same edge, surfaces, controls, cards and hover. Structure untouched. */
body.ds .lx { max-width: none; padding-inline: var(--ds-edge); padding-top: calc(96px + env(safe-area-inset-top)); }

/* banner */
body.ds .feat { border-radius: var(--ds-r-l); padding: 40px; margin-bottom: 32px; transition: scale var(--ds-slow) var(--ds-ease); }
body.ds .feat__h { font-size: clamp(40px, 5vw, 48px); line-height: 1; font-weight: 400; letter-spacing: -.04em; text-transform: none; }
body.ds .feat__k { font-weight: 400; }
body.ds .feat__go { height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 400; transition: transform var(--ds-base) var(--ds-ease), background-color var(--ds-fast) var(--ds-ease); }
body.ds .feat__m :is(img, video) { transition: transform 1.4s var(--ds-ease); }
@media (hover: hover) { body.ds .feat:hover .feat__m :is(img, video) { transform: scale(1.03); } body.ds .feat:hover .feat__go { transform: translateY(-2px); } }

/* bar: every control is the same 40px pill on the grey surface */
body.ds .lx__bar { gap: 8px; padding-bottom: 24px; }
body.ds :is(.lx__tog, .lx__q, .lx__sort, .kp__b, .more__b) {
  height: 40px; border-radius: 999px; background: var(--ds-surface); box-shadow: none; font-weight: 400; color: var(--ds-ink);
  transition: background-color var(--ds-fast) var(--ds-ease), color var(--ds-fast) var(--ds-ease), translate var(--ds-fast) var(--ds-ease);
}
body.ds .lx__sort select { font-weight: 400; }
body.ds :is(.lx__tog, .kp__b, .more__b):hover { background: var(--ds-hair); }
body.ds :is(.lx__q, .lx__sort):focus-within { box-shadow: inset 0 0 0 1.5px var(--ds-ink); }
body.ds .kp__b[aria-pressed="true"], body.ds .lx__tog.is-off { background: var(--ds-ink); color: var(--ds-paper); box-shadow: none; }
body.ds .kp__b[aria-pressed="true"] em { color: #ffffff99; }
body.ds .kp__b em { font-size: 14px; }
body.ds .lx__tog span, body.ds .fg__t, body.ds .fg summary, body.ds .side__tier button, body.ds .more__b, body.ds .side__clear { text-transform: capitalize; }
body.ds .side__clear { text-transform: none; }
body.ds .side__clear::first-letter, body.ds .more__b::first-letter { text-transform: uppercase; }

/* filters */
body.ds .lx__body { gap: 16px; grid-template-columns: 272px minmax(0, 1fr); }
body.ds .lx__body.is-folded { grid-template-columns: minmax(0, 1fr); }
body.ds .side { top: calc(88px + env(safe-area-inset-top)); padding: 8px; border-radius: var(--ds-r-l); background: var(--ds-surface); box-shadow: none; }
body.ds .fg { border-radius: var(--ds-r-m); background: var(--ds-paper); box-shadow: none; }
body.ds .fg summary, body.ds .fg__t { font-weight: 400; font-size: 16px; }
body.ds .side__tier { border-radius: 999px; padding: 4px; background: var(--ds-surface); }
body.ds .side__tier button { height: 32px; border-radius: 999px; font-size: 14px; }
body.ds .side__tier button[aria-checked="true"] { background: var(--ds-ink); color: var(--ds-paper); font-weight: 400; box-shadow: none; }
body.ds .fg__chips button { transition: background-color var(--ds-fast) var(--ds-ease), color var(--ds-fast) var(--ds-ease); }
body.ds .ann { border-radius: var(--ds-r-m); box-shadow: none; }
body.ds .ann__h { font-weight: 400; }

/* grid: the homepage's media card */
body.ds .grid { gap: 16px; }
body.ds .lx__n { font-size: 14px; }
body.ds .it__a {
  padding: 8px; border-radius: var(--ds-r-l); background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-hair);
  transition: translate var(--ds-base) var(--ds-ease), box-shadow var(--ds-base) var(--ds-ease); transform: none !important;
}
body.ds .it__media { border-radius: var(--ds-r-m); }
body.ds .it__media::after { box-shadow: none; }
body.ds .it__media :is(img, video) { transition: transform 1s var(--ds-ease), opacity .4s; }
body.ds .it__f { padding: 16px 16px 0; }
body.ds .it__t { font-size: 20px; font-weight: 400; letter-spacing: -.03em; }
body.ds .it__by { padding: 4px 16px 16px; font-size: 14px; color: var(--ds-ink-2); }
body.ds .tier { height: 24px; padding: 0 10px; border-radius: 999px; line-height: 24px; font-weight: 400; letter-spacing: .02em; }
body.ds .tier--pro { background: var(--ds-ink); color: var(--ds-paper); }
@media (hover: hover) {
  body.ds .it__a:hover { translate: 0 -6px; box-shadow: inset 0 0 0 1px var(--ds-hair), 0 32px 48px -32px #00000040; }
  body.ds .it__a:hover .it__media :is(img, video) { transform: scale(1.04); }
}
body.ds .more { padding-block: 48px 0; }
body.ds .dsc { border-radius: var(--ds-r-m); }
@media (max-width: 899px) { body.ds .lx__body { grid-template-columns: minmax(0, 1fr); } }
body.ds .lx__tog, body.ds .lx__tog.is-off { background: var(--ds-surface) !important; color: var(--ds-ink) !important; opacity: 1 !important; box-shadow: none !important; }
body.ds .lx__tog[aria-expanded="true"] { background: var(--ds-ink) !important; color: var(--ds-paper) !important; }
body.ds .dsc { background: var(--ds-surface) !important; box-shadow: none !important; color: var(--ds-ink); }
body.ds .dsc__go { border-radius: 999px; }
/* /tools/: the newest tool lives in the plate (SVG to 3D: the live logo on a dark stage, on the right) */
body.lb--tools .feat__3d { position: absolute; inset: 0; display: block; background: radial-gradient(70% 90% at 72% 45%, #24252b 0%, #0b0b0d 70%); }
body.lb--tools .feat__3d > [data-svg3d] { position: absolute; top: 0; bottom: 0; right: 0; width: 60%; }
@media (max-width: 899px) { body.lb--tools .feat__3d > [data-svg3d] { top: 0; bottom: auto; right: -4%; width: 62%; height: 58%; } }
