
.bn-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; margin-top: 44px; }
.bn-tile { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px 24px 26px; }
.bn-vis { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0; min-height: 230px; margin-bottom: 22px; font-size: 13px; }
.bn-tile h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 8px; }
.bn-tile > p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.bn-tile:not(.on) *, .bn-tile:not(.on) *::after { animation-play-state: paused !important; }
.bn-vis svg:not(.bn-wires):not(.bn-branch) { width: 16px; height: 16px; flex: none; }
.bn-vis svg[viewBox="0 0 24 24"] { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bn-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; }
:root[data-theme="light"] .bn-box { background: #fff; }
.bn-tw { display: grid; }
.bn-tw > * { grid-area: 1 / 1; }
.bn-ghost { visibility: hidden; }
.bn-type.typing::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent-text); }
.bn-line path { fill: none; stroke: rgba(154, 167, 180, .3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bn-beam path { fill: none; stroke: #03d3c7; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 18 82; stroke-dashoffset: 118; opacity: 0; }
.go .bn-beam path { animation: bn-beam 2.7s linear var(--d, 0s); }
@keyframes bn-beam { 0% { stroke-dashoffset: 118; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes bn-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes bn-pop { from { opacity: 0; transform: scale(.6); } }
.bn-cites { display: flex; gap: 5px; margin-top: 8px; }
.bn-cites i { font-style: normal; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 6px;
  display: inline-grid; place-items: center; color: var(--accent-text); background: var(--accent-soft); border: 1px solid rgba(3, 211, 199, .25); }
.go .bn-cites i { animation: bn-pop .3s cubic-bezier(.2, .8, .2, 1.3) both; animation-delay: var(--d); }
.bn-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bn-chip { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--faint); background: var(--bg-soft); border: 1px solid var(--border-soft); transition: color .3s; }
.bn-chip::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(3, 211, 199, .5); pointer-events: none;
  box-shadow: 0 0 22px -6px rgba(3, 211, 199, .55); opacity: 0; transition: opacity .4s; }
.bn-chip svg, .bn-chip img { width: 18px; height: 18px; flex: none; filter: grayscale(1); opacity: .55; transition: opacity .3s, filter .3s; }
.bn-chip svg { color: var(--text); }
.bn-chip.lit { color: var(--text); }
.bn-chip.lit::after { opacity: 1; }
.bn-chip.lit svg, .bn-chip.lit img { filter: none; opacity: 1; }
.bn-more { margin-top: 14px; text-align: center; color: var(--faint); font-size: 13px; }
.bn-flow { display: grid; grid-template-columns: auto minmax(18px, 1fr) minmax(158px, 1.6fr); align-items: stretch; min-height: 180px; }
.bn-files { display: grid; grid-template-rows: repeat(3, 1fr); align-items: center; }
.bn-file { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 6px 10px; border-radius: 999px; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--border); font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: 11.5px; }
:root[data-theme="light"] .bn-file { background: #fff; }
.go .bn-file { animation: bn-in .4s ease both; animation-delay: calc(var(--i) * .2s); }
.bn-wires { width: 100%; height: 100%; display: block; overflow: visible; }
.bn-nb { align-self: center; padding: 12px 13px; line-height: 1.5; }
.bn-nb-h { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12.5px; color: var(--accent-text); margin-bottom: 8px; }
.bn-nb p { color: var(--text); }
.bn-search { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 999px; color: var(--text); font-size: 13.5px; }
.bn-search > svg { color: var(--faint); }
.bn-branch { display: block; width: 100%; height: 30px; overflow: visible; }
:root[data-theme="light"] .bn-line path { stroke: #c9d0d8; }
.bn-srcs { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; }
.bn-src { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); }
:root[data-theme="light"] .bn-src { background: #fff; }
.go .bn-src { animation: bn-src 1.2s ease both; animation-delay: calc(1.9s + var(--i) * .2s); }
@keyframes bn-src { 0% { opacity: .35; } 30% { opacity: 1; color: var(--text); border-color: rgba(3, 211, 199, .55); box-shadow: 0 0 16px -4px rgba(3, 211, 199, .5); } }
.bn-ans { margin-top: 14px; padding: 11px 13px; line-height: 1.5; color: var(--text); }
@media (max-width: 1100px) {
  .bn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-tile { grid-column: span 1; }
  .bn-a { grid-column: span 2; }
}
@media (max-width: 680px) {
  .bn-grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; gap: 12px; }
  .bn-tile, .bn-a { grid-column: auto; padding: 18px 18px 22px; }
  .bn-b { display: none; }
  .bn-vis { min-height: 0; margin-bottom: 18px; }
  .bn-tile h3 { font-size: 17.5px; }
  .bn-tile > p { font-size: 14.5px; }
}
@media (max-width: 420px) {
  .bn-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-chip { padding: 11px 6px; font-size: 13px; }
  .bn-src { padding: 5px 9px; font-size: 12px; gap: 5px; }
  .bn-search { border-radius: 14px; align-items: flex-start; }
  .bn-search > svg { margin-top: 2px; }
}
