/* Filters: a tab hanging off the left edge that opens a drawer */
.sf-tab{position:fixed;z-index:9970;left:0;top:42%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 9px;border:0;border-radius:0 14px 14px 0;background:#1f1a17;color:#fff;font:inherit;font-weight:700;font-size:.85rem;cursor:pointer;box-shadow:4px 6px 20px rgba(40,25,10,.25);transition:padding .15s,background .15s}
.sf-tab:hover{padding-left:13px;background:#34291f}
.sf-tab:focus-visible{outline:3px solid #8fd13f;outline-offset:2px}
.sf-tab span{writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:.06em}
.sf-tab.active{background:#2f4a0a}
.sf-tab .sf-badge{display:grid;place-items:center;min-width:20px;height:20px;border-radius:99px;background:#b4dc3d;color:#17210a;font-size:.72rem}
.sf-tab .sf-badge[hidden]{display:none}
.sf-tab.open{opacity:0;pointer-events:none}
.sf-backdrop{position:fixed;inset:0;z-index:9984;background:rgba(20,12,4,.38)}
.sf-backdrop[hidden]{display:none}
.sf-drawer{position:fixed;z-index:9985;left:16px;top:calc(76px + var(--wp-admin--admin-bar--height,0px));width:330px;max-width:calc(100vw - 32px);transform:translateX(calc(-100% - 40px));opacity:0;visibility:hidden;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s,visibility 0s .28s}
.sf-drawer.open{transform:none;opacity:1;visibility:visible;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s,visibility 0s}
.sf-card{position:relative;max-height:calc(100vh - 100px - var(--wp-admin--admin-bar--height,0px));overflow:auto;background:#fff;border:1px solid #eadfd3;border-radius:18px;padding:22px;box-shadow:0 18px 50px rgba(40,25,10,.22)}
.sf-card h3{margin:0 0 14px;font-size:1rem;font-weight:600;color:#4b443f;padding-right:34px}
.sf-card h4{margin:0 0 8px;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:#8a7f75;font-weight:700}
.sf-card section{padding:14px 0;border-top:1px solid #f0e8de}
.sf-x{position:absolute;top:10px;right:12px;width:32px;height:32px;padding:0;border:0;background:none;font-size:1.6rem;line-height:1;color:#8a7f75;cursor:pointer;border-radius:8px}
.sf-x:hover{background:#f6efe6;color:#1f1a17}
.sf-seg{display:grid;grid-template-columns:repeat(3,1fr);background:#f4eee6;border-radius:10px;padding:3px;gap:3px}
.sf-seg label{cursor:pointer}
.sf-seg input{position:absolute;opacity:0;pointer-events:none}
.sf-seg span{display:block;text-align:center;padding:8px 4px;border-radius:8px;font-size:.85rem;font-weight:600;color:#6b625b;transition:background .15s}
.sf-seg input:checked+span{background:#fff;color:#1f1a17;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.sf-seg input:focus-visible+span{outline:3px solid #8fd13f}
.sf-chk{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:.92rem;cursor:pointer}
.sf-chk input{width:18px;height:18px;accent-color:#5aa10f}
.sf-chk .sw{display:inline-block;width:16px;height:16px;border-radius:4px;border:1px solid rgba(0,0,0,.12)}
.sf-chk .sw.av{background:#e9e2d8}.sf-chk .sw.pr{background:#d9a93a}
.sf-help{margin:0 0 10px;font-size:.82rem;color:#8a7f75;line-height:1.4}
.sf-size{display:flex;align-items:center;gap:8px}
.sf-size input{width:64px;padding:9px 8px;border:1px solid #cfc4b8;border-radius:10px;font:inherit;text-align:center}
.sf-size span{color:#8a7f75}
.sf-size .sf-find{margin-left:auto;padding:10px 18px;border:0;border-radius:10px;background:#1f1a17;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.sf-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.sf-presets button{padding:5px 10px;border:1px solid #d8cdc0;background:#fff;border-radius:99px;font:inherit;font-size:.8rem;cursor:pointer}
.sf-presets button:hover{background:#f6efe6}
.sf-result{margin-top:12px;padding:12px;background:#f4faea;border:1px solid #cfe6a8;border-radius:12px}
.sf-result[hidden]{display:none}
.sf-count{margin:0 0 10px;font-size:.85rem;font-weight:600;color:#2f4a0a}
.sf-btns{display:flex;gap:8px}.sf-btns[hidden]{display:none}
.sf-btns button{flex:1;padding:9px 6px;border-radius:10px;font:inherit;font-weight:700;font-size:.82rem;cursor:pointer;border:1px solid #cfc4b8;background:#fff}
.sf-btns .sf-pick{background:#b4dc3d;border-color:#b4dc3d;color:#17210a}
.sf-summary{margin:0;padding:10px 0 0;border-top:1px solid #f0e8de;font-size:.82rem;color:#6b625b;text-align:center;min-height:1.2em}
.sf-reset{display:block;width:100%;margin-top:10px;padding:11px;border:1px solid #d8cdc0;background:#fff;border-radius:12px;font:inherit;font-weight:600;cursor:pointer}
.sf-reset:hover{background:#f6efe6}
@media(max-width:980px){
  .sf-tab{top:34%;padding:12px 7px;font-size:.78rem}
  .sf-drawer{left:0;top:0;bottom:0;width:min(330px,88vw);max-width:none;padding-top:var(--wp-admin--admin-bar--height,0px)}
  .sf-card{height:100%;max-height:none;border-radius:0 18px 18px 0}
}
@media(prefers-reduced-motion:reduce){.sf-drawer,.sf-tab{transition:none}}
