/* Extracted from views/widgets/model-filters.ejs (2026-12-02) */
  .mf-bar{
    background:#fff;
    border:1px solid rgba(0,0,0,.10);
    border-radius:20px;
    padding:14px 18px;
    margin:0 0 18px;
  }
  .mf-header{
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:12px;
  }
  .mf-header__title{
    font-weight:800; font-size:15px; color:#111;
    display:inline-flex; align-items:center; gap:8px;
  }
  .mf-header__title svg{ flex-shrink:0; }
  .mf-count{
    display:inline-flex; align-items:center; justify-content:center;
    min-width:20px; height:20px; padding:0 6px;
    border-radius:999px;
    background:#282828; color:#fff; /* charcoal in light; red in dark (dark.css) */
    font-size:11px; font-weight:700;
  }
  .mf-clear{
    color:#6b6b6b; font-size:13px; text-decoration:none;
  }
  .mf-clear:hover{ color:#111; text-decoration:underline; }
  .mf-body{
    display:flex; flex-wrap:wrap; gap:14px 22px;
  }
  .mf-group{
    display:flex; flex-direction:column; gap:6px;
    min-width:0;
  }
  .mf-label{
    font-size:11px; font-weight:700; text-transform:uppercase;
    letter-spacing:.05em; color:#6b6b6b;
  }
  .mf-pills{ display:flex; flex-wrap:wrap; gap:4px; }
  .mf-pill{
    display:inline-flex; align-items:center; gap:4px;
    padding:6px 11px;
    border:1px solid rgba(0,0,0,.15);
    border-radius:999px;
    background:#fff; color:#444;
    font-size:12px; font-weight:600;
    cursor:pointer;
    transition:all .15s ease;
    user-select:none;
    white-space:nowrap;
  }
  .mf-pill:hover{ border-color:rgba(0,0,0,.35); color:#111; }
  .mf-pill input{ position:absolute; opacity:0; pointer-events:none; }
  .mf-pill:has(input:checked),
  .mf-pill.is-active{
    background:#111; border-color:#111; color:#fff;
  }
  .mf-pill--verified:has(input:checked),
  .mf-pill--verified.is-active{
    background:#15803d; border-color:#15803d; color:#fff;
  }
  .mf-pill--link{ text-decoration:none; }
  .mf-pill--verified.mf-pill--link:hover{
    border-color:#15803d; color:#15803d;
  }
  .mf-pill--verified.mf-pill--link.is-active:hover{
    color:#fff; opacity:.92;
  }

  /* Collapsible group: <details> + <summary> */
  details.mf-collapse{ position:relative; }
  details.mf-collapse > summary{
    list-style:none; cursor:pointer;
    display:inline-flex; align-items:center; gap:6px;
    padding:6px 12px;
    border:1px solid rgba(0,0,0,.15);
    border-radius:999px;
    background:#fff; color:#444;
    font-size:12px; font-weight:600;
    user-select:none;
    transition:all .15s ease;
  }
  details.mf-collapse > summary::-webkit-details-marker{ display:none; }
  details.mf-collapse > summary:hover{ border-color:rgba(0,0,0,.35); color:#111; }
  details.mf-collapse[open] > summary{
    background:#111; color:#fff; border-color:#111;
  }
  details.mf-collapse .mf-chev{
    transition:transform .15s ease;
    flex-shrink:0;
  }
  details.mf-collapse[open] .mf-chev{ transform:rotate(180deg); }
  details.mf-collapse .mf-collapse__body{
    position:absolute;
    top:calc(100% + 6px); left:0;
    z-index:10;
    background:#fff;
    border:1px solid rgba(0,0,0,.12);
    border-radius:14px;
    padding:10px;
    box-shadow:0 6px 24px rgba(0,0,0,.08);
    min-width:200px;
    max-width:360px;
  }
  details.mf-collapse .mf-collapse__body .mf-pills{
    gap:5px;
  }
  details.mf-collapse .mf-summary-count{
    display:inline-flex; align-items:center; justify-content:center;
    min-width:18px; height:18px; padding:0 5px;
    background:rgba(0,0,0,.08); color:inherit;
    border-radius:999px; font-size:11px;
  }
  details.mf-collapse[open] .mf-summary-count{
    background:rgba(255,255,255,.25);
  }

  .mf-actions{
    display:flex; gap:10px; margin-top:14px; padding-top:12px;
    border-top:1px dashed rgba(0,0,0,.10);
  }
  .mf-apply{
    padding:8px 18px; border-radius:999px; border:none;
    background:#111; color:#fff; font-weight:700; font-size:13px; cursor:pointer;
  }
  .mf-apply:hover{ background:#000; }
  .mf-header__right{ display:inline-flex; align-items:center; gap:10px; }

  /* "More filters" / "Show less" toggle — deliberately NOT a pill: a borderless
     underlined text link so it reads as an action, not another filter option. */
  .mf-more{
    display:none;
    margin-top:12px;
    align-self:flex-start;
    padding:2px 0;
    border:0;
    background:none;
    color:#111;
    font-size:13px; font-weight:700;
    text-decoration:underline;
    text-underline-offset:3px;
    text-decoration-thickness:1.5px;
    cursor:pointer;
  }
  .mf-more:hover{ color:#000; }

  @media (max-width:640px){
    .mf-bar{ padding:12px 14px; }
    .mf-body{ gap:12px; }
    /* Show the key filters (Verified / Age / Available); tuck the rest behind
       the "More filters" button so mobile stays short. */
    .mf-group--more{ display:none; }
    .mf-bar.is-open .mf-group--more{ display:flex; }
    .mf-more{ display:inline-block; }
    /* tighter pills on mobile */
    .mf-pill, details.mf-collapse > summary{ padding:5px 10px; font-size:12px; }
    details.mf-collapse .mf-collapse__body{ left:auto; right:0; }
  }
  /* Desktop: everything always visible; no toggle needed. */
  @media (min-width:641px){
    .mf-group--more{ display:flex; }
    .mf-more{ display:none !important; }
  }

  /* Thin indeterminate progress bar shown while results load in-place */
  .mf-progress{
    height:0; overflow:hidden;
    border-radius:999px;
    background:rgba(0,0,0,.06);
    margin:0;
    transition:height .2s ease, margin .2s ease;
  }
  .mf-progress.is-active{ height:3px; margin:2px 0 12px; }
  .mf-progress > span{
    display:block; height:100%; width:35%;
    border-radius:999px;
    background:#e11d31; /* brand red — reads well on both light & dark */
    animation:mf-indet 1s ease-in-out infinite;
  }
  @keyframes mf-indet{
    0%{ transform:translateX(-110%); }
    100%{ transform:translateX(330%); }
  }

  /* Results list: fade while loading, stagger the new cards in */
  .mf-results-loading{
    opacity:.4;
    transition:opacity .25s ease;
    pointer-events:none;
  }
  .mf-animate-in > *{ animation:mf-fade-up .4s ease both; }
  @keyframes mf-fade-up{
    from{ opacity:0; transform:translateY(10px); }
    to{ opacity:1; transform:none; }
  }
  @media (prefers-reduced-motion: reduce){
    .mf-results-loading{ transition:none; }
    .mf-animate-in > *{ animation:none; }
    .mf-progress > span{ animation:none; }
  }
