.ffl-library{--ffl-accent:#2457d6;--ffl-border:#dfe5ef;color:#18263b;font-family:inherit;margin:2rem 0;line-height:1.6}
.ffl-library *{box-sizing:border-box}
.ffl-library>h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:700;letter-spacing:-.025em;margin:0 0 1.5rem;color:#18263b}
.ffl-library .ffl-toolbar{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}
.ffl-library .ffl-search-label{display:block;font-size:.85rem;font-weight:600;width:min(100%,420px);color:#43536b}
.ffl-library input.ffl-search{display:block;width:100%;border:1px solid var(--ffl-border);border-radius:10px;background:#fff;color:#18263b;padding:.8rem 1rem;font:inherit;font-weight:400;margin-top:.4rem;min-height:48px}
.ffl-library .ffl-count{font-size:.85rem;color:#52627a;white-space:nowrap;padding-bottom:.8rem}
.ffl-library ul.ffl-forms{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem}
.ffl-library li.ffl-card{list-style:none;margin:0;padding:1.5rem;border:1px solid var(--ffl-border);border-radius:14px;background:#fff;display:flex;flex-direction:column;align-items:flex-start;gap:1rem;box-shadow:0 2px 5px #18263b05;transition:box-shadow .18s,border-color .18s}
.ffl-library li.ffl-card:hover{border-color:#a8bce9;box-shadow:0 8px 24px #18263b0b}
.ffl-library .ffl-file-icon{width:44px;height:48px;border-radius:10px;background:#edf3ff;color:var(--ffl-accent);display:grid;place-items:center;flex-shrink:0}
.ffl-library .ffl-file-icon svg{width:27px;height:27px}
.ffl-library .ffl-card-body{flex:1;min-width:0;width:100%}
.ffl-library .ffl-file-meta{display:flex;align-items:center;gap:.7rem;font-size:.75rem;color:#63718a;margin-bottom:.65rem}
.ffl-library .ffl-badge{background:#f1f4f8;padding:.15rem .5rem;border-radius:5px;color:#43536b;font-size:.68rem;letter-spacing:.05em;font-weight:700}
.ffl-library h3.ffl-form-title{font-size:1.15rem;font-weight:650;line-height:1.4;color:#18263b;margin:0;overflow-wrap:anywhere}
.ffl-library .ffl-description{font-size:.9rem;color:#52627a;margin-top:.55rem;overflow-wrap:anywhere}
.ffl-library .ffl-description p{margin:0 0 .5rem}
.ffl-library a.ffl-view{display:inline-flex;align-items:center;justify-content:center;gap:.8rem;font-size:.85rem;font-weight:600;text-decoration:none;border:1px solid var(--ffl-border);border-radius:8px;color:var(--ffl-accent);padding:.6rem .9rem;background:#fff;line-height:1.5}
.ffl-library a.ffl-view:hover{background:var(--ffl-accent);border-color:var(--ffl-accent);color:#fff}
.ffl-library :is(a,input):focus-visible{outline:3px solid var(--ffl-accent);outline-offset:3px}
.ffl-library .ffl-empty,.ffl-library .ffl-no-results{padding:2.5rem 1.5rem;text-align:center;background:#f7f9fc;border:1px dashed var(--ffl-border);border-radius:12px;color:#52627a}
.ffl-library [hidden]{display:none!important}
.ffl-layout-list ul.ffl-forms{grid-template-columns:1fr}
.ffl-layout-list li.ffl-card{flex-direction:row;align-items:center}
@media(max-width:540px){.ffl-library .ffl-toolbar{align-items:stretch;flex-direction:column;gap:.5rem}.ffl-library .ffl-count{padding:0}.ffl-layout-list li.ffl-card{flex-wrap:wrap}.ffl-layout-list .ffl-card-body{width:calc(100% - 60px)}.ffl-layout-list a.ffl-view{margin-inline-start:60px}}
@media(prefers-reduced-motion:reduce){.ffl-library li.ffl-card{transition:none}}
.ffl-document{width:100%;margin:1.5rem 0}
.ffl-library .ffl-document-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;padding:1rem;background:#f7f9fc;border:1px solid var(--ffl-border);border-radius:12px 12px 0 0;font-size:.9rem;font-weight:600}
.ffl-library .ffl-pdf-viewer{display:block;width:100%;height:80vh;min-height:420px;border:1px solid var(--ffl-border);border-top:0;background:#f1f4f8}
.ffl-library .ffl-image-viewer{display:block;max-width:100%;height:auto;margin:1rem auto;border-radius:8px}
.ffl-library .ffl-viewer-note{font-size:.85rem;color:#52627a;margin:.75rem 0}
.ffl-library .ffl-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Theme-rendered title on individual form pages. */
body.single-ffl_form :is(h1.entry-title,h1.page-title,h1.wp-block-post-title,.entry-header .entry-title,.page-header .page-title),
body.single-ffl_form :is(h1.entry-title,h1.page-title,h1.wp-block-post-title,.entry-header .entry-title,.page-header .page-title) a{color:#fff!important}
