/* One compact home book filter rail; original buttons and handlers are retained. */
body.preview-v55.category-controls-v56 #app #main #buecher .category56-home-rail{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;
 grid-template-columns:none!important;grid-template-rows:none!important;grid-auto-flow:initial!important;
 gap:7px!important;width:100%!important;min-width:0!important;max-width:100%!important;
 height:58px!important;min-height:58px!important;max-height:60px!important;margin:6px 0 10px!important;padding:4px 1px 6px!important;
 overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain!important;scroll-snap-type:x proximity!important;
 scrollbar-width:thin!important;scrollbar-color:#b89bd1 #2a193f!important;box-sizing:border-box!important;
}
body.preview-v55.category-controls-v56 #app #main #buecher .category56-home-rail>[data-home-filter]{
 display:inline-flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
 gap:6px!important;width:auto!important;min-width:0!important;max-width:none!important;height:44px!important;min-height:44px!important;max-height:none!important;
 margin:0!important;padding:8px 11px!important;box-sizing:border-box!important;scroll-snap-align:start!important;
 border:1px solid #a68bbb!important;border-radius:7px!important;background:#f7f2fc!important;color:#342244!important;
 font-size:12px!important;font-weight:650!important;line-height:1.3!important;white-space:nowrap!important;text-align:center!important;box-shadow:none!important;text-shadow:none!important;
}
body.preview-v55.category-controls-v56 #app #main #buecher .category56-home-rail>[data-home-filter]:is(:hover,:focus-visible,:active){background:#e6d9f1!important;color:#29183c!important;border-color:#8766a6!important}
body.preview-v55.category-controls-v56 #app #main #buecher .category56-home-rail>[data-home-filter].active{background:#4b2a83!important;color:#ffffff!important;border-color:#82dce3!important;box-shadow:inset 0 -2px #82dce3!important}
body.preview-v55.category-controls-v56 #app #main #buecher .category56-home-rail>[data-home-filter]:focus-visible{outline:2px solid #16869a!important;outline-offset:1px!important}
body.preview-v55.category-controls-v56 #app #main #buecher .category56-home-icon{display:block!important;width:22px!important;height:22px!important;min-width:22px!important;flex:0 0 22px!important;margin:0!important;padding:0!important;object-fit:contain!important;color:inherit!important;pointer-events:none!important}
body.preview-v55.category-controls-v56 #app #main #buecher [data-home-filter].active>img.category56-home-icon{background:#ffffff!important;padding:2px!important;border-radius:4px!important}
body.preview-v55.category-controls-v56 #app #main #buecher .category56-home-rail::-webkit-scrollbar{height:4px}
body.preview-v55.category-controls-v56 #app #main #buecher .category56-home-rail::-webkit-scrollbar-thumb{background:#b89bd1;border-radius:3px}
/* Paired opaque colors prevent inherited light text on legacy white menu pills. */
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu:not(.open){display:none!important;visibility:hidden!important;pointer-events:none!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu.open{
 display:block!important;visibility:visible!important;pointer-events:auto!important;
 position:absolute!important;inset:100% auto auto 50%!important;transform:translateX(-50%)!important;
 width:min(760px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;
 max-height:min(70dvh,570px)!important;height:auto!important;min-height:0!important;
 overflow:auto!important;overscroll-behavior:contain!important;
 padding:10px!important;margin:0!important;box-sizing:border-box!important;
 background:#251a35!important;color:#f8f1ff!important;
 border:1px solid #9076aa!important;border-radius:0 0 11px 11px!important;box-shadow:0 12px 28px #10091c66!important;
 z-index:60!important;
}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu>.container{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important;
 gap:6px!important;width:100%!important;max-width:none!important;min-width:0!important;
 max-height:none!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;box-sizing:border-box!important;
}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a{
 display:grid!important;grid-template-columns:26px minmax(0,1fr) 22px!important;grid-template-rows:auto!important;
 align-items:center!important;gap:7px!important;min-width:0!important;min-height:46px!important;height:auto!important;
 margin:0!important;padding:7px 9px!important;box-sizing:border-box!important;
 border:1px solid #cdbcdc!important;border-radius:6px!important;
 background:#f7f2fc!important;color:#342244!important;
 font-size:13px!important;line-height:1.35!important;font-weight:650!important;text-align:left!important;text-decoration:none!important;
 text-shadow:none!important;box-shadow:none!important;white-space:normal!important;
}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a:is(:hover,:focus-visible,:active){background:#e6d9f1!important;color:#29183c!important;border-color:#8766a6!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a.category56-selected{background:#4b2a83!important;color:#ffffff!important;border-color:#82dce3!important;box-shadow:inset 3px 0 #82dce3!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a.category56-all{grid-column:1/-1!important;grid-template-columns:26px minmax(0,1fr)!important;margin-right:50px!important;min-height:44px!important;background:#362445!important;color:#f8f1ff!important;border-color:#9076aa!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a.category56-all:is(:hover,:focus-visible,:active){background:#4c345f!important;color:#ffffff!important;border-color:#dac3ee!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a>.category56-label{grid-column:2!important;grid-row:1!important;display:block!important;min-width:0!important;margin:0!important;padding:0!important;color:inherit!important;background:none!important;border:0!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a>.category56-count{grid-column:3!important;grid-row:1!important;display:grid!important;place-items:center!important;width:22px!important;min-width:22px!important;height:22px!important;margin:0!important;padding:0!important;box-sizing:border-box!important;border:0!important;border-radius:4px!important;background:#e6d9f1!important;color:#422b58!important;font-size:11px!important;font-weight:750!important;line-height:1!important;font-variant-numeric:tabular-nums!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a.category56-selected>.category56-count{background:#eee4f6!important;color:#392152!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a>:is(img,svg){grid-column:1!important;grid-row:1!important;display:block!important;width:26px!important;height:26px!important;min-width:26px!important;margin:0!important;padding:2px!important;box-sizing:border-box!important;object-fit:contain!important;background:#ffffff!important;border-radius:4px!important;color:#533470!important;stroke:currentColor!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu .category56-close{position:absolute!important;top:10px!important;right:10px!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:11px!important;box-sizing:border-box!important;border:1px solid #9076aa!important;border-radius:6px!important;background:#362445!important;color:#f8f1ff!important;cursor:pointer!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu .category56-close svg{width:21px!important;height:21px!important;stroke:currentColor!important}
body.preview-v55.category-controls-v56 #app .nav-bar #world-menu :is(a,button):focus-visible{outline:3px solid #16869a!important;outline-offset:1px!important}
@media(max-width:760px){
 body.preview-v55.category-controls-v56 #app .nav-bar #world-menu.open{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;padding:9px!important;max-height:65dvh!important}
 body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a{grid-template-columns:24px minmax(0,1fr) 20px!important;min-height:48px!important;padding:6px!important;gap:5px!important;font-size:11.5px!important}
 body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a.category56-all{grid-template-columns:24px minmax(0,1fr)!important;min-height:44px!important;margin-right:49px!important;font-size:12px!important}
 body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a>:is(img,svg){width:24px!important;height:24px!important;min-width:24px!important}
 body.preview-v55.category-controls-v56 #app .nav-bar #world-menu a>.category56-count{width:20px!important;min-width:20px!important;height:21px!important;font-size:10px!important}
 body.preview-v55.category-controls-v56 #app .nav-bar #world-menu .category56-close{top:9px!important;right:9px!important}
}
/* The existing drawer remains the main phone/fold filter. Desktop sidebar rules are untouched. */
@media(max-width:1179px){
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55:not([open]){display:none!important;visibility:hidden!important;pointer-events:none!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55[open]{background:#f7f2fc!important;color:#342244!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important;column-gap:6px!important;row-gap:0!important;
 }
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters>:not([data-world-filter]){grid-column:1/-1!important;min-width:0!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters .shop-worlds-v46{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;
  gap:6px!important;width:100%!important;margin:0!important;padding:0!important;overflow:visible!important;
 }
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters [data-world-filter]{
  display:grid!important;grid-template-columns:24px minmax(0,1fr) 20px!important;grid-template-rows:auto!important;grid-column:auto!important;grid-row:auto!important;
  align-items:center!important;gap:5px!important;min-width:0!important;width:100%!important;max-width:none!important;
  min-height:48px!important;height:auto!important;max-height:none!important;margin:3px 0!important;padding:6px!important;box-sizing:border-box!important;
  border:1px solid #cdbcdc!important;border-radius:6px!important;background:#ffffff!important;color:#352044!important;
  font-size:12px!important;font-weight:650!important;line-height:1.35!important;white-space:normal!important;text-align:left!important;
 }
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters [data-world-filter=alle]{grid-column:1/-1!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters [data-world-filter]:is(:hover,:focus-visible,:active){background:#e6d9f1!important;color:#29183c!important;border-color:#8766a6!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters [data-world-filter].active{background:#4b2a83!important;color:#ffffff!important;border-color:#16869a!important;box-shadow:inset 3px 0 #82dce3!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters [data-world-filter].active>img{background:#ffffff!important;padding:2px!important;border-radius:4px!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters [data-world-filter]>.filter-label-v47{display:block!important;grid-column:2!important;grid-row:1!important;min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:inherit!important;font-size:12px!important;line-height:1.35!important;white-space:normal!important;text-align:left!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters [data-world-filter]>:is(img,svg){display:block!important;grid-column:1!important;grid-row:1!important;width:24px!important;height:24px!important;min-width:24px!important;margin:0!important;padding:0!important;object-fit:contain!important;color:inherit!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters [data-world-filter]>:is(.filter-count-v47,small,span:last-child:not(.filter-label-v47)){display:grid!important;place-items:center!important;grid-column:3!important;grid-row:1!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:21px!important;min-height:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;border:0!important;border-radius:4px!important;background:#e6d9f1!important;color:#422b58!important;font-size:10px!important;line-height:1!important;font-weight:750!important;font-variant-numeric:tabular-nums!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters [data-world-filter].active>:is(.filter-count-v47,small,span:last-child:not(.filter-label-v47)){background:#eee4f6!important;color:#392152!important}
 body.preview-v55.category-controls-v56.view-buecher #app #main .shop-drawer-v55 #filters [data-world-filter]:focus-visible{outline:3px solid #16869a!important;outline-offset:1px!important}
}
