/* Bridge Connectome Engine — shared look of the engine's pictures (app/engine.py draws them), used by the public page (landing.html, section
   #engine) and the app (#/engine, app/static/flow_engine.js; the Home band in flow_home.js). Flat scientific infographics, the platform's teal. */
.bce-quiet { font-size: 14px; color: #5a756f; border: 1px dashed #c9d8d3; border-radius: 12px; padding: 14px 16px; background: #fff; }
.bce-card { background: #fff; border: 1px solid #dde6e2; border-radius: 18px; box-shadow: 0 1px 2px rgba(8, 40, 36, .05), 0 12px 30px -18px rgba(8, 40, 36, .22); padding: 20px 22px; min-width: 0; }
.bce-ch { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.bce-ch b { font-size: 16.5px; font-weight: 600; color: #0d2420; letter-spacing: -.01em; }
.bce-ch span { font-size: 13px; color: #5a756f; }
.bce-chip { display: inline-block; font-size: 11.5px; font-weight: 600; line-height: 1.5; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.bce-chip.ok { background: #dff5ee; color: #0b6a54; }
.bce-chip.wait { background: #fdf3e1; color: #7a4e0c; }
.bce-chip.bad { background: #fdecec; color: #b42318; }

/* number tiles + where the rows come from */
.bce-top { display: grid; gap: 14px; }
.bce-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #0d2420; }
.bce-tile { padding: 18px 20px 4px 0; min-width: 0; }
.bce-tile + .bce-tile { padding-left: 22px; border-left: 1px solid #dde6e2; }
.bce-tile b { display: block; font-size: clamp(30px, 3.2vw, 44px); font-weight: 500; letter-spacing: -.035em; line-height: 1; color: #0d2420; font-variant-numeric: tabular-nums; }
.bce-tile span { display: block; margin-top: 8px; font-size: 13.5px; color: #4c645f; }
.bce-src { display: grid; gap: 8px; }
.bce-sbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.bce-sbar i { display: block; min-width: 3px; }
.bce-sl { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: #4c645f; }
.bce-sl i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.bce-sl b { font-weight: 600; color: #0d2420; font-variant-numeric: tabular-nums; }
.bce-sl small { color: #7c918c; }

/* layouts */
.bce-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: start; margin-top: 20px; }
.bce-pipecard { margin-top: 20px; padding: 14px 18px 4px; }
.bce-pipe { display: block; height: auto; }
.bce-asof { margin-top: 16px; font-size: 12.5px; color: #7c918c; line-height: 1.5; }

/* the connectome figure */
.bce-fig { margin: 0; background: #fff; border: 1px solid #dde6e2; border-radius: 18px; box-shadow: 0 12px 30px -18px rgba(8, 40, 36, .22); padding: 18px 18px 14px; min-width: 0; }
.bce-figh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-size: 13px; color: #5a756f; }
.bce-figh b { font-size: 16px; font-weight: 600; color: #0d2420; }
.bce-net { display: block; height: auto; max-width: 560px; margin: 4px auto 0; }
.bce-fig figcaption, .bce-leg { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; font-size: 12.5px; color: #4c645f; }
.bce-fig figcaption i, .bce-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.bce-fig figcaption i.ring, .bce-leg i.ring { background: #fff; border: 1.5px solid #9fb3ad; }

/* the eight layers */
.bce-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bce-stack li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: var(--w, 100%); margin: 0 auto;
  background: linear-gradient(90deg, #e9f6f2, #f5fbf9); border: 1px solid #cfe7df; border-radius: 10px; padding: 7px 12px; font-size: 13.5px; color: #1d3a35; }
.bce-stack li.learn { background: repeating-linear-gradient(135deg, #fff8ea 0 8px, #fdf1da 8px 16px); border-color: #f0d9a8; }
.bce-ln { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0f7d63; color: #fff; font-size: 12px; font-weight: 600; }
.bce-stack li.learn .bce-ln { background: #b7791f; }
.bce-stack li.learn { grid-template-columns: 28px minmax(0, 1fr); row-gap: 4px; }
.bce-stack li.learn .bce-chip { grid-column: 2; justify-self: start; white-space: normal; }
.bce-vh b { white-space: nowrap; }
.bce-lt { min-width: 0; line-height: 1.35; }
.bce-self { margin-top: 12px; font-size: 13px; color: #3b534e; display: flex; align-items: center; gap: 8px; }
.bce-self::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: #0f7d63 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.bce-self.bad::before { background: #c2410c; }
.bce-self b { font-weight: 650; color: #0d2420; }

/* checks */
.bce-checks { display: grid; gap: 14px; }
.bce-gate + .bce-gate { border-top: 1px solid #eef3f1; padding-top: 14px; }
.bce-gh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.bce-gh b { font-size: 14px; font-weight: 600; color: #0d2420; }
.bce-meter { display: grid; grid-template-columns: 96px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: 12.5px; color: #4c645f; margin-top: 5px; }
.bce-meter > b { text-align: right; font-weight: 600; color: #0d2420; font-variant-numeric: tabular-nums; }
.bce-mt { position: relative; height: 10px; border-radius: 999px; background: #eef2f1; }
.bce-mt i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: #0f7d63; }
.bce-mt em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #0d2420; }
.bce-mt em::after { content: "90%"; position: absolute; top: -15px; left: -9px; font-size: 10px; font-style: normal; color: #7c918c; }
.bce-meter + .bce-meter .bce-mt em::after { display: none; }
.bce-dots { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #4c645f; }
.bce-dots i { width: 22px; height: 10px; border-radius: 4px; background: #eef2f1; border: 1px solid #dde6e2; }
.bce-dots i.on { background: #0f7d63; border-color: #0f7d63; }
.bce-dots span { margin-left: 6px; }
.bce-q { font-size: 12.5px; color: #5a756f; margin: 8px 0 0; line-height: 1.5; }
.bce-kn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bce-kn span { display: block; background: #f5f9f8; border-radius: 12px; padding: 10px 12px; }
.bce-kn b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: #0d2420; font-variant-numeric: tabular-nums; }
.bce-kn small { display: block; font-size: 12px; color: #5a756f; line-height: 1.35; margin-top: 2px; }
.bce-nets { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bce-nets li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: #3b534e; }
.bce-nets .bce-chip { white-space: normal; text-align: right; }

/* the brief excerpt: reports lower ← | → higher */
.bce-votes { display: grid; gap: 4px; }
.bce-vr { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 104px; gap: 12px; align-items: center; font-size: 13px; color: #1d3a35; }
.bce-vh { font-size: 11.5px; color: #7c918c; padding-bottom: 2px; }
.bce-vh b { font-weight: 500; }
.bce-vn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bce-vb { display: grid; grid-template-columns: 1fr 1fr; height: 20px; align-items: center; }
.bce-vb > span { position: relative; height: 100%; display: flex; align-items: center; }
.bce-vb .lo { justify-content: flex-end; border-right: 1.5px solid #0d2420; }
.bce-vb .hi { justify-content: flex-start; }
.bce-vb .lo i, .bce-vb .hi i { display: block; height: 12px; }
.bce-vb .lo i { background: #c2410c; border-radius: 3px 0 0 3px; }
.bce-vb .hi i { background: #2d6cdf; border-radius: 0 3px 3px 0; }
.bce-vb em { font-style: normal; font-size: 11.5px; color: #4c645f; padding: 0 5px; font-variant-numeric: tabular-nums; }
.bce-vb .lo em { order: -1; }
.bce-vh .bce-vb { height: auto; }
.bce-vh .bce-vb .lo { border-right-color: transparent; padding-right: 6px; }
.bce-vh .bce-vb .hi { padding-left: 6px; }
.bce-ve { text-align: right; font-variant-numeric: tabular-nums; color: #0d2420; white-space: nowrap; cursor: help; }
.bce-vh .bce-ve { cursor: default; color: #7c918c; }
.bce-exfoot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef3f1; }
.bce-exfoot b { display: block; font-size: 14px; font-weight: 600; color: #0d2420; }
.bce-exfoot small { display: block; font-size: 12px; color: #5a756f; max-width: 280px; line-height: 1.4; margin-top: 2px; }
.bce-npg { display: flex; gap: 14px; align-items: flex-end; }
.bce-npg div { display: grid; justify-items: center; gap: 2px; }
.bce-nb { display: flex; align-items: flex-end; width: 34px; height: 56px; }
.bce-nb i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #2bb594, #0f7d63); }
.bce-npg b { font-size: 14px; font-weight: 650; color: #0d2420; font-variant-numeric: tabular-nums; }
.bce-npg small { font-size: 11px; color: #7c918c; }

/* ---------------------------------------------------------------- the app screen #/engine (flow_engine.js) */
.bce-app .hm-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); padding-bottom: 46px; }
.bce-app .bce-hko { display: block; margin: 8px 0 14px; font-size: 15px; font-weight: 500; color: #7fe3cf; letter-spacing: 0; }
.bce-app .hm-hero h1 span { font-size: 40px; }
.bce-app .bce-hnet { padding: 18px 26px 0 0; }
.bce-app .bce-hnet .bce-net { max-width: 470px; }
.bce-app .bce-hnet .bce-leg { color: #cfe6e1; margin-top: 2px; }
.bce-app .bce-hnet .bce-leg i.ring { background: transparent; border-color: #8fbdb4; }
.bce-app .bce-hcap { font-size: 12.5px; color: #8fbdb4; text-align: center; margin-top: 4px; }
.bce-app .bce-built { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: #b9e9df; }
.bce-app .bce-built i { width: 7px; height: 7px; border-radius: 50%; background: #7fe3cf; }
.bce-app .bce-grid { margin-top: 0; }
.bce-app .bce-tiles4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: -34px 22px 0; position: relative; z-index: 3; }
.bce-app .bce-fold { font-size: 13.5px; color: #3b534e; }
.bce-app .bce-fold summary { cursor: pointer; font-weight: 600; color: #0f7d63; padding: 2px 0; }
.bce-app .bce-fold ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.5; }

/* inside the Idea Lab — one block in "Fields and questions" (flow_lab.js + FLOW.engineInto; owner 2026-12-06: the Home band is gone, then the two tabs
   were merged): a dark strip with the picture and six figures, and a fold with every deeper card */
.bce-app .bce-hnote { font-size: 13.5px; color: #b9e9df; margin: 4px 0 0; }
.bce-strip { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: center; border-radius: 18px; padding: 16px 24px 16px 16px;
  background: linear-gradient(118deg, #062a2c 0%, #0b3a39 62%, #0d4740 100%); color: #e6fffa; box-shadow: 0 14px 34px -20px rgba(6, 40, 44, .55); }
.bce-strip.off { grid-template-columns: 1fr; padding: 16px 22px; }
.bce-strip .bce-net { max-width: 210px; margin: 0 auto; }
.bce-strip .bce-hcap { font-size: 11.5px; color: #8fbdb4; text-align: center; margin: 2px 0 0; line-height: 1.3; }
.bce-strip small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7fe3cf; }
.bce-strip h2 { color: #fff !important; font-size: 22px !important; margin: 4px 0 2px !important; border: 0 !important; padding: 0 !important; }
.bce-strip .bce-sko { display: block; font-size: 13.5px; font-weight: 500; color: #7fe3cf; margin-bottom: 6px; }
.bce-strip p { margin: 0; font-size: 13.5px; color: #c5ddd8; line-height: 1.45; }
.bce-strip .bce-bn { display: grid; grid-template-columns: repeat(6, minmax(0, auto)); justify-content: start; gap: 6px 22px; margin: 12px 0 8px; }
.bce-strip .bce-bn span { font-size: 12px; color: #b9d9d2; line-height: 1.3; }
.bce-strip .bce-bn b { display: block; font-size: 21px; font-weight: 650; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bce-strip .bce-built { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #b9e9df; }
.bce-strip .bce-built i { width: 7px; height: 7px; border-radius: 50%; background: #7fe3cf; }
.bce-inside { border: 1px solid #dfe9e6; border-radius: 14px; background: #f6faf9; }
.bce-inside > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 11px 16px; }
.bce-inside > summary::-webkit-details-marker { display: none; }
.bce-inside > summary::before { content: "▸"; color: #0f7d63; font-size: 13px; }
.bce-inside[open] > summary::before { content: "▾"; }
.bce-inside > summary span { font-weight: 650; font-size: 14.5px; color: #0d2420; }
.bce-inside > summary em { font-style: normal; font-size: 12.5px; color: #5a756f; }
.bce-inside > summary:focus-visible { outline: 2px solid #0f7d63; outline-offset: 2px; border-radius: 14px; }
.bce-inlab { display: grid; gap: 16px; padding: 4px 14px 16px; }
.bce-legrow .bce-leg { justify-content: flex-start; margin: 0; }
@media (max-width: 1100px) { .bce-strip .bce-bn { grid-template-columns: repeat(3, minmax(0, auto)); } }
@media (max-width: 640px) { .bce-strip { grid-template-columns: 1fr; padding: 16px 18px; } .bce-strip .bce-snet { order: 2; } .bce-strip .bce-net { max-width: 190px; } .bce-strip .bce-bn { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bce-inlab { padding: 4px 8px 12px; } }
@media (max-width: 1000px) {
  .bce-grid { grid-template-columns: 1fr; }
  .bce-tiles, .bce-app .bce-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bce-tile:nth-child(3) { padding-left: 0; border-left: 0; }
  .bce-app .hm-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bce-vr { grid-template-columns: minmax(0, 1fr) 86px; }
  .bce-vr .bce-vb { grid-column: 1 / -1; grid-row: 2; }
  .bce-exfoot { flex-direction: column; align-items: flex-start; }
  .bce-kn { grid-template-columns: 1fr; }
}
