/* BF_BLANK_START_V1: scoped selector, native dialog, physical page previews. */
.bfbs-dialog,.bfbs-strip{--bfbs-bg:#fff;--bfbs-surface:#f2f3f8;--bfbs-ink:#202433;--bfbs-muted:#606678;--bfbs-border:#e1e4ed;--bfbs-hover:#ece7ff;--bfbs-purple:#7138e8;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--bfbs-ink);color-scheme:light}
:is(html,body)[data-theme="dark"] :is(.bfbs-dialog,.bfbs-strip),:is(html,body)[data-bfct-theme="dark"] :is(.bfbs-dialog,.bfbs-strip),:is(html,body)[data-bf-editor-theme="dark"] :is(.bfbs-dialog,.bfbs-strip),:is(html,body).dark :is(.bfbs-dialog,.bfbs-strip),:is(html,body).bf-theme-dark :is(.bfbs-dialog,.bfbs-strip){--bfbs-bg:#1e2029;--bfbs-surface:#2b2d38;--bfbs-ink:#f1f2f8;--bfbs-muted:#bbc0d2;--bfbs-border:#3c3f4c;--bfbs-hover:#3d305b;--bfbs-purple:#b592ff;color-scheme:dark}
.bfbs-dialog *,.bfbs-strip *{box-sizing:border-box}
.bfbs-dialog{width:min(1200px,calc(100vw - 64px));height:min(790px,calc(100dvh - 64px));max-width:none;max-height:none;padding:0;border:1px solid var(--bfbs-border);border-radius:22px;background:var(--bfbs-bg);box-shadow:0 30px 120px #0006;overflow:hidden}
.bfbs-dialog::backdrop{background:#101124a6;backdrop-filter:blur(5px)}
.bfbs-dialog[open]{display:flex;flex-direction:column}
.bfbs-head{display:flex;flex:none;justify-content:space-between;align-items:center;gap:20px;padding:28px 30px 24px;border-bottom:1px solid var(--bfbs-border)}
.bfbs-eyebrow{display:block;letter-spacing:.2em;color:var(--bfbs-purple);font-size:10px;font-weight:800;margin-bottom:8px}
.bfbs-head h2{font-size:28px;line-height:1.2;margin:0;font-weight:700;color:var(--bfbs-ink)}
.bfbs-close{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--bfbs-border);border-radius:50%;font-size:28px;font-weight:400;background:transparent;color:var(--bfbs-ink);cursor:pointer;flex:none}
.bfbs-body{display:flex;min-height:0;flex:1}
.bfbs-categories{width:208px;flex:none;display:flex;flex-direction:column;gap:6px;padding:24px 14px;border-inline-end:1px solid var(--bfbs-border);overflow:auto;background:var(--bfbs-bg)}
.bfbs-categories button{border:0;border-radius:11px;min-height:44px;background:transparent;color:var(--bfbs-muted);text-align:start;padding:12px 16px;font-size:14px;cursor:pointer;font-weight:600;white-space:normal}
.bfbs-categories button:hover,.bfbs-categories button[aria-pressed="true"]{background:var(--bfbs-hover);color:var(--bfbs-purple)}
.bfbs-content{flex:1;min-width:0;overflow:auto;padding:24px 28px;overscroll-behavior:contain}
.bfbs-search{position:sticky;top:0;z-index:2;display:flex;gap:10px;align-items:center;background:var(--bfbs-bg);padding-bottom:20px}
.bfbs-search input{width:100%;min-width:0;padding:13px 16px;border:1px solid var(--bfbs-border);border-radius:12px;background:var(--bfbs-surface);color:var(--bfbs-ink);font:inherit;outline-offset:3px}
.bfbs-search input::placeholder{color:var(--bfbs-muted);opacity:1}
.bfbs-count{display:grid;place-items:center;min-width:34px;height:30px;border-radius:8px;background:var(--bfbs-hover);color:var(--bfbs-purple);font-size:12px;font-weight:700}
.bfbs-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 16px}
.bfbs-card{display:flex;flex-direction:column;gap:8px;min-width:0;text-decoration:none!important;color:var(--bfbs-ink)!important;border:1px solid transparent;border-radius:14px;padding:7px;transition:border-color .15s,background-color .15s}
.bfbs-card:hover{border-color:var(--bfbs-purple);background:var(--bfbs-hover)}
.bfbs-preview{display:grid;place-items:center;height:142px;width:100%;border-radius:10px;background:var(--bfbs-surface);padding:16px}
.bfbs-paper{display:grid;place-items:center;max-width:100%;max-height:100%;background:#fff;border:1px solid #d3d6e0;border-radius:3px;box-shadow:4px 5px 0 #71758a24;color:#9a86ca}
.bfbs-plus{font:300 30px/1 system-ui}
.bfbs-card strong{font-size:13px;line-height:1.35;font-weight:650;overflow-wrap:anywhere}
.bfbs-card small{font-size:11px;color:var(--bfbs-muted);line-height:1.3;direction:ltr;text-align:start}
.bfbs-empty{grid-column:1/-1;padding:40px 10px;color:var(--bfbs-muted)}
.bfbs-custom{max-width:620px;padding:20px 0}
.bfbs-custom[hidden],.bfbs-grid[hidden]{display:none!important}
.bfbs-custom h3{margin:0 0 24px;font-size:20px;color:var(--bfbs-ink)}
.bfbs-custom-fields{display:grid;grid-template-columns:1fr 1fr 90px;gap:14px}
.bfbs-custom label{display:flex;flex-direction:column;gap:9px;font-size:13px;color:var(--bfbs-muted)}
.bfbs-custom input,.bfbs-custom select{min-width:0;width:100%;padding:12px;border:1px solid var(--bfbs-border);border-radius:10px;background:var(--bfbs-surface);color:var(--bfbs-ink);font:inherit}
.bfbs-primary{border:0;border-radius:10px;padding:13px 20px;background:#7138e8;color:white;cursor:pointer;font-size:14px;font-weight:650}
.bfbs-hint{font-size:12px;color:var(--bfbs-muted);margin:18px 0}
.bfbs-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;border-top:1px solid var(--bfbs-border);margin-top:28px;padding:20px 0 4px;font-size:12px;color:var(--bfbs-muted)}
.bfbs-tools a{color:var(--bfbs-purple);text-decoration:none;border:1px solid var(--bfbs-border);padding:7px 10px;border-radius:8px}
.bfbs-strip{background:var(--bfbs-bg);border:1px solid var(--bfbs-border);border-radius:18px;padding:20px;margin:20px 0 28px;width:100%;min-width:0}
.bfbs-strip-head{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:16px}
.bfbs-strip h2{font-size:19px;margin:0;color:var(--bfbs-ink)}
.bfbs-more{color:var(--bfbs-purple);background:transparent;border:0;font-size:13px;cursor:pointer;flex:none;padding:8px}
.bfbs-strip-items{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;overflow-x:auto}
.bfbs-card-compact .bfbs-preview{height:110px}
.bfbs-card-compact .bfbs-paper{max-height:80px;max-width:82px}
.bfbs-card-compact strong{font-size:12px}
.bfbs-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
:is(.bfbs-dialog,.bfbs-strip) :is(button,a,input,select):focus-visible{outline:3px solid #a58bfa;outline-offset:3px}
@media(max-width:1050px){.bfbs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bfbs-strip-items{grid-template-columns:repeat(8,130px)}}
@media(max-width:700px){.bfbs-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:16px}.bfbs-head{padding:20px;gap:12px}.bfbs-head h2{font-size:23px}.bfbs-body{flex-direction:column}.bfbs-categories{width:100%;flex-direction:row;gap:6px;border-inline-end:0;border-bottom:1px solid var(--bfbs-border);padding:10px 14px;overflow-x:auto}.bfbs-categories button{white-space:nowrap;font-size:12px;padding:9px 12px;min-height:38px;flex:none}.bfbs-content{padding:16px}.bfbs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 8px}.bfbs-preview{height:136px}.bfbs-card strong{font-size:12px}.bfbs-search input{font-size:16px}.bfbs-custom input,.bfbs-custom select{font-size:16px}.bfbs-custom-fields{grid-template-columns:1fr 1fr}.bfbs-strip{padding:16px}.bfbs-strip-head{align-items:flex-start}.bfbs-strip h2{font-size:17px}.bfbs-more{max-width:130px;white-space:normal;text-align:end}.bfbs-tools{line-height:1.5}}
@media(prefers-reduced-motion:reduce){.bfbs-card{transition:none}}

/* BF_BLANK_START_NAV_V1_1: dimensions inherit the existing sidebar/rail. */
.bfbs-nav-entry .bfbs-nav-icon svg{display:block;width:22px;height:22px;flex:none}
.bfbs-nav-entry .bf-rail-icon{color:#c4b5fd;background:rgba(139,92,246,.12);border-color:rgba(167,139,250,.4)}
.bfbs-nav-entry[aria-expanded="true"] .bfbs-nav-icon{color:#ddd6fe}
