/* Offer Ready: Fenwick tree visualizer styles (namespaced .fw-). Reuses .va-input, .va-read and .va-presets from app.css. */
.fw { --gap: 3px; --bar-h: 34px; display: grid; gap: var(--s-2); padding: 2px 3px; min-width: 0; }
.fw-lbl { font: 600 var(--text-2xs)/1 var(--font-mono); font-stretch: var(--stretch-mono); }
.fw-bars, .fw-arr { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--gap); min-width: 0; }
.fw-bar, .fw-cell {
  position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); overflow: hidden;
  font-family: var(--font-mono); font-stretch: var(--stretch-mono);
}
.fw-bar { height: var(--bar-h); }
.fw-cell { height: 40px; }
.fw-bar b, .fw-cell b { font-size: var(--text-xs); font-weight: 500; line-height: 1; }
.fw-bar small, .fw-cell small { font-size: var(--text-2xs); line-height: 1; color: var(--ink-3); }
.fw-bar.gone { border-style: dashed; color: var(--ink-3); background: transparent; }
.fw-bar.hit { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-soft-ink); }
.fw-bar.ok, .fw-cell.ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.fw-cell.hit { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-soft-ink); }
.fw-bar.cur { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 1; }
.fw-in-row { max-width: 40rem; flex-wrap: wrap; }
.fw-in-row .input { flex: 1 1 12rem; }
@media (max-width: 760px) {
  .fw { --gap: 2px; --bar-h: 30px; }
  .fw-bar b, .fw-cell b { font-size: 10px; }
  .fw-bar small, .fw-cell small { font-size: 9px; }
  .fw-cell { height: 36px; }
}
