/* A stable filter panel: named slots instead of controls appended after variable chip text. */
body #library-load-status.hidden { display:none!important; }
.section-emblem { background-image:url('/web/art/watcher-headers-transparent-20261027.png')!important; }
#shell .index2>.genre-row>.gchips { display:grid!important; grid-template-columns:repeat(6,minmax(0,1fr)); grid-auto-rows:28px; gap:4px!important; height:calc(var(--genre-rows,2)*32px - 4px); overflow:hidden; padding:0!important; margin:0!important; }
#shell .index2 .gchips>.gchip { display:flex!important; align-items:center; justify-content:center; gap:5px; min-width:0; width:100%; height:28px!important; min-height:28px!important; padding:3px 6px!important; font:600 10px/1 var(--ui)!important; box-sizing:border-box; }
.gchips>.gchip>b { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:inherit; }
.gchips>.gchip>span { flex:none; font-size:9px; }
#shell .index2>.genre-row>.ph-row { display:flex!important; align-items:center; justify-content:space-between; min-height:18px; gap:10px; margin-bottom:6px!important; }
.filter-summary { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#32594e; font:600 11px/1.3 var(--ui); }
#shell .index2 .genre-tail { display:grid!important; grid-template-columns:140px 140px 44px minmax(0,1fr); gap:6px; align-items:center; width:100%; margin-top:8px; }
#shell .genre-tail>.gmore { width:100%!important; min-width:0!important; max-width:none; margin:0!important; height:30px!important; }
#shell .genre-tail>.subchips { position:relative!important; inset:auto!important; display:block!important; width:100%!important; height:30px!important; margin:0!important; padding:0!important; transform:none!important; }
.genre-tail .sub-l { display:block!important; padding:0!important; margin:0!important; width:100%; height:100%; }
.genre-tail select,.mobile-filterbar>label select { appearance:none; cursor:pointer; min-width:0; width:100%; box-sizing:border-box; border:2px solid #16241d; border-radius:0; font:700 11px var(--ui); padding:5px 24px 5px 8px; background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%); background-position:calc(100% - 13px) 50%,calc(100% - 9px) 50%; background-size:4px 4px; background-repeat:no-repeat; }
#shell .genre-tail .gmore select { height:30px!important; background-color:#fa692b!important; color:#151d17!important; padding-right:22px!important; }
#shell .genre-tail .sub-l select { height:30px!important; background-color:#d1e8e1!important; color:#173b32!important; box-shadow:inset 3px 0 #439d8a; }
.genre-tail .subchips.unavailable select { color:#637c73!important; box-shadow:none!important; }
.genre-tail select:disabled { cursor:default; opacity:.65; }
.genre-tail .gclear { height:30px; min-width:0; padding:4px; font:700 9px var(--ui); background:#19281f; color:#f8efd6; border:1px solid #304439; }
.genre-tail .gclear:disabled { opacity:.4; cursor:default; }
#shell .genre-tail>.sortwrap { display:flex!important; position:static!important; flex-wrap:nowrap; justify-content:flex-end; gap:4px!important; min-width:0; margin:0!important; }
#shell .genre-tail .sortwrap .sortbtn { flex:1 1 100px; min-width:70px; max-width:160px!important; overflow:hidden; white-space:nowrap; }
.genre-tail .guess-help { display:none; position:absolute; top:calc(100% + 6px); right:0; width:230px; padding:8px; background:#16342c; color:#e7f4dd; font:12px/1.4 var(--ui); z-index:25; pointer-events:none; box-shadow:3px 3px #11231d55; }
.genre-tail .subchips:hover .guess-help,.genre-tail .subchips:focus-within .guess-help { display:block; }
.rbubble.filter-result { max-width:min(340px,calc(100vw - 24px)); white-space:pre-line; background:#17342a; color:#fff3cf; border-color:#ff8b42; font:700 14px/1.5 var(--ui); letter-spacing:0; pointer-events:none; }
.bg-loading { display:flex; align-items:center; gap:10px; min-height:68px; padding:12px; background:#e6ecdd; border:1px dashed #748d76; color:#1b3c2e; font:12px/1.5 var(--ui); }
.bg-loading>i { width:32px; height:26px; flex:none; background:repeating-linear-gradient(90deg,#d85624 0 4px,transparent 4px 7px); animation:genre-signal 1s ease-in-out infinite alternate; }
.bg-loading b,.bg-loading span { display:block; }
@keyframes genre-signal { from{clip-path:inset(15% 0 55%)}to{clip-path:inset(45% 0 5%)} }
#blend-genres[aria-busy="true"] { opacity:.8; }
.npc-anchor { position:relative; display:flex; align-items:center; justify-content:flex-end; min-width:52px; min-height:34px; margin-left:auto; }
.npc-anchor>.npc { position:relative!important; inset:auto!important; margin:0!important; transform:none!important; translate:none!important; width:42px!important; height:34px!important; flex:none; }
.npc-anchor>.npc canvas { width:34px!important; height:34px!important; }
.npc-anchor:empty { display:none; }
body #landing .ld-desc,body #curtain .su-hello { font:600 14px/1.45 var(--ui)!important; letter-spacing:.01em; color:#f6edcf!important; text-transform:none; max-width:min(600px,90vw); margin-left:auto; margin-right:auto; overflow-wrap:anywhere; }
body #curtain .su-hello { color:#9cf0e4!important; min-height:22px; }
@media(max-width:1200px) and (min-width:761px) {
 #shell .index2>.genre-row>.gchips { grid-template-columns:repeat(4,minmax(0,1fr)); height:calc(var(--genre-rows-compact,3)*32px - 4px); }
 #shell .index2 .genre-tail { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px; }
 #shell .genre-tail>.sortwrap { grid-column:1/-1; }
}
@media(max-width:760px) {
 #shell .index2>.genre-row { display:none!important; }
 #shell .index2>.mobile-filterbar { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px!important; align-items:end; }
 #shell .index2>.mobile-filterbar>label,#shell .index2>.mobile-filterbar>label:first-child { display:grid!important; grid-column:auto!important; gap:3px!important; min-width:0; max-width:none; font:700 9px var(--ui)!important; letter-spacing:.06em; }
 #shell .mobile-filterbar>label select { display:block!important; height:34px!important; background-color:#f2e6c8!important; color:#16241d!important; border-left:5px solid var(--selected-genre,#43a69e)!important; font:700 12px var(--ui)!important; }
 #shell .mobile-filterbar>.sortwrap { grid-column:1/-1; width:100%; display:flex!important; flex-wrap:wrap; gap:5px!important; min-width:0; }
 #shell .mobile-filterbar .sortwrap>button { min-height:30px!important; height:30px!important; }
 #shell .mobile-filterbar .sortbtn { flex:1 1 130px; min-width:110px; }
 #shell .mobile-filterbar>.npc-anchor { display:none!important; }
 .npc-anchor { min-width:34px; min-height:28px; }
 .npc-anchor>.npc { width:32px!important; height:28px!important; }
 .npc-anchor>.npc canvas { width:28px!important; height:28px!important; }
}
@media(prefers-reduced-motion:reduce) { .bg-loading>i { animation:none; } }
