/* The sentence filter: "Show me [blank] for [blank]." with small paper dropdowns, the count bar, switch, layout toggle, show-more. Shared by the finder and the hubs. Accent comes from --mm-accent on the container. */
/* the sentence */
.fd-s{margin:0;font-family:var(--serif);font-weight:600;font-size:clamp(22px,2.2vw,30px);line-height:1.6;font-variation-settings:"opsz" 72;color:var(--ink);letter-spacing:-.01em}
.fd-u{white-space:nowrap}
.fd-sel{display:inline-block;position:relative;margin:0 .04em;vertical-align:baseline;max-width:100%}
.fd-sel-b{all:unset;cursor:pointer;display:inline-block;position:relative;color:var(--mm-accent);font-style:italic;font-weight:700;line-height:1.2;padding:0 1em .04em .1em;border-bottom:2px dashed color-mix(in srgb,var(--mm-accent) 55%,transparent);max-width:100%;white-space:nowrap;transition:color .16s,border-color .16s}
.fd-sel-b::after{content:"";position:absolute;right:.3em;top:50%;width:.3em;height:.3em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-72%) rotate(45deg);transition:transform .16s}
.fd-sel-b:hover{border-color:var(--mm-accent)}
.fd-sel-b[aria-expanded=true]{border-bottom-style:solid}
.fd-sel-b[aria-expanded=true]::after{transform:translateY(-30%) rotate(225deg)}
.fd-sel-b:focus-visible{outline:2px solid var(--aqua);outline-offset:4px;border-radius:4px}
/* the dropdown: a small sans list on paper, always below its word, never the browser's native popup */
.fd-menu{position:absolute;left:-.1em;top:calc(100% + 6px);z-index:40;min-width:max(100%,200px);max-width:min(92vw,280px);margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--rule);border-radius:12px;box-shadow:0 16px 36px -10px rgba(7,62,73,.28),0 1px 4px rgba(7,62,73,.08);font:500 14px/1.3 var(--sans);font-variation-settings:normal;letter-spacing:0;font-style:normal;color:var(--ink);transform-origin:top left;animation:fd-pop .14s var(--ease) both}
.fd-menu[hidden]{display:none}
@keyframes fd-pop{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
.fd-menu li{display:block;padding:8px 12px 8px 30px;border-radius:8px;cursor:pointer;position:relative;white-space:nowrap;transition:background .12s}
.fd-menu li:hover,.fd-menu li:focus{background:var(--paper-deep);outline:0}
.fd-menu li[aria-selected=true]{color:var(--mm-accent);font-weight:700}
.fd-menu li[aria-selected=true]::before{content:"";position:absolute;left:12px;top:50%;width:8px;height:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(-45deg)}
.fd-menu li:focus-visible{box-shadow:inset 0 0 0 2px var(--aqua)}
/* the bar under the sentence */
.fd-bar{display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap;margin-top:20px;padding-top:16px;border-top:1px solid var(--rule);font-size:14px;min-height:44px}
.fd-count{display:inline-flex;align-items:baseline;gap:6px;color:var(--ink-soft)}
.fd-count b{font-family:var(--serif);font-size:26px;line-height:1;font-weight:800;color:var(--ink);font-variation-settings:"opsz" 36;font-variant-numeric:tabular-nums}
.fd-sub{color:var(--ink-soft)}
.fd-sub b{color:var(--ink)}
.fd-sub[hidden]{display:none}
.fd-reset,.fd-reset2,.fd-more{all:unset;cursor:pointer;font-weight:700;color:var(--mm-accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.fd-reset:hover,.fd-reset2:hover,.fd-more:hover{color:var(--ink)}
.fd-reset[hidden],.fd-more[hidden]{display:none}
.fd-right{margin-left:auto;display:flex;align-items:center;gap:20px}
.fd-view{display:inline-flex;padding:2px;border:1px solid var(--rule);border-radius:10px;background:#fff}
.fd-vb{all:unset;cursor:pointer;display:grid;place-items:center;width:32px;height:28px;border-radius:8px;color:var(--ink-mute);transition:background .16s,color .16s}
.fd-vb svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.fd-vb:hover{color:var(--ink)}
.fd-vb.on{background:var(--ink);color:#fff}
.fd-vb:focus-visible{outline:2px solid var(--aqua);outline-offset:1px}
.fd-go{min-height:40px;padding:0 16px;gap:8px;font-size:14.5px}
.fd-go svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;transition:transform .16s}
.fd-go:hover svg{transform:translateX(2px)}
.fd-switch{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-weight:600;color:var(--ink-soft);user-select:none}
.fd-switch[hidden]{display:none}
.fd-switch input{position:absolute;opacity:0;width:0;height:0}
.fd-switch i{position:relative;width:32px;height:18px;border-radius:999px;background:var(--rule);transition:background .16s}
.fd-switch i::after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(7,62,73,.3);transition:transform .16s}
.fd-switch input:checked+i{background:var(--mm-accent)}
.fd-switch input:checked+i::after{transform:translateX(14px)}
.fd-switch input:focus-visible+i{outline:2px solid var(--aqua);outline-offset:2px}
.fd-foot{display:flex;justify-content:center;margin-top:20px}
.fd-foot .fd-more{all:revert;appearance:none;-webkit-appearance:none;font:inherit;text-decoration:none;cursor:pointer;min-height:40px;padding:0 18px;border-radius:999px;border:1px solid var(--rule);background:#fff;color:var(--ink);font-weight:700;font-size:14.5px;transition:border-color .16s,background .16s}
.fd-foot .fd-more:hover{border-color:var(--ink)}
.fd-foot .fd-more[hidden]{display:none}
.fd-empty{margin:16px 0 4px;color:var(--ink-soft);font-size:15px}
.fd-empty[hidden]{display:none}
.fd-x[hidden]{display:none}
@media (max-width:760px){
 .fd-s{font-size:clamp(20px,5.6vw,23px);line-height:1.6}
 .fd-bar{gap:8px 14px}
 .fd-right{display:contents}
 .fd-view{margin-left:auto;order:1}
 .fd-vb{height:34px;width:36px}
 .fd-sub,.fd-switch{order:2;flex-basis:100%}
 .fd-reset{order:2}
 .fd-go{order:3;flex:1 1 100%;justify-content:center;margin-top:4px}
 .fd-right{flex-direction:row;flex-wrap:wrap;justify-content:space-between}
 .fd-menu{max-width:calc(100vw - 48px)}
}
@media (prefers-reduced-motion:reduce){.fd-menu{animation:none}}
