.dvaput-main {
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.char-row { display: flex; flex-wrap: wrap; gap: 0; }
.char-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 34px;
  border: 1px solid var(--border, var(--line));
  border-radius: 4px; margin: 0 1px;
  font-family: 'system-ui', monospace;
  font-size: 14px; font-weight: 600;
  transition: background 0.15s, color 0.15s;
  background: var(--surface); color: var(--ink);
}
.char-box.window  { background: var(--accent); color: white; }
.char-box.match-a { background: var(--good); color: white; }
.char-box.match-b { background: var(--cool); color: white; }
.idx-row { display: flex; margin-bottom: 2px; }
.idx-cell {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px;
  font-family: 'system-ui', monospace; font-size: 10px; color: var(--muted);
}
.bisect-bar {
  position: relative; height: 20px;
  background: var(--surface-2); border-radius: 6px; overflow: hidden;
}
.bisect-range {
  position: absolute; top: 0; bottom: 0;
  background: var(--accent-soft);
}
.bisect-mid {
  position: absolute; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: translateX(-1px);
}
